2005-08-31 J"orn Rennecke <joern.rennecke@st.com>
[official-gcc.git] / libgfortran / configure
blob293fe0d53ef7e92349fe87768a1d696bbc77b605
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
7412 for ac_func in sleep time
7414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7415 echo "$as_me:$LINENO: checking for $ac_func" >&5
7416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7417 if eval "test \"\${$as_ac_var+set}\" = set"; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420 if test x$gcc_no_link = xyes; then
7421 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7422 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7423 { (exit 1); exit 1; }; }
7425 cat >conftest.$ac_ext <<_ACEOF
7426 /* confdefs.h. */
7427 _ACEOF
7428 cat confdefs.h >>conftest.$ac_ext
7429 cat >>conftest.$ac_ext <<_ACEOF
7430 /* end confdefs.h. */
7431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7433 #define $ac_func innocuous_$ac_func
7435 /* System header to define __stub macros and hopefully few prototypes,
7436 which can conflict with char $ac_func (); below.
7437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7438 <limits.h> exists even on freestanding compilers. */
7440 #ifdef __STDC__
7441 # include <limits.h>
7442 #else
7443 # include <assert.h>
7444 #endif
7446 #undef $ac_func
7448 /* Override any gcc2 internal prototype to avoid an error. */
7449 #ifdef __cplusplus
7450 extern "C"
7452 #endif
7453 /* We use char because int might match the return type of a gcc2
7454 builtin and then its argument prototype would still apply. */
7455 char $ac_func ();
7456 /* The GNU C library defines this for functions which it implements
7457 to always fail with ENOSYS. Some functions are actually named
7458 something starting with __ and the normal name is an alias. */
7459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7460 choke me
7461 #else
7462 char (*f) () = $ac_func;
7463 #endif
7464 #ifdef __cplusplus
7466 #endif
7469 main ()
7471 return f != $ac_func;
7473 return 0;
7475 _ACEOF
7476 rm -f conftest.$ac_objext conftest$ac_exeext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7478 (eval $ac_link) 2>conftest.er1
7479 ac_status=$?
7480 grep -v '^ *+' conftest.er1 >conftest.err
7481 rm -f conftest.er1
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } &&
7485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487 (eval $ac_try) 2>&5
7488 ac_status=$?
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); }; } &&
7491 { ac_try='test -s conftest$ac_exeext'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 (eval $ac_try) 2>&5
7494 ac_status=$?
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; }; then
7497 eval "$as_ac_var=yes"
7498 else
7499 echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.$ac_ext >&5
7502 eval "$as_ac_var=no"
7504 rm -f conftest.err conftest.$ac_objext \
7505 conftest$ac_exeext conftest.$ac_ext
7507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7509 if test `eval echo '${'$as_ac_var'}'` = yes; then
7510 cat >>confdefs.h <<_ACEOF
7511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7512 _ACEOF
7515 done
7518 # Check libc for getgid, getpid, getuid
7519 echo "$as_me:$LINENO: checking for getgid in -lc" >&5
7520 echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
7521 if test "${ac_cv_lib_c_getgid+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524 ac_check_lib_save_LIBS=$LIBS
7525 LIBS="-lc $LIBS"
7526 if test x$gcc_no_link = xyes; then
7527 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7528 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7529 { (exit 1); exit 1; }; }
7531 cat >conftest.$ac_ext <<_ACEOF
7532 /* confdefs.h. */
7533 _ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7538 /* Override any gcc2 internal prototype to avoid an error. */
7539 #ifdef __cplusplus
7540 extern "C"
7541 #endif
7542 /* We use char because int might match the return type of a gcc2
7543 builtin and then its argument prototype would still apply. */
7544 char getgid ();
7546 main ()
7548 getgid ();
7550 return 0;
7552 _ACEOF
7553 rm -f conftest.$ac_objext conftest$ac_exeext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555 (eval $ac_link) 2>conftest.er1
7556 ac_status=$?
7557 grep -v '^ *+' conftest.er1 >conftest.err
7558 rm -f conftest.er1
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } &&
7562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 (eval $ac_try) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }; } &&
7568 { ac_try='test -s conftest$ac_exeext'
7569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570 (eval $ac_try) 2>&5
7571 ac_status=$?
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); }; }; then
7574 ac_cv_lib_c_getgid=yes
7575 else
7576 echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7579 ac_cv_lib_c_getgid=no
7581 rm -f conftest.err conftest.$ac_objext \
7582 conftest$ac_exeext conftest.$ac_ext
7583 LIBS=$ac_check_lib_save_LIBS
7585 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
7586 echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
7587 if test $ac_cv_lib_c_getgid = yes; then
7589 cat >>confdefs.h <<\_ACEOF
7590 #define HAVE_GETGID 1
7591 _ACEOF
7595 echo "$as_me:$LINENO: checking for getpid in -lc" >&5
7596 echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
7597 if test "${ac_cv_lib_c_getpid+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600 ac_check_lib_save_LIBS=$LIBS
7601 LIBS="-lc $LIBS"
7602 if test x$gcc_no_link = xyes; then
7603 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7604 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7605 { (exit 1); exit 1; }; }
7607 cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h. */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7614 /* Override any gcc2 internal prototype to avoid an error. */
7615 #ifdef __cplusplus
7616 extern "C"
7617 #endif
7618 /* We use char because int might match the return type of a gcc2
7619 builtin and then its argument prototype would still apply. */
7620 char getpid ();
7622 main ()
7624 getpid ();
7626 return 0;
7628 _ACEOF
7629 rm -f conftest.$ac_objext conftest$ac_exeext
7630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7631 (eval $ac_link) 2>conftest.er1
7632 ac_status=$?
7633 grep -v '^ *+' conftest.er1 >conftest.err
7634 rm -f conftest.er1
7635 cat conftest.err >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } &&
7638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 (eval $ac_try) 2>&5
7641 ac_status=$?
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; } &&
7644 { ac_try='test -s conftest$ac_exeext'
7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 (eval $ac_try) 2>&5
7647 ac_status=$?
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; }; then
7650 ac_cv_lib_c_getpid=yes
7651 else
7652 echo "$as_me: failed program was:" >&5
7653 sed 's/^/| /' conftest.$ac_ext >&5
7655 ac_cv_lib_c_getpid=no
7657 rm -f conftest.err conftest.$ac_objext \
7658 conftest$ac_exeext conftest.$ac_ext
7659 LIBS=$ac_check_lib_save_LIBS
7661 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
7662 echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
7663 if test $ac_cv_lib_c_getpid = yes; then
7665 cat >>confdefs.h <<\_ACEOF
7666 #define HAVE_GETPID 1
7667 _ACEOF
7671 echo "$as_me:$LINENO: checking for getuid in -lc" >&5
7672 echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
7673 if test "${ac_cv_lib_c_getuid+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676 ac_check_lib_save_LIBS=$LIBS
7677 LIBS="-lc $LIBS"
7678 if test x$gcc_no_link = xyes; then
7679 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7680 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7681 { (exit 1); exit 1; }; }
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h. */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7690 /* Override any gcc2 internal prototype to avoid an error. */
7691 #ifdef __cplusplus
7692 extern "C"
7693 #endif
7694 /* We use char because int might match the return type of a gcc2
7695 builtin and then its argument prototype would still apply. */
7696 char getuid ();
7698 main ()
7700 getuid ();
7702 return 0;
7704 _ACEOF
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707 (eval $ac_link) 2>conftest.er1
7708 ac_status=$?
7709 grep -v '^ *+' conftest.er1 >conftest.err
7710 rm -f conftest.er1
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } &&
7714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; } &&
7720 { ac_try='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 ac_cv_lib_c_getuid=yes
7727 else
7728 echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7731 ac_cv_lib_c_getuid=no
7733 rm -f conftest.err conftest.$ac_objext \
7734 conftest$ac_exeext conftest.$ac_ext
7735 LIBS=$ac_check_lib_save_LIBS
7737 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
7738 echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
7739 if test $ac_cv_lib_c_getuid = yes; then
7741 cat >>confdefs.h <<\_ACEOF
7742 #define HAVE_GETUID 1
7743 _ACEOF
7748 # Check for C99 (and other IEEE) math functions
7749 # ??? This list seems awful long. Is there a better way to test for these?
7750 echo "$as_me:$LINENO: checking for acosf in -lm" >&5
7751 echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
7752 if test "${ac_cv_lib_m_acosf+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 else
7755 ac_check_lib_save_LIBS=$LIBS
7756 LIBS="-lm $LIBS"
7757 if test x$gcc_no_link = xyes; then
7758 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7759 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7760 { (exit 1); exit 1; }; }
7762 cat >conftest.$ac_ext <<_ACEOF
7763 /* confdefs.h. */
7764 _ACEOF
7765 cat confdefs.h >>conftest.$ac_ext
7766 cat >>conftest.$ac_ext <<_ACEOF
7767 /* end confdefs.h. */
7769 /* Override any gcc2 internal prototype to avoid an error. */
7770 #ifdef __cplusplus
7771 extern "C"
7772 #endif
7773 /* We use char because int might match the return type of a gcc2
7774 builtin and then its argument prototype would still apply. */
7775 char acosf ();
7777 main ()
7779 acosf ();
7781 return 0;
7783 _ACEOF
7784 rm -f conftest.$ac_objext conftest$ac_exeext
7785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7786 (eval $ac_link) 2>conftest.er1
7787 ac_status=$?
7788 grep -v '^ *+' conftest.er1 >conftest.err
7789 rm -f conftest.er1
7790 cat conftest.err >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); } &&
7793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 (eval $ac_try) 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; } &&
7799 { ac_try='test -s conftest$ac_exeext'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7805 ac_cv_lib_m_acosf=yes
7806 else
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7810 ac_cv_lib_m_acosf=no
7812 rm -f conftest.err conftest.$ac_objext \
7813 conftest$ac_exeext conftest.$ac_ext
7814 LIBS=$ac_check_lib_save_LIBS
7816 echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
7817 echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
7818 if test $ac_cv_lib_m_acosf = yes; then
7820 cat >>confdefs.h <<\_ACEOF
7821 #define HAVE_ACOSF 1
7822 _ACEOF
7826 echo "$as_me:$LINENO: checking for acoshf in -lm" >&5
7827 echo $ECHO_N "checking for acoshf in -lm... $ECHO_C" >&6
7828 if test "${ac_cv_lib_m_acoshf+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831 ac_check_lib_save_LIBS=$LIBS
7832 LIBS="-lm $LIBS"
7833 if test x$gcc_no_link = xyes; then
7834 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7835 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7836 { (exit 1); exit 1; }; }
7838 cat >conftest.$ac_ext <<_ACEOF
7839 /* confdefs.h. */
7840 _ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7845 /* Override any gcc2 internal prototype to avoid an error. */
7846 #ifdef __cplusplus
7847 extern "C"
7848 #endif
7849 /* We use char because int might match the return type of a gcc2
7850 builtin and then its argument prototype would still apply. */
7851 char acoshf ();
7853 main ()
7855 acoshf ();
7857 return 0;
7859 _ACEOF
7860 rm -f conftest.$ac_objext conftest$ac_exeext
7861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7862 (eval $ac_link) 2>conftest.er1
7863 ac_status=$?
7864 grep -v '^ *+' conftest.er1 >conftest.err
7865 rm -f conftest.er1
7866 cat conftest.err >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); } &&
7869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871 (eval $ac_try) 2>&5
7872 ac_status=$?
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; } &&
7875 { ac_try='test -s conftest$ac_exeext'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 (eval $ac_try) 2>&5
7878 ac_status=$?
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 ac_cv_lib_m_acoshf=yes
7882 else
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7886 ac_cv_lib_m_acoshf=no
7888 rm -f conftest.err conftest.$ac_objext \
7889 conftest$ac_exeext conftest.$ac_ext
7890 LIBS=$ac_check_lib_save_LIBS
7892 echo "$as_me:$LINENO: result: $ac_cv_lib_m_acoshf" >&5
7893 echo "${ECHO_T}$ac_cv_lib_m_acoshf" >&6
7894 if test $ac_cv_lib_m_acoshf = yes; then
7896 cat >>confdefs.h <<\_ACEOF
7897 #define HAVE_ACOSHF 1
7898 _ACEOF
7902 echo "$as_me:$LINENO: checking for asinf in -lm" >&5
7903 echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
7904 if test "${ac_cv_lib_m_asinf+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907 ac_check_lib_save_LIBS=$LIBS
7908 LIBS="-lm $LIBS"
7909 if test x$gcc_no_link = xyes; then
7910 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7911 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7912 { (exit 1); exit 1; }; }
7914 cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h. */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7921 /* Override any gcc2 internal prototype to avoid an error. */
7922 #ifdef __cplusplus
7923 extern "C"
7924 #endif
7925 /* We use char because int might match the return type of a gcc2
7926 builtin and then its argument prototype would still apply. */
7927 char asinf ();
7929 main ()
7931 asinf ();
7933 return 0;
7935 _ACEOF
7936 rm -f conftest.$ac_objext conftest$ac_exeext
7937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7938 (eval $ac_link) 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 (eval $ac_try) 2>&5
7948 ac_status=$?
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; } &&
7951 { ac_try='test -s conftest$ac_exeext'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 (eval $ac_try) 2>&5
7954 ac_status=$?
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7957 ac_cv_lib_m_asinf=yes
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 ac_cv_lib_m_asinf=no
7964 rm -f conftest.err conftest.$ac_objext \
7965 conftest$ac_exeext conftest.$ac_ext
7966 LIBS=$ac_check_lib_save_LIBS
7968 echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
7969 echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
7970 if test $ac_cv_lib_m_asinf = yes; then
7972 cat >>confdefs.h <<\_ACEOF
7973 #define HAVE_ASINF 1
7974 _ACEOF
7978 echo "$as_me:$LINENO: checking for asinhf in -lm" >&5
7979 echo $ECHO_N "checking for asinhf in -lm... $ECHO_C" >&6
7980 if test "${ac_cv_lib_m_asinhf+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983 ac_check_lib_save_LIBS=$LIBS
7984 LIBS="-lm $LIBS"
7985 if test x$gcc_no_link = xyes; then
7986 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7987 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7988 { (exit 1); exit 1; }; }
7990 cat >conftest.$ac_ext <<_ACEOF
7991 /* confdefs.h. */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7997 /* Override any gcc2 internal prototype to avoid an error. */
7998 #ifdef __cplusplus
7999 extern "C"
8000 #endif
8001 /* We use char because int might match the return type of a gcc2
8002 builtin and then its argument prototype would still apply. */
8003 char asinhf ();
8005 main ()
8007 asinhf ();
8009 return 0;
8011 _ACEOF
8012 rm -f conftest.$ac_objext conftest$ac_exeext
8013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8014 (eval $ac_link) 2>conftest.er1
8015 ac_status=$?
8016 grep -v '^ *+' conftest.er1 >conftest.err
8017 rm -f conftest.er1
8018 cat conftest.err >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } &&
8021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 (eval $ac_try) 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; } &&
8027 { ac_try='test -s conftest$ac_exeext'
8028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029 (eval $ac_try) 2>&5
8030 ac_status=$?
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; }; then
8033 ac_cv_lib_m_asinhf=yes
8034 else
8035 echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8038 ac_cv_lib_m_asinhf=no
8040 rm -f conftest.err conftest.$ac_objext \
8041 conftest$ac_exeext conftest.$ac_ext
8042 LIBS=$ac_check_lib_save_LIBS
8044 echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinhf" >&5
8045 echo "${ECHO_T}$ac_cv_lib_m_asinhf" >&6
8046 if test $ac_cv_lib_m_asinhf = yes; then
8048 cat >>confdefs.h <<\_ACEOF
8049 #define HAVE_ASINHF 1
8050 _ACEOF
8054 echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
8055 echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
8056 if test "${ac_cv_lib_m_atan2f+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059 ac_check_lib_save_LIBS=$LIBS
8060 LIBS="-lm $LIBS"
8061 if test x$gcc_no_link = xyes; then
8062 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8063 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8064 { (exit 1); exit 1; }; }
8066 cat >conftest.$ac_ext <<_ACEOF
8067 /* confdefs.h. */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8073 /* Override any gcc2 internal prototype to avoid an error. */
8074 #ifdef __cplusplus
8075 extern "C"
8076 #endif
8077 /* We use char because int might match the return type of a gcc2
8078 builtin and then its argument prototype would still apply. */
8079 char atan2f ();
8081 main ()
8083 atan2f ();
8085 return 0;
8087 _ACEOF
8088 rm -f conftest.$ac_objext conftest$ac_exeext
8089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090 (eval $ac_link) 2>conftest.er1
8091 ac_status=$?
8092 grep -v '^ *+' conftest.er1 >conftest.err
8093 rm -f conftest.er1
8094 cat conftest.err >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } &&
8097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099 (eval $ac_try) 2>&5
8100 ac_status=$?
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; } &&
8103 { ac_try='test -s conftest$ac_exeext'
8104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105 (eval $ac_try) 2>&5
8106 ac_status=$?
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); }; }; then
8109 ac_cv_lib_m_atan2f=yes
8110 else
8111 echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8114 ac_cv_lib_m_atan2f=no
8116 rm -f conftest.err conftest.$ac_objext \
8117 conftest$ac_exeext conftest.$ac_ext
8118 LIBS=$ac_check_lib_save_LIBS
8120 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
8121 echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
8122 if test $ac_cv_lib_m_atan2f = yes; then
8124 cat >>confdefs.h <<\_ACEOF
8125 #define HAVE_ATAN2F 1
8126 _ACEOF
8130 echo "$as_me:$LINENO: checking for atanf in -lm" >&5
8131 echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
8132 if test "${ac_cv_lib_m_atanf+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135 ac_check_lib_save_LIBS=$LIBS
8136 LIBS="-lm $LIBS"
8137 if test x$gcc_no_link = xyes; then
8138 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8139 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8140 { (exit 1); exit 1; }; }
8142 cat >conftest.$ac_ext <<_ACEOF
8143 /* confdefs.h. */
8144 _ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h. */
8149 /* Override any gcc2 internal prototype to avoid an error. */
8150 #ifdef __cplusplus
8151 extern "C"
8152 #endif
8153 /* We use char because int might match the return type of a gcc2
8154 builtin and then its argument prototype would still apply. */
8155 char atanf ();
8157 main ()
8159 atanf ();
8161 return 0;
8163 _ACEOF
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8166 (eval $ac_link) 2>conftest.er1
8167 ac_status=$?
8168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } &&
8173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175 (eval $ac_try) 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; } &&
8179 { ac_try='test -s conftest$ac_exeext'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 (eval $ac_try) 2>&5
8182 ac_status=$?
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; }; then
8185 ac_cv_lib_m_atanf=yes
8186 else
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8190 ac_cv_lib_m_atanf=no
8192 rm -f conftest.err conftest.$ac_objext \
8193 conftest$ac_exeext conftest.$ac_ext
8194 LIBS=$ac_check_lib_save_LIBS
8196 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
8197 echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
8198 if test $ac_cv_lib_m_atanf = yes; then
8200 cat >>confdefs.h <<\_ACEOF
8201 #define HAVE_ATANF 1
8202 _ACEOF
8206 echo "$as_me:$LINENO: checking for atanhf in -lm" >&5
8207 echo $ECHO_N "checking for atanhf in -lm... $ECHO_C" >&6
8208 if test "${ac_cv_lib_m_atanhf+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211 ac_check_lib_save_LIBS=$LIBS
8212 LIBS="-lm $LIBS"
8213 if test x$gcc_no_link = xyes; then
8214 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8215 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8216 { (exit 1); exit 1; }; }
8218 cat >conftest.$ac_ext <<_ACEOF
8219 /* confdefs.h. */
8220 _ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8225 /* Override any gcc2 internal prototype to avoid an error. */
8226 #ifdef __cplusplus
8227 extern "C"
8228 #endif
8229 /* We use char because int might match the return type of a gcc2
8230 builtin and then its argument prototype would still apply. */
8231 char atanhf ();
8233 main ()
8235 atanhf ();
8237 return 0;
8239 _ACEOF
8240 rm -f conftest.$ac_objext conftest$ac_exeext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242 (eval $ac_link) 2>conftest.er1
8243 ac_status=$?
8244 grep -v '^ *+' conftest.er1 >conftest.err
8245 rm -f conftest.er1
8246 cat conftest.err >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); } &&
8249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 (eval $ac_try) 2>&5
8252 ac_status=$?
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; } &&
8255 { ac_try='test -s conftest$ac_exeext'
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 (eval $ac_try) 2>&5
8258 ac_status=$?
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; }; then
8261 ac_cv_lib_m_atanhf=yes
8262 else
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8266 ac_cv_lib_m_atanhf=no
8268 rm -f conftest.err conftest.$ac_objext \
8269 conftest$ac_exeext conftest.$ac_ext
8270 LIBS=$ac_check_lib_save_LIBS
8272 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhf" >&5
8273 echo "${ECHO_T}$ac_cv_lib_m_atanhf" >&6
8274 if test $ac_cv_lib_m_atanhf = yes; then
8276 cat >>confdefs.h <<\_ACEOF
8277 #define HAVE_ATANHF 1
8278 _ACEOF
8282 echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
8283 echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
8284 if test "${ac_cv_lib_m_ceilf+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287 ac_check_lib_save_LIBS=$LIBS
8288 LIBS="-lm $LIBS"
8289 if test x$gcc_no_link = xyes; then
8290 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8291 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8292 { (exit 1); exit 1; }; }
8294 cat >conftest.$ac_ext <<_ACEOF
8295 /* confdefs.h. */
8296 _ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8301 /* Override any gcc2 internal prototype to avoid an error. */
8302 #ifdef __cplusplus
8303 extern "C"
8304 #endif
8305 /* We use char because int might match the return type of a gcc2
8306 builtin and then its argument prototype would still apply. */
8307 char ceilf ();
8309 main ()
8311 ceilf ();
8313 return 0;
8315 _ACEOF
8316 rm -f conftest.$ac_objext conftest$ac_exeext
8317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8318 (eval $ac_link) 2>conftest.er1
8319 ac_status=$?
8320 grep -v '^ *+' conftest.er1 >conftest.err
8321 rm -f conftest.er1
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 (eval $ac_try) 2>&5
8328 ac_status=$?
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; } &&
8331 { ac_try='test -s conftest$ac_exeext'
8332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 (eval $ac_try) 2>&5
8334 ac_status=$?
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; }; then
8337 ac_cv_lib_m_ceilf=yes
8338 else
8339 echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8342 ac_cv_lib_m_ceilf=no
8344 rm -f conftest.err conftest.$ac_objext \
8345 conftest$ac_exeext conftest.$ac_ext
8346 LIBS=$ac_check_lib_save_LIBS
8348 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
8349 echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
8350 if test $ac_cv_lib_m_ceilf = yes; then
8352 cat >>confdefs.h <<\_ACEOF
8353 #define HAVE_CEILF 1
8354 _ACEOF
8358 echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
8359 echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
8360 if test "${ac_cv_lib_m_copysignf+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363 ac_check_lib_save_LIBS=$LIBS
8364 LIBS="-lm $LIBS"
8365 if test x$gcc_no_link = xyes; then
8366 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8367 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8368 { (exit 1); exit 1; }; }
8370 cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h. */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8377 /* Override any gcc2 internal prototype to avoid an error. */
8378 #ifdef __cplusplus
8379 extern "C"
8380 #endif
8381 /* We use char because int might match the return type of a gcc2
8382 builtin and then its argument prototype would still apply. */
8383 char copysignf ();
8385 main ()
8387 copysignf ();
8389 return 0;
8391 _ACEOF
8392 rm -f conftest.$ac_objext conftest$ac_exeext
8393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8394 (eval $ac_link) 2>conftest.er1
8395 ac_status=$?
8396 grep -v '^ *+' conftest.er1 >conftest.err
8397 rm -f conftest.er1
8398 cat conftest.err >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } &&
8401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; } &&
8407 { ac_try='test -s conftest$ac_exeext'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 (eval $ac_try) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; }; then
8413 ac_cv_lib_m_copysignf=yes
8414 else
8415 echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8418 ac_cv_lib_m_copysignf=no
8420 rm -f conftest.err conftest.$ac_objext \
8421 conftest$ac_exeext conftest.$ac_ext
8422 LIBS=$ac_check_lib_save_LIBS
8424 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
8425 echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
8426 if test $ac_cv_lib_m_copysignf = yes; then
8428 cat >>confdefs.h <<\_ACEOF
8429 #define HAVE_COPYSIGNF 1
8430 _ACEOF
8434 echo "$as_me:$LINENO: checking for cosf in -lm" >&5
8435 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
8436 if test "${ac_cv_lib_m_cosf+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439 ac_check_lib_save_LIBS=$LIBS
8440 LIBS="-lm $LIBS"
8441 if test x$gcc_no_link = xyes; then
8442 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8443 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8444 { (exit 1); exit 1; }; }
8446 cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h. */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8453 /* Override any gcc2 internal prototype to avoid an error. */
8454 #ifdef __cplusplus
8455 extern "C"
8456 #endif
8457 /* We use char because int might match the return type of a gcc2
8458 builtin and then its argument prototype would still apply. */
8459 char cosf ();
8461 main ()
8463 cosf ();
8465 return 0;
8467 _ACEOF
8468 rm -f conftest.$ac_objext conftest$ac_exeext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8470 (eval $ac_link) 2>conftest.er1
8471 ac_status=$?
8472 grep -v '^ *+' conftest.er1 >conftest.err
8473 rm -f conftest.er1
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 (eval $ac_try) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; } &&
8483 { ac_try='test -s conftest$ac_exeext'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485 (eval $ac_try) 2>&5
8486 ac_status=$?
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; }; then
8489 ac_cv_lib_m_cosf=yes
8490 else
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8494 ac_cv_lib_m_cosf=no
8496 rm -f conftest.err conftest.$ac_objext \
8497 conftest$ac_exeext conftest.$ac_ext
8498 LIBS=$ac_check_lib_save_LIBS
8500 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
8501 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
8502 if test $ac_cv_lib_m_cosf = yes; then
8504 cat >>confdefs.h <<\_ACEOF
8505 #define HAVE_COSF 1
8506 _ACEOF
8510 echo "$as_me:$LINENO: checking for coshf in -lm" >&5
8511 echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
8512 if test "${ac_cv_lib_m_coshf+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515 ac_check_lib_save_LIBS=$LIBS
8516 LIBS="-lm $LIBS"
8517 if test x$gcc_no_link = xyes; then
8518 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8519 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8520 { (exit 1); exit 1; }; }
8522 cat >conftest.$ac_ext <<_ACEOF
8523 /* confdefs.h. */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8529 /* Override any gcc2 internal prototype to avoid an error. */
8530 #ifdef __cplusplus
8531 extern "C"
8532 #endif
8533 /* We use char because int might match the return type of a gcc2
8534 builtin and then its argument prototype would still apply. */
8535 char coshf ();
8537 main ()
8539 coshf ();
8541 return 0;
8543 _ACEOF
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546 (eval $ac_link) 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 (eval $ac_try) 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; } &&
8559 { ac_try='test -s conftest$ac_exeext'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 (eval $ac_try) 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 ac_cv_lib_m_coshf=yes
8566 else
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8570 ac_cv_lib_m_coshf=no
8572 rm -f conftest.err conftest.$ac_objext \
8573 conftest$ac_exeext conftest.$ac_ext
8574 LIBS=$ac_check_lib_save_LIBS
8576 echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
8577 echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
8578 if test $ac_cv_lib_m_coshf = yes; then
8580 cat >>confdefs.h <<\_ACEOF
8581 #define HAVE_COSHF 1
8582 _ACEOF
8586 echo "$as_me:$LINENO: checking for expf in -lm" >&5
8587 echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
8588 if test "${ac_cv_lib_m_expf+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591 ac_check_lib_save_LIBS=$LIBS
8592 LIBS="-lm $LIBS"
8593 if test x$gcc_no_link = xyes; then
8594 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8595 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8596 { (exit 1); exit 1; }; }
8598 cat >conftest.$ac_ext <<_ACEOF
8599 /* confdefs.h. */
8600 _ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8605 /* Override any gcc2 internal prototype to avoid an error. */
8606 #ifdef __cplusplus
8607 extern "C"
8608 #endif
8609 /* We use char because int might match the return type of a gcc2
8610 builtin and then its argument prototype would still apply. */
8611 char expf ();
8613 main ()
8615 expf ();
8617 return 0;
8619 _ACEOF
8620 rm -f conftest.$ac_objext conftest$ac_exeext
8621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8622 (eval $ac_link) 2>conftest.er1
8623 ac_status=$?
8624 grep -v '^ *+' conftest.er1 >conftest.err
8625 rm -f conftest.er1
8626 cat conftest.err >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } &&
8629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 (eval $ac_try) 2>&5
8632 ac_status=$?
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; } &&
8635 { ac_try='test -s conftest$ac_exeext'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 (eval $ac_try) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8641 ac_cv_lib_m_expf=yes
8642 else
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8646 ac_cv_lib_m_expf=no
8648 rm -f conftest.err conftest.$ac_objext \
8649 conftest$ac_exeext conftest.$ac_ext
8650 LIBS=$ac_check_lib_save_LIBS
8652 echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
8653 echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
8654 if test $ac_cv_lib_m_expf = yes; then
8656 cat >>confdefs.h <<\_ACEOF
8657 #define HAVE_EXPF 1
8658 _ACEOF
8662 echo "$as_me:$LINENO: checking for fabsf in -lm" >&5
8663 echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6
8664 if test "${ac_cv_lib_m_fabsf+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 else
8667 ac_check_lib_save_LIBS=$LIBS
8668 LIBS="-lm $LIBS"
8669 if test x$gcc_no_link = xyes; then
8670 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8671 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8672 { (exit 1); exit 1; }; }
8674 cat >conftest.$ac_ext <<_ACEOF
8675 /* confdefs.h. */
8676 _ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8681 /* Override any gcc2 internal prototype to avoid an error. */
8682 #ifdef __cplusplus
8683 extern "C"
8684 #endif
8685 /* We use char because int might match the return type of a gcc2
8686 builtin and then its argument prototype would still apply. */
8687 char fabsf ();
8689 main ()
8691 fabsf ();
8693 return 0;
8695 _ACEOF
8696 rm -f conftest.$ac_objext conftest$ac_exeext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8698 (eval $ac_link) 2>conftest.er1
8699 ac_status=$?
8700 grep -v '^ *+' conftest.er1 >conftest.err
8701 rm -f conftest.er1
8702 cat conftest.err >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } &&
8705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; } &&
8711 { ac_try='test -s conftest$ac_exeext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 ac_cv_lib_m_fabsf=yes
8718 else
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8722 ac_cv_lib_m_fabsf=no
8724 rm -f conftest.err conftest.$ac_objext \
8725 conftest$ac_exeext conftest.$ac_ext
8726 LIBS=$ac_check_lib_save_LIBS
8728 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5
8729 echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6
8730 if test $ac_cv_lib_m_fabsf = yes; then
8732 cat >>confdefs.h <<\_ACEOF
8733 #define HAVE_FABSF 1
8734 _ACEOF
8738 echo "$as_me:$LINENO: checking for floorf in -lm" >&5
8739 echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
8740 if test "${ac_cv_lib_m_floorf+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8743 ac_check_lib_save_LIBS=$LIBS
8744 LIBS="-lm $LIBS"
8745 if test x$gcc_no_link = xyes; then
8746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8747 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8748 { (exit 1); exit 1; }; }
8750 cat >conftest.$ac_ext <<_ACEOF
8751 /* confdefs.h. */
8752 _ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8757 /* Override any gcc2 internal prototype to avoid an error. */
8758 #ifdef __cplusplus
8759 extern "C"
8760 #endif
8761 /* We use char because int might match the return type of a gcc2
8762 builtin and then its argument prototype would still apply. */
8763 char floorf ();
8765 main ()
8767 floorf ();
8769 return 0;
8771 _ACEOF
8772 rm -f conftest.$ac_objext conftest$ac_exeext
8773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8774 (eval $ac_link) 2>conftest.er1
8775 ac_status=$?
8776 grep -v '^ *+' conftest.er1 >conftest.err
8777 rm -f conftest.er1
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } &&
8781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 (eval $ac_try) 2>&5
8784 ac_status=$?
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; } &&
8787 { ac_try='test -s conftest$ac_exeext'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789 (eval $ac_try) 2>&5
8790 ac_status=$?
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; }; then
8793 ac_cv_lib_m_floorf=yes
8794 else
8795 echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8798 ac_cv_lib_m_floorf=no
8800 rm -f conftest.err conftest.$ac_objext \
8801 conftest$ac_exeext conftest.$ac_ext
8802 LIBS=$ac_check_lib_save_LIBS
8804 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
8805 echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
8806 if test $ac_cv_lib_m_floorf = yes; then
8808 cat >>confdefs.h <<\_ACEOF
8809 #define HAVE_FLOORF 1
8810 _ACEOF
8814 echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
8815 echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
8816 if test "${ac_cv_lib_m_frexpf+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 else
8819 ac_check_lib_save_LIBS=$LIBS
8820 LIBS="-lm $LIBS"
8821 if test x$gcc_no_link = xyes; then
8822 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8823 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8824 { (exit 1); exit 1; }; }
8826 cat >conftest.$ac_ext <<_ACEOF
8827 /* confdefs.h. */
8828 _ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8833 /* Override any gcc2 internal prototype to avoid an error. */
8834 #ifdef __cplusplus
8835 extern "C"
8836 #endif
8837 /* We use char because int might match the return type of a gcc2
8838 builtin and then its argument prototype would still apply. */
8839 char frexpf ();
8841 main ()
8843 frexpf ();
8845 return 0;
8847 _ACEOF
8848 rm -f conftest.$ac_objext conftest$ac_exeext
8849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8850 (eval $ac_link) 2>conftest.er1
8851 ac_status=$?
8852 grep -v '^ *+' conftest.er1 >conftest.err
8853 rm -f conftest.er1
8854 cat conftest.err >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } &&
8857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 (eval $ac_try) 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; } &&
8863 { ac_try='test -s conftest$ac_exeext'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 (eval $ac_try) 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8869 ac_cv_lib_m_frexpf=yes
8870 else
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8874 ac_cv_lib_m_frexpf=no
8876 rm -f conftest.err conftest.$ac_objext \
8877 conftest$ac_exeext conftest.$ac_ext
8878 LIBS=$ac_check_lib_save_LIBS
8880 echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
8881 echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
8882 if test $ac_cv_lib_m_frexpf = yes; then
8884 cat >>confdefs.h <<\_ACEOF
8885 #define HAVE_FREXPF 1
8886 _ACEOF
8890 echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
8891 echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
8892 if test "${ac_cv_lib_m_hypotf+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895 ac_check_lib_save_LIBS=$LIBS
8896 LIBS="-lm $LIBS"
8897 if test x$gcc_no_link = xyes; then
8898 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8900 { (exit 1); exit 1; }; }
8902 cat >conftest.$ac_ext <<_ACEOF
8903 /* confdefs.h. */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h. */
8909 /* Override any gcc2 internal prototype to avoid an error. */
8910 #ifdef __cplusplus
8911 extern "C"
8912 #endif
8913 /* We use char because int might match the return type of a gcc2
8914 builtin and then its argument prototype would still apply. */
8915 char hypotf ();
8917 main ()
8919 hypotf ();
8921 return 0;
8923 _ACEOF
8924 rm -f conftest.$ac_objext conftest$ac_exeext
8925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8926 (eval $ac_link) 2>conftest.er1
8927 ac_status=$?
8928 grep -v '^ *+' conftest.er1 >conftest.err
8929 rm -f conftest.er1
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } &&
8933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 (eval $ac_try) 2>&5
8936 ac_status=$?
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; } &&
8939 { ac_try='test -s conftest$ac_exeext'
8940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 (eval $ac_try) 2>&5
8942 ac_status=$?
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); }; }; then
8945 ac_cv_lib_m_hypotf=yes
8946 else
8947 echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8950 ac_cv_lib_m_hypotf=no
8952 rm -f conftest.err conftest.$ac_objext \
8953 conftest$ac_exeext conftest.$ac_ext
8954 LIBS=$ac_check_lib_save_LIBS
8956 echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
8957 echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
8958 if test $ac_cv_lib_m_hypotf = yes; then
8960 cat >>confdefs.h <<\_ACEOF
8961 #define HAVE_HYPOTF 1
8962 _ACEOF
8966 echo "$as_me:$LINENO: checking for logf in -lm" >&5
8967 echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
8968 if test "${ac_cv_lib_m_logf+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8970 else
8971 ac_check_lib_save_LIBS=$LIBS
8972 LIBS="-lm $LIBS"
8973 if test x$gcc_no_link = xyes; then
8974 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8975 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8976 { (exit 1); exit 1; }; }
8978 cat >conftest.$ac_ext <<_ACEOF
8979 /* confdefs.h. */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8985 /* Override any gcc2 internal prototype to avoid an error. */
8986 #ifdef __cplusplus
8987 extern "C"
8988 #endif
8989 /* We use char because int might match the return type of a gcc2
8990 builtin and then its argument prototype would still apply. */
8991 char logf ();
8993 main ()
8995 logf ();
8997 return 0;
8999 _ACEOF
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9002 (eval $ac_link) 2>conftest.er1
9003 ac_status=$?
9004 grep -v '^ *+' conftest.er1 >conftest.err
9005 rm -f conftest.er1
9006 cat conftest.err >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } &&
9009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 (eval $ac_try) 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; } &&
9015 { ac_try='test -s conftest$ac_exeext'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 (eval $ac_try) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; }; then
9021 ac_cv_lib_m_logf=yes
9022 else
9023 echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.$ac_ext >&5
9026 ac_cv_lib_m_logf=no
9028 rm -f conftest.err conftest.$ac_objext \
9029 conftest$ac_exeext conftest.$ac_ext
9030 LIBS=$ac_check_lib_save_LIBS
9032 echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
9033 echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
9034 if test $ac_cv_lib_m_logf = yes; then
9036 cat >>confdefs.h <<\_ACEOF
9037 #define HAVE_LOGF 1
9038 _ACEOF
9042 echo "$as_me:$LINENO: checking for log10f in -lm" >&5
9043 echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
9044 if test "${ac_cv_lib_m_log10f+set}" = set; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9046 else
9047 ac_check_lib_save_LIBS=$LIBS
9048 LIBS="-lm $LIBS"
9049 if test x$gcc_no_link = xyes; then
9050 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9051 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9052 { (exit 1); exit 1; }; }
9054 cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h. */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9061 /* Override any gcc2 internal prototype to avoid an error. */
9062 #ifdef __cplusplus
9063 extern "C"
9064 #endif
9065 /* We use char because int might match the return type of a gcc2
9066 builtin and then its argument prototype would still apply. */
9067 char log10f ();
9069 main ()
9071 log10f ();
9073 return 0;
9075 _ACEOF
9076 rm -f conftest.$ac_objext conftest$ac_exeext
9077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9078 (eval $ac_link) 2>conftest.er1
9079 ac_status=$?
9080 grep -v '^ *+' conftest.er1 >conftest.err
9081 rm -f conftest.er1
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } &&
9085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087 (eval $ac_try) 2>&5
9088 ac_status=$?
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); }; } &&
9091 { ac_try='test -s conftest$ac_exeext'
9092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093 (eval $ac_try) 2>&5
9094 ac_status=$?
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); }; }; then
9097 ac_cv_lib_m_log10f=yes
9098 else
9099 echo "$as_me: failed program was:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9102 ac_cv_lib_m_log10f=no
9104 rm -f conftest.err conftest.$ac_objext \
9105 conftest$ac_exeext conftest.$ac_ext
9106 LIBS=$ac_check_lib_save_LIBS
9108 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
9109 echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
9110 if test $ac_cv_lib_m_log10f = yes; then
9112 cat >>confdefs.h <<\_ACEOF
9113 #define HAVE_LOG10F 1
9114 _ACEOF
9118 echo "$as_me:$LINENO: checking for log10l in -lm" >&5
9119 echo $ECHO_N "checking for log10l in -lm... $ECHO_C" >&6
9120 if test "${ac_cv_lib_m_log10l+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 else
9123 ac_check_lib_save_LIBS=$LIBS
9124 LIBS="-lm $LIBS"
9125 if test x$gcc_no_link = xyes; then
9126 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9127 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9128 { (exit 1); exit 1; }; }
9130 cat >conftest.$ac_ext <<_ACEOF
9131 /* confdefs.h. */
9132 _ACEOF
9133 cat confdefs.h >>conftest.$ac_ext
9134 cat >>conftest.$ac_ext <<_ACEOF
9135 /* end confdefs.h. */
9137 /* Override any gcc2 internal prototype to avoid an error. */
9138 #ifdef __cplusplus
9139 extern "C"
9140 #endif
9141 /* We use char because int might match the return type of a gcc2
9142 builtin and then its argument prototype would still apply. */
9143 char log10l ();
9145 main ()
9147 log10l ();
9149 return 0;
9151 _ACEOF
9152 rm -f conftest.$ac_objext conftest$ac_exeext
9153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9154 (eval $ac_link) 2>conftest.er1
9155 ac_status=$?
9156 grep -v '^ *+' conftest.er1 >conftest.err
9157 rm -f conftest.er1
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } &&
9161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 (eval $ac_try) 2>&5
9164 ac_status=$?
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; } &&
9167 { ac_try='test -s conftest$ac_exeext'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 (eval $ac_try) 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; }; then
9173 ac_cv_lib_m_log10l=yes
9174 else
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9178 ac_cv_lib_m_log10l=no
9180 rm -f conftest.err conftest.$ac_objext \
9181 conftest$ac_exeext conftest.$ac_ext
9182 LIBS=$ac_check_lib_save_LIBS
9184 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10l" >&5
9185 echo "${ECHO_T}$ac_cv_lib_m_log10l" >&6
9186 if test $ac_cv_lib_m_log10l = yes; then
9188 cat >>confdefs.h <<\_ACEOF
9189 #define HAVE_LOG10L 1
9190 _ACEOF
9194 echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
9195 echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
9196 if test "${ac_cv_lib_m_nextafter+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 else
9199 ac_check_lib_save_LIBS=$LIBS
9200 LIBS="-lm $LIBS"
9201 if test x$gcc_no_link = xyes; then
9202 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9203 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9204 { (exit 1); exit 1; }; }
9206 cat >conftest.$ac_ext <<_ACEOF
9207 /* confdefs.h. */
9208 _ACEOF
9209 cat confdefs.h >>conftest.$ac_ext
9210 cat >>conftest.$ac_ext <<_ACEOF
9211 /* end confdefs.h. */
9213 /* Override any gcc2 internal prototype to avoid an error. */
9214 #ifdef __cplusplus
9215 extern "C"
9216 #endif
9217 /* We use char because int might match the return type of a gcc2
9218 builtin and then its argument prototype would still apply. */
9219 char nextafter ();
9221 main ()
9223 nextafter ();
9225 return 0;
9227 _ACEOF
9228 rm -f conftest.$ac_objext conftest$ac_exeext
9229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9230 (eval $ac_link) 2>conftest.er1
9231 ac_status=$?
9232 grep -v '^ *+' conftest.er1 >conftest.err
9233 rm -f conftest.er1
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } &&
9237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 (eval $ac_try) 2>&5
9240 ac_status=$?
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; } &&
9243 { ac_try='test -s conftest$ac_exeext'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 (eval $ac_try) 2>&5
9246 ac_status=$?
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 ac_cv_lib_m_nextafter=yes
9250 else
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9254 ac_cv_lib_m_nextafter=no
9256 rm -f conftest.err conftest.$ac_objext \
9257 conftest$ac_exeext conftest.$ac_ext
9258 LIBS=$ac_check_lib_save_LIBS
9260 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
9261 echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
9262 if test $ac_cv_lib_m_nextafter = yes; then
9264 cat >>confdefs.h <<\_ACEOF
9265 #define HAVE_NEXTAFTER 1
9266 _ACEOF
9270 echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
9271 echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
9272 if test "${ac_cv_lib_m_nextafterf+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275 ac_check_lib_save_LIBS=$LIBS
9276 LIBS="-lm $LIBS"
9277 if test x$gcc_no_link = xyes; then
9278 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9279 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9280 { (exit 1); exit 1; }; }
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h. */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9289 /* Override any gcc2 internal prototype to avoid an error. */
9290 #ifdef __cplusplus
9291 extern "C"
9292 #endif
9293 /* We use char because int might match the return type of a gcc2
9294 builtin and then its argument prototype would still apply. */
9295 char nextafterf ();
9297 main ()
9299 nextafterf ();
9301 return 0;
9303 _ACEOF
9304 rm -f conftest.$ac_objext conftest$ac_exeext
9305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9306 (eval $ac_link) 2>conftest.er1
9307 ac_status=$?
9308 grep -v '^ *+' conftest.er1 >conftest.err
9309 rm -f conftest.er1
9310 cat conftest.err >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } &&
9313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 (eval $ac_try) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; } &&
9319 { ac_try='test -s conftest$ac_exeext'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 (eval $ac_try) 2>&5
9322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9325 ac_cv_lib_m_nextafterf=yes
9326 else
9327 echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9330 ac_cv_lib_m_nextafterf=no
9332 rm -f conftest.err conftest.$ac_objext \
9333 conftest$ac_exeext conftest.$ac_ext
9334 LIBS=$ac_check_lib_save_LIBS
9336 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
9337 echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
9338 if test $ac_cv_lib_m_nextafterf = yes; then
9340 cat >>confdefs.h <<\_ACEOF
9341 #define HAVE_NEXTAFTERF 1
9342 _ACEOF
9346 echo "$as_me:$LINENO: checking for powf in -lm" >&5
9347 echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
9348 if test "${ac_cv_lib_m_powf+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351 ac_check_lib_save_LIBS=$LIBS
9352 LIBS="-lm $LIBS"
9353 if test x$gcc_no_link = xyes; then
9354 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9355 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9356 { (exit 1); exit 1; }; }
9358 cat >conftest.$ac_ext <<_ACEOF
9359 /* confdefs.h. */
9360 _ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9365 /* Override any gcc2 internal prototype to avoid an error. */
9366 #ifdef __cplusplus
9367 extern "C"
9368 #endif
9369 /* We use char because int might match the return type of a gcc2
9370 builtin and then its argument prototype would still apply. */
9371 char powf ();
9373 main ()
9375 powf ();
9377 return 0;
9379 _ACEOF
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382 (eval $ac_link) 2>conftest.er1
9383 ac_status=$?
9384 grep -v '^ *+' conftest.er1 >conftest.err
9385 rm -f conftest.er1
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } &&
9389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 (eval $ac_try) 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; } &&
9395 { ac_try='test -s conftest$ac_exeext'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 (eval $ac_try) 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 ac_cv_lib_m_powf=yes
9402 else
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_cv_lib_m_powf=no
9408 rm -f conftest.err conftest.$ac_objext \
9409 conftest$ac_exeext conftest.$ac_ext
9410 LIBS=$ac_check_lib_save_LIBS
9412 echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
9413 echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
9414 if test $ac_cv_lib_m_powf = yes; then
9416 cat >>confdefs.h <<\_ACEOF
9417 #define HAVE_POWF 1
9418 _ACEOF
9422 echo "$as_me:$LINENO: checking for round in -lm" >&5
9423 echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
9424 if test "${ac_cv_lib_m_round+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 else
9427 ac_check_lib_save_LIBS=$LIBS
9428 LIBS="-lm $LIBS"
9429 if test x$gcc_no_link = xyes; then
9430 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9431 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9432 { (exit 1); exit 1; }; }
9434 cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h. */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9441 /* Override any gcc2 internal prototype to avoid an error. */
9442 #ifdef __cplusplus
9443 extern "C"
9444 #endif
9445 /* We use char because int might match the return type of a gcc2
9446 builtin and then its argument prototype would still apply. */
9447 char round ();
9449 main ()
9451 round ();
9453 return 0;
9455 _ACEOF
9456 rm -f conftest.$ac_objext conftest$ac_exeext
9457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9458 (eval $ac_link) 2>conftest.er1
9459 ac_status=$?
9460 grep -v '^ *+' conftest.er1 >conftest.err
9461 rm -f conftest.er1
9462 cat conftest.err >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } &&
9465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; } &&
9471 { ac_try='test -s conftest$ac_exeext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 (eval $ac_try) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 ac_cv_lib_m_round=yes
9478 else
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9482 ac_cv_lib_m_round=no
9484 rm -f conftest.err conftest.$ac_objext \
9485 conftest$ac_exeext conftest.$ac_ext
9486 LIBS=$ac_check_lib_save_LIBS
9488 echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
9489 echo "${ECHO_T}$ac_cv_lib_m_round" >&6
9490 if test $ac_cv_lib_m_round = yes; then
9492 cat >>confdefs.h <<\_ACEOF
9493 #define HAVE_ROUND 1
9494 _ACEOF
9498 echo "$as_me:$LINENO: checking for roundf in -lm" >&5
9499 echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
9500 if test "${ac_cv_lib_m_roundf+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503 ac_check_lib_save_LIBS=$LIBS
9504 LIBS="-lm $LIBS"
9505 if test x$gcc_no_link = xyes; then
9506 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9507 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9508 { (exit 1); exit 1; }; }
9510 cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h. */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9517 /* Override any gcc2 internal prototype to avoid an error. */
9518 #ifdef __cplusplus
9519 extern "C"
9520 #endif
9521 /* We use char because int might match the return type of a gcc2
9522 builtin and then its argument prototype would still apply. */
9523 char roundf ();
9525 main ()
9527 roundf ();
9529 return 0;
9531 _ACEOF
9532 rm -f conftest.$ac_objext conftest$ac_exeext
9533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9534 (eval $ac_link) 2>conftest.er1
9535 ac_status=$?
9536 grep -v '^ *+' conftest.er1 >conftest.err
9537 rm -f conftest.er1
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } &&
9541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 (eval $ac_try) 2>&5
9544 ac_status=$?
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; } &&
9547 { ac_try='test -s conftest$ac_exeext'
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 (eval $ac_try) 2>&5
9550 ac_status=$?
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; }; then
9553 ac_cv_lib_m_roundf=yes
9554 else
9555 echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9558 ac_cv_lib_m_roundf=no
9560 rm -f conftest.err conftest.$ac_objext \
9561 conftest$ac_exeext conftest.$ac_ext
9562 LIBS=$ac_check_lib_save_LIBS
9564 echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
9565 echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
9566 if test $ac_cv_lib_m_roundf = yes; then
9568 cat >>confdefs.h <<\_ACEOF
9569 #define HAVE_ROUNDF 1
9570 _ACEOF
9574 echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
9575 echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
9576 if test "${ac_cv_lib_m_scalbnf+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 else
9579 ac_check_lib_save_LIBS=$LIBS
9580 LIBS="-lm $LIBS"
9581 if test x$gcc_no_link = xyes; then
9582 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9583 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9584 { (exit 1); exit 1; }; }
9586 cat >conftest.$ac_ext <<_ACEOF
9587 /* confdefs.h. */
9588 _ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9593 /* Override any gcc2 internal prototype to avoid an error. */
9594 #ifdef __cplusplus
9595 extern "C"
9596 #endif
9597 /* We use char because int might match the return type of a gcc2
9598 builtin and then its argument prototype would still apply. */
9599 char scalbnf ();
9601 main ()
9603 scalbnf ();
9605 return 0;
9607 _ACEOF
9608 rm -f conftest.$ac_objext conftest$ac_exeext
9609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9610 (eval $ac_link) 2>conftest.er1
9611 ac_status=$?
9612 grep -v '^ *+' conftest.er1 >conftest.err
9613 rm -f conftest.er1
9614 cat conftest.err >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } &&
9617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 (eval $ac_try) 2>&5
9620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; } &&
9623 { ac_try='test -s conftest$ac_exeext'
9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625 (eval $ac_try) 2>&5
9626 ac_status=$?
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; }; then
9629 ac_cv_lib_m_scalbnf=yes
9630 else
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9634 ac_cv_lib_m_scalbnf=no
9636 rm -f conftest.err conftest.$ac_objext \
9637 conftest$ac_exeext conftest.$ac_ext
9638 LIBS=$ac_check_lib_save_LIBS
9640 echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
9641 echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
9642 if test $ac_cv_lib_m_scalbnf = yes; then
9644 cat >>confdefs.h <<\_ACEOF
9645 #define HAVE_SCALBNF 1
9646 _ACEOF
9650 echo "$as_me:$LINENO: checking for scalbn in -lm" >&5
9651 echo $ECHO_N "checking for scalbn in -lm... $ECHO_C" >&6
9652 if test "${ac_cv_lib_m_scalbn+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 else
9655 ac_check_lib_save_LIBS=$LIBS
9656 LIBS="-lm $LIBS"
9657 if test x$gcc_no_link = xyes; then
9658 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9659 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9660 { (exit 1); exit 1; }; }
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h. */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9669 /* Override any gcc2 internal prototype to avoid an error. */
9670 #ifdef __cplusplus
9671 extern "C"
9672 #endif
9673 /* We use char because int might match the return type of a gcc2
9674 builtin and then its argument prototype would still apply. */
9675 char scalbn ();
9677 main ()
9679 scalbn ();
9681 return 0;
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686 (eval $ac_link) 2>conftest.er1
9687 ac_status=$?
9688 grep -v '^ *+' conftest.er1 >conftest.err
9689 rm -f conftest.er1
9690 cat conftest.err >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try='test -s conftest$ac_exeext'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 (eval $ac_try) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_cv_lib_m_scalbn=yes
9706 else
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_cv_lib_m_scalbn=no
9712 rm -f conftest.err conftest.$ac_objext \
9713 conftest$ac_exeext conftest.$ac_ext
9714 LIBS=$ac_check_lib_save_LIBS
9716 echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbn" >&5
9717 echo "${ECHO_T}$ac_cv_lib_m_scalbn" >&6
9718 if test $ac_cv_lib_m_scalbn = yes; then
9720 cat >>confdefs.h <<\_ACEOF
9721 #define HAVE_SCALBN 1
9722 _ACEOF
9726 echo "$as_me:$LINENO: checking for sinf in -lm" >&5
9727 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
9728 if test "${ac_cv_lib_m_sinf+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 else
9731 ac_check_lib_save_LIBS=$LIBS
9732 LIBS="-lm $LIBS"
9733 if test x$gcc_no_link = xyes; then
9734 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9735 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9736 { (exit 1); exit 1; }; }
9738 cat >conftest.$ac_ext <<_ACEOF
9739 /* confdefs.h. */
9740 _ACEOF
9741 cat confdefs.h >>conftest.$ac_ext
9742 cat >>conftest.$ac_ext <<_ACEOF
9743 /* end confdefs.h. */
9745 /* Override any gcc2 internal prototype to avoid an error. */
9746 #ifdef __cplusplus
9747 extern "C"
9748 #endif
9749 /* We use char because int might match the return type of a gcc2
9750 builtin and then its argument prototype would still apply. */
9751 char sinf ();
9753 main ()
9755 sinf ();
9757 return 0;
9759 _ACEOF
9760 rm -f conftest.$ac_objext conftest$ac_exeext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9762 (eval $ac_link) 2>conftest.er1
9763 ac_status=$?
9764 grep -v '^ *+' conftest.er1 >conftest.err
9765 rm -f conftest.er1
9766 cat conftest.err >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } &&
9769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 (eval $ac_try) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; } &&
9775 { ac_try='test -s conftest$ac_exeext'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 (eval $ac_try) 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781 ac_cv_lib_m_sinf=yes
9782 else
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9786 ac_cv_lib_m_sinf=no
9788 rm -f conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
9790 LIBS=$ac_check_lib_save_LIBS
9792 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
9793 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
9794 if test $ac_cv_lib_m_sinf = yes; then
9796 cat >>confdefs.h <<\_ACEOF
9797 #define HAVE_SINF 1
9798 _ACEOF
9802 echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
9803 echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
9804 if test "${ac_cv_lib_m_sinhf+set}" = set; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 else
9807 ac_check_lib_save_LIBS=$LIBS
9808 LIBS="-lm $LIBS"
9809 if test x$gcc_no_link = xyes; then
9810 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9811 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9812 { (exit 1); exit 1; }; }
9814 cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h. */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9821 /* Override any gcc2 internal prototype to avoid an error. */
9822 #ifdef __cplusplus
9823 extern "C"
9824 #endif
9825 /* We use char because int might match the return type of a gcc2
9826 builtin and then its argument prototype would still apply. */
9827 char sinhf ();
9829 main ()
9831 sinhf ();
9833 return 0;
9835 _ACEOF
9836 rm -f conftest.$ac_objext conftest$ac_exeext
9837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9838 (eval $ac_link) 2>conftest.er1
9839 ac_status=$?
9840 grep -v '^ *+' conftest.er1 >conftest.err
9841 rm -f conftest.er1
9842 cat conftest.err >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } &&
9845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847 (eval $ac_try) 2>&5
9848 ac_status=$?
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; } &&
9851 { ac_try='test -s conftest$ac_exeext'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 (eval $ac_try) 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9857 ac_cv_lib_m_sinhf=yes
9858 else
9859 echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9862 ac_cv_lib_m_sinhf=no
9864 rm -f conftest.err conftest.$ac_objext \
9865 conftest$ac_exeext conftest.$ac_ext
9866 LIBS=$ac_check_lib_save_LIBS
9868 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
9869 echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
9870 if test $ac_cv_lib_m_sinhf = yes; then
9872 cat >>confdefs.h <<\_ACEOF
9873 #define HAVE_SINHF 1
9874 _ACEOF
9878 echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
9879 echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
9880 if test "${ac_cv_lib_m_sqrtf+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 else
9883 ac_check_lib_save_LIBS=$LIBS
9884 LIBS="-lm $LIBS"
9885 if test x$gcc_no_link = xyes; then
9886 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9887 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9888 { (exit 1); exit 1; }; }
9890 cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h. */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9897 /* Override any gcc2 internal prototype to avoid an error. */
9898 #ifdef __cplusplus
9899 extern "C"
9900 #endif
9901 /* We use char because int might match the return type of a gcc2
9902 builtin and then its argument prototype would still apply. */
9903 char sqrtf ();
9905 main ()
9907 sqrtf ();
9909 return 0;
9911 _ACEOF
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914 (eval $ac_link) 2>conftest.er1
9915 ac_status=$?
9916 grep -v '^ *+' conftest.er1 >conftest.err
9917 rm -f conftest.er1
9918 cat conftest.err >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } &&
9921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 (eval $ac_try) 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; } &&
9927 { ac_try='test -s conftest$ac_exeext'
9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 (eval $ac_try) 2>&5
9930 ac_status=$?
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; }; then
9933 ac_cv_lib_m_sqrtf=yes
9934 else
9935 echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9938 ac_cv_lib_m_sqrtf=no
9940 rm -f conftest.err conftest.$ac_objext \
9941 conftest$ac_exeext conftest.$ac_ext
9942 LIBS=$ac_check_lib_save_LIBS
9944 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
9945 echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
9946 if test $ac_cv_lib_m_sqrtf = yes; then
9948 cat >>confdefs.h <<\_ACEOF
9949 #define HAVE_SQRTF 1
9950 _ACEOF
9954 echo "$as_me:$LINENO: checking for tanf in -lm" >&5
9955 echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
9956 if test "${ac_cv_lib_m_tanf+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 else
9959 ac_check_lib_save_LIBS=$LIBS
9960 LIBS="-lm $LIBS"
9961 if test x$gcc_no_link = xyes; then
9962 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9963 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9964 { (exit 1); exit 1; }; }
9966 cat >conftest.$ac_ext <<_ACEOF
9967 /* confdefs.h. */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9973 /* Override any gcc2 internal prototype to avoid an error. */
9974 #ifdef __cplusplus
9975 extern "C"
9976 #endif
9977 /* We use char because int might match the return type of a gcc2
9978 builtin and then its argument prototype would still apply. */
9979 char tanf ();
9981 main ()
9983 tanf ();
9985 return 0;
9987 _ACEOF
9988 rm -f conftest.$ac_objext conftest$ac_exeext
9989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9990 (eval $ac_link) 2>conftest.er1
9991 ac_status=$?
9992 grep -v '^ *+' conftest.er1 >conftest.err
9993 rm -f conftest.er1
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } &&
9997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_cv_lib_m_tanf=yes
10010 else
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10014 ac_cv_lib_m_tanf=no
10016 rm -f conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10018 LIBS=$ac_check_lib_save_LIBS
10020 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
10021 echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
10022 if test $ac_cv_lib_m_tanf = yes; then
10024 cat >>confdefs.h <<\_ACEOF
10025 #define HAVE_TANF 1
10026 _ACEOF
10030 echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
10031 echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
10032 if test "${ac_cv_lib_m_tanhf+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035 ac_check_lib_save_LIBS=$LIBS
10036 LIBS="-lm $LIBS"
10037 if test x$gcc_no_link = xyes; then
10038 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10039 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10040 { (exit 1); exit 1; }; }
10042 cat >conftest.$ac_ext <<_ACEOF
10043 /* confdefs.h. */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10049 /* Override any gcc2 internal prototype to avoid an error. */
10050 #ifdef __cplusplus
10051 extern "C"
10052 #endif
10053 /* We use char because int might match the return type of a gcc2
10054 builtin and then its argument prototype would still apply. */
10055 char tanhf ();
10057 main ()
10059 tanhf ();
10061 return 0;
10063 _ACEOF
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10066 (eval $ac_link) 2>conftest.er1
10067 ac_status=$?
10068 grep -v '^ *+' conftest.er1 >conftest.err
10069 rm -f conftest.er1
10070 cat conftest.err >&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } &&
10073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; } &&
10079 { ac_try='test -s conftest$ac_exeext'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }; then
10085 ac_cv_lib_m_tanhf=yes
10086 else
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 ac_cv_lib_m_tanhf=no
10092 rm -f conftest.err conftest.$ac_objext \
10093 conftest$ac_exeext conftest.$ac_ext
10094 LIBS=$ac_check_lib_save_LIBS
10096 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
10097 echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
10098 if test $ac_cv_lib_m_tanhf = yes; then
10100 cat >>confdefs.h <<\_ACEOF
10101 #define HAVE_TANHF 1
10102 _ACEOF
10106 echo "$as_me:$LINENO: checking for trunc in -lm" >&5
10107 echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6
10108 if test "${ac_cv_lib_m_trunc+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 else
10111 ac_check_lib_save_LIBS=$LIBS
10112 LIBS="-lm $LIBS"
10113 if test x$gcc_no_link = xyes; then
10114 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10115 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10116 { (exit 1); exit 1; }; }
10118 cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h. */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10125 /* Override any gcc2 internal prototype to avoid an error. */
10126 #ifdef __cplusplus
10127 extern "C"
10128 #endif
10129 /* We use char because int might match the return type of a gcc2
10130 builtin and then its argument prototype would still apply. */
10131 char trunc ();
10133 main ()
10135 trunc ();
10137 return 0;
10139 _ACEOF
10140 rm -f conftest.$ac_objext conftest$ac_exeext
10141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142 (eval $ac_link) 2>conftest.er1
10143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; } &&
10155 { ac_try='test -s conftest$ac_exeext'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 ac_cv_lib_m_trunc=yes
10162 else
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10166 ac_cv_lib_m_trunc=no
10168 rm -f conftest.err conftest.$ac_objext \
10169 conftest$ac_exeext conftest.$ac_ext
10170 LIBS=$ac_check_lib_save_LIBS
10172 echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5
10173 echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6
10174 if test $ac_cv_lib_m_trunc = yes; then
10176 cat >>confdefs.h <<\_ACEOF
10177 #define HAVE_TRUNC 1
10178 _ACEOF
10182 echo "$as_me:$LINENO: checking for truncf in -lm" >&5
10183 echo $ECHO_N "checking for truncf in -lm... $ECHO_C" >&6
10184 if test "${ac_cv_lib_m_truncf+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10186 else
10187 ac_check_lib_save_LIBS=$LIBS
10188 LIBS="-lm $LIBS"
10189 if test x$gcc_no_link = xyes; then
10190 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10191 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10192 { (exit 1); exit 1; }; }
10194 cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h. */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10201 /* Override any gcc2 internal prototype to avoid an error. */
10202 #ifdef __cplusplus
10203 extern "C"
10204 #endif
10205 /* We use char because int might match the return type of a gcc2
10206 builtin and then its argument prototype would still apply. */
10207 char truncf ();
10209 main ()
10211 truncf ();
10213 return 0;
10215 _ACEOF
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218 (eval $ac_link) 2>conftest.er1
10219 ac_status=$?
10220 grep -v '^ *+' conftest.er1 >conftest.err
10221 rm -f conftest.er1
10222 cat conftest.err >&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } &&
10225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; } &&
10231 { ac_try='test -s conftest$ac_exeext'
10232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233 (eval $ac_try) 2>&5
10234 ac_status=$?
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; }; then
10237 ac_cv_lib_m_truncf=yes
10238 else
10239 echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10242 ac_cv_lib_m_truncf=no
10244 rm -f conftest.err conftest.$ac_objext \
10245 conftest$ac_exeext conftest.$ac_ext
10246 LIBS=$ac_check_lib_save_LIBS
10248 echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncf" >&5
10249 echo "${ECHO_T}$ac_cv_lib_m_truncf" >&6
10250 if test $ac_cv_lib_m_truncf = yes; then
10252 cat >>confdefs.h <<\_ACEOF
10253 #define HAVE_TRUNCF 1
10254 _ACEOF
10258 echo "$as_me:$LINENO: checking for erf in -lm" >&5
10259 echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
10260 if test "${ac_cv_lib_m_erf+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263 ac_check_lib_save_LIBS=$LIBS
10264 LIBS="-lm $LIBS"
10265 if test x$gcc_no_link = xyes; then
10266 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10267 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10268 { (exit 1); exit 1; }; }
10270 cat >conftest.$ac_ext <<_ACEOF
10271 /* confdefs.h. */
10272 _ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h. */
10277 /* Override any gcc2 internal prototype to avoid an error. */
10278 #ifdef __cplusplus
10279 extern "C"
10280 #endif
10281 /* We use char because int might match the return type of a gcc2
10282 builtin and then its argument prototype would still apply. */
10283 char erf ();
10285 main ()
10287 erf ();
10289 return 0;
10291 _ACEOF
10292 rm -f conftest.$ac_objext conftest$ac_exeext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294 (eval $ac_link) 2>conftest.er1
10295 ac_status=$?
10296 grep -v '^ *+' conftest.er1 >conftest.err
10297 rm -f conftest.er1
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
10301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10304 ac_status=$?
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; } &&
10307 { ac_try='test -s conftest$ac_exeext'
10308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309 (eval $ac_try) 2>&5
10310 ac_status=$?
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; }; then
10313 ac_cv_lib_m_erf=yes
10314 else
10315 echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10318 ac_cv_lib_m_erf=no
10320 rm -f conftest.err conftest.$ac_objext \
10321 conftest$ac_exeext conftest.$ac_ext
10322 LIBS=$ac_check_lib_save_LIBS
10324 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
10325 echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
10326 if test $ac_cv_lib_m_erf = yes; then
10328 cat >>confdefs.h <<\_ACEOF
10329 #define HAVE_ERF 1
10330 _ACEOF
10334 echo "$as_me:$LINENO: checking for erfc in -lm" >&5
10335 echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
10336 if test "${ac_cv_lib_m_erfc+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 else
10339 ac_check_lib_save_LIBS=$LIBS
10340 LIBS="-lm $LIBS"
10341 if test x$gcc_no_link = xyes; then
10342 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10343 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10344 { (exit 1); exit 1; }; }
10346 cat >conftest.$ac_ext <<_ACEOF
10347 /* confdefs.h. */
10348 _ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h. */
10353 /* Override any gcc2 internal prototype to avoid an error. */
10354 #ifdef __cplusplus
10355 extern "C"
10356 #endif
10357 /* We use char because int might match the return type of a gcc2
10358 builtin and then its argument prototype would still apply. */
10359 char erfc ();
10361 main ()
10363 erfc ();
10365 return 0;
10367 _ACEOF
10368 rm -f conftest.$ac_objext conftest$ac_exeext
10369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10370 (eval $ac_link) 2>conftest.er1
10371 ac_status=$?
10372 grep -v '^ *+' conftest.er1 >conftest.err
10373 rm -f conftest.er1
10374 cat conftest.err >&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); } &&
10377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379 (eval $ac_try) 2>&5
10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; } &&
10383 { ac_try='test -s conftest$ac_exeext'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; }; then
10389 ac_cv_lib_m_erfc=yes
10390 else
10391 echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.$ac_ext >&5
10394 ac_cv_lib_m_erfc=no
10396 rm -f conftest.err conftest.$ac_objext \
10397 conftest$ac_exeext conftest.$ac_ext
10398 LIBS=$ac_check_lib_save_LIBS
10400 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
10401 echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
10402 if test $ac_cv_lib_m_erfc = yes; then
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_ERFC 1
10406 _ACEOF
10410 echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
10411 echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
10412 if test "${ac_cv_lib_m_erfcf+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 else
10415 ac_check_lib_save_LIBS=$LIBS
10416 LIBS="-lm $LIBS"
10417 if test x$gcc_no_link = xyes; then
10418 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10419 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10420 { (exit 1); exit 1; }; }
10422 cat >conftest.$ac_ext <<_ACEOF
10423 /* confdefs.h. */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10429 /* Override any gcc2 internal prototype to avoid an error. */
10430 #ifdef __cplusplus
10431 extern "C"
10432 #endif
10433 /* We use char because int might match the return type of a gcc2
10434 builtin and then its argument prototype would still apply. */
10435 char erfcf ();
10437 main ()
10439 erfcf ();
10441 return 0;
10443 _ACEOF
10444 rm -f conftest.$ac_objext conftest$ac_exeext
10445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10446 (eval $ac_link) 2>conftest.er1
10447 ac_status=$?
10448 grep -v '^ *+' conftest.er1 >conftest.err
10449 rm -f conftest.er1
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } &&
10453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10456 ac_status=$?
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; } &&
10459 { ac_try='test -s conftest$ac_exeext'
10460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461 (eval $ac_try) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; }; then
10465 ac_cv_lib_m_erfcf=yes
10466 else
10467 echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10470 ac_cv_lib_m_erfcf=no
10472 rm -f conftest.err conftest.$ac_objext \
10473 conftest$ac_exeext conftest.$ac_ext
10474 LIBS=$ac_check_lib_save_LIBS
10476 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
10477 echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
10478 if test $ac_cv_lib_m_erfcf = yes; then
10480 cat >>confdefs.h <<\_ACEOF
10481 #define HAVE_ERFCF 1
10482 _ACEOF
10486 echo "$as_me:$LINENO: checking for erff in -lm" >&5
10487 echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
10488 if test "${ac_cv_lib_m_erff+set}" = set; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 else
10491 ac_check_lib_save_LIBS=$LIBS
10492 LIBS="-lm $LIBS"
10493 if test x$gcc_no_link = xyes; then
10494 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10495 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10496 { (exit 1); exit 1; }; }
10498 cat >conftest.$ac_ext <<_ACEOF
10499 /* confdefs.h. */
10500 _ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10505 /* Override any gcc2 internal prototype to avoid an error. */
10506 #ifdef __cplusplus
10507 extern "C"
10508 #endif
10509 /* We use char because int might match the return type of a gcc2
10510 builtin and then its argument prototype would still apply. */
10511 char erff ();
10513 main ()
10515 erff ();
10517 return 0;
10519 _ACEOF
10520 rm -f conftest.$ac_objext conftest$ac_exeext
10521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10522 (eval $ac_link) 2>conftest.er1
10523 ac_status=$?
10524 grep -v '^ *+' conftest.er1 >conftest.err
10525 rm -f conftest.er1
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } &&
10529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; } &&
10535 { ac_try='test -s conftest$ac_exeext'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; }; then
10541 ac_cv_lib_m_erff=yes
10542 else
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10546 ac_cv_lib_m_erff=no
10548 rm -f conftest.err conftest.$ac_objext \
10549 conftest$ac_exeext conftest.$ac_ext
10550 LIBS=$ac_check_lib_save_LIBS
10552 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5
10553 echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
10554 if test $ac_cv_lib_m_erff = yes; then
10556 cat >>confdefs.h <<\_ACEOF
10557 #define HAVE_ERFF 1
10558 _ACEOF
10562 echo "$as_me:$LINENO: checking for j0 in -lm" >&5
10563 echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
10564 if test "${ac_cv_lib_m_j0+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10566 else
10567 ac_check_lib_save_LIBS=$LIBS
10568 LIBS="-lm $LIBS"
10569 if test x$gcc_no_link = xyes; then
10570 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10571 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10572 { (exit 1); exit 1; }; }
10574 cat >conftest.$ac_ext <<_ACEOF
10575 /* confdefs.h. */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10581 /* Override any gcc2 internal prototype to avoid an error. */
10582 #ifdef __cplusplus
10583 extern "C"
10584 #endif
10585 /* We use char because int might match the return type of a gcc2
10586 builtin and then its argument prototype would still apply. */
10587 char j0 ();
10589 main ()
10591 j0 ();
10593 return 0;
10595 _ACEOF
10596 rm -f conftest.$ac_objext conftest$ac_exeext
10597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10598 (eval $ac_link) 2>conftest.er1
10599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } &&
10605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10608 ac_status=$?
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; } &&
10611 { ac_try='test -s conftest$ac_exeext'
10612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10617 ac_cv_lib_m_j0=yes
10618 else
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 ac_cv_lib_m_j0=no
10624 rm -f conftest.err conftest.$ac_objext \
10625 conftest$ac_exeext conftest.$ac_ext
10626 LIBS=$ac_check_lib_save_LIBS
10628 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5
10629 echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
10630 if test $ac_cv_lib_m_j0 = yes; then
10632 cat >>confdefs.h <<\_ACEOF
10633 #define HAVE_J0 1
10634 _ACEOF
10638 echo "$as_me:$LINENO: checking for j0f in -lm" >&5
10639 echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
10640 if test "${ac_cv_lib_m_j0f+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643 ac_check_lib_save_LIBS=$LIBS
10644 LIBS="-lm $LIBS"
10645 if test x$gcc_no_link = xyes; then
10646 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10647 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10648 { (exit 1); exit 1; }; }
10650 cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h. */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10657 /* Override any gcc2 internal prototype to avoid an error. */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 /* We use char because int might match the return type of a gcc2
10662 builtin and then its argument prototype would still apply. */
10663 char j0f ();
10665 main ()
10667 j0f ();
10669 return 0;
10671 _ACEOF
10672 rm -f conftest.$ac_objext conftest$ac_exeext
10673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10674 (eval $ac_link) 2>conftest.er1
10675 ac_status=$?
10676 grep -v '^ *+' conftest.er1 >conftest.err
10677 rm -f conftest.er1
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } &&
10681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5
10684 ac_status=$?
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; } &&
10687 { ac_try='test -s conftest$ac_exeext'
10688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10689 (eval $ac_try) 2>&5
10690 ac_status=$?
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10693 ac_cv_lib_m_j0f=yes
10694 else
10695 echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10698 ac_cv_lib_m_j0f=no
10700 rm -f conftest.err conftest.$ac_objext \
10701 conftest$ac_exeext conftest.$ac_ext
10702 LIBS=$ac_check_lib_save_LIBS
10704 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
10705 echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
10706 if test $ac_cv_lib_m_j0f = yes; then
10708 cat >>confdefs.h <<\_ACEOF
10709 #define HAVE_J0F 1
10710 _ACEOF
10714 echo "$as_me:$LINENO: checking for j1 in -lm" >&5
10715 echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
10716 if test "${ac_cv_lib_m_j1+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10718 else
10719 ac_check_lib_save_LIBS=$LIBS
10720 LIBS="-lm $LIBS"
10721 if test x$gcc_no_link = xyes; then
10722 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10723 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10724 { (exit 1); exit 1; }; }
10726 cat >conftest.$ac_ext <<_ACEOF
10727 /* confdefs.h. */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10733 /* Override any gcc2 internal prototype to avoid an error. */
10734 #ifdef __cplusplus
10735 extern "C"
10736 #endif
10737 /* We use char because int might match the return type of a gcc2
10738 builtin and then its argument prototype would still apply. */
10739 char j1 ();
10741 main ()
10743 j1 ();
10745 return 0;
10747 _ACEOF
10748 rm -f conftest.$ac_objext conftest$ac_exeext
10749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10750 (eval $ac_link) 2>conftest.er1
10751 ac_status=$?
10752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759 (eval $ac_try) 2>&5
10760 ac_status=$?
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; } &&
10763 { ac_try='test -s conftest$ac_exeext'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; }; then
10769 ac_cv_lib_m_j1=yes
10770 else
10771 echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10774 ac_cv_lib_m_j1=no
10776 rm -f conftest.err conftest.$ac_objext \
10777 conftest$ac_exeext conftest.$ac_ext
10778 LIBS=$ac_check_lib_save_LIBS
10780 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
10781 echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
10782 if test $ac_cv_lib_m_j1 = yes; then
10784 cat >>confdefs.h <<\_ACEOF
10785 #define HAVE_J1 1
10786 _ACEOF
10790 echo "$as_me:$LINENO: checking for j1f in -lm" >&5
10791 echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
10792 if test "${ac_cv_lib_m_j1f+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 else
10795 ac_check_lib_save_LIBS=$LIBS
10796 LIBS="-lm $LIBS"
10797 if test x$gcc_no_link = xyes; then
10798 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10799 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10800 { (exit 1); exit 1; }; }
10802 cat >conftest.$ac_ext <<_ACEOF
10803 /* confdefs.h. */
10804 _ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10809 /* Override any gcc2 internal prototype to avoid an error. */
10810 #ifdef __cplusplus
10811 extern "C"
10812 #endif
10813 /* We use char because int might match the return type of a gcc2
10814 builtin and then its argument prototype would still apply. */
10815 char j1f ();
10817 main ()
10819 j1f ();
10821 return 0;
10823 _ACEOF
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10826 (eval $ac_link) 2>conftest.er1
10827 ac_status=$?
10828 grep -v '^ *+' conftest.er1 >conftest.err
10829 rm -f conftest.er1
10830 cat conftest.err >&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } &&
10833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835 (eval $ac_try) 2>&5
10836 ac_status=$?
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; } &&
10839 { ac_try='test -s conftest$ac_exeext'
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10842 ac_status=$?
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; }; then
10845 ac_cv_lib_m_j1f=yes
10846 else
10847 echo "$as_me: failed program was:" >&5
10848 sed 's/^/| /' conftest.$ac_ext >&5
10850 ac_cv_lib_m_j1f=no
10852 rm -f conftest.err conftest.$ac_objext \
10853 conftest$ac_exeext conftest.$ac_ext
10854 LIBS=$ac_check_lib_save_LIBS
10856 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
10857 echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
10858 if test $ac_cv_lib_m_j1f = yes; then
10860 cat >>confdefs.h <<\_ACEOF
10861 #define HAVE_J1F 1
10862 _ACEOF
10866 echo "$as_me:$LINENO: checking for jn in -lm" >&5
10867 echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
10868 if test "${ac_cv_lib_m_jn+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871 ac_check_lib_save_LIBS=$LIBS
10872 LIBS="-lm $LIBS"
10873 if test x$gcc_no_link = xyes; then
10874 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10875 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10876 { (exit 1); exit 1; }; }
10878 cat >conftest.$ac_ext <<_ACEOF
10879 /* confdefs.h. */
10880 _ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
10885 /* Override any gcc2 internal prototype to avoid an error. */
10886 #ifdef __cplusplus
10887 extern "C"
10888 #endif
10889 /* We use char because int might match the return type of a gcc2
10890 builtin and then its argument prototype would still apply. */
10891 char jn ();
10893 main ()
10895 jn ();
10897 return 0;
10899 _ACEOF
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902 (eval $ac_link) 2>conftest.er1
10903 ac_status=$?
10904 grep -v '^ *+' conftest.er1 >conftest.err
10905 rm -f conftest.er1
10906 cat conftest.err >&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } &&
10909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; } &&
10915 { ac_try='test -s conftest$ac_exeext'
10916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917 (eval $ac_try) 2>&5
10918 ac_status=$?
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }; then
10921 ac_cv_lib_m_jn=yes
10922 else
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10926 ac_cv_lib_m_jn=no
10928 rm -f conftest.err conftest.$ac_objext \
10929 conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10932 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
10933 echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
10934 if test $ac_cv_lib_m_jn = yes; then
10936 cat >>confdefs.h <<\_ACEOF
10937 #define HAVE_JN 1
10938 _ACEOF
10942 echo "$as_me:$LINENO: checking for jnf in -lm" >&5
10943 echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
10944 if test "${ac_cv_lib_m_jnf+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947 ac_check_lib_save_LIBS=$LIBS
10948 LIBS="-lm $LIBS"
10949 if test x$gcc_no_link = xyes; then
10950 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10951 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10952 { (exit 1); exit 1; }; }
10954 cat >conftest.$ac_ext <<_ACEOF
10955 /* confdefs.h. */
10956 _ACEOF
10957 cat confdefs.h >>conftest.$ac_ext
10958 cat >>conftest.$ac_ext <<_ACEOF
10959 /* end confdefs.h. */
10961 /* Override any gcc2 internal prototype to avoid an error. */
10962 #ifdef __cplusplus
10963 extern "C"
10964 #endif
10965 /* We use char because int might match the return type of a gcc2
10966 builtin and then its argument prototype would still apply. */
10967 char jnf ();
10969 main ()
10971 jnf ();
10973 return 0;
10975 _ACEOF
10976 rm -f conftest.$ac_objext conftest$ac_exeext
10977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10978 (eval $ac_link) 2>conftest.er1
10979 ac_status=$?
10980 grep -v '^ *+' conftest.er1 >conftest.err
10981 rm -f conftest.er1
10982 cat conftest.err >&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } &&
10985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; } &&
10991 { ac_try='test -s conftest$ac_exeext'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; }; then
10997 ac_cv_lib_m_jnf=yes
10998 else
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11002 ac_cv_lib_m_jnf=no
11004 rm -f conftest.err conftest.$ac_objext \
11005 conftest$ac_exeext conftest.$ac_ext
11006 LIBS=$ac_check_lib_save_LIBS
11008 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
11009 echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
11010 if test $ac_cv_lib_m_jnf = yes; then
11012 cat >>confdefs.h <<\_ACEOF
11013 #define HAVE_JNF 1
11014 _ACEOF
11018 echo "$as_me:$LINENO: checking for y0 in -lm" >&5
11019 echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
11020 if test "${ac_cv_lib_m_y0+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023 ac_check_lib_save_LIBS=$LIBS
11024 LIBS="-lm $LIBS"
11025 if test x$gcc_no_link = xyes; then
11026 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11027 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11028 { (exit 1); exit 1; }; }
11030 cat >conftest.$ac_ext <<_ACEOF
11031 /* confdefs.h. */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11037 /* Override any gcc2 internal prototype to avoid an error. */
11038 #ifdef __cplusplus
11039 extern "C"
11040 #endif
11041 /* We use char because int might match the return type of a gcc2
11042 builtin and then its argument prototype would still apply. */
11043 char y0 ();
11045 main ()
11047 y0 ();
11049 return 0;
11051 _ACEOF
11052 rm -f conftest.$ac_objext conftest$ac_exeext
11053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11054 (eval $ac_link) 2>conftest.er1
11055 ac_status=$?
11056 grep -v '^ *+' conftest.er1 >conftest.err
11057 rm -f conftest.er1
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; } &&
11067 { ac_try='test -s conftest$ac_exeext'
11068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11069 (eval $ac_try) 2>&5
11070 ac_status=$?
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; }; then
11073 ac_cv_lib_m_y0=yes
11074 else
11075 echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 ac_cv_lib_m_y0=no
11080 rm -f conftest.err conftest.$ac_objext \
11081 conftest$ac_exeext conftest.$ac_ext
11082 LIBS=$ac_check_lib_save_LIBS
11084 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
11085 echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
11086 if test $ac_cv_lib_m_y0 = yes; then
11088 cat >>confdefs.h <<\_ACEOF
11089 #define HAVE_Y0 1
11090 _ACEOF
11094 echo "$as_me:$LINENO: checking for y0f in -lm" >&5
11095 echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
11096 if test "${ac_cv_lib_m_y0f+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 else
11099 ac_check_lib_save_LIBS=$LIBS
11100 LIBS="-lm $LIBS"
11101 if test x$gcc_no_link = xyes; then
11102 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11103 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11104 { (exit 1); exit 1; }; }
11106 cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h. */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11113 /* Override any gcc2 internal prototype to avoid an error. */
11114 #ifdef __cplusplus
11115 extern "C"
11116 #endif
11117 /* We use char because int might match the return type of a gcc2
11118 builtin and then its argument prototype would still apply. */
11119 char y0f ();
11121 main ()
11123 y0f ();
11125 return 0;
11127 _ACEOF
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11130 (eval $ac_link) 2>conftest.er1
11131 ac_status=$?
11132 grep -v '^ *+' conftest.er1 >conftest.err
11133 rm -f conftest.er1
11134 cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11140 ac_status=$?
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; } &&
11143 { ac_try='test -s conftest$ac_exeext'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; }; then
11149 ac_cv_lib_m_y0f=yes
11150 else
11151 echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11154 ac_cv_lib_m_y0f=no
11156 rm -f conftest.err conftest.$ac_objext \
11157 conftest$ac_exeext conftest.$ac_ext
11158 LIBS=$ac_check_lib_save_LIBS
11160 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
11161 echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
11162 if test $ac_cv_lib_m_y0f = yes; then
11164 cat >>confdefs.h <<\_ACEOF
11165 #define HAVE_Y0F 1
11166 _ACEOF
11170 echo "$as_me:$LINENO: checking for y1 in -lm" >&5
11171 echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
11172 if test "${ac_cv_lib_m_y1+set}" = set; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11174 else
11175 ac_check_lib_save_LIBS=$LIBS
11176 LIBS="-lm $LIBS"
11177 if test x$gcc_no_link = xyes; then
11178 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11179 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11180 { (exit 1); exit 1; }; }
11182 cat >conftest.$ac_ext <<_ACEOF
11183 /* confdefs.h. */
11184 _ACEOF
11185 cat confdefs.h >>conftest.$ac_ext
11186 cat >>conftest.$ac_ext <<_ACEOF
11187 /* end confdefs.h. */
11189 /* Override any gcc2 internal prototype to avoid an error. */
11190 #ifdef __cplusplus
11191 extern "C"
11192 #endif
11193 /* We use char because int might match the return type of a gcc2
11194 builtin and then its argument prototype would still apply. */
11195 char y1 ();
11197 main ()
11199 y1 ();
11201 return 0;
11203 _ACEOF
11204 rm -f conftest.$ac_objext conftest$ac_exeext
11205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11206 (eval $ac_link) 2>conftest.er1
11207 ac_status=$?
11208 grep -v '^ *+' conftest.er1 >conftest.err
11209 rm -f conftest.er1
11210 cat conftest.err >&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } &&
11213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215 (eval $ac_try) 2>&5
11216 ac_status=$?
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; } &&
11219 { ac_try='test -s conftest$ac_exeext'
11220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11221 (eval $ac_try) 2>&5
11222 ac_status=$?
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; }; then
11225 ac_cv_lib_m_y1=yes
11226 else
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 ac_cv_lib_m_y1=no
11232 rm -f conftest.err conftest.$ac_objext \
11233 conftest$ac_exeext conftest.$ac_ext
11234 LIBS=$ac_check_lib_save_LIBS
11236 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
11237 echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
11238 if test $ac_cv_lib_m_y1 = yes; then
11240 cat >>confdefs.h <<\_ACEOF
11241 #define HAVE_Y1 1
11242 _ACEOF
11246 echo "$as_me:$LINENO: checking for y1f in -lm" >&5
11247 echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
11248 if test "${ac_cv_lib_m_y1f+set}" = set; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11250 else
11251 ac_check_lib_save_LIBS=$LIBS
11252 LIBS="-lm $LIBS"
11253 if test x$gcc_no_link = xyes; then
11254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11256 { (exit 1); exit 1; }; }
11258 cat >conftest.$ac_ext <<_ACEOF
11259 /* confdefs.h. */
11260 _ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h. */
11265 /* Override any gcc2 internal prototype to avoid an error. */
11266 #ifdef __cplusplus
11267 extern "C"
11268 #endif
11269 /* We use char because int might match the return type of a gcc2
11270 builtin and then its argument prototype would still apply. */
11271 char y1f ();
11273 main ()
11275 y1f ();
11277 return 0;
11279 _ACEOF
11280 rm -f conftest.$ac_objext conftest$ac_exeext
11281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11282 (eval $ac_link) 2>conftest.er1
11283 ac_status=$?
11284 grep -v '^ *+' conftest.er1 >conftest.err
11285 rm -f conftest.er1
11286 cat conftest.err >&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } &&
11289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; } &&
11295 { ac_try='test -s conftest$ac_exeext'
11296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11298 ac_status=$?
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; }; then
11301 ac_cv_lib_m_y1f=yes
11302 else
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11306 ac_cv_lib_m_y1f=no
11308 rm -f conftest.err conftest.$ac_objext \
11309 conftest$ac_exeext conftest.$ac_ext
11310 LIBS=$ac_check_lib_save_LIBS
11312 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
11313 echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
11314 if test $ac_cv_lib_m_y1f = yes; then
11316 cat >>confdefs.h <<\_ACEOF
11317 #define HAVE_Y1F 1
11318 _ACEOF
11322 echo "$as_me:$LINENO: checking for yn in -lm" >&5
11323 echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
11324 if test "${ac_cv_lib_m_yn+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11326 else
11327 ac_check_lib_save_LIBS=$LIBS
11328 LIBS="-lm $LIBS"
11329 if test x$gcc_no_link = xyes; then
11330 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11331 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11332 { (exit 1); exit 1; }; }
11334 cat >conftest.$ac_ext <<_ACEOF
11335 /* confdefs.h. */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11341 /* Override any gcc2 internal prototype to avoid an error. */
11342 #ifdef __cplusplus
11343 extern "C"
11344 #endif
11345 /* We use char because int might match the return type of a gcc2
11346 builtin and then its argument prototype would still apply. */
11347 char yn ();
11349 main ()
11351 yn ();
11353 return 0;
11355 _ACEOF
11356 rm -f conftest.$ac_objext conftest$ac_exeext
11357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11358 (eval $ac_link) 2>conftest.er1
11359 ac_status=$?
11360 grep -v '^ *+' conftest.er1 >conftest.err
11361 rm -f conftest.er1
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
11365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367 (eval $ac_try) 2>&5
11368 ac_status=$?
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; } &&
11371 { ac_try='test -s conftest$ac_exeext'
11372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373 (eval $ac_try) 2>&5
11374 ac_status=$?
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }; }; then
11377 ac_cv_lib_m_yn=yes
11378 else
11379 echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11382 ac_cv_lib_m_yn=no
11384 rm -f conftest.err conftest.$ac_objext \
11385 conftest$ac_exeext conftest.$ac_ext
11386 LIBS=$ac_check_lib_save_LIBS
11388 echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
11389 echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
11390 if test $ac_cv_lib_m_yn = yes; then
11392 cat >>confdefs.h <<\_ACEOF
11393 #define HAVE_YN 1
11394 _ACEOF
11398 echo "$as_me:$LINENO: checking for ynf in -lm" >&5
11399 echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
11400 if test "${ac_cv_lib_m_ynf+set}" = set; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402 else
11403 ac_check_lib_save_LIBS=$LIBS
11404 LIBS="-lm $LIBS"
11405 if test x$gcc_no_link = xyes; then
11406 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11407 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11408 { (exit 1); exit 1; }; }
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h. */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11417 /* Override any gcc2 internal prototype to avoid an error. */
11418 #ifdef __cplusplus
11419 extern "C"
11420 #endif
11421 /* We use char because int might match the return type of a gcc2
11422 builtin and then its argument prototype would still apply. */
11423 char ynf ();
11425 main ()
11427 ynf ();
11429 return 0;
11431 _ACEOF
11432 rm -f conftest.$ac_objext conftest$ac_exeext
11433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11434 (eval $ac_link) 2>conftest.er1
11435 ac_status=$?
11436 grep -v '^ *+' conftest.er1 >conftest.err
11437 rm -f conftest.er1
11438 cat conftest.err >&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } &&
11441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11444 ac_status=$?
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; } &&
11447 { ac_try='test -s conftest$ac_exeext'
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11450 ac_status=$?
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; }; then
11453 ac_cv_lib_m_ynf=yes
11454 else
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11458 ac_cv_lib_m_ynf=no
11460 rm -f conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11462 LIBS=$ac_check_lib_save_LIBS
11464 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
11465 echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
11466 if test $ac_cv_lib_m_ynf = yes; then
11468 cat >>confdefs.h <<\_ACEOF
11469 #define HAVE_YNF 1
11470 _ACEOF
11475 # Fallback in case isfinite is not available.
11476 echo "$as_me:$LINENO: checking for finite in -lm" >&5
11477 echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6
11478 if test "${ac_cv_lib_m_finite+set}" = set; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 else
11481 ac_check_lib_save_LIBS=$LIBS
11482 LIBS="-lm $LIBS"
11483 if test x$gcc_no_link = xyes; then
11484 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11485 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11486 { (exit 1); exit 1; }; }
11488 cat >conftest.$ac_ext <<_ACEOF
11489 /* confdefs.h. */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11495 /* Override any gcc2 internal prototype to avoid an error. */
11496 #ifdef __cplusplus
11497 extern "C"
11498 #endif
11499 /* We use char because int might match the return type of a gcc2
11500 builtin and then its argument prototype would still apply. */
11501 char finite ();
11503 main ()
11505 finite ();
11507 return 0;
11509 _ACEOF
11510 rm -f conftest.$ac_objext conftest$ac_exeext
11511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11512 (eval $ac_link) 2>conftest.er1
11513 ac_status=$?
11514 grep -v '^ *+' conftest.er1 >conftest.err
11515 rm -f conftest.er1
11516 cat conftest.err >&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; } &&
11525 { ac_try='test -s conftest$ac_exeext'
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 ac_cv_lib_m_finite=yes
11532 else
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 ac_cv_lib_m_finite=no
11538 rm -f conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11540 LIBS=$ac_check_lib_save_LIBS
11542 echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5
11543 echo "${ECHO_T}$ac_cv_lib_m_finite" >&6
11544 if test $ac_cv_lib_m_finite = yes; then
11546 cat >>confdefs.h <<\_ACEOF
11547 #define HAVE_FINITE 1
11548 _ACEOF
11553 # Let the user override this
11554 # Check whether --enable-cmath or --disable-cmath was given.
11555 if test "${enable_cmath+set}" = set; then
11556 enableval="$enable_cmath"
11557 need_math=$enableval
11559 if test "$need_math" = "yes"; then
11560 { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
11561 echo "$as_me: Including complex math functions in libgfor" >&6;};
11562 extra_math_obj='$(gfor_cmath_obj)'
11565 MATH_OBJ="$extra_math_obj"
11568 # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
11569 # for struct timezone, as you might think. We also need to check how
11570 # to call gettimeofday if we have it.
11571 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11572 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11573 if test "${ac_cv_header_time+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576 cat >conftest.$ac_ext <<_ACEOF
11577 /* confdefs.h. */
11578 _ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h. */
11582 #include <sys/types.h>
11583 #include <sys/time.h>
11584 #include <time.h>
11587 main ()
11589 if ((struct tm *) 0)
11590 return 0;
11592 return 0;
11594 _ACEOF
11595 rm -f conftest.$ac_objext
11596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11597 (eval $ac_compile) 2>conftest.er1
11598 ac_status=$?
11599 grep -v '^ *+' conftest.er1 >conftest.err
11600 rm -f conftest.er1
11601 cat conftest.err >&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } &&
11604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; } &&
11610 { ac_try='test -s conftest.$ac_objext'
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 ac_cv_header_time=yes
11617 else
11618 echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11621 ac_cv_header_time=no
11623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11625 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11626 echo "${ECHO_T}$ac_cv_header_time" >&6
11627 if test $ac_cv_header_time = yes; then
11629 cat >>confdefs.h <<\_ACEOF
11630 #define TIME_WITH_SYS_TIME 1
11631 _ACEOF
11637 for ac_func in gettimeofday
11639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11640 echo "$as_me:$LINENO: checking for $ac_func" >&5
11641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11642 if eval "test \"\${$as_ac_var+set}\" = set"; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11644 else
11645 if test x$gcc_no_link = xyes; then
11646 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11647 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11648 { (exit 1); exit 1; }; }
11650 cat >conftest.$ac_ext <<_ACEOF
11651 /* confdefs.h. */
11652 _ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h. */
11656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11658 #define $ac_func innocuous_$ac_func
11660 /* System header to define __stub macros and hopefully few prototypes,
11661 which can conflict with char $ac_func (); below.
11662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11663 <limits.h> exists even on freestanding compilers. */
11665 #ifdef __STDC__
11666 # include <limits.h>
11667 #else
11668 # include <assert.h>
11669 #endif
11671 #undef $ac_func
11673 /* Override any gcc2 internal prototype to avoid an error. */
11674 #ifdef __cplusplus
11675 extern "C"
11677 #endif
11678 /* We use char because int might match the return type of a gcc2
11679 builtin and then its argument prototype would still apply. */
11680 char $ac_func ();
11681 /* The GNU C library defines this for functions which it implements
11682 to always fail with ENOSYS. Some functions are actually named
11683 something starting with __ and the normal name is an alias. */
11684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11685 choke me
11686 #else
11687 char (*f) () = $ac_func;
11688 #endif
11689 #ifdef __cplusplus
11691 #endif
11694 main ()
11696 return f != $ac_func;
11698 return 0;
11700 _ACEOF
11701 rm -f conftest.$ac_objext conftest$ac_exeext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11703 (eval $ac_link) 2>conftest.er1
11704 ac_status=$?
11705 grep -v '^ *+' conftest.er1 >conftest.err
11706 rm -f conftest.er1
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11713 ac_status=$?
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; } &&
11716 { ac_try='test -s conftest$ac_exeext'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then
11722 eval "$as_ac_var=yes"
11723 else
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11727 eval "$as_ac_var=no"
11729 rm -f conftest.err conftest.$ac_objext \
11730 conftest$ac_exeext conftest.$ac_ext
11732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11734 if test `eval echo '${'$as_ac_var'}'` = yes; then
11735 cat >>confdefs.h <<_ACEOF
11736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11737 _ACEOF
11740 done
11742 if test "$ac_cv_func_gettimeofday" = yes; then
11743 echo "$as_me:$LINENO: checking for struct timezone" >&5
11744 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11745 if test "${gfor_cv_struct_timezone+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748 cat >conftest.$ac_ext <<_ACEOF
11749 /* confdefs.h. */
11750 _ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 #include <sys/time.h>
11756 main ()
11758 struct timezone tz;
11760 return 0;
11762 _ACEOF
11763 rm -f conftest.$ac_objext
11764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11765 (eval $ac_compile) 2>conftest.er1
11766 ac_status=$?
11767 grep -v '^ *+' conftest.er1 >conftest.err
11768 rm -f conftest.er1
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; } &&
11778 { ac_try='test -s conftest.$ac_objext'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; }; then
11784 gfor_cv_struct_timezone=yes
11785 else
11786 echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11789 gfor_cv_struct_timezone=no
11791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11793 echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
11794 echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
11795 if test $gfor_cv_struct_timezone = yes; then
11796 if test "$cross_compiling" = yes; then
11797 gfor_have_struct_timezone=yes
11798 else
11799 cat >conftest.$ac_ext <<_ACEOF
11800 /* confdefs.h. */
11801 _ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11806 #ifdef TIME_WITH_SYS_TIME
11807 #include <sys/time.h>
11808 #include <time.h>
11809 #else
11810 #ifdef HAVE_SYS_TIME_H
11811 #include <sys/time.h>
11812 #else
11813 #include <time.h>
11814 #endif
11815 #endif
11816 main ()
11818 struct timeval time;
11819 struct timezone dummy;
11820 if (gettimeofday (&time, &dummy))
11821 exit (1);
11822 else
11823 exit (0);
11825 _ACEOF
11826 rm -f conftest$ac_exeext
11827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11828 (eval $ac_link) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833 (eval $ac_try) 2>&5
11834 ac_status=$?
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; }; then
11837 gfor_have_struct_timezone=yes
11838 else
11839 echo "$as_me: program exited with status $ac_status" >&5
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11843 ( exit $ac_status )
11844 gfor_have_struct_timezone=no
11846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11848 if test $gfor_have_struct_timezone = yes; then
11850 cat >>confdefs.h <<\_ACEOF
11851 #define HAVE_TIMEZONE 1
11852 _ACEOF
11857 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
11858 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11859 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11861 else
11862 if test x$gcc_no_link = xyes; then
11863 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11864 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11865 { (exit 1); exit 1; }; }
11867 cat >conftest.$ac_ext <<_ACEOF
11868 /* confdefs.h. */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11874 #ifdef TIME_WITH_SYS_TIME
11875 #include <sys/time.h>
11876 #include <time.h>
11877 #else
11878 #ifdef HAVE_SYS_TIME_H
11879 #include <sys/time.h>
11880 #else
11881 #include <time.h>
11882 #endif
11883 #endif
11886 main ()
11889 struct timeval time;
11890 #ifdef HAVE_TIMEZONE
11891 struct timezone dummy;
11892 #define DUMMY &dummy
11893 #else
11894 #define DUMMY NULL
11895 #endif
11896 gettimeofday (&time, DUMMY);
11898 return 0;
11900 _ACEOF
11901 rm -f conftest.$ac_objext conftest$ac_exeext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11903 (eval $ac_link) 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } &&
11910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try='test -s conftest$ac_exeext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 emacs_cv_gettimeofday_two_arguments=yes
11923 else
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 emacs_cv_gettimeofday_two_arguments=no
11929 rm -f conftest.err conftest.$ac_objext \
11930 conftest$ac_exeext conftest.$ac_ext
11932 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
11933 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11934 if test $emacs_cv_gettimeofday_two_arguments = no; then
11936 cat >>confdefs.h <<\_ACEOF
11937 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11938 _ACEOF
11943 # Attempt to assert that the target is of common type in case we don't
11944 # have C99 integer types at all.
11946 echo "$as_me:$LINENO: checking whether the target is ILP32" >&5
11947 echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6
11948 if test "${target_ilp32+set}" = set; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 else
11952 save_CFLAGS="$CFLAGS"
11953 CFLAGS="-O2"
11954 if test x$gcc_no_link = xyes; then
11955 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11956 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11957 { (exit 1); exit 1; }; }
11959 cat >conftest.$ac_ext <<_ACEOF
11960 /* confdefs.h. */
11961 _ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h. */
11967 main ()
11970 if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4)
11972 else
11973 undefined_function ();
11976 return 0;
11978 _ACEOF
11979 rm -f conftest.$ac_objext conftest$ac_exeext
11980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11981 (eval $ac_link) 2>conftest.er1
11982 ac_status=$?
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } &&
11988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; } &&
11994 { ac_try='test -s conftest$ac_exeext'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 target_ilp32=yes
12001 else
12002 echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12005 target_ilp32=no
12007 rm -f conftest.err conftest.$ac_objext \
12008 conftest$ac_exeext conftest.$ac_ext
12009 CFLAGS="$save_CFLAGS"
12011 echo "$as_me:$LINENO: result: $target_ilp32" >&5
12012 echo "${ECHO_T}$target_ilp32" >&6
12013 if test $target_ilp32 = yes; then
12015 cat >>confdefs.h <<\_ACEOF
12016 #define TARGET_ILP32 1
12017 _ACEOF
12022 # Check out attribute support.
12024 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
12025 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
12026 if test "${have_attribute_visibility+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12030 save_CFLAGS="$CFLAGS"
12031 CFLAGS="$CFLAGS -Werror"
12032 cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h. */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12038 void __attribute__((visibility("hidden"))) foo(void) { }
12040 main ()
12044 return 0;
12046 _ACEOF
12047 rm -f conftest.$ac_objext
12048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12049 (eval $ac_compile) 2>conftest.er1
12050 ac_status=$?
12051 grep -v '^ *+' conftest.er1 >conftest.err
12052 rm -f conftest.er1
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058 (eval $ac_try) 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; } &&
12062 { ac_try='test -s conftest.$ac_objext'
12063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 (eval $ac_try) 2>&5
12065 ac_status=$?
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; }; then
12068 have_attribute_visibility=yes
12069 else
12070 echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12073 have_attribute_visibility=no
12075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12076 CFLAGS="$save_CFLAGS"
12078 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
12079 echo "${ECHO_T}$have_attribute_visibility" >&6
12080 if test $have_attribute_visibility = yes; then
12082 cat >>confdefs.h <<\_ACEOF
12083 #define HAVE_ATTRIBUTE_VISIBILITY 1
12084 _ACEOF
12088 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
12089 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
12090 if test "${have_attribute_dllexport+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 else
12094 save_CFLAGS="$CFLAGS"
12095 CFLAGS="$CFLAGS -Werror"
12096 cat >conftest.$ac_ext <<_ACEOF
12097 /* confdefs.h. */
12098 _ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12102 void __attribute__((dllexport)) foo(void) { }
12104 main ()
12108 return 0;
12110 _ACEOF
12111 rm -f conftest.$ac_objext
12112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12113 (eval $ac_compile) 2>conftest.er1
12114 ac_status=$?
12115 grep -v '^ *+' conftest.er1 >conftest.err
12116 rm -f conftest.er1
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } &&
12120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; } &&
12126 { ac_try='test -s conftest.$ac_objext'
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 have_attribute_dllexport=yes
12133 else
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12137 have_attribute_dllexport=no
12139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12140 CFLAGS="$save_CFLAGS"
12142 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
12143 echo "${ECHO_T}$have_attribute_dllexport" >&6
12144 if test $have_attribute_dllexport = yes; then
12146 cat >>confdefs.h <<\_ACEOF
12147 #define HAVE_ATTRIBUTE_DLLEXPORT 1
12148 _ACEOF
12152 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
12153 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
12154 if test "${have_attribute_alias+set}" = set; then
12155 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 else
12158 if test x$gcc_no_link = xyes; then
12159 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12160 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12161 { (exit 1); exit 1; }; }
12163 cat >conftest.$ac_ext <<_ACEOF
12164 /* confdefs.h. */
12165 _ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12170 #define ULP STR1(__USER_LABEL_PREFIX__)
12171 #define STR1(x) STR2(x)
12172 #define STR2(x) #x
12173 void foo(void) { }
12174 extern void bar(void) __attribute__((alias(ULP "foo")));
12176 main ()
12178 bar();
12180 return 0;
12182 _ACEOF
12183 rm -f conftest.$ac_objext conftest$ac_exeext
12184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12185 (eval $ac_link) 2>conftest.er1
12186 ac_status=$?
12187 grep -v '^ *+' conftest.er1 >conftest.err
12188 rm -f conftest.er1
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } &&
12192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12195 ac_status=$?
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; } &&
12198 { ac_try='test -s conftest$ac_exeext'
12199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200 (eval $ac_try) 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; }; then
12204 have_attribute_alias=yes
12205 else
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12209 have_attribute_alias=no
12211 rm -f conftest.err conftest.$ac_objext \
12212 conftest$ac_exeext conftest.$ac_ext
12214 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
12215 echo "${ECHO_T}$have_attribute_alias" >&6
12216 if test $have_attribute_alias = yes; then
12218 cat >>confdefs.h <<\_ACEOF
12219 #define HAVE_ATTRIBUTE_ALIAS 1
12220 _ACEOF
12224 # Various other checks on target
12226 echo "$as_me:$LINENO: checking whether the target can unlink an open file" >&5
12227 echo $ECHO_N "checking whether the target can unlink an open file... $ECHO_C" >&6
12228 if test "${have_unlink_open_file+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12232 if test "$cross_compiling" = yes; then
12234 case "${target}" in
12235 *mingw*) have_unlink_open_file=no ;;
12236 *) have_unlink_open_file=yes;;
12237 esac
12238 else
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h. */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12246 #include <errno.h>
12247 #include <fcntl.h>
12248 #include <unistd.h>
12249 #include <sys/stat.h>
12251 int main ()
12253 int fd;
12255 fd = open ("testfile", O_RDWR | O_CREAT, S_IWRITE | S_IREAD);
12256 if (fd <= 0)
12257 return 0;
12258 if (unlink ("testfile") == -1)
12259 return 1;
12260 write (fd, "This is a test\n", 15);
12261 close (fd);
12263 if (open ("testfile", O_RDONLY, S_IWRITE | S_IREAD) == -1 && errno == ENOENT)
12264 return 0;
12265 else
12266 return 1;
12268 _ACEOF
12269 rm -f conftest$ac_exeext
12270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12271 (eval $ac_link) 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 have_unlink_open_file=yes
12281 else
12282 echo "$as_me: program exited with status $ac_status" >&5
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12286 ( exit $ac_status )
12287 have_unlink_open_file=no
12289 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12292 echo "$as_me:$LINENO: result: $have_unlink_open_file" >&5
12293 echo "${ECHO_T}$have_unlink_open_file" >&6
12294 if test x"$have_unlink_open_file" = xyes; then
12296 cat >>confdefs.h <<\_ACEOF
12297 #define HAVE_UNLINK_OPEN_FILE 1
12298 _ACEOF
12302 cat >confcache <<\_ACEOF
12303 # This file is a shell script that caches the results of configure
12304 # tests run on this system so they can be shared between configure
12305 # scripts and configure runs, see configure's option --config-cache.
12306 # It is not useful on other systems. If it contains results you don't
12307 # want to keep, you may remove or edit it.
12309 # config.status only pays attention to the cache file if you give it
12310 # the --recheck option to rerun configure.
12312 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12313 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12314 # following values.
12316 _ACEOF
12318 # The following way of writing the cache mishandles newlines in values,
12319 # but we know of no workaround that is simple, portable, and efficient.
12320 # So, don't put newlines in cache variables' values.
12321 # Ultrix sh set writes to stderr and can't be redirected directly,
12322 # and sets the high bit in the cache file unless we assign to the vars.
12324 (set) 2>&1 |
12325 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12326 *ac_space=\ *)
12327 # `set' does not quote correctly, so add quotes (double-quote
12328 # substitution turns \\\\ into \\, and sed turns \\ into \).
12329 sed -n \
12330 "s/'/'\\\\''/g;
12331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12334 # `set' quotes correctly as required by POSIX, so do not add quotes.
12335 sed -n \
12336 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12338 esac;
12340 sed '
12341 t clear
12342 : clear
12343 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12344 t end
12345 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12346 : end' >>confcache
12347 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12348 if test -w $cache_file; then
12349 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12350 cat confcache >$cache_file
12351 else
12352 echo "not updating unwritable cache $cache_file"
12355 rm -f confcache
12357 if test ${multilib} = yes; then
12358 multilib_arg="--enable-multilib"
12359 else
12360 multilib_arg=
12363 # Write our Makefile.
12364 ac_config_files="$ac_config_files Makefile"
12366 cat >confcache <<\_ACEOF
12367 # This file is a shell script that caches the results of configure
12368 # tests run on this system so they can be shared between configure
12369 # scripts and configure runs, see configure's option --config-cache.
12370 # It is not useful on other systems. If it contains results you don't
12371 # want to keep, you may remove or edit it.
12373 # config.status only pays attention to the cache file if you give it
12374 # the --recheck option to rerun configure.
12376 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12377 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12378 # following values.
12380 _ACEOF
12382 # The following way of writing the cache mishandles newlines in values,
12383 # but we know of no workaround that is simple, portable, and efficient.
12384 # So, don't put newlines in cache variables' values.
12385 # Ultrix sh set writes to stderr and can't be redirected directly,
12386 # and sets the high bit in the cache file unless we assign to the vars.
12388 (set) 2>&1 |
12389 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12390 *ac_space=\ *)
12391 # `set' does not quote correctly, so add quotes (double-quote
12392 # substitution turns \\\\ into \\, and sed turns \\ into \).
12393 sed -n \
12394 "s/'/'\\\\''/g;
12395 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12398 # `set' quotes correctly as required by POSIX, so do not add quotes.
12399 sed -n \
12400 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12402 esac;
12404 sed '
12405 t clear
12406 : clear
12407 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12408 t end
12409 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12410 : end' >>confcache
12411 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12412 if test -w $cache_file; then
12413 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12414 cat confcache >$cache_file
12415 else
12416 echo "not updating unwritable cache $cache_file"
12419 rm -f confcache
12421 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12422 # Let make expand exec_prefix.
12423 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12425 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12426 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12427 # trailing colons and then remove the whole line if VPATH becomes empty
12428 # (actually we leave an empty line to preserve line numbers).
12429 if test "x$srcdir" = x.; then
12430 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12431 s/:*\$(srcdir):*/:/;
12432 s/:*\${srcdir}:*/:/;
12433 s/:*@srcdir@:*/:/;
12434 s/^\([^=]*=[ ]*\):*/\1/;
12435 s/:*$//;
12436 s/^[^=]*=[ ]*$//;
12440 DEFS=-DHAVE_CONFIG_H
12442 ac_libobjs=
12443 ac_ltlibobjs=
12444 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12445 # 1. Remove the extension, and $U if already installed.
12446 ac_i=`echo "$ac_i" |
12447 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12448 # 2. Add them.
12449 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12450 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12451 done
12452 LIBOBJS=$ac_libobjs
12454 LTLIBOBJS=$ac_ltlibobjs
12457 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12458 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12459 Usually this means the macro was only invoked conditionally." >&5
12460 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12461 Usually this means the macro was only invoked conditionally." >&2;}
12462 { (exit 1); exit 1; }; }
12465 : ${CONFIG_STATUS=./config.status}
12466 ac_clean_files_save=$ac_clean_files
12467 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12468 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12469 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12470 cat >$CONFIG_STATUS <<_ACEOF
12471 #! $SHELL
12472 # Generated by $as_me.
12473 # Run this file to recreate the current configuration.
12474 # Compiler output produced by configure, useful for debugging
12475 # configure, is in config.log if it exists.
12477 debug=false
12478 ac_cs_recheck=false
12479 ac_cs_silent=false
12480 SHELL=\${CONFIG_SHELL-$SHELL}
12481 _ACEOF
12483 cat >>$CONFIG_STATUS <<\_ACEOF
12484 ## --------------------- ##
12485 ## M4sh Initialization. ##
12486 ## --------------------- ##
12488 # Be Bourne compatible
12489 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12490 emulate sh
12491 NULLCMD=:
12492 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12493 # is contrary to our usage. Disable this feature.
12494 alias -g '${1+"$@"}'='"$@"'
12495 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12496 set -o posix
12498 DUALCASE=1; export DUALCASE # for MKS sh
12500 # Support unset when possible.
12501 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12502 as_unset=unset
12503 else
12504 as_unset=false
12508 # Work around bugs in pre-3.0 UWIN ksh.
12509 $as_unset ENV MAIL MAILPATH
12510 PS1='$ '
12511 PS2='> '
12512 PS4='+ '
12514 # NLS nuisances.
12515 for as_var in \
12516 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12517 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12518 LC_TELEPHONE LC_TIME
12520 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12521 eval $as_var=C; export $as_var
12522 else
12523 $as_unset $as_var
12525 done
12527 # Required to use basename.
12528 if expr a : '\(a\)' >/dev/null 2>&1; then
12529 as_expr=expr
12530 else
12531 as_expr=false
12534 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12535 as_basename=basename
12536 else
12537 as_basename=false
12541 # Name of the executable.
12542 as_me=`$as_basename "$0" ||
12543 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12544 X"$0" : 'X\(//\)$' \| \
12545 X"$0" : 'X\(/\)$' \| \
12546 . : '\(.\)' 2>/dev/null ||
12547 echo X/"$0" |
12548 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12549 /^X\/\(\/\/\)$/{ s//\1/; q; }
12550 /^X\/\(\/\).*/{ s//\1/; q; }
12551 s/.*/./; q'`
12554 # PATH needs CR, and LINENO needs CR and PATH.
12555 # Avoid depending upon Character Ranges.
12556 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12557 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12558 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12559 as_cr_digits='0123456789'
12560 as_cr_alnum=$as_cr_Letters$as_cr_digits
12562 # The user is always right.
12563 if test "${PATH_SEPARATOR+set}" != set; then
12564 echo "#! /bin/sh" >conf$$.sh
12565 echo "exit 0" >>conf$$.sh
12566 chmod +x conf$$.sh
12567 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12568 PATH_SEPARATOR=';'
12569 else
12570 PATH_SEPARATOR=:
12572 rm -f conf$$.sh
12576 as_lineno_1=$LINENO
12577 as_lineno_2=$LINENO
12578 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12579 test "x$as_lineno_1" != "x$as_lineno_2" &&
12580 test "x$as_lineno_3" = "x$as_lineno_2" || {
12581 # Find who we are. Look in the path if we contain no path at all
12582 # relative or not.
12583 case $0 in
12584 *[\\/]* ) as_myself=$0 ;;
12585 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586 for as_dir in $PATH
12588 IFS=$as_save_IFS
12589 test -z "$as_dir" && as_dir=.
12590 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12591 done
12594 esac
12595 # We did not find ourselves, most probably we were run as `sh COMMAND'
12596 # in which case we are not to be found in the path.
12597 if test "x$as_myself" = x; then
12598 as_myself=$0
12600 if test ! -f "$as_myself"; then
12601 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12602 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12603 { (exit 1); exit 1; }; }
12605 case $CONFIG_SHELL in
12607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12610 IFS=$as_save_IFS
12611 test -z "$as_dir" && as_dir=.
12612 for as_base in sh bash ksh sh5; do
12613 case $as_dir in
12615 if ("$as_dir/$as_base" -c '
12616 as_lineno_1=$LINENO
12617 as_lineno_2=$LINENO
12618 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12619 test "x$as_lineno_1" != "x$as_lineno_2" &&
12620 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12621 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12622 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12623 CONFIG_SHELL=$as_dir/$as_base
12624 export CONFIG_SHELL
12625 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12626 fi;;
12627 esac
12628 done
12629 done
12631 esac
12633 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12634 # uniformly replaced by the line number. The first 'sed' inserts a
12635 # line-number line before each line; the second 'sed' does the real
12636 # work. The second script uses 'N' to pair each line-number line
12637 # with the numbered line, and appends trailing '-' during
12638 # substitution so that $LINENO is not a special case at line end.
12639 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12640 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12641 sed '=' <$as_myself |
12642 sed '
12644 s,$,-,
12645 : loop
12646 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12647 t loop
12648 s,-$,,
12649 s,^['$as_cr_digits']*\n,,
12650 ' >$as_me.lineno &&
12651 chmod +x $as_me.lineno ||
12652 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12653 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12654 { (exit 1); exit 1; }; }
12656 # Don't try to exec as it changes $[0], causing all sort of problems
12657 # (the dirname of $[0] is not the place where we might find the
12658 # original and so on. Autoconf is especially sensible to this).
12659 . ./$as_me.lineno
12660 # Exit status is that of the last command.
12661 exit
12665 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12666 *c*,-n*) ECHO_N= ECHO_C='
12667 ' ECHO_T=' ' ;;
12668 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12669 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12670 esac
12672 if expr a : '\(a\)' >/dev/null 2>&1; then
12673 as_expr=expr
12674 else
12675 as_expr=false
12678 rm -f conf$$ conf$$.exe conf$$.file
12679 echo >conf$$.file
12680 if ln -s conf$$.file conf$$ 2>/dev/null; then
12681 # We could just check for DJGPP; but this test a) works b) is more generic
12682 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12683 if test -f conf$$.exe; then
12684 # Don't use ln at all; we don't have any links
12685 as_ln_s='cp -p'
12686 else
12687 as_ln_s='ln -s'
12689 elif ln conf$$.file conf$$ 2>/dev/null; then
12690 as_ln_s=ln
12691 else
12692 as_ln_s='cp -p'
12694 rm -f conf$$ conf$$.exe conf$$.file
12696 if mkdir -p . 2>/dev/null; then
12697 as_mkdir_p=:
12698 else
12699 test -d ./-p && rmdir ./-p
12700 as_mkdir_p=false
12703 as_executable_p="test -f"
12705 # Sed expression to map a string onto a valid CPP name.
12706 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12708 # Sed expression to map a string onto a valid variable name.
12709 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12712 # IFS
12713 # We need space, tab and new line, in precisely that order.
12714 as_nl='
12716 IFS=" $as_nl"
12718 # CDPATH.
12719 $as_unset CDPATH
12721 exec 6>&1
12723 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12724 # report actual input values of CONFIG_FILES etc. instead of their
12725 # values after options handling. Logging --version etc. is OK.
12726 exec 5>>config.log
12728 echo
12729 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12730 ## Running $as_me. ##
12731 _ASBOX
12732 } >&5
12733 cat >&5 <<_CSEOF
12735 This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
12736 generated by GNU Autoconf 2.59. Invocation command line was
12738 CONFIG_FILES = $CONFIG_FILES
12739 CONFIG_HEADERS = $CONFIG_HEADERS
12740 CONFIG_LINKS = $CONFIG_LINKS
12741 CONFIG_COMMANDS = $CONFIG_COMMANDS
12742 $ $0 $@
12744 _CSEOF
12745 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12746 echo >&5
12747 _ACEOF
12749 # Files that config.status was made for.
12750 if test -n "$ac_config_files"; then
12751 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12754 if test -n "$ac_config_headers"; then
12755 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12758 if test -n "$ac_config_links"; then
12759 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12762 if test -n "$ac_config_commands"; then
12763 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12766 cat >>$CONFIG_STATUS <<\_ACEOF
12768 ac_cs_usage="\
12769 \`$as_me' instantiates files from templates according to the
12770 current configuration.
12772 Usage: $0 [OPTIONS] [FILE]...
12774 -h, --help print this help, then exit
12775 -V, --version print version number, then exit
12776 -q, --quiet do not print progress messages
12777 -d, --debug don't remove temporary files
12778 --recheck update $as_me by reconfiguring in the same conditions
12779 --file=FILE[:TEMPLATE]
12780 instantiate the configuration file FILE
12781 --header=FILE[:TEMPLATE]
12782 instantiate the configuration header FILE
12784 Configuration files:
12785 $config_files
12787 Configuration headers:
12788 $config_headers
12790 Configuration commands:
12791 $config_commands
12793 Report bugs to <bug-autoconf@gnu.org>."
12794 _ACEOF
12796 cat >>$CONFIG_STATUS <<_ACEOF
12797 ac_cs_version="\\
12798 GNU Fortran Runtime Library config.status 0.2
12799 configured by $0, generated by GNU Autoconf 2.59,
12800 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12802 Copyright (C) 2003 Free Software Foundation, Inc.
12803 This config.status script is free software; the Free Software Foundation
12804 gives unlimited permission to copy, distribute and modify it."
12805 srcdir=$srcdir
12806 INSTALL="$INSTALL"
12807 _ACEOF
12809 cat >>$CONFIG_STATUS <<\_ACEOF
12810 # If no file are specified by the user, then we need to provide default
12811 # value. By we need to know if files were specified by the user.
12812 ac_need_defaults=:
12813 while test $# != 0
12815 case $1 in
12816 --*=*)
12817 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12818 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12819 ac_shift=:
12822 ac_option=$1
12823 ac_optarg=$2
12824 ac_shift=shift
12826 *) # This is not an option, so the user has probably given explicit
12827 # arguments.
12828 ac_option=$1
12829 ac_need_defaults=false;;
12830 esac
12832 case $ac_option in
12833 # Handling of the options.
12834 _ACEOF
12835 cat >>$CONFIG_STATUS <<\_ACEOF
12836 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12837 ac_cs_recheck=: ;;
12838 --version | --vers* | -V )
12839 echo "$ac_cs_version"; exit 0 ;;
12840 --he | --h)
12841 # Conflict between --help and --header
12842 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12843 Try \`$0 --help' for more information." >&5
12844 echo "$as_me: error: ambiguous option: $1
12845 Try \`$0 --help' for more information." >&2;}
12846 { (exit 1); exit 1; }; };;
12847 --help | --hel | -h )
12848 echo "$ac_cs_usage"; exit 0 ;;
12849 --debug | --d* | -d )
12850 debug=: ;;
12851 --file | --fil | --fi | --f )
12852 $ac_shift
12853 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12854 ac_need_defaults=false;;
12855 --header | --heade | --head | --hea )
12856 $ac_shift
12857 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12858 ac_need_defaults=false;;
12859 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12860 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12861 ac_cs_silent=: ;;
12863 # This is an error.
12864 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12865 Try \`$0 --help' for more information." >&5
12866 echo "$as_me: error: unrecognized option: $1
12867 Try \`$0 --help' for more information." >&2;}
12868 { (exit 1); exit 1; }; } ;;
12870 *) ac_config_targets="$ac_config_targets $1" ;;
12872 esac
12873 shift
12874 done
12876 ac_configure_extra_args=
12878 if $ac_cs_silent; then
12879 exec 6>/dev/null
12880 ac_configure_extra_args="$ac_configure_extra_args --silent"
12883 _ACEOF
12884 cat >>$CONFIG_STATUS <<_ACEOF
12885 if \$ac_cs_recheck; then
12886 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12887 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12890 _ACEOF
12892 cat >>$CONFIG_STATUS <<_ACEOF
12894 # INIT-COMMANDS section.
12898 srcdir="$srcdir"
12899 host="$host"
12900 target="$target"
12901 with_multisubdir="$with_multisubdir"
12902 with_multisrctop="$with_multisrctop"
12903 with_target_subdir="$with_target_subdir"
12904 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12905 multi_basedir="$multi_basedir"
12906 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12907 CC="$CC"
12909 _ACEOF
12913 cat >>$CONFIG_STATUS <<\_ACEOF
12914 for ac_config_target in $ac_config_targets
12916 case "$ac_config_target" in
12917 # Handling of arguments.
12918 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12919 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12920 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12921 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12922 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12923 { (exit 1); exit 1; }; };;
12924 esac
12925 done
12927 # If the user did not use the arguments to specify the items to instantiate,
12928 # then the envvar interface is used. Set only those that are not.
12929 # We use the long form for the default assignment because of an extremely
12930 # bizarre bug on SunOS 4.1.3.
12931 if $ac_need_defaults; then
12932 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12933 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12934 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12937 # Have a temporary directory for convenience. Make it in the build tree
12938 # simply because there is no reason to put it here, and in addition,
12939 # creating and moving files from /tmp can sometimes cause problems.
12940 # Create a temporary directory, and hook for its removal unless debugging.
12941 $debug ||
12943 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12944 trap '{ (exit 1); exit 1; }' 1 2 13 15
12947 # Create a (secure) tmp directory for tmp files.
12950 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12951 test -n "$tmp" && test -d "$tmp"
12952 } ||
12954 tmp=./confstat$$-$RANDOM
12955 (umask 077 && mkdir $tmp)
12956 } ||
12958 echo "$me: cannot create a temporary directory in ." >&2
12959 { (exit 1); exit 1; }
12962 _ACEOF
12964 cat >>$CONFIG_STATUS <<_ACEOF
12967 # CONFIG_FILES section.
12970 # No need to generate the scripts if there are no CONFIG_FILES.
12971 # This happens for instance when ./config.status config.h
12972 if test -n "\$CONFIG_FILES"; then
12973 # Protect against being on the right side of a sed subst in config.status.
12974 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12975 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12976 s,@SHELL@,$SHELL,;t t
12977 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12978 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12979 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12980 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12981 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12982 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12983 s,@exec_prefix@,$exec_prefix,;t t
12984 s,@prefix@,$prefix,;t t
12985 s,@program_transform_name@,$program_transform_name,;t t
12986 s,@bindir@,$bindir,;t t
12987 s,@sbindir@,$sbindir,;t t
12988 s,@libexecdir@,$libexecdir,;t t
12989 s,@datadir@,$datadir,;t t
12990 s,@sysconfdir@,$sysconfdir,;t t
12991 s,@sharedstatedir@,$sharedstatedir,;t t
12992 s,@localstatedir@,$localstatedir,;t t
12993 s,@libdir@,$libdir,;t t
12994 s,@includedir@,$includedir,;t t
12995 s,@oldincludedir@,$oldincludedir,;t t
12996 s,@infodir@,$infodir,;t t
12997 s,@mandir@,$mandir,;t t
12998 s,@build_alias@,$build_alias,;t t
12999 s,@host_alias@,$host_alias,;t t
13000 s,@target_alias@,$target_alias,;t t
13001 s,@DEFS@,$DEFS,;t t
13002 s,@ECHO_C@,$ECHO_C,;t t
13003 s,@ECHO_N@,$ECHO_N,;t t
13004 s,@ECHO_T@,$ECHO_T,;t t
13005 s,@LIBS@,$LIBS,;t t
13006 s,@build@,$build,;t t
13007 s,@build_cpu@,$build_cpu,;t t
13008 s,@build_vendor@,$build_vendor,;t t
13009 s,@build_os@,$build_os,;t t
13010 s,@host@,$host,;t t
13011 s,@host_cpu@,$host_cpu,;t t
13012 s,@host_vendor@,$host_vendor,;t t
13013 s,@host_os@,$host_os,;t t
13014 s,@target@,$target,;t t
13015 s,@target_cpu@,$target_cpu,;t t
13016 s,@target_vendor@,$target_vendor,;t t
13017 s,@target_os@,$target_os,;t t
13018 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13019 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13020 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13021 s,@CYGPATH_W@,$CYGPATH_W,;t t
13022 s,@PACKAGE@,$PACKAGE,;t t
13023 s,@VERSION@,$VERSION,;t t
13024 s,@ACLOCAL@,$ACLOCAL,;t t
13025 s,@AUTOCONF@,$AUTOCONF,;t t
13026 s,@AUTOMAKE@,$AUTOMAKE,;t t
13027 s,@AUTOHEADER@,$AUTOHEADER,;t t
13028 s,@MAKEINFO@,$MAKEINFO,;t t
13029 s,@install_sh@,$install_sh,;t t
13030 s,@STRIP@,$STRIP,;t t
13031 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13032 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13033 s,@mkdir_p@,$mkdir_p,;t t
13034 s,@AWK@,$AWK,;t t
13035 s,@SET_MAKE@,$SET_MAKE,;t t
13036 s,@am__leading_dot@,$am__leading_dot,;t t
13037 s,@AMTAR@,$AMTAR,;t t
13038 s,@am__tar@,$am__tar,;t t
13039 s,@am__untar@,$am__untar,;t t
13040 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13041 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13042 s,@MAINT@,$MAINT,;t t
13043 s,@multi_basedir@,$multi_basedir,;t t
13044 s,@toolexecdir@,$toolexecdir,;t t
13045 s,@toolexeclibdir@,$toolexeclibdir,;t t
13046 s,@CC@,$CC,;t t
13047 s,@ac_ct_CC@,$ac_ct_CC,;t t
13048 s,@EXEEXT@,$EXEEXT,;t t
13049 s,@OBJEXT@,$OBJEXT,;t t
13050 s,@AM_FCFLAGS@,$AM_FCFLAGS,;t t
13051 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
13052 s,@AS@,$AS,;t t
13053 s,@ac_ct_AS@,$ac_ct_AS,;t t
13054 s,@AR@,$AR,;t t
13055 s,@ac_ct_AR@,$ac_ct_AR,;t t
13056 s,@RANLIB@,$RANLIB,;t t
13057 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13058 s,@LN_S@,$LN_S,;t t
13059 s,@LIBTOOL@,$LIBTOOL,;t t
13060 s,@enable_shared@,$enable_shared,;t t
13061 s,@enable_static@,$enable_static,;t t
13062 s,@FC@,$FC,;t t
13063 s,@FCFLAGS@,$FCFLAGS,;t t
13064 s,@LDFLAGS@,$LDFLAGS,;t t
13065 s,@ac_ct_FC@,$ac_ct_FC,;t t
13066 s,@extra_ldflags_libgfortran@,$extra_ldflags_libgfortran,;t t
13067 s,@CPP@,$CPP,;t t
13068 s,@CPPFLAGS@,$CPPFLAGS,;t t
13069 s,@EGREP@,$EGREP,;t t
13070 s,@MATH_OBJ@,$MATH_OBJ,;t t
13071 s,@LIBOBJS@,$LIBOBJS,;t t
13072 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13073 CEOF
13075 _ACEOF
13077 cat >>$CONFIG_STATUS <<\_ACEOF
13078 # Split the substitutions into bite-sized pieces for seds with
13079 # small command number limits, like on Digital OSF/1 and HP-UX.
13080 ac_max_sed_lines=48
13081 ac_sed_frag=1 # Number of current file.
13082 ac_beg=1 # First line for current file.
13083 ac_end=$ac_max_sed_lines # Line after last line for current file.
13084 ac_more_lines=:
13085 ac_sed_cmds=
13086 while $ac_more_lines; do
13087 if test $ac_beg -gt 1; then
13088 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13089 else
13090 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13092 if test ! -s $tmp/subs.frag; then
13093 ac_more_lines=false
13094 else
13095 # The purpose of the label and of the branching condition is to
13096 # speed up the sed processing (if there are no `@' at all, there
13097 # is no need to browse any of the substitutions).
13098 # These are the two extra sed commands mentioned above.
13099 (echo ':t
13100 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13101 if test -z "$ac_sed_cmds"; then
13102 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13103 else
13104 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13106 ac_sed_frag=`expr $ac_sed_frag + 1`
13107 ac_beg=$ac_end
13108 ac_end=`expr $ac_end + $ac_max_sed_lines`
13110 done
13111 if test -z "$ac_sed_cmds"; then
13112 ac_sed_cmds=cat
13114 fi # test -n "$CONFIG_FILES"
13116 _ACEOF
13117 cat >>$CONFIG_STATUS <<\_ACEOF
13118 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13119 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13120 case $ac_file in
13121 - | *:- | *:-:* ) # input from stdin
13122 cat >$tmp/stdin
13123 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13124 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13125 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13126 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13127 * ) ac_file_in=$ac_file.in ;;
13128 esac
13130 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13131 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13132 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13133 X"$ac_file" : 'X\(//\)[^/]' \| \
13134 X"$ac_file" : 'X\(//\)$' \| \
13135 X"$ac_file" : 'X\(/\)' \| \
13136 . : '\(.\)' 2>/dev/null ||
13137 echo X"$ac_file" |
13138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13140 /^X\(\/\/\)$/{ s//\1/; q; }
13141 /^X\(\/\).*/{ s//\1/; q; }
13142 s/.*/./; q'`
13143 { if $as_mkdir_p; then
13144 mkdir -p "$ac_dir"
13145 else
13146 as_dir="$ac_dir"
13147 as_dirs=
13148 while test ! -d "$as_dir"; do
13149 as_dirs="$as_dir $as_dirs"
13150 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13152 X"$as_dir" : 'X\(//\)[^/]' \| \
13153 X"$as_dir" : 'X\(//\)$' \| \
13154 X"$as_dir" : 'X\(/\)' \| \
13155 . : '\(.\)' 2>/dev/null ||
13156 echo X"$as_dir" |
13157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13159 /^X\(\/\/\)$/{ s//\1/; q; }
13160 /^X\(\/\).*/{ s//\1/; q; }
13161 s/.*/./; q'`
13162 done
13163 test ! -n "$as_dirs" || mkdir $as_dirs
13164 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13165 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13166 { (exit 1); exit 1; }; }; }
13168 ac_builddir=.
13170 if test "$ac_dir" != .; then
13171 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13172 # A "../" for each directory in $ac_dir_suffix.
13173 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13174 else
13175 ac_dir_suffix= ac_top_builddir=
13178 case $srcdir in
13179 .) # No --srcdir option. We are building in place.
13180 ac_srcdir=.
13181 if test -z "$ac_top_builddir"; then
13182 ac_top_srcdir=.
13183 else
13184 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13185 fi ;;
13186 [\\/]* | ?:[\\/]* ) # Absolute path.
13187 ac_srcdir=$srcdir$ac_dir_suffix;
13188 ac_top_srcdir=$srcdir ;;
13189 *) # Relative path.
13190 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13191 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13192 esac
13194 # Do not use `cd foo && pwd` to compute absolute paths, because
13195 # the directories may not exist.
13196 case `pwd` in
13197 .) ac_abs_builddir="$ac_dir";;
13199 case "$ac_dir" in
13200 .) ac_abs_builddir=`pwd`;;
13201 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13202 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13203 esac;;
13204 esac
13205 case $ac_abs_builddir in
13206 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13208 case ${ac_top_builddir}. in
13209 .) ac_abs_top_builddir=$ac_abs_builddir;;
13210 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13211 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13212 esac;;
13213 esac
13214 case $ac_abs_builddir in
13215 .) ac_abs_srcdir=$ac_srcdir;;
13217 case $ac_srcdir in
13218 .) ac_abs_srcdir=$ac_abs_builddir;;
13219 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13220 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13221 esac;;
13222 esac
13223 case $ac_abs_builddir in
13224 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13226 case $ac_top_srcdir in
13227 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13228 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13229 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13230 esac;;
13231 esac
13234 case $INSTALL in
13235 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13236 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13237 esac
13239 # Let's still pretend it is `configure' which instantiates (i.e., don't
13240 # use $as_me), people would be surprised to read:
13241 # /* config.h. Generated by config.status. */
13242 if test x"$ac_file" = x-; then
13243 configure_input=
13244 else
13245 configure_input="$ac_file. "
13247 configure_input=$configure_input"Generated from `echo $ac_file_in |
13248 sed 's,.*/,,'` by configure."
13250 # First look for the input files in the build tree, otherwise in the
13251 # src tree.
13252 ac_file_inputs=`IFS=:
13253 for f in $ac_file_in; do
13254 case $f in
13255 -) echo $tmp/stdin ;;
13256 [\\/$]*)
13257 # Absolute (can't be DOS-style, as IFS=:)
13258 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13259 echo "$as_me: error: cannot find input file: $f" >&2;}
13260 { (exit 1); exit 1; }; }
13261 echo "$f";;
13262 *) # Relative
13263 if test -f "$f"; then
13264 # Build tree
13265 echo "$f"
13266 elif test -f "$srcdir/$f"; then
13267 # Source tree
13268 echo "$srcdir/$f"
13269 else
13270 # /dev/null tree
13271 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13272 echo "$as_me: error: cannot find input file: $f" >&2;}
13273 { (exit 1); exit 1; }; }
13274 fi;;
13275 esac
13276 done` || { (exit 1); exit 1; }
13278 if test x"$ac_file" != x-; then
13279 { echo "$as_me:$LINENO: creating $ac_file" >&5
13280 echo "$as_me: creating $ac_file" >&6;}
13281 rm -f "$ac_file"
13283 _ACEOF
13284 cat >>$CONFIG_STATUS <<_ACEOF
13285 sed "$ac_vpsub
13286 $extrasub
13287 _ACEOF
13288 cat >>$CONFIG_STATUS <<\_ACEOF
13290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13291 s,@configure_input@,$configure_input,;t t
13292 s,@srcdir@,$ac_srcdir,;t t
13293 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13294 s,@top_srcdir@,$ac_top_srcdir,;t t
13295 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13296 s,@builddir@,$ac_builddir,;t t
13297 s,@abs_builddir@,$ac_abs_builddir,;t t
13298 s,@top_builddir@,$ac_top_builddir,;t t
13299 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13300 s,@INSTALL@,$ac_INSTALL,;t t
13301 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13302 rm -f $tmp/stdin
13303 if test x"$ac_file" != x-; then
13304 mv $tmp/out $ac_file
13305 else
13306 cat $tmp/out
13307 rm -f $tmp/out
13310 done
13311 _ACEOF
13312 cat >>$CONFIG_STATUS <<\_ACEOF
13315 # CONFIG_HEADER section.
13318 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13319 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13321 # ac_d sets the value in "#define NAME VALUE" lines.
13322 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13323 ac_dB='[ ].*$,\1#\2'
13324 ac_dC=' '
13325 ac_dD=',;t'
13326 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13327 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13328 ac_uB='$,\1#\2define\3'
13329 ac_uC=' '
13330 ac_uD=',;t'
13332 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13333 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13334 case $ac_file in
13335 - | *:- | *:-:* ) # input from stdin
13336 cat >$tmp/stdin
13337 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13338 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13339 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13340 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13341 * ) ac_file_in=$ac_file.in ;;
13342 esac
13344 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13345 echo "$as_me: creating $ac_file" >&6;}
13347 # First look for the input files in the build tree, otherwise in the
13348 # src tree.
13349 ac_file_inputs=`IFS=:
13350 for f in $ac_file_in; do
13351 case $f in
13352 -) echo $tmp/stdin ;;
13353 [\\/$]*)
13354 # Absolute (can't be DOS-style, as IFS=:)
13355 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13356 echo "$as_me: error: cannot find input file: $f" >&2;}
13357 { (exit 1); exit 1; }; }
13358 # Do quote $f, to prevent DOS paths from being IFS'd.
13359 echo "$f";;
13360 *) # Relative
13361 if test -f "$f"; then
13362 # Build tree
13363 echo "$f"
13364 elif test -f "$srcdir/$f"; then
13365 # Source tree
13366 echo "$srcdir/$f"
13367 else
13368 # /dev/null tree
13369 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13370 echo "$as_me: error: cannot find input file: $f" >&2;}
13371 { (exit 1); exit 1; }; }
13372 fi;;
13373 esac
13374 done` || { (exit 1); exit 1; }
13375 # Remove the trailing spaces.
13376 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13378 _ACEOF
13380 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13381 # `conftest.undefs', that substitutes the proper values into
13382 # config.h.in to produce config.h. The first handles `#define'
13383 # templates, and the second `#undef' templates.
13384 # And first: Protect against being on the right side of a sed subst in
13385 # config.status. Protect against being in an unquoted here document
13386 # in config.status.
13387 rm -f conftest.defines conftest.undefs
13388 # Using a here document instead of a string reduces the quoting nightmare.
13389 # Putting comments in sed scripts is not portable.
13391 # `end' is used to avoid that the second main sed command (meant for
13392 # 0-ary CPP macros) applies to n-ary macro definitions.
13393 # See the Autoconf documentation for `clear'.
13394 cat >confdef2sed.sed <<\_ACEOF
13395 s/[\\&,]/\\&/g
13396 s,[\\$`],\\&,g
13397 t clear
13398 : clear
13399 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13400 t end
13401 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13402 : end
13403 _ACEOF
13404 # If some macros were called several times there might be several times
13405 # the same #defines, which is useless. Nevertheless, we may not want to
13406 # sort them, since we want the *last* AC-DEFINE to be honored.
13407 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13408 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13409 rm -f confdef2sed.sed
13411 # This sed command replaces #undef with comments. This is necessary, for
13412 # example, in the case of _POSIX_SOURCE, which is predefined and required
13413 # on some systems where configure will not decide to define it.
13414 cat >>conftest.undefs <<\_ACEOF
13415 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13416 _ACEOF
13418 # Break up conftest.defines because some shells have a limit on the size
13419 # of here documents, and old seds have small limits too (100 cmds).
13420 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13421 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13422 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13423 echo ' :' >>$CONFIG_STATUS
13424 rm -f conftest.tail
13425 while grep . conftest.defines >/dev/null
13427 # Write a limited-size here document to $tmp/defines.sed.
13428 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13429 # Speed up: don't consider the non `#define' lines.
13430 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13431 # Work around the forget-to-reset-the-flag bug.
13432 echo 't clr' >>$CONFIG_STATUS
13433 echo ': clr' >>$CONFIG_STATUS
13434 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13435 echo 'CEOF
13436 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13437 rm -f $tmp/in
13438 mv $tmp/out $tmp/in
13439 ' >>$CONFIG_STATUS
13440 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13441 rm -f conftest.defines
13442 mv conftest.tail conftest.defines
13443 done
13444 rm -f conftest.defines
13445 echo ' fi # grep' >>$CONFIG_STATUS
13446 echo >>$CONFIG_STATUS
13448 # Break up conftest.undefs because some shells have a limit on the size
13449 # of here documents, and old seds have small limits too (100 cmds).
13450 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13451 rm -f conftest.tail
13452 while grep . conftest.undefs >/dev/null
13454 # Write a limited-size here document to $tmp/undefs.sed.
13455 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13456 # Speed up: don't consider the non `#undef'
13457 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13458 # Work around the forget-to-reset-the-flag bug.
13459 echo 't clr' >>$CONFIG_STATUS
13460 echo ': clr' >>$CONFIG_STATUS
13461 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13462 echo 'CEOF
13463 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13464 rm -f $tmp/in
13465 mv $tmp/out $tmp/in
13466 ' >>$CONFIG_STATUS
13467 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13468 rm -f conftest.undefs
13469 mv conftest.tail conftest.undefs
13470 done
13471 rm -f conftest.undefs
13473 cat >>$CONFIG_STATUS <<\_ACEOF
13474 # Let's still pretend it is `configure' which instantiates (i.e., don't
13475 # use $as_me), people would be surprised to read:
13476 # /* config.h. Generated by config.status. */
13477 if test x"$ac_file" = x-; then
13478 echo "/* Generated by configure. */" >$tmp/config.h
13479 else
13480 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13482 cat $tmp/in >>$tmp/config.h
13483 rm -f $tmp/in
13484 if test x"$ac_file" != x-; then
13485 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13486 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13487 echo "$as_me: $ac_file is unchanged" >&6;}
13488 else
13489 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13491 X"$ac_file" : 'X\(//\)[^/]' \| \
13492 X"$ac_file" : 'X\(//\)$' \| \
13493 X"$ac_file" : 'X\(/\)' \| \
13494 . : '\(.\)' 2>/dev/null ||
13495 echo X"$ac_file" |
13496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13498 /^X\(\/\/\)$/{ s//\1/; q; }
13499 /^X\(\/\).*/{ s//\1/; q; }
13500 s/.*/./; q'`
13501 { if $as_mkdir_p; then
13502 mkdir -p "$ac_dir"
13503 else
13504 as_dir="$ac_dir"
13505 as_dirs=
13506 while test ! -d "$as_dir"; do
13507 as_dirs="$as_dir $as_dirs"
13508 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13510 X"$as_dir" : 'X\(//\)[^/]' \| \
13511 X"$as_dir" : 'X\(//\)$' \| \
13512 X"$as_dir" : 'X\(/\)' \| \
13513 . : '\(.\)' 2>/dev/null ||
13514 echo X"$as_dir" |
13515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13517 /^X\(\/\/\)$/{ s//\1/; q; }
13518 /^X\(\/\).*/{ s//\1/; q; }
13519 s/.*/./; q'`
13520 done
13521 test ! -n "$as_dirs" || mkdir $as_dirs
13522 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13523 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13524 { (exit 1); exit 1; }; }; }
13526 rm -f $ac_file
13527 mv $tmp/config.h $ac_file
13529 else
13530 cat $tmp/config.h
13531 rm -f $tmp/config.h
13533 # Compute $ac_file's index in $config_headers.
13534 _am_stamp_count=1
13535 for _am_header in $config_headers :; do
13536 case $_am_header in
13537 $ac_file | $ac_file:* )
13538 break ;;
13540 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13541 esac
13542 done
13543 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13544 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13545 X$ac_file : 'X\(//\)[^/]' \| \
13546 X$ac_file : 'X\(//\)$' \| \
13547 X$ac_file : 'X\(/\)' \| \
13548 . : '\(.\)' 2>/dev/null ||
13549 echo X$ac_file |
13550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13552 /^X\(\/\/\)$/{ s//\1/; q; }
13553 /^X\(\/\).*/{ s//\1/; q; }
13554 s/.*/./; q'`/stamp-h$_am_stamp_count
13555 done
13556 _ACEOF
13557 cat >>$CONFIG_STATUS <<\_ACEOF
13560 # CONFIG_COMMANDS section.
13562 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13563 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13564 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13565 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13566 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13567 X"$ac_dest" : 'X\(//\)[^/]' \| \
13568 X"$ac_dest" : 'X\(//\)$' \| \
13569 X"$ac_dest" : 'X\(/\)' \| \
13570 . : '\(.\)' 2>/dev/null ||
13571 echo X"$ac_dest" |
13572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13574 /^X\(\/\/\)$/{ s//\1/; q; }
13575 /^X\(\/\).*/{ s//\1/; q; }
13576 s/.*/./; q'`
13577 { if $as_mkdir_p; then
13578 mkdir -p "$ac_dir"
13579 else
13580 as_dir="$ac_dir"
13581 as_dirs=
13582 while test ! -d "$as_dir"; do
13583 as_dirs="$as_dir $as_dirs"
13584 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13586 X"$as_dir" : 'X\(//\)[^/]' \| \
13587 X"$as_dir" : 'X\(//\)$' \| \
13588 X"$as_dir" : 'X\(/\)' \| \
13589 . : '\(.\)' 2>/dev/null ||
13590 echo X"$as_dir" |
13591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13593 /^X\(\/\/\)$/{ s//\1/; q; }
13594 /^X\(\/\).*/{ s//\1/; q; }
13595 s/.*/./; q'`
13596 done
13597 test ! -n "$as_dirs" || mkdir $as_dirs
13598 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13599 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13600 { (exit 1); exit 1; }; }; }
13602 ac_builddir=.
13604 if test "$ac_dir" != .; then
13605 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13606 # A "../" for each directory in $ac_dir_suffix.
13607 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13608 else
13609 ac_dir_suffix= ac_top_builddir=
13612 case $srcdir in
13613 .) # No --srcdir option. We are building in place.
13614 ac_srcdir=.
13615 if test -z "$ac_top_builddir"; then
13616 ac_top_srcdir=.
13617 else
13618 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13619 fi ;;
13620 [\\/]* | ?:[\\/]* ) # Absolute path.
13621 ac_srcdir=$srcdir$ac_dir_suffix;
13622 ac_top_srcdir=$srcdir ;;
13623 *) # Relative path.
13624 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13625 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13626 esac
13628 # Do not use `cd foo && pwd` to compute absolute paths, because
13629 # the directories may not exist.
13630 case `pwd` in
13631 .) ac_abs_builddir="$ac_dir";;
13633 case "$ac_dir" in
13634 .) ac_abs_builddir=`pwd`;;
13635 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13636 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13637 esac;;
13638 esac
13639 case $ac_abs_builddir in
13640 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13642 case ${ac_top_builddir}. in
13643 .) ac_abs_top_builddir=$ac_abs_builddir;;
13644 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13645 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13646 esac;;
13647 esac
13648 case $ac_abs_builddir in
13649 .) ac_abs_srcdir=$ac_srcdir;;
13651 case $ac_srcdir in
13652 .) ac_abs_srcdir=$ac_abs_builddir;;
13653 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13654 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13655 esac;;
13656 esac
13657 case $ac_abs_builddir in
13658 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13660 case $ac_top_srcdir in
13661 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13662 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13663 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13664 esac;;
13665 esac
13668 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13669 echo "$as_me: executing $ac_dest commands" >&6;}
13670 case $ac_dest in
13671 default-1 )
13672 # Only add multilib support code if we just rebuilt the top-level
13673 # Makefile.
13674 case " $CONFIG_FILES " in
13675 *" Makefile "*)
13676 ac_file=Makefile . ${multi_basedir}/config-ml.in
13678 esac ;;
13679 esac
13680 done
13681 _ACEOF
13683 cat >>$CONFIG_STATUS <<\_ACEOF
13685 { (exit 0); exit 0; }
13686 _ACEOF
13687 chmod +x $CONFIG_STATUS
13688 ac_clean_files=$ac_clean_files_save
13691 # configure is writing to config.log, and then calls config.status.
13692 # config.status does its own redirection, appending to config.log.
13693 # Unfortunately, on DOS this fails, as config.log is still kept open
13694 # by configure, so config.status won't be able to write to it; its
13695 # output is simply discarded. So we exec the FD to /dev/null,
13696 # effectively closing config.log, so it can be properly (re)opened and
13697 # appended to by config.status. When coming back to configure, we
13698 # need to make the FD available again.
13699 if test "$no_create" != yes; then
13700 ac_cs_success=:
13701 ac_config_status_args=
13702 test "$silent" = yes &&
13703 ac_config_status_args="$ac_config_status_args --quiet"
13704 exec 5>/dev/null
13705 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13706 exec 5>>config.log
13707 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13708 # would make configure fail if this is the last instruction.
13709 $ac_cs_success || { (exit 1); exit 1; }