* MAINTAINERS: Add self as m32c maintainer.
[official-gcc.git] / libgfortran / configure
blob28474dd88c0d3c6a1a1d5c4caf40fa86860494dd
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"
2606 || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 (eval $ac_try) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2618 ac_compiler_gnu=yes
2619 else
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2623 ac_compiler_gnu=no
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2629 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2630 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2631 GCC=`test $ac_compiler_gnu = yes && echo yes`
2632 ac_test_CFLAGS=${CFLAGS+set}
2633 ac_save_CFLAGS=$CFLAGS
2634 CFLAGS="-g"
2635 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2636 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2637 if test "${ac_cv_prog_cc_g+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640 cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h. */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2648 main ()
2652 return 0;
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>conftest.er1
2658 ac_status=$?
2659 grep -v '^ *+' conftest.er1 >conftest.err
2660 rm -f conftest.er1
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -z "$ac_c_werror_flag"
2665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 ac_cv_prog_cc_g=yes
2678 else
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2682 ac_cv_prog_cc_g=no
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2688 if test "$ac_test_CFLAGS" = set; then
2689 CFLAGS=$ac_save_CFLAGS
2690 elif test $ac_cv_prog_cc_g = yes; then
2691 if test "$GCC" = yes; then
2692 CFLAGS="-g -O2"
2693 else
2694 CFLAGS="-g"
2696 else
2697 if test "$GCC" = yes; then
2698 CFLAGS="-O2"
2699 else
2700 CFLAGS=
2703 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2704 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2705 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708 ac_cv_prog_cc_stdc=no
2709 ac_save_CC=$CC
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h. */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2716 #include <stdarg.h>
2717 #include <stdio.h>
2718 #include <sys/types.h>
2719 #include <sys/stat.h>
2720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2721 struct buf { int x; };
2722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2723 static char *e (p, i)
2724 char **p;
2725 int i;
2727 return p[i];
2729 static char *f (char * (*g) (char **, int), char **p, ...)
2731 char *s;
2732 va_list v;
2733 va_start (v,p);
2734 s = g (p, va_arg (v,int));
2735 va_end (v);
2736 return s;
2739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2740 function prototypes and stuff, but not '\xHH' hex character constants.
2741 These don't provoke an error unfortunately, instead are silently treated
2742 as 'x'. The following induces an error, until -std1 is added to get
2743 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2744 array size at least. It's necessary to write '\x00'==0 to get something
2745 that's true only with -std1. */
2746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2748 int test (int i, double x);
2749 struct s1 {int (*f) (int a);};
2750 struct s2 {int (*f) (double a);};
2751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2752 int argc;
2753 char **argv;
2755 main ()
2757 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2759 return 0;
2761 _ACEOF
2762 # Don't try gcc -ansi; that turns off useful extensions and
2763 # breaks some systems' header files.
2764 # AIX -qlanglvl=ansi
2765 # Ultrix and OSF/1 -std1
2766 # HP-UX 10.20 and later -Ae
2767 # HP-UX older versions -Aa -D_HPUX_SOURCE
2768 # SVR4 -Xc -D__EXTENSIONS__
2769 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2771 CC="$ac_save_CC $ac_arg"
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>conftest.er1
2775 ac_status=$?
2776 grep -v '^ *+' conftest.er1 >conftest.err
2777 rm -f conftest.er1
2778 cat conftest.err >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try='test -z "$ac_c_werror_flag"
2782 || test ! -s conftest.err'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; } &&
2788 { ac_try='test -s conftest.$ac_objext'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 (eval $ac_try) 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2794 ac_cv_prog_cc_stdc=$ac_arg
2795 break
2796 else
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2801 rm -f conftest.err conftest.$ac_objext
2802 done
2803 rm -f conftest.$ac_ext conftest.$ac_objext
2804 CC=$ac_save_CC
2808 case "x$ac_cv_prog_cc_stdc" in
2809 x|xno)
2810 echo "$as_me:$LINENO: result: none needed" >&5
2811 echo "${ECHO_T}none needed" >&6 ;;
2813 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2814 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2815 CC="$CC $ac_cv_prog_cc_stdc" ;;
2816 esac
2818 # Some people use a C++ compiler to compile C. Since we use `exit',
2819 # in C++ we need to declare it. In case someone uses the same compiler
2820 # for both compiling C and C++ we need to have the C++ compiler decide
2821 # the declaration of exit, since it's the most demanding environment.
2822 cat >conftest.$ac_ext <<_ACEOF
2823 #ifndef __cplusplus
2824 choke me
2825 #endif
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829 (eval $ac_compile) 2>conftest.er1
2830 ac_status=$?
2831 grep -v '^ *+' conftest.er1 >conftest.err
2832 rm -f conftest.er1
2833 cat conftest.err >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 { ac_try='test -z "$ac_c_werror_flag"
2837 || test ! -s conftest.err'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; } &&
2843 { ac_try='test -s conftest.$ac_objext'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 (eval $ac_try) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2849 for ac_declaration in \
2850 '' \
2851 'extern "C" void std::exit (int) throw (); using std::exit;' \
2852 'extern "C" void std::exit (int); using std::exit;' \
2853 'extern "C" void exit (int) throw ();' \
2854 'extern "C" void exit (int);' \
2855 'void exit (int);'
2857 cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h. */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2863 $ac_declaration
2864 #include <stdlib.h>
2866 main ()
2868 exit (42);
2870 return 0;
2872 _ACEOF
2873 rm -f conftest.$ac_objext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875 (eval $ac_compile) 2>conftest.er1
2876 ac_status=$?
2877 grep -v '^ *+' conftest.er1 >conftest.err
2878 rm -f conftest.er1
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
2882 { ac_try='test -z "$ac_c_werror_flag"
2883 || test ! -s conftest.err'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; } &&
2889 { ac_try='test -s conftest.$ac_objext'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 (eval $ac_try) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2896 else
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2900 continue
2902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903 cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h. */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2909 $ac_declaration
2911 main ()
2913 exit (42);
2915 return 0;
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>conftest.er1
2921 ac_status=$?
2922 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } &&
2927 { ac_try='test -z "$ac_c_werror_flag"
2928 || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 break
2941 else
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2947 done
2948 rm -f conftest*
2949 if test -n "$ac_declaration"; then
2950 echo '#ifdef __cplusplus' >>confdefs.h
2951 echo $ac_declaration >>confdefs.h
2952 echo '#endif' >>confdefs.h
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961 ac_ext=c
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2969 # Add -Wall if we are using GCC.
2970 if test "x$GCC" = "xyes"; then
2971 AM_FCFLAGS="-Wall"
2972 ## We like to use C99 routines when available. This makes sure that
2973 ## __STDC_VERSION__ is set such that libc includes make them available.
2974 AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
2979 # Find other programs we need.
2980 if test -n "$ac_tool_prefix"; then
2981 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2982 set dummy ${ac_tool_prefix}as; ac_word=$2
2983 echo "$as_me:$LINENO: checking for $ac_word" >&5
2984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2985 if test "${ac_cv_prog_AS+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988 if test -n "$AS"; then
2989 ac_cv_prog_AS="$AS" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_AS="${ac_tool_prefix}as"
2999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3002 done
3003 done
3007 AS=$ac_cv_prog_AS
3008 if test -n "$AS"; then
3009 echo "$as_me:$LINENO: result: $AS" >&5
3010 echo "${ECHO_T}$AS" >&6
3011 else
3012 echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6
3017 if test -z "$ac_cv_prog_AS"; then
3018 ac_ct_AS=$AS
3019 # Extract the first word of "as", so it can be a program name with args.
3020 set dummy as; ac_word=$2
3021 echo "$as_me:$LINENO: checking for $ac_word" >&5
3022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3023 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 if test -n "$ac_ct_AS"; then
3027 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036 ac_cv_prog_ac_ct_AS="as"
3037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3040 done
3041 done
3045 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3046 if test -n "$ac_ct_AS"; then
3047 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3048 echo "${ECHO_T}$ac_ct_AS" >&6
3049 else
3050 echo "$as_me:$LINENO: result: no" >&5
3051 echo "${ECHO_T}no" >&6
3054 AS=$ac_ct_AS
3055 else
3056 AS="$ac_cv_prog_AS"
3059 if test -n "$ac_tool_prefix"; then
3060 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3061 set dummy ${ac_tool_prefix}ar; ac_word=$2
3062 echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3064 if test "${ac_cv_prog_AR+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067 if test -n "$AR"; then
3068 ac_cv_prog_AR="$AR" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_AR="${ac_tool_prefix}ar"
3078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3081 done
3082 done
3086 AR=$ac_cv_prog_AR
3087 if test -n "$AR"; then
3088 echo "$as_me:$LINENO: result: $AR" >&5
3089 echo "${ECHO_T}$AR" >&6
3090 else
3091 echo "$as_me:$LINENO: result: no" >&5
3092 echo "${ECHO_T}no" >&6
3096 if test -z "$ac_cv_prog_AR"; then
3097 ac_ct_AR=$AR
3098 # Extract the first word of "ar", so it can be a program name with args.
3099 set dummy ar; ac_word=$2
3100 echo "$as_me:$LINENO: checking for $ac_word" >&5
3101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3102 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105 if test -n "$ac_ct_AR"; then
3106 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_ac_ct_AR="ar"
3116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3119 done
3120 done
3124 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3125 if test -n "$ac_ct_AR"; then
3126 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3127 echo "${ECHO_T}$ac_ct_AR" >&6
3128 else
3129 echo "$as_me:$LINENO: result: no" >&5
3130 echo "${ECHO_T}no" >&6
3133 AR=$ac_ct_AR
3134 else
3135 AR="$ac_cv_prog_AR"
3138 if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3141 echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_RANLIB+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 if test -n "$RANLIB"; then
3147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3160 done
3161 done
3165 RANLIB=$ac_cv_prog_RANLIB
3166 if test -n "$RANLIB"; then
3167 echo "$as_me:$LINENO: result: $RANLIB" >&5
3168 echo "${ECHO_T}$RANLIB" >&6
3169 else
3170 echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3175 if test -z "$ac_cv_prog_RANLIB"; then
3176 ac_ct_RANLIB=$RANLIB
3177 # Extract the first word of "ranlib", so it can be a program name with args.
3178 set dummy ranlib; ac_word=$2
3179 echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 if test -n "$ac_ct_RANLIB"; then
3185 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194 ac_cv_prog_ac_ct_RANLIB="ranlib"
3195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 break 2
3198 done
3199 done
3201 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3205 if test -n "$ac_ct_RANLIB"; then
3206 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3207 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3208 else
3209 echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3213 RANLIB=$ac_ct_RANLIB
3214 else
3215 RANLIB="$ac_cv_prog_RANLIB"
3218 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3219 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3220 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3221 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224 cat >conftest.make <<\_ACEOF
3225 all:
3226 @echo 'ac_maketemp="$(MAKE)"'
3227 _ACEOF
3228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3229 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3230 if test -n "$ac_maketemp"; then
3231 eval ac_cv_prog_make_${ac_make}_set=yes
3232 else
3233 eval ac_cv_prog_make_${ac_make}_set=no
3235 rm -f conftest.make
3237 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3238 echo "$as_me:$LINENO: result: yes" >&5
3239 echo "${ECHO_T}yes" >&6
3240 SET_MAKE=
3241 else
3242 echo "$as_me:$LINENO: result: no" >&5
3243 echo "${ECHO_T}no" >&6
3244 SET_MAKE="MAKE=${MAKE-make}"
3247 # Find a good install program. We prefer a C program (faster),
3248 # so one script is as good as another. But avoid the broken or
3249 # incompatible versions:
3250 # SysV /etc/install, /usr/sbin/install
3251 # SunOS /usr/etc/install
3252 # IRIX /sbin/install
3253 # AIX /bin/install
3254 # AmigaOS /C/install, which installs bootblocks on floppy discs
3255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3258 # OS/2's system install, which has a completely different semantic
3259 # ./install, which can be erroneously created by make from ./install.sh.
3260 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3261 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3262 if test -z "$INSTALL"; then
3263 if test "${ac_cv_path_install+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 # Account for people who put trailing slashes in PATH elements.
3272 case $as_dir/ in
3273 ./ | .// | /cC/* | \
3274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3275 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3276 /usr/ucb/* ) ;;
3278 # OSF1 and SCO ODT 3.0 have their own names for install.
3279 # Don't use installbsd from OSF since it installs stuff as root
3280 # by default.
3281 for ac_prog in ginstall scoinst install; do
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3284 if test $ac_prog = install &&
3285 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3286 # AIX install. It has an incompatible calling convention.
3288 elif test $ac_prog = install &&
3289 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3290 # program-specific install script used by HP pwplus--don't use.
3292 else
3293 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3294 break 3
3297 done
3298 done
3300 esac
3301 done
3305 if test "${ac_cv_path_install+set}" = set; then
3306 INSTALL=$ac_cv_path_install
3307 else
3308 # As a last resort, use the slow shell script. We don't cache a
3309 # path for INSTALL within a source directory, because that will
3310 # break other packages using the cache if that directory is
3311 # removed, or if the path is relative.
3312 INSTALL=$ac_install_sh
3315 echo "$as_me:$LINENO: result: $INSTALL" >&5
3316 echo "${ECHO_T}$INSTALL" >&6
3318 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3319 # It thinks the first close brace ends the variable substitution.
3320 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3322 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3324 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3327 # Configure libtool
3328 #AC_MSG_NOTICE([====== Starting libtool configuration])
3330 # Check whether --enable-shared or --disable-shared was given.
3331 if test "${enable_shared+set}" = set; then
3332 enableval="$enable_shared"
3333 p=${PACKAGE-default}
3334 case $enableval in
3335 yes) enable_shared=yes ;;
3336 no) enable_shared=no ;;
3338 enable_shared=no
3339 # Look at the argument we got. We use all the common list separators.
3340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3341 for pkg in $enableval; do
3342 if test "X$pkg" = "X$p"; then
3343 enable_shared=yes
3345 done
3346 IFS="$ac_save_ifs"
3348 esac
3349 else
3350 enable_shared=yes
3352 # Check whether --enable-static or --disable-static was given.
3353 if test "${enable_static+set}" = set; then
3354 enableval="$enable_static"
3355 p=${PACKAGE-default}
3356 case $enableval in
3357 yes) enable_static=yes ;;
3358 no) enable_static=no ;;
3360 enable_static=no
3361 # Look at the argument we got. We use all the common list separators.
3362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3363 for pkg in $enableval; do
3364 if test "X$pkg" = "X$p"; then
3365 enable_static=yes
3367 done
3368 IFS="$ac_save_ifs"
3370 esac
3371 else
3372 enable_static=yes
3374 # Check whether --enable-fast-install or --disable-fast-install was given.
3375 if test "${enable_fast_install+set}" = set; then
3376 enableval="$enable_fast_install"
3377 p=${PACKAGE-default}
3378 case $enableval in
3379 yes) enable_fast_install=yes ;;
3380 no) enable_fast_install=no ;;
3382 enable_fast_install=no
3383 # Look at the argument we got. We use all the common list separators.
3384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3385 for pkg in $enableval; do
3386 if test "X$pkg" = "X$p"; then
3387 enable_fast_install=yes
3389 done
3390 IFS="$ac_save_ifs"
3392 esac
3393 else
3394 enable_fast_install=yes
3397 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3398 if test "${with_gnu_ld+set}" = set; then
3399 withval="$with_gnu_ld"
3400 test "$withval" = no || with_gnu_ld=yes
3401 else
3402 with_gnu_ld=no
3404 ac_prog=ld
3405 if test "$GCC" = yes; then
3406 # Check if gcc -print-prog-name=ld gives a path.
3407 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3408 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3409 case $host in
3410 *-*-mingw*)
3411 # gcc leaves a trailing carriage return which upsets mingw
3412 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3414 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3415 esac
3416 case $ac_prog in
3417 # Accept absolute paths.
3418 [\\/]* | [A-Za-z]:[\\/]*)
3419 re_direlt='/[^/][^/]*/\.\./'
3420 # Canonicalize the path of ld
3421 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3422 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3423 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3424 done
3425 test -z "$LD" && LD="$ac_prog"
3428 # If it fails, then pretend we aren't using GCC.
3429 ac_prog=ld
3432 # If it is relative, then search for the first ld in PATH.
3433 with_gnu_ld=unknown
3435 esac
3436 elif test "$with_gnu_ld" = yes; then
3437 echo "$as_me:$LINENO: checking for GNU ld" >&5
3438 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3439 else
3440 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3441 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3443 if test "${lt_cv_path_LD+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 if test -z "$LD"; then
3447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3448 for ac_dir in $PATH; do
3449 test -z "$ac_dir" && ac_dir=.
3450 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3451 lt_cv_path_LD="$ac_dir/$ac_prog"
3452 # Check to see if the program is GNU ld. I'd rather use --version,
3453 # but apparently some GNU ld's only accept -v.
3454 # Break only if it was the GNU/non-GNU ld that we prefer.
3455 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3456 test "$with_gnu_ld" != no && break
3457 else
3458 test "$with_gnu_ld" != yes && break
3461 done
3462 IFS="$ac_save_ifs"
3463 else
3464 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3468 LD="$lt_cv_path_LD"
3469 if test -n "$LD"; then
3470 echo "$as_me:$LINENO: result: $LD" >&5
3471 echo "${ECHO_T}$LD" >&6
3472 else
3473 echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6
3476 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3477 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3478 { (exit 1); exit 1; }; }
3479 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3480 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3481 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3482 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 else
3484 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3485 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3486 lt_cv_prog_gnu_ld=yes
3487 else
3488 lt_cv_prog_gnu_ld=no
3491 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3492 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3493 with_gnu_ld=$lt_cv_prog_gnu_ld
3496 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3497 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3498 if test "${lt_cv_ld_reload_flag+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501 lt_cv_ld_reload_flag='-r'
3503 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3504 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3505 reload_flag=$lt_cv_ld_reload_flag
3506 test -n "$reload_flag" && reload_flag=" $reload_flag"
3508 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3509 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3510 if test "${lt_cv_path_NM+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513 if test -n "$NM"; then
3514 # Let the user override the test.
3515 lt_cv_path_NM="$NM"
3516 else
3517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3518 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3519 test -z "$ac_dir" && ac_dir=.
3520 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3521 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3522 # Check to see if the nm accepts a BSD-compat flag.
3523 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3524 # nm: unknown option "B" ignored
3525 # Tru64's nm complains that /dev/null is an invalid object file
3526 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3527 lt_cv_path_NM="$tmp_nm -B"
3528 break
3529 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3530 lt_cv_path_NM="$tmp_nm -p"
3531 break
3532 else
3533 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3534 continue # so that we can try to find one that supports BSD flags
3537 done
3538 IFS="$ac_save_ifs"
3539 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3543 NM="$lt_cv_path_NM"
3544 echo "$as_me:$LINENO: result: $NM" >&5
3545 echo "${ECHO_T}$NM" >&6
3547 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3548 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3549 LN_S=$as_ln_s
3550 if test "$LN_S" = "ln -s"; then
3551 echo "$as_me:$LINENO: result: yes" >&5
3552 echo "${ECHO_T}yes" >&6
3553 else
3554 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3555 echo "${ECHO_T}no, using $LN_S" >&6
3558 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3559 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3560 if test "${lt_cv_deplibs_check_method+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563 lt_cv_file_magic_cmd='$MAGIC_CMD'
3564 lt_cv_file_magic_test_file=
3565 lt_cv_deplibs_check_method='unknown'
3566 # Need to set the preceding variable on all platforms that support
3567 # interlibrary dependencies.
3568 # 'none' -- dependencies not supported.
3569 # `unknown' -- same as none, but documents that we really don't know.
3570 # 'pass_all' -- all dependencies passed with no checks.
3571 # 'test_compile' -- check by making test program.
3572 # 'file_magic [regex]' -- check by looking for files in library path
3573 # which responds to the $file_magic_cmd with a given egrep regex.
3574 # If you have `file' or equivalent on your system and you're not sure
3575 # whether `pass_all' will *always* work, you probably want this one.
3577 case $host_os in
3578 aix*)
3579 lt_cv_deplibs_check_method=pass_all
3582 beos*)
3583 lt_cv_deplibs_check_method=pass_all
3586 bsdi4*)
3587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3588 lt_cv_file_magic_cmd='/usr/bin/file -L'
3589 lt_cv_file_magic_test_file=/shlib/libc.so
3592 cygwin* | mingw* |pw32*)
3593 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3594 lt_cv_file_magic_cmd='$OBJDUMP -f'
3597 darwin* | rhapsody*)
3598 # this will be overwritten by pass_all, but leave it in just in case
3599 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3600 lt_cv_file_magic_cmd='/usr/bin/file -L'
3601 case "$host_os" in
3602 rhapsody* | darwin1.012)
3603 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3605 *) # Darwin 1.3 on
3606 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3608 esac
3609 lt_cv_deplibs_check_method=pass_all
3612 freebsd* | kfreebsd*-gnu)
3613 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3614 case $host_cpu in
3615 i*86 )
3616 # Not sure whether the presence of OpenBSD here was a mistake.
3617 # Let's accept both of them until this is cleared up.
3618 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3619 lt_cv_file_magic_cmd=/usr/bin/file
3620 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3622 esac
3623 else
3624 lt_cv_deplibs_check_method=pass_all
3628 gnu*)
3629 lt_cv_deplibs_check_method=pass_all
3632 hpux10.20*|hpux11*)
3633 case $host_cpu in
3634 hppa*)
3635 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3636 lt_cv_file_magic_cmd=/usr/bin/file
3637 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3639 ia64*)
3640 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3641 lt_cv_file_magic_cmd=/usr/bin/file
3642 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3644 esac
3647 irix5* | irix6*)
3648 case $host_os in
3649 irix5*)
3650 # this will be overridden with pass_all, but let us keep it just in case
3651 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3654 case $LD in
3655 *-32|*"-32 ") libmagic=32-bit;;
3656 *-n32|*"-n32 ") libmagic=N32;;
3657 *-64|*"-64 ") libmagic=64-bit;;
3658 *) libmagic=never-match;;
3659 esac
3660 # this will be overridden with pass_all, but let us keep it just in case
3661 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3663 esac
3664 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3665 lt_cv_deplibs_check_method=pass_all
3668 # This must be Linux ELF.
3669 linux-gnu*)
3670 lt_cv_deplibs_check_method=pass_all
3673 netbsd* | knetbsd*-gnu)
3674 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3675 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3676 else
3677 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3681 newsos6)
3682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3683 lt_cv_file_magic_cmd=/usr/bin/file
3684 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3687 osf3* | osf4* | osf5*)
3688 # this will be overridden with pass_all, but let us keep it just in case
3689 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3690 lt_cv_file_magic_test_file=/shlib/libc.so
3691 lt_cv_deplibs_check_method=pass_all
3694 sco3.2v5*)
3695 lt_cv_deplibs_check_method=pass_all
3698 solaris*)
3699 lt_cv_deplibs_check_method=pass_all
3700 lt_cv_file_magic_test_file=/lib/libc.so
3703 sysv5uw[78]* | sysv4*uw2*)
3704 lt_cv_deplibs_check_method=pass_all
3707 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3708 case $host_vendor in
3709 ncr)
3710 lt_cv_deplibs_check_method=pass_all
3712 motorola)
3713 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]'
3714 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3716 esac
3718 esac
3721 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3722 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3723 file_magic_cmd=$lt_cv_file_magic_cmd
3724 deplibs_check_method=$lt_cv_deplibs_check_method
3730 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3732 # find the maximum length of command line arguments
3733 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3734 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3735 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3739 teststring="ABCD"
3741 case $build_os in
3742 msdosdjgpp*)
3743 # On DJGPP, this test can blow up pretty badly due to problems in libc
3744 # (any single argument exceeding 2000 bytes causes a buffer overrun
3745 # during glob expansion). Even if it were fixed, the result of this
3746 # check would be larger than it should be.
3747 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3750 cygwin* | mingw*)
3751 # On Win9x/ME, this test blows up -- it succeeds, but takes
3752 # about 5 minutes as the teststring grows exponentially.
3753 # Worse, since 9x/ME are not pre-emptively multitasking,
3754 # you end up with a "frozen" computer, even though with patience
3755 # the test eventually succeeds (with a max line length of 256k).
3756 # Instead, let's just punt: use the minimum linelength reported by
3757 # all of the supported platforms: 8192 (on NT/2K/XP).
3758 lt_cv_sys_max_cmd_len=8192;
3761 amigaos*)
3762 # On AmigaOS with pdksh, this test takes hours, literally.
3763 # So we just punt and use a minimum line length of 8192.
3764 lt_cv_sys_max_cmd_len=8192;
3767 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3768 # This has been around since 386BSD, at least. Likely further.
3769 if test -x /sbin/sysctl; then
3770 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3771 elif test -x /usr/sbin/sysctl; then
3772 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3773 else
3774 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3776 # And add a safety zone
3777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3780 esac
3784 if test -n "$lt_cv_sys_max_cmd_len" ; then
3785 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3786 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3787 else
3788 echo "$as_me:$LINENO: result: none" >&5
3789 echo "${ECHO_T}none" >&6
3793 # Only perform the check for file, if the check method requires it
3794 case $deplibs_check_method in
3795 file_magic*)
3796 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3797 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3798 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3799 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 case $MAGIC_CMD in
3804 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3806 ?:/*)
3807 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3810 ac_save_MAGIC_CMD="$MAGIC_CMD"
3811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3812 ac_dummy="/usr/bin:$PATH"
3813 for ac_dir in $ac_dummy; do
3814 test -z "$ac_dir" && ac_dir=.
3815 if test -f $ac_dir/${ac_tool_prefix}file; then
3816 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3817 if test -n "$file_magic_test_file"; then
3818 case $deplibs_check_method in
3819 "file_magic "*)
3820 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3822 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3823 egrep "$file_magic_regex" > /dev/null; then
3825 else
3826 cat <<EOF 1>&2
3828 *** Warning: the command libtool uses to detect shared libraries,
3829 *** $file_magic_cmd, produces output that libtool cannot recognize.
3830 *** The result is that libtool may fail to recognize shared libraries
3831 *** as such. This will affect the creation of libtool libraries that
3832 *** depend on shared libraries, but programs linked with such libtool
3833 *** libraries will work regardless of this problem. Nevertheless, you
3834 *** may want to report the problem to your system manager and/or to
3835 *** bug-libtool@gnu.org
3838 fi ;;
3839 esac
3841 break
3843 done
3844 IFS="$ac_save_ifs"
3845 MAGIC_CMD="$ac_save_MAGIC_CMD"
3847 esac
3850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3851 if test -n "$MAGIC_CMD"; then
3852 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3853 echo "${ECHO_T}$MAGIC_CMD" >&6
3854 else
3855 echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3859 if test -z "$lt_cv_path_MAGIC_CMD"; then
3860 if test -n "$ac_tool_prefix"; then
3861 echo "$as_me:$LINENO: checking for file" >&5
3862 echo $ECHO_N "checking for file... $ECHO_C" >&6
3863 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866 case $MAGIC_CMD in
3868 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3870 ?:/*)
3871 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3874 ac_save_MAGIC_CMD="$MAGIC_CMD"
3875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3876 ac_dummy="/usr/bin:$PATH"
3877 for ac_dir in $ac_dummy; do
3878 test -z "$ac_dir" && ac_dir=.
3879 if test -f $ac_dir/file; then
3880 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3881 if test -n "$file_magic_test_file"; then
3882 case $deplibs_check_method in
3883 "file_magic "*)
3884 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3885 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3886 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3887 egrep "$file_magic_regex" > /dev/null; then
3889 else
3890 cat <<EOF 1>&2
3892 *** Warning: the command libtool uses to detect shared libraries,
3893 *** $file_magic_cmd, produces output that libtool cannot recognize.
3894 *** The result is that libtool may fail to recognize shared libraries
3895 *** as such. This will affect the creation of libtool libraries that
3896 *** depend on shared libraries, but programs linked with such libtool
3897 *** libraries will work regardless of this problem. Nevertheless, you
3898 *** may want to report the problem to your system manager and/or to
3899 *** bug-libtool@gnu.org
3902 fi ;;
3903 esac
3905 break
3907 done
3908 IFS="$ac_save_ifs"
3909 MAGIC_CMD="$ac_save_MAGIC_CMD"
3911 esac
3914 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3915 if test -n "$MAGIC_CMD"; then
3916 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3917 echo "${ECHO_T}$MAGIC_CMD" >&6
3918 else
3919 echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3923 else
3924 MAGIC_CMD=:
3930 esac
3932 if test -n "$ac_tool_prefix"; then
3933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3934 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3935 echo "$as_me:$LINENO: checking for $ac_word" >&5
3936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3937 if test "${ac_cv_prog_RANLIB+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940 if test -n "$RANLIB"; then
3941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 break 2
3954 done
3955 done
3959 RANLIB=$ac_cv_prog_RANLIB
3960 if test -n "$RANLIB"; then
3961 echo "$as_me:$LINENO: result: $RANLIB" >&5
3962 echo "${ECHO_T}$RANLIB" >&6
3963 else
3964 echo "$as_me:$LINENO: result: no" >&5
3965 echo "${ECHO_T}no" >&6
3969 if test -z "$ac_cv_prog_RANLIB"; then
3970 ac_ct_RANLIB=$RANLIB
3971 # Extract the first word of "ranlib", so it can be a program name with args.
3972 set dummy ranlib; ac_word=$2
3973 echo "$as_me:$LINENO: checking for $ac_word" >&5
3974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3975 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978 if test -n "$ac_ct_RANLIB"; then
3979 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3980 else
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988 ac_cv_prog_ac_ct_RANLIB="ranlib"
3989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 break 2
3992 done
3993 done
3995 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3998 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3999 if test -n "$ac_ct_RANLIB"; then
4000 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4001 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4002 else
4003 echo "$as_me:$LINENO: result: no" >&5
4004 echo "${ECHO_T}no" >&6
4007 RANLIB=$ac_ct_RANLIB
4008 else
4009 RANLIB="$ac_cv_prog_RANLIB"
4012 if test -n "$ac_tool_prefix"; then
4013 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4014 set dummy ${ac_tool_prefix}strip; ac_word=$2
4015 echo "$as_me:$LINENO: checking for $ac_word" >&5
4016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4017 if test "${ac_cv_prog_STRIP+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020 if test -n "$STRIP"; then
4021 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4022 else
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 break 2
4034 done
4035 done
4039 STRIP=$ac_cv_prog_STRIP
4040 if test -n "$STRIP"; then
4041 echo "$as_me:$LINENO: result: $STRIP" >&5
4042 echo "${ECHO_T}$STRIP" >&6
4043 else
4044 echo "$as_me:$LINENO: result: no" >&5
4045 echo "${ECHO_T}no" >&6
4049 if test -z "$ac_cv_prog_STRIP"; then
4050 ac_ct_STRIP=$STRIP
4051 # Extract the first word of "strip", so it can be a program name with args.
4052 set dummy strip; ac_word=$2
4053 echo "$as_me:$LINENO: checking for $ac_word" >&5
4054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4055 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058 if test -n "$ac_ct_STRIP"; then
4059 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4060 else
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
4066 for ac_exec_ext in '' $ac_executable_extensions; do
4067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4068 ac_cv_prog_ac_ct_STRIP="strip"
4069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 break 2
4072 done
4073 done
4075 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4078 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4079 if test -n "$ac_ct_STRIP"; then
4080 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4081 echo "${ECHO_T}$ac_ct_STRIP" >&6
4082 else
4083 echo "$as_me:$LINENO: result: no" >&5
4084 echo "${ECHO_T}no" >&6
4087 STRIP=$ac_ct_STRIP
4088 else
4089 STRIP="$ac_cv_prog_STRIP"
4093 # Check for any special flags to pass to ltconfig.
4094 libtool_flags="--cache-file=$cache_file"
4095 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4096 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4097 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4098 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4099 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4102 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4103 if test "${enable_libtool_lock+set}" = set; then
4104 enableval="$enable_libtool_lock"
4107 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4108 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4111 # Check whether --with-pic or --without-pic was given.
4112 if test "${with_pic+set}" = set; then
4113 withval="$with_pic"
4114 pic_mode="$withval"
4115 else
4116 pic_mode=default
4118 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4119 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4121 # Some flags need to be propagated to the compiler or linker for good
4122 # libtool support.
4123 case $host in
4124 *-*-irix6*)
4125 # Find out which ABI we are using.
4126 echo '#line 4126 "configure"' > conftest.$ac_ext
4127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128 (eval $ac_compile) 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; then
4132 if test "$lt_cv_prog_gnu_ld" = yes; then
4133 case `/usr/bin/file conftest.$ac_objext` in
4134 *32-bit*)
4135 LD="${LD-ld} -melf32bsmip"
4137 *N32*)
4138 LD="${LD-ld} -melf32bmipn32"
4140 *64-bit*)
4141 LD="${LD-ld} -melf64bmip"
4143 esac
4144 else
4145 case `/usr/bin/file conftest.$ac_objext` in
4146 *32-bit*)
4147 LD="${LD-ld} -32"
4149 *N32*)
4150 LD="${LD-ld} -n32"
4152 *64-bit*)
4153 LD="${LD-ld} -64"
4155 esac
4158 rm -rf conftest*
4161 ia64-*-hpux*)
4162 # Find out which ABI we are using.
4163 echo 'int i;' > conftest.$ac_ext
4164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4165 (eval $ac_compile) 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; then
4169 case "`/usr/bin/file conftest.o`" in
4170 *ELF-32*)
4171 HPUX_IA64_MODE="32"
4173 *ELF-64*)
4174 HPUX_IA64_MODE="64"
4176 esac
4178 rm -rf conftest*
4181 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4182 # Find out which ABI we are using.
4183 echo 'int i;' > conftest.$ac_ext
4184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4185 (eval $ac_compile) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; then
4189 case "`/usr/bin/file conftest.o`" in
4190 *32-bit*)
4191 case $host in
4192 x86_64-*linux*)
4193 LD="${LD-ld} -m elf_i386"
4195 ppc64-*linux*|powerpc64-*linux*)
4196 LD="${LD-ld} -m elf32ppclinux"
4198 s390x-*linux*)
4199 LD="${LD-ld} -m elf_s390"
4201 sparc64-*linux*)
4202 LD="${LD-ld} -m elf32_sparc"
4204 esac
4206 *64-bit*)
4207 case $host in
4208 x86_64-*linux*)
4209 LD="${LD-ld} -m elf_x86_64"
4211 ppc*-*linux*|powerpc*-*linux*)
4212 LD="${LD-ld} -m elf64ppc"
4214 s390*-*linux*)
4215 LD="${LD-ld} -m elf64_s390"
4217 sparc*-*linux*)
4218 LD="${LD-ld} -m elf64_sparc"
4220 esac
4222 esac
4224 rm -rf conftest*
4227 *-*-sco3.2v5*)
4228 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4229 SAVE_CFLAGS="$CFLAGS"
4230 CFLAGS="$CFLAGS -belf"
4231 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4232 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4233 if test "${lt_cv_cc_needs_belf+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 else
4238 ac_ext=c
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244 if test x$gcc_no_link = xyes; then
4245 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4246 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4247 { (exit 1); exit 1; }; }
4249 cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h. */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4257 main ()
4261 return 0;
4263 _ACEOF
4264 rm -f conftest.$ac_objext conftest$ac_exeext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266 (eval $ac_link) 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } &&
4273 { ac_try='test -z "$ac_c_werror_flag"
4274 || test ! -s conftest.err'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 (eval $ac_try) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; } &&
4280 { ac_try='test -s conftest$ac_exeext'
4281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 (eval $ac_try) 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4286 lt_cv_cc_needs_belf=yes
4287 else
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 lt_cv_cc_needs_belf=no
4293 rm -f conftest.err conftest.$ac_objext \
4294 conftest$ac_exeext conftest.$ac_ext
4295 ac_ext=c
4296 ac_cpp='$CPP $CPPFLAGS'
4297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4303 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4304 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4305 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4306 CFLAGS="$SAVE_CFLAGS"
4311 esac
4314 # Save cache, so that ltconfig can load it
4315 cat >confcache <<\_ACEOF
4316 # This file is a shell script that caches the results of configure
4317 # tests run on this system so they can be shared between configure
4318 # scripts and configure runs, see configure's option --config-cache.
4319 # It is not useful on other systems. If it contains results you don't
4320 # want to keep, you may remove or edit it.
4322 # config.status only pays attention to the cache file if you give it
4323 # the --recheck option to rerun configure.
4325 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4326 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4327 # following values.
4329 _ACEOF
4331 # The following way of writing the cache mishandles newlines in values,
4332 # but we know of no workaround that is simple, portable, and efficient.
4333 # So, don't put newlines in cache variables' values.
4334 # Ultrix sh set writes to stderr and can't be redirected directly,
4335 # and sets the high bit in the cache file unless we assign to the vars.
4337 (set) 2>&1 |
4338 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4339 *ac_space=\ *)
4340 # `set' does not quote correctly, so add quotes (double-quote
4341 # substitution turns \\\\ into \\, and sed turns \\ into \).
4342 sed -n \
4343 "s/'/'\\\\''/g;
4344 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4347 # `set' quotes correctly as required by POSIX, so do not add quotes.
4348 sed -n \
4349 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4351 esac;
4353 sed '
4354 t clear
4355 : clear
4356 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4357 t end
4358 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4359 : end' >>confcache
4360 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4361 if test -w $cache_file; then
4362 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4363 cat confcache >$cache_file
4364 else
4365 echo "not updating unwritable cache $cache_file"
4368 rm -f confcache
4370 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4371 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4372 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4373 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4374 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4375 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4376 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4377 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4378 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4379 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4380 echo "$as_me: error: libtool configure failed" >&2;}
4381 { (exit 1); exit 1; }; }
4383 # Reload cache, that may have been modified by ltconfig
4384 if test -r "$cache_file"; then
4385 # Some versions of bash will fail to source /dev/null (special
4386 # files actually), so we avoid doing that.
4387 if test -f "$cache_file"; then
4388 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4389 echo "$as_me: loading cache $cache_file" >&6;}
4390 case $cache_file in
4391 [\\/]* | ?:[\\/]* ) . $cache_file;;
4392 *) . ./$cache_file;;
4393 esac
4395 else
4396 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4397 echo "$as_me: creating cache $cache_file" >&6;}
4398 >$cache_file
4402 # This can be used to rebuild libtool when needed
4403 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4405 # Always use our own libtool.
4406 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4408 # Redirect the config.log output again, so that the ltconfig log is not
4409 # clobbered by the next message.
4410 exec 5>>./config.log
4419 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4421 # We need gfortran to compile parts of the library
4422 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4423 #AC_PROG_FC(gfortran)
4424 FC="$GFORTRAN"
4425 ac_ext=${FC_SRCEXT-f}
4426 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4427 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4428 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4429 if test -n "$ac_tool_prefix"; then
4430 for ac_prog in gfortran
4432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4434 echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4436 if test "${ac_cv_prog_FC+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 if test -n "$FC"; then
4440 ac_cv_prog_FC="$FC" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4453 done
4454 done
4458 FC=$ac_cv_prog_FC
4459 if test -n "$FC"; then
4460 echo "$as_me:$LINENO: result: $FC" >&5
4461 echo "${ECHO_T}$FC" >&6
4462 else
4463 echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6
4467 test -n "$FC" && break
4468 done
4470 if test -z "$FC"; then
4471 ac_ct_FC=$FC
4472 for ac_prog in gfortran
4474 # Extract the first word of "$ac_prog", so it can be a program name with args.
4475 set dummy $ac_prog; ac_word=$2
4476 echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 if test -n "$ac_ct_FC"; then
4482 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491 ac_cv_prog_ac_ct_FC="$ac_prog"
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 break 2
4495 done
4496 done
4500 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4501 if test -n "$ac_ct_FC"; then
4502 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4503 echo "${ECHO_T}$ac_ct_FC" >&6
4504 else
4505 echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4509 test -n "$ac_ct_FC" && break
4510 done
4512 FC=$ac_ct_FC
4516 # Provide some information about the compiler.
4517 echo "$as_me:4517:" \
4518 "checking for Fortran compiler version" >&5
4519 ac_compiler=`set X $ac_compile; echo $2`
4520 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4521 (eval $ac_compiler --version </dev/null >&5) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }
4525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4526 (eval $ac_compiler -v </dev/null >&5) 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }
4530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4531 (eval $ac_compiler -V </dev/null >&5) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }
4535 rm -f a.out
4537 # If we don't use `.F' as extension, the preprocessor is not run on the
4538 # input file. (Note that this only needs to work for GNU compilers.)
4539 ac_save_ext=$ac_ext
4540 ac_ext=F
4541 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4542 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4543 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546 cat >conftest.$ac_ext <<_ACEOF
4547 program main
4548 #ifndef __GNUC__
4549 choke me
4550 #endif
4553 _ACEOF
4554 rm -f conftest.$ac_objext
4555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4556 (eval $ac_compile) 2>conftest.er1
4557 ac_status=$?
4558 grep -v '^ *+' conftest.er1 >conftest.err
4559 rm -f conftest.er1
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -z "$ac_fc_werror_flag"
4564 || test ! -s conftest.err'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; } &&
4570 { ac_try='test -s conftest.$ac_objext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 ac_compiler_gnu=yes
4577 else
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4581 ac_compiler_gnu=no
4583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4584 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4587 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4588 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4589 ac_ext=$ac_save_ext
4590 ac_test_FFLAGS=${FCFLAGS+set}
4591 ac_save_FFLAGS=$FCFLAGS
4592 FCFLAGS=
4593 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4594 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4595 if test "${ac_cv_prog_fc_g+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598 FCFLAGS=-g
4599 cat >conftest.$ac_ext <<_ACEOF
4600 program main
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4606 (eval $ac_compile) 2>conftest.er1
4607 ac_status=$?
4608 grep -v '^ *+' conftest.er1 >conftest.err
4609 rm -f conftest.er1
4610 cat conftest.err >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } &&
4613 { ac_try='test -z "$ac_fc_werror_flag"
4614 || test ! -s conftest.err'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 (eval $ac_try) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; } &&
4620 { ac_try='test -s conftest.$ac_objext'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 (eval $ac_try) 2>&5
4623 ac_status=$?
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 ac_cv_prog_fc_g=yes
4627 else
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4631 ac_cv_prog_fc_g=no
4633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4636 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4637 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4638 if test "$ac_test_FFLAGS" = set; then
4639 FCFLAGS=$ac_save_FFLAGS
4640 elif test $ac_cv_prog_fc_g = yes; then
4641 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4642 FCFLAGS="-g -O2"
4643 else
4644 FCFLAGS="-g"
4646 else
4647 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4648 FCFLAGS="-O2"
4649 else
4650 FCFLAGS=
4654 ac_ext=c
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4660 FCFLAGS="$FCFLAGS -Wall -fno-repack-arrays -fno-underscoring"
4662 # extra LD Flags which are required for targets
4663 case "${host}" in
4664 *-darwin*)
4665 # Darwin needs -single_module when linking libgfortran
4666 extra_ldflags_libgfortran=-Wl,-single_module
4668 esac
4671 # Check whether --enable-largefile or --disable-largefile was given.
4672 if test "${enable_largefile+set}" = set; then
4673 enableval="$enable_largefile"
4676 if test "$enable_largefile" != no; then
4678 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4679 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4680 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683 ac_cv_sys_largefile_CC=no
4684 if test "$GCC" != yes; then
4685 ac_save_CC=$CC
4686 while :; do
4687 # IRIX 6.2 and later do not support large files by default,
4688 # so use the C compiler's -n32 option if that helps.
4689 cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h. */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #include <sys/types.h>
4696 /* Check that off_t can represent 2**63 - 1 correctly.
4697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4698 since some C++ compilers masquerading as C compilers
4699 incorrectly reject 9223372036854775807. */
4700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4702 && LARGE_OFF_T % 2147483647 == 1)
4703 ? 1 : -1];
4705 main ()
4709 return 0;
4711 _ACEOF
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -z "$ac_c_werror_flag"
4722 || test ! -s conftest.err'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; } &&
4728 { ac_try='test -s conftest.$ac_objext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 break
4735 else
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4740 rm -f conftest.err conftest.$ac_objext
4741 CC="$CC -n32"
4742 rm -f conftest.$ac_objext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744 (eval $ac_compile) 2>conftest.er1
4745 ac_status=$?
4746 grep -v '^ *+' conftest.er1 >conftest.err
4747 rm -f conftest.er1
4748 cat conftest.err >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } &&
4751 { ac_try='test -z "$ac_c_werror_flag"
4752 || test ! -s conftest.err'
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 (eval $ac_try) 2>&5
4755 ac_status=$?
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; } &&
4758 { ac_try='test -s conftest.$ac_objext'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 (eval $ac_try) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4764 ac_cv_sys_largefile_CC=' -n32'; break
4765 else
4766 echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4770 rm -f conftest.err conftest.$ac_objext
4771 break
4772 done
4773 CC=$ac_save_CC
4774 rm -f conftest.$ac_ext
4777 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4778 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4779 if test "$ac_cv_sys_largefile_CC" != no; then
4780 CC=$CC$ac_cv_sys_largefile_CC
4783 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4784 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4785 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788 while :; do
4789 ac_cv_sys_file_offset_bits=no
4790 cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h. */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796 #include <sys/types.h>
4797 /* Check that off_t can represent 2**63 - 1 correctly.
4798 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4799 since some C++ compilers masquerading as C compilers
4800 incorrectly reject 9223372036854775807. */
4801 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4802 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4803 && LARGE_OFF_T % 2147483647 == 1)
4804 ? 1 : -1];
4806 main ()
4810 return 0;
4812 _ACEOF
4813 rm -f conftest.$ac_objext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815 (eval $ac_compile) 2>conftest.er1
4816 ac_status=$?
4817 grep -v '^ *+' conftest.er1 >conftest.err
4818 rm -f conftest.er1
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try='test -z "$ac_c_werror_flag"
4823 || test ! -s conftest.err'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; } &&
4829 { ac_try='test -s conftest.$ac_objext'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 (eval $ac_try) 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; }; then
4835 break
4836 else
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 #define _FILE_OFFSET_BITS 64
4849 #include <sys/types.h>
4850 /* Check that off_t can represent 2**63 - 1 correctly.
4851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4852 since some C++ compilers masquerading as C compilers
4853 incorrectly reject 9223372036854775807. */
4854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4856 && LARGE_OFF_T % 2147483647 == 1)
4857 ? 1 : -1];
4859 main ()
4863 return 0;
4865 _ACEOF
4866 rm -f conftest.$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868 (eval $ac_compile) 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try='test -z "$ac_c_werror_flag"
4876 || test ! -s conftest.err'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; } &&
4882 { ac_try='test -s conftest.$ac_objext'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 (eval $ac_try) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; }; then
4888 ac_cv_sys_file_offset_bits=64; break
4889 else
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4895 break
4896 done
4898 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4899 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4900 if test "$ac_cv_sys_file_offset_bits" != no; then
4902 cat >>confdefs.h <<_ACEOF
4903 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4904 _ACEOF
4907 rm -f conftest*
4908 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4909 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4910 if test "${ac_cv_sys_large_files+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913 while :; do
4914 ac_cv_sys_large_files=no
4915 cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h. */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 #include <sys/types.h>
4922 /* Check that off_t can represent 2**63 - 1 correctly.
4923 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4924 since some C++ compilers masquerading as C compilers
4925 incorrectly reject 9223372036854775807. */
4926 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4928 && LARGE_OFF_T % 2147483647 == 1)
4929 ? 1 : -1];
4931 main ()
4935 return 0;
4937 _ACEOF
4938 rm -f conftest.$ac_objext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940 (eval $ac_compile) 2>conftest.er1
4941 ac_status=$?
4942 grep -v '^ *+' conftest.er1 >conftest.err
4943 rm -f conftest.er1
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } &&
4947 { ac_try='test -z "$ac_c_werror_flag"
4948 || test ! -s conftest.err'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 (eval $ac_try) 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; } &&
4954 { ac_try='test -s conftest.$ac_objext'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; }; then
4960 break
4961 else
4962 echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4967 cat >conftest.$ac_ext <<_ACEOF
4968 /* confdefs.h. */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4973 #define _LARGE_FILES 1
4974 #include <sys/types.h>
4975 /* Check that off_t can represent 2**63 - 1 correctly.
4976 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4977 since some C++ compilers masquerading as C compilers
4978 incorrectly reject 9223372036854775807. */
4979 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4981 && LARGE_OFF_T % 2147483647 == 1)
4982 ? 1 : -1];
4984 main ()
4988 return 0;
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>conftest.er1
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try='test -z "$ac_c_werror_flag"
5001 || test ! -s conftest.err'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 (eval $ac_try) 2>&5
5004 ac_status=$?
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; } &&
5007 { ac_try='test -s conftest.$ac_objext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 (eval $ac_try) 2>&5
5010 ac_status=$?
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 ac_cv_sys_large_files=1; break
5014 else
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5020 break
5021 done
5023 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5024 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5025 if test "$ac_cv_sys_large_files" != no; then
5027 cat >>confdefs.h <<_ACEOF
5028 #define _LARGE_FILES $ac_cv_sys_large_files
5029 _ACEOF
5032 rm -f conftest*
5035 if test x$gcc_no_link = xyes; then
5036 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
5037 ac_cv_func_mmap_fixed_mapped=no
5040 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
5041 ac_ext=c
5042 ac_cpp='$CPP $CPPFLAGS'
5043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5046 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5047 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5048 # On Suns, sometimes $CPP names a directory.
5049 if test -n "$CPP" && test -d "$CPP"; then
5050 CPP=
5052 if test -z "$CPP"; then
5053 if test "${ac_cv_prog_CPP+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056 # Double quotes because CPP needs to be expanded
5057 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5059 ac_preproc_ok=false
5060 for ac_c_preproc_warn_flag in '' yes
5062 # Use a header file that comes with gcc, so configuring glibc
5063 # with a fresh cross-compiler works.
5064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5065 # <limits.h> exists even on freestanding compilers.
5066 # On the NeXT, cc -E runs the code through the compiler's parser,
5067 # not just through cpp. "Syntax error" is here to catch this case.
5068 cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h. */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 #ifdef __STDC__
5075 # include <limits.h>
5076 #else
5077 # include <assert.h>
5078 #endif
5079 Syntax error
5080 _ACEOF
5081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5083 ac_status=$?
5084 grep -v '^ *+' conftest.er1 >conftest.err
5085 rm -f conftest.er1
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } >/dev/null; then
5089 if test -s conftest.err; then
5090 ac_cpp_err=$ac_c_preproc_warn_flag
5091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5092 else
5093 ac_cpp_err=
5095 else
5096 ac_cpp_err=yes
5098 if test -z "$ac_cpp_err"; then
5100 else
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5104 # Broken: fails on valid input.
5105 continue
5107 rm -f conftest.err conftest.$ac_ext
5109 # OK, works on sane cases. Now check whether non-existent headers
5110 # can be detected and how.
5111 cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h. */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5117 #include <ac_nonexistent.h>
5118 _ACEOF
5119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5121 ac_status=$?
5122 grep -v '^ *+' conftest.er1 >conftest.err
5123 rm -f conftest.er1
5124 cat conftest.err >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } >/dev/null; then
5127 if test -s conftest.err; then
5128 ac_cpp_err=$ac_c_preproc_warn_flag
5129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5130 else
5131 ac_cpp_err=
5133 else
5134 ac_cpp_err=yes
5136 if test -z "$ac_cpp_err"; then
5137 # Broken: success on invalid input.
5138 continue
5139 else
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5143 # Passes both tests.
5144 ac_preproc_ok=:
5145 break
5147 rm -f conftest.err conftest.$ac_ext
5149 done
5150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5151 rm -f conftest.err conftest.$ac_ext
5152 if $ac_preproc_ok; then
5153 break
5156 done
5157 ac_cv_prog_CPP=$CPP
5160 CPP=$ac_cv_prog_CPP
5161 else
5162 ac_cv_prog_CPP=$CPP
5164 echo "$as_me:$LINENO: result: $CPP" >&5
5165 echo "${ECHO_T}$CPP" >&6
5166 ac_preproc_ok=false
5167 for ac_c_preproc_warn_flag in '' yes
5169 # Use a header file that comes with gcc, so configuring glibc
5170 # with a fresh cross-compiler works.
5171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5172 # <limits.h> exists even on freestanding compilers.
5173 # On the NeXT, cc -E runs the code through the compiler's parser,
5174 # not just through cpp. "Syntax error" is here to catch this case.
5175 cat >conftest.$ac_ext <<_ACEOF
5176 /* confdefs.h. */
5177 _ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5181 #ifdef __STDC__
5182 # include <limits.h>
5183 #else
5184 # include <assert.h>
5185 #endif
5186 Syntax error
5187 _ACEOF
5188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5190 ac_status=$?
5191 grep -v '^ *+' conftest.er1 >conftest.err
5192 rm -f conftest.er1
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } >/dev/null; then
5196 if test -s conftest.err; then
5197 ac_cpp_err=$ac_c_preproc_warn_flag
5198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5199 else
5200 ac_cpp_err=
5202 else
5203 ac_cpp_err=yes
5205 if test -z "$ac_cpp_err"; then
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5211 # Broken: fails on valid input.
5212 continue
5214 rm -f conftest.err conftest.$ac_ext
5216 # OK, works on sane cases. Now check whether non-existent headers
5217 # can be detected and how.
5218 cat >conftest.$ac_ext <<_ACEOF
5219 /* confdefs.h. */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 #include <ac_nonexistent.h>
5225 _ACEOF
5226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5228 ac_status=$?
5229 grep -v '^ *+' conftest.er1 >conftest.err
5230 rm -f conftest.er1
5231 cat conftest.err >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } >/dev/null; then
5234 if test -s conftest.err; then
5235 ac_cpp_err=$ac_c_preproc_warn_flag
5236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5237 else
5238 ac_cpp_err=
5240 else
5241 ac_cpp_err=yes
5243 if test -z "$ac_cpp_err"; then
5244 # Broken: success on invalid input.
5245 continue
5246 else
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5250 # Passes both tests.
5251 ac_preproc_ok=:
5252 break
5254 rm -f conftest.err conftest.$ac_ext
5256 done
5257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5258 rm -f conftest.err conftest.$ac_ext
5259 if $ac_preproc_ok; then
5261 else
5262 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5263 See \`config.log' for more details." >&5
5264 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5265 See \`config.log' for more details." >&2;}
5266 { (exit 1); exit 1; }; }
5269 ac_ext=c
5270 ac_cpp='$CPP $CPPFLAGS'
5271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5276 echo "$as_me:$LINENO: checking for egrep" >&5
5277 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5278 if test "${ac_cv_prog_egrep+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5282 then ac_cv_prog_egrep='grep -E'
5283 else ac_cv_prog_egrep='egrep'
5286 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5287 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5288 EGREP=$ac_cv_prog_egrep
5291 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5292 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5293 if test "${ac_cv_header_stdc+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296 cat >conftest.$ac_ext <<_ACEOF
5297 /* confdefs.h. */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302 #include <stdlib.h>
5303 #include <stdarg.h>
5304 #include <string.h>
5305 #include <float.h>
5308 main ()
5312 return 0;
5314 _ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317 (eval $ac_compile) 2>conftest.er1
5318 ac_status=$?
5319 grep -v '^ *+' conftest.er1 >conftest.err
5320 rm -f conftest.er1
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } &&
5324 { ac_try='test -z "$ac_c_werror_flag"
5325 || test ! -s conftest.err'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 (eval $ac_try) 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; } &&
5331 { ac_try='test -s conftest.$ac_objext'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 (eval $ac_try) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5337 ac_cv_header_stdc=yes
5338 else
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5342 ac_cv_header_stdc=no
5344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5346 if test $ac_cv_header_stdc = yes; then
5347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5348 cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h. */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5354 #include <string.h>
5356 _ACEOF
5357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5358 $EGREP "memchr" >/dev/null 2>&1; then
5360 else
5361 ac_cv_header_stdc=no
5363 rm -f conftest*
5367 if test $ac_cv_header_stdc = yes; then
5368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5369 cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h. */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 #include <stdlib.h>
5377 _ACEOF
5378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5379 $EGREP "free" >/dev/null 2>&1; then
5381 else
5382 ac_cv_header_stdc=no
5384 rm -f conftest*
5388 if test $ac_cv_header_stdc = yes; then
5389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5390 if test "$cross_compiling" = yes; then
5392 else
5393 cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h. */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 #include <ctype.h>
5400 #if ((' ' & 0x0FF) == 0x020)
5401 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5402 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5403 #else
5404 # define ISLOWER(c) \
5405 (('a' <= (c) && (c) <= 'i') \
5406 || ('j' <= (c) && (c) <= 'r') \
5407 || ('s' <= (c) && (c) <= 'z'))
5408 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5409 #endif
5411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5413 main ()
5415 int i;
5416 for (i = 0; i < 256; i++)
5417 if (XOR (islower (i), ISLOWER (i))
5418 || toupper (i) != TOUPPER (i))
5419 exit(2);
5420 exit (0);
5422 _ACEOF
5423 rm -f conftest$ac_exeext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5425 (eval $ac_link) 2>&5
5426 ac_status=$?
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 (eval $ac_try) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; }; then
5435 else
5436 echo "$as_me: program exited with status $ac_status" >&5
5437 echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5440 ( exit $ac_status )
5441 ac_cv_header_stdc=no
5443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5448 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5449 if test $ac_cv_header_stdc = yes; then
5451 cat >>confdefs.h <<\_ACEOF
5452 #define STDC_HEADERS 1
5453 _ACEOF
5457 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5467 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5468 inttypes.h stdint.h unistd.h
5470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5471 echo "$as_me:$LINENO: checking for $ac_header" >&5
5472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h. */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 $ac_includes_default
5484 #include <$ac_header>
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488 (eval $ac_compile) 2>conftest.er1
5489 ac_status=$?
5490 grep -v '^ *+' conftest.er1 >conftest.err
5491 rm -f conftest.er1
5492 cat conftest.err >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -z "$ac_c_werror_flag"
5496 || test ! -s conftest.err'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; } &&
5502 { ac_try='test -s conftest.$ac_objext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 (eval $ac_try) 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5508 eval "$as_ac_Header=yes"
5509 else
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 eval "$as_ac_Header=no"
5515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5520 cat >>confdefs.h <<_ACEOF
5521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5522 _ACEOF
5526 done
5531 for ac_header in stdlib.h unistd.h
5533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5535 echo "$as_me:$LINENO: checking for $ac_header" >&5
5536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5542 else
5543 # Is the header compilable?
5544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5546 cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h. */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552 $ac_includes_default
5553 #include <$ac_header>
5554 _ACEOF
5555 rm -f conftest.$ac_objext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557 (eval $ac_compile) 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -z "$ac_c_werror_flag"
5565 || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest.$ac_objext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 ac_header_compiler=yes
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5582 ac_header_compiler=no
5584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5586 echo "${ECHO_T}$ac_header_compiler" >&6
5588 # Is the header present?
5589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5591 cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h. */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5597 #include <$ac_header>
5598 _ACEOF
5599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5601 ac_status=$?
5602 grep -v '^ *+' conftest.er1 >conftest.err
5603 rm -f conftest.er1
5604 cat conftest.err >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } >/dev/null; then
5607 if test -s conftest.err; then
5608 ac_cpp_err=$ac_c_preproc_warn_flag
5609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5610 else
5611 ac_cpp_err=
5613 else
5614 ac_cpp_err=yes
5616 if test -z "$ac_cpp_err"; then
5617 ac_header_preproc=yes
5618 else
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5622 ac_header_preproc=no
5624 rm -f conftest.err conftest.$ac_ext
5625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5626 echo "${ECHO_T}$ac_header_preproc" >&6
5628 # So? What about this header?
5629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5630 yes:no: )
5631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5635 ac_header_preproc=yes
5637 no:yes:* )
5638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5651 cat <<\_ASBOX
5652 ## ------------------------------------------------------ ##
5653 ## Report this to the GNU Fortran Runtime Library lists. ##
5654 ## ------------------------------------------------------ ##
5655 _ASBOX
5657 sed "s/^/$as_me: WARNING: /" >&2
5659 esac
5660 echo "$as_me:$LINENO: checking for $ac_header" >&5
5661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665 eval "$as_ac_Header=\$ac_header_preproc"
5667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5672 cat >>confdefs.h <<_ACEOF
5673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5674 _ACEOF
5678 done
5681 for ac_func in getpagesize
5683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5684 echo "$as_me:$LINENO: checking for $ac_func" >&5
5685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5686 if eval "test \"\${$as_ac_var+set}\" = set"; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689 if test x$gcc_no_link = xyes; then
5690 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5691 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5692 { (exit 1); exit 1; }; }
5694 cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h. */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5702 #define $ac_func innocuous_$ac_func
5704 /* System header to define __stub macros and hopefully few prototypes,
5705 which can conflict with char $ac_func (); below.
5706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5707 <limits.h> exists even on freestanding compilers. */
5709 #ifdef __STDC__
5710 # include <limits.h>
5711 #else
5712 # include <assert.h>
5713 #endif
5715 #undef $ac_func
5717 /* Override any gcc2 internal prototype to avoid an error. */
5718 #ifdef __cplusplus
5719 extern "C"
5721 #endif
5722 /* We use char because int might match the return type of a gcc2
5723 builtin and then its argument prototype would still apply. */
5724 char $ac_func ();
5725 /* The GNU C library defines this for functions which it implements
5726 to always fail with ENOSYS. Some functions are actually named
5727 something starting with __ and the normal name is an alias. */
5728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5729 choke me
5730 #else
5731 char (*f) () = $ac_func;
5732 #endif
5733 #ifdef __cplusplus
5735 #endif
5738 main ()
5740 return f != $ac_func;
5742 return 0;
5744 _ACEOF
5745 rm -f conftest.$ac_objext conftest$ac_exeext
5746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5747 (eval $ac_link) 2>conftest.er1
5748 ac_status=$?
5749 grep -v '^ *+' conftest.er1 >conftest.err
5750 rm -f conftest.er1
5751 cat conftest.err >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } &&
5754 { ac_try='test -z "$ac_c_werror_flag"
5755 || test ! -s conftest.err'
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 (eval $ac_try) 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; } &&
5761 { ac_try='test -s conftest$ac_exeext'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; }; then
5767 eval "$as_ac_var=yes"
5768 else
5769 echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5772 eval "$as_ac_var=no"
5774 rm -f conftest.err conftest.$ac_objext \
5775 conftest$ac_exeext conftest.$ac_ext
5777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5779 if test `eval echo '${'$as_ac_var'}'` = yes; then
5780 cat >>confdefs.h <<_ACEOF
5781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5782 _ACEOF
5785 done
5787 echo "$as_me:$LINENO: checking for working mmap" >&5
5788 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5789 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792 if test "$cross_compiling" = yes; then
5793 ac_cv_func_mmap_fixed_mapped=no
5794 else
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h. */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 $ac_includes_default
5802 /* malloc might have been renamed as rpl_malloc. */
5803 #undef malloc
5805 /* Thanks to Mike Haertel and Jim Avera for this test.
5806 Here is a matrix of mmap possibilities:
5807 mmap private not fixed
5808 mmap private fixed at somewhere currently unmapped
5809 mmap private fixed at somewhere already mapped
5810 mmap shared not fixed
5811 mmap shared fixed at somewhere currently unmapped
5812 mmap shared fixed at somewhere already mapped
5813 For private mappings, we should verify that changes cannot be read()
5814 back from the file, nor mmap's back from the file at a different
5815 address. (There have been systems where private was not correctly
5816 implemented like the infamous i386 svr4.0, and systems where the
5817 VM page cache was not coherent with the file system buffer cache
5818 like early versions of FreeBSD and possibly contemporary NetBSD.)
5819 For shared mappings, we should conversely verify that changes get
5820 propagated back to all the places they're supposed to be.
5822 Grep wants private fixed already mapped.
5823 The main things grep needs to know about mmap are:
5824 * does it exist and is it safe to write into the mmap'd area
5825 * how to use it (BSD variants) */
5827 #include <fcntl.h>
5828 #include <sys/mman.h>
5830 #if !STDC_HEADERS && !HAVE_STDLIB_H
5831 char *malloc ();
5832 #endif
5834 /* This mess was copied from the GNU getpagesize.h. */
5835 #if !HAVE_GETPAGESIZE
5836 /* Assume that all systems that can run configure have sys/param.h. */
5837 # if !HAVE_SYS_PARAM_H
5838 # define HAVE_SYS_PARAM_H 1
5839 # endif
5841 # ifdef _SC_PAGESIZE
5842 # define getpagesize() sysconf(_SC_PAGESIZE)
5843 # else /* no _SC_PAGESIZE */
5844 # if HAVE_SYS_PARAM_H
5845 # include <sys/param.h>
5846 # ifdef EXEC_PAGESIZE
5847 # define getpagesize() EXEC_PAGESIZE
5848 # else /* no EXEC_PAGESIZE */
5849 # ifdef NBPG
5850 # define getpagesize() NBPG * CLSIZE
5851 # ifndef CLSIZE
5852 # define CLSIZE 1
5853 # endif /* no CLSIZE */
5854 # else /* no NBPG */
5855 # ifdef NBPC
5856 # define getpagesize() NBPC
5857 # else /* no NBPC */
5858 # ifdef PAGESIZE
5859 # define getpagesize() PAGESIZE
5860 # endif /* PAGESIZE */
5861 # endif /* no NBPC */
5862 # endif /* no NBPG */
5863 # endif /* no EXEC_PAGESIZE */
5864 # else /* no HAVE_SYS_PARAM_H */
5865 # define getpagesize() 8192 /* punt totally */
5866 # endif /* no HAVE_SYS_PARAM_H */
5867 # endif /* no _SC_PAGESIZE */
5869 #endif /* no HAVE_GETPAGESIZE */
5872 main ()
5874 char *data, *data2, *data3;
5875 int i, pagesize;
5876 int fd;
5878 pagesize = getpagesize ();
5880 /* First, make a file with some known garbage in it. */
5881 data = (char *) malloc (pagesize);
5882 if (!data)
5883 exit (1);
5884 for (i = 0; i < pagesize; ++i)
5885 *(data + i) = rand ();
5886 umask (0);
5887 fd = creat ("conftest.mmap", 0600);
5888 if (fd < 0)
5889 exit (1);
5890 if (write (fd, data, pagesize) != pagesize)
5891 exit (1);
5892 close (fd);
5894 /* Next, try to mmap the file at a fixed address which already has
5895 something else allocated at it. If we can, also make sure that
5896 we see the same garbage. */
5897 fd = open ("conftest.mmap", O_RDWR);
5898 if (fd < 0)
5899 exit (1);
5900 data2 = (char *) malloc (2 * pagesize);
5901 if (!data2)
5902 exit (1);
5903 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5904 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5905 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5906 exit (1);
5907 for (i = 0; i < pagesize; ++i)
5908 if (*(data + i) != *(data2 + i))
5909 exit (1);
5911 /* Finally, make sure that changes to the mapped area do not
5912 percolate back to the file as seen by read(). (This is a bug on
5913 some variants of i386 svr4.0.) */
5914 for (i = 0; i < pagesize; ++i)
5915 *(data2 + i) = *(data2 + i) + 1;
5916 data3 = (char *) malloc (pagesize);
5917 if (!data3)
5918 exit (1);
5919 if (read (fd, data3, pagesize) != pagesize)
5920 exit (1);
5921 for (i = 0; i < pagesize; ++i)
5922 if (*(data + i) != *(data3 + i))
5923 exit (1);
5924 close (fd);
5925 exit (0);
5927 _ACEOF
5928 rm -f conftest$ac_exeext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930 (eval $ac_link) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5939 ac_cv_func_mmap_fixed_mapped=yes
5940 else
5941 echo "$as_me: program exited with status $ac_status" >&5
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 ( exit $ac_status )
5946 ac_cv_func_mmap_fixed_mapped=no
5948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5951 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5952 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5953 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5955 cat >>confdefs.h <<\_ACEOF
5956 #define HAVE_MMAP 1
5957 _ACEOF
5960 rm -f conftest.mmap
5963 echo "$as_me:$LINENO: checking for off_t" >&5
5964 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5965 if test "${ac_cv_type_off_t+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 else
5968 cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h. */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 $ac_includes_default
5976 main ()
5978 if ((off_t *) 0)
5979 return 0;
5980 if (sizeof (off_t))
5981 return 0;
5983 return 0;
5985 _ACEOF
5986 rm -f conftest.$ac_objext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988 (eval $ac_compile) 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try='test -z "$ac_c_werror_flag"
5996 || test ! -s conftest.err'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; } &&
6002 { ac_try='test -s conftest.$ac_objext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 (eval $ac_try) 2>&5
6005 ac_status=$?
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 ac_cv_type_off_t=yes
6009 else
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6013 ac_cv_type_off_t=no
6015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6017 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6018 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6019 if test $ac_cv_type_off_t = yes; then
6021 else
6023 cat >>confdefs.h <<_ACEOF
6024 #define off_t long
6025 _ACEOF
6030 # check header files
6031 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6032 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6033 if test "${ac_cv_header_stdc+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036 cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h. */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 #include <stdlib.h>
6043 #include <stdarg.h>
6044 #include <string.h>
6045 #include <float.h>
6048 main ()
6052 return 0;
6054 _ACEOF
6055 rm -f conftest.$ac_objext
6056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6057 (eval $ac_compile) 2>conftest.er1
6058 ac_status=$?
6059 grep -v '^ *+' conftest.er1 >conftest.err
6060 rm -f conftest.er1
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } &&
6064 { ac_try='test -z "$ac_c_werror_flag"
6065 || test ! -s conftest.err'
6066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 (eval $ac_try) 2>&5
6068 ac_status=$?
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; } &&
6071 { ac_try='test -s conftest.$ac_objext'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 (eval $ac_try) 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; }; then
6077 ac_cv_header_stdc=yes
6078 else
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6082 ac_cv_header_stdc=no
6084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6086 if test $ac_cv_header_stdc = yes; then
6087 # SunOS 4.x string.h does not declare mem*, 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 <string.h>
6096 _ACEOF
6097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6098 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6109 cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h. */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 #include <stdlib.h>
6117 _ACEOF
6118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6119 $EGREP "free" >/dev/null 2>&1; then
6121 else
6122 ac_cv_header_stdc=no
6124 rm -f conftest*
6128 if test $ac_cv_header_stdc = yes; then
6129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6130 if test "$cross_compiling" = yes; then
6132 else
6133 cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h. */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 #include <ctype.h>
6140 #if ((' ' & 0x0FF) == 0x020)
6141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6143 #else
6144 # define ISLOWER(c) \
6145 (('a' <= (c) && (c) <= 'i') \
6146 || ('j' <= (c) && (c) <= 'r') \
6147 || ('s' <= (c) && (c) <= 'z'))
6148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6149 #endif
6151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6153 main ()
6155 int i;
6156 for (i = 0; i < 256; i++)
6157 if (XOR (islower (i), ISLOWER (i))
6158 || toupper (i) != TOUPPER (i))
6159 exit(2);
6160 exit (0);
6162 _ACEOF
6163 rm -f conftest$ac_exeext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6165 (eval $ac_link) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 (eval $ac_try) 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6175 else
6176 echo "$as_me: program exited with status $ac_status" >&5
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6180 ( exit $ac_status )
6181 ac_cv_header_stdc=no
6183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6187 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6188 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6189 if test $ac_cv_header_stdc = yes; then
6191 cat >>confdefs.h <<\_ACEOF
6192 #define STDC_HEADERS 1
6193 _ACEOF
6204 for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h signal.h
6206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6208 echo "$as_me:$LINENO: checking for $ac_header" >&5
6209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6215 else
6216 # Is the header compilable?
6217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h. */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 $ac_includes_default
6226 #include <$ac_header>
6227 _ACEOF
6228 rm -f conftest.$ac_objext
6229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6230 (eval $ac_compile) 2>conftest.er1
6231 ac_status=$?
6232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } &&
6237 { ac_try='test -z "$ac_c_werror_flag"
6238 || test ! -s conftest.err'
6239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 (eval $ac_try) 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; } &&
6244 { ac_try='test -s conftest.$ac_objext'
6245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 (eval $ac_try) 2>&5
6247 ac_status=$?
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; }; then
6250 ac_header_compiler=yes
6251 else
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6255 ac_header_compiler=no
6257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6259 echo "${ECHO_T}$ac_header_compiler" >&6
6261 # Is the header present?
6262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6264 cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h. */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 #include <$ac_header>
6271 _ACEOF
6272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } >/dev/null; then
6280 if test -s conftest.err; then
6281 ac_cpp_err=$ac_c_preproc_warn_flag
6282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6283 else
6284 ac_cpp_err=
6286 else
6287 ac_cpp_err=yes
6289 if test -z "$ac_cpp_err"; then
6290 ac_header_preproc=yes
6291 else
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6295 ac_header_preproc=no
6297 rm -f conftest.err conftest.$ac_ext
6298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6299 echo "${ECHO_T}$ac_header_preproc" >&6
6301 # So? What about this header?
6302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6303 yes:no: )
6304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6308 ac_header_preproc=yes
6310 no:yes:* )
6311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6324 cat <<\_ASBOX
6325 ## ------------------------------------------------------ ##
6326 ## Report this to the GNU Fortran Runtime Library lists. ##
6327 ## ------------------------------------------------------ ##
6328 _ASBOX
6330 sed "s/^/$as_me: WARNING: /" >&2
6332 esac
6333 echo "$as_me:$LINENO: checking for $ac_header" >&5
6334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338 eval "$as_ac_Header=\$ac_header_preproc"
6340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6345 cat >>confdefs.h <<_ACEOF
6346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6347 _ACEOF
6351 done
6358 for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
6360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6362 echo "$as_me:$LINENO: checking for $ac_header" >&5
6363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6369 else
6370 # Is the header compilable?
6371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6373 cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h. */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h. */
6379 $ac_includes_default
6380 #include <$ac_header>
6381 _ACEOF
6382 rm -f conftest.$ac_objext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 (eval $ac_compile) 2>conftest.er1
6385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try='test -z "$ac_c_werror_flag"
6392 || test ! -s conftest.err'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; } &&
6398 { ac_try='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 ac_header_compiler=yes
6405 else
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6409 ac_header_compiler=no
6411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6413 echo "${ECHO_T}$ac_header_compiler" >&6
6415 # Is the header present?
6416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6418 cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h. */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424 #include <$ac_header>
6425 _ACEOF
6426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6428 ac_status=$?
6429 grep -v '^ *+' conftest.er1 >conftest.err
6430 rm -f conftest.er1
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } >/dev/null; then
6434 if test -s conftest.err; then
6435 ac_cpp_err=$ac_c_preproc_warn_flag
6436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6437 else
6438 ac_cpp_err=
6440 else
6441 ac_cpp_err=yes
6443 if test -z "$ac_cpp_err"; then
6444 ac_header_preproc=yes
6445 else
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 ac_header_preproc=no
6451 rm -f conftest.err conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6453 echo "${ECHO_T}$ac_header_preproc" >&6
6455 # So? What about this header?
6456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6457 yes:no: )
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6462 ac_header_preproc=yes
6464 no:yes:* )
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6478 cat <<\_ASBOX
6479 ## ------------------------------------------------------ ##
6480 ## Report this to the GNU Fortran Runtime Library lists. ##
6481 ## ------------------------------------------------------ ##
6482 _ASBOX
6484 sed "s/^/$as_me: WARNING: /" >&2
6486 esac
6487 echo "$as_me:$LINENO: checking for $ac_header" >&5
6488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492 eval "$as_ac_Header=\$ac_header_preproc"
6494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6499 cat >>confdefs.h <<_ACEOF
6500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6501 _ACEOF
6505 done
6511 for ac_header in sys/mman.h sys/types.h sys/stat.h ieeefp.h
6513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6515 echo "$as_me:$LINENO: checking for $ac_header" >&5
6516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6522 else
6523 # Is the header compilable?
6524 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6526 cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h. */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 $ac_includes_default
6533 #include <$ac_header>
6534 _ACEOF
6535 rm -f conftest.$ac_objext
6536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6537 (eval $ac_compile) 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } &&
6544 { ac_try='test -z "$ac_c_werror_flag"
6545 || test ! -s conftest.err'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 (eval $ac_try) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; } &&
6551 { ac_try='test -s conftest.$ac_objext'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 (eval $ac_try) 2>&5
6554 ac_status=$?
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; }; then
6557 ac_header_compiler=yes
6558 else
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6562 ac_header_compiler=no
6564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6566 echo "${ECHO_T}$ac_header_compiler" >&6
6568 # Is the header present?
6569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6571 cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h. */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6577 #include <$ac_header>
6578 _ACEOF
6579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } >/dev/null; then
6587 if test -s conftest.err; then
6588 ac_cpp_err=$ac_c_preproc_warn_flag
6589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6590 else
6591 ac_cpp_err=
6593 else
6594 ac_cpp_err=yes
6596 if test -z "$ac_cpp_err"; then
6597 ac_header_preproc=yes
6598 else
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6602 ac_header_preproc=no
6604 rm -f conftest.err conftest.$ac_ext
6605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6606 echo "${ECHO_T}$ac_header_preproc" >&6
6608 # So? What about this header?
6609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6610 yes:no: )
6611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6615 ac_header_preproc=yes
6617 no:yes:* )
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6631 cat <<\_ASBOX
6632 ## ------------------------------------------------------ ##
6633 ## Report this to the GNU Fortran Runtime Library lists. ##
6634 ## ------------------------------------------------------ ##
6635 _ASBOX
6637 sed "s/^/$as_me: WARNING: /" >&2
6639 esac
6640 echo "$as_me:$LINENO: checking for $ac_header" >&5
6641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 else
6645 eval "$as_ac_Header=\$ac_header_preproc"
6647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6652 cat >>confdefs.h <<_ACEOF
6653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6654 _ACEOF
6658 done
6660 if test "${ac_cv_header_complex_h+set}" = set; then
6661 echo "$as_me:$LINENO: checking for complex.h" >&5
6662 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6663 if test "${ac_cv_header_complex_h+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6667 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6668 else
6669 # Is the header compilable?
6670 echo "$as_me:$LINENO: checking complex.h usability" >&5
6671 echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 $ac_includes_default
6679 #include <complex.h>
6680 _ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683 (eval $ac_compile) 2>conftest.er1
6684 ac_status=$?
6685 grep -v '^ *+' conftest.er1 >conftest.err
6686 rm -f conftest.er1
6687 cat conftest.err >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } &&
6690 { ac_try='test -z "$ac_c_werror_flag"
6691 || test ! -s conftest.err'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 (eval $ac_try) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; } &&
6697 { ac_try='test -s conftest.$ac_objext'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 (eval $ac_try) 2>&5
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 ac_header_compiler=yes
6704 else
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6708 ac_header_compiler=no
6710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6712 echo "${ECHO_T}$ac_header_compiler" >&6
6714 # Is the header present?
6715 echo "$as_me:$LINENO: checking complex.h presence" >&5
6716 echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h. */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #include <complex.h>
6724 _ACEOF
6725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6727 ac_status=$?
6728 grep -v '^ *+' conftest.er1 >conftest.err
6729 rm -f conftest.er1
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } >/dev/null; then
6733 if test -s conftest.err; then
6734 ac_cpp_err=$ac_c_preproc_warn_flag
6735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6736 else
6737 ac_cpp_err=
6739 else
6740 ac_cpp_err=yes
6742 if test -z "$ac_cpp_err"; then
6743 ac_header_preproc=yes
6744 else
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 ac_header_preproc=no
6750 rm -f conftest.err conftest.$ac_ext
6751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6752 echo "${ECHO_T}$ac_header_preproc" >&6
6754 # So? What about this header?
6755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6756 yes:no: )
6757 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6758 echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6759 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6760 echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6761 ac_header_preproc=yes
6763 no:yes:* )
6764 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6765 echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6766 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
6767 echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
6768 { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6769 echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6770 { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5
6771 echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;}
6772 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6773 echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6774 { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6775 echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6777 cat <<\_ASBOX
6778 ## ------------------------------------------------------ ##
6779 ## Report this to the GNU Fortran Runtime Library lists. ##
6780 ## ------------------------------------------------------ ##
6781 _ASBOX
6783 sed "s/^/$as_me: WARNING: /" >&2
6785 esac
6786 echo "$as_me:$LINENO: checking for complex.h" >&5
6787 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6788 if test "${ac_cv_header_complex_h+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791 ac_cv_header_complex_h=$ac_header_preproc
6793 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6794 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6797 if test $ac_cv_header_complex_h = yes; then
6799 cat >>confdefs.h <<\_ACEOF
6800 #define HAVE_COMPLEX_H 1
6801 _ACEOF
6807 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6808 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6809 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812 cat >conftest.$ac_ext <<_ACEOF
6813 /* confdefs.h. */
6814 _ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6817 /* end confdefs.h. */
6818 $ac_includes_default
6820 main ()
6822 static struct stat ac_aggr;
6823 if (ac_aggr.st_blksize)
6824 return 0;
6826 return 0;
6828 _ACEOF
6829 rm -f conftest.$ac_objext
6830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6831 (eval $ac_compile) 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
6838 { ac_try='test -z "$ac_c_werror_flag"
6839 || test ! -s conftest.err'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; } &&
6845 { ac_try='test -s conftest.$ac_objext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 (eval $ac_try) 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 ac_cv_member_struct_stat_st_blksize=yes
6852 else
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h. */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6862 $ac_includes_default
6864 main ()
6866 static struct stat ac_aggr;
6867 if (sizeof ac_aggr.st_blksize)
6868 return 0;
6870 return 0;
6872 _ACEOF
6873 rm -f conftest.$ac_objext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6875 (eval $ac_compile) 2>conftest.er1
6876 ac_status=$?
6877 grep -v '^ *+' conftest.er1 >conftest.err
6878 rm -f conftest.er1
6879 cat conftest.err >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } &&
6882 { ac_try='test -z "$ac_c_werror_flag"
6883 || test ! -s conftest.err'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 (eval $ac_try) 2>&5
6886 ac_status=$?
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; } &&
6889 { ac_try='test -s conftest.$ac_objext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_member_struct_stat_st_blksize=yes
6896 else
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6900 ac_cv_member_struct_stat_st_blksize=no
6902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6906 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6907 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
6908 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6910 cat >>confdefs.h <<_ACEOF
6911 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6912 _ACEOF
6917 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6918 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6919 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 else
6922 cat >conftest.$ac_ext <<_ACEOF
6923 /* confdefs.h. */
6924 _ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6928 $ac_includes_default
6930 main ()
6932 static struct stat ac_aggr;
6933 if (ac_aggr.st_blocks)
6934 return 0;
6936 return 0;
6938 _ACEOF
6939 rm -f conftest.$ac_objext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6941 (eval $ac_compile) 2>conftest.er1
6942 ac_status=$?
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try='test -z "$ac_c_werror_flag"
6949 || test ! -s conftest.err'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 (eval $ac_try) 2>&5
6952 ac_status=$?
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; } &&
6955 { ac_try='test -s conftest.$ac_objext'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 (eval $ac_try) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; }; then
6961 ac_cv_member_struct_stat_st_blocks=yes
6962 else
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6966 cat >conftest.$ac_ext <<_ACEOF
6967 /* confdefs.h. */
6968 _ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h. */
6972 $ac_includes_default
6974 main ()
6976 static struct stat ac_aggr;
6977 if (sizeof ac_aggr.st_blocks)
6978 return 0;
6980 return 0;
6982 _ACEOF
6983 rm -f conftest.$ac_objext
6984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6985 (eval $ac_compile) 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } &&
6992 { ac_try='test -z "$ac_c_werror_flag"
6993 || test ! -s conftest.err'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 (eval $ac_try) 2>&5
6996 ac_status=$?
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; } &&
6999 { ac_try='test -s conftest.$ac_objext'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 (eval $ac_try) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; }; then
7005 ac_cv_member_struct_stat_st_blocks=yes
7006 else
7007 echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7010 ac_cv_member_struct_stat_st_blocks=no
7012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7016 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
7017 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
7018 if test $ac_cv_member_struct_stat_st_blocks = yes; then
7020 cat >>confdefs.h <<_ACEOF
7021 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7022 _ACEOF
7027 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7028 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
7029 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032 cat >conftest.$ac_ext <<_ACEOF
7033 /* confdefs.h. */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 $ac_includes_default
7040 main ()
7042 static struct stat ac_aggr;
7043 if (ac_aggr.st_rdev)
7044 return 0;
7046 return 0;
7048 _ACEOF
7049 rm -f conftest.$ac_objext
7050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7051 (eval $ac_compile) 2>conftest.er1
7052 ac_status=$?
7053 grep -v '^ *+' conftest.er1 >conftest.err
7054 rm -f conftest.er1
7055 cat conftest.err >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } &&
7058 { ac_try='test -z "$ac_c_werror_flag"
7059 || test ! -s conftest.err'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 (eval $ac_try) 2>&5
7062 ac_status=$?
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; } &&
7065 { ac_try='test -s conftest.$ac_objext'
7066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 (eval $ac_try) 2>&5
7068 ac_status=$?
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; }; then
7071 ac_cv_member_struct_stat_st_rdev=yes
7072 else
7073 echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7076 cat >conftest.$ac_ext <<_ACEOF
7077 /* confdefs.h. */
7078 _ACEOF
7079 cat confdefs.h >>conftest.$ac_ext
7080 cat >>conftest.$ac_ext <<_ACEOF
7081 /* end confdefs.h. */
7082 $ac_includes_default
7084 main ()
7086 static struct stat ac_aggr;
7087 if (sizeof ac_aggr.st_rdev)
7088 return 0;
7090 return 0;
7092 _ACEOF
7093 rm -f conftest.$ac_objext
7094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7095 (eval $ac_compile) 2>conftest.er1
7096 ac_status=$?
7097 grep -v '^ *+' conftest.er1 >conftest.err
7098 rm -f conftest.er1
7099 cat conftest.err >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } &&
7102 { ac_try='test -z "$ac_c_werror_flag"
7103 || test ! -s conftest.err'
7104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 (eval $ac_try) 2>&5
7106 ac_status=$?
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); }; } &&
7109 { ac_try='test -s conftest.$ac_objext'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 (eval $ac_try) 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; }; then
7115 ac_cv_member_struct_stat_st_rdev=yes
7116 else
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7120 ac_cv_member_struct_stat_st_rdev=no
7122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7126 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7127 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7128 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7130 cat >>confdefs.h <<_ACEOF
7131 #define HAVE_STRUCT_STAT_ST_RDEV 1
7132 _ACEOF
7138 # Check for complex math functions
7139 echo "$as_me:$LINENO: checking for csin in -lm" >&5
7140 echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
7141 if test "${ac_cv_lib_m_csin+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144 ac_check_lib_save_LIBS=$LIBS
7145 LIBS="-lm $LIBS"
7146 if test x$gcc_no_link = xyes; then
7147 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7148 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7149 { (exit 1); exit 1; }; }
7151 cat >conftest.$ac_ext <<_ACEOF
7152 /* confdefs.h. */
7153 _ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7158 /* Override any gcc2 internal prototype to avoid an error. */
7159 #ifdef __cplusplus
7160 extern "C"
7161 #endif
7162 /* We use char because int might match the return type of a gcc2
7163 builtin and then its argument prototype would still apply. */
7164 char csin ();
7166 main ()
7168 csin ();
7170 return 0;
7172 _ACEOF
7173 rm -f conftest.$ac_objext conftest$ac_exeext
7174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175 (eval $ac_link) 2>conftest.er1
7176 ac_status=$?
7177 grep -v '^ *+' conftest.er1 >conftest.err
7178 rm -f conftest.er1
7179 cat conftest.err >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); } &&
7182 { ac_try='test -z "$ac_c_werror_flag"
7183 || test ! -s conftest.err'
7184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185 (eval $ac_try) 2>&5
7186 ac_status=$?
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }; } &&
7189 { ac_try='test -s conftest$ac_exeext'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 (eval $ac_try) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 ac_cv_lib_m_csin=yes
7196 else
7197 echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.$ac_ext >&5
7200 ac_cv_lib_m_csin=no
7202 rm -f conftest.err conftest.$ac_objext \
7203 conftest$ac_exeext conftest.$ac_ext
7204 LIBS=$ac_check_lib_save_LIBS
7206 echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
7207 echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
7208 if test $ac_cv_lib_m_csin = yes; then
7209 need_math="no"
7210 else
7211 need_math="yes"
7215 # Check for library functions.
7224 for ac_func in getrusage times mkstemp strtof strtold snprintf ftruncate chsize
7226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7227 echo "$as_me:$LINENO: checking for $ac_func" >&5
7228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7229 if eval "test \"\${$as_ac_var+set}\" = set"; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232 if test x$gcc_no_link = xyes; then
7233 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7234 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7235 { (exit 1); exit 1; }; }
7237 cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h. */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7245 #define $ac_func innocuous_$ac_func
7247 /* System header to define __stub macros and hopefully few prototypes,
7248 which can conflict with char $ac_func (); below.
7249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7250 <limits.h> exists even on freestanding compilers. */
7252 #ifdef __STDC__
7253 # include <limits.h>
7254 #else
7255 # include <assert.h>
7256 #endif
7258 #undef $ac_func
7260 /* Override any gcc2 internal prototype to avoid an error. */
7261 #ifdef __cplusplus
7262 extern "C"
7264 #endif
7265 /* We use char because int might match the return type of a gcc2
7266 builtin and then its argument prototype would still apply. */
7267 char $ac_func ();
7268 /* The GNU C library defines this for functions which it implements
7269 to always fail with ENOSYS. Some functions are actually named
7270 something starting with __ and the normal name is an alias. */
7271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7272 choke me
7273 #else
7274 char (*f) () = $ac_func;
7275 #endif
7276 #ifdef __cplusplus
7278 #endif
7281 main ()
7283 return f != $ac_func;
7285 return 0;
7287 _ACEOF
7288 rm -f conftest.$ac_objext conftest$ac_exeext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7290 (eval $ac_link) 2>conftest.er1
7291 ac_status=$?
7292 grep -v '^ *+' conftest.er1 >conftest.err
7293 rm -f conftest.er1
7294 cat conftest.err >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } &&
7297 { ac_try='test -z "$ac_c_werror_flag"
7298 || test ! -s conftest.err'
7299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 (eval $ac_try) 2>&5
7301 ac_status=$?
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); }; } &&
7304 { ac_try='test -s conftest$ac_exeext'
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 (eval $ac_try) 2>&5
7307 ac_status=$?
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; }; then
7310 eval "$as_ac_var=yes"
7311 else
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7315 eval "$as_ac_var=no"
7317 rm -f conftest.err conftest.$ac_objext \
7318 conftest$ac_exeext conftest.$ac_ext
7320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7322 if test `eval echo '${'$as_ac_var'}'` = yes; then
7323 cat >>confdefs.h <<_ACEOF
7324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7325 _ACEOF
7328 done
7338 for ac_func in chdir strerror getlogin gethostname kill link symlink perror
7340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7341 echo "$as_me:$LINENO: checking for $ac_func" >&5
7342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7343 if eval "test \"\${$as_ac_var+set}\" = set"; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346 if test x$gcc_no_link = xyes; then
7347 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7348 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7349 { (exit 1); exit 1; }; }
7351 cat >conftest.$ac_ext <<_ACEOF
7352 /* confdefs.h. */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7359 #define $ac_func innocuous_$ac_func
7361 /* System header to define __stub macros and hopefully few prototypes,
7362 which can conflict with char $ac_func (); below.
7363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7364 <limits.h> exists even on freestanding compilers. */
7366 #ifdef __STDC__
7367 # include <limits.h>
7368 #else
7369 # include <assert.h>
7370 #endif
7372 #undef $ac_func
7374 /* Override any gcc2 internal prototype to avoid an error. */
7375 #ifdef __cplusplus
7376 extern "C"
7378 #endif
7379 /* We use char because int might match the return type of a gcc2
7380 builtin and then its argument prototype would still apply. */
7381 char $ac_func ();
7382 /* The GNU C library defines this for functions which it implements
7383 to always fail with ENOSYS. Some functions are actually named
7384 something starting with __ and the normal name is an alias. */
7385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7386 choke me
7387 #else
7388 char (*f) () = $ac_func;
7389 #endif
7390 #ifdef __cplusplus
7392 #endif
7395 main ()
7397 return f != $ac_func;
7399 return 0;
7401 _ACEOF
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7404 (eval $ac_link) 2>conftest.er1
7405 ac_status=$?
7406 grep -v '^ *+' conftest.er1 >conftest.err
7407 rm -f conftest.er1
7408 cat conftest.err >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } &&
7411 { ac_try='test -z "$ac_c_werror_flag"
7412 || test ! -s conftest.err'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414 (eval $ac_try) 2>&5
7415 ac_status=$?
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; } &&
7418 { ac_try='test -s conftest$ac_exeext'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420 (eval $ac_try) 2>&5
7421 ac_status=$?
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7424 eval "$as_ac_var=yes"
7425 else
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7429 eval "$as_ac_var=no"
7431 rm -f conftest.err conftest.$ac_objext \
7432 conftest$ac_exeext conftest.$ac_ext
7434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7436 if test `eval echo '${'$as_ac_var'}'` = yes; then
7437 cat >>confdefs.h <<_ACEOF
7438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7439 _ACEOF
7442 done
7446 for ac_func in sleep time
7448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7449 echo "$as_me:$LINENO: checking for $ac_func" >&5
7450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7451 if eval "test \"\${$as_ac_var+set}\" = set"; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454 if test x$gcc_no_link = xyes; then
7455 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7457 { (exit 1); exit 1; }; }
7459 cat >conftest.$ac_ext <<_ACEOF
7460 /* confdefs.h. */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7467 #define $ac_func innocuous_$ac_func
7469 /* System header to define __stub macros and hopefully few prototypes,
7470 which can conflict with char $ac_func (); below.
7471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7472 <limits.h> exists even on freestanding compilers. */
7474 #ifdef __STDC__
7475 # include <limits.h>
7476 #else
7477 # include <assert.h>
7478 #endif
7480 #undef $ac_func
7482 /* Override any gcc2 internal prototype to avoid an error. */
7483 #ifdef __cplusplus
7484 extern "C"
7486 #endif
7487 /* We use char because int might match the return type of a gcc2
7488 builtin and then its argument prototype would still apply. */
7489 char $ac_func ();
7490 /* The GNU C library defines this for functions which it implements
7491 to always fail with ENOSYS. Some functions are actually named
7492 something starting with __ and the normal name is an alias. */
7493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7494 choke me
7495 #else
7496 char (*f) () = $ac_func;
7497 #endif
7498 #ifdef __cplusplus
7500 #endif
7503 main ()
7505 return f != $ac_func;
7507 return 0;
7509 _ACEOF
7510 rm -f conftest.$ac_objext conftest$ac_exeext
7511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7512 (eval $ac_link) 2>conftest.er1
7513 ac_status=$?
7514 grep -v '^ *+' conftest.er1 >conftest.err
7515 rm -f conftest.er1
7516 cat conftest.err >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } &&
7519 { ac_try='test -z "$ac_c_werror_flag"
7520 || test ! -s conftest.err'
7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 (eval $ac_try) 2>&5
7523 ac_status=$?
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }; } &&
7526 { ac_try='test -s conftest$ac_exeext'
7527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 (eval $ac_try) 2>&5
7529 ac_status=$?
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); }; }; then
7532 eval "$as_ac_var=yes"
7533 else
7534 echo "$as_me: failed program was:" >&5
7535 sed 's/^/| /' conftest.$ac_ext >&5
7537 eval "$as_ac_var=no"
7539 rm -f conftest.err conftest.$ac_objext \
7540 conftest$ac_exeext conftest.$ac_ext
7542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7544 if test `eval echo '${'$as_ac_var'}'` = yes; then
7545 cat >>confdefs.h <<_ACEOF
7546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7547 _ACEOF
7550 done
7553 # Check libc for getgid, getpid, getuid
7554 echo "$as_me:$LINENO: checking for getgid in -lc" >&5
7555 echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
7556 if test "${ac_cv_lib_c_getgid+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559 ac_check_lib_save_LIBS=$LIBS
7560 LIBS="-lc $LIBS"
7561 if test x$gcc_no_link = xyes; then
7562 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7563 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7564 { (exit 1); exit 1; }; }
7566 cat >conftest.$ac_ext <<_ACEOF
7567 /* confdefs.h. */
7568 _ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7573 /* Override any gcc2 internal prototype to avoid an error. */
7574 #ifdef __cplusplus
7575 extern "C"
7576 #endif
7577 /* We use char because int might match the return type of a gcc2
7578 builtin and then its argument prototype would still apply. */
7579 char getgid ();
7581 main ()
7583 getgid ();
7585 return 0;
7587 _ACEOF
7588 rm -f conftest.$ac_objext conftest$ac_exeext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7590 (eval $ac_link) 2>conftest.er1
7591 ac_status=$?
7592 grep -v '^ *+' conftest.er1 >conftest.err
7593 rm -f conftest.er1
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try='test -z "$ac_c_werror_flag"
7598 || test ! -s conftest.err'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 (eval $ac_try) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; } &&
7604 { ac_try='test -s conftest$ac_exeext'
7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 (eval $ac_try) 2>&5
7607 ac_status=$?
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; }; then
7610 ac_cv_lib_c_getgid=yes
7611 else
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7615 ac_cv_lib_c_getgid=no
7617 rm -f conftest.err conftest.$ac_objext \
7618 conftest$ac_exeext conftest.$ac_ext
7619 LIBS=$ac_check_lib_save_LIBS
7621 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
7622 echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
7623 if test $ac_cv_lib_c_getgid = yes; then
7625 cat >>confdefs.h <<\_ACEOF
7626 #define HAVE_GETGID 1
7627 _ACEOF
7631 echo "$as_me:$LINENO: checking for getpid in -lc" >&5
7632 echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
7633 if test "${ac_cv_lib_c_getpid+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 else
7636 ac_check_lib_save_LIBS=$LIBS
7637 LIBS="-lc $LIBS"
7638 if test x$gcc_no_link = xyes; then
7639 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7640 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7641 { (exit 1); exit 1; }; }
7643 cat >conftest.$ac_ext <<_ACEOF
7644 /* confdefs.h. */
7645 _ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7650 /* Override any gcc2 internal prototype to avoid an error. */
7651 #ifdef __cplusplus
7652 extern "C"
7653 #endif
7654 /* We use char because int might match the return type of a gcc2
7655 builtin and then its argument prototype would still apply. */
7656 char getpid ();
7658 main ()
7660 getpid ();
7662 return 0;
7664 _ACEOF
7665 rm -f conftest.$ac_objext conftest$ac_exeext
7666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7667 (eval $ac_link) 2>conftest.er1
7668 ac_status=$?
7669 grep -v '^ *+' conftest.er1 >conftest.err
7670 rm -f conftest.er1
7671 cat conftest.err >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } &&
7674 { ac_try='test -z "$ac_c_werror_flag"
7675 || test ! -s conftest.err'
7676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 (eval $ac_try) 2>&5
7678 ac_status=$?
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; } &&
7681 { ac_try='test -s conftest$ac_exeext'
7682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683 (eval $ac_try) 2>&5
7684 ac_status=$?
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); }; }; then
7687 ac_cv_lib_c_getpid=yes
7688 else
7689 echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.$ac_ext >&5
7692 ac_cv_lib_c_getpid=no
7694 rm -f conftest.err conftest.$ac_objext \
7695 conftest$ac_exeext conftest.$ac_ext
7696 LIBS=$ac_check_lib_save_LIBS
7698 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
7699 echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
7700 if test $ac_cv_lib_c_getpid = yes; then
7702 cat >>confdefs.h <<\_ACEOF
7703 #define HAVE_GETPID 1
7704 _ACEOF
7708 echo "$as_me:$LINENO: checking for getuid in -lc" >&5
7709 echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
7710 if test "${ac_cv_lib_c_getuid+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713 ac_check_lib_save_LIBS=$LIBS
7714 LIBS="-lc $LIBS"
7715 if test x$gcc_no_link = xyes; then
7716 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7717 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7718 { (exit 1); exit 1; }; }
7720 cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h. */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7727 /* Override any gcc2 internal prototype to avoid an error. */
7728 #ifdef __cplusplus
7729 extern "C"
7730 #endif
7731 /* We use char because int might match the return type of a gcc2
7732 builtin and then its argument prototype would still apply. */
7733 char getuid ();
7735 main ()
7737 getuid ();
7739 return 0;
7741 _ACEOF
7742 rm -f conftest.$ac_objext conftest$ac_exeext
7743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7744 (eval $ac_link) 2>conftest.er1
7745 ac_status=$?
7746 grep -v '^ *+' conftest.er1 >conftest.err
7747 rm -f conftest.er1
7748 cat conftest.err >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } &&
7751 { ac_try='test -z "$ac_c_werror_flag"
7752 || test ! -s conftest.err'
7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 (eval $ac_try) 2>&5
7755 ac_status=$?
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; } &&
7758 { ac_try='test -s conftest$ac_exeext'
7759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 (eval $ac_try) 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; }; then
7764 ac_cv_lib_c_getuid=yes
7765 else
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7769 ac_cv_lib_c_getuid=no
7771 rm -f conftest.err conftest.$ac_objext \
7772 conftest$ac_exeext conftest.$ac_ext
7773 LIBS=$ac_check_lib_save_LIBS
7775 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
7776 echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
7777 if test $ac_cv_lib_c_getuid = yes; then
7779 cat >>confdefs.h <<\_ACEOF
7780 #define HAVE_GETUID 1
7781 _ACEOF
7786 # Check for C99 (and other IEEE) math functions
7787 # ??? This list seems awful long. Is there a better way to test for these?
7788 echo "$as_me:$LINENO: checking for acosf in -lm" >&5
7789 echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
7790 if test "${ac_cv_lib_m_acosf+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793 ac_check_lib_save_LIBS=$LIBS
7794 LIBS="-lm $LIBS"
7795 if test x$gcc_no_link = xyes; then
7796 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7797 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7798 { (exit 1); exit 1; }; }
7800 cat >conftest.$ac_ext <<_ACEOF
7801 /* confdefs.h. */
7802 _ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7807 /* Override any gcc2 internal prototype to avoid an error. */
7808 #ifdef __cplusplus
7809 extern "C"
7810 #endif
7811 /* We use char because int might match the return type of a gcc2
7812 builtin and then its argument prototype would still apply. */
7813 char acosf ();
7815 main ()
7817 acosf ();
7819 return 0;
7821 _ACEOF
7822 rm -f conftest.$ac_objext conftest$ac_exeext
7823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7824 (eval $ac_link) 2>conftest.er1
7825 ac_status=$?
7826 grep -v '^ *+' conftest.er1 >conftest.err
7827 rm -f conftest.er1
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try='test -z "$ac_c_werror_flag"
7832 || test ! -s conftest.err'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try='test -s conftest$ac_exeext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 ac_cv_lib_m_acosf=yes
7845 else
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7849 ac_cv_lib_m_acosf=no
7851 rm -f conftest.err conftest.$ac_objext \
7852 conftest$ac_exeext conftest.$ac_ext
7853 LIBS=$ac_check_lib_save_LIBS
7855 echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
7856 echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
7857 if test $ac_cv_lib_m_acosf = yes; then
7859 cat >>confdefs.h <<\_ACEOF
7860 #define HAVE_ACOSF 1
7861 _ACEOF
7865 echo "$as_me:$LINENO: checking for acoshf in -lm" >&5
7866 echo $ECHO_N "checking for acoshf in -lm... $ECHO_C" >&6
7867 if test "${ac_cv_lib_m_acoshf+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 else
7870 ac_check_lib_save_LIBS=$LIBS
7871 LIBS="-lm $LIBS"
7872 if test x$gcc_no_link = xyes; then
7873 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7874 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7875 { (exit 1); exit 1; }; }
7877 cat >conftest.$ac_ext <<_ACEOF
7878 /* confdefs.h. */
7879 _ACEOF
7880 cat confdefs.h >>conftest.$ac_ext
7881 cat >>conftest.$ac_ext <<_ACEOF
7882 /* end confdefs.h. */
7884 /* Override any gcc2 internal prototype to avoid an error. */
7885 #ifdef __cplusplus
7886 extern "C"
7887 #endif
7888 /* We use char because int might match the return type of a gcc2
7889 builtin and then its argument prototype would still apply. */
7890 char acoshf ();
7892 main ()
7894 acoshf ();
7896 return 0;
7898 _ACEOF
7899 rm -f conftest.$ac_objext conftest$ac_exeext
7900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7901 (eval $ac_link) 2>conftest.er1
7902 ac_status=$?
7903 grep -v '^ *+' conftest.er1 >conftest.err
7904 rm -f conftest.er1
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } &&
7908 { ac_try='test -z "$ac_c_werror_flag"
7909 || test ! -s conftest.err'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911 (eval $ac_try) 2>&5
7912 ac_status=$?
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; } &&
7915 { ac_try='test -s conftest$ac_exeext'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 (eval $ac_try) 2>&5
7918 ac_status=$?
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; }; then
7921 ac_cv_lib_m_acoshf=yes
7922 else
7923 echo "$as_me: failed program was:" >&5
7924 sed 's/^/| /' conftest.$ac_ext >&5
7926 ac_cv_lib_m_acoshf=no
7928 rm -f conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
7930 LIBS=$ac_check_lib_save_LIBS
7932 echo "$as_me:$LINENO: result: $ac_cv_lib_m_acoshf" >&5
7933 echo "${ECHO_T}$ac_cv_lib_m_acoshf" >&6
7934 if test $ac_cv_lib_m_acoshf = yes; then
7936 cat >>confdefs.h <<\_ACEOF
7937 #define HAVE_ACOSHF 1
7938 _ACEOF
7942 echo "$as_me:$LINENO: checking for asinf in -lm" >&5
7943 echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
7944 if test "${ac_cv_lib_m_asinf+set}" = set; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 else
7947 ac_check_lib_save_LIBS=$LIBS
7948 LIBS="-lm $LIBS"
7949 if test x$gcc_no_link = xyes; then
7950 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7951 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7952 { (exit 1); exit 1; }; }
7954 cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h. */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7961 /* Override any gcc2 internal prototype to avoid an error. */
7962 #ifdef __cplusplus
7963 extern "C"
7964 #endif
7965 /* We use char because int might match the return type of a gcc2
7966 builtin and then its argument prototype would still apply. */
7967 char asinf ();
7969 main ()
7971 asinf ();
7973 return 0;
7975 _ACEOF
7976 rm -f conftest.$ac_objext conftest$ac_exeext
7977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7978 (eval $ac_link) 2>conftest.er1
7979 ac_status=$?
7980 grep -v '^ *+' conftest.er1 >conftest.err
7981 rm -f conftest.er1
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } &&
7985 { ac_try='test -z "$ac_c_werror_flag"
7986 || test ! -s conftest.err'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 (eval $ac_try) 2>&5
7989 ac_status=$?
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; } &&
7992 { ac_try='test -s conftest$ac_exeext'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 (eval $ac_try) 2>&5
7995 ac_status=$?
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; }; then
7998 ac_cv_lib_m_asinf=yes
7999 else
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8003 ac_cv_lib_m_asinf=no
8005 rm -f conftest.err conftest.$ac_objext \
8006 conftest$ac_exeext conftest.$ac_ext
8007 LIBS=$ac_check_lib_save_LIBS
8009 echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
8010 echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
8011 if test $ac_cv_lib_m_asinf = yes; then
8013 cat >>confdefs.h <<\_ACEOF
8014 #define HAVE_ASINF 1
8015 _ACEOF
8019 echo "$as_me:$LINENO: checking for asinhf in -lm" >&5
8020 echo $ECHO_N "checking for asinhf in -lm... $ECHO_C" >&6
8021 if test "${ac_cv_lib_m_asinhf+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 else
8024 ac_check_lib_save_LIBS=$LIBS
8025 LIBS="-lm $LIBS"
8026 if test x$gcc_no_link = xyes; then
8027 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8028 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8029 { (exit 1); exit 1; }; }
8031 cat >conftest.$ac_ext <<_ACEOF
8032 /* confdefs.h. */
8033 _ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8038 /* Override any gcc2 internal prototype to avoid an error. */
8039 #ifdef __cplusplus
8040 extern "C"
8041 #endif
8042 /* We use char because int might match the return type of a gcc2
8043 builtin and then its argument prototype would still apply. */
8044 char asinhf ();
8046 main ()
8048 asinhf ();
8050 return 0;
8052 _ACEOF
8053 rm -f conftest.$ac_objext conftest$ac_exeext
8054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8055 (eval $ac_link) 2>conftest.er1
8056 ac_status=$?
8057 grep -v '^ *+' conftest.er1 >conftest.err
8058 rm -f conftest.er1
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try='test -z "$ac_c_werror_flag"
8063 || test ! -s conftest.err'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 (eval $ac_try) 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; } &&
8069 { ac_try='test -s conftest$ac_exeext'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071 (eval $ac_try) 2>&5
8072 ac_status=$?
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; }; then
8075 ac_cv_lib_m_asinhf=yes
8076 else
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8080 ac_cv_lib_m_asinhf=no
8082 rm -f conftest.err conftest.$ac_objext \
8083 conftest$ac_exeext conftest.$ac_ext
8084 LIBS=$ac_check_lib_save_LIBS
8086 echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinhf" >&5
8087 echo "${ECHO_T}$ac_cv_lib_m_asinhf" >&6
8088 if test $ac_cv_lib_m_asinhf = yes; then
8090 cat >>confdefs.h <<\_ACEOF
8091 #define HAVE_ASINHF 1
8092 _ACEOF
8096 echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
8097 echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
8098 if test "${ac_cv_lib_m_atan2f+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101 ac_check_lib_save_LIBS=$LIBS
8102 LIBS="-lm $LIBS"
8103 if test x$gcc_no_link = xyes; then
8104 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8106 { (exit 1); exit 1; }; }
8108 cat >conftest.$ac_ext <<_ACEOF
8109 /* confdefs.h. */
8110 _ACEOF
8111 cat confdefs.h >>conftest.$ac_ext
8112 cat >>conftest.$ac_ext <<_ACEOF
8113 /* end confdefs.h. */
8115 /* Override any gcc2 internal prototype to avoid an error. */
8116 #ifdef __cplusplus
8117 extern "C"
8118 #endif
8119 /* We use char because int might match the return type of a gcc2
8120 builtin and then its argument prototype would still apply. */
8121 char atan2f ();
8123 main ()
8125 atan2f ();
8127 return 0;
8129 _ACEOF
8130 rm -f conftest.$ac_objext conftest$ac_exeext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8132 (eval $ac_link) 2>conftest.er1
8133 ac_status=$?
8134 grep -v '^ *+' conftest.er1 >conftest.err
8135 rm -f conftest.er1
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try='test -z "$ac_c_werror_flag"
8140 || test ! -s conftest.err'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 (eval $ac_try) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; } &&
8146 { ac_try='test -s conftest$ac_exeext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_cv_lib_m_atan2f=yes
8153 else
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 ac_cv_lib_m_atan2f=no
8159 rm -f conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
8161 LIBS=$ac_check_lib_save_LIBS
8163 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
8164 echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
8165 if test $ac_cv_lib_m_atan2f = yes; then
8167 cat >>confdefs.h <<\_ACEOF
8168 #define HAVE_ATAN2F 1
8169 _ACEOF
8173 echo "$as_me:$LINENO: checking for atanf in -lm" >&5
8174 echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
8175 if test "${ac_cv_lib_m_atanf+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178 ac_check_lib_save_LIBS=$LIBS
8179 LIBS="-lm $LIBS"
8180 if test x$gcc_no_link = xyes; then
8181 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8182 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8183 { (exit 1); exit 1; }; }
8185 cat >conftest.$ac_ext <<_ACEOF
8186 /* confdefs.h. */
8187 _ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8192 /* Override any gcc2 internal prototype to avoid an error. */
8193 #ifdef __cplusplus
8194 extern "C"
8195 #endif
8196 /* We use char because int might match the return type of a gcc2
8197 builtin and then its argument prototype would still apply. */
8198 char atanf ();
8200 main ()
8202 atanf ();
8204 return 0;
8206 _ACEOF
8207 rm -f conftest.$ac_objext conftest$ac_exeext
8208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8209 (eval $ac_link) 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try='test -z "$ac_c_werror_flag"
8217 || test ! -s conftest.err'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 (eval $ac_try) 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; } &&
8223 { ac_try='test -s conftest$ac_exeext'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225 (eval $ac_try) 2>&5
8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229 ac_cv_lib_m_atanf=yes
8230 else
8231 echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.$ac_ext >&5
8234 ac_cv_lib_m_atanf=no
8236 rm -f conftest.err conftest.$ac_objext \
8237 conftest$ac_exeext conftest.$ac_ext
8238 LIBS=$ac_check_lib_save_LIBS
8240 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
8241 echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
8242 if test $ac_cv_lib_m_atanf = yes; then
8244 cat >>confdefs.h <<\_ACEOF
8245 #define HAVE_ATANF 1
8246 _ACEOF
8250 echo "$as_me:$LINENO: checking for atanhf in -lm" >&5
8251 echo $ECHO_N "checking for atanhf in -lm... $ECHO_C" >&6
8252 if test "${ac_cv_lib_m_atanhf+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255 ac_check_lib_save_LIBS=$LIBS
8256 LIBS="-lm $LIBS"
8257 if test x$gcc_no_link = xyes; then
8258 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8259 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8260 { (exit 1); exit 1; }; }
8262 cat >conftest.$ac_ext <<_ACEOF
8263 /* confdefs.h. */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8269 /* Override any gcc2 internal prototype to avoid an error. */
8270 #ifdef __cplusplus
8271 extern "C"
8272 #endif
8273 /* We use char because int might match the return type of a gcc2
8274 builtin and then its argument prototype would still apply. */
8275 char atanhf ();
8277 main ()
8279 atanhf ();
8281 return 0;
8283 _ACEOF
8284 rm -f conftest.$ac_objext conftest$ac_exeext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8286 (eval $ac_link) 2>conftest.er1
8287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -z "$ac_c_werror_flag"
8294 || test ! -s conftest.err'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 (eval $ac_try) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; } &&
8300 { ac_try='test -s conftest$ac_exeext'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 (eval $ac_try) 2>&5
8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 ac_cv_lib_m_atanhf=yes
8307 else
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8311 ac_cv_lib_m_atanhf=no
8313 rm -f conftest.err conftest.$ac_objext \
8314 conftest$ac_exeext conftest.$ac_ext
8315 LIBS=$ac_check_lib_save_LIBS
8317 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhf" >&5
8318 echo "${ECHO_T}$ac_cv_lib_m_atanhf" >&6
8319 if test $ac_cv_lib_m_atanhf = yes; then
8321 cat >>confdefs.h <<\_ACEOF
8322 #define HAVE_ATANHF 1
8323 _ACEOF
8327 echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
8328 echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
8329 if test "${ac_cv_lib_m_ceilf+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 else
8332 ac_check_lib_save_LIBS=$LIBS
8333 LIBS="-lm $LIBS"
8334 if test x$gcc_no_link = xyes; then
8335 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8336 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8337 { (exit 1); exit 1; }; }
8339 cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h. */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8346 /* Override any gcc2 internal prototype to avoid an error. */
8347 #ifdef __cplusplus
8348 extern "C"
8349 #endif
8350 /* We use char because int might match the return type of a gcc2
8351 builtin and then its argument prototype would still apply. */
8352 char ceilf ();
8354 main ()
8356 ceilf ();
8358 return 0;
8360 _ACEOF
8361 rm -f conftest.$ac_objext conftest$ac_exeext
8362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8363 (eval $ac_link) 2>conftest.er1
8364 ac_status=$?
8365 grep -v '^ *+' conftest.er1 >conftest.err
8366 rm -f conftest.er1
8367 cat conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } &&
8370 { ac_try='test -z "$ac_c_werror_flag"
8371 || test ! -s conftest.err'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373 (eval $ac_try) 2>&5
8374 ac_status=$?
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; } &&
8377 { ac_try='test -s conftest$ac_exeext'
8378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379 (eval $ac_try) 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8383 ac_cv_lib_m_ceilf=yes
8384 else
8385 echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8388 ac_cv_lib_m_ceilf=no
8390 rm -f conftest.err conftest.$ac_objext \
8391 conftest$ac_exeext conftest.$ac_ext
8392 LIBS=$ac_check_lib_save_LIBS
8394 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
8395 echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
8396 if test $ac_cv_lib_m_ceilf = yes; then
8398 cat >>confdefs.h <<\_ACEOF
8399 #define HAVE_CEILF 1
8400 _ACEOF
8404 echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
8405 echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
8406 if test "${ac_cv_lib_m_copysignf+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409 ac_check_lib_save_LIBS=$LIBS
8410 LIBS="-lm $LIBS"
8411 if test x$gcc_no_link = xyes; then
8412 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8413 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8414 { (exit 1); exit 1; }; }
8416 cat >conftest.$ac_ext <<_ACEOF
8417 /* confdefs.h. */
8418 _ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8423 /* Override any gcc2 internal prototype to avoid an error. */
8424 #ifdef __cplusplus
8425 extern "C"
8426 #endif
8427 /* We use char because int might match the return type of a gcc2
8428 builtin and then its argument prototype would still apply. */
8429 char copysignf ();
8431 main ()
8433 copysignf ();
8435 return 0;
8437 _ACEOF
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440 (eval $ac_link) 2>conftest.er1
8441 ac_status=$?
8442 grep -v '^ *+' conftest.er1 >conftest.err
8443 rm -f conftest.er1
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -z "$ac_c_werror_flag"
8448 || test ! -s conftest.err'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 (eval $ac_try) 2>&5
8451 ac_status=$?
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; } &&
8454 { ac_try='test -s conftest$ac_exeext'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 (eval $ac_try) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
8460 ac_cv_lib_m_copysignf=yes
8461 else
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8465 ac_cv_lib_m_copysignf=no
8467 rm -f conftest.err conftest.$ac_objext \
8468 conftest$ac_exeext conftest.$ac_ext
8469 LIBS=$ac_check_lib_save_LIBS
8471 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
8472 echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
8473 if test $ac_cv_lib_m_copysignf = yes; then
8475 cat >>confdefs.h <<\_ACEOF
8476 #define HAVE_COPYSIGNF 1
8477 _ACEOF
8481 echo "$as_me:$LINENO: checking for cosf in -lm" >&5
8482 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
8483 if test "${ac_cv_lib_m_cosf+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486 ac_check_lib_save_LIBS=$LIBS
8487 LIBS="-lm $LIBS"
8488 if test x$gcc_no_link = xyes; then
8489 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8490 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8491 { (exit 1); exit 1; }; }
8493 cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h. */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8500 /* Override any gcc2 internal prototype to avoid an error. */
8501 #ifdef __cplusplus
8502 extern "C"
8503 #endif
8504 /* We use char because int might match the return type of a gcc2
8505 builtin and then its argument prototype would still apply. */
8506 char cosf ();
8508 main ()
8510 cosf ();
8512 return 0;
8514 _ACEOF
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517 (eval $ac_link) 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag"
8525 || test ! -s conftest.err'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; } &&
8531 { ac_try='test -s conftest$ac_exeext'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 (eval $ac_try) 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; }; then
8537 ac_cv_lib_m_cosf=yes
8538 else
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8542 ac_cv_lib_m_cosf=no
8544 rm -f conftest.err conftest.$ac_objext \
8545 conftest$ac_exeext conftest.$ac_ext
8546 LIBS=$ac_check_lib_save_LIBS
8548 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
8549 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
8550 if test $ac_cv_lib_m_cosf = yes; then
8552 cat >>confdefs.h <<\_ACEOF
8553 #define HAVE_COSF 1
8554 _ACEOF
8558 echo "$as_me:$LINENO: checking for coshf in -lm" >&5
8559 echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
8560 if test "${ac_cv_lib_m_coshf+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563 ac_check_lib_save_LIBS=$LIBS
8564 LIBS="-lm $LIBS"
8565 if test x$gcc_no_link = xyes; then
8566 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8567 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8568 { (exit 1); exit 1; }; }
8570 cat >conftest.$ac_ext <<_ACEOF
8571 /* confdefs.h. */
8572 _ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h. */
8577 /* Override any gcc2 internal prototype to avoid an error. */
8578 #ifdef __cplusplus
8579 extern "C"
8580 #endif
8581 /* We use char because int might match the return type of a gcc2
8582 builtin and then its argument prototype would still apply. */
8583 char coshf ();
8585 main ()
8587 coshf ();
8589 return 0;
8591 _ACEOF
8592 rm -f conftest.$ac_objext conftest$ac_exeext
8593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8594 (eval $ac_link) 2>conftest.er1
8595 ac_status=$?
8596 grep -v '^ *+' conftest.er1 >conftest.err
8597 rm -f conftest.er1
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } &&
8601 { ac_try='test -z "$ac_c_werror_flag"
8602 || test ! -s conftest.err'
8603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 (eval $ac_try) 2>&5
8605 ac_status=$?
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; } &&
8608 { ac_try='test -s conftest$ac_exeext'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 (eval $ac_try) 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; }; then
8614 ac_cv_lib_m_coshf=yes
8615 else
8616 echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8619 ac_cv_lib_m_coshf=no
8621 rm -f conftest.err conftest.$ac_objext \
8622 conftest$ac_exeext conftest.$ac_ext
8623 LIBS=$ac_check_lib_save_LIBS
8625 echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
8626 echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
8627 if test $ac_cv_lib_m_coshf = yes; then
8629 cat >>confdefs.h <<\_ACEOF
8630 #define HAVE_COSHF 1
8631 _ACEOF
8635 echo "$as_me:$LINENO: checking for expf in -lm" >&5
8636 echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
8637 if test "${ac_cv_lib_m_expf+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640 ac_check_lib_save_LIBS=$LIBS
8641 LIBS="-lm $LIBS"
8642 if test x$gcc_no_link = xyes; then
8643 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8644 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8645 { (exit 1); exit 1; }; }
8647 cat >conftest.$ac_ext <<_ACEOF
8648 /* confdefs.h. */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8654 /* Override any gcc2 internal prototype to avoid an error. */
8655 #ifdef __cplusplus
8656 extern "C"
8657 #endif
8658 /* We use char because int might match the return type of a gcc2
8659 builtin and then its argument prototype would still apply. */
8660 char expf ();
8662 main ()
8664 expf ();
8666 return 0;
8668 _ACEOF
8669 rm -f conftest.$ac_objext conftest$ac_exeext
8670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8671 (eval $ac_link) 2>conftest.er1
8672 ac_status=$?
8673 grep -v '^ *+' conftest.er1 >conftest.err
8674 rm -f conftest.er1
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } &&
8678 { ac_try='test -z "$ac_c_werror_flag"
8679 || test ! -s conftest.err'
8680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 (eval $ac_try) 2>&5
8682 ac_status=$?
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }; } &&
8685 { ac_try='test -s conftest$ac_exeext'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 (eval $ac_try) 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; }; then
8691 ac_cv_lib_m_expf=yes
8692 else
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8696 ac_cv_lib_m_expf=no
8698 rm -f conftest.err conftest.$ac_objext \
8699 conftest$ac_exeext conftest.$ac_ext
8700 LIBS=$ac_check_lib_save_LIBS
8702 echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
8703 echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
8704 if test $ac_cv_lib_m_expf = yes; then
8706 cat >>confdefs.h <<\_ACEOF
8707 #define HAVE_EXPF 1
8708 _ACEOF
8712 echo "$as_me:$LINENO: checking for fabsf in -lm" >&5
8713 echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6
8714 if test "${ac_cv_lib_m_fabsf+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 else
8717 ac_check_lib_save_LIBS=$LIBS
8718 LIBS="-lm $LIBS"
8719 if test x$gcc_no_link = xyes; then
8720 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8721 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8722 { (exit 1); exit 1; }; }
8724 cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h. */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8731 /* Override any gcc2 internal prototype to avoid an error. */
8732 #ifdef __cplusplus
8733 extern "C"
8734 #endif
8735 /* We use char because int might match the return type of a gcc2
8736 builtin and then its argument prototype would still apply. */
8737 char fabsf ();
8739 main ()
8741 fabsf ();
8743 return 0;
8745 _ACEOF
8746 rm -f conftest.$ac_objext conftest$ac_exeext
8747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8748 (eval $ac_link) 2>conftest.er1
8749 ac_status=$?
8750 grep -v '^ *+' conftest.er1 >conftest.err
8751 rm -f conftest.er1
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } &&
8755 { ac_try='test -z "$ac_c_werror_flag"
8756 || test ! -s conftest.err'
8757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 (eval $ac_try) 2>&5
8759 ac_status=$?
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; } &&
8762 { ac_try='test -s conftest$ac_exeext'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 (eval $ac_try) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8768 ac_cv_lib_m_fabsf=yes
8769 else
8770 echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8773 ac_cv_lib_m_fabsf=no
8775 rm -f conftest.err conftest.$ac_objext \
8776 conftest$ac_exeext conftest.$ac_ext
8777 LIBS=$ac_check_lib_save_LIBS
8779 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5
8780 echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6
8781 if test $ac_cv_lib_m_fabsf = yes; then
8783 cat >>confdefs.h <<\_ACEOF
8784 #define HAVE_FABSF 1
8785 _ACEOF
8789 echo "$as_me:$LINENO: checking for floorf in -lm" >&5
8790 echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
8791 if test "${ac_cv_lib_m_floorf+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794 ac_check_lib_save_LIBS=$LIBS
8795 LIBS="-lm $LIBS"
8796 if test x$gcc_no_link = xyes; then
8797 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8798 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8799 { (exit 1); exit 1; }; }
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h. */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8808 /* Override any gcc2 internal prototype to avoid an error. */
8809 #ifdef __cplusplus
8810 extern "C"
8811 #endif
8812 /* We use char because int might match the return type of a gcc2
8813 builtin and then its argument prototype would still apply. */
8814 char floorf ();
8816 main ()
8818 floorf ();
8820 return 0;
8822 _ACEOF
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825 (eval $ac_link) 2>conftest.er1
8826 ac_status=$?
8827 grep -v '^ *+' conftest.er1 >conftest.err
8828 rm -f conftest.er1
8829 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } &&
8832 { ac_try='test -z "$ac_c_werror_flag"
8833 || test ! -s conftest.err'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 (eval $ac_try) 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try='test -s conftest$ac_exeext'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841 (eval $ac_try) 2>&5
8842 ac_status=$?
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; }; then
8845 ac_cv_lib_m_floorf=yes
8846 else
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8850 ac_cv_lib_m_floorf=no
8852 rm -f conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
8854 LIBS=$ac_check_lib_save_LIBS
8856 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
8857 echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
8858 if test $ac_cv_lib_m_floorf = yes; then
8860 cat >>confdefs.h <<\_ACEOF
8861 #define HAVE_FLOORF 1
8862 _ACEOF
8866 echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
8867 echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
8868 if test "${ac_cv_lib_m_frexpf+set}" = set; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8870 else
8871 ac_check_lib_save_LIBS=$LIBS
8872 LIBS="-lm $LIBS"
8873 if test x$gcc_no_link = xyes; then
8874 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8875 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8876 { (exit 1); exit 1; }; }
8878 cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h. */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8885 /* Override any gcc2 internal prototype to avoid an error. */
8886 #ifdef __cplusplus
8887 extern "C"
8888 #endif
8889 /* We use char because int might match the return type of a gcc2
8890 builtin and then its argument prototype would still apply. */
8891 char frexpf ();
8893 main ()
8895 frexpf ();
8897 return 0;
8899 _ACEOF
8900 rm -f conftest.$ac_objext conftest$ac_exeext
8901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8902 (eval $ac_link) 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -z "$ac_c_werror_flag"
8910 || test ! -s conftest.err'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; } &&
8916 { ac_try='test -s conftest$ac_exeext'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918 (eval $ac_try) 2>&5
8919 ac_status=$?
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
8922 ac_cv_lib_m_frexpf=yes
8923 else
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8927 ac_cv_lib_m_frexpf=no
8929 rm -f conftest.err conftest.$ac_objext \
8930 conftest$ac_exeext conftest.$ac_ext
8931 LIBS=$ac_check_lib_save_LIBS
8933 echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
8934 echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
8935 if test $ac_cv_lib_m_frexpf = yes; then
8937 cat >>confdefs.h <<\_ACEOF
8938 #define HAVE_FREXPF 1
8939 _ACEOF
8943 echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
8944 echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
8945 if test "${ac_cv_lib_m_hypotf+set}" = set; then
8946 echo $ECHO_N "(cached) $ECHO_C" >&6
8947 else
8948 ac_check_lib_save_LIBS=$LIBS
8949 LIBS="-lm $LIBS"
8950 if test x$gcc_no_link = xyes; then
8951 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8952 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8953 { (exit 1); exit 1; }; }
8955 cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h. */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8962 /* Override any gcc2 internal prototype to avoid an error. */
8963 #ifdef __cplusplus
8964 extern "C"
8965 #endif
8966 /* We use char because int might match the return type of a gcc2
8967 builtin and then its argument prototype would still apply. */
8968 char hypotf ();
8970 main ()
8972 hypotf ();
8974 return 0;
8976 _ACEOF
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8979 (eval $ac_link) 2>conftest.er1
8980 ac_status=$?
8981 grep -v '^ *+' conftest.er1 >conftest.err
8982 rm -f conftest.er1
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -z "$ac_c_werror_flag"
8987 || test ! -s conftest.err'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; } &&
8993 { ac_try='test -s conftest$ac_exeext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 (eval $ac_try) 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 ac_cv_lib_m_hypotf=yes
9000 else
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9004 ac_cv_lib_m_hypotf=no
9006 rm -f conftest.err conftest.$ac_objext \
9007 conftest$ac_exeext conftest.$ac_ext
9008 LIBS=$ac_check_lib_save_LIBS
9010 echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
9011 echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
9012 if test $ac_cv_lib_m_hypotf = yes; then
9014 cat >>confdefs.h <<\_ACEOF
9015 #define HAVE_HYPOTF 1
9016 _ACEOF
9020 echo "$as_me:$LINENO: checking for logf in -lm" >&5
9021 echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
9022 if test "${ac_cv_lib_m_logf+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 else
9025 ac_check_lib_save_LIBS=$LIBS
9026 LIBS="-lm $LIBS"
9027 if test x$gcc_no_link = xyes; then
9028 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9029 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9030 { (exit 1); exit 1; }; }
9032 cat >conftest.$ac_ext <<_ACEOF
9033 /* confdefs.h. */
9034 _ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9039 /* Override any gcc2 internal prototype to avoid an error. */
9040 #ifdef __cplusplus
9041 extern "C"
9042 #endif
9043 /* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */
9045 char logf ();
9047 main ()
9049 logf ();
9051 return 0;
9053 _ACEOF
9054 rm -f conftest.$ac_objext conftest$ac_exeext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9056 (eval $ac_link) 2>conftest.er1
9057 ac_status=$?
9058 grep -v '^ *+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } &&
9063 { ac_try='test -z "$ac_c_werror_flag"
9064 || test ! -s conftest.err'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 (eval $ac_try) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; } &&
9070 { ac_try='test -s conftest$ac_exeext'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 (eval $ac_try) 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
9076 ac_cv_lib_m_logf=yes
9077 else
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9081 ac_cv_lib_m_logf=no
9083 rm -f conftest.err conftest.$ac_objext \
9084 conftest$ac_exeext conftest.$ac_ext
9085 LIBS=$ac_check_lib_save_LIBS
9087 echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
9088 echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
9089 if test $ac_cv_lib_m_logf = yes; then
9091 cat >>confdefs.h <<\_ACEOF
9092 #define HAVE_LOGF 1
9093 _ACEOF
9097 echo "$as_me:$LINENO: checking for log10f in -lm" >&5
9098 echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
9099 if test "${ac_cv_lib_m_log10f+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 else
9102 ac_check_lib_save_LIBS=$LIBS
9103 LIBS="-lm $LIBS"
9104 if test x$gcc_no_link = xyes; then
9105 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9106 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9107 { (exit 1); exit 1; }; }
9109 cat >conftest.$ac_ext <<_ACEOF
9110 /* confdefs.h. */
9111 _ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9116 /* Override any gcc2 internal prototype to avoid an error. */
9117 #ifdef __cplusplus
9118 extern "C"
9119 #endif
9120 /* We use char because int might match the return type of a gcc2
9121 builtin and then its argument prototype would still apply. */
9122 char log10f ();
9124 main ()
9126 log10f ();
9128 return 0;
9130 _ACEOF
9131 rm -f conftest.$ac_objext conftest$ac_exeext
9132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9133 (eval $ac_link) 2>conftest.er1
9134 ac_status=$?
9135 grep -v '^ *+' conftest.er1 >conftest.err
9136 rm -f conftest.er1
9137 cat conftest.err >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } &&
9140 { ac_try='test -z "$ac_c_werror_flag"
9141 || test ! -s conftest.err'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 (eval $ac_try) 2>&5
9144 ac_status=$?
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; } &&
9147 { ac_try='test -s conftest$ac_exeext'
9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 (eval $ac_try) 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; }; then
9153 ac_cv_lib_m_log10f=yes
9154 else
9155 echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9158 ac_cv_lib_m_log10f=no
9160 rm -f conftest.err conftest.$ac_objext \
9161 conftest$ac_exeext conftest.$ac_ext
9162 LIBS=$ac_check_lib_save_LIBS
9164 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
9165 echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
9166 if test $ac_cv_lib_m_log10f = yes; then
9168 cat >>confdefs.h <<\_ACEOF
9169 #define HAVE_LOG10F 1
9170 _ACEOF
9174 echo "$as_me:$LINENO: checking for log10l in -lm" >&5
9175 echo $ECHO_N "checking for log10l in -lm... $ECHO_C" >&6
9176 if test "${ac_cv_lib_m_log10l+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 else
9179 ac_check_lib_save_LIBS=$LIBS
9180 LIBS="-lm $LIBS"
9181 if test x$gcc_no_link = xyes; then
9182 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9183 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9184 { (exit 1); exit 1; }; }
9186 cat >conftest.$ac_ext <<_ACEOF
9187 /* confdefs.h. */
9188 _ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h. */
9193 /* Override any gcc2 internal prototype to avoid an error. */
9194 #ifdef __cplusplus
9195 extern "C"
9196 #endif
9197 /* We use char because int might match the return type of a gcc2
9198 builtin and then its argument prototype would still apply. */
9199 char log10l ();
9201 main ()
9203 log10l ();
9205 return 0;
9207 _ACEOF
9208 rm -f conftest.$ac_objext conftest$ac_exeext
9209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9210 (eval $ac_link) 2>conftest.er1
9211 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err
9213 rm -f conftest.er1
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try='test -z "$ac_c_werror_flag"
9218 || test ! -s conftest.err'
9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 (eval $ac_try) 2>&5
9221 ac_status=$?
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }; } &&
9224 { ac_try='test -s conftest$ac_exeext'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; }; then
9230 ac_cv_lib_m_log10l=yes
9231 else
9232 echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.$ac_ext >&5
9235 ac_cv_lib_m_log10l=no
9237 rm -f conftest.err conftest.$ac_objext \
9238 conftest$ac_exeext conftest.$ac_ext
9239 LIBS=$ac_check_lib_save_LIBS
9241 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10l" >&5
9242 echo "${ECHO_T}$ac_cv_lib_m_log10l" >&6
9243 if test $ac_cv_lib_m_log10l = yes; then
9245 cat >>confdefs.h <<\_ACEOF
9246 #define HAVE_LOG10L 1
9247 _ACEOF
9251 echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
9252 echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
9253 if test "${ac_cv_lib_m_nextafter+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 else
9256 ac_check_lib_save_LIBS=$LIBS
9257 LIBS="-lm $LIBS"
9258 if test x$gcc_no_link = xyes; then
9259 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9260 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9261 { (exit 1); exit 1; }; }
9263 cat >conftest.$ac_ext <<_ACEOF
9264 /* confdefs.h. */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9270 /* Override any gcc2 internal prototype to avoid an error. */
9271 #ifdef __cplusplus
9272 extern "C"
9273 #endif
9274 /* We use char because int might match the return type of a gcc2
9275 builtin and then its argument prototype would still apply. */
9276 char nextafter ();
9278 main ()
9280 nextafter ();
9282 return 0;
9284 _ACEOF
9285 rm -f conftest.$ac_objext conftest$ac_exeext
9286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9287 (eval $ac_link) 2>conftest.er1
9288 ac_status=$?
9289 grep -v '^ *+' conftest.er1 >conftest.err
9290 rm -f conftest.er1
9291 cat conftest.err >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } &&
9294 { ac_try='test -z "$ac_c_werror_flag"
9295 || test ! -s conftest.err'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 (eval $ac_try) 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; } &&
9301 { ac_try='test -s conftest$ac_exeext'
9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 (eval $ac_try) 2>&5
9304 ac_status=$?
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; }; then
9307 ac_cv_lib_m_nextafter=yes
9308 else
9309 echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9312 ac_cv_lib_m_nextafter=no
9314 rm -f conftest.err conftest.$ac_objext \
9315 conftest$ac_exeext conftest.$ac_ext
9316 LIBS=$ac_check_lib_save_LIBS
9318 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
9319 echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
9320 if test $ac_cv_lib_m_nextafter = yes; then
9322 cat >>confdefs.h <<\_ACEOF
9323 #define HAVE_NEXTAFTER 1
9324 _ACEOF
9328 echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
9329 echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
9330 if test "${ac_cv_lib_m_nextafterf+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333 ac_check_lib_save_LIBS=$LIBS
9334 LIBS="-lm $LIBS"
9335 if test x$gcc_no_link = xyes; then
9336 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9337 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9338 { (exit 1); exit 1; }; }
9340 cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h. */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9347 /* Override any gcc2 internal prototype to avoid an error. */
9348 #ifdef __cplusplus
9349 extern "C"
9350 #endif
9351 /* We use char because int might match the return type of a gcc2
9352 builtin and then its argument prototype would still apply. */
9353 char nextafterf ();
9355 main ()
9357 nextafterf ();
9359 return 0;
9361 _ACEOF
9362 rm -f conftest.$ac_objext conftest$ac_exeext
9363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9364 (eval $ac_link) 2>conftest.er1
9365 ac_status=$?
9366 grep -v '^ *+' conftest.er1 >conftest.err
9367 rm -f conftest.er1
9368 cat conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } &&
9371 { ac_try='test -z "$ac_c_werror_flag"
9372 || test ! -s conftest.err'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 (eval $ac_try) 2>&5
9375 ac_status=$?
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; } &&
9378 { ac_try='test -s conftest$ac_exeext'
9379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 (eval $ac_try) 2>&5
9381 ac_status=$?
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; }; then
9384 ac_cv_lib_m_nextafterf=yes
9385 else
9386 echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.$ac_ext >&5
9389 ac_cv_lib_m_nextafterf=no
9391 rm -f conftest.err conftest.$ac_objext \
9392 conftest$ac_exeext conftest.$ac_ext
9393 LIBS=$ac_check_lib_save_LIBS
9395 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
9396 echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
9397 if test $ac_cv_lib_m_nextafterf = yes; then
9399 cat >>confdefs.h <<\_ACEOF
9400 #define HAVE_NEXTAFTERF 1
9401 _ACEOF
9405 echo "$as_me:$LINENO: checking for powf in -lm" >&5
9406 echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
9407 if test "${ac_cv_lib_m_powf+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 else
9410 ac_check_lib_save_LIBS=$LIBS
9411 LIBS="-lm $LIBS"
9412 if test x$gcc_no_link = xyes; then
9413 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9414 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9415 { (exit 1); exit 1; }; }
9417 cat >conftest.$ac_ext <<_ACEOF
9418 /* confdefs.h. */
9419 _ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h. */
9424 /* Override any gcc2 internal prototype to avoid an error. */
9425 #ifdef __cplusplus
9426 extern "C"
9427 #endif
9428 /* We use char because int might match the return type of a gcc2
9429 builtin and then its argument prototype would still apply. */
9430 char powf ();
9432 main ()
9434 powf ();
9436 return 0;
9438 _ACEOF
9439 rm -f conftest.$ac_objext conftest$ac_exeext
9440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9441 (eval $ac_link) 2>conftest.er1
9442 ac_status=$?
9443 grep -v '^ *+' conftest.er1 >conftest.err
9444 rm -f conftest.er1
9445 cat conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } &&
9448 { ac_try='test -z "$ac_c_werror_flag"
9449 || test ! -s conftest.err'
9450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451 (eval $ac_try) 2>&5
9452 ac_status=$?
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); }; } &&
9455 { ac_try='test -s conftest$ac_exeext'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 (eval $ac_try) 2>&5
9458 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; }; then
9461 ac_cv_lib_m_powf=yes
9462 else
9463 echo "$as_me: failed program was:" >&5
9464 sed 's/^/| /' conftest.$ac_ext >&5
9466 ac_cv_lib_m_powf=no
9468 rm -f conftest.err conftest.$ac_objext \
9469 conftest$ac_exeext conftest.$ac_ext
9470 LIBS=$ac_check_lib_save_LIBS
9472 echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
9473 echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
9474 if test $ac_cv_lib_m_powf = yes; then
9476 cat >>confdefs.h <<\_ACEOF
9477 #define HAVE_POWF 1
9478 _ACEOF
9482 echo "$as_me:$LINENO: checking for round in -lm" >&5
9483 echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
9484 if test "${ac_cv_lib_m_round+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487 ac_check_lib_save_LIBS=$LIBS
9488 LIBS="-lm $LIBS"
9489 if test x$gcc_no_link = xyes; then
9490 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9491 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9492 { (exit 1); exit 1; }; }
9494 cat >conftest.$ac_ext <<_ACEOF
9495 /* confdefs.h. */
9496 _ACEOF
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h. */
9501 /* Override any gcc2 internal prototype to avoid an error. */
9502 #ifdef __cplusplus
9503 extern "C"
9504 #endif
9505 /* We use char because int might match the return type of a gcc2
9506 builtin and then its argument prototype would still apply. */
9507 char round ();
9509 main ()
9511 round ();
9513 return 0;
9515 _ACEOF
9516 rm -f conftest.$ac_objext conftest$ac_exeext
9517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9518 (eval $ac_link) 2>conftest.er1
9519 ac_status=$?
9520 grep -v '^ *+' conftest.er1 >conftest.err
9521 rm -f conftest.er1
9522 cat conftest.err >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } &&
9525 { ac_try='test -z "$ac_c_werror_flag"
9526 || test ! -s conftest.err'
9527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528 (eval $ac_try) 2>&5
9529 ac_status=$?
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; } &&
9532 { ac_try='test -s conftest$ac_exeext'
9533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9534 (eval $ac_try) 2>&5
9535 ac_status=$?
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; }; then
9538 ac_cv_lib_m_round=yes
9539 else
9540 echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9543 ac_cv_lib_m_round=no
9545 rm -f conftest.err conftest.$ac_objext \
9546 conftest$ac_exeext conftest.$ac_ext
9547 LIBS=$ac_check_lib_save_LIBS
9549 echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
9550 echo "${ECHO_T}$ac_cv_lib_m_round" >&6
9551 if test $ac_cv_lib_m_round = yes; then
9553 cat >>confdefs.h <<\_ACEOF
9554 #define HAVE_ROUND 1
9555 _ACEOF
9559 echo "$as_me:$LINENO: checking for roundf in -lm" >&5
9560 echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
9561 if test "${ac_cv_lib_m_roundf+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 else
9564 ac_check_lib_save_LIBS=$LIBS
9565 LIBS="-lm $LIBS"
9566 if test x$gcc_no_link = xyes; then
9567 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9568 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9569 { (exit 1); exit 1; }; }
9571 cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h. */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9578 /* Override any gcc2 internal prototype to avoid an error. */
9579 #ifdef __cplusplus
9580 extern "C"
9581 #endif
9582 /* We use char because int might match the return type of a gcc2
9583 builtin and then its argument prototype would still apply. */
9584 char roundf ();
9586 main ()
9588 roundf ();
9590 return 0;
9592 _ACEOF
9593 rm -f conftest.$ac_objext conftest$ac_exeext
9594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9595 (eval $ac_link) 2>conftest.er1
9596 ac_status=$?
9597 grep -v '^ *+' conftest.er1 >conftest.err
9598 rm -f conftest.er1
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
9602 { ac_try='test -z "$ac_c_werror_flag"
9603 || test ! -s conftest.err'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 (eval $ac_try) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try='test -s conftest$ac_exeext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 ac_cv_lib_m_roundf=yes
9616 else
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9620 ac_cv_lib_m_roundf=no
9622 rm -f conftest.err conftest.$ac_objext \
9623 conftest$ac_exeext conftest.$ac_ext
9624 LIBS=$ac_check_lib_save_LIBS
9626 echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
9627 echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
9628 if test $ac_cv_lib_m_roundf = yes; then
9630 cat >>confdefs.h <<\_ACEOF
9631 #define HAVE_ROUNDF 1
9632 _ACEOF
9636 echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
9637 echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
9638 if test "${ac_cv_lib_m_scalbnf+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641 ac_check_lib_save_LIBS=$LIBS
9642 LIBS="-lm $LIBS"
9643 if test x$gcc_no_link = xyes; then
9644 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9645 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9646 { (exit 1); exit 1; }; }
9648 cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h. */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9655 /* Override any gcc2 internal prototype to avoid an error. */
9656 #ifdef __cplusplus
9657 extern "C"
9658 #endif
9659 /* We use char because int might match the return type of a gcc2
9660 builtin and then its argument prototype would still apply. */
9661 char scalbnf ();
9663 main ()
9665 scalbnf ();
9667 return 0;
9669 _ACEOF
9670 rm -f conftest.$ac_objext conftest$ac_exeext
9671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9672 (eval $ac_link) 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } &&
9679 { ac_try='test -z "$ac_c_werror_flag"
9680 || test ! -s conftest.err'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 (eval $ac_try) 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; } &&
9686 { ac_try='test -s conftest$ac_exeext'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688 (eval $ac_try) 2>&5
9689 ac_status=$?
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 ac_cv_lib_m_scalbnf=yes
9693 else
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 ac_cv_lib_m_scalbnf=no
9699 rm -f conftest.err conftest.$ac_objext \
9700 conftest$ac_exeext conftest.$ac_ext
9701 LIBS=$ac_check_lib_save_LIBS
9703 echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
9704 echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
9705 if test $ac_cv_lib_m_scalbnf = yes; then
9707 cat >>confdefs.h <<\_ACEOF
9708 #define HAVE_SCALBNF 1
9709 _ACEOF
9713 echo "$as_me:$LINENO: checking for scalbn in -lm" >&5
9714 echo $ECHO_N "checking for scalbn in -lm... $ECHO_C" >&6
9715 if test "${ac_cv_lib_m_scalbn+set}" = set; then
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 else
9718 ac_check_lib_save_LIBS=$LIBS
9719 LIBS="-lm $LIBS"
9720 if test x$gcc_no_link = xyes; then
9721 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9722 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9723 { (exit 1); exit 1; }; }
9725 cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h. */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9732 /* Override any gcc2 internal prototype to avoid an error. */
9733 #ifdef __cplusplus
9734 extern "C"
9735 #endif
9736 /* We use char because int might match the return type of a gcc2
9737 builtin and then its argument prototype would still apply. */
9738 char scalbn ();
9740 main ()
9742 scalbn ();
9744 return 0;
9746 _ACEOF
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9749 (eval $ac_link) 2>conftest.er1
9750 ac_status=$?
9751 grep -v '^ *+' conftest.er1 >conftest.err
9752 rm -f conftest.er1
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -z "$ac_c_werror_flag"
9757 || test ! -s conftest.err'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; } &&
9763 { ac_try='test -s conftest$ac_exeext'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 (eval $ac_try) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_cv_lib_m_scalbn=yes
9770 else
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9774 ac_cv_lib_m_scalbn=no
9776 rm -f conftest.err conftest.$ac_objext \
9777 conftest$ac_exeext conftest.$ac_ext
9778 LIBS=$ac_check_lib_save_LIBS
9780 echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbn" >&5
9781 echo "${ECHO_T}$ac_cv_lib_m_scalbn" >&6
9782 if test $ac_cv_lib_m_scalbn = yes; then
9784 cat >>confdefs.h <<\_ACEOF
9785 #define HAVE_SCALBN 1
9786 _ACEOF
9790 echo "$as_me:$LINENO: checking for sinf in -lm" >&5
9791 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
9792 if test "${ac_cv_lib_m_sinf+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795 ac_check_lib_save_LIBS=$LIBS
9796 LIBS="-lm $LIBS"
9797 if test x$gcc_no_link = xyes; then
9798 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9799 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9800 { (exit 1); exit 1; }; }
9802 cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h. */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9809 /* Override any gcc2 internal prototype to avoid an error. */
9810 #ifdef __cplusplus
9811 extern "C"
9812 #endif
9813 /* We use char because int might match the return type of a gcc2
9814 builtin and then its argument prototype would still apply. */
9815 char sinf ();
9817 main ()
9819 sinf ();
9821 return 0;
9823 _ACEOF
9824 rm -f conftest.$ac_objext conftest$ac_exeext
9825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9826 (eval $ac_link) 2>conftest.er1
9827 ac_status=$?
9828 grep -v '^ *+' conftest.er1 >conftest.err
9829 rm -f conftest.er1
9830 cat conftest.err >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); } &&
9833 { ac_try='test -z "$ac_c_werror_flag"
9834 || test ! -s conftest.err'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 (eval $ac_try) 2>&5
9837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; } &&
9840 { ac_try='test -s conftest$ac_exeext'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 (eval $ac_try) 2>&5
9843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 ac_cv_lib_m_sinf=yes
9847 else
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9851 ac_cv_lib_m_sinf=no
9853 rm -f conftest.err conftest.$ac_objext \
9854 conftest$ac_exeext conftest.$ac_ext
9855 LIBS=$ac_check_lib_save_LIBS
9857 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
9858 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
9859 if test $ac_cv_lib_m_sinf = yes; then
9861 cat >>confdefs.h <<\_ACEOF
9862 #define HAVE_SINF 1
9863 _ACEOF
9867 echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
9868 echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
9869 if test "${ac_cv_lib_m_sinhf+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872 ac_check_lib_save_LIBS=$LIBS
9873 LIBS="-lm $LIBS"
9874 if test x$gcc_no_link = xyes; then
9875 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9877 { (exit 1); exit 1; }; }
9879 cat >conftest.$ac_ext <<_ACEOF
9880 /* confdefs.h. */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h. */
9886 /* Override any gcc2 internal prototype to avoid an error. */
9887 #ifdef __cplusplus
9888 extern "C"
9889 #endif
9890 /* We use char because int might match the return type of a gcc2
9891 builtin and then its argument prototype would still apply. */
9892 char sinhf ();
9894 main ()
9896 sinhf ();
9898 return 0;
9900 _ACEOF
9901 rm -f conftest.$ac_objext conftest$ac_exeext
9902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9903 (eval $ac_link) 2>conftest.er1
9904 ac_status=$?
9905 grep -v '^ *+' conftest.er1 >conftest.err
9906 rm -f conftest.er1
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } &&
9910 { ac_try='test -z "$ac_c_werror_flag"
9911 || test ! -s conftest.err'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 (eval $ac_try) 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest$ac_exeext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 (eval $ac_try) 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_cv_lib_m_sinhf=yes
9924 else
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9928 ac_cv_lib_m_sinhf=no
9930 rm -f conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext conftest.$ac_ext
9932 LIBS=$ac_check_lib_save_LIBS
9934 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
9935 echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
9936 if test $ac_cv_lib_m_sinhf = yes; then
9938 cat >>confdefs.h <<\_ACEOF
9939 #define HAVE_SINHF 1
9940 _ACEOF
9944 echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
9945 echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
9946 if test "${ac_cv_lib_m_sqrtf+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 else
9949 ac_check_lib_save_LIBS=$LIBS
9950 LIBS="-lm $LIBS"
9951 if test x$gcc_no_link = xyes; then
9952 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9953 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9954 { (exit 1); exit 1; }; }
9956 cat >conftest.$ac_ext <<_ACEOF
9957 /* confdefs.h. */
9958 _ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9963 /* Override any gcc2 internal prototype to avoid an error. */
9964 #ifdef __cplusplus
9965 extern "C"
9966 #endif
9967 /* We use char because int might match the return type of a gcc2
9968 builtin and then its argument prototype would still apply. */
9969 char sqrtf ();
9971 main ()
9973 sqrtf ();
9975 return 0;
9977 _ACEOF
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980 (eval $ac_link) 2>conftest.er1
9981 ac_status=$?
9982 grep -v '^ *+' conftest.er1 >conftest.err
9983 rm -f conftest.er1
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } &&
9987 { ac_try='test -z "$ac_c_werror_flag"
9988 || test ! -s conftest.err'
9989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 (eval $ac_try) 2>&5
9991 ac_status=$?
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; } &&
9994 { ac_try='test -s conftest$ac_exeext'
9995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996 (eval $ac_try) 2>&5
9997 ac_status=$?
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; }; then
10000 ac_cv_lib_m_sqrtf=yes
10001 else
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10005 ac_cv_lib_m_sqrtf=no
10007 rm -f conftest.err conftest.$ac_objext \
10008 conftest$ac_exeext conftest.$ac_ext
10009 LIBS=$ac_check_lib_save_LIBS
10011 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
10012 echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
10013 if test $ac_cv_lib_m_sqrtf = yes; then
10015 cat >>confdefs.h <<\_ACEOF
10016 #define HAVE_SQRTF 1
10017 _ACEOF
10021 echo "$as_me:$LINENO: checking for tanf in -lm" >&5
10022 echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
10023 if test "${ac_cv_lib_m_tanf+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 else
10026 ac_check_lib_save_LIBS=$LIBS
10027 LIBS="-lm $LIBS"
10028 if test x$gcc_no_link = xyes; then
10029 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10030 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10031 { (exit 1); exit 1; }; }
10033 cat >conftest.$ac_ext <<_ACEOF
10034 /* confdefs.h. */
10035 _ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h. */
10040 /* Override any gcc2 internal prototype to avoid an error. */
10041 #ifdef __cplusplus
10042 extern "C"
10043 #endif
10044 /* We use char because int might match the return type of a gcc2
10045 builtin and then its argument prototype would still apply. */
10046 char tanf ();
10048 main ()
10050 tanf ();
10052 return 0;
10054 _ACEOF
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10057 (eval $ac_link) 2>conftest.er1
10058 ac_status=$?
10059 grep -v '^ *+' conftest.er1 >conftest.err
10060 rm -f conftest.er1
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } &&
10064 { ac_try='test -z "$ac_c_werror_flag"
10065 || test ! -s conftest.err'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; } &&
10071 { ac_try='test -s conftest$ac_exeext'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
10077 ac_cv_lib_m_tanf=yes
10078 else
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10082 ac_cv_lib_m_tanf=no
10084 rm -f conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_check_lib_save_LIBS
10088 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
10089 echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
10090 if test $ac_cv_lib_m_tanf = yes; then
10092 cat >>confdefs.h <<\_ACEOF
10093 #define HAVE_TANF 1
10094 _ACEOF
10098 echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
10099 echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
10100 if test "${ac_cv_lib_m_tanhf+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 else
10103 ac_check_lib_save_LIBS=$LIBS
10104 LIBS="-lm $LIBS"
10105 if test x$gcc_no_link = xyes; then
10106 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10107 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10108 { (exit 1); exit 1; }; }
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h. */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10117 /* Override any gcc2 internal prototype to avoid an error. */
10118 #ifdef __cplusplus
10119 extern "C"
10120 #endif
10121 /* We use char because int might match the return type of a gcc2
10122 builtin and then its argument prototype would still apply. */
10123 char tanhf ();
10125 main ()
10127 tanhf ();
10129 return 0;
10131 _ACEOF
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>conftest.er1
10135 ac_status=$?
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try='test -z "$ac_c_werror_flag"
10142 || test ! -s conftest.err'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10151 ac_status=$?
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; }; then
10154 ac_cv_lib_m_tanhf=yes
10155 else
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10159 ac_cv_lib_m_tanhf=no
10161 rm -f conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10165 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
10166 echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
10167 if test $ac_cv_lib_m_tanhf = yes; then
10169 cat >>confdefs.h <<\_ACEOF
10170 #define HAVE_TANHF 1
10171 _ACEOF
10175 echo "$as_me:$LINENO: checking for trunc in -lm" >&5
10176 echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6
10177 if test "${ac_cv_lib_m_trunc+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180 ac_check_lib_save_LIBS=$LIBS
10181 LIBS="-lm $LIBS"
10182 if test x$gcc_no_link = xyes; then
10183 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10184 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10185 { (exit 1); exit 1; }; }
10187 cat >conftest.$ac_ext <<_ACEOF
10188 /* confdefs.h. */
10189 _ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h. */
10194 /* Override any gcc2 internal prototype to avoid an error. */
10195 #ifdef __cplusplus
10196 extern "C"
10197 #endif
10198 /* We use char because int might match the return type of a gcc2
10199 builtin and then its argument prototype would still apply. */
10200 char trunc ();
10202 main ()
10204 trunc ();
10206 return 0;
10208 _ACEOF
10209 rm -f conftest.$ac_objext conftest$ac_exeext
10210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10211 (eval $ac_link) 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag"
10219 || test ! -s conftest.err'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10231 ac_cv_lib_m_trunc=yes
10232 else
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10236 ac_cv_lib_m_trunc=no
10238 rm -f conftest.err conftest.$ac_objext \
10239 conftest$ac_exeext conftest.$ac_ext
10240 LIBS=$ac_check_lib_save_LIBS
10242 echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5
10243 echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6
10244 if test $ac_cv_lib_m_trunc = yes; then
10246 cat >>confdefs.h <<\_ACEOF
10247 #define HAVE_TRUNC 1
10248 _ACEOF
10252 echo "$as_me:$LINENO: checking for truncf in -lm" >&5
10253 echo $ECHO_N "checking for truncf in -lm... $ECHO_C" >&6
10254 if test "${ac_cv_lib_m_truncf+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 else
10257 ac_check_lib_save_LIBS=$LIBS
10258 LIBS="-lm $LIBS"
10259 if test x$gcc_no_link = xyes; then
10260 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10261 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10262 { (exit 1); exit 1; }; }
10264 cat >conftest.$ac_ext <<_ACEOF
10265 /* confdefs.h. */
10266 _ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10271 /* Override any gcc2 internal prototype to avoid an error. */
10272 #ifdef __cplusplus
10273 extern "C"
10274 #endif
10275 /* We use char because int might match the return type of a gcc2
10276 builtin and then its argument prototype would still apply. */
10277 char truncf ();
10279 main ()
10281 truncf ();
10283 return 0;
10285 _ACEOF
10286 rm -f conftest.$ac_objext conftest$ac_exeext
10287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10288 (eval $ac_link) 2>conftest.er1
10289 ac_status=$?
10290 grep -v '^ *+' conftest.er1 >conftest.err
10291 rm -f conftest.er1
10292 cat conftest.err >&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } &&
10295 { ac_try='test -z "$ac_c_werror_flag"
10296 || test ! -s conftest.err'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; } &&
10302 { ac_try='test -s conftest$ac_exeext'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; }; then
10308 ac_cv_lib_m_truncf=yes
10309 else
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10313 ac_cv_lib_m_truncf=no
10315 rm -f conftest.err conftest.$ac_objext \
10316 conftest$ac_exeext conftest.$ac_ext
10317 LIBS=$ac_check_lib_save_LIBS
10319 echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncf" >&5
10320 echo "${ECHO_T}$ac_cv_lib_m_truncf" >&6
10321 if test $ac_cv_lib_m_truncf = yes; then
10323 cat >>confdefs.h <<\_ACEOF
10324 #define HAVE_TRUNCF 1
10325 _ACEOF
10329 echo "$as_me:$LINENO: checking for erf in -lm" >&5
10330 echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
10331 if test "${ac_cv_lib_m_erf+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334 ac_check_lib_save_LIBS=$LIBS
10335 LIBS="-lm $LIBS"
10336 if test x$gcc_no_link = xyes; then
10337 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10338 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10339 { (exit 1); exit 1; }; }
10341 cat >conftest.$ac_ext <<_ACEOF
10342 /* confdefs.h. */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10348 /* Override any gcc2 internal prototype to avoid an error. */
10349 #ifdef __cplusplus
10350 extern "C"
10351 #endif
10352 /* We use char because int might match the return type of a gcc2
10353 builtin and then its argument prototype would still apply. */
10354 char erf ();
10356 main ()
10358 erf ();
10360 return 0;
10362 _ACEOF
10363 rm -f conftest.$ac_objext conftest$ac_exeext
10364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10365 (eval $ac_link) 2>conftest.er1
10366 ac_status=$?
10367 grep -v '^ *+' conftest.er1 >conftest.err
10368 rm -f conftest.er1
10369 cat conftest.err >&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } &&
10372 { ac_try='test -z "$ac_c_werror_flag"
10373 || test ! -s conftest.err'
10374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375 (eval $ac_try) 2>&5
10376 ac_status=$?
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; } &&
10379 { ac_try='test -s conftest$ac_exeext'
10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381 (eval $ac_try) 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; }; then
10385 ac_cv_lib_m_erf=yes
10386 else
10387 echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10390 ac_cv_lib_m_erf=no
10392 rm -f conftest.err conftest.$ac_objext \
10393 conftest$ac_exeext conftest.$ac_ext
10394 LIBS=$ac_check_lib_save_LIBS
10396 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
10397 echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
10398 if test $ac_cv_lib_m_erf = yes; then
10400 cat >>confdefs.h <<\_ACEOF
10401 #define HAVE_ERF 1
10402 _ACEOF
10406 echo "$as_me:$LINENO: checking for erfc in -lm" >&5
10407 echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
10408 if test "${ac_cv_lib_m_erfc+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 else
10411 ac_check_lib_save_LIBS=$LIBS
10412 LIBS="-lm $LIBS"
10413 if test x$gcc_no_link = xyes; then
10414 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10415 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10416 { (exit 1); exit 1; }; }
10418 cat >conftest.$ac_ext <<_ACEOF
10419 /* confdefs.h. */
10420 _ACEOF
10421 cat confdefs.h >>conftest.$ac_ext
10422 cat >>conftest.$ac_ext <<_ACEOF
10423 /* end confdefs.h. */
10425 /* Override any gcc2 internal prototype to avoid an error. */
10426 #ifdef __cplusplus
10427 extern "C"
10428 #endif
10429 /* We use char because int might match the return type of a gcc2
10430 builtin and then its argument prototype would still apply. */
10431 char erfc ();
10433 main ()
10435 erfc ();
10437 return 0;
10439 _ACEOF
10440 rm -f conftest.$ac_objext conftest$ac_exeext
10441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10442 (eval $ac_link) 2>conftest.er1
10443 ac_status=$?
10444 grep -v '^ *+' conftest.er1 >conftest.err
10445 rm -f conftest.er1
10446 cat conftest.err >&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } &&
10449 { ac_try='test -z "$ac_c_werror_flag"
10450 || test ! -s conftest.err'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10453 ac_status=$?
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; } &&
10456 { ac_try='test -s conftest$ac_exeext'
10457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10458 (eval $ac_try) 2>&5
10459 ac_status=$?
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); }; }; then
10462 ac_cv_lib_m_erfc=yes
10463 else
10464 echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10467 ac_cv_lib_m_erfc=no
10469 rm -f conftest.err conftest.$ac_objext \
10470 conftest$ac_exeext conftest.$ac_ext
10471 LIBS=$ac_check_lib_save_LIBS
10473 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
10474 echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
10475 if test $ac_cv_lib_m_erfc = yes; then
10477 cat >>confdefs.h <<\_ACEOF
10478 #define HAVE_ERFC 1
10479 _ACEOF
10483 echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
10484 echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
10485 if test "${ac_cv_lib_m_erfcf+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 else
10488 ac_check_lib_save_LIBS=$LIBS
10489 LIBS="-lm $LIBS"
10490 if test x$gcc_no_link = xyes; then
10491 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10492 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10493 { (exit 1); exit 1; }; }
10495 cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h. */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10502 /* Override any gcc2 internal prototype to avoid an error. */
10503 #ifdef __cplusplus
10504 extern "C"
10505 #endif
10506 /* We use char because int might match the return type of a gcc2
10507 builtin and then its argument prototype would still apply. */
10508 char erfcf ();
10510 main ()
10512 erfcf ();
10514 return 0;
10516 _ACEOF
10517 rm -f conftest.$ac_objext conftest$ac_exeext
10518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10519 (eval $ac_link) 2>conftest.er1
10520 ac_status=$?
10521 grep -v '^ *+' conftest.er1 >conftest.err
10522 rm -f conftest.er1
10523 cat conftest.err >&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } &&
10526 { ac_try='test -z "$ac_c_werror_flag"
10527 || test ! -s conftest.err'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10530 ac_status=$?
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; } &&
10533 { ac_try='test -s conftest$ac_exeext'
10534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; }; then
10539 ac_cv_lib_m_erfcf=yes
10540 else
10541 echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10544 ac_cv_lib_m_erfcf=no
10546 rm -f conftest.err conftest.$ac_objext \
10547 conftest$ac_exeext conftest.$ac_ext
10548 LIBS=$ac_check_lib_save_LIBS
10550 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
10551 echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
10552 if test $ac_cv_lib_m_erfcf = yes; then
10554 cat >>confdefs.h <<\_ACEOF
10555 #define HAVE_ERFCF 1
10556 _ACEOF
10560 echo "$as_me:$LINENO: checking for erff in -lm" >&5
10561 echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
10562 if test "${ac_cv_lib_m_erff+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 else
10565 ac_check_lib_save_LIBS=$LIBS
10566 LIBS="-lm $LIBS"
10567 if test x$gcc_no_link = xyes; then
10568 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10569 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10570 { (exit 1); exit 1; }; }
10572 cat >conftest.$ac_ext <<_ACEOF
10573 /* confdefs.h. */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10579 /* Override any gcc2 internal prototype to avoid an error. */
10580 #ifdef __cplusplus
10581 extern "C"
10582 #endif
10583 /* We use char because int might match the return type of a gcc2
10584 builtin and then its argument prototype would still apply. */
10585 char erff ();
10587 main ()
10589 erff ();
10591 return 0;
10593 _ACEOF
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596 (eval $ac_link) 2>conftest.er1
10597 ac_status=$?
10598 grep -v '^ *+' conftest.er1 >conftest.err
10599 rm -f conftest.er1
10600 cat conftest.err >&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } &&
10603 { ac_try='test -z "$ac_c_werror_flag"
10604 || test ! -s conftest.err'
10605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10606 (eval $ac_try) 2>&5
10607 ac_status=$?
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); }; } &&
10610 { ac_try='test -s conftest$ac_exeext'
10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612 (eval $ac_try) 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; }; then
10616 ac_cv_lib_m_erff=yes
10617 else
10618 echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10621 ac_cv_lib_m_erff=no
10623 rm -f conftest.err conftest.$ac_objext \
10624 conftest$ac_exeext conftest.$ac_ext
10625 LIBS=$ac_check_lib_save_LIBS
10627 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5
10628 echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
10629 if test $ac_cv_lib_m_erff = yes; then
10631 cat >>confdefs.h <<\_ACEOF
10632 #define HAVE_ERFF 1
10633 _ACEOF
10637 echo "$as_me:$LINENO: checking for j0 in -lm" >&5
10638 echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
10639 if test "${ac_cv_lib_m_j0+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10641 else
10642 ac_check_lib_save_LIBS=$LIBS
10643 LIBS="-lm $LIBS"
10644 if test x$gcc_no_link = xyes; then
10645 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10646 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10647 { (exit 1); exit 1; }; }
10649 cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h. */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10656 /* Override any gcc2 internal prototype to avoid an error. */
10657 #ifdef __cplusplus
10658 extern "C"
10659 #endif
10660 /* We use char because int might match the return type of a gcc2
10661 builtin and then its argument prototype would still apply. */
10662 char j0 ();
10664 main ()
10666 j0 ();
10668 return 0;
10670 _ACEOF
10671 rm -f conftest.$ac_objext conftest$ac_exeext
10672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10673 (eval $ac_link) 2>conftest.er1
10674 ac_status=$?
10675 grep -v '^ *+' conftest.er1 >conftest.err
10676 rm -f conftest.er1
10677 cat conftest.err >&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } &&
10680 { ac_try='test -z "$ac_c_werror_flag"
10681 || 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_j0=yes
10694 else
10695 echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10698 ac_cv_lib_m_j0=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_j0" >&5
10705 echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
10706 if test $ac_cv_lib_m_j0 = yes; then
10708 cat >>confdefs.h <<\_ACEOF
10709 #define HAVE_J0 1
10710 _ACEOF
10714 echo "$as_me:$LINENO: checking for j0f in -lm" >&5
10715 echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
10716 if test "${ac_cv_lib_m_j0f+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 j0f ();
10741 main ()
10743 j0f ();
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"
10758 || test ! -s conftest.err'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; } &&
10764 { ac_try='test -s conftest$ac_exeext'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 ac_cv_lib_m_j0f=yes
10771 else
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 ac_cv_lib_m_j0f=no
10777 rm -f conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext conftest.$ac_ext
10779 LIBS=$ac_check_lib_save_LIBS
10781 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
10782 echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
10783 if test $ac_cv_lib_m_j0f = yes; then
10785 cat >>confdefs.h <<\_ACEOF
10786 #define HAVE_J0F 1
10787 _ACEOF
10791 echo "$as_me:$LINENO: checking for j1 in -lm" >&5
10792 echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
10793 if test "${ac_cv_lib_m_j1+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10795 else
10796 ac_check_lib_save_LIBS=$LIBS
10797 LIBS="-lm $LIBS"
10798 if test x$gcc_no_link = xyes; then
10799 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10800 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10801 { (exit 1); exit 1; }; }
10803 cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h. */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10810 /* Override any gcc2 internal prototype to avoid an error. */
10811 #ifdef __cplusplus
10812 extern "C"
10813 #endif
10814 /* We use char because int might match the return type of a gcc2
10815 builtin and then its argument prototype would still apply. */
10816 char j1 ();
10818 main ()
10820 j1 ();
10822 return 0;
10824 _ACEOF
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10827 (eval $ac_link) 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
10834 { ac_try='test -z "$ac_c_werror_flag"
10835 || test ! -s conftest.err'
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10838 ac_status=$?
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; } &&
10841 { ac_try='test -s conftest$ac_exeext'
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
10847 ac_cv_lib_m_j1=yes
10848 else
10849 echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10852 ac_cv_lib_m_j1=no
10854 rm -f conftest.err conftest.$ac_objext \
10855 conftest$ac_exeext conftest.$ac_ext
10856 LIBS=$ac_check_lib_save_LIBS
10858 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
10859 echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
10860 if test $ac_cv_lib_m_j1 = yes; then
10862 cat >>confdefs.h <<\_ACEOF
10863 #define HAVE_J1 1
10864 _ACEOF
10868 echo "$as_me:$LINENO: checking for j1f in -lm" >&5
10869 echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
10870 if test "${ac_cv_lib_m_j1f+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 else
10873 ac_check_lib_save_LIBS=$LIBS
10874 LIBS="-lm $LIBS"
10875 if test x$gcc_no_link = xyes; then
10876 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10877 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10878 { (exit 1); exit 1; }; }
10880 cat >conftest.$ac_ext <<_ACEOF
10881 /* confdefs.h. */
10882 _ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10887 /* Override any gcc2 internal prototype to avoid an error. */
10888 #ifdef __cplusplus
10889 extern "C"
10890 #endif
10891 /* We use char because int might match the return type of a gcc2
10892 builtin and then its argument prototype would still apply. */
10893 char j1f ();
10895 main ()
10897 j1f ();
10899 return 0;
10901 _ACEOF
10902 rm -f conftest.$ac_objext conftest$ac_exeext
10903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10904 (eval $ac_link) 2>conftest.er1
10905 ac_status=$?
10906 grep -v '^ *+' conftest.er1 >conftest.err
10907 rm -f conftest.er1
10908 cat conftest.err >&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try='test -z "$ac_c_werror_flag"
10912 || test ! -s conftest.err'
10913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914 (eval $ac_try) 2>&5
10915 ac_status=$?
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; } &&
10918 { ac_try='test -s conftest$ac_exeext'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10921 ac_status=$?
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 ac_cv_lib_m_j1f=yes
10925 else
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 ac_cv_lib_m_j1f=no
10931 rm -f conftest.err conftest.$ac_objext \
10932 conftest$ac_exeext conftest.$ac_ext
10933 LIBS=$ac_check_lib_save_LIBS
10935 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
10936 echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
10937 if test $ac_cv_lib_m_j1f = yes; then
10939 cat >>confdefs.h <<\_ACEOF
10940 #define HAVE_J1F 1
10941 _ACEOF
10945 echo "$as_me:$LINENO: checking for jn in -lm" >&5
10946 echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
10947 if test "${ac_cv_lib_m_jn+set}" = set; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 else
10950 ac_check_lib_save_LIBS=$LIBS
10951 LIBS="-lm $LIBS"
10952 if test x$gcc_no_link = xyes; then
10953 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10954 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10955 { (exit 1); exit 1; }; }
10957 cat >conftest.$ac_ext <<_ACEOF
10958 /* confdefs.h. */
10959 _ACEOF
10960 cat confdefs.h >>conftest.$ac_ext
10961 cat >>conftest.$ac_ext <<_ACEOF
10962 /* end confdefs.h. */
10964 /* Override any gcc2 internal prototype to avoid an error. */
10965 #ifdef __cplusplus
10966 extern "C"
10967 #endif
10968 /* We use char because int might match the return type of a gcc2
10969 builtin and then its argument prototype would still apply. */
10970 char jn ();
10972 main ()
10974 jn ();
10976 return 0;
10978 _ACEOF
10979 rm -f conftest.$ac_objext conftest$ac_exeext
10980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10981 (eval $ac_link) 2>conftest.er1
10982 ac_status=$?
10983 grep -v '^ *+' conftest.er1 >conftest.err
10984 rm -f conftest.er1
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } &&
10988 { ac_try='test -z "$ac_c_werror_flag"
10989 || test ! -s conftest.err'
10990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991 (eval $ac_try) 2>&5
10992 ac_status=$?
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; } &&
10995 { ac_try='test -s conftest$ac_exeext'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10998 ac_status=$?
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }; then
11001 ac_cv_lib_m_jn=yes
11002 else
11003 echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11006 ac_cv_lib_m_jn=no
11008 rm -f conftest.err conftest.$ac_objext \
11009 conftest$ac_exeext conftest.$ac_ext
11010 LIBS=$ac_check_lib_save_LIBS
11012 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
11013 echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
11014 if test $ac_cv_lib_m_jn = yes; then
11016 cat >>confdefs.h <<\_ACEOF
11017 #define HAVE_JN 1
11018 _ACEOF
11022 echo "$as_me:$LINENO: checking for jnf in -lm" >&5
11023 echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
11024 if test "${ac_cv_lib_m_jnf+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11026 else
11027 ac_check_lib_save_LIBS=$LIBS
11028 LIBS="-lm $LIBS"
11029 if test x$gcc_no_link = xyes; then
11030 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11031 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11032 { (exit 1); exit 1; }; }
11034 cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h. */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11041 /* Override any gcc2 internal prototype to avoid an error. */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 /* We use char because int might match the return type of a gcc2
11046 builtin and then its argument prototype would still apply. */
11047 char jnf ();
11049 main ()
11051 jnf ();
11053 return 0;
11055 _ACEOF
11056 rm -f conftest.$ac_objext conftest$ac_exeext
11057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11058 (eval $ac_link) 2>conftest.er1
11059 ac_status=$?
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } &&
11065 { ac_try='test -z "$ac_c_werror_flag"
11066 || test ! -s conftest.err'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; } &&
11072 { ac_try='test -s conftest$ac_exeext'
11073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074 (eval $ac_try) 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }; then
11078 ac_cv_lib_m_jnf=yes
11079 else
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11083 ac_cv_lib_m_jnf=no
11085 rm -f conftest.err conftest.$ac_objext \
11086 conftest$ac_exeext conftest.$ac_ext
11087 LIBS=$ac_check_lib_save_LIBS
11089 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
11090 echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
11091 if test $ac_cv_lib_m_jnf = yes; then
11093 cat >>confdefs.h <<\_ACEOF
11094 #define HAVE_JNF 1
11095 _ACEOF
11099 echo "$as_me:$LINENO: checking for y0 in -lm" >&5
11100 echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
11101 if test "${ac_cv_lib_m_y0+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 else
11104 ac_check_lib_save_LIBS=$LIBS
11105 LIBS="-lm $LIBS"
11106 if test x$gcc_no_link = xyes; then
11107 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11108 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11109 { (exit 1); exit 1; }; }
11111 cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h. */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11118 /* Override any gcc2 internal prototype to avoid an error. */
11119 #ifdef __cplusplus
11120 extern "C"
11121 #endif
11122 /* We use char because int might match the return type of a gcc2
11123 builtin and then its argument prototype would still apply. */
11124 char y0 ();
11126 main ()
11128 y0 ();
11130 return 0;
11132 _ACEOF
11133 rm -f conftest.$ac_objext conftest$ac_exeext
11134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135 (eval $ac_link) 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } &&
11142 { ac_try='test -z "$ac_c_werror_flag"
11143 || test ! -s conftest.err'
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); }; } &&
11149 { ac_try='test -s conftest$ac_exeext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 ac_cv_lib_m_y0=yes
11156 else
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11160 ac_cv_lib_m_y0=no
11162 rm -f conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11164 LIBS=$ac_check_lib_save_LIBS
11166 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
11167 echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
11168 if test $ac_cv_lib_m_y0 = yes; then
11170 cat >>confdefs.h <<\_ACEOF
11171 #define HAVE_Y0 1
11172 _ACEOF
11176 echo "$as_me:$LINENO: checking for y0f in -lm" >&5
11177 echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
11178 if test "${ac_cv_lib_m_y0f+set}" = set; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 else
11181 ac_check_lib_save_LIBS=$LIBS
11182 LIBS="-lm $LIBS"
11183 if test x$gcc_no_link = xyes; then
11184 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11185 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11186 { (exit 1); exit 1; }; }
11188 cat >conftest.$ac_ext <<_ACEOF
11189 /* confdefs.h. */
11190 _ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h. */
11195 /* Override any gcc2 internal prototype to avoid an error. */
11196 #ifdef __cplusplus
11197 extern "C"
11198 #endif
11199 /* We use char because int might match the return type of a gcc2
11200 builtin and then its argument prototype would still apply. */
11201 char y0f ();
11203 main ()
11205 y0f ();
11207 return 0;
11209 _ACEOF
11210 rm -f conftest.$ac_objext conftest$ac_exeext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11212 (eval $ac_link) 2>conftest.er1
11213 ac_status=$?
11214 grep -v '^ *+' conftest.er1 >conftest.err
11215 rm -f conftest.er1
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } &&
11219 { ac_try='test -z "$ac_c_werror_flag"
11220 || test ! -s conftest.err'
11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11223 ac_status=$?
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; } &&
11226 { ac_try='test -s conftest$ac_exeext'
11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11229 ac_status=$?
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; }; then
11232 ac_cv_lib_m_y0f=yes
11233 else
11234 echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.$ac_ext >&5
11237 ac_cv_lib_m_y0f=no
11239 rm -f conftest.err conftest.$ac_objext \
11240 conftest$ac_exeext conftest.$ac_ext
11241 LIBS=$ac_check_lib_save_LIBS
11243 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
11244 echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
11245 if test $ac_cv_lib_m_y0f = yes; then
11247 cat >>confdefs.h <<\_ACEOF
11248 #define HAVE_Y0F 1
11249 _ACEOF
11253 echo "$as_me:$LINENO: checking for y1 in -lm" >&5
11254 echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
11255 if test "${ac_cv_lib_m_y1+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258 ac_check_lib_save_LIBS=$LIBS
11259 LIBS="-lm $LIBS"
11260 if test x$gcc_no_link = xyes; then
11261 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11262 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11263 { (exit 1); exit 1; }; }
11265 cat >conftest.$ac_ext <<_ACEOF
11266 /* confdefs.h. */
11267 _ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h. */
11272 /* Override any gcc2 internal prototype to avoid an error. */
11273 #ifdef __cplusplus
11274 extern "C"
11275 #endif
11276 /* We use char because int might match the return type of a gcc2
11277 builtin and then its argument prototype would still apply. */
11278 char y1 ();
11280 main ()
11282 y1 ();
11284 return 0;
11286 _ACEOF
11287 rm -f conftest.$ac_objext conftest$ac_exeext
11288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11289 (eval $ac_link) 2>conftest.er1
11290 ac_status=$?
11291 grep -v '^ *+' conftest.er1 >conftest.err
11292 rm -f conftest.er1
11293 cat conftest.err >&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } &&
11296 { ac_try='test -z "$ac_c_werror_flag"
11297 || test ! -s conftest.err'
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; } &&
11303 { ac_try='test -s conftest$ac_exeext'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; }; then
11309 ac_cv_lib_m_y1=yes
11310 else
11311 echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11314 ac_cv_lib_m_y1=no
11316 rm -f conftest.err conftest.$ac_objext \
11317 conftest$ac_exeext conftest.$ac_ext
11318 LIBS=$ac_check_lib_save_LIBS
11320 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
11321 echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
11322 if test $ac_cv_lib_m_y1 = yes; then
11324 cat >>confdefs.h <<\_ACEOF
11325 #define HAVE_Y1 1
11326 _ACEOF
11330 echo "$as_me:$LINENO: checking for y1f in -lm" >&5
11331 echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
11332 if test "${ac_cv_lib_m_y1f+set}" = set; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 else
11335 ac_check_lib_save_LIBS=$LIBS
11336 LIBS="-lm $LIBS"
11337 if test x$gcc_no_link = xyes; then
11338 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11339 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11340 { (exit 1); exit 1; }; }
11342 cat >conftest.$ac_ext <<_ACEOF
11343 /* confdefs.h. */
11344 _ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h. */
11349 /* Override any gcc2 internal prototype to avoid an error. */
11350 #ifdef __cplusplus
11351 extern "C"
11352 #endif
11353 /* We use char because int might match the return type of a gcc2
11354 builtin and then its argument prototype would still apply. */
11355 char y1f ();
11357 main ()
11359 y1f ();
11361 return 0;
11363 _ACEOF
11364 rm -f conftest.$ac_objext conftest$ac_exeext
11365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11366 (eval $ac_link) 2>conftest.er1
11367 ac_status=$?
11368 grep -v '^ *+' conftest.er1 >conftest.err
11369 rm -f conftest.er1
11370 cat conftest.err >&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } &&
11373 { ac_try='test -z "$ac_c_werror_flag"
11374 || test ! -s conftest.err'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; } &&
11380 { ac_try='test -s conftest$ac_exeext'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 ac_cv_lib_m_y1f=yes
11387 else
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11391 ac_cv_lib_m_y1f=no
11393 rm -f conftest.err conftest.$ac_objext \
11394 conftest$ac_exeext conftest.$ac_ext
11395 LIBS=$ac_check_lib_save_LIBS
11397 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
11398 echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
11399 if test $ac_cv_lib_m_y1f = yes; then
11401 cat >>confdefs.h <<\_ACEOF
11402 #define HAVE_Y1F 1
11403 _ACEOF
11407 echo "$as_me:$LINENO: checking for yn in -lm" >&5
11408 echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
11409 if test "${ac_cv_lib_m_yn+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 else
11412 ac_check_lib_save_LIBS=$LIBS
11413 LIBS="-lm $LIBS"
11414 if test x$gcc_no_link = xyes; then
11415 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11416 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11417 { (exit 1); exit 1; }; }
11419 cat >conftest.$ac_ext <<_ACEOF
11420 /* confdefs.h. */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11426 /* Override any gcc2 internal prototype to avoid an error. */
11427 #ifdef __cplusplus
11428 extern "C"
11429 #endif
11430 /* We use char because int might match the return type of a gcc2
11431 builtin and then its argument prototype would still apply. */
11432 char yn ();
11434 main ()
11436 yn ();
11438 return 0;
11440 _ACEOF
11441 rm -f conftest.$ac_objext conftest$ac_exeext
11442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11443 (eval $ac_link) 2>conftest.er1
11444 ac_status=$?
11445 grep -v '^ *+' conftest.er1 >conftest.err
11446 rm -f conftest.er1
11447 cat conftest.err >&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } &&
11450 { ac_try='test -z "$ac_c_werror_flag"
11451 || test ! -s conftest.err'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; } &&
11457 { ac_try='test -s conftest$ac_exeext'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; }; then
11463 ac_cv_lib_m_yn=yes
11464 else
11465 echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11468 ac_cv_lib_m_yn=no
11470 rm -f conftest.err conftest.$ac_objext \
11471 conftest$ac_exeext conftest.$ac_ext
11472 LIBS=$ac_check_lib_save_LIBS
11474 echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
11475 echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
11476 if test $ac_cv_lib_m_yn = yes; then
11478 cat >>confdefs.h <<\_ACEOF
11479 #define HAVE_YN 1
11480 _ACEOF
11484 echo "$as_me:$LINENO: checking for ynf in -lm" >&5
11485 echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
11486 if test "${ac_cv_lib_m_ynf+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489 ac_check_lib_save_LIBS=$LIBS
11490 LIBS="-lm $LIBS"
11491 if test x$gcc_no_link = xyes; then
11492 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11493 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11494 { (exit 1); exit 1; }; }
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h. */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11503 /* Override any gcc2 internal prototype to avoid an error. */
11504 #ifdef __cplusplus
11505 extern "C"
11506 #endif
11507 /* We use char because int might match the return type of a gcc2
11508 builtin and then its argument prototype would still apply. */
11509 char ynf ();
11511 main ()
11513 ynf ();
11515 return 0;
11517 _ACEOF
11518 rm -f conftest.$ac_objext conftest$ac_exeext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11520 (eval $ac_link) 2>conftest.er1
11521 ac_status=$?
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
11527 { ac_try='test -z "$ac_c_werror_flag"
11528 || test ! -s conftest.err'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; } &&
11534 { ac_try='test -s conftest$ac_exeext'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11540 ac_cv_lib_m_ynf=yes
11541 else
11542 echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11545 ac_cv_lib_m_ynf=no
11547 rm -f conftest.err conftest.$ac_objext \
11548 conftest$ac_exeext conftest.$ac_ext
11549 LIBS=$ac_check_lib_save_LIBS
11551 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
11552 echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
11553 if test $ac_cv_lib_m_ynf = yes; then
11555 cat >>confdefs.h <<\_ACEOF
11556 #define HAVE_YNF 1
11557 _ACEOF
11562 # Fallback in case isfinite is not available.
11563 echo "$as_me:$LINENO: checking for finite in -lm" >&5
11564 echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6
11565 if test "${ac_cv_lib_m_finite+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 else
11568 ac_check_lib_save_LIBS=$LIBS
11569 LIBS="-lm $LIBS"
11570 if test x$gcc_no_link = xyes; then
11571 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11572 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11573 { (exit 1); exit 1; }; }
11575 cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h. */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11582 /* Override any gcc2 internal prototype to avoid an error. */
11583 #ifdef __cplusplus
11584 extern "C"
11585 #endif
11586 /* We use char because int might match the return type of a gcc2
11587 builtin and then its argument prototype would still apply. */
11588 char finite ();
11590 main ()
11592 finite ();
11594 return 0;
11596 _ACEOF
11597 rm -f conftest.$ac_objext conftest$ac_exeext
11598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11599 (eval $ac_link) 2>conftest.er1
11600 ac_status=$?
11601 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
11606 { ac_try='test -z "$ac_c_werror_flag"
11607 || test ! -s conftest.err'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; } &&
11613 { ac_try='test -s conftest$ac_exeext'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 ac_cv_lib_m_finite=yes
11620 else
11621 echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11624 ac_cv_lib_m_finite=no
11626 rm -f conftest.err conftest.$ac_objext \
11627 conftest$ac_exeext conftest.$ac_ext
11628 LIBS=$ac_check_lib_save_LIBS
11630 echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5
11631 echo "${ECHO_T}$ac_cv_lib_m_finite" >&6
11632 if test $ac_cv_lib_m_finite = yes; then
11634 cat >>confdefs.h <<\_ACEOF
11635 #define HAVE_FINITE 1
11636 _ACEOF
11641 # Let the user override this
11642 # Check whether --enable-cmath or --disable-cmath was given.
11643 if test "${enable_cmath+set}" = set; then
11644 enableval="$enable_cmath"
11645 need_math=$enableval
11647 if test "$need_math" = "yes"; then
11648 { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
11649 echo "$as_me: Including complex math functions in libgfor" >&6;};
11650 extra_math_obj='$(gfor_cmath_obj)'
11653 MATH_OBJ="$extra_math_obj"
11656 # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
11657 # for struct timezone, as you might think. We also need to check how
11658 # to call gettimeofday if we have it.
11659 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11660 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11661 if test "${ac_cv_header_time+set}" = set; then
11662 echo $ECHO_N "(cached) $ECHO_C" >&6
11663 else
11664 cat >conftest.$ac_ext <<_ACEOF
11665 /* confdefs.h. */
11666 _ACEOF
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h. */
11670 #include <sys/types.h>
11671 #include <sys/time.h>
11672 #include <time.h>
11675 main ()
11677 if ((struct tm *) 0)
11678 return 0;
11680 return 0;
11682 _ACEOF
11683 rm -f conftest.$ac_objext
11684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11685 (eval $ac_compile) 2>conftest.er1
11686 ac_status=$?
11687 grep -v '^ *+' conftest.er1 >conftest.err
11688 rm -f conftest.er1
11689 cat conftest.err >&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } &&
11692 { ac_try='test -z "$ac_c_werror_flag"
11693 || test ! -s conftest.err'
11694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695 (eval $ac_try) 2>&5
11696 ac_status=$?
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; } &&
11699 { ac_try='test -s conftest.$ac_objext'
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; }; then
11705 ac_cv_header_time=yes
11706 else
11707 echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11710 ac_cv_header_time=no
11712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11714 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11715 echo "${ECHO_T}$ac_cv_header_time" >&6
11716 if test $ac_cv_header_time = yes; then
11718 cat >>confdefs.h <<\_ACEOF
11719 #define TIME_WITH_SYS_TIME 1
11720 _ACEOF
11726 for ac_func in gettimeofday
11728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11729 echo "$as_me:$LINENO: checking for $ac_func" >&5
11730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11731 if eval "test \"\${$as_ac_var+set}\" = set"; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 else
11734 if test x$gcc_no_link = xyes; then
11735 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11736 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11737 { (exit 1); exit 1; }; }
11739 cat >conftest.$ac_ext <<_ACEOF
11740 /* confdefs.h. */
11741 _ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11747 #define $ac_func innocuous_$ac_func
11749 /* System header to define __stub macros and hopefully few prototypes,
11750 which can conflict with char $ac_func (); below.
11751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11752 <limits.h> exists even on freestanding compilers. */
11754 #ifdef __STDC__
11755 # include <limits.h>
11756 #else
11757 # include <assert.h>
11758 #endif
11760 #undef $ac_func
11762 /* Override any gcc2 internal prototype to avoid an error. */
11763 #ifdef __cplusplus
11764 extern "C"
11766 #endif
11767 /* We use char because int might match the return type of a gcc2
11768 builtin and then its argument prototype would still apply. */
11769 char $ac_func ();
11770 /* The GNU C library defines this for functions which it implements
11771 to always fail with ENOSYS. Some functions are actually named
11772 something starting with __ and the normal name is an alias. */
11773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11774 choke me
11775 #else
11776 char (*f) () = $ac_func;
11777 #endif
11778 #ifdef __cplusplus
11780 #endif
11783 main ()
11785 return f != $ac_func;
11787 return 0;
11789 _ACEOF
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11792 (eval $ac_link) 2>conftest.er1
11793 ac_status=$?
11794 grep -v '^ *+' conftest.er1 >conftest.err
11795 rm -f conftest.er1
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -z "$ac_c_werror_flag"
11800 || test ! -s conftest.err'
11801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802 (eval $ac_try) 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; } &&
11806 { ac_try='test -s conftest$ac_exeext'
11807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808 (eval $ac_try) 2>&5
11809 ac_status=$?
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; }; then
11812 eval "$as_ac_var=yes"
11813 else
11814 echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11817 eval "$as_ac_var=no"
11819 rm -f conftest.err conftest.$ac_objext \
11820 conftest$ac_exeext conftest.$ac_ext
11822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11824 if test `eval echo '${'$as_ac_var'}'` = yes; then
11825 cat >>confdefs.h <<_ACEOF
11826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11827 _ACEOF
11830 done
11832 if test "$ac_cv_func_gettimeofday" = yes; then
11833 echo "$as_me:$LINENO: checking for struct timezone" >&5
11834 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11835 if test "${gfor_cv_struct_timezone+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838 cat >conftest.$ac_ext <<_ACEOF
11839 /* confdefs.h. */
11840 _ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h. */
11844 #include <sys/time.h>
11846 main ()
11848 struct timezone tz;
11850 return 0;
11852 _ACEOF
11853 rm -f conftest.$ac_objext
11854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11855 (eval $ac_compile) 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -z "$ac_c_werror_flag"
11863 || test ! -s conftest.err'
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; } &&
11869 { ac_try='test -s conftest.$ac_objext'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 gfor_cv_struct_timezone=yes
11876 else
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11880 gfor_cv_struct_timezone=no
11882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11884 echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
11885 echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
11886 if test $gfor_cv_struct_timezone = yes; then
11887 if test "$cross_compiling" = yes; then
11888 gfor_have_struct_timezone=yes
11889 else
11890 cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h. */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11897 #ifdef TIME_WITH_SYS_TIME
11898 #include <sys/time.h>
11899 #include <time.h>
11900 #else
11901 #ifdef HAVE_SYS_TIME_H
11902 #include <sys/time.h>
11903 #else
11904 #include <time.h>
11905 #endif
11906 #endif
11907 main ()
11909 struct timeval time;
11910 struct timezone dummy;
11911 if (gettimeofday (&time, &dummy))
11912 exit (1);
11913 else
11914 exit (0);
11916 _ACEOF
11917 rm -f conftest$ac_exeext
11918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11919 (eval $ac_link) 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924 (eval $ac_try) 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; }; then
11928 gfor_have_struct_timezone=yes
11929 else
11930 echo "$as_me: program exited with status $ac_status" >&5
11931 echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11934 ( exit $ac_status )
11935 gfor_have_struct_timezone=no
11937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11939 if test $gfor_have_struct_timezone = yes; then
11941 cat >>confdefs.h <<\_ACEOF
11942 #define HAVE_TIMEZONE 1
11943 _ACEOF
11948 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
11949 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11950 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953 if test x$gcc_no_link = xyes; then
11954 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11955 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11956 { (exit 1); exit 1; }; }
11958 cat >conftest.$ac_ext <<_ACEOF
11959 /* confdefs.h. */
11960 _ACEOF
11961 cat confdefs.h >>conftest.$ac_ext
11962 cat >>conftest.$ac_ext <<_ACEOF
11963 /* end confdefs.h. */
11965 #ifdef TIME_WITH_SYS_TIME
11966 #include <sys/time.h>
11967 #include <time.h>
11968 #else
11969 #ifdef HAVE_SYS_TIME_H
11970 #include <sys/time.h>
11971 #else
11972 #include <time.h>
11973 #endif
11974 #endif
11977 main ()
11980 struct timeval time;
11981 #ifdef HAVE_TIMEZONE
11982 struct timezone dummy;
11983 #define DUMMY &dummy
11984 #else
11985 #define DUMMY NULL
11986 #endif
11987 gettimeofday (&time, DUMMY);
11989 return 0;
11991 _ACEOF
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994 (eval $ac_link) 2>conftest.er1
11995 ac_status=$?
11996 grep -v '^ *+' conftest.er1 >conftest.err
11997 rm -f conftest.er1
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -z "$ac_c_werror_flag"
12002 || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest$ac_exeext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 emacs_cv_gettimeofday_two_arguments=yes
12015 else
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 emacs_cv_gettimeofday_two_arguments=no
12021 rm -f conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12024 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
12025 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
12026 if test $emacs_cv_gettimeofday_two_arguments = no; then
12028 cat >>confdefs.h <<\_ACEOF
12029 #define GETTIMEOFDAY_ONE_ARGUMENT 1
12030 _ACEOF
12035 # Attempt to assert that the target is of common type in case we don't
12036 # have C99 integer types at all.
12038 echo "$as_me:$LINENO: checking whether the target is ILP32" >&5
12039 echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6
12040 if test "${target_ilp32+set}" = set; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 else
12044 save_CFLAGS="$CFLAGS"
12045 CFLAGS="-O2"
12046 if test x$gcc_no_link = xyes; then
12047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12049 { (exit 1); exit 1; }; }
12051 cat >conftest.$ac_ext <<_ACEOF
12052 /* confdefs.h. */
12053 _ACEOF
12054 cat confdefs.h >>conftest.$ac_ext
12055 cat >>conftest.$ac_ext <<_ACEOF
12056 /* end confdefs.h. */
12059 main ()
12062 if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4)
12064 else
12065 undefined_function ();
12068 return 0;
12070 _ACEOF
12071 rm -f conftest.$ac_objext conftest$ac_exeext
12072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12073 (eval $ac_link) 2>conftest.er1
12074 ac_status=$?
12075 grep -v '^ *+' conftest.er1 >conftest.err
12076 rm -f conftest.er1
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
12080 { ac_try='test -z "$ac_c_werror_flag"
12081 || test ! -s conftest.err'
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; } &&
12087 { ac_try='test -s conftest$ac_exeext'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 target_ilp32=yes
12094 else
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12098 target_ilp32=no
12100 rm -f conftest.err conftest.$ac_objext \
12101 conftest$ac_exeext conftest.$ac_ext
12102 CFLAGS="$save_CFLAGS"
12104 echo "$as_me:$LINENO: result: $target_ilp32" >&5
12105 echo "${ECHO_T}$target_ilp32" >&6
12106 if test $target_ilp32 = yes; then
12108 cat >>confdefs.h <<\_ACEOF
12109 #define TARGET_ILP32 1
12110 _ACEOF
12115 # Check out attribute support.
12117 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
12118 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
12119 if test "${have_attribute_visibility+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12121 else
12123 save_CFLAGS="$CFLAGS"
12124 CFLAGS="$CFLAGS -Werror"
12125 cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h. */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 void __attribute__((visibility("hidden"))) foo(void) { }
12133 main ()
12137 return 0;
12139 _ACEOF
12140 rm -f conftest.$ac_objext
12141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12142 (eval $ac_compile) 2>conftest.er1
12143 ac_status=$?
12144 grep -v '^ *+' conftest.er1 >conftest.err
12145 rm -f conftest.er1
12146 cat conftest.err >&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } &&
12149 { ac_try='test -z "$ac_c_werror_flag"
12150 || test ! -s conftest.err'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try='test -s conftest.$ac_objext'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 have_attribute_visibility=yes
12163 else
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12167 have_attribute_visibility=no
12169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12170 CFLAGS="$save_CFLAGS"
12172 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
12173 echo "${ECHO_T}$have_attribute_visibility" >&6
12174 if test $have_attribute_visibility = yes; then
12176 cat >>confdefs.h <<\_ACEOF
12177 #define HAVE_ATTRIBUTE_VISIBILITY 1
12178 _ACEOF
12182 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
12183 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
12184 if test "${have_attribute_dllexport+set}" = set; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12186 else
12188 save_CFLAGS="$CFLAGS"
12189 CFLAGS="$CFLAGS -Werror"
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h. */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 void __attribute__((dllexport)) foo(void) { }
12198 main ()
12202 return 0;
12204 _ACEOF
12205 rm -f conftest.$ac_objext
12206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12207 (eval $ac_compile) 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } &&
12214 { ac_try='test -z "$ac_c_werror_flag"
12215 || test ! -s conftest.err'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; } &&
12221 { ac_try='test -s conftest.$ac_objext'
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 have_attribute_dllexport=yes
12228 else
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12232 have_attribute_dllexport=no
12234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12235 CFLAGS="$save_CFLAGS"
12237 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
12238 echo "${ECHO_T}$have_attribute_dllexport" >&6
12239 if test $have_attribute_dllexport = yes; then
12241 cat >>confdefs.h <<\_ACEOF
12242 #define HAVE_ATTRIBUTE_DLLEXPORT 1
12243 _ACEOF
12247 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
12248 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
12249 if test "${have_attribute_alias+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12253 if test x$gcc_no_link = xyes; then
12254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12256 { (exit 1); exit 1; }; }
12258 cat >conftest.$ac_ext <<_ACEOF
12259 /* confdefs.h. */
12260 _ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12265 #define ULP STR1(__USER_LABEL_PREFIX__)
12266 #define STR1(x) STR2(x)
12267 #define STR2(x) #x
12268 void foo(void) { }
12269 extern void bar(void) __attribute__((alias(ULP "foo")));
12271 main ()
12273 bar();
12275 return 0;
12277 _ACEOF
12278 rm -f conftest.$ac_objext conftest$ac_exeext
12279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12280 (eval $ac_link) 2>conftest.er1
12281 ac_status=$?
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
12287 { ac_try='test -z "$ac_c_werror_flag"
12288 || test ! -s conftest.err'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; } &&
12294 { ac_try='test -s conftest$ac_exeext'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
12300 have_attribute_alias=yes
12301 else
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12305 have_attribute_alias=no
12307 rm -f conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12310 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
12311 echo "${ECHO_T}$have_attribute_alias" >&6
12312 if test $have_attribute_alias = yes; then
12314 cat >>confdefs.h <<\_ACEOF
12315 #define HAVE_ATTRIBUTE_ALIAS 1
12316 _ACEOF
12320 cat >confcache <<\_ACEOF
12321 # This file is a shell script that caches the results of configure
12322 # tests run on this system so they can be shared between configure
12323 # scripts and configure runs, see configure's option --config-cache.
12324 # It is not useful on other systems. If it contains results you don't
12325 # want to keep, you may remove or edit it.
12327 # config.status only pays attention to the cache file if you give it
12328 # the --recheck option to rerun configure.
12330 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12331 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12332 # following values.
12334 _ACEOF
12336 # The following way of writing the cache mishandles newlines in values,
12337 # but we know of no workaround that is simple, portable, and efficient.
12338 # So, don't put newlines in cache variables' values.
12339 # Ultrix sh set writes to stderr and can't be redirected directly,
12340 # and sets the high bit in the cache file unless we assign to the vars.
12342 (set) 2>&1 |
12343 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12344 *ac_space=\ *)
12345 # `set' does not quote correctly, so add quotes (double-quote
12346 # substitution turns \\\\ into \\, and sed turns \\ into \).
12347 sed -n \
12348 "s/'/'\\\\''/g;
12349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12352 # `set' quotes correctly as required by POSIX, so do not add quotes.
12353 sed -n \
12354 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12356 esac;
12358 sed '
12359 t clear
12360 : clear
12361 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12362 t end
12363 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12364 : end' >>confcache
12365 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12366 if test -w $cache_file; then
12367 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12368 cat confcache >$cache_file
12369 else
12370 echo "not updating unwritable cache $cache_file"
12373 rm -f confcache
12375 if test ${multilib} = yes; then
12376 multilib_arg="--enable-multilib"
12377 else
12378 multilib_arg=
12381 # Write our Makefile.
12382 ac_config_files="$ac_config_files Makefile"
12384 cat >confcache <<\_ACEOF
12385 # This file is a shell script that caches the results of configure
12386 # tests run on this system so they can be shared between configure
12387 # scripts and configure runs, see configure's option --config-cache.
12388 # It is not useful on other systems. If it contains results you don't
12389 # want to keep, you may remove or edit it.
12391 # config.status only pays attention to the cache file if you give it
12392 # the --recheck option to rerun configure.
12394 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12395 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12396 # following values.
12398 _ACEOF
12400 # The following way of writing the cache mishandles newlines in values,
12401 # but we know of no workaround that is simple, portable, and efficient.
12402 # So, don't put newlines in cache variables' values.
12403 # Ultrix sh set writes to stderr and can't be redirected directly,
12404 # and sets the high bit in the cache file unless we assign to the vars.
12406 (set) 2>&1 |
12407 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12408 *ac_space=\ *)
12409 # `set' does not quote correctly, so add quotes (double-quote
12410 # substitution turns \\\\ into \\, and sed turns \\ into \).
12411 sed -n \
12412 "s/'/'\\\\''/g;
12413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12416 # `set' quotes correctly as required by POSIX, so do not add quotes.
12417 sed -n \
12418 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12420 esac;
12422 sed '
12423 t clear
12424 : clear
12425 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12426 t end
12427 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12428 : end' >>confcache
12429 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12430 if test -w $cache_file; then
12431 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12432 cat confcache >$cache_file
12433 else
12434 echo "not updating unwritable cache $cache_file"
12437 rm -f confcache
12439 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12440 # Let make expand exec_prefix.
12441 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12443 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12444 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12445 # trailing colons and then remove the whole line if VPATH becomes empty
12446 # (actually we leave an empty line to preserve line numbers).
12447 if test "x$srcdir" = x.; then
12448 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12449 s/:*\$(srcdir):*/:/;
12450 s/:*\${srcdir}:*/:/;
12451 s/:*@srcdir@:*/:/;
12452 s/^\([^=]*=[ ]*\):*/\1/;
12453 s/:*$//;
12454 s/^[^=]*=[ ]*$//;
12458 DEFS=-DHAVE_CONFIG_H
12460 ac_libobjs=
12461 ac_ltlibobjs=
12462 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12463 # 1. Remove the extension, and $U if already installed.
12464 ac_i=`echo "$ac_i" |
12465 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12466 # 2. Add them.
12467 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12468 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12469 done
12470 LIBOBJS=$ac_libobjs
12472 LTLIBOBJS=$ac_ltlibobjs
12475 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12476 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12477 Usually this means the macro was only invoked conditionally." >&5
12478 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12479 Usually this means the macro was only invoked conditionally." >&2;}
12480 { (exit 1); exit 1; }; }
12483 : ${CONFIG_STATUS=./config.status}
12484 ac_clean_files_save=$ac_clean_files
12485 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12486 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12487 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12488 cat >$CONFIG_STATUS <<_ACEOF
12489 #! $SHELL
12490 # Generated by $as_me.
12491 # Run this file to recreate the current configuration.
12492 # Compiler output produced by configure, useful for debugging
12493 # configure, is in config.log if it exists.
12495 debug=false
12496 ac_cs_recheck=false
12497 ac_cs_silent=false
12498 SHELL=\${CONFIG_SHELL-$SHELL}
12499 _ACEOF
12501 cat >>$CONFIG_STATUS <<\_ACEOF
12502 ## --------------------- ##
12503 ## M4sh Initialization. ##
12504 ## --------------------- ##
12506 # Be Bourne compatible
12507 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12508 emulate sh
12509 NULLCMD=:
12510 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12511 # is contrary to our usage. Disable this feature.
12512 alias -g '${1+"$@"}'='"$@"'
12513 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12514 set -o posix
12516 DUALCASE=1; export DUALCASE # for MKS sh
12518 # Support unset when possible.
12519 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12520 as_unset=unset
12521 else
12522 as_unset=false
12526 # Work around bugs in pre-3.0 UWIN ksh.
12527 $as_unset ENV MAIL MAILPATH
12528 PS1='$ '
12529 PS2='> '
12530 PS4='+ '
12532 # NLS nuisances.
12533 for as_var in \
12534 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12535 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12536 LC_TELEPHONE LC_TIME
12538 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12539 eval $as_var=C; export $as_var
12540 else
12541 $as_unset $as_var
12543 done
12545 # Required to use basename.
12546 if expr a : '\(a\)' >/dev/null 2>&1; then
12547 as_expr=expr
12548 else
12549 as_expr=false
12552 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12553 as_basename=basename
12554 else
12555 as_basename=false
12559 # Name of the executable.
12560 as_me=`$as_basename "$0" ||
12561 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12562 X"$0" : 'X\(//\)$' \| \
12563 X"$0" : 'X\(/\)$' \| \
12564 . : '\(.\)' 2>/dev/null ||
12565 echo X/"$0" |
12566 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12567 /^X\/\(\/\/\)$/{ s//\1/; q; }
12568 /^X\/\(\/\).*/{ s//\1/; q; }
12569 s/.*/./; q'`
12572 # PATH needs CR, and LINENO needs CR and PATH.
12573 # Avoid depending upon Character Ranges.
12574 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12575 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12576 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12577 as_cr_digits='0123456789'
12578 as_cr_alnum=$as_cr_Letters$as_cr_digits
12580 # The user is always right.
12581 if test "${PATH_SEPARATOR+set}" != set; then
12582 echo "#! /bin/sh" >conf$$.sh
12583 echo "exit 0" >>conf$$.sh
12584 chmod +x conf$$.sh
12585 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12586 PATH_SEPARATOR=';'
12587 else
12588 PATH_SEPARATOR=:
12590 rm -f conf$$.sh
12594 as_lineno_1=$LINENO
12595 as_lineno_2=$LINENO
12596 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12597 test "x$as_lineno_1" != "x$as_lineno_2" &&
12598 test "x$as_lineno_3" = "x$as_lineno_2" || {
12599 # Find who we are. Look in the path if we contain no path at all
12600 # relative or not.
12601 case $0 in
12602 *[\\/]* ) as_myself=$0 ;;
12603 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604 for as_dir in $PATH
12606 IFS=$as_save_IFS
12607 test -z "$as_dir" && as_dir=.
12608 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12609 done
12612 esac
12613 # We did not find ourselves, most probably we were run as `sh COMMAND'
12614 # in which case we are not to be found in the path.
12615 if test "x$as_myself" = x; then
12616 as_myself=$0
12618 if test ! -f "$as_myself"; then
12619 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12620 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12621 { (exit 1); exit 1; }; }
12623 case $CONFIG_SHELL in
12625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12628 IFS=$as_save_IFS
12629 test -z "$as_dir" && as_dir=.
12630 for as_base in sh bash ksh sh5; do
12631 case $as_dir in
12633 if ("$as_dir/$as_base" -c '
12634 as_lineno_1=$LINENO
12635 as_lineno_2=$LINENO
12636 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12637 test "x$as_lineno_1" != "x$as_lineno_2" &&
12638 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12639 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12640 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12641 CONFIG_SHELL=$as_dir/$as_base
12642 export CONFIG_SHELL
12643 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12644 fi;;
12645 esac
12646 done
12647 done
12649 esac
12651 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12652 # uniformly replaced by the line number. The first 'sed' inserts a
12653 # line-number line before each line; the second 'sed' does the real
12654 # work. The second script uses 'N' to pair each line-number line
12655 # with the numbered line, and appends trailing '-' during
12656 # substitution so that $LINENO is not a special case at line end.
12657 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12658 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12659 sed '=' <$as_myself |
12660 sed '
12662 s,$,-,
12663 : loop
12664 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12665 t loop
12666 s,-$,,
12667 s,^['$as_cr_digits']*\n,,
12668 ' >$as_me.lineno &&
12669 chmod +x $as_me.lineno ||
12670 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12671 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12672 { (exit 1); exit 1; }; }
12674 # Don't try to exec as it changes $[0], causing all sort of problems
12675 # (the dirname of $[0] is not the place where we might find the
12676 # original and so on. Autoconf is especially sensible to this).
12677 . ./$as_me.lineno
12678 # Exit status is that of the last command.
12679 exit
12683 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12684 *c*,-n*) ECHO_N= ECHO_C='
12685 ' ECHO_T=' ' ;;
12686 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12687 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12688 esac
12690 if expr a : '\(a\)' >/dev/null 2>&1; then
12691 as_expr=expr
12692 else
12693 as_expr=false
12696 rm -f conf$$ conf$$.exe conf$$.file
12697 echo >conf$$.file
12698 if ln -s conf$$.file conf$$ 2>/dev/null; then
12699 # We could just check for DJGPP; but this test a) works b) is more generic
12700 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12701 if test -f conf$$.exe; then
12702 # Don't use ln at all; we don't have any links
12703 as_ln_s='cp -p'
12704 else
12705 as_ln_s='ln -s'
12707 elif ln conf$$.file conf$$ 2>/dev/null; then
12708 as_ln_s=ln
12709 else
12710 as_ln_s='cp -p'
12712 rm -f conf$$ conf$$.exe conf$$.file
12714 if mkdir -p . 2>/dev/null; then
12715 as_mkdir_p=:
12716 else
12717 test -d ./-p && rmdir ./-p
12718 as_mkdir_p=false
12721 as_executable_p="test -f"
12723 # Sed expression to map a string onto a valid CPP name.
12724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12726 # Sed expression to map a string onto a valid variable name.
12727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12730 # IFS
12731 # We need space, tab and new line, in precisely that order.
12732 as_nl='
12734 IFS=" $as_nl"
12736 # CDPATH.
12737 $as_unset CDPATH
12739 exec 6>&1
12741 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12742 # report actual input values of CONFIG_FILES etc. instead of their
12743 # values after options handling. Logging --version etc. is OK.
12744 exec 5>>config.log
12746 echo
12747 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12748 ## Running $as_me. ##
12749 _ASBOX
12750 } >&5
12751 cat >&5 <<_CSEOF
12753 This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
12754 generated by GNU Autoconf 2.59. Invocation command line was
12756 CONFIG_FILES = $CONFIG_FILES
12757 CONFIG_HEADERS = $CONFIG_HEADERS
12758 CONFIG_LINKS = $CONFIG_LINKS
12759 CONFIG_COMMANDS = $CONFIG_COMMANDS
12760 $ $0 $@
12762 _CSEOF
12763 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12764 echo >&5
12765 _ACEOF
12767 # Files that config.status was made for.
12768 if test -n "$ac_config_files"; then
12769 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12772 if test -n "$ac_config_headers"; then
12773 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12776 if test -n "$ac_config_links"; then
12777 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12780 if test -n "$ac_config_commands"; then
12781 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12784 cat >>$CONFIG_STATUS <<\_ACEOF
12786 ac_cs_usage="\
12787 \`$as_me' instantiates files from templates according to the
12788 current configuration.
12790 Usage: $0 [OPTIONS] [FILE]...
12792 -h, --help print this help, then exit
12793 -V, --version print version number, then exit
12794 -q, --quiet do not print progress messages
12795 -d, --debug don't remove temporary files
12796 --recheck update $as_me by reconfiguring in the same conditions
12797 --file=FILE[:TEMPLATE]
12798 instantiate the configuration file FILE
12799 --header=FILE[:TEMPLATE]
12800 instantiate the configuration header FILE
12802 Configuration files:
12803 $config_files
12805 Configuration headers:
12806 $config_headers
12808 Configuration commands:
12809 $config_commands
12811 Report bugs to <bug-autoconf@gnu.org>."
12812 _ACEOF
12814 cat >>$CONFIG_STATUS <<_ACEOF
12815 ac_cs_version="\\
12816 GNU Fortran Runtime Library config.status 0.2
12817 configured by $0, generated by GNU Autoconf 2.59,
12818 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12820 Copyright (C) 2003 Free Software Foundation, Inc.
12821 This config.status script is free software; the Free Software Foundation
12822 gives unlimited permission to copy, distribute and modify it."
12823 srcdir=$srcdir
12824 INSTALL="$INSTALL"
12825 _ACEOF
12827 cat >>$CONFIG_STATUS <<\_ACEOF
12828 # If no file are specified by the user, then we need to provide default
12829 # value. By we need to know if files were specified by the user.
12830 ac_need_defaults=:
12831 while test $# != 0
12833 case $1 in
12834 --*=*)
12835 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12836 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12837 ac_shift=:
12840 ac_option=$1
12841 ac_optarg=$2
12842 ac_shift=shift
12844 *) # This is not an option, so the user has probably given explicit
12845 # arguments.
12846 ac_option=$1
12847 ac_need_defaults=false;;
12848 esac
12850 case $ac_option in
12851 # Handling of the options.
12852 _ACEOF
12853 cat >>$CONFIG_STATUS <<\_ACEOF
12854 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12855 ac_cs_recheck=: ;;
12856 --version | --vers* | -V )
12857 echo "$ac_cs_version"; exit 0 ;;
12858 --he | --h)
12859 # Conflict between --help and --header
12860 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12861 Try \`$0 --help' for more information." >&5
12862 echo "$as_me: error: ambiguous option: $1
12863 Try \`$0 --help' for more information." >&2;}
12864 { (exit 1); exit 1; }; };;
12865 --help | --hel | -h )
12866 echo "$ac_cs_usage"; exit 0 ;;
12867 --debug | --d* | -d )
12868 debug=: ;;
12869 --file | --fil | --fi | --f )
12870 $ac_shift
12871 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12872 ac_need_defaults=false;;
12873 --header | --heade | --head | --hea )
12874 $ac_shift
12875 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12876 ac_need_defaults=false;;
12877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12878 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12879 ac_cs_silent=: ;;
12881 # This is an error.
12882 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12883 Try \`$0 --help' for more information." >&5
12884 echo "$as_me: error: unrecognized option: $1
12885 Try \`$0 --help' for more information." >&2;}
12886 { (exit 1); exit 1; }; } ;;
12888 *) ac_config_targets="$ac_config_targets $1" ;;
12890 esac
12891 shift
12892 done
12894 ac_configure_extra_args=
12896 if $ac_cs_silent; then
12897 exec 6>/dev/null
12898 ac_configure_extra_args="$ac_configure_extra_args --silent"
12901 _ACEOF
12902 cat >>$CONFIG_STATUS <<_ACEOF
12903 if \$ac_cs_recheck; then
12904 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12905 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12908 _ACEOF
12910 cat >>$CONFIG_STATUS <<_ACEOF
12912 # INIT-COMMANDS section.
12916 srcdir="$srcdir"
12917 host="$host"
12918 target="$target"
12919 with_multisubdir="$with_multisubdir"
12920 with_multisrctop="$with_multisrctop"
12921 with_target_subdir="$with_target_subdir"
12922 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12923 multi_basedir="$multi_basedir"
12924 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12925 CC="$CC"
12927 _ACEOF
12931 cat >>$CONFIG_STATUS <<\_ACEOF
12932 for ac_config_target in $ac_config_targets
12934 case "$ac_config_target" in
12935 # Handling of arguments.
12936 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12937 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12938 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12939 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12940 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12941 { (exit 1); exit 1; }; };;
12942 esac
12943 done
12945 # If the user did not use the arguments to specify the items to instantiate,
12946 # then the envvar interface is used. Set only those that are not.
12947 # We use the long form for the default assignment because of an extremely
12948 # bizarre bug on SunOS 4.1.3.
12949 if $ac_need_defaults; then
12950 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12951 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12952 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12955 # Have a temporary directory for convenience. Make it in the build tree
12956 # simply because there is no reason to put it here, and in addition,
12957 # creating and moving files from /tmp can sometimes cause problems.
12958 # Create a temporary directory, and hook for its removal unless debugging.
12959 $debug ||
12961 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12962 trap '{ (exit 1); exit 1; }' 1 2 13 15
12965 # Create a (secure) tmp directory for tmp files.
12968 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12969 test -n "$tmp" && test -d "$tmp"
12970 } ||
12972 tmp=./confstat$$-$RANDOM
12973 (umask 077 && mkdir $tmp)
12974 } ||
12976 echo "$me: cannot create a temporary directory in ." >&2
12977 { (exit 1); exit 1; }
12980 _ACEOF
12982 cat >>$CONFIG_STATUS <<_ACEOF
12985 # CONFIG_FILES section.
12988 # No need to generate the scripts if there are no CONFIG_FILES.
12989 # This happens for instance when ./config.status config.h
12990 if test -n "\$CONFIG_FILES"; then
12991 # Protect against being on the right side of a sed subst in config.status.
12992 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12993 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12994 s,@SHELL@,$SHELL,;t t
12995 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12996 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12997 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12998 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12999 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13000 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13001 s,@exec_prefix@,$exec_prefix,;t t
13002 s,@prefix@,$prefix,;t t
13003 s,@program_transform_name@,$program_transform_name,;t t
13004 s,@bindir@,$bindir,;t t
13005 s,@sbindir@,$sbindir,;t t
13006 s,@libexecdir@,$libexecdir,;t t
13007 s,@datadir@,$datadir,;t t
13008 s,@sysconfdir@,$sysconfdir,;t t
13009 s,@sharedstatedir@,$sharedstatedir,;t t
13010 s,@localstatedir@,$localstatedir,;t t
13011 s,@libdir@,$libdir,;t t
13012 s,@includedir@,$includedir,;t t
13013 s,@oldincludedir@,$oldincludedir,;t t
13014 s,@infodir@,$infodir,;t t
13015 s,@mandir@,$mandir,;t t
13016 s,@build_alias@,$build_alias,;t t
13017 s,@host_alias@,$host_alias,;t t
13018 s,@target_alias@,$target_alias,;t t
13019 s,@DEFS@,$DEFS,;t t
13020 s,@ECHO_C@,$ECHO_C,;t t
13021 s,@ECHO_N@,$ECHO_N,;t t
13022 s,@ECHO_T@,$ECHO_T,;t t
13023 s,@LIBS@,$LIBS,;t t
13024 s,@build@,$build,;t t
13025 s,@build_cpu@,$build_cpu,;t t
13026 s,@build_vendor@,$build_vendor,;t t
13027 s,@build_os@,$build_os,;t t
13028 s,@host@,$host,;t t
13029 s,@host_cpu@,$host_cpu,;t t
13030 s,@host_vendor@,$host_vendor,;t t
13031 s,@host_os@,$host_os,;t t
13032 s,@target@,$target,;t t
13033 s,@target_cpu@,$target_cpu,;t t
13034 s,@target_vendor@,$target_vendor,;t t
13035 s,@target_os@,$target_os,;t t
13036 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13037 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13038 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13039 s,@CYGPATH_W@,$CYGPATH_W,;t t
13040 s,@PACKAGE@,$PACKAGE,;t t
13041 s,@VERSION@,$VERSION,;t t
13042 s,@ACLOCAL@,$ACLOCAL,;t t
13043 s,@AUTOCONF@,$AUTOCONF,;t t
13044 s,@AUTOMAKE@,$AUTOMAKE,;t t
13045 s,@AUTOHEADER@,$AUTOHEADER,;t t
13046 s,@MAKEINFO@,$MAKEINFO,;t t
13047 s,@install_sh@,$install_sh,;t t
13048 s,@STRIP@,$STRIP,;t t
13049 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13050 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13051 s,@mkdir_p@,$mkdir_p,;t t
13052 s,@AWK@,$AWK,;t t
13053 s,@SET_MAKE@,$SET_MAKE,;t t
13054 s,@am__leading_dot@,$am__leading_dot,;t t
13055 s,@AMTAR@,$AMTAR,;t t
13056 s,@am__tar@,$am__tar,;t t
13057 s,@am__untar@,$am__untar,;t t
13058 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13059 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13060 s,@MAINT@,$MAINT,;t t
13061 s,@multi_basedir@,$multi_basedir,;t t
13062 s,@toolexecdir@,$toolexecdir,;t t
13063 s,@toolexeclibdir@,$toolexeclibdir,;t t
13064 s,@CC@,$CC,;t t
13065 s,@ac_ct_CC@,$ac_ct_CC,;t t
13066 s,@EXEEXT@,$EXEEXT,;t t
13067 s,@OBJEXT@,$OBJEXT,;t t
13068 s,@AM_FCFLAGS@,$AM_FCFLAGS,;t t
13069 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
13070 s,@AS@,$AS,;t t
13071 s,@ac_ct_AS@,$ac_ct_AS,;t t
13072 s,@AR@,$AR,;t t
13073 s,@ac_ct_AR@,$ac_ct_AR,;t t
13074 s,@RANLIB@,$RANLIB,;t t
13075 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13076 s,@LN_S@,$LN_S,;t t
13077 s,@LIBTOOL@,$LIBTOOL,;t t
13078 s,@enable_shared@,$enable_shared,;t t
13079 s,@enable_static@,$enable_static,;t t
13080 s,@FC@,$FC,;t t
13081 s,@FCFLAGS@,$FCFLAGS,;t t
13082 s,@LDFLAGS@,$LDFLAGS,;t t
13083 s,@ac_ct_FC@,$ac_ct_FC,;t t
13084 s,@extra_ldflags_libgfortran@,$extra_ldflags_libgfortran,;t t
13085 s,@CPP@,$CPP,;t t
13086 s,@CPPFLAGS@,$CPPFLAGS,;t t
13087 s,@EGREP@,$EGREP,;t t
13088 s,@MATH_OBJ@,$MATH_OBJ,;t t
13089 s,@LIBOBJS@,$LIBOBJS,;t t
13090 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13091 CEOF
13093 _ACEOF
13095 cat >>$CONFIG_STATUS <<\_ACEOF
13096 # Split the substitutions into bite-sized pieces for seds with
13097 # small command number limits, like on Digital OSF/1 and HP-UX.
13098 ac_max_sed_lines=48
13099 ac_sed_frag=1 # Number of current file.
13100 ac_beg=1 # First line for current file.
13101 ac_end=$ac_max_sed_lines # Line after last line for current file.
13102 ac_more_lines=:
13103 ac_sed_cmds=
13104 while $ac_more_lines; do
13105 if test $ac_beg -gt 1; then
13106 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13107 else
13108 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13110 if test ! -s $tmp/subs.frag; then
13111 ac_more_lines=false
13112 else
13113 # The purpose of the label and of the branching condition is to
13114 # speed up the sed processing (if there are no `@' at all, there
13115 # is no need to browse any of the substitutions).
13116 # These are the two extra sed commands mentioned above.
13117 (echo ':t
13118 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13119 if test -z "$ac_sed_cmds"; then
13120 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13121 else
13122 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13124 ac_sed_frag=`expr $ac_sed_frag + 1`
13125 ac_beg=$ac_end
13126 ac_end=`expr $ac_end + $ac_max_sed_lines`
13128 done
13129 if test -z "$ac_sed_cmds"; then
13130 ac_sed_cmds=cat
13132 fi # test -n "$CONFIG_FILES"
13134 _ACEOF
13135 cat >>$CONFIG_STATUS <<\_ACEOF
13136 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13137 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13138 case $ac_file in
13139 - | *:- | *:-:* ) # input from stdin
13140 cat >$tmp/stdin
13141 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13142 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13143 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13145 * ) ac_file_in=$ac_file.in ;;
13146 esac
13148 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13149 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13150 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13151 X"$ac_file" : 'X\(//\)[^/]' \| \
13152 X"$ac_file" : 'X\(//\)$' \| \
13153 X"$ac_file" : 'X\(/\)' \| \
13154 . : '\(.\)' 2>/dev/null ||
13155 echo X"$ac_file" |
13156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13158 /^X\(\/\/\)$/{ s//\1/; q; }
13159 /^X\(\/\).*/{ s//\1/; q; }
13160 s/.*/./; q'`
13161 { if $as_mkdir_p; then
13162 mkdir -p "$ac_dir"
13163 else
13164 as_dir="$ac_dir"
13165 as_dirs=
13166 while test ! -d "$as_dir"; do
13167 as_dirs="$as_dir $as_dirs"
13168 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13169 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13170 X"$as_dir" : 'X\(//\)[^/]' \| \
13171 X"$as_dir" : 'X\(//\)$' \| \
13172 X"$as_dir" : 'X\(/\)' \| \
13173 . : '\(.\)' 2>/dev/null ||
13174 echo X"$as_dir" |
13175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13176 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13177 /^X\(\/\/\)$/{ s//\1/; q; }
13178 /^X\(\/\).*/{ s//\1/; q; }
13179 s/.*/./; q'`
13180 done
13181 test ! -n "$as_dirs" || mkdir $as_dirs
13182 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13183 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13184 { (exit 1); exit 1; }; }; }
13186 ac_builddir=.
13188 if test "$ac_dir" != .; then
13189 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13190 # A "../" for each directory in $ac_dir_suffix.
13191 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13192 else
13193 ac_dir_suffix= ac_top_builddir=
13196 case $srcdir in
13197 .) # No --srcdir option. We are building in place.
13198 ac_srcdir=.
13199 if test -z "$ac_top_builddir"; then
13200 ac_top_srcdir=.
13201 else
13202 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13203 fi ;;
13204 [\\/]* | ?:[\\/]* ) # Absolute path.
13205 ac_srcdir=$srcdir$ac_dir_suffix;
13206 ac_top_srcdir=$srcdir ;;
13207 *) # Relative path.
13208 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13209 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13210 esac
13212 # Do not use `cd foo && pwd` to compute absolute paths, because
13213 # the directories may not exist.
13214 case `pwd` in
13215 .) ac_abs_builddir="$ac_dir";;
13217 case "$ac_dir" in
13218 .) ac_abs_builddir=`pwd`;;
13219 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13220 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13221 esac;;
13222 esac
13223 case $ac_abs_builddir in
13224 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13226 case ${ac_top_builddir}. in
13227 .) ac_abs_top_builddir=$ac_abs_builddir;;
13228 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13229 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13230 esac;;
13231 esac
13232 case $ac_abs_builddir in
13233 .) ac_abs_srcdir=$ac_srcdir;;
13235 case $ac_srcdir in
13236 .) ac_abs_srcdir=$ac_abs_builddir;;
13237 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13238 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13239 esac;;
13240 esac
13241 case $ac_abs_builddir in
13242 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13244 case $ac_top_srcdir in
13245 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13246 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13247 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13248 esac;;
13249 esac
13252 case $INSTALL in
13253 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13254 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13255 esac
13257 if test x"$ac_file" != x-; then
13258 { echo "$as_me:$LINENO: creating $ac_file" >&5
13259 echo "$as_me: creating $ac_file" >&6;}
13260 rm -f "$ac_file"
13262 # Let's still pretend it is `configure' which instantiates (i.e., don't
13263 # use $as_me), people would be surprised to read:
13264 # /* config.h. Generated by config.status. */
13265 if test x"$ac_file" = x-; then
13266 configure_input=
13267 else
13268 configure_input="$ac_file. "
13270 configure_input=$configure_input"Generated from `echo $ac_file_in |
13271 sed 's,.*/,,'` by configure."
13273 # First look for the input files in the build tree, otherwise in the
13274 # src tree.
13275 ac_file_inputs=`IFS=:
13276 for f in $ac_file_in; do
13277 case $f in
13278 -) echo $tmp/stdin ;;
13279 [\\/$]*)
13280 # Absolute (can't be DOS-style, as IFS=:)
13281 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13282 echo "$as_me: error: cannot find input file: $f" >&2;}
13283 { (exit 1); exit 1; }; }
13284 echo "$f";;
13285 *) # Relative
13286 if test -f "$f"; then
13287 # Build tree
13288 echo "$f"
13289 elif test -f "$srcdir/$f"; then
13290 # Source tree
13291 echo "$srcdir/$f"
13292 else
13293 # /dev/null tree
13294 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13295 echo "$as_me: error: cannot find input file: $f" >&2;}
13296 { (exit 1); exit 1; }; }
13297 fi;;
13298 esac
13299 done` || { (exit 1); exit 1; }
13300 _ACEOF
13301 cat >>$CONFIG_STATUS <<_ACEOF
13302 sed "$ac_vpsub
13303 $extrasub
13304 _ACEOF
13305 cat >>$CONFIG_STATUS <<\_ACEOF
13307 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13308 s,@configure_input@,$configure_input,;t t
13309 s,@srcdir@,$ac_srcdir,;t t
13310 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13311 s,@top_srcdir@,$ac_top_srcdir,;t t
13312 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13313 s,@builddir@,$ac_builddir,;t t
13314 s,@abs_builddir@,$ac_abs_builddir,;t t
13315 s,@top_builddir@,$ac_top_builddir,;t t
13316 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13317 s,@INSTALL@,$ac_INSTALL,;t t
13318 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13319 rm -f $tmp/stdin
13320 if test x"$ac_file" != x-; then
13321 mv $tmp/out $ac_file
13322 else
13323 cat $tmp/out
13324 rm -f $tmp/out
13327 done
13328 _ACEOF
13329 cat >>$CONFIG_STATUS <<\_ACEOF
13332 # CONFIG_HEADER section.
13335 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13336 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13338 # ac_d sets the value in "#define NAME VALUE" lines.
13339 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13340 ac_dB='[ ].*$,\1#\2'
13341 ac_dC=' '
13342 ac_dD=',;t'
13343 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13344 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13345 ac_uB='$,\1#\2define\3'
13346 ac_uC=' '
13347 ac_uD=',;t'
13349 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13350 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13351 case $ac_file in
13352 - | *:- | *:-:* ) # input from stdin
13353 cat >$tmp/stdin
13354 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13355 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13356 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13358 * ) ac_file_in=$ac_file.in ;;
13359 esac
13361 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13362 echo "$as_me: creating $ac_file" >&6;}
13364 # First look for the input files in the build tree, otherwise in the
13365 # src tree.
13366 ac_file_inputs=`IFS=:
13367 for f in $ac_file_in; do
13368 case $f in
13369 -) echo $tmp/stdin ;;
13370 [\\/$]*)
13371 # Absolute (can't be DOS-style, as IFS=:)
13372 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13373 echo "$as_me: error: cannot find input file: $f" >&2;}
13374 { (exit 1); exit 1; }; }
13375 # Do quote $f, to prevent DOS paths from being IFS'd.
13376 echo "$f";;
13377 *) # Relative
13378 if test -f "$f"; then
13379 # Build tree
13380 echo "$f"
13381 elif test -f "$srcdir/$f"; then
13382 # Source tree
13383 echo "$srcdir/$f"
13384 else
13385 # /dev/null tree
13386 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13387 echo "$as_me: error: cannot find input file: $f" >&2;}
13388 { (exit 1); exit 1; }; }
13389 fi;;
13390 esac
13391 done` || { (exit 1); exit 1; }
13392 # Remove the trailing spaces.
13393 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13395 _ACEOF
13397 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13398 # `conftest.undefs', that substitutes the proper values into
13399 # config.h.in to produce config.h. The first handles `#define'
13400 # templates, and the second `#undef' templates.
13401 # And first: Protect against being on the right side of a sed subst in
13402 # config.status. Protect against being in an unquoted here document
13403 # in config.status.
13404 rm -f conftest.defines conftest.undefs
13405 # Using a here document instead of a string reduces the quoting nightmare.
13406 # Putting comments in sed scripts is not portable.
13408 # `end' is used to avoid that the second main sed command (meant for
13409 # 0-ary CPP macros) applies to n-ary macro definitions.
13410 # See the Autoconf documentation for `clear'.
13411 cat >confdef2sed.sed <<\_ACEOF
13412 s/[\\&,]/\\&/g
13413 s,[\\$`],\\&,g
13414 t clear
13415 : clear
13416 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13417 t end
13418 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13419 : end
13420 _ACEOF
13421 # If some macros were called several times there might be several times
13422 # the same #defines, which is useless. Nevertheless, we may not want to
13423 # sort them, since we want the *last* AC-DEFINE to be honored.
13424 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13425 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13426 rm -f confdef2sed.sed
13428 # This sed command replaces #undef with comments. This is necessary, for
13429 # example, in the case of _POSIX_SOURCE, which is predefined and required
13430 # on some systems where configure will not decide to define it.
13431 cat >>conftest.undefs <<\_ACEOF
13432 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13433 _ACEOF
13435 # Break up conftest.defines because some shells have a limit on the size
13436 # of here documents, and old seds have small limits too (100 cmds).
13437 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13438 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13439 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13440 echo ' :' >>$CONFIG_STATUS
13441 rm -f conftest.tail
13442 while grep . conftest.defines >/dev/null
13444 # Write a limited-size here document to $tmp/defines.sed.
13445 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13446 # Speed up: don't consider the non `#define' lines.
13447 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13448 # Work around the forget-to-reset-the-flag bug.
13449 echo 't clr' >>$CONFIG_STATUS
13450 echo ': clr' >>$CONFIG_STATUS
13451 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13452 echo 'CEOF
13453 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13454 rm -f $tmp/in
13455 mv $tmp/out $tmp/in
13456 ' >>$CONFIG_STATUS
13457 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13458 rm -f conftest.defines
13459 mv conftest.tail conftest.defines
13460 done
13461 rm -f conftest.defines
13462 echo ' fi # grep' >>$CONFIG_STATUS
13463 echo >>$CONFIG_STATUS
13465 # Break up conftest.undefs because some shells have a limit on the size
13466 # of here documents, and old seds have small limits too (100 cmds).
13467 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13468 rm -f conftest.tail
13469 while grep . conftest.undefs >/dev/null
13471 # Write a limited-size here document to $tmp/undefs.sed.
13472 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13473 # Speed up: don't consider the non `#undef'
13474 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13475 # Work around the forget-to-reset-the-flag bug.
13476 echo 't clr' >>$CONFIG_STATUS
13477 echo ': clr' >>$CONFIG_STATUS
13478 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13479 echo 'CEOF
13480 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13481 rm -f $tmp/in
13482 mv $tmp/out $tmp/in
13483 ' >>$CONFIG_STATUS
13484 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13485 rm -f conftest.undefs
13486 mv conftest.tail conftest.undefs
13487 done
13488 rm -f conftest.undefs
13490 cat >>$CONFIG_STATUS <<\_ACEOF
13491 # Let's still pretend it is `configure' which instantiates (i.e., don't
13492 # use $as_me), people would be surprised to read:
13493 # /* config.h. Generated by config.status. */
13494 if test x"$ac_file" = x-; then
13495 echo "/* Generated by configure. */" >$tmp/config.h
13496 else
13497 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13499 cat $tmp/in >>$tmp/config.h
13500 rm -f $tmp/in
13501 if test x"$ac_file" != x-; then
13502 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13503 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13504 echo "$as_me: $ac_file is unchanged" >&6;}
13505 else
13506 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13507 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13508 X"$ac_file" : 'X\(//\)[^/]' \| \
13509 X"$ac_file" : 'X\(//\)$' \| \
13510 X"$ac_file" : 'X\(/\)' \| \
13511 . : '\(.\)' 2>/dev/null ||
13512 echo X"$ac_file" |
13513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13515 /^X\(\/\/\)$/{ s//\1/; q; }
13516 /^X\(\/\).*/{ s//\1/; q; }
13517 s/.*/./; q'`
13518 { if $as_mkdir_p; then
13519 mkdir -p "$ac_dir"
13520 else
13521 as_dir="$ac_dir"
13522 as_dirs=
13523 while test ! -d "$as_dir"; do
13524 as_dirs="$as_dir $as_dirs"
13525 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13527 X"$as_dir" : 'X\(//\)[^/]' \| \
13528 X"$as_dir" : 'X\(//\)$' \| \
13529 X"$as_dir" : 'X\(/\)' \| \
13530 . : '\(.\)' 2>/dev/null ||
13531 echo X"$as_dir" |
13532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13533 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13534 /^X\(\/\/\)$/{ s//\1/; q; }
13535 /^X\(\/\).*/{ s//\1/; q; }
13536 s/.*/./; q'`
13537 done
13538 test ! -n "$as_dirs" || mkdir $as_dirs
13539 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13540 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13541 { (exit 1); exit 1; }; }; }
13543 rm -f $ac_file
13544 mv $tmp/config.h $ac_file
13546 else
13547 cat $tmp/config.h
13548 rm -f $tmp/config.h
13550 # Compute $ac_file's index in $config_headers.
13551 _am_stamp_count=1
13552 for _am_header in $config_headers :; do
13553 case $_am_header in
13554 $ac_file | $ac_file:* )
13555 break ;;
13557 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13558 esac
13559 done
13560 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13561 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13562 X$ac_file : 'X\(//\)[^/]' \| \
13563 X$ac_file : 'X\(//\)$' \| \
13564 X$ac_file : 'X\(/\)' \| \
13565 . : '\(.\)' 2>/dev/null ||
13566 echo X$ac_file |
13567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13569 /^X\(\/\/\)$/{ s//\1/; q; }
13570 /^X\(\/\).*/{ s//\1/; q; }
13571 s/.*/./; q'`/stamp-h$_am_stamp_count
13572 done
13573 _ACEOF
13574 cat >>$CONFIG_STATUS <<\_ACEOF
13577 # CONFIG_COMMANDS section.
13579 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13580 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13581 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13582 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13583 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13584 X"$ac_dest" : 'X\(//\)[^/]' \| \
13585 X"$ac_dest" : 'X\(//\)$' \| \
13586 X"$ac_dest" : 'X\(/\)' \| \
13587 . : '\(.\)' 2>/dev/null ||
13588 echo X"$ac_dest" |
13589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13590 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13591 /^X\(\/\/\)$/{ s//\1/; q; }
13592 /^X\(\/\).*/{ s//\1/; q; }
13593 s/.*/./; q'`
13594 { if $as_mkdir_p; then
13595 mkdir -p "$ac_dir"
13596 else
13597 as_dir="$ac_dir"
13598 as_dirs=
13599 while test ! -d "$as_dir"; do
13600 as_dirs="$as_dir $as_dirs"
13601 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13602 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13603 X"$as_dir" : 'X\(//\)[^/]' \| \
13604 X"$as_dir" : 'X\(//\)$' \| \
13605 X"$as_dir" : 'X\(/\)' \| \
13606 . : '\(.\)' 2>/dev/null ||
13607 echo X"$as_dir" |
13608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13609 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13610 /^X\(\/\/\)$/{ s//\1/; q; }
13611 /^X\(\/\).*/{ s//\1/; q; }
13612 s/.*/./; q'`
13613 done
13614 test ! -n "$as_dirs" || mkdir $as_dirs
13615 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13616 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13617 { (exit 1); exit 1; }; }; }
13619 ac_builddir=.
13621 if test "$ac_dir" != .; then
13622 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13623 # A "../" for each directory in $ac_dir_suffix.
13624 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13625 else
13626 ac_dir_suffix= ac_top_builddir=
13629 case $srcdir in
13630 .) # No --srcdir option. We are building in place.
13631 ac_srcdir=.
13632 if test -z "$ac_top_builddir"; then
13633 ac_top_srcdir=.
13634 else
13635 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13636 fi ;;
13637 [\\/]* | ?:[\\/]* ) # Absolute path.
13638 ac_srcdir=$srcdir$ac_dir_suffix;
13639 ac_top_srcdir=$srcdir ;;
13640 *) # Relative path.
13641 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13642 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13643 esac
13645 # Do not use `cd foo && pwd` to compute absolute paths, because
13646 # the directories may not exist.
13647 case `pwd` in
13648 .) ac_abs_builddir="$ac_dir";;
13650 case "$ac_dir" in
13651 .) ac_abs_builddir=`pwd`;;
13652 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13653 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13654 esac;;
13655 esac
13656 case $ac_abs_builddir in
13657 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13659 case ${ac_top_builddir}. in
13660 .) ac_abs_top_builddir=$ac_abs_builddir;;
13661 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13662 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13663 esac;;
13664 esac
13665 case $ac_abs_builddir in
13666 .) ac_abs_srcdir=$ac_srcdir;;
13668 case $ac_srcdir in
13669 .) ac_abs_srcdir=$ac_abs_builddir;;
13670 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13671 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13672 esac;;
13673 esac
13674 case $ac_abs_builddir in
13675 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13677 case $ac_top_srcdir in
13678 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13679 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13680 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13681 esac;;
13682 esac
13685 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13686 echo "$as_me: executing $ac_dest commands" >&6;}
13687 case $ac_dest in
13688 default-1 )
13689 # Only add multilib support code if we just rebuilt the top-level
13690 # Makefile.
13691 case " $CONFIG_FILES " in
13692 *" Makefile "*)
13693 ac_file=Makefile . ${multi_basedir}/config-ml.in
13695 esac ;;
13696 esac
13697 done
13698 _ACEOF
13700 cat >>$CONFIG_STATUS <<\_ACEOF
13702 { (exit 0); exit 0; }
13703 _ACEOF
13704 chmod +x $CONFIG_STATUS
13705 ac_clean_files=$ac_clean_files_save
13708 # configure is writing to config.log, and then calls config.status.
13709 # config.status does its own redirection, appending to config.log.
13710 # Unfortunately, on DOS this fails, as config.log is still kept open
13711 # by configure, so config.status won't be able to write to it; its
13712 # output is simply discarded. So we exec the FD to /dev/null,
13713 # effectively closing config.log, so it can be properly (re)opened and
13714 # appended to by config.status. When coming back to configure, we
13715 # need to make the FD available again.
13716 if test "$no_create" != yes; then
13717 ac_cs_success=:
13718 ac_config_status_args=
13719 test "$silent" = yes &&
13720 ac_config_status_args="$ac_config_status_args --quiet"
13721 exec 5>/dev/null
13722 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13723 exec 5>>config.log
13724 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13725 # would make configure fail if this is the last instruction.
13726 $ac_cs_success || { (exit 1); exit 1; }