2005-01-30 Daniel Berlin <dberlin@dberlin.org>
[official-gcc.git] / libgfortran / configure
blob0a5c3f1344a3e836c761b439e3e837948115caf8
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 gcc_version_trigger gcc_version_full gcc_version toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL enable_shared enable_static FC FCFLAGS LDFLAGS ac_ct_FC CPP CPPFLAGS EGREP MATH_OBJ LIBOBJS LTLIBOBJS'
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
1966 if test "${with_gcc_version_trigger+set}" = set; then
1967 gcc_version_trigger=$with_gcc_version_trigger
1968 else
1969 gcc_version_trigger=$srcdir/../gcc/version.c
1971 if test -f "${gcc_version_trigger}"; then
1972 gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
1973 else
1974 gcc_version_full=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
1976 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
1982 # Calculate toolexeclibdir
1983 # Also toolexecdir, though it's only used in toolexeclibdir
1984 case ${version_specific_libs} in
1985 yes)
1986 # Need the gcc compiler version to know where to install libraries
1987 # and header files if --enable-version-specific-runtime-libs option
1988 # is selected.
1989 toolexecdir='$(libdir)/gcc/$(target_alias)'
1990 toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1993 if test -n "$with_cross_host" &&
1994 test x"$with_cross_host" != x"no"; then
1995 # Install a library built with a cross compiler in tooldir, not libdir.
1996 toolexecdir='$(exec_prefix)/$(target_alias)'
1997 toolexeclibdir='$(toolexecdir)/lib'
1998 else
1999 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2000 toolexeclibdir='$(libdir)'
2002 multi_os_directory=`$CC -print-multi-os-directory`
2003 case $multi_os_directory in
2004 .) ;; # Avoid trailing /.
2005 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2006 esac
2008 esac
2012 # Check the compiler.
2013 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2014 # We must force CC to /not/ be precious variables; otherwise
2015 # the wrong, non-multilib-adjusted value will be used in multilibs.
2016 # As a side effect, we have to subst CFLAGS ourselves.
2020 ac_ext=c
2021 ac_cpp='$CPP $CPPFLAGS'
2022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025 if test -n "$ac_tool_prefix"; then
2026 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2027 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033 if test -n "$CC"; then
2034 ac_cv_prog_CC="$CC" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2047 done
2048 done
2052 CC=$ac_cv_prog_CC
2053 if test -n "$CC"; then
2054 echo "$as_me:$LINENO: result: $CC" >&5
2055 echo "${ECHO_T}$CC" >&6
2056 else
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2062 if test -z "$ac_cv_prog_CC"; then
2063 ac_ct_CC=$CC
2064 # Extract the first word of "gcc", so it can be a program name with args.
2065 set dummy gcc; ac_word=$2
2066 echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 if test -n "$ac_ct_CC"; then
2072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2073 else
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 for as_dir in $PATH
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081 ac_cv_prog_ac_ct_CC="gcc"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 break 2
2085 done
2086 done
2090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2091 if test -n "$ac_ct_CC"; then
2092 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2093 echo "${ECHO_T}$ac_ct_CC" >&6
2094 else
2095 echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6
2099 CC=$ac_ct_CC
2100 else
2101 CC="$ac_cv_prog_CC"
2104 if test -z "$CC"; then
2105 if test -n "$ac_tool_prefix"; then
2106 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2107 set dummy ${ac_tool_prefix}cc; ac_word=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 if test -n "$CC"; then
2114 ac_cv_prog_CC="$CC" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123 ac_cv_prog_CC="${ac_tool_prefix}cc"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 break 2
2127 done
2128 done
2132 CC=$ac_cv_prog_CC
2133 if test -n "$CC"; then
2134 echo "$as_me:$LINENO: result: $CC" >&5
2135 echo "${ECHO_T}$CC" >&6
2136 else
2137 echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2142 if test -z "$ac_cv_prog_CC"; then
2143 ac_ct_CC=$CC
2144 # Extract the first word of "cc", so it can be a program name with args.
2145 set dummy cc; ac_word=$2
2146 echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 if test -n "$ac_ct_CC"; then
2152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2153 else
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH
2157 IFS=$as_save_IFS
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161 ac_cv_prog_ac_ct_CC="cc"
2162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 break 2
2165 done
2166 done
2170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2171 if test -n "$ac_ct_CC"; then
2172 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2173 echo "${ECHO_T}$ac_ct_CC" >&6
2174 else
2175 echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6
2179 CC=$ac_ct_CC
2180 else
2181 CC="$ac_cv_prog_CC"
2185 if test -z "$CC"; then
2186 # Extract the first word of "cc", so it can be a program name with args.
2187 set dummy cc; ac_word=$2
2188 echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190 if test "${ac_cv_prog_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 if test -n "$CC"; then
2194 ac_cv_prog_CC="$CC" # Let the user override the test.
2195 else
2196 ac_prog_rejected=no
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 for as_dir in $PATH
2200 IFS=$as_save_IFS
2201 test -z "$as_dir" && as_dir=.
2202 for ac_exec_ext in '' $ac_executable_extensions; do
2203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2204 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2205 ac_prog_rejected=yes
2206 continue
2208 ac_cv_prog_CC="cc"
2209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210 break 2
2212 done
2213 done
2215 if test $ac_prog_rejected = yes; then
2216 # We found a bogon in the path, so make sure we never use it.
2217 set dummy $ac_cv_prog_CC
2218 shift
2219 if test $# != 0; then
2220 # We chose a different compiler from the bogus one.
2221 # However, it has the same basename, so the bogon will be chosen
2222 # first if we set CC to just the basename; use the full file name.
2223 shift
2224 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2229 CC=$ac_cv_prog_CC
2230 if test -n "$CC"; then
2231 echo "$as_me:$LINENO: result: $CC" >&5
2232 echo "${ECHO_T}$CC" >&6
2233 else
2234 echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6
2239 if test -z "$CC"; then
2240 if test -n "$ac_tool_prefix"; then
2241 for ac_prog in cl
2243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2245 echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2247 if test "${ac_cv_prog_CC+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250 if test -n "$CC"; then
2251 ac_cv_prog_CC="$CC" # Let the user override the test.
2252 else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2256 IFS=$as_save_IFS
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2260 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 break 2
2264 done
2265 done
2269 CC=$ac_cv_prog_CC
2270 if test -n "$CC"; then
2271 echo "$as_me:$LINENO: result: $CC" >&5
2272 echo "${ECHO_T}$CC" >&6
2273 else
2274 echo "$as_me:$LINENO: result: no" >&5
2275 echo "${ECHO_T}no" >&6
2278 test -n "$CC" && break
2279 done
2281 if test -z "$CC"; then
2282 ac_ct_CC=$CC
2283 for ac_prog in cl
2285 # Extract the first word of "$ac_prog", so it can be a program name with args.
2286 set dummy $ac_prog; ac_word=$2
2287 echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2289 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292 if test -n "$ac_ct_CC"; then
2293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2294 else
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2302 ac_cv_prog_ac_ct_CC="$ac_prog"
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 break 2
2306 done
2307 done
2311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2312 if test -n "$ac_ct_CC"; then
2313 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2314 echo "${ECHO_T}$ac_ct_CC" >&6
2315 else
2316 echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6
2320 test -n "$ac_ct_CC" && break
2321 done
2323 CC=$ac_ct_CC
2329 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: no acceptable C compiler found in \$PATH
2332 See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2335 # Provide some information about the compiler.
2336 echo "$as_me:$LINENO:" \
2337 "checking for C compiler version" >&5
2338 ac_compiler=`set X $ac_compile; echo $2`
2339 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2340 (eval $ac_compiler --version </dev/null >&5) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }
2344 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2345 (eval $ac_compiler -v </dev/null >&5) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
2349 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2350 (eval $ac_compiler -V </dev/null >&5) 2>&5
2351 ac_status=$?
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }
2355 cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h. */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2363 main ()
2367 return 0;
2369 _ACEOF
2370 # FIXME: Cleanup?
2371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2372 (eval $ac_link) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; then
2376 gcc_no_link=no
2377 else
2378 gcc_no_link=yes
2381 if test x$gcc_no_link = xyes; then
2382 # Setting cross_compile will disable run tests; it will
2383 # also disable AC_CHECK_FILE but that's generally
2384 # correct if we can't link.
2385 cross_compiling=yes
2386 EXEEXT=
2387 else
2388 cat >conftest.$ac_ext <<_ACEOF
2389 /* confdefs.h. */
2390 _ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h. */
2396 main ()
2400 return 0;
2402 _ACEOF
2403 ac_clean_files_save=$ac_clean_files
2404 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2405 # Try to create an executable without -o first, disregard a.out.
2406 # It will help us diagnose broken compilers, and finding out an intuition
2407 # of exeext.
2408 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2409 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2410 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2411 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2412 (eval $ac_link_default) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; then
2416 # Find the output, starting from the most likely. This scheme is
2417 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2418 # resort.
2420 # Be careful to initialize this variable, since it used to be cached.
2421 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2422 ac_cv_exeext=
2423 # b.out is created by i960 compilers.
2424 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2426 test -f "$ac_file" || continue
2427 case $ac_file in
2428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2430 conftest.$ac_ext )
2431 # This is the source file.
2433 [ab].out )
2434 # We found the default executable, but exeext='' is most
2435 # certainly right.
2436 break;;
2437 *.* )
2438 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2439 # FIXME: I believe we export ac_cv_exeext for Libtool,
2440 # but it would be cool to find out if it's true. Does anybody
2441 # maintain Libtool? --akim.
2442 export ac_cv_exeext
2443 break;;
2445 break;;
2446 esac
2447 done
2448 else
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2452 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2453 See \`config.log' for more details." >&5
2454 echo "$as_me: error: C compiler cannot create executables
2455 See \`config.log' for more details." >&2;}
2456 { (exit 77); exit 77; }; }
2459 ac_exeext=$ac_cv_exeext
2460 echo "$as_me:$LINENO: result: $ac_file" >&5
2461 echo "${ECHO_T}$ac_file" >&6
2463 # Check the compiler produces executables we can run. If not, either
2464 # the compiler is broken, or we cross compile.
2465 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2466 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2467 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2468 # If not cross compiling, check that we can run a simple program.
2469 if test "$cross_compiling" != yes; then
2470 if { ac_try='./$ac_file'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 (eval $ac_try) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 cross_compiling=no
2477 else
2478 if test "$cross_compiling" = maybe; then
2479 cross_compiling=yes
2480 else
2481 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2482 If you meant to cross compile, use \`--host'.
2483 See \`config.log' for more details." >&5
2484 echo "$as_me: error: cannot run C compiled programs.
2485 If you meant to cross compile, use \`--host'.
2486 See \`config.log' for more details." >&2;}
2487 { (exit 1); exit 1; }; }
2491 echo "$as_me:$LINENO: result: yes" >&5
2492 echo "${ECHO_T}yes" >&6
2494 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2495 ac_clean_files=$ac_clean_files_save
2496 # Check the compiler produces executables we can run. If not, either
2497 # the compiler is broken, or we cross compile.
2498 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2499 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2500 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2501 echo "${ECHO_T}$cross_compiling" >&6
2503 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2504 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2506 (eval $ac_link) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; then
2510 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2511 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2512 # work properly (i.e., refer to `conftest.exe'), while it won't with
2513 # `rm'.
2514 for ac_file in conftest.exe conftest conftest.*; do
2515 test -f "$ac_file" || continue
2516 case $ac_file in
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2518 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2519 export ac_cv_exeext
2520 break;;
2521 * ) break;;
2522 esac
2523 done
2524 else
2525 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2528 See \`config.log' for more details." >&2;}
2529 { (exit 1); exit 1; }; }
2532 rm -f conftest$ac_cv_exeext
2533 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2534 echo "${ECHO_T}$ac_cv_exeext" >&6
2536 rm -f conftest.$ac_ext
2537 EXEEXT=$ac_cv_exeext
2538 ac_exeext=$EXEEXT
2540 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2541 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2542 if test "${ac_cv_objext+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545 cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h. */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2553 main ()
2557 return 0;
2559 _ACEOF
2560 rm -f conftest.o conftest.obj
2561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562 (eval $ac_compile) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; then
2566 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2567 case $ac_file in
2568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2569 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2570 break;;
2571 esac
2572 done
2573 else
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2577 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2578 See \`config.log' for more details." >&5
2579 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2580 See \`config.log' for more details." >&2;}
2581 { (exit 1); exit 1; }; }
2584 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2586 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2587 echo "${ECHO_T}$ac_cv_objext" >&6
2588 OBJEXT=$ac_cv_objext
2589 ac_objext=$OBJEXT
2590 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2591 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2592 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595 cat >conftest.$ac_ext <<_ACEOF
2596 /* confdefs.h. */
2597 _ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2603 main ()
2605 #ifndef __GNUC__
2606 choke me
2607 #endif
2610 return 0;
2612 _ACEOF
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>conftest.er1
2616 ac_status=$?
2617 grep -v '^ *+' conftest.er1 >conftest.err
2618 rm -f conftest.er1
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag"
2623 || test ! -s conftest.err'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; } &&
2629 { ac_try='test -s conftest.$ac_objext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2635 ac_compiler_gnu=yes
2636 else
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2640 ac_compiler_gnu=no
2642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2646 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2647 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2648 GCC=`test $ac_compiler_gnu = yes && echo yes`
2649 ac_test_CFLAGS=${CFLAGS+set}
2650 ac_save_CFLAGS=$CFLAGS
2651 CFLAGS="-g"
2652 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2653 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2654 if test "${ac_cv_prog_cc_g+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 else
2657 cat >conftest.$ac_ext <<_ACEOF
2658 /* confdefs.h. */
2659 _ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2665 main ()
2669 return 0;
2671 _ACEOF
2672 rm -f conftest.$ac_objext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>conftest.er1
2675 ac_status=$?
2676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest.$ac_objext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_cv_prog_cc_g=yes
2695 else
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2699 ac_cv_prog_cc_g=no
2701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2703 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2704 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2705 if test "$ac_test_CFLAGS" = set; then
2706 CFLAGS=$ac_save_CFLAGS
2707 elif test $ac_cv_prog_cc_g = yes; then
2708 if test "$GCC" = yes; then
2709 CFLAGS="-g -O2"
2710 else
2711 CFLAGS="-g"
2713 else
2714 if test "$GCC" = yes; then
2715 CFLAGS="-O2"
2716 else
2717 CFLAGS=
2720 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2721 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2722 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725 ac_cv_prog_cc_stdc=no
2726 ac_save_CC=$CC
2727 cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h. */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2733 #include <stdarg.h>
2734 #include <stdio.h>
2735 #include <sys/types.h>
2736 #include <sys/stat.h>
2737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2738 struct buf { int x; };
2739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2740 static char *e (p, i)
2741 char **p;
2742 int i;
2744 return p[i];
2746 static char *f (char * (*g) (char **, int), char **p, ...)
2748 char *s;
2749 va_list v;
2750 va_start (v,p);
2751 s = g (p, va_arg (v,int));
2752 va_end (v);
2753 return s;
2756 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2757 function prototypes and stuff, but not '\xHH' hex character constants.
2758 These don't provoke an error unfortunately, instead are silently treated
2759 as 'x'. The following induces an error, until -std1 is added to get
2760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2761 array size at least. It's necessary to write '\x00'==0 to get something
2762 that's true only with -std1. */
2763 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2765 int test (int i, double x);
2766 struct s1 {int (*f) (int a);};
2767 struct s2 {int (*f) (double a);};
2768 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2769 int argc;
2770 char **argv;
2772 main ()
2774 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2776 return 0;
2778 _ACEOF
2779 # Don't try gcc -ansi; that turns off useful extensions and
2780 # breaks some systems' header files.
2781 # AIX -qlanglvl=ansi
2782 # Ultrix and OSF/1 -std1
2783 # HP-UX 10.20 and later -Ae
2784 # HP-UX older versions -Aa -D_HPUX_SOURCE
2785 # SVR4 -Xc -D__EXTENSIONS__
2786 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2788 CC="$ac_save_CC $ac_arg"
2789 rm -f conftest.$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791 (eval $ac_compile) 2>conftest.er1
2792 ac_status=$?
2793 grep -v '^ *+' conftest.er1 >conftest.err
2794 rm -f conftest.er1
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
2798 { ac_try='test -z "$ac_c_werror_flag"
2799 || test ! -s conftest.err'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 (eval $ac_try) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 (eval $ac_try) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2811 ac_cv_prog_cc_stdc=$ac_arg
2812 break
2813 else
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2818 rm -f conftest.err conftest.$ac_objext
2819 done
2820 rm -f conftest.$ac_ext conftest.$ac_objext
2821 CC=$ac_save_CC
2825 case "x$ac_cv_prog_cc_stdc" in
2826 x|xno)
2827 echo "$as_me:$LINENO: result: none needed" >&5
2828 echo "${ECHO_T}none needed" >&6 ;;
2830 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2831 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2832 CC="$CC $ac_cv_prog_cc_stdc" ;;
2833 esac
2835 # Some people use a C++ compiler to compile C. Since we use `exit',
2836 # in C++ we need to declare it. In case someone uses the same compiler
2837 # for both compiling C and C++ we need to have the C++ compiler decide
2838 # the declaration of exit, since it's the most demanding environment.
2839 cat >conftest.$ac_ext <<_ACEOF
2840 #ifndef __cplusplus
2841 choke me
2842 #endif
2843 _ACEOF
2844 rm -f conftest.$ac_objext
2845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2846 (eval $ac_compile) 2>conftest.er1
2847 ac_status=$?
2848 grep -v '^ *+' conftest.er1 >conftest.err
2849 rm -f conftest.er1
2850 cat conftest.err >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
2853 { ac_try='test -z "$ac_c_werror_flag"
2854 || test ! -s conftest.err'
2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 (eval $ac_try) 2>&5
2857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; } &&
2860 { ac_try='test -s conftest.$ac_objext'
2861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 (eval $ac_try) 2>&5
2863 ac_status=$?
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2866 for ac_declaration in \
2867 '' \
2868 'extern "C" void std::exit (int) throw (); using std::exit;' \
2869 'extern "C" void std::exit (int); using std::exit;' \
2870 'extern "C" void exit (int) throw ();' \
2871 'extern "C" void exit (int);' \
2872 'void exit (int);'
2874 cat >conftest.$ac_ext <<_ACEOF
2875 /* confdefs.h. */
2876 _ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2880 $ac_declaration
2881 #include <stdlib.h>
2883 main ()
2885 exit (42);
2887 return 0;
2889 _ACEOF
2890 rm -f conftest.$ac_objext
2891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try='test -z "$ac_c_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2913 else
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 continue
2919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2920 cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h. */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2926 $ac_declaration
2928 main ()
2930 exit (42);
2932 return 0;
2934 _ACEOF
2935 rm -f conftest.$ac_objext
2936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2937 (eval $ac_compile) 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_c_werror_flag"
2945 || test ! -s conftest.err'
2946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 (eval $ac_try) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 (eval $ac_try) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; }; then
2957 break
2958 else
2959 echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2964 done
2965 rm -f conftest*
2966 if test -n "$ac_declaration"; then
2967 echo '#ifdef __cplusplus' >>confdefs.h
2968 echo $ac_declaration >>confdefs.h
2969 echo '#endif' >>confdefs.h
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_ext=c
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988 # Add -Wall if we are using GCC.
2989 if test "x$GCC" = "xyes"; then
2990 CFLAGS="$CFLAGS -Wall"
2993 # Find other programs we need.
2994 if test -n "$ac_tool_prefix"; then
2995 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2996 set dummy ${ac_tool_prefix}as; ac_word=$2
2997 echo "$as_me:$LINENO: checking for $ac_word" >&5
2998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2999 if test "${ac_cv_prog_AS+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002 if test -n "$AS"; then
3003 ac_cv_prog_AS="$AS" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_AS="${ac_tool_prefix}as"
3013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3016 done
3017 done
3021 AS=$ac_cv_prog_AS
3022 if test -n "$AS"; then
3023 echo "$as_me:$LINENO: result: $AS" >&5
3024 echo "${ECHO_T}$AS" >&6
3025 else
3026 echo "$as_me:$LINENO: result: no" >&5
3027 echo "${ECHO_T}no" >&6
3031 if test -z "$ac_cv_prog_AS"; then
3032 ac_ct_AS=$AS
3033 # Extract the first word of "as", so it can be a program name with args.
3034 set dummy as; ac_word=$2
3035 echo "$as_me:$LINENO: checking for $ac_word" >&5
3036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3037 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 else
3040 if test -n "$ac_ct_AS"; then
3041 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050 ac_cv_prog_ac_ct_AS="as"
3051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 break 2
3054 done
3055 done
3059 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3060 if test -n "$ac_ct_AS"; then
3061 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3062 echo "${ECHO_T}$ac_ct_AS" >&6
3063 else
3064 echo "$as_me:$LINENO: result: no" >&5
3065 echo "${ECHO_T}no" >&6
3068 AS=$ac_ct_AS
3069 else
3070 AS="$ac_cv_prog_AS"
3073 if test -n "$ac_tool_prefix"; then
3074 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3075 set dummy ${ac_tool_prefix}ar; ac_word=$2
3076 echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078 if test "${ac_cv_prog_AR+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081 if test -n "$AR"; then
3082 ac_cv_prog_AR="$AR" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_AR="${ac_tool_prefix}ar"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3095 done
3096 done
3100 AR=$ac_cv_prog_AR
3101 if test -n "$AR"; then
3102 echo "$as_me:$LINENO: result: $AR" >&5
3103 echo "${ECHO_T}$AR" >&6
3104 else
3105 echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6
3110 if test -z "$ac_cv_prog_AR"; then
3111 ac_ct_AR=$AR
3112 # Extract the first word of "ar", so it can be a program name with args.
3113 set dummy ar; ac_word=$2
3114 echo "$as_me:$LINENO: checking for $ac_word" >&5
3115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3116 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119 if test -n "$ac_ct_AR"; then
3120 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129 ac_cv_prog_ac_ct_AR="ar"
3130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 break 2
3133 done
3134 done
3138 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3139 if test -n "$ac_ct_AR"; then
3140 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3141 echo "${ECHO_T}$ac_ct_AR" >&6
3142 else
3143 echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6
3147 AR=$ac_ct_AR
3148 else
3149 AR="$ac_cv_prog_AR"
3152 if test -n "$ac_tool_prefix"; then
3153 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3154 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3155 echo "$as_me:$LINENO: checking for $ac_word" >&5
3156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3157 if test "${ac_cv_prog_RANLIB+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160 if test -n "$RANLIB"; then
3161 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3162 else
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3166 IFS=$as_save_IFS
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3170 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 break 2
3174 done
3175 done
3179 RANLIB=$ac_cv_prog_RANLIB
3180 if test -n "$RANLIB"; then
3181 echo "$as_me:$LINENO: result: $RANLIB" >&5
3182 echo "${ECHO_T}$RANLIB" >&6
3183 else
3184 echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6
3189 if test -z "$ac_cv_prog_RANLIB"; then
3190 ac_ct_RANLIB=$RANLIB
3191 # Extract the first word of "ranlib", so it can be a program name with args.
3192 set dummy ranlib; ac_word=$2
3193 echo "$as_me:$LINENO: checking for $ac_word" >&5
3194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3195 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198 if test -n "$ac_ct_RANLIB"; then
3199 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3200 else
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH
3204 IFS=$as_save_IFS
3205 test -z "$as_dir" && as_dir=.
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3208 ac_cv_prog_ac_ct_RANLIB="ranlib"
3209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 break 2
3212 done
3213 done
3215 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3218 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3219 if test -n "$ac_ct_RANLIB"; then
3220 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3221 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3222 else
3223 echo "$as_me:$LINENO: result: no" >&5
3224 echo "${ECHO_T}no" >&6
3227 RANLIB=$ac_ct_RANLIB
3228 else
3229 RANLIB="$ac_cv_prog_RANLIB"
3232 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3233 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3234 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3235 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238 cat >conftest.make <<\_ACEOF
3239 all:
3240 @echo 'ac_maketemp="$(MAKE)"'
3241 _ACEOF
3242 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3243 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3244 if test -n "$ac_maketemp"; then
3245 eval ac_cv_prog_make_${ac_make}_set=yes
3246 else
3247 eval ac_cv_prog_make_${ac_make}_set=no
3249 rm -f conftest.make
3251 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3252 echo "$as_me:$LINENO: result: yes" >&5
3253 echo "${ECHO_T}yes" >&6
3254 SET_MAKE=
3255 else
3256 echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6
3258 SET_MAKE="MAKE=${MAKE-make}"
3261 # Find a good install program. We prefer a C program (faster),
3262 # so one script is as good as another. But avoid the broken or
3263 # incompatible versions:
3264 # SysV /etc/install, /usr/sbin/install
3265 # SunOS /usr/etc/install
3266 # IRIX /sbin/install
3267 # AIX /bin/install
3268 # AmigaOS /C/install, which installs bootblocks on floppy discs
3269 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3272 # OS/2's system install, which has a completely different semantic
3273 # ./install, which can be erroneously created by make from ./install.sh.
3274 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3275 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3276 if test -z "$INSTALL"; then
3277 if test "${ac_cv_path_install+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 # Account for people who put trailing slashes in PATH elements.
3286 case $as_dir/ in
3287 ./ | .// | /cC/* | \
3288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3289 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3290 /usr/ucb/* ) ;;
3292 # OSF1 and SCO ODT 3.0 have their own names for install.
3293 # Don't use installbsd from OSF since it installs stuff as root
3294 # by default.
3295 for ac_prog in ginstall scoinst install; do
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3298 if test $ac_prog = install &&
3299 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3300 # AIX install. It has an incompatible calling convention.
3302 elif test $ac_prog = install &&
3303 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3304 # program-specific install script used by HP pwplus--don't use.
3306 else
3307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3308 break 3
3311 done
3312 done
3314 esac
3315 done
3319 if test "${ac_cv_path_install+set}" = set; then
3320 INSTALL=$ac_cv_path_install
3321 else
3322 # As a last resort, use the slow shell script. We don't cache a
3323 # path for INSTALL within a source directory, because that will
3324 # break other packages using the cache if that directory is
3325 # removed, or if the path is relative.
3326 INSTALL=$ac_install_sh
3329 echo "$as_me:$LINENO: result: $INSTALL" >&5
3330 echo "${ECHO_T}$INSTALL" >&6
3332 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3333 # It thinks the first close brace ends the variable substitution.
3334 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3336 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3338 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3341 # Configure libtool
3342 #AC_MSG_NOTICE([====== Starting libtool configuration])
3344 # Check whether --enable-shared or --disable-shared was given.
3345 if test "${enable_shared+set}" = set; then
3346 enableval="$enable_shared"
3347 p=${PACKAGE-default}
3348 case $enableval in
3349 yes) enable_shared=yes ;;
3350 no) enable_shared=no ;;
3352 enable_shared=no
3353 # Look at the argument we got. We use all the common list separators.
3354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3355 for pkg in $enableval; do
3356 if test "X$pkg" = "X$p"; then
3357 enable_shared=yes
3359 done
3360 IFS="$ac_save_ifs"
3362 esac
3363 else
3364 enable_shared=yes
3366 # Check whether --enable-static or --disable-static was given.
3367 if test "${enable_static+set}" = set; then
3368 enableval="$enable_static"
3369 p=${PACKAGE-default}
3370 case $enableval in
3371 yes) enable_static=yes ;;
3372 no) enable_static=no ;;
3374 enable_static=no
3375 # Look at the argument we got. We use all the common list separators.
3376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3377 for pkg in $enableval; do
3378 if test "X$pkg" = "X$p"; then
3379 enable_static=yes
3381 done
3382 IFS="$ac_save_ifs"
3384 esac
3385 else
3386 enable_static=yes
3388 # Check whether --enable-fast-install or --disable-fast-install was given.
3389 if test "${enable_fast_install+set}" = set; then
3390 enableval="$enable_fast_install"
3391 p=${PACKAGE-default}
3392 case $enableval in
3393 yes) enable_fast_install=yes ;;
3394 no) enable_fast_install=no ;;
3396 enable_fast_install=no
3397 # Look at the argument we got. We use all the common list separators.
3398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3399 for pkg in $enableval; do
3400 if test "X$pkg" = "X$p"; then
3401 enable_fast_install=yes
3403 done
3404 IFS="$ac_save_ifs"
3406 esac
3407 else
3408 enable_fast_install=yes
3411 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3412 if test "${with_gnu_ld+set}" = set; then
3413 withval="$with_gnu_ld"
3414 test "$withval" = no || with_gnu_ld=yes
3415 else
3416 with_gnu_ld=no
3418 ac_prog=ld
3419 if test "$GCC" = yes; then
3420 # Check if gcc -print-prog-name=ld gives a path.
3421 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3422 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3423 case $host in
3424 *-*-mingw*)
3425 # gcc leaves a trailing carriage return which upsets mingw
3426 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3428 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3429 esac
3430 case $ac_prog in
3431 # Accept absolute paths.
3432 [\\/]* | [A-Za-z]:[\\/]*)
3433 re_direlt='/[^/][^/]*/\.\./'
3434 # Canonicalize the path of ld
3435 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3436 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3437 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3438 done
3439 test -z "$LD" && LD="$ac_prog"
3442 # If it fails, then pretend we aren't using GCC.
3443 ac_prog=ld
3446 # If it is relative, then search for the first ld in PATH.
3447 with_gnu_ld=unknown
3449 esac
3450 elif test "$with_gnu_ld" = yes; then
3451 echo "$as_me:$LINENO: checking for GNU ld" >&5
3452 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3453 else
3454 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3455 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3457 if test "${lt_cv_path_LD+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460 if test -z "$LD"; then
3461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3462 for ac_dir in $PATH; do
3463 test -z "$ac_dir" && ac_dir=.
3464 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3465 lt_cv_path_LD="$ac_dir/$ac_prog"
3466 # Check to see if the program is GNU ld. I'd rather use --version,
3467 # but apparently some GNU ld's only accept -v.
3468 # Break only if it was the GNU/non-GNU ld that we prefer.
3469 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3470 test "$with_gnu_ld" != no && break
3471 else
3472 test "$with_gnu_ld" != yes && break
3475 done
3476 IFS="$ac_save_ifs"
3477 else
3478 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3482 LD="$lt_cv_path_LD"
3483 if test -n "$LD"; then
3484 echo "$as_me:$LINENO: result: $LD" >&5
3485 echo "${ECHO_T}$LD" >&6
3486 else
3487 echo "$as_me:$LINENO: result: no" >&5
3488 echo "${ECHO_T}no" >&6
3490 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3491 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3492 { (exit 1); exit 1; }; }
3493 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3494 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3495 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3499 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3500 lt_cv_prog_gnu_ld=yes
3501 else
3502 lt_cv_prog_gnu_ld=no
3505 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3506 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3507 with_gnu_ld=$lt_cv_prog_gnu_ld
3510 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3511 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3512 if test "${lt_cv_ld_reload_flag+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515 lt_cv_ld_reload_flag='-r'
3517 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3518 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3519 reload_flag=$lt_cv_ld_reload_flag
3520 test -n "$reload_flag" && reload_flag=" $reload_flag"
3522 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3523 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3524 if test "${lt_cv_path_NM+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527 if test -n "$NM"; then
3528 # Let the user override the test.
3529 lt_cv_path_NM="$NM"
3530 else
3531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3532 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3533 test -z "$ac_dir" && ac_dir=.
3534 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3535 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3536 # Check to see if the nm accepts a BSD-compat flag.
3537 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3538 # nm: unknown option "B" ignored
3539 # Tru64's nm complains that /dev/null is an invalid object file
3540 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3541 lt_cv_path_NM="$tmp_nm -B"
3542 break
3543 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3544 lt_cv_path_NM="$tmp_nm -p"
3545 break
3546 else
3547 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3548 continue # so that we can try to find one that supports BSD flags
3551 done
3552 IFS="$ac_save_ifs"
3553 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3557 NM="$lt_cv_path_NM"
3558 echo "$as_me:$LINENO: result: $NM" >&5
3559 echo "${ECHO_T}$NM" >&6
3561 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3562 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3563 LN_S=$as_ln_s
3564 if test "$LN_S" = "ln -s"; then
3565 echo "$as_me:$LINENO: result: yes" >&5
3566 echo "${ECHO_T}yes" >&6
3567 else
3568 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3569 echo "${ECHO_T}no, using $LN_S" >&6
3572 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3573 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3574 if test "${lt_cv_deplibs_check_method+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577 lt_cv_file_magic_cmd='$MAGIC_CMD'
3578 lt_cv_file_magic_test_file=
3579 lt_cv_deplibs_check_method='unknown'
3580 # Need to set the preceding variable on all platforms that support
3581 # interlibrary dependencies.
3582 # 'none' -- dependencies not supported.
3583 # `unknown' -- same as none, but documents that we really don't know.
3584 # 'pass_all' -- all dependencies passed with no checks.
3585 # 'test_compile' -- check by making test program.
3586 # 'file_magic [regex]' -- check by looking for files in library path
3587 # which responds to the $file_magic_cmd with a given egrep regex.
3588 # If you have `file' or equivalent on your system and you're not sure
3589 # whether `pass_all' will *always* work, you probably want this one.
3591 case $host_os in
3592 aix*)
3593 lt_cv_deplibs_check_method=pass_all
3596 beos*)
3597 lt_cv_deplibs_check_method=pass_all
3600 bsdi4*)
3601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3602 lt_cv_file_magic_cmd='/usr/bin/file -L'
3603 lt_cv_file_magic_test_file=/shlib/libc.so
3606 cygwin* | mingw* |pw32*)
3607 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3608 lt_cv_file_magic_cmd='$OBJDUMP -f'
3611 darwin* | rhapsody*)
3612 # this will be overwritten by pass_all, but leave it in just in case
3613 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3614 lt_cv_file_magic_cmd='/usr/bin/file -L'
3615 case "$host_os" in
3616 rhapsody* | darwin1.012)
3617 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3619 *) # Darwin 1.3 on
3620 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3622 esac
3623 lt_cv_deplibs_check_method=pass_all
3626 freebsd* | kfreebsd*-gnu)
3627 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3628 case $host_cpu in
3629 i*86 )
3630 # Not sure whether the presence of OpenBSD here was a mistake.
3631 # Let's accept both of them until this is cleared up.
3632 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3633 lt_cv_file_magic_cmd=/usr/bin/file
3634 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3636 esac
3637 else
3638 lt_cv_deplibs_check_method=pass_all
3642 gnu*)
3643 lt_cv_deplibs_check_method=pass_all
3646 hpux10.20*|hpux11*)
3647 case $host_cpu in
3648 hppa*)
3649 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3650 lt_cv_file_magic_cmd=/usr/bin/file
3651 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3653 ia64*)
3654 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3655 lt_cv_file_magic_cmd=/usr/bin/file
3656 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3658 esac
3661 irix5* | irix6*)
3662 case $host_os in
3663 irix5*)
3664 # this will be overridden with pass_all, but let us keep it just in case
3665 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3668 case $LD in
3669 *-32|*"-32 ") libmagic=32-bit;;
3670 *-n32|*"-n32 ") libmagic=N32;;
3671 *-64|*"-64 ") libmagic=64-bit;;
3672 *) libmagic=never-match;;
3673 esac
3674 # this will be overridden with pass_all, but let us keep it just in case
3675 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3677 esac
3678 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3679 lt_cv_deplibs_check_method=pass_all
3682 # This must be Linux ELF.
3683 linux-gnu*)
3684 lt_cv_deplibs_check_method=pass_all
3687 netbsd* | knetbsd*-gnu)
3688 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3689 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3690 else
3691 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3695 newsos6)
3696 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3697 lt_cv_file_magic_cmd=/usr/bin/file
3698 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3701 osf3* | osf4* | osf5*)
3702 # this will be overridden with pass_all, but let us keep it just in case
3703 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3704 lt_cv_file_magic_test_file=/shlib/libc.so
3705 lt_cv_deplibs_check_method=pass_all
3708 sco3.2v5*)
3709 lt_cv_deplibs_check_method=pass_all
3712 solaris*)
3713 lt_cv_deplibs_check_method=pass_all
3714 lt_cv_file_magic_test_file=/lib/libc.so
3717 sysv5uw[78]* | sysv4*uw2*)
3718 lt_cv_deplibs_check_method=pass_all
3721 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3722 case $host_vendor in
3723 ncr)
3724 lt_cv_deplibs_check_method=pass_all
3726 motorola)
3727 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]'
3728 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3730 esac
3732 esac
3735 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3736 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3737 file_magic_cmd=$lt_cv_file_magic_cmd
3738 deplibs_check_method=$lt_cv_deplibs_check_method
3744 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3746 # Only perform the check for file, if the check method requires it
3747 case $deplibs_check_method in
3748 file_magic*)
3749 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3750 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3751 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3752 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755 case $MAGIC_CMD in
3757 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3759 ?:/*)
3760 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3763 ac_save_MAGIC_CMD="$MAGIC_CMD"
3764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3765 ac_dummy="/usr/bin:$PATH"
3766 for ac_dir in $ac_dummy; do
3767 test -z "$ac_dir" && ac_dir=.
3768 if test -f $ac_dir/${ac_tool_prefix}file; then
3769 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3770 if test -n "$file_magic_test_file"; then
3771 case $deplibs_check_method in
3772 "file_magic "*)
3773 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3774 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3775 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3776 egrep "$file_magic_regex" > /dev/null; then
3778 else
3779 cat <<EOF 1>&2
3781 *** Warning: the command libtool uses to detect shared libraries,
3782 *** $file_magic_cmd, produces output that libtool cannot recognize.
3783 *** The result is that libtool may fail to recognize shared libraries
3784 *** as such. This will affect the creation of libtool libraries that
3785 *** depend on shared libraries, but programs linked with such libtool
3786 *** libraries will work regardless of this problem. Nevertheless, you
3787 *** may want to report the problem to your system manager and/or to
3788 *** bug-libtool@gnu.org
3791 fi ;;
3792 esac
3794 break
3796 done
3797 IFS="$ac_save_ifs"
3798 MAGIC_CMD="$ac_save_MAGIC_CMD"
3800 esac
3803 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3804 if test -n "$MAGIC_CMD"; then
3805 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3806 echo "${ECHO_T}$MAGIC_CMD" >&6
3807 else
3808 echo "$as_me:$LINENO: result: no" >&5
3809 echo "${ECHO_T}no" >&6
3812 if test -z "$lt_cv_path_MAGIC_CMD"; then
3813 if test -n "$ac_tool_prefix"; then
3814 echo "$as_me:$LINENO: checking for file" >&5
3815 echo $ECHO_N "checking for file... $ECHO_C" >&6
3816 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 case $MAGIC_CMD in
3821 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3823 ?:/*)
3824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3827 ac_save_MAGIC_CMD="$MAGIC_CMD"
3828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3829 ac_dummy="/usr/bin:$PATH"
3830 for ac_dir in $ac_dummy; do
3831 test -z "$ac_dir" && ac_dir=.
3832 if test -f $ac_dir/file; then
3833 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3834 if test -n "$file_magic_test_file"; then
3835 case $deplibs_check_method in
3836 "file_magic "*)
3837 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3839 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3840 egrep "$file_magic_regex" > /dev/null; then
3842 else
3843 cat <<EOF 1>&2
3845 *** Warning: the command libtool uses to detect shared libraries,
3846 *** $file_magic_cmd, produces output that libtool cannot recognize.
3847 *** The result is that libtool may fail to recognize shared libraries
3848 *** as such. This will affect the creation of libtool libraries that
3849 *** depend on shared libraries, but programs linked with such libtool
3850 *** libraries will work regardless of this problem. Nevertheless, you
3851 *** may want to report the problem to your system manager and/or to
3852 *** bug-libtool@gnu.org
3855 fi ;;
3856 esac
3858 break
3860 done
3861 IFS="$ac_save_ifs"
3862 MAGIC_CMD="$ac_save_MAGIC_CMD"
3864 esac
3867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3868 if test -n "$MAGIC_CMD"; then
3869 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3870 echo "${ECHO_T}$MAGIC_CMD" >&6
3871 else
3872 echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3876 else
3877 MAGIC_CMD=:
3883 esac
3885 if test -n "$ac_tool_prefix"; then
3886 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3887 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3888 echo "$as_me:$LINENO: checking for $ac_word" >&5
3889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3890 if test "${ac_cv_prog_RANLIB+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893 if test -n "$RANLIB"; then
3894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3895 else
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH
3899 IFS=$as_save_IFS
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3903 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 break 2
3907 done
3908 done
3912 RANLIB=$ac_cv_prog_RANLIB
3913 if test -n "$RANLIB"; then
3914 echo "$as_me:$LINENO: result: $RANLIB" >&5
3915 echo "${ECHO_T}$RANLIB" >&6
3916 else
3917 echo "$as_me:$LINENO: result: no" >&5
3918 echo "${ECHO_T}no" >&6
3922 if test -z "$ac_cv_prog_RANLIB"; then
3923 ac_ct_RANLIB=$RANLIB
3924 # Extract the first word of "ranlib", so it can be a program name with args.
3925 set dummy ranlib; ac_word=$2
3926 echo "$as_me:$LINENO: checking for $ac_word" >&5
3927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3928 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931 if test -n "$ac_ct_RANLIB"; then
3932 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3933 else
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3941 ac_cv_prog_ac_ct_RANLIB="ranlib"
3942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3945 done
3946 done
3948 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3951 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3952 if test -n "$ac_ct_RANLIB"; then
3953 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3954 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3955 else
3956 echo "$as_me:$LINENO: result: no" >&5
3957 echo "${ECHO_T}no" >&6
3960 RANLIB=$ac_ct_RANLIB
3961 else
3962 RANLIB="$ac_cv_prog_RANLIB"
3965 if test -n "$ac_tool_prefix"; then
3966 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3967 set dummy ${ac_tool_prefix}strip; ac_word=$2
3968 echo "$as_me:$LINENO: checking for $ac_word" >&5
3969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3970 if test "${ac_cv_prog_STRIP+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973 if test -n "$STRIP"; then
3974 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3975 else
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 for as_dir in $PATH
3979 IFS=$as_save_IFS
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3983 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 break 2
3987 done
3988 done
3992 STRIP=$ac_cv_prog_STRIP
3993 if test -n "$STRIP"; then
3994 echo "$as_me:$LINENO: result: $STRIP" >&5
3995 echo "${ECHO_T}$STRIP" >&6
3996 else
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4002 if test -z "$ac_cv_prog_STRIP"; then
4003 ac_ct_STRIP=$STRIP
4004 # Extract the first word of "strip", so it can be a program name with args.
4005 set dummy strip; ac_word=$2
4006 echo "$as_me:$LINENO: checking for $ac_word" >&5
4007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4008 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011 if test -n "$ac_ct_STRIP"; then
4012 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_ac_ct_STRIP="strip"
4022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4025 done
4026 done
4028 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4031 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4032 if test -n "$ac_ct_STRIP"; then
4033 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4034 echo "${ECHO_T}$ac_ct_STRIP" >&6
4035 else
4036 echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6
4040 STRIP=$ac_ct_STRIP
4041 else
4042 STRIP="$ac_cv_prog_STRIP"
4046 # Check for any special flags to pass to ltconfig.
4047 libtool_flags="--cache-file=$cache_file"
4048 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4049 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4050 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4051 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4052 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4055 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4056 if test "${enable_libtool_lock+set}" = set; then
4057 enableval="$enable_libtool_lock"
4060 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4061 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4064 # Check whether --with-pic or --without-pic was given.
4065 if test "${with_pic+set}" = set; then
4066 withval="$with_pic"
4067 pic_mode="$withval"
4068 else
4069 pic_mode=default
4071 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4072 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4074 # Some flags need to be propagated to the compiler or linker for good
4075 # libtool support.
4076 case $host in
4077 *-*-irix6*)
4078 # Find out which ABI we are using.
4079 echo '#line 4079 "configure"' > conftest.$ac_ext
4080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4081 (eval $ac_compile) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; then
4085 if test "$lt_cv_prog_gnu_ld" = yes; then
4086 case `/usr/bin/file conftest.$ac_objext` in
4087 *32-bit*)
4088 LD="${LD-ld} -melf32bsmip"
4090 *N32*)
4091 LD="${LD-ld} -melf32bmipn32"
4093 *64-bit*)
4094 LD="${LD-ld} -melf64bmip"
4096 esac
4097 else
4098 case `/usr/bin/file conftest.$ac_objext` in
4099 *32-bit*)
4100 LD="${LD-ld} -32"
4102 *N32*)
4103 LD="${LD-ld} -n32"
4105 *64-bit*)
4106 LD="${LD-ld} -64"
4108 esac
4111 rm -rf conftest*
4114 ia64-*-hpux*)
4115 # Find out which ABI we are using.
4116 echo 'int i;' > conftest.$ac_ext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118 (eval $ac_compile) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; then
4122 case "`/usr/bin/file conftest.o`" in
4123 *ELF-32*)
4124 HPUX_IA64_MODE="32"
4126 *ELF-64*)
4127 HPUX_IA64_MODE="64"
4129 esac
4131 rm -rf conftest*
4134 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4135 # Find out which ABI we are using.
4136 echo 'int i;' > conftest.$ac_ext
4137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4138 (eval $ac_compile) 2>&5
4139 ac_status=$?
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; then
4142 case "`/usr/bin/file conftest.o`" in
4143 *32-bit*)
4144 case $host in
4145 x86_64-*linux*)
4146 LD="${LD-ld} -m elf_i386"
4148 ppc64-*linux*|powerpc64-*linux*)
4149 LD="${LD-ld} -m elf32ppclinux"
4151 s390x-*linux*)
4152 LD="${LD-ld} -m elf_s390"
4154 sparc64-*linux*)
4155 LD="${LD-ld} -m elf32_sparc"
4157 esac
4159 *64-bit*)
4160 case $host in
4161 x86_64-*linux*)
4162 LD="${LD-ld} -m elf_x86_64"
4164 ppc*-*linux*|powerpc*-*linux*)
4165 LD="${LD-ld} -m elf64ppc"
4167 s390*-*linux*)
4168 LD="${LD-ld} -m elf64_s390"
4170 sparc*-*linux*)
4171 LD="${LD-ld} -m elf64_sparc"
4173 esac
4175 esac
4177 rm -rf conftest*
4180 *-*-sco3.2v5*)
4181 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4182 SAVE_CFLAGS="$CFLAGS"
4183 CFLAGS="$CFLAGS -belf"
4184 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4185 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4186 if test "${lt_cv_cc_needs_belf+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4191 ac_ext=c
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197 if test x$gcc_no_link = xyes; then
4198 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4199 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4200 { (exit 1); exit 1; }; }
4202 cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h. */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4210 main ()
4214 return 0;
4216 _ACEOF
4217 rm -f conftest.$ac_objext conftest$ac_exeext
4218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4219 (eval $ac_link) 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -z "$ac_c_werror_flag"
4227 || test ! -s conftest.err'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 (eval $ac_try) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try='test -s conftest$ac_exeext'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 lt_cv_cc_needs_belf=yes
4240 else
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 lt_cv_cc_needs_belf=no
4246 rm -f conftest.err conftest.$ac_objext \
4247 conftest$ac_exeext conftest.$ac_ext
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4256 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4257 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4258 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4259 CFLAGS="$SAVE_CFLAGS"
4264 esac
4267 # Save cache, so that ltconfig can load it
4268 cat >confcache <<\_ACEOF
4269 # This file is a shell script that caches the results of configure
4270 # tests run on this system so they can be shared between configure
4271 # scripts and configure runs, see configure's option --config-cache.
4272 # It is not useful on other systems. If it contains results you don't
4273 # want to keep, you may remove or edit it.
4275 # config.status only pays attention to the cache file if you give it
4276 # the --recheck option to rerun configure.
4278 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4279 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4280 # following values.
4282 _ACEOF
4284 # The following way of writing the cache mishandles newlines in values,
4285 # but we know of no workaround that is simple, portable, and efficient.
4286 # So, don't put newlines in cache variables' values.
4287 # Ultrix sh set writes to stderr and can't be redirected directly,
4288 # and sets the high bit in the cache file unless we assign to the vars.
4290 (set) 2>&1 |
4291 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4292 *ac_space=\ *)
4293 # `set' does not quote correctly, so add quotes (double-quote
4294 # substitution turns \\\\ into \\, and sed turns \\ into \).
4295 sed -n \
4296 "s/'/'\\\\''/g;
4297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4300 # `set' quotes correctly as required by POSIX, so do not add quotes.
4301 sed -n \
4302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4304 esac;
4306 sed '
4307 t clear
4308 : clear
4309 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4310 t end
4311 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4312 : end' >>confcache
4313 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4314 if test -w $cache_file; then
4315 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4316 cat confcache >$cache_file
4317 else
4318 echo "not updating unwritable cache $cache_file"
4321 rm -f confcache
4323 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4324 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4325 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4326 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4327 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4328 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4329 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4330 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4331 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4332 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4333 echo "$as_me: error: libtool configure failed" >&2;}
4334 { (exit 1); exit 1; }; }
4336 # Reload cache, that may have been modified by ltconfig
4337 if test -r "$cache_file"; then
4338 # Some versions of bash will fail to source /dev/null (special
4339 # files actually), so we avoid doing that.
4340 if test -f "$cache_file"; then
4341 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4342 echo "$as_me: loading cache $cache_file" >&6;}
4343 case $cache_file in
4344 [\\/]* | ?:[\\/]* ) . $cache_file;;
4345 *) . ./$cache_file;;
4346 esac
4348 else
4349 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4350 echo "$as_me: creating cache $cache_file" >&6;}
4351 >$cache_file
4355 # This can be used to rebuild libtool when needed
4356 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4358 # Always use our own libtool.
4359 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4361 # Redirect the config.log output again, so that the ltconfig log is not
4362 # clobbered by the next message.
4363 exec 5>>./config.log
4372 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4374 # We need gfortran to compile parts of the library
4375 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4376 #AC_PROG_FC(gfortran)
4377 FC="$GFORTRAN"
4378 ac_ext=${FC_SRCEXT-f}
4379 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4380 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4382 if test -n "$ac_tool_prefix"; then
4383 for ac_prog in gfortran
4385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4387 echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4389 if test "${ac_cv_prog_FC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 if test -n "$FC"; then
4393 ac_cv_prog_FC="$FC" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4406 done
4407 done
4411 FC=$ac_cv_prog_FC
4412 if test -n "$FC"; then
4413 echo "$as_me:$LINENO: result: $FC" >&5
4414 echo "${ECHO_T}$FC" >&6
4415 else
4416 echo "$as_me:$LINENO: result: no" >&5
4417 echo "${ECHO_T}no" >&6
4420 test -n "$FC" && break
4421 done
4423 if test -z "$FC"; then
4424 ac_ct_FC=$FC
4425 for ac_prog in gfortran
4427 # Extract the first word of "$ac_prog", so it can be a program name with args.
4428 set dummy $ac_prog; ac_word=$2
4429 echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4431 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434 if test -n "$ac_ct_FC"; then
4435 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4444 ac_cv_prog_ac_ct_FC="$ac_prog"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4448 done
4449 done
4453 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4454 if test -n "$ac_ct_FC"; then
4455 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4456 echo "${ECHO_T}$ac_ct_FC" >&6
4457 else
4458 echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6
4462 test -n "$ac_ct_FC" && break
4463 done
4465 FC=$ac_ct_FC
4469 # Provide some information about the compiler.
4470 echo "$as_me:4470:" \
4471 "checking for Fortran compiler version" >&5
4472 ac_compiler=`set X $ac_compile; echo $2`
4473 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4474 (eval $ac_compiler --version </dev/null >&5) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }
4478 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4479 (eval $ac_compiler -v </dev/null >&5) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }
4483 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4484 (eval $ac_compiler -V </dev/null >&5) 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }
4488 rm -f a.out
4490 # If we don't use `.F' as extension, the preprocessor is not run on the
4491 # input file. (Note that this only needs to work for GNU compilers.)
4492 ac_save_ext=$ac_ext
4493 ac_ext=F
4494 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4495 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4496 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499 cat >conftest.$ac_ext <<_ACEOF
4500 program main
4501 #ifndef __GNUC__
4502 choke me
4503 #endif
4506 _ACEOF
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_fc_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_compiler_gnu=yes
4530 else
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4534 ac_compiler_gnu=no
4536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4537 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4540 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4541 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4542 ac_ext=$ac_save_ext
4543 ac_test_FFLAGS=${FCFLAGS+set}
4544 ac_save_FFLAGS=$FCFLAGS
4545 FCFLAGS=
4546 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4547 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4548 if test "${ac_cv_prog_fc_g+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 FCFLAGS=-g
4552 cat >conftest.$ac_ext <<_ACEOF
4553 program main
4556 _ACEOF
4557 rm -f conftest.$ac_objext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>conftest.er1
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
4566 { ac_try='test -z "$ac_fc_werror_flag"
4567 || test ! -s conftest.err'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 ac_cv_prog_fc_g=yes
4580 else
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4584 ac_cv_prog_fc_g=no
4586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4589 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4590 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4591 if test "$ac_test_FFLAGS" = set; then
4592 FCFLAGS=$ac_save_FFLAGS
4593 elif test $ac_cv_prog_fc_g = yes; then
4594 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4595 FCFLAGS="-g -O2"
4596 else
4597 FCFLAGS="-g"
4599 else
4600 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4601 FCFLAGS="-O2"
4602 else
4603 FCFLAGS=
4607 ac_ext=c
4608 ac_cpp='$CPP $CPPFLAGS'
4609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4613 FCFLAGS="$FCFLAGS -Wall -fno-repack-arrays -fno-underscoring"
4615 # Check whether --enable-largefile or --disable-largefile was given.
4616 if test "${enable_largefile+set}" = set; then
4617 enableval="$enable_largefile"
4620 if test "$enable_largefile" != no; then
4622 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4623 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4624 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627 ac_cv_sys_largefile_CC=no
4628 if test "$GCC" != yes; then
4629 ac_save_CC=$CC
4630 while :; do
4631 # IRIX 6.2 and later do not support large files by default,
4632 # so use the C compiler's -n32 option if that helps.
4633 cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h. */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4639 #include <sys/types.h>
4640 /* Check that off_t can represent 2**63 - 1 correctly.
4641 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4642 since some C++ compilers masquerading as C compilers
4643 incorrectly reject 9223372036854775807. */
4644 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4645 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4646 && LARGE_OFF_T % 2147483647 == 1)
4647 ? 1 : -1];
4649 main ()
4653 return 0;
4655 _ACEOF
4656 rm -f conftest.$ac_objext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4658 (eval $ac_compile) 2>conftest.er1
4659 ac_status=$?
4660 grep -v '^ *+' conftest.er1 >conftest.err
4661 rm -f conftest.er1
4662 cat conftest.err >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -z "$ac_c_werror_flag"
4666 || test ! -s conftest.err'
4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 (eval $ac_try) 2>&5
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; } &&
4672 { ac_try='test -s conftest.$ac_objext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 (eval $ac_try) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 break
4679 else
4680 echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4684 rm -f conftest.err conftest.$ac_objext
4685 CC="$CC -n32"
4686 rm -f conftest.$ac_objext
4687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4688 (eval $ac_compile) 2>conftest.er1
4689 ac_status=$?
4690 grep -v '^ *+' conftest.er1 >conftest.err
4691 rm -f conftest.er1
4692 cat conftest.err >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } &&
4695 { ac_try='test -z "$ac_c_werror_flag"
4696 || test ! -s conftest.err'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; } &&
4702 { ac_try='test -s conftest.$ac_objext'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; }; then
4708 ac_cv_sys_largefile_CC=' -n32'; break
4709 else
4710 echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4714 rm -f conftest.err conftest.$ac_objext
4715 break
4716 done
4717 CC=$ac_save_CC
4718 rm -f conftest.$ac_ext
4721 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4722 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4723 if test "$ac_cv_sys_largefile_CC" != no; then
4724 CC=$CC$ac_cv_sys_largefile_CC
4727 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4728 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4729 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 while :; do
4733 ac_cv_sys_file_offset_bits=no
4734 cat >conftest.$ac_ext <<_ACEOF
4735 /* confdefs.h. */
4736 _ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4740 #include <sys/types.h>
4741 /* Check that off_t can represent 2**63 - 1 correctly.
4742 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4743 since some C++ compilers masquerading as C compilers
4744 incorrectly reject 9223372036854775807. */
4745 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4747 && LARGE_OFF_T % 2147483647 == 1)
4748 ? 1 : -1];
4750 main ()
4754 return 0;
4756 _ACEOF
4757 rm -f conftest.$ac_objext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4759 (eval $ac_compile) 2>conftest.er1
4760 ac_status=$?
4761 grep -v '^ *+' conftest.er1 >conftest.err
4762 rm -f conftest.er1
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } &&
4766 { ac_try='test -z "$ac_c_werror_flag"
4767 || test ! -s conftest.err'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769 (eval $ac_try) 2>&5
4770 ac_status=$?
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; } &&
4773 { ac_try='test -s conftest.$ac_objext'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 (eval $ac_try) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 break
4780 else
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4786 cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h. */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 #define _FILE_OFFSET_BITS 64
4793 #include <sys/types.h>
4794 /* Check that off_t can represent 2**63 - 1 correctly.
4795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4796 since some C++ compilers masquerading as C compilers
4797 incorrectly reject 9223372036854775807. */
4798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4800 && LARGE_OFF_T % 2147483647 == 1)
4801 ? 1 : -1];
4803 main ()
4807 return 0;
4809 _ACEOF
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>conftest.er1
4813 ac_status=$?
4814 grep -v '^ *+' conftest.er1 >conftest.err
4815 rm -f conftest.er1
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try='test -z "$ac_c_werror_flag"
4820 || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 ac_cv_sys_file_offset_bits=64; break
4833 else
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839 break
4840 done
4842 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4843 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4844 if test "$ac_cv_sys_file_offset_bits" != no; then
4846 cat >>confdefs.h <<_ACEOF
4847 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4848 _ACEOF
4851 rm -f conftest*
4852 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4853 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4854 if test "${ac_cv_sys_large_files+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857 while :; do
4858 ac_cv_sys_large_files=no
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865 #include <sys/types.h>
4866 /* Check that off_t can represent 2**63 - 1 correctly.
4867 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4868 since some C++ compilers masquerading as C compilers
4869 incorrectly reject 9223372036854775807. */
4870 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4871 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4872 && LARGE_OFF_T % 2147483647 == 1)
4873 ? 1 : -1];
4875 main ()
4879 return 0;
4881 _ACEOF
4882 rm -f conftest.$ac_objext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 break
4905 else
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 #define _LARGE_FILES 1
4918 #include <sys/types.h>
4919 /* Check that off_t can represent 2**63 - 1 correctly.
4920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4921 since some C++ compilers masquerading as C compilers
4922 incorrectly reject 9223372036854775807. */
4923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4925 && LARGE_OFF_T % 2147483647 == 1)
4926 ? 1 : -1];
4928 main ()
4932 return 0;
4934 _ACEOF
4935 rm -f conftest.$ac_objext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937 (eval $ac_compile) 2>conftest.er1
4938 ac_status=$?
4939 grep -v '^ *+' conftest.er1 >conftest.err
4940 rm -f conftest.er1
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try='test -z "$ac_c_werror_flag"
4945 || test ! -s conftest.err'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 (eval $ac_try) 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; } &&
4951 { ac_try='test -s conftest.$ac_objext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 (eval $ac_try) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 ac_cv_sys_large_files=1; break
4958 else
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4964 break
4965 done
4967 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4968 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4969 if test "$ac_cv_sys_large_files" != no; then
4971 cat >>confdefs.h <<_ACEOF
4972 #define _LARGE_FILES $ac_cv_sys_large_files
4973 _ACEOF
4976 rm -f conftest*
4979 if test x$gcc_no_link = xyes; then
4980 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
4981 ac_cv_func_mmap_fixed_mapped=no
4984 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
4985 ac_ext=c
4986 ac_cpp='$CPP $CPPFLAGS'
4987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4990 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4991 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4992 # On Suns, sometimes $CPP names a directory.
4993 if test -n "$CPP" && test -d "$CPP"; then
4994 CPP=
4996 if test -z "$CPP"; then
4997 if test "${ac_cv_prog_CPP+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000 # Double quotes because CPP needs to be expanded
5001 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5003 ac_preproc_ok=false
5004 for ac_c_preproc_warn_flag in '' yes
5006 # Use a header file that comes with gcc, so configuring glibc
5007 # with a fresh cross-compiler works.
5008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5009 # <limits.h> exists even on freestanding compilers.
5010 # On the NeXT, cc -E runs the code through the compiler's parser,
5011 # not just through cpp. "Syntax error" is here to catch this case.
5012 cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 #ifdef __STDC__
5019 # include <limits.h>
5020 #else
5021 # include <assert.h>
5022 #endif
5023 Syntax error
5024 _ACEOF
5025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5027 ac_status=$?
5028 grep -v '^ *+' conftest.er1 >conftest.err
5029 rm -f conftest.er1
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } >/dev/null; then
5033 if test -s conftest.err; then
5034 ac_cpp_err=$ac_c_preproc_warn_flag
5035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5036 else
5037 ac_cpp_err=
5039 else
5040 ac_cpp_err=yes
5042 if test -z "$ac_cpp_err"; then
5044 else
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5048 # Broken: fails on valid input.
5049 continue
5051 rm -f conftest.err conftest.$ac_ext
5053 # OK, works on sane cases. Now check whether non-existent headers
5054 # can be detected and how.
5055 cat >conftest.$ac_ext <<_ACEOF
5056 /* confdefs.h. */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5061 #include <ac_nonexistent.h>
5062 _ACEOF
5063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5065 ac_status=$?
5066 grep -v '^ *+' conftest.er1 >conftest.err
5067 rm -f conftest.er1
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } >/dev/null; then
5071 if test -s conftest.err; then
5072 ac_cpp_err=$ac_c_preproc_warn_flag
5073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5074 else
5075 ac_cpp_err=
5077 else
5078 ac_cpp_err=yes
5080 if test -z "$ac_cpp_err"; then
5081 # Broken: success on invalid input.
5082 continue
5083 else
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5087 # Passes both tests.
5088 ac_preproc_ok=:
5089 break
5091 rm -f conftest.err conftest.$ac_ext
5093 done
5094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095 rm -f conftest.err conftest.$ac_ext
5096 if $ac_preproc_ok; then
5097 break
5100 done
5101 ac_cv_prog_CPP=$CPP
5104 CPP=$ac_cv_prog_CPP
5105 else
5106 ac_cv_prog_CPP=$CPP
5108 echo "$as_me:$LINENO: result: $CPP" >&5
5109 echo "${ECHO_T}$CPP" >&6
5110 ac_preproc_ok=false
5111 for ac_c_preproc_warn_flag in '' yes
5113 # Use a header file that comes with gcc, so configuring glibc
5114 # with a fresh cross-compiler works.
5115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5116 # <limits.h> exists even on freestanding compilers.
5117 # On the NeXT, cc -E runs the code through the compiler's parser,
5118 # not just through cpp. "Syntax error" is here to catch this case.
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 #ifdef __STDC__
5126 # include <limits.h>
5127 #else
5128 # include <assert.h>
5129 #endif
5130 Syntax error
5131 _ACEOF
5132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5134 ac_status=$?
5135 grep -v '^ *+' conftest.er1 >conftest.err
5136 rm -f conftest.er1
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } >/dev/null; then
5140 if test -s conftest.err; then
5141 ac_cpp_err=$ac_c_preproc_warn_flag
5142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5143 else
5144 ac_cpp_err=
5146 else
5147 ac_cpp_err=yes
5149 if test -z "$ac_cpp_err"; then
5151 else
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5155 # Broken: fails on valid input.
5156 continue
5158 rm -f conftest.err conftest.$ac_ext
5160 # OK, works on sane cases. Now check whether non-existent headers
5161 # can be detected and how.
5162 cat >conftest.$ac_ext <<_ACEOF
5163 /* confdefs.h. */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 #include <ac_nonexistent.h>
5169 _ACEOF
5170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5172 ac_status=$?
5173 grep -v '^ *+' conftest.er1 >conftest.err
5174 rm -f conftest.er1
5175 cat conftest.err >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } >/dev/null; then
5178 if test -s conftest.err; then
5179 ac_cpp_err=$ac_c_preproc_warn_flag
5180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5181 else
5182 ac_cpp_err=
5184 else
5185 ac_cpp_err=yes
5187 if test -z "$ac_cpp_err"; then
5188 # Broken: success on invalid input.
5189 continue
5190 else
5191 echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.$ac_ext >&5
5194 # Passes both tests.
5195 ac_preproc_ok=:
5196 break
5198 rm -f conftest.err conftest.$ac_ext
5200 done
5201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5202 rm -f conftest.err conftest.$ac_ext
5203 if $ac_preproc_ok; then
5205 else
5206 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5207 See \`config.log' for more details." >&5
5208 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5209 See \`config.log' for more details." >&2;}
5210 { (exit 1); exit 1; }; }
5213 ac_ext=c
5214 ac_cpp='$CPP $CPPFLAGS'
5215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5220 echo "$as_me:$LINENO: checking for egrep" >&5
5221 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5222 if test "${ac_cv_prog_egrep+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5226 then ac_cv_prog_egrep='grep -E'
5227 else ac_cv_prog_egrep='egrep'
5230 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5231 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5232 EGREP=$ac_cv_prog_egrep
5235 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5236 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5237 if test "${ac_cv_header_stdc+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240 cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h. */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5246 #include <stdlib.h>
5247 #include <stdarg.h>
5248 #include <string.h>
5249 #include <float.h>
5252 main ()
5256 return 0;
5258 _ACEOF
5259 rm -f conftest.$ac_objext
5260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5261 (eval $ac_compile) 2>conftest.er1
5262 ac_status=$?
5263 grep -v '^ *+' conftest.er1 >conftest.err
5264 rm -f conftest.er1
5265 cat conftest.err >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } &&
5268 { ac_try='test -z "$ac_c_werror_flag"
5269 || test ! -s conftest.err'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; } &&
5275 { ac_try='test -s conftest.$ac_objext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 (eval $ac_try) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5281 ac_cv_header_stdc=yes
5282 else
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 ac_cv_header_stdc=no
5288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5290 if test $ac_cv_header_stdc = yes; then
5291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5292 cat >conftest.$ac_ext <<_ACEOF
5293 /* confdefs.h. */
5294 _ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5298 #include <string.h>
5300 _ACEOF
5301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302 $EGREP "memchr" >/dev/null 2>&1; then
5304 else
5305 ac_cv_header_stdc=no
5307 rm -f conftest*
5311 if test $ac_cv_header_stdc = yes; then
5312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5313 cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h. */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 #include <stdlib.h>
5321 _ACEOF
5322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323 $EGREP "free" >/dev/null 2>&1; then
5325 else
5326 ac_cv_header_stdc=no
5328 rm -f conftest*
5332 if test $ac_cv_header_stdc = yes; then
5333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5334 if test "$cross_compiling" = yes; then
5336 else
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h. */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 #include <ctype.h>
5344 #if ((' ' & 0x0FF) == 0x020)
5345 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5346 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5347 #else
5348 # define ISLOWER(c) \
5349 (('a' <= (c) && (c) <= 'i') \
5350 || ('j' <= (c) && (c) <= 'r') \
5351 || ('s' <= (c) && (c) <= 'z'))
5352 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5353 #endif
5355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5357 main ()
5359 int i;
5360 for (i = 0; i < 256; i++)
5361 if (XOR (islower (i), ISLOWER (i))
5362 || toupper (i) != TOUPPER (i))
5363 exit(2);
5364 exit (0);
5366 _ACEOF
5367 rm -f conftest$ac_exeext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5369 (eval $ac_link) 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 (eval $ac_try) 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5379 else
5380 echo "$as_me: program exited with status $ac_status" >&5
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5384 ( exit $ac_status )
5385 ac_cv_header_stdc=no
5387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5391 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5392 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5393 if test $ac_cv_header_stdc = yes; then
5395 cat >>confdefs.h <<\_ACEOF
5396 #define STDC_HEADERS 1
5397 _ACEOF
5401 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5411 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5412 inttypes.h stdint.h unistd.h
5414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5415 echo "$as_me:$LINENO: checking for $ac_header" >&5
5416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 $ac_includes_default
5428 #include <$ac_header>
5429 _ACEOF
5430 rm -f conftest.$ac_objext
5431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5432 (eval $ac_compile) 2>conftest.er1
5433 ac_status=$?
5434 grep -v '^ *+' conftest.er1 >conftest.err
5435 rm -f conftest.er1
5436 cat conftest.err >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } &&
5439 { ac_try='test -z "$ac_c_werror_flag"
5440 || test ! -s conftest.err'
5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 (eval $ac_try) 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; } &&
5446 { ac_try='test -s conftest.$ac_objext'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 (eval $ac_try) 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; }; then
5452 eval "$as_ac_Header=yes"
5453 else
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 eval "$as_ac_Header=no"
5459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5464 cat >>confdefs.h <<_ACEOF
5465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5466 _ACEOF
5470 done
5475 for ac_header in stdlib.h unistd.h
5477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5479 echo "$as_me:$LINENO: checking for $ac_header" >&5
5480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5486 else
5487 # Is the header compilable?
5488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5490 cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h. */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 $ac_includes_default
5497 #include <$ac_header>
5498 _ACEOF
5499 rm -f conftest.$ac_objext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5501 (eval $ac_compile) 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } &&
5508 { ac_try='test -z "$ac_c_werror_flag"
5509 || test ! -s conftest.err'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 (eval $ac_try) 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; } &&
5515 { ac_try='test -s conftest.$ac_objext'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 (eval $ac_try) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5521 ac_header_compiler=yes
5522 else
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5526 ac_header_compiler=no
5528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5530 echo "${ECHO_T}$ac_header_compiler" >&6
5532 # Is the header present?
5533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 #include <$ac_header>
5542 _ACEOF
5543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5545 ac_status=$?
5546 grep -v '^ *+' conftest.er1 >conftest.err
5547 rm -f conftest.er1
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } >/dev/null; then
5551 if test -s conftest.err; then
5552 ac_cpp_err=$ac_c_preproc_warn_flag
5553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5554 else
5555 ac_cpp_err=
5557 else
5558 ac_cpp_err=yes
5560 if test -z "$ac_cpp_err"; then
5561 ac_header_preproc=yes
5562 else
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5566 ac_header_preproc=no
5568 rm -f conftest.err conftest.$ac_ext
5569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5570 echo "${ECHO_T}$ac_header_preproc" >&6
5572 # So? What about this header?
5573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5574 yes:no: )
5575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5579 ac_header_preproc=yes
5581 no:yes:* )
5582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5595 cat <<\_ASBOX
5596 ## ------------------------------------------------------ ##
5597 ## Report this to the GNU Fortran Runtime Library lists. ##
5598 ## ------------------------------------------------------ ##
5599 _ASBOX
5601 sed "s/^/$as_me: WARNING: /" >&2
5603 esac
5604 echo "$as_me:$LINENO: checking for $ac_header" >&5
5605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609 eval "$as_ac_Header=\$ac_header_preproc"
5611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5616 cat >>confdefs.h <<_ACEOF
5617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5618 _ACEOF
5622 done
5625 for ac_func in getpagesize
5627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5628 echo "$as_me:$LINENO: checking for $ac_func" >&5
5629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5630 if eval "test \"\${$as_ac_var+set}\" = set"; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 else
5633 if test x$gcc_no_link = xyes; then
5634 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5635 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5636 { (exit 1); exit 1; }; }
5638 cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h. */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5646 #define $ac_func innocuous_$ac_func
5648 /* System header to define __stub macros and hopefully few prototypes,
5649 which can conflict with char $ac_func (); below.
5650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5651 <limits.h> exists even on freestanding compilers. */
5653 #ifdef __STDC__
5654 # include <limits.h>
5655 #else
5656 # include <assert.h>
5657 #endif
5659 #undef $ac_func
5661 /* Override any gcc2 internal prototype to avoid an error. */
5662 #ifdef __cplusplus
5663 extern "C"
5665 #endif
5666 /* We use char because int might match the return type of a gcc2
5667 builtin and then its argument prototype would still apply. */
5668 char $ac_func ();
5669 /* The GNU C library defines this for functions which it implements
5670 to always fail with ENOSYS. Some functions are actually named
5671 something starting with __ and the normal name is an alias. */
5672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5673 choke me
5674 #else
5675 char (*f) () = $ac_func;
5676 #endif
5677 #ifdef __cplusplus
5679 #endif
5682 main ()
5684 return f != $ac_func;
5686 return 0;
5688 _ACEOF
5689 rm -f conftest.$ac_objext conftest$ac_exeext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5691 (eval $ac_link) 2>conftest.er1
5692 ac_status=$?
5693 grep -v '^ *+' conftest.er1 >conftest.err
5694 rm -f conftest.er1
5695 cat conftest.err >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } &&
5698 { ac_try='test -z "$ac_c_werror_flag"
5699 || test ! -s conftest.err'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 (eval $ac_try) 2>&5
5702 ac_status=$?
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; } &&
5705 { ac_try='test -s conftest$ac_exeext'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 (eval $ac_try) 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; }; then
5711 eval "$as_ac_var=yes"
5712 else
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5716 eval "$as_ac_var=no"
5718 rm -f conftest.err conftest.$ac_objext \
5719 conftest$ac_exeext conftest.$ac_ext
5721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5723 if test `eval echo '${'$as_ac_var'}'` = yes; then
5724 cat >>confdefs.h <<_ACEOF
5725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5726 _ACEOF
5729 done
5731 echo "$as_me:$LINENO: checking for working mmap" >&5
5732 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5733 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736 if test "$cross_compiling" = yes; then
5737 ac_cv_func_mmap_fixed_mapped=no
5738 else
5739 cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h. */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 $ac_includes_default
5746 /* malloc might have been renamed as rpl_malloc. */
5747 #undef malloc
5749 /* Thanks to Mike Haertel and Jim Avera for this test.
5750 Here is a matrix of mmap possibilities:
5751 mmap private not fixed
5752 mmap private fixed at somewhere currently unmapped
5753 mmap private fixed at somewhere already mapped
5754 mmap shared not fixed
5755 mmap shared fixed at somewhere currently unmapped
5756 mmap shared fixed at somewhere already mapped
5757 For private mappings, we should verify that changes cannot be read()
5758 back from the file, nor mmap's back from the file at a different
5759 address. (There have been systems where private was not correctly
5760 implemented like the infamous i386 svr4.0, and systems where the
5761 VM page cache was not coherent with the file system buffer cache
5762 like early versions of FreeBSD and possibly contemporary NetBSD.)
5763 For shared mappings, we should conversely verify that changes get
5764 propagated back to all the places they're supposed to be.
5766 Grep wants private fixed already mapped.
5767 The main things grep needs to know about mmap are:
5768 * does it exist and is it safe to write into the mmap'd area
5769 * how to use it (BSD variants) */
5771 #include <fcntl.h>
5772 #include <sys/mman.h>
5774 #if !STDC_HEADERS && !HAVE_STDLIB_H
5775 char *malloc ();
5776 #endif
5778 /* This mess was copied from the GNU getpagesize.h. */
5779 #if !HAVE_GETPAGESIZE
5780 /* Assume that all systems that can run configure have sys/param.h. */
5781 # if !HAVE_SYS_PARAM_H
5782 # define HAVE_SYS_PARAM_H 1
5783 # endif
5785 # ifdef _SC_PAGESIZE
5786 # define getpagesize() sysconf(_SC_PAGESIZE)
5787 # else /* no _SC_PAGESIZE */
5788 # if HAVE_SYS_PARAM_H
5789 # include <sys/param.h>
5790 # ifdef EXEC_PAGESIZE
5791 # define getpagesize() EXEC_PAGESIZE
5792 # else /* no EXEC_PAGESIZE */
5793 # ifdef NBPG
5794 # define getpagesize() NBPG * CLSIZE
5795 # ifndef CLSIZE
5796 # define CLSIZE 1
5797 # endif /* no CLSIZE */
5798 # else /* no NBPG */
5799 # ifdef NBPC
5800 # define getpagesize() NBPC
5801 # else /* no NBPC */
5802 # ifdef PAGESIZE
5803 # define getpagesize() PAGESIZE
5804 # endif /* PAGESIZE */
5805 # endif /* no NBPC */
5806 # endif /* no NBPG */
5807 # endif /* no EXEC_PAGESIZE */
5808 # else /* no HAVE_SYS_PARAM_H */
5809 # define getpagesize() 8192 /* punt totally */
5810 # endif /* no HAVE_SYS_PARAM_H */
5811 # endif /* no _SC_PAGESIZE */
5813 #endif /* no HAVE_GETPAGESIZE */
5816 main ()
5818 char *data, *data2, *data3;
5819 int i, pagesize;
5820 int fd;
5822 pagesize = getpagesize ();
5824 /* First, make a file with some known garbage in it. */
5825 data = (char *) malloc (pagesize);
5826 if (!data)
5827 exit (1);
5828 for (i = 0; i < pagesize; ++i)
5829 *(data + i) = rand ();
5830 umask (0);
5831 fd = creat ("conftest.mmap", 0600);
5832 if (fd < 0)
5833 exit (1);
5834 if (write (fd, data, pagesize) != pagesize)
5835 exit (1);
5836 close (fd);
5838 /* Next, try to mmap the file at a fixed address which already has
5839 something else allocated at it. If we can, also make sure that
5840 we see the same garbage. */
5841 fd = open ("conftest.mmap", O_RDWR);
5842 if (fd < 0)
5843 exit (1);
5844 data2 = (char *) malloc (2 * pagesize);
5845 if (!data2)
5846 exit (1);
5847 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5848 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5849 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5850 exit (1);
5851 for (i = 0; i < pagesize; ++i)
5852 if (*(data + i) != *(data2 + i))
5853 exit (1);
5855 /* Finally, make sure that changes to the mapped area do not
5856 percolate back to the file as seen by read(). (This is a bug on
5857 some variants of i386 svr4.0.) */
5858 for (i = 0; i < pagesize; ++i)
5859 *(data2 + i) = *(data2 + i) + 1;
5860 data3 = (char *) malloc (pagesize);
5861 if (!data3)
5862 exit (1);
5863 if (read (fd, data3, pagesize) != pagesize)
5864 exit (1);
5865 for (i = 0; i < pagesize; ++i)
5866 if (*(data + i) != *(data3 + i))
5867 exit (1);
5868 close (fd);
5869 exit (0);
5871 _ACEOF
5872 rm -f conftest$ac_exeext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5874 (eval $ac_link) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 (eval $ac_try) 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5883 ac_cv_func_mmap_fixed_mapped=yes
5884 else
5885 echo "$as_me: program exited with status $ac_status" >&5
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5889 ( exit $ac_status )
5890 ac_cv_func_mmap_fixed_mapped=no
5892 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5895 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5896 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5897 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5899 cat >>confdefs.h <<\_ACEOF
5900 #define HAVE_MMAP 1
5901 _ACEOF
5904 rm -f conftest.mmap
5907 echo "$as_me:$LINENO: checking for off_t" >&5
5908 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5909 if test "${ac_cv_type_off_t+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912 cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h. */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 $ac_includes_default
5920 main ()
5922 if ((off_t *) 0)
5923 return 0;
5924 if (sizeof (off_t))
5925 return 0;
5927 return 0;
5929 _ACEOF
5930 rm -f conftest.$ac_objext
5931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5932 (eval $ac_compile) 2>conftest.er1
5933 ac_status=$?
5934 grep -v '^ *+' conftest.er1 >conftest.err
5935 rm -f conftest.er1
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
5939 { ac_try='test -z "$ac_c_werror_flag"
5940 || test ! -s conftest.err'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 (eval $ac_try) 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; } &&
5946 { ac_try='test -s conftest.$ac_objext'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 (eval $ac_try) 2>&5
5949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5952 ac_cv_type_off_t=yes
5953 else
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5957 ac_cv_type_off_t=no
5959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5961 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5962 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5963 if test $ac_cv_type_off_t = yes; then
5965 else
5967 cat >>confdefs.h <<_ACEOF
5968 #define off_t long
5969 _ACEOF
5974 # check header files
5975 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5976 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5977 if test "${ac_cv_header_stdc+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980 cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h. */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 #include <stdlib.h>
5987 #include <stdarg.h>
5988 #include <string.h>
5989 #include <float.h>
5992 main ()
5996 return 0;
5998 _ACEOF
5999 rm -f conftest.$ac_objext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001 (eval $ac_compile) 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } &&
6008 { ac_try='test -z "$ac_c_werror_flag"
6009 || test ! -s conftest.err'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 (eval $ac_try) 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; } &&
6015 { ac_try='test -s conftest.$ac_objext'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 (eval $ac_try) 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6021 ac_cv_header_stdc=yes
6022 else
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6026 ac_cv_header_stdc=no
6028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6030 if test $ac_cv_header_stdc = yes; then
6031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <string.h>
6040 _ACEOF
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 $EGREP "memchr" >/dev/null 2>&1; then
6044 else
6045 ac_cv_header_stdc=no
6047 rm -f conftest*
6051 if test $ac_cv_header_stdc = yes; then
6052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6053 cat >conftest.$ac_ext <<_ACEOF
6054 /* confdefs.h. */
6055 _ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6059 #include <stdlib.h>
6061 _ACEOF
6062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6063 $EGREP "free" >/dev/null 2>&1; then
6065 else
6066 ac_cv_header_stdc=no
6068 rm -f conftest*
6072 if test $ac_cv_header_stdc = yes; then
6073 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6074 if test "$cross_compiling" = yes; then
6076 else
6077 cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h. */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 #include <ctype.h>
6084 #if ((' ' & 0x0FF) == 0x020)
6085 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6086 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6087 #else
6088 # define ISLOWER(c) \
6089 (('a' <= (c) && (c) <= 'i') \
6090 || ('j' <= (c) && (c) <= 'r') \
6091 || ('s' <= (c) && (c) <= 'z'))
6092 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6093 #endif
6095 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6097 main ()
6099 int i;
6100 for (i = 0; i < 256; i++)
6101 if (XOR (islower (i), ISLOWER (i))
6102 || toupper (i) != TOUPPER (i))
6103 exit(2);
6104 exit (0);
6106 _ACEOF
6107 rm -f conftest$ac_exeext
6108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6109 (eval $ac_link) 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 (eval $ac_try) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6119 else
6120 echo "$as_me: program exited with status $ac_status" >&5
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6124 ( exit $ac_status )
6125 ac_cv_header_stdc=no
6127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6131 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6132 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6133 if test $ac_cv_header_stdc = yes; then
6135 cat >>confdefs.h <<\_ACEOF
6136 #define STDC_HEADERS 1
6137 _ACEOF
6147 for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h
6149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6151 echo "$as_me:$LINENO: checking for $ac_header" >&5
6152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6158 else
6159 # Is the header compilable?
6160 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6162 cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h. */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 $ac_includes_default
6169 #include <$ac_header>
6170 _ACEOF
6171 rm -f conftest.$ac_objext
6172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6173 (eval $ac_compile) 2>conftest.er1
6174 ac_status=$?
6175 grep -v '^ *+' conftest.er1 >conftest.err
6176 rm -f conftest.er1
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try='test -z "$ac_c_werror_flag"
6181 || test ! -s conftest.err'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 (eval $ac_try) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; } &&
6187 { ac_try='test -s conftest.$ac_objext'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 ac_header_compiler=yes
6194 else
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6198 ac_header_compiler=no
6200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6202 echo "${ECHO_T}$ac_header_compiler" >&6
6204 # Is the header present?
6205 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h. */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 #include <$ac_header>
6214 _ACEOF
6215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6217 ac_status=$?
6218 grep -v '^ *+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } >/dev/null; then
6223 if test -s conftest.err; then
6224 ac_cpp_err=$ac_c_preproc_warn_flag
6225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6226 else
6227 ac_cpp_err=
6229 else
6230 ac_cpp_err=yes
6232 if test -z "$ac_cpp_err"; then
6233 ac_header_preproc=yes
6234 else
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6238 ac_header_preproc=no
6240 rm -f conftest.err conftest.$ac_ext
6241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6242 echo "${ECHO_T}$ac_header_preproc" >&6
6244 # So? What about this header?
6245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6246 yes:no: )
6247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6251 ac_header_preproc=yes
6253 no:yes:* )
6254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6261 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6267 cat <<\_ASBOX
6268 ## ------------------------------------------------------ ##
6269 ## Report this to the GNU Fortran Runtime Library lists. ##
6270 ## ------------------------------------------------------ ##
6271 _ASBOX
6273 sed "s/^/$as_me: WARNING: /" >&2
6275 esac
6276 echo "$as_me:$LINENO: checking for $ac_header" >&5
6277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281 eval "$as_ac_Header=\$ac_header_preproc"
6283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6288 cat >>confdefs.h <<_ACEOF
6289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6290 _ACEOF
6294 done
6301 for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
6303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6305 echo "$as_me:$LINENO: checking for $ac_header" >&5
6306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6312 else
6313 # Is the header compilable?
6314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6316 cat >conftest.$ac_ext <<_ACEOF
6317 /* confdefs.h. */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6322 $ac_includes_default
6323 #include <$ac_header>
6324 _ACEOF
6325 rm -f conftest.$ac_objext
6326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6327 (eval $ac_compile) 2>conftest.er1
6328 ac_status=$?
6329 grep -v '^ *+' conftest.er1 >conftest.err
6330 rm -f conftest.er1
6331 cat conftest.err >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } &&
6334 { ac_try='test -z "$ac_c_werror_flag"
6335 || test ! -s conftest.err'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 (eval $ac_try) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; } &&
6341 { ac_try='test -s conftest.$ac_objext'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; }; then
6347 ac_header_compiler=yes
6348 else
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6352 ac_header_compiler=no
6354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6356 echo "${ECHO_T}$ac_header_compiler" >&6
6358 # Is the header present?
6359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h. */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6367 #include <$ac_header>
6368 _ACEOF
6369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6371 ac_status=$?
6372 grep -v '^ *+' conftest.er1 >conftest.err
6373 rm -f conftest.er1
6374 cat conftest.err >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } >/dev/null; then
6377 if test -s conftest.err; then
6378 ac_cpp_err=$ac_c_preproc_warn_flag
6379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6380 else
6381 ac_cpp_err=
6383 else
6384 ac_cpp_err=yes
6386 if test -z "$ac_cpp_err"; then
6387 ac_header_preproc=yes
6388 else
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6392 ac_header_preproc=no
6394 rm -f conftest.err conftest.$ac_ext
6395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6396 echo "${ECHO_T}$ac_header_preproc" >&6
6398 # So? What about this header?
6399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6400 yes:no: )
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6405 ac_header_preproc=yes
6407 no:yes:* )
6408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6421 cat <<\_ASBOX
6422 ## ------------------------------------------------------ ##
6423 ## Report this to the GNU Fortran Runtime Library lists. ##
6424 ## ------------------------------------------------------ ##
6425 _ASBOX
6427 sed "s/^/$as_me: WARNING: /" >&2
6429 esac
6430 echo "$as_me:$LINENO: checking for $ac_header" >&5
6431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435 eval "$as_ac_Header=\$ac_header_preproc"
6437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6442 cat >>confdefs.h <<_ACEOF
6443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6444 _ACEOF
6448 done
6454 for ac_header in sys/mman.h sys/types.h sys/stat.h ieeefp.h
6456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6458 echo "$as_me:$LINENO: checking for $ac_header" >&5
6459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6465 else
6466 # Is the header compilable?
6467 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6469 cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h. */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 $ac_includes_default
6476 #include <$ac_header>
6477 _ACEOF
6478 rm -f conftest.$ac_objext
6479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6480 (eval $ac_compile) 2>conftest.er1
6481 ac_status=$?
6482 grep -v '^ *+' conftest.er1 >conftest.err
6483 rm -f conftest.er1
6484 cat conftest.err >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } &&
6487 { ac_try='test -z "$ac_c_werror_flag"
6488 || test ! -s conftest.err'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 (eval $ac_try) 2>&5
6491 ac_status=$?
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; } &&
6494 { ac_try='test -s conftest.$ac_objext'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 (eval $ac_try) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
6500 ac_header_compiler=yes
6501 else
6502 echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6505 ac_header_compiler=no
6507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6509 echo "${ECHO_T}$ac_header_compiler" >&6
6511 # Is the header present?
6512 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6514 cat >conftest.$ac_ext <<_ACEOF
6515 /* confdefs.h. */
6516 _ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6520 #include <$ac_header>
6521 _ACEOF
6522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6524 ac_status=$?
6525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } >/dev/null; then
6530 if test -s conftest.err; then
6531 ac_cpp_err=$ac_c_preproc_warn_flag
6532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6533 else
6534 ac_cpp_err=
6536 else
6537 ac_cpp_err=yes
6539 if test -z "$ac_cpp_err"; then
6540 ac_header_preproc=yes
6541 else
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 ac_header_preproc=no
6547 rm -f conftest.err conftest.$ac_ext
6548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6549 echo "${ECHO_T}$ac_header_preproc" >&6
6551 # So? What about this header?
6552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6553 yes:no: )
6554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6558 ac_header_preproc=yes
6560 no:yes:* )
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6574 cat <<\_ASBOX
6575 ## ------------------------------------------------------ ##
6576 ## Report this to the GNU Fortran Runtime Library lists. ##
6577 ## ------------------------------------------------------ ##
6578 _ASBOX
6580 sed "s/^/$as_me: WARNING: /" >&2
6582 esac
6583 echo "$as_me:$LINENO: checking for $ac_header" >&5
6584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588 eval "$as_ac_Header=\$ac_header_preproc"
6590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6595 cat >>confdefs.h <<_ACEOF
6596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6597 _ACEOF
6601 done
6603 if test "${ac_cv_header_complex_h+set}" = set; then
6604 echo "$as_me:$LINENO: checking for complex.h" >&5
6605 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6606 if test "${ac_cv_header_complex_h+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6610 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6611 else
6612 # Is the header compilable?
6613 echo "$as_me:$LINENO: checking complex.h usability" >&5
6614 echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6615 cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h. */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 $ac_includes_default
6622 #include <complex.h>
6623 _ACEOF
6624 rm -f conftest.$ac_objext
6625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6626 (eval $ac_compile) 2>conftest.er1
6627 ac_status=$?
6628 grep -v '^ *+' conftest.er1 >conftest.err
6629 rm -f conftest.er1
6630 cat conftest.err >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } &&
6633 { ac_try='test -z "$ac_c_werror_flag"
6634 || test ! -s conftest.err'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 (eval $ac_try) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; } &&
6640 { ac_try='test -s conftest.$ac_objext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 (eval $ac_try) 2>&5
6643 ac_status=$?
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 ac_header_compiler=yes
6647 else
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6651 ac_header_compiler=no
6653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6655 echo "${ECHO_T}$ac_header_compiler" >&6
6657 # Is the header present?
6658 echo "$as_me:$LINENO: checking complex.h presence" >&5
6659 echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6660 cat >conftest.$ac_ext <<_ACEOF
6661 /* confdefs.h. */
6662 _ACEOF
6663 cat confdefs.h >>conftest.$ac_ext
6664 cat >>conftest.$ac_ext <<_ACEOF
6665 /* end confdefs.h. */
6666 #include <complex.h>
6667 _ACEOF
6668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } >/dev/null; then
6676 if test -s conftest.err; then
6677 ac_cpp_err=$ac_c_preproc_warn_flag
6678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6679 else
6680 ac_cpp_err=
6682 else
6683 ac_cpp_err=yes
6685 if test -z "$ac_cpp_err"; then
6686 ac_header_preproc=yes
6687 else
6688 echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6691 ac_header_preproc=no
6693 rm -f conftest.err conftest.$ac_ext
6694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6695 echo "${ECHO_T}$ac_header_preproc" >&6
6697 # So? What about this header?
6698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6699 yes:no: )
6700 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6701 echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6702 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6703 echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6704 ac_header_preproc=yes
6706 no:yes:* )
6707 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6708 echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6709 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
6710 echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
6711 { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6712 echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6713 { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5
6714 echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;}
6715 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6716 echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6717 { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6718 echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6720 cat <<\_ASBOX
6721 ## ------------------------------------------------------ ##
6722 ## Report this to the GNU Fortran Runtime Library lists. ##
6723 ## ------------------------------------------------------ ##
6724 _ASBOX
6726 sed "s/^/$as_me: WARNING: /" >&2
6728 esac
6729 echo "$as_me:$LINENO: checking for complex.h" >&5
6730 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6731 if test "${ac_cv_header_complex_h+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 ac_cv_header_complex_h=$ac_header_preproc
6736 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6737 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6740 if test $ac_cv_header_complex_h = yes; then
6742 cat >>confdefs.h <<\_ACEOF
6743 #define HAVE_COMPLEX_H 1
6744 _ACEOF
6750 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6751 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6752 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755 cat >conftest.$ac_ext <<_ACEOF
6756 /* confdefs.h. */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6761 $ac_includes_default
6763 main ()
6765 static struct stat ac_aggr;
6766 if (ac_aggr.st_blksize)
6767 return 0;
6769 return 0;
6771 _ACEOF
6772 rm -f conftest.$ac_objext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6774 (eval $ac_compile) 2>conftest.er1
6775 ac_status=$?
6776 grep -v '^ *+' conftest.er1 >conftest.err
6777 rm -f conftest.er1
6778 cat conftest.err >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } &&
6781 { ac_try='test -z "$ac_c_werror_flag"
6782 || test ! -s conftest.err'
6783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784 (eval $ac_try) 2>&5
6785 ac_status=$?
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); }; } &&
6788 { ac_try='test -s conftest.$ac_objext'
6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790 (eval $ac_try) 2>&5
6791 ac_status=$?
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); }; }; then
6794 ac_cv_member_struct_stat_st_blksize=yes
6795 else
6796 echo "$as_me: failed program was:" >&5
6797 sed 's/^/| /' conftest.$ac_ext >&5
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h. */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 $ac_includes_default
6807 main ()
6809 static struct stat ac_aggr;
6810 if (sizeof ac_aggr.st_blksize)
6811 return 0;
6813 return 0;
6815 _ACEOF
6816 rm -f conftest.$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818 (eval $ac_compile) 2>conftest.er1
6819 ac_status=$?
6820 grep -v '^ *+' conftest.er1 >conftest.err
6821 rm -f conftest.er1
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try='test -z "$ac_c_werror_flag"
6826 || test ! -s conftest.err'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; } &&
6832 { ac_try='test -s conftest.$ac_objext'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 (eval $ac_try) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; }; then
6838 ac_cv_member_struct_stat_st_blksize=yes
6839 else
6840 echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6843 ac_cv_member_struct_stat_st_blksize=no
6845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6849 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6850 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
6851 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6853 cat >>confdefs.h <<_ACEOF
6854 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6855 _ACEOF
6860 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6861 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6862 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865 cat >conftest.$ac_ext <<_ACEOF
6866 /* confdefs.h. */
6867 _ACEOF
6868 cat confdefs.h >>conftest.$ac_ext
6869 cat >>conftest.$ac_ext <<_ACEOF
6870 /* end confdefs.h. */
6871 $ac_includes_default
6873 main ()
6875 static struct stat ac_aggr;
6876 if (ac_aggr.st_blocks)
6877 return 0;
6879 return 0;
6881 _ACEOF
6882 rm -f conftest.$ac_objext
6883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6884 (eval $ac_compile) 2>conftest.er1
6885 ac_status=$?
6886 grep -v '^ *+' conftest.er1 >conftest.err
6887 rm -f conftest.er1
6888 cat conftest.err >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } &&
6891 { ac_try='test -z "$ac_c_werror_flag"
6892 || test ! -s conftest.err'
6893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894 (eval $ac_try) 2>&5
6895 ac_status=$?
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; } &&
6898 { ac_try='test -s conftest.$ac_objext'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900 (eval $ac_try) 2>&5
6901 ac_status=$?
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; }; then
6904 ac_cv_member_struct_stat_st_blocks=yes
6905 else
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6909 cat >conftest.$ac_ext <<_ACEOF
6910 /* confdefs.h. */
6911 _ACEOF
6912 cat confdefs.h >>conftest.$ac_ext
6913 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h. */
6915 $ac_includes_default
6917 main ()
6919 static struct stat ac_aggr;
6920 if (sizeof ac_aggr.st_blocks)
6921 return 0;
6923 return 0;
6925 _ACEOF
6926 rm -f conftest.$ac_objext
6927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6928 (eval $ac_compile) 2>conftest.er1
6929 ac_status=$?
6930 grep -v '^ *+' conftest.er1 >conftest.err
6931 rm -f conftest.er1
6932 cat conftest.err >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } &&
6935 { ac_try='test -z "$ac_c_werror_flag"
6936 || test ! -s conftest.err'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 (eval $ac_try) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; } &&
6942 { ac_try='test -s conftest.$ac_objext'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 (eval $ac_try) 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 ac_cv_member_struct_stat_st_blocks=yes
6949 else
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6953 ac_cv_member_struct_stat_st_blocks=no
6955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6959 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6960 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
6961 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6963 cat >>confdefs.h <<_ACEOF
6964 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6965 _ACEOF
6970 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6971 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
6972 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 else
6975 cat >conftest.$ac_ext <<_ACEOF
6976 /* confdefs.h. */
6977 _ACEOF
6978 cat confdefs.h >>conftest.$ac_ext
6979 cat >>conftest.$ac_ext <<_ACEOF
6980 /* end confdefs.h. */
6981 $ac_includes_default
6983 main ()
6985 static struct stat ac_aggr;
6986 if (ac_aggr.st_rdev)
6987 return 0;
6989 return 0;
6991 _ACEOF
6992 rm -f conftest.$ac_objext
6993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6994 (eval $ac_compile) 2>conftest.er1
6995 ac_status=$?
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } &&
7001 { ac_try='test -z "$ac_c_werror_flag"
7002 || test ! -s conftest.err'
7003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 (eval $ac_try) 2>&5
7005 ac_status=$?
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); }; } &&
7008 { ac_try='test -s conftest.$ac_objext'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 (eval $ac_try) 2>&5
7011 ac_status=$?
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; }; then
7014 ac_cv_member_struct_stat_st_rdev=yes
7015 else
7016 echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.$ac_ext >&5
7019 cat >conftest.$ac_ext <<_ACEOF
7020 /* confdefs.h. */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7025 $ac_includes_default
7027 main ()
7029 static struct stat ac_aggr;
7030 if (sizeof ac_aggr.st_rdev)
7031 return 0;
7033 return 0;
7035 _ACEOF
7036 rm -f conftest.$ac_objext
7037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7038 (eval $ac_compile) 2>conftest.er1
7039 ac_status=$?
7040 grep -v '^ *+' conftest.er1 >conftest.err
7041 rm -f conftest.er1
7042 cat conftest.err >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try='test -z "$ac_c_werror_flag"
7046 || test ! -s conftest.err'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; } &&
7052 { ac_try='test -s conftest.$ac_objext'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 (eval $ac_try) 2>&5
7055 ac_status=$?
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058 ac_cv_member_struct_stat_st_rdev=yes
7059 else
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 ac_cv_member_struct_stat_st_rdev=no
7065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7069 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7070 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7071 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7073 cat >>confdefs.h <<_ACEOF
7074 #define HAVE_STRUCT_STAT_ST_RDEV 1
7075 _ACEOF
7081 # Check for complex math functions
7082 echo "$as_me:$LINENO: checking for csin in -lm" >&5
7083 echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
7084 if test "${ac_cv_lib_m_csin+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087 ac_check_lib_save_LIBS=$LIBS
7088 LIBS="-lm $LIBS"
7089 if test x$gcc_no_link = xyes; then
7090 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7091 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7092 { (exit 1); exit 1; }; }
7094 cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h. */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7101 /* Override any gcc2 internal prototype to avoid an error. */
7102 #ifdef __cplusplus
7103 extern "C"
7104 #endif
7105 /* We use char because int might match the return type of a gcc2
7106 builtin and then its argument prototype would still apply. */
7107 char csin ();
7109 main ()
7111 csin ();
7113 return 0;
7115 _ACEOF
7116 rm -f conftest.$ac_objext conftest$ac_exeext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118 (eval $ac_link) 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } &&
7125 { ac_try='test -z "$ac_c_werror_flag"
7126 || test ! -s conftest.err'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 (eval $ac_try) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; } &&
7132 { ac_try='test -s conftest$ac_exeext'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 (eval $ac_try) 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7138 ac_cv_lib_m_csin=yes
7139 else
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 ac_cv_lib_m_csin=no
7145 rm -f conftest.err conftest.$ac_objext \
7146 conftest$ac_exeext conftest.$ac_ext
7147 LIBS=$ac_check_lib_save_LIBS
7149 echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
7150 echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
7151 if test $ac_cv_lib_m_csin = yes; then
7152 need_math="no"
7153 else
7154 need_math="yes"
7158 # Check for library functions.
7164 for ac_func in getrusage times mkstemp strtof snprintf
7166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7167 echo "$as_me:$LINENO: checking for $ac_func" >&5
7168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7169 if eval "test \"\${$as_ac_var+set}\" = set"; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172 if test x$gcc_no_link = xyes; then
7173 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7174 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7175 { (exit 1); exit 1; }; }
7177 cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h. */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7185 #define $ac_func innocuous_$ac_func
7187 /* System header to define __stub macros and hopefully few prototypes,
7188 which can conflict with char $ac_func (); below.
7189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7190 <limits.h> exists even on freestanding compilers. */
7192 #ifdef __STDC__
7193 # include <limits.h>
7194 #else
7195 # include <assert.h>
7196 #endif
7198 #undef $ac_func
7200 /* Override any gcc2 internal prototype to avoid an error. */
7201 #ifdef __cplusplus
7202 extern "C"
7204 #endif
7205 /* We use char because int might match the return type of a gcc2
7206 builtin and then its argument prototype would still apply. */
7207 char $ac_func ();
7208 /* The GNU C library defines this for functions which it implements
7209 to always fail with ENOSYS. Some functions are actually named
7210 something starting with __ and the normal name is an alias. */
7211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7212 choke me
7213 #else
7214 char (*f) () = $ac_func;
7215 #endif
7216 #ifdef __cplusplus
7218 #endif
7221 main ()
7223 return f != $ac_func;
7225 return 0;
7227 _ACEOF
7228 rm -f conftest.$ac_objext conftest$ac_exeext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7230 (eval $ac_link) 2>conftest.er1
7231 ac_status=$?
7232 grep -v '^ *+' conftest.er1 >conftest.err
7233 rm -f conftest.er1
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
7237 { ac_try='test -z "$ac_c_werror_flag"
7238 || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 (eval $ac_try) 2>&5
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try='test -s conftest$ac_exeext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 (eval $ac_try) 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 eval "$as_ac_var=yes"
7251 else
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7255 eval "$as_ac_var=no"
7257 rm -f conftest.err conftest.$ac_objext \
7258 conftest$ac_exeext conftest.$ac_ext
7260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7262 if test `eval echo '${'$as_ac_var'}'` = yes; then
7263 cat >>confdefs.h <<_ACEOF
7264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7265 _ACEOF
7268 done
7271 # Check libc for getgid, getpid, getuid
7272 echo "$as_me:$LINENO: checking for getgid in -lc" >&5
7273 echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
7274 if test "${ac_cv_lib_c_getgid+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277 ac_check_lib_save_LIBS=$LIBS
7278 LIBS="-lc $LIBS"
7279 if test x$gcc_no_link = xyes; then
7280 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7281 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7282 { (exit 1); exit 1; }; }
7284 cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h. */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7291 /* Override any gcc2 internal prototype to avoid an error. */
7292 #ifdef __cplusplus
7293 extern "C"
7294 #endif
7295 /* We use char because int might match the return type of a gcc2
7296 builtin and then its argument prototype would still apply. */
7297 char getgid ();
7299 main ()
7301 getgid ();
7303 return 0;
7305 _ACEOF
7306 rm -f conftest.$ac_objext conftest$ac_exeext
7307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7308 (eval $ac_link) 2>conftest.er1
7309 ac_status=$?
7310 grep -v '^ *+' conftest.er1 >conftest.err
7311 rm -f conftest.er1
7312 cat conftest.err >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } &&
7315 { ac_try='test -z "$ac_c_werror_flag"
7316 || test ! -s conftest.err'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; } &&
7322 { ac_try='test -s conftest$ac_exeext'
7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 (eval $ac_try) 2>&5
7325 ac_status=$?
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; }; then
7328 ac_cv_lib_c_getgid=yes
7329 else
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7333 ac_cv_lib_c_getgid=no
7335 rm -f conftest.err conftest.$ac_objext \
7336 conftest$ac_exeext conftest.$ac_ext
7337 LIBS=$ac_check_lib_save_LIBS
7339 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
7340 echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
7341 if test $ac_cv_lib_c_getgid = yes; then
7343 cat >>confdefs.h <<\_ACEOF
7344 #define HAVE_GETGID 1
7345 _ACEOF
7349 echo "$as_me:$LINENO: checking for getpid in -lc" >&5
7350 echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
7351 if test "${ac_cv_lib_c_getpid+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354 ac_check_lib_save_LIBS=$LIBS
7355 LIBS="-lc $LIBS"
7356 if test x$gcc_no_link = xyes; then
7357 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7358 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7359 { (exit 1); exit 1; }; }
7361 cat >conftest.$ac_ext <<_ACEOF
7362 /* confdefs.h. */
7363 _ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7368 /* Override any gcc2 internal prototype to avoid an error. */
7369 #ifdef __cplusplus
7370 extern "C"
7371 #endif
7372 /* We use char because int might match the return type of a gcc2
7373 builtin and then its argument prototype would still apply. */
7374 char getpid ();
7376 main ()
7378 getpid ();
7380 return 0;
7382 _ACEOF
7383 rm -f conftest.$ac_objext conftest$ac_exeext
7384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7385 (eval $ac_link) 2>conftest.er1
7386 ac_status=$?
7387 grep -v '^ *+' conftest.er1 >conftest.err
7388 rm -f conftest.er1
7389 cat conftest.err >&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); } &&
7392 { ac_try='test -z "$ac_c_werror_flag"
7393 || test ! -s conftest.err'
7394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395 (eval $ac_try) 2>&5
7396 ac_status=$?
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); }; } &&
7399 { ac_try='test -s conftest$ac_exeext'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 (eval $ac_try) 2>&5
7402 ac_status=$?
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; }; then
7405 ac_cv_lib_c_getpid=yes
7406 else
7407 echo "$as_me: failed program was:" >&5
7408 sed 's/^/| /' conftest.$ac_ext >&5
7410 ac_cv_lib_c_getpid=no
7412 rm -f conftest.err conftest.$ac_objext \
7413 conftest$ac_exeext conftest.$ac_ext
7414 LIBS=$ac_check_lib_save_LIBS
7416 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
7417 echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
7418 if test $ac_cv_lib_c_getpid = yes; then
7420 cat >>confdefs.h <<\_ACEOF
7421 #define HAVE_GETPID 1
7422 _ACEOF
7426 echo "$as_me:$LINENO: checking for getuid in -lc" >&5
7427 echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
7428 if test "${ac_cv_lib_c_getuid+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 else
7431 ac_check_lib_save_LIBS=$LIBS
7432 LIBS="-lc $LIBS"
7433 if test x$gcc_no_link = xyes; then
7434 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7435 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7436 { (exit 1); exit 1; }; }
7438 cat >conftest.$ac_ext <<_ACEOF
7439 /* confdefs.h. */
7440 _ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7445 /* Override any gcc2 internal prototype to avoid an error. */
7446 #ifdef __cplusplus
7447 extern "C"
7448 #endif
7449 /* We use char because int might match the return type of a gcc2
7450 builtin and then its argument prototype would still apply. */
7451 char getuid ();
7453 main ()
7455 getuid ();
7457 return 0;
7459 _ACEOF
7460 rm -f conftest.$ac_objext conftest$ac_exeext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7462 (eval $ac_link) 2>conftest.er1
7463 ac_status=$?
7464 grep -v '^ *+' conftest.er1 >conftest.err
7465 rm -f conftest.er1
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } &&
7469 { ac_try='test -z "$ac_c_werror_flag"
7470 || test ! -s conftest.err'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; } &&
7476 { ac_try='test -s conftest$ac_exeext'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 ac_cv_lib_c_getuid=yes
7483 else
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7487 ac_cv_lib_c_getuid=no
7489 rm -f conftest.err conftest.$ac_objext \
7490 conftest$ac_exeext conftest.$ac_ext
7491 LIBS=$ac_check_lib_save_LIBS
7493 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
7494 echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
7495 if test $ac_cv_lib_c_getuid = yes; then
7497 cat >>confdefs.h <<\_ACEOF
7498 #define HAVE_GETUID 1
7499 _ACEOF
7504 # Check for C99 (and other IEEE) math functions
7505 # ??? This list seems awful long. Is there a better way to test for these?
7506 echo "$as_me:$LINENO: checking for acosf in -lm" >&5
7507 echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
7508 if test "${ac_cv_lib_m_acosf+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511 ac_check_lib_save_LIBS=$LIBS
7512 LIBS="-lm $LIBS"
7513 if test x$gcc_no_link = xyes; then
7514 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7515 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7516 { (exit 1); exit 1; }; }
7518 cat >conftest.$ac_ext <<_ACEOF
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7525 /* Override any gcc2 internal prototype to avoid an error. */
7526 #ifdef __cplusplus
7527 extern "C"
7528 #endif
7529 /* We use char because int might match the return type of a gcc2
7530 builtin and then its argument prototype would still apply. */
7531 char acosf ();
7533 main ()
7535 acosf ();
7537 return 0;
7539 _ACEOF
7540 rm -f conftest.$ac_objext conftest$ac_exeext
7541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7542 (eval $ac_link) 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } &&
7549 { ac_try='test -z "$ac_c_werror_flag"
7550 || test ! -s conftest.err'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 (eval $ac_try) 2>&5
7553 ac_status=$?
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; } &&
7556 { ac_try='test -s conftest$ac_exeext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 (eval $ac_try) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7562 ac_cv_lib_m_acosf=yes
7563 else
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7567 ac_cv_lib_m_acosf=no
7569 rm -f conftest.err conftest.$ac_objext \
7570 conftest$ac_exeext conftest.$ac_ext
7571 LIBS=$ac_check_lib_save_LIBS
7573 echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
7574 echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
7575 if test $ac_cv_lib_m_acosf = yes; then
7577 cat >>confdefs.h <<\_ACEOF
7578 #define HAVE_ACOSF 1
7579 _ACEOF
7583 echo "$as_me:$LINENO: checking for asinf in -lm" >&5
7584 echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
7585 if test "${ac_cv_lib_m_asinf+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588 ac_check_lib_save_LIBS=$LIBS
7589 LIBS="-lm $LIBS"
7590 if test x$gcc_no_link = xyes; then
7591 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7592 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7593 { (exit 1); exit 1; }; }
7595 cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h. */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7602 /* Override any gcc2 internal prototype to avoid an error. */
7603 #ifdef __cplusplus
7604 extern "C"
7605 #endif
7606 /* We use char because int might match the return type of a gcc2
7607 builtin and then its argument prototype would still apply. */
7608 char asinf ();
7610 main ()
7612 asinf ();
7614 return 0;
7616 _ACEOF
7617 rm -f conftest.$ac_objext conftest$ac_exeext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7619 (eval $ac_link) 2>conftest.er1
7620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
7626 { ac_try='test -z "$ac_c_werror_flag"
7627 || test ! -s conftest.err'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 (eval $ac_try) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; } &&
7633 { ac_try='test -s conftest$ac_exeext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 (eval $ac_try) 2>&5
7636 ac_status=$?
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 ac_cv_lib_m_asinf=yes
7640 else
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7644 ac_cv_lib_m_asinf=no
7646 rm -f conftest.err conftest.$ac_objext \
7647 conftest$ac_exeext conftest.$ac_ext
7648 LIBS=$ac_check_lib_save_LIBS
7650 echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
7651 echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
7652 if test $ac_cv_lib_m_asinf = yes; then
7654 cat >>confdefs.h <<\_ACEOF
7655 #define HAVE_ASINF 1
7656 _ACEOF
7660 echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
7661 echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
7662 if test "${ac_cv_lib_m_atan2f+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665 ac_check_lib_save_LIBS=$LIBS
7666 LIBS="-lm $LIBS"
7667 if test x$gcc_no_link = xyes; then
7668 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7670 { (exit 1); exit 1; }; }
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h. */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7679 /* Override any gcc2 internal prototype to avoid an error. */
7680 #ifdef __cplusplus
7681 extern "C"
7682 #endif
7683 /* We use char because int might match the return type of a gcc2
7684 builtin and then its argument prototype would still apply. */
7685 char atan2f ();
7687 main ()
7689 atan2f ();
7691 return 0;
7693 _ACEOF
7694 rm -f conftest.$ac_objext conftest$ac_exeext
7695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7696 (eval $ac_link) 2>conftest.er1
7697 ac_status=$?
7698 grep -v '^ *+' conftest.er1 >conftest.err
7699 rm -f conftest.er1
7700 cat conftest.err >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } &&
7703 { ac_try='test -z "$ac_c_werror_flag"
7704 || test ! -s conftest.err'
7705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706 (eval $ac_try) 2>&5
7707 ac_status=$?
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); }; } &&
7710 { ac_try='test -s conftest$ac_exeext'
7711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 (eval $ac_try) 2>&5
7713 ac_status=$?
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); }; }; then
7716 ac_cv_lib_m_atan2f=yes
7717 else
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7721 ac_cv_lib_m_atan2f=no
7723 rm -f conftest.err conftest.$ac_objext \
7724 conftest$ac_exeext conftest.$ac_ext
7725 LIBS=$ac_check_lib_save_LIBS
7727 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
7728 echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
7729 if test $ac_cv_lib_m_atan2f = yes; then
7731 cat >>confdefs.h <<\_ACEOF
7732 #define HAVE_ATAN2F 1
7733 _ACEOF
7737 echo "$as_me:$LINENO: checking for atanf in -lm" >&5
7738 echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
7739 if test "${ac_cv_lib_m_atanf+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742 ac_check_lib_save_LIBS=$LIBS
7743 LIBS="-lm $LIBS"
7744 if test x$gcc_no_link = xyes; then
7745 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7746 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7747 { (exit 1); exit 1; }; }
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7756 /* Override any gcc2 internal prototype to avoid an error. */
7757 #ifdef __cplusplus
7758 extern "C"
7759 #endif
7760 /* We use char because int might match the return type of a gcc2
7761 builtin and then its argument prototype would still apply. */
7762 char atanf ();
7764 main ()
7766 atanf ();
7768 return 0;
7770 _ACEOF
7771 rm -f conftest.$ac_objext conftest$ac_exeext
7772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773 (eval $ac_link) 2>conftest.er1
7774 ac_status=$?
7775 grep -v '^ *+' conftest.er1 >conftest.err
7776 rm -f conftest.er1
7777 cat conftest.err >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } &&
7780 { ac_try='test -z "$ac_c_werror_flag"
7781 || test ! -s conftest.err'
7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 (eval $ac_try) 2>&5
7784 ac_status=$?
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; } &&
7787 { ac_try='test -s conftest$ac_exeext'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 (eval $ac_try) 2>&5
7790 ac_status=$?
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; }; then
7793 ac_cv_lib_m_atanf=yes
7794 else
7795 echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7798 ac_cv_lib_m_atanf=no
7800 rm -f conftest.err conftest.$ac_objext \
7801 conftest$ac_exeext conftest.$ac_ext
7802 LIBS=$ac_check_lib_save_LIBS
7804 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
7805 echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
7806 if test $ac_cv_lib_m_atanf = yes; then
7808 cat >>confdefs.h <<\_ACEOF
7809 #define HAVE_ATANF 1
7810 _ACEOF
7814 echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
7815 echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
7816 if test "${ac_cv_lib_m_ceilf+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819 ac_check_lib_save_LIBS=$LIBS
7820 LIBS="-lm $LIBS"
7821 if test x$gcc_no_link = xyes; then
7822 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7823 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7824 { (exit 1); exit 1; }; }
7826 cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h. */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7833 /* Override any gcc2 internal prototype to avoid an error. */
7834 #ifdef __cplusplus
7835 extern "C"
7836 #endif
7837 /* We use char because int might match the return type of a gcc2
7838 builtin and then its argument prototype would still apply. */
7839 char ceilf ();
7841 main ()
7843 ceilf ();
7845 return 0;
7847 _ACEOF
7848 rm -f conftest.$ac_objext conftest$ac_exeext
7849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7850 (eval $ac_link) 2>conftest.er1
7851 ac_status=$?
7852 grep -v '^ *+' conftest.er1 >conftest.err
7853 rm -f conftest.er1
7854 cat conftest.err >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } &&
7857 { ac_try='test -z "$ac_c_werror_flag"
7858 || test ! -s conftest.err'
7859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860 (eval $ac_try) 2>&5
7861 ac_status=$?
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; } &&
7864 { ac_try='test -s conftest$ac_exeext'
7865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866 (eval $ac_try) 2>&5
7867 ac_status=$?
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); }; }; then
7870 ac_cv_lib_m_ceilf=yes
7871 else
7872 echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.$ac_ext >&5
7875 ac_cv_lib_m_ceilf=no
7877 rm -f conftest.err conftest.$ac_objext \
7878 conftest$ac_exeext conftest.$ac_ext
7879 LIBS=$ac_check_lib_save_LIBS
7881 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
7882 echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
7883 if test $ac_cv_lib_m_ceilf = yes; then
7885 cat >>confdefs.h <<\_ACEOF
7886 #define HAVE_CEILF 1
7887 _ACEOF
7891 echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
7892 echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
7893 if test "${ac_cv_lib_m_copysignf+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 else
7896 ac_check_lib_save_LIBS=$LIBS
7897 LIBS="-lm $LIBS"
7898 if test x$gcc_no_link = xyes; then
7899 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7900 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7901 { (exit 1); exit 1; }; }
7903 cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h. */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7910 /* Override any gcc2 internal prototype to avoid an error. */
7911 #ifdef __cplusplus
7912 extern "C"
7913 #endif
7914 /* We use char because int might match the return type of a gcc2
7915 builtin and then its argument prototype would still apply. */
7916 char copysignf ();
7918 main ()
7920 copysignf ();
7922 return 0;
7924 _ACEOF
7925 rm -f conftest.$ac_objext conftest$ac_exeext
7926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7927 (eval $ac_link) 2>conftest.er1
7928 ac_status=$?
7929 grep -v '^ *+' conftest.er1 >conftest.err
7930 rm -f conftest.er1
7931 cat conftest.err >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } &&
7934 { ac_try='test -z "$ac_c_werror_flag"
7935 || test ! -s conftest.err'
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 (eval $ac_try) 2>&5
7938 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; } &&
7941 { ac_try='test -s conftest$ac_exeext'
7942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943 (eval $ac_try) 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; }; then
7947 ac_cv_lib_m_copysignf=yes
7948 else
7949 echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7952 ac_cv_lib_m_copysignf=no
7954 rm -f conftest.err conftest.$ac_objext \
7955 conftest$ac_exeext conftest.$ac_ext
7956 LIBS=$ac_check_lib_save_LIBS
7958 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
7959 echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
7960 if test $ac_cv_lib_m_copysignf = yes; then
7962 cat >>confdefs.h <<\_ACEOF
7963 #define HAVE_COPYSIGNF 1
7964 _ACEOF
7968 echo "$as_me:$LINENO: checking for cosf in -lm" >&5
7969 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
7970 if test "${ac_cv_lib_m_cosf+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973 ac_check_lib_save_LIBS=$LIBS
7974 LIBS="-lm $LIBS"
7975 if test x$gcc_no_link = xyes; then
7976 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7977 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7978 { (exit 1); exit 1; }; }
7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7987 /* Override any gcc2 internal prototype to avoid an error. */
7988 #ifdef __cplusplus
7989 extern "C"
7990 #endif
7991 /* We use char because int might match the return type of a gcc2
7992 builtin and then its argument prototype would still apply. */
7993 char cosf ();
7995 main ()
7997 cosf ();
7999 return 0;
8001 _ACEOF
8002 rm -f conftest.$ac_objext conftest$ac_exeext
8003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8004 (eval $ac_link) 2>conftest.er1
8005 ac_status=$?
8006 grep -v '^ *+' conftest.er1 >conftest.err
8007 rm -f conftest.er1
8008 cat conftest.err >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } &&
8011 { ac_try='test -z "$ac_c_werror_flag"
8012 || test ! -s conftest.err'
8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014 (eval $ac_try) 2>&5
8015 ac_status=$?
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; } &&
8018 { ac_try='test -s conftest$ac_exeext'
8019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020 (eval $ac_try) 2>&5
8021 ac_status=$?
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); }; }; then
8024 ac_cv_lib_m_cosf=yes
8025 else
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8029 ac_cv_lib_m_cosf=no
8031 rm -f conftest.err conftest.$ac_objext \
8032 conftest$ac_exeext conftest.$ac_ext
8033 LIBS=$ac_check_lib_save_LIBS
8035 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
8036 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
8037 if test $ac_cv_lib_m_cosf = yes; then
8039 cat >>confdefs.h <<\_ACEOF
8040 #define HAVE_COSF 1
8041 _ACEOF
8045 echo "$as_me:$LINENO: checking for coshf in -lm" >&5
8046 echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
8047 if test "${ac_cv_lib_m_coshf+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050 ac_check_lib_save_LIBS=$LIBS
8051 LIBS="-lm $LIBS"
8052 if test x$gcc_no_link = xyes; then
8053 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8054 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8055 { (exit 1); exit 1; }; }
8057 cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h. */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8064 /* Override any gcc2 internal prototype to avoid an error. */
8065 #ifdef __cplusplus
8066 extern "C"
8067 #endif
8068 /* We use char because int might match the return type of a gcc2
8069 builtin and then its argument prototype would still apply. */
8070 char coshf ();
8072 main ()
8074 coshf ();
8076 return 0;
8078 _ACEOF
8079 rm -f conftest.$ac_objext conftest$ac_exeext
8080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8081 (eval $ac_link) 2>conftest.er1
8082 ac_status=$?
8083 grep -v '^ *+' conftest.er1 >conftest.err
8084 rm -f conftest.er1
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } &&
8088 { ac_try='test -z "$ac_c_werror_flag"
8089 || test ! -s conftest.err'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 (eval $ac_try) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; } &&
8095 { ac_try='test -s conftest$ac_exeext'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 (eval $ac_try) 2>&5
8098 ac_status=$?
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 ac_cv_lib_m_coshf=yes
8102 else
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 ac_cv_lib_m_coshf=no
8108 rm -f conftest.err conftest.$ac_objext \
8109 conftest$ac_exeext conftest.$ac_ext
8110 LIBS=$ac_check_lib_save_LIBS
8112 echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
8113 echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
8114 if test $ac_cv_lib_m_coshf = yes; then
8116 cat >>confdefs.h <<\_ACEOF
8117 #define HAVE_COSHF 1
8118 _ACEOF
8122 echo "$as_me:$LINENO: checking for expf in -lm" >&5
8123 echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
8124 if test "${ac_cv_lib_m_expf+set}" = set; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8126 else
8127 ac_check_lib_save_LIBS=$LIBS
8128 LIBS="-lm $LIBS"
8129 if test x$gcc_no_link = xyes; then
8130 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8131 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8132 { (exit 1); exit 1; }; }
8134 cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h. */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8141 /* Override any gcc2 internal prototype to avoid an error. */
8142 #ifdef __cplusplus
8143 extern "C"
8144 #endif
8145 /* We use char because int might match the return type of a gcc2
8146 builtin and then its argument prototype would still apply. */
8147 char expf ();
8149 main ()
8151 expf ();
8153 return 0;
8155 _ACEOF
8156 rm -f conftest.$ac_objext conftest$ac_exeext
8157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8158 (eval $ac_link) 2>conftest.er1
8159 ac_status=$?
8160 grep -v '^ *+' conftest.er1 >conftest.err
8161 rm -f conftest.er1
8162 cat conftest.err >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } &&
8165 { ac_try='test -z "$ac_c_werror_flag"
8166 || test ! -s conftest.err'
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 (eval $ac_try) 2>&5
8169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; } &&
8172 { ac_try='test -s conftest$ac_exeext'
8173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 (eval $ac_try) 2>&5
8175 ac_status=$?
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; }; then
8178 ac_cv_lib_m_expf=yes
8179 else
8180 echo "$as_me: failed program was:" >&5
8181 sed 's/^/| /' conftest.$ac_ext >&5
8183 ac_cv_lib_m_expf=no
8185 rm -f conftest.err conftest.$ac_objext \
8186 conftest$ac_exeext conftest.$ac_ext
8187 LIBS=$ac_check_lib_save_LIBS
8189 echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
8190 echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
8191 if test $ac_cv_lib_m_expf = yes; then
8193 cat >>confdefs.h <<\_ACEOF
8194 #define HAVE_EXPF 1
8195 _ACEOF
8199 echo "$as_me:$LINENO: checking for fabsf in -lm" >&5
8200 echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6
8201 if test "${ac_cv_lib_m_fabsf+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204 ac_check_lib_save_LIBS=$LIBS
8205 LIBS="-lm $LIBS"
8206 if test x$gcc_no_link = xyes; then
8207 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8208 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8209 { (exit 1); exit 1; }; }
8211 cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h. */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8218 /* Override any gcc2 internal prototype to avoid an error. */
8219 #ifdef __cplusplus
8220 extern "C"
8221 #endif
8222 /* We use char because int might match the return type of a gcc2
8223 builtin and then its argument prototype would still apply. */
8224 char fabsf ();
8226 main ()
8228 fabsf ();
8230 return 0;
8232 _ACEOF
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235 (eval $ac_link) 2>conftest.er1
8236 ac_status=$?
8237 grep -v '^ *+' conftest.er1 >conftest.err
8238 rm -f conftest.er1
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } &&
8242 { ac_try='test -z "$ac_c_werror_flag"
8243 || test ! -s conftest.err'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 (eval $ac_try) 2>&5
8246 ac_status=$?
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; } &&
8249 { ac_try='test -s conftest$ac_exeext'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 (eval $ac_try) 2>&5
8252 ac_status=$?
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; }; then
8255 ac_cv_lib_m_fabsf=yes
8256 else
8257 echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8260 ac_cv_lib_m_fabsf=no
8262 rm -f conftest.err conftest.$ac_objext \
8263 conftest$ac_exeext conftest.$ac_ext
8264 LIBS=$ac_check_lib_save_LIBS
8266 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5
8267 echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6
8268 if test $ac_cv_lib_m_fabsf = yes; then
8270 cat >>confdefs.h <<\_ACEOF
8271 #define HAVE_FABSF 1
8272 _ACEOF
8276 echo "$as_me:$LINENO: checking for floorf in -lm" >&5
8277 echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
8278 if test "${ac_cv_lib_m_floorf+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 else
8281 ac_check_lib_save_LIBS=$LIBS
8282 LIBS="-lm $LIBS"
8283 if test x$gcc_no_link = xyes; then
8284 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8285 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8286 { (exit 1); exit 1; }; }
8288 cat >conftest.$ac_ext <<_ACEOF
8289 /* confdefs.h. */
8290 _ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8295 /* Override any gcc2 internal prototype to avoid an error. */
8296 #ifdef __cplusplus
8297 extern "C"
8298 #endif
8299 /* We use char because int might match the return type of a gcc2
8300 builtin and then its argument prototype would still apply. */
8301 char floorf ();
8303 main ()
8305 floorf ();
8307 return 0;
8309 _ACEOF
8310 rm -f conftest.$ac_objext conftest$ac_exeext
8311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8312 (eval $ac_link) 2>conftest.er1
8313 ac_status=$?
8314 grep -v '^ *+' conftest.er1 >conftest.err
8315 rm -f conftest.er1
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } &&
8319 { ac_try='test -z "$ac_c_werror_flag"
8320 || test ! -s conftest.err'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; } &&
8326 { ac_try='test -s conftest$ac_exeext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_cv_lib_m_floorf=yes
8333 else
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8337 ac_cv_lib_m_floorf=no
8339 rm -f conftest.err conftest.$ac_objext \
8340 conftest$ac_exeext conftest.$ac_ext
8341 LIBS=$ac_check_lib_save_LIBS
8343 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
8344 echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
8345 if test $ac_cv_lib_m_floorf = yes; then
8347 cat >>confdefs.h <<\_ACEOF
8348 #define HAVE_FLOORF 1
8349 _ACEOF
8353 echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
8354 echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
8355 if test "${ac_cv_lib_m_frexpf+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358 ac_check_lib_save_LIBS=$LIBS
8359 LIBS="-lm $LIBS"
8360 if test x$gcc_no_link = xyes; then
8361 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8362 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8363 { (exit 1); exit 1; }; }
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8372 /* Override any gcc2 internal prototype to avoid an error. */
8373 #ifdef __cplusplus
8374 extern "C"
8375 #endif
8376 /* We use char because int might match the return type of a gcc2
8377 builtin and then its argument prototype would still apply. */
8378 char frexpf ();
8380 main ()
8382 frexpf ();
8384 return 0;
8386 _ACEOF
8387 rm -f conftest.$ac_objext conftest$ac_exeext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389 (eval $ac_link) 2>conftest.er1
8390 ac_status=$?
8391 grep -v '^ *+' conftest.er1 >conftest.err
8392 rm -f conftest.er1
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -z "$ac_c_werror_flag"
8397 || test ! -s conftest.err'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; } &&
8403 { ac_try='test -s conftest$ac_exeext'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 (eval $ac_try) 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8409 ac_cv_lib_m_frexpf=yes
8410 else
8411 echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8414 ac_cv_lib_m_frexpf=no
8416 rm -f conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
8418 LIBS=$ac_check_lib_save_LIBS
8420 echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
8421 echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
8422 if test $ac_cv_lib_m_frexpf = yes; then
8424 cat >>confdefs.h <<\_ACEOF
8425 #define HAVE_FREXPF 1
8426 _ACEOF
8430 echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
8431 echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
8432 if test "${ac_cv_lib_m_hypotf+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435 ac_check_lib_save_LIBS=$LIBS
8436 LIBS="-lm $LIBS"
8437 if test x$gcc_no_link = xyes; then
8438 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8439 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8440 { (exit 1); exit 1; }; }
8442 cat >conftest.$ac_ext <<_ACEOF
8443 /* confdefs.h. */
8444 _ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8449 /* Override any gcc2 internal prototype to avoid an error. */
8450 #ifdef __cplusplus
8451 extern "C"
8452 #endif
8453 /* We use char because int might match the return type of a gcc2
8454 builtin and then its argument prototype would still apply. */
8455 char hypotf ();
8457 main ()
8459 hypotf ();
8461 return 0;
8463 _ACEOF
8464 rm -f conftest.$ac_objext conftest$ac_exeext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466 (eval $ac_link) 2>conftest.er1
8467 ac_status=$?
8468 grep -v '^ *+' conftest.er1 >conftest.err
8469 rm -f conftest.er1
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try='test -z "$ac_c_werror_flag"
8474 || test ! -s conftest.err'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 (eval $ac_try) 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; } &&
8480 { ac_try='test -s conftest$ac_exeext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 (eval $ac_try) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_cv_lib_m_hypotf=yes
8487 else
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8491 ac_cv_lib_m_hypotf=no
8493 rm -f conftest.err conftest.$ac_objext \
8494 conftest$ac_exeext conftest.$ac_ext
8495 LIBS=$ac_check_lib_save_LIBS
8497 echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
8498 echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
8499 if test $ac_cv_lib_m_hypotf = yes; then
8501 cat >>confdefs.h <<\_ACEOF
8502 #define HAVE_HYPOTF 1
8503 _ACEOF
8507 echo "$as_me:$LINENO: checking for logf in -lm" >&5
8508 echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
8509 if test "${ac_cv_lib_m_logf+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512 ac_check_lib_save_LIBS=$LIBS
8513 LIBS="-lm $LIBS"
8514 if test x$gcc_no_link = xyes; then
8515 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8516 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8517 { (exit 1); exit 1; }; }
8519 cat >conftest.$ac_ext <<_ACEOF
8520 /* confdefs.h. */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8526 /* Override any gcc2 internal prototype to avoid an error. */
8527 #ifdef __cplusplus
8528 extern "C"
8529 #endif
8530 /* We use char because int might match the return type of a gcc2
8531 builtin and then its argument prototype would still apply. */
8532 char logf ();
8534 main ()
8536 logf ();
8538 return 0;
8540 _ACEOF
8541 rm -f conftest.$ac_objext conftest$ac_exeext
8542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8543 (eval $ac_link) 2>conftest.er1
8544 ac_status=$?
8545 grep -v '^ *+' conftest.er1 >conftest.err
8546 rm -f conftest.er1
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } &&
8550 { ac_try='test -z "$ac_c_werror_flag"
8551 || test ! -s conftest.err'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; } &&
8557 { ac_try='test -s conftest$ac_exeext'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 (eval $ac_try) 2>&5
8560 ac_status=$?
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; }; then
8563 ac_cv_lib_m_logf=yes
8564 else
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8568 ac_cv_lib_m_logf=no
8570 rm -f conftest.err conftest.$ac_objext \
8571 conftest$ac_exeext conftest.$ac_ext
8572 LIBS=$ac_check_lib_save_LIBS
8574 echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
8575 echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
8576 if test $ac_cv_lib_m_logf = yes; then
8578 cat >>confdefs.h <<\_ACEOF
8579 #define HAVE_LOGF 1
8580 _ACEOF
8584 echo "$as_me:$LINENO: checking for log10f in -lm" >&5
8585 echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
8586 if test "${ac_cv_lib_m_log10f+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 else
8589 ac_check_lib_save_LIBS=$LIBS
8590 LIBS="-lm $LIBS"
8591 if test x$gcc_no_link = xyes; then
8592 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8594 { (exit 1); exit 1; }; }
8596 cat >conftest.$ac_ext <<_ACEOF
8597 /* confdefs.h. */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8603 /* Override any gcc2 internal prototype to avoid an error. */
8604 #ifdef __cplusplus
8605 extern "C"
8606 #endif
8607 /* We use char because int might match the return type of a gcc2
8608 builtin and then its argument prototype would still apply. */
8609 char log10f ();
8611 main ()
8613 log10f ();
8615 return 0;
8617 _ACEOF
8618 rm -f conftest.$ac_objext conftest$ac_exeext
8619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8620 (eval $ac_link) 2>conftest.er1
8621 ac_status=$?
8622 grep -v '^ *+' conftest.er1 >conftest.err
8623 rm -f conftest.er1
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } &&
8627 { ac_try='test -z "$ac_c_werror_flag"
8628 || test ! -s conftest.err'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 (eval $ac_try) 2>&5
8631 ac_status=$?
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; } &&
8634 { ac_try='test -s conftest$ac_exeext'
8635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636 (eval $ac_try) 2>&5
8637 ac_status=$?
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); }; }; then
8640 ac_cv_lib_m_log10f=yes
8641 else
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8645 ac_cv_lib_m_log10f=no
8647 rm -f conftest.err conftest.$ac_objext \
8648 conftest$ac_exeext conftest.$ac_ext
8649 LIBS=$ac_check_lib_save_LIBS
8651 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
8652 echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
8653 if test $ac_cv_lib_m_log10f = yes; then
8655 cat >>confdefs.h <<\_ACEOF
8656 #define HAVE_LOG10F 1
8657 _ACEOF
8661 echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
8662 echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
8663 if test "${ac_cv_lib_m_nextafter+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 else
8666 ac_check_lib_save_LIBS=$LIBS
8667 LIBS="-lm $LIBS"
8668 if test x$gcc_no_link = xyes; then
8669 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8670 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8671 { (exit 1); exit 1; }; }
8673 cat >conftest.$ac_ext <<_ACEOF
8674 /* confdefs.h. */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8680 /* Override any gcc2 internal prototype to avoid an error. */
8681 #ifdef __cplusplus
8682 extern "C"
8683 #endif
8684 /* We use char because int might match the return type of a gcc2
8685 builtin and then its argument prototype would still apply. */
8686 char nextafter ();
8688 main ()
8690 nextafter ();
8692 return 0;
8694 _ACEOF
8695 rm -f conftest.$ac_objext conftest$ac_exeext
8696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8697 (eval $ac_link) 2>conftest.er1
8698 ac_status=$?
8699 grep -v '^ *+' conftest.er1 >conftest.err
8700 rm -f conftest.er1
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try='test -z "$ac_c_werror_flag"
8705 || test ! -s conftest.err'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; } &&
8711 { ac_try='test -s conftest$ac_exeext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 ac_cv_lib_m_nextafter=yes
8718 else
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8722 ac_cv_lib_m_nextafter=no
8724 rm -f conftest.err conftest.$ac_objext \
8725 conftest$ac_exeext conftest.$ac_ext
8726 LIBS=$ac_check_lib_save_LIBS
8728 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
8729 echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
8730 if test $ac_cv_lib_m_nextafter = yes; then
8732 cat >>confdefs.h <<\_ACEOF
8733 #define HAVE_NEXTAFTER 1
8734 _ACEOF
8738 echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
8739 echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
8740 if test "${ac_cv_lib_m_nextafterf+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8743 ac_check_lib_save_LIBS=$LIBS
8744 LIBS="-lm $LIBS"
8745 if test x$gcc_no_link = xyes; then
8746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8747 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8748 { (exit 1); exit 1; }; }
8750 cat >conftest.$ac_ext <<_ACEOF
8751 /* confdefs.h. */
8752 _ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8757 /* Override any gcc2 internal prototype to avoid an error. */
8758 #ifdef __cplusplus
8759 extern "C"
8760 #endif
8761 /* We use char because int might match the return type of a gcc2
8762 builtin and then its argument prototype would still apply. */
8763 char nextafterf ();
8765 main ()
8767 nextafterf ();
8769 return 0;
8771 _ACEOF
8772 rm -f conftest.$ac_objext conftest$ac_exeext
8773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8774 (eval $ac_link) 2>conftest.er1
8775 ac_status=$?
8776 grep -v '^ *+' conftest.er1 >conftest.err
8777 rm -f conftest.er1
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } &&
8781 { ac_try='test -z "$ac_c_werror_flag"
8782 || test ! -s conftest.err'
8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784 (eval $ac_try) 2>&5
8785 ac_status=$?
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; } &&
8788 { ac_try='test -s conftest$ac_exeext'
8789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790 (eval $ac_try) 2>&5
8791 ac_status=$?
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); }; }; then
8794 ac_cv_lib_m_nextafterf=yes
8795 else
8796 echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8799 ac_cv_lib_m_nextafterf=no
8801 rm -f conftest.err conftest.$ac_objext \
8802 conftest$ac_exeext conftest.$ac_ext
8803 LIBS=$ac_check_lib_save_LIBS
8805 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
8806 echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
8807 if test $ac_cv_lib_m_nextafterf = yes; then
8809 cat >>confdefs.h <<\_ACEOF
8810 #define HAVE_NEXTAFTERF 1
8811 _ACEOF
8815 echo "$as_me:$LINENO: checking for powf in -lm" >&5
8816 echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
8817 if test "${ac_cv_lib_m_powf+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 else
8820 ac_check_lib_save_LIBS=$LIBS
8821 LIBS="-lm $LIBS"
8822 if test x$gcc_no_link = xyes; then
8823 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8824 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8825 { (exit 1); exit 1; }; }
8827 cat >conftest.$ac_ext <<_ACEOF
8828 /* confdefs.h. */
8829 _ACEOF
8830 cat confdefs.h >>conftest.$ac_ext
8831 cat >>conftest.$ac_ext <<_ACEOF
8832 /* end confdefs.h. */
8834 /* Override any gcc2 internal prototype to avoid an error. */
8835 #ifdef __cplusplus
8836 extern "C"
8837 #endif
8838 /* We use char because int might match the return type of a gcc2
8839 builtin and then its argument prototype would still apply. */
8840 char powf ();
8842 main ()
8844 powf ();
8846 return 0;
8848 _ACEOF
8849 rm -f conftest.$ac_objext conftest$ac_exeext
8850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8851 (eval $ac_link) 2>conftest.er1
8852 ac_status=$?
8853 grep -v '^ *+' conftest.er1 >conftest.err
8854 rm -f conftest.er1
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } &&
8858 { ac_try='test -z "$ac_c_werror_flag"
8859 || test ! -s conftest.err'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 (eval $ac_try) 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; } &&
8865 { ac_try='test -s conftest$ac_exeext'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867 (eval $ac_try) 2>&5
8868 ac_status=$?
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8871 ac_cv_lib_m_powf=yes
8872 else
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8876 ac_cv_lib_m_powf=no
8878 rm -f conftest.err conftest.$ac_objext \
8879 conftest$ac_exeext conftest.$ac_ext
8880 LIBS=$ac_check_lib_save_LIBS
8882 echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
8883 echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
8884 if test $ac_cv_lib_m_powf = yes; then
8886 cat >>confdefs.h <<\_ACEOF
8887 #define HAVE_POWF 1
8888 _ACEOF
8892 echo "$as_me:$LINENO: checking for round in -lm" >&5
8893 echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
8894 if test "${ac_cv_lib_m_round+set}" = set; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 else
8897 ac_check_lib_save_LIBS=$LIBS
8898 LIBS="-lm $LIBS"
8899 if test x$gcc_no_link = xyes; then
8900 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8901 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8902 { (exit 1); exit 1; }; }
8904 cat >conftest.$ac_ext <<_ACEOF
8905 /* confdefs.h. */
8906 _ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8911 /* Override any gcc2 internal prototype to avoid an error. */
8912 #ifdef __cplusplus
8913 extern "C"
8914 #endif
8915 /* We use char because int might match the return type of a gcc2
8916 builtin and then its argument prototype would still apply. */
8917 char round ();
8919 main ()
8921 round ();
8923 return 0;
8925 _ACEOF
8926 rm -f conftest.$ac_objext conftest$ac_exeext
8927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8928 (eval $ac_link) 2>conftest.er1
8929 ac_status=$?
8930 grep -v '^ *+' conftest.er1 >conftest.err
8931 rm -f conftest.er1
8932 cat conftest.err >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); } &&
8935 { ac_try='test -z "$ac_c_werror_flag"
8936 || test ! -s conftest.err'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 (eval $ac_try) 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; } &&
8942 { ac_try='test -s conftest$ac_exeext'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944 (eval $ac_try) 2>&5
8945 ac_status=$?
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8948 ac_cv_lib_m_round=yes
8949 else
8950 echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8953 ac_cv_lib_m_round=no
8955 rm -f conftest.err conftest.$ac_objext \
8956 conftest$ac_exeext conftest.$ac_ext
8957 LIBS=$ac_check_lib_save_LIBS
8959 echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
8960 echo "${ECHO_T}$ac_cv_lib_m_round" >&6
8961 if test $ac_cv_lib_m_round = yes; then
8963 cat >>confdefs.h <<\_ACEOF
8964 #define HAVE_ROUND 1
8965 _ACEOF
8969 echo "$as_me:$LINENO: checking for roundf in -lm" >&5
8970 echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
8971 if test "${ac_cv_lib_m_roundf+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8973 else
8974 ac_check_lib_save_LIBS=$LIBS
8975 LIBS="-lm $LIBS"
8976 if test x$gcc_no_link = xyes; then
8977 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8978 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8979 { (exit 1); exit 1; }; }
8981 cat >conftest.$ac_ext <<_ACEOF
8982 /* confdefs.h. */
8983 _ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8988 /* Override any gcc2 internal prototype to avoid an error. */
8989 #ifdef __cplusplus
8990 extern "C"
8991 #endif
8992 /* We use char because int might match the return type of a gcc2
8993 builtin and then its argument prototype would still apply. */
8994 char roundf ();
8996 main ()
8998 roundf ();
9000 return 0;
9002 _ACEOF
9003 rm -f conftest.$ac_objext conftest$ac_exeext
9004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9005 (eval $ac_link) 2>conftest.er1
9006 ac_status=$?
9007 grep -v '^ *+' conftest.er1 >conftest.err
9008 rm -f conftest.er1
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } &&
9012 { ac_try='test -z "$ac_c_werror_flag"
9013 || test ! -s conftest.err'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 (eval $ac_try) 2>&5
9016 ac_status=$?
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; } &&
9019 { ac_try='test -s conftest$ac_exeext'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 (eval $ac_try) 2>&5
9022 ac_status=$?
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9025 ac_cv_lib_m_roundf=yes
9026 else
9027 echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9030 ac_cv_lib_m_roundf=no
9032 rm -f conftest.err conftest.$ac_objext \
9033 conftest$ac_exeext conftest.$ac_ext
9034 LIBS=$ac_check_lib_save_LIBS
9036 echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
9037 echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
9038 if test $ac_cv_lib_m_roundf = yes; then
9040 cat >>confdefs.h <<\_ACEOF
9041 #define HAVE_ROUNDF 1
9042 _ACEOF
9046 echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
9047 echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
9048 if test "${ac_cv_lib_m_scalbnf+set}" = set; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 else
9051 ac_check_lib_save_LIBS=$LIBS
9052 LIBS="-lm $LIBS"
9053 if test x$gcc_no_link = xyes; then
9054 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9055 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9056 { (exit 1); exit 1; }; }
9058 cat >conftest.$ac_ext <<_ACEOF
9059 /* confdefs.h. */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9065 /* Override any gcc2 internal prototype to avoid an error. */
9066 #ifdef __cplusplus
9067 extern "C"
9068 #endif
9069 /* We use char because int might match the return type of a gcc2
9070 builtin and then its argument prototype would still apply. */
9071 char scalbnf ();
9073 main ()
9075 scalbnf ();
9077 return 0;
9079 _ACEOF
9080 rm -f conftest.$ac_objext conftest$ac_exeext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9082 (eval $ac_link) 2>conftest.er1
9083 ac_status=$?
9084 grep -v '^ *+' conftest.er1 >conftest.err
9085 rm -f conftest.er1
9086 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -z "$ac_c_werror_flag"
9090 || test ! -s conftest.err'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 (eval $ac_try) 2>&5
9093 ac_status=$?
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; } &&
9096 { ac_try='test -s conftest$ac_exeext'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 (eval $ac_try) 2>&5
9099 ac_status=$?
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; }; then
9102 ac_cv_lib_m_scalbnf=yes
9103 else
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9107 ac_cv_lib_m_scalbnf=no
9109 rm -f conftest.err conftest.$ac_objext \
9110 conftest$ac_exeext conftest.$ac_ext
9111 LIBS=$ac_check_lib_save_LIBS
9113 echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
9114 echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
9115 if test $ac_cv_lib_m_scalbnf = yes; then
9117 cat >>confdefs.h <<\_ACEOF
9118 #define HAVE_SCALBNF 1
9119 _ACEOF
9123 echo "$as_me:$LINENO: checking for sinf in -lm" >&5
9124 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
9125 if test "${ac_cv_lib_m_sinf+set}" = set; then
9126 echo $ECHO_N "(cached) $ECHO_C" >&6
9127 else
9128 ac_check_lib_save_LIBS=$LIBS
9129 LIBS="-lm $LIBS"
9130 if test x$gcc_no_link = xyes; then
9131 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9132 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9133 { (exit 1); exit 1; }; }
9135 cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h. */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9142 /* Override any gcc2 internal prototype to avoid an error. */
9143 #ifdef __cplusplus
9144 extern "C"
9145 #endif
9146 /* We use char because int might match the return type of a gcc2
9147 builtin and then its argument prototype would still apply. */
9148 char sinf ();
9150 main ()
9152 sinf ();
9154 return 0;
9156 _ACEOF
9157 rm -f conftest.$ac_objext conftest$ac_exeext
9158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9159 (eval $ac_link) 2>conftest.er1
9160 ac_status=$?
9161 grep -v '^ *+' conftest.er1 >conftest.err
9162 rm -f conftest.er1
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } &&
9166 { ac_try='test -z "$ac_c_werror_flag"
9167 || test ! -s conftest.err'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 (eval $ac_try) 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; } &&
9173 { ac_try='test -s conftest$ac_exeext'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 (eval $ac_try) 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
9179 ac_cv_lib_m_sinf=yes
9180 else
9181 echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9184 ac_cv_lib_m_sinf=no
9186 rm -f conftest.err conftest.$ac_objext \
9187 conftest$ac_exeext conftest.$ac_ext
9188 LIBS=$ac_check_lib_save_LIBS
9190 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
9191 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
9192 if test $ac_cv_lib_m_sinf = yes; then
9194 cat >>confdefs.h <<\_ACEOF
9195 #define HAVE_SINF 1
9196 _ACEOF
9200 echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
9201 echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
9202 if test "${ac_cv_lib_m_sinhf+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 else
9205 ac_check_lib_save_LIBS=$LIBS
9206 LIBS="-lm $LIBS"
9207 if test x$gcc_no_link = xyes; then
9208 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9209 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9210 { (exit 1); exit 1; }; }
9212 cat >conftest.$ac_ext <<_ACEOF
9213 /* confdefs.h. */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9219 /* Override any gcc2 internal prototype to avoid an error. */
9220 #ifdef __cplusplus
9221 extern "C"
9222 #endif
9223 /* We use char because int might match the return type of a gcc2
9224 builtin and then its argument prototype would still apply. */
9225 char sinhf ();
9227 main ()
9229 sinhf ();
9231 return 0;
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>conftest.er1
9237 ac_status=$?
9238 grep -v '^ *+' conftest.er1 >conftest.err
9239 rm -f conftest.er1
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -z "$ac_c_werror_flag"
9244 || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest$ac_exeext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 (eval $ac_try) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 ac_cv_lib_m_sinhf=yes
9257 else
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9261 ac_cv_lib_m_sinhf=no
9263 rm -f conftest.err conftest.$ac_objext \
9264 conftest$ac_exeext conftest.$ac_ext
9265 LIBS=$ac_check_lib_save_LIBS
9267 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
9268 echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
9269 if test $ac_cv_lib_m_sinhf = yes; then
9271 cat >>confdefs.h <<\_ACEOF
9272 #define HAVE_SINHF 1
9273 _ACEOF
9277 echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
9278 echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
9279 if test "${ac_cv_lib_m_sqrtf+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282 ac_check_lib_save_LIBS=$LIBS
9283 LIBS="-lm $LIBS"
9284 if test x$gcc_no_link = xyes; then
9285 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9286 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9287 { (exit 1); exit 1; }; }
9289 cat >conftest.$ac_ext <<_ACEOF
9290 /* confdefs.h. */
9291 _ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9296 /* Override any gcc2 internal prototype to avoid an error. */
9297 #ifdef __cplusplus
9298 extern "C"
9299 #endif
9300 /* We use char because int might match the return type of a gcc2
9301 builtin and then its argument prototype would still apply. */
9302 char sqrtf ();
9304 main ()
9306 sqrtf ();
9308 return 0;
9310 _ACEOF
9311 rm -f conftest.$ac_objext conftest$ac_exeext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9313 (eval $ac_link) 2>conftest.er1
9314 ac_status=$?
9315 grep -v '^ *+' conftest.er1 >conftest.err
9316 rm -f conftest.er1
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } &&
9320 { ac_try='test -z "$ac_c_werror_flag"
9321 || test ! -s conftest.err'
9322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 (eval $ac_try) 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; } &&
9327 { ac_try='test -s conftest$ac_exeext'
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9329 (eval $ac_try) 2>&5
9330 ac_status=$?
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; }; then
9333 ac_cv_lib_m_sqrtf=yes
9334 else
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 ac_cv_lib_m_sqrtf=no
9340 rm -f conftest.err conftest.$ac_objext \
9341 conftest$ac_exeext conftest.$ac_ext
9342 LIBS=$ac_check_lib_save_LIBS
9344 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
9345 echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
9346 if test $ac_cv_lib_m_sqrtf = yes; then
9348 cat >>confdefs.h <<\_ACEOF
9349 #define HAVE_SQRTF 1
9350 _ACEOF
9354 echo "$as_me:$LINENO: checking for tanf in -lm" >&5
9355 echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
9356 if test "${ac_cv_lib_m_tanf+set}" = set; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 else
9359 ac_check_lib_save_LIBS=$LIBS
9360 LIBS="-lm $LIBS"
9361 if test x$gcc_no_link = xyes; then
9362 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9363 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9364 { (exit 1); exit 1; }; }
9366 cat >conftest.$ac_ext <<_ACEOF
9367 /* confdefs.h. */
9368 _ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h. */
9373 /* Override any gcc2 internal prototype to avoid an error. */
9374 #ifdef __cplusplus
9375 extern "C"
9376 #endif
9377 /* We use char because int might match the return type of a gcc2
9378 builtin and then its argument prototype would still apply. */
9379 char tanf ();
9381 main ()
9383 tanf ();
9385 return 0;
9387 _ACEOF
9388 rm -f conftest.$ac_objext conftest$ac_exeext
9389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390 (eval $ac_link) 2>conftest.er1
9391 ac_status=$?
9392 grep -v '^ *+' conftest.er1 >conftest.err
9393 rm -f conftest.er1
9394 cat conftest.err >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } &&
9397 { ac_try='test -z "$ac_c_werror_flag"
9398 || test ! -s conftest.err'
9399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 (eval $ac_try) 2>&5
9401 ac_status=$?
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; } &&
9404 { ac_try='test -s conftest$ac_exeext'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 (eval $ac_try) 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; }; then
9410 ac_cv_lib_m_tanf=yes
9411 else
9412 echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9415 ac_cv_lib_m_tanf=no
9417 rm -f conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9419 LIBS=$ac_check_lib_save_LIBS
9421 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
9422 echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
9423 if test $ac_cv_lib_m_tanf = yes; then
9425 cat >>confdefs.h <<\_ACEOF
9426 #define HAVE_TANF 1
9427 _ACEOF
9431 echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
9432 echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
9433 if test "${ac_cv_lib_m_tanhf+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9435 else
9436 ac_check_lib_save_LIBS=$LIBS
9437 LIBS="-lm $LIBS"
9438 if test x$gcc_no_link = xyes; then
9439 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9440 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9441 { (exit 1); exit 1; }; }
9443 cat >conftest.$ac_ext <<_ACEOF
9444 /* confdefs.h. */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9450 /* Override any gcc2 internal prototype to avoid an error. */
9451 #ifdef __cplusplus
9452 extern "C"
9453 #endif
9454 /* We use char because int might match the return type of a gcc2
9455 builtin and then its argument prototype would still apply. */
9456 char tanhf ();
9458 main ()
9460 tanhf ();
9462 return 0;
9464 _ACEOF
9465 rm -f conftest.$ac_objext conftest$ac_exeext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467 (eval $ac_link) 2>conftest.er1
9468 ac_status=$?
9469 grep -v '^ *+' conftest.er1 >conftest.err
9470 rm -f conftest.er1
9471 cat conftest.err >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } &&
9474 { ac_try='test -z "$ac_c_werror_flag"
9475 || test ! -s conftest.err'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 (eval $ac_try) 2>&5
9478 ac_status=$?
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; } &&
9481 { ac_try='test -s conftest$ac_exeext'
9482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483 (eval $ac_try) 2>&5
9484 ac_status=$?
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9487 ac_cv_lib_m_tanhf=yes
9488 else
9489 echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9492 ac_cv_lib_m_tanhf=no
9494 rm -f conftest.err conftest.$ac_objext \
9495 conftest$ac_exeext conftest.$ac_ext
9496 LIBS=$ac_check_lib_save_LIBS
9498 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
9499 echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
9500 if test $ac_cv_lib_m_tanhf = yes; then
9502 cat >>confdefs.h <<\_ACEOF
9503 #define HAVE_TANHF 1
9504 _ACEOF
9508 echo "$as_me:$LINENO: checking for erf in -lm" >&5
9509 echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
9510 if test "${ac_cv_lib_m_erf+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9512 else
9513 ac_check_lib_save_LIBS=$LIBS
9514 LIBS="-lm $LIBS"
9515 if test x$gcc_no_link = xyes; then
9516 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9517 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9518 { (exit 1); exit 1; }; }
9520 cat >conftest.$ac_ext <<_ACEOF
9521 /* confdefs.h. */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9527 /* Override any gcc2 internal prototype to avoid an error. */
9528 #ifdef __cplusplus
9529 extern "C"
9530 #endif
9531 /* We use char because int might match the return type of a gcc2
9532 builtin and then its argument prototype would still apply. */
9533 char erf ();
9535 main ()
9537 erf ();
9539 return 0;
9541 _ACEOF
9542 rm -f conftest.$ac_objext conftest$ac_exeext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9544 (eval $ac_link) 2>conftest.er1
9545 ac_status=$?
9546 grep -v '^ *+' conftest.er1 >conftest.err
9547 rm -f conftest.er1
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try='test -z "$ac_c_werror_flag"
9552 || test ! -s conftest.err'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 (eval $ac_try) 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; } &&
9558 { ac_try='test -s conftest$ac_exeext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 (eval $ac_try) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 ac_cv_lib_m_erf=yes
9565 else
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9569 ac_cv_lib_m_erf=no
9571 rm -f conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9573 LIBS=$ac_check_lib_save_LIBS
9575 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
9576 echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
9577 if test $ac_cv_lib_m_erf = yes; then
9579 cat >>confdefs.h <<\_ACEOF
9580 #define HAVE_ERF 1
9581 _ACEOF
9585 echo "$as_me:$LINENO: checking for erfc in -lm" >&5
9586 echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
9587 if test "${ac_cv_lib_m_erfc+set}" = set; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9589 else
9590 ac_check_lib_save_LIBS=$LIBS
9591 LIBS="-lm $LIBS"
9592 if test x$gcc_no_link = xyes; then
9593 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9594 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9595 { (exit 1); exit 1; }; }
9597 cat >conftest.$ac_ext <<_ACEOF
9598 /* confdefs.h. */
9599 _ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9604 /* Override any gcc2 internal prototype to avoid an error. */
9605 #ifdef __cplusplus
9606 extern "C"
9607 #endif
9608 /* We use char because int might match the return type of a gcc2
9609 builtin and then its argument prototype would still apply. */
9610 char erfc ();
9612 main ()
9614 erfc ();
9616 return 0;
9618 _ACEOF
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9621 (eval $ac_link) 2>conftest.er1
9622 ac_status=$?
9623 grep -v '^ *+' conftest.er1 >conftest.err
9624 rm -f conftest.er1
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } &&
9628 { ac_try='test -z "$ac_c_werror_flag"
9629 || test ! -s conftest.err'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 (eval $ac_try) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; } &&
9635 { ac_try='test -s conftest$ac_exeext'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 (eval $ac_try) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9641 ac_cv_lib_m_erfc=yes
9642 else
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 ac_cv_lib_m_erfc=no
9648 rm -f conftest.err conftest.$ac_objext \
9649 conftest$ac_exeext conftest.$ac_ext
9650 LIBS=$ac_check_lib_save_LIBS
9652 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
9653 echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
9654 if test $ac_cv_lib_m_erfc = yes; then
9656 cat >>confdefs.h <<\_ACEOF
9657 #define HAVE_ERFC 1
9658 _ACEOF
9662 echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
9663 echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
9664 if test "${ac_cv_lib_m_erfcf+set}" = set; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 else
9667 ac_check_lib_save_LIBS=$LIBS
9668 LIBS="-lm $LIBS"
9669 if test x$gcc_no_link = xyes; then
9670 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9671 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9672 { (exit 1); exit 1; }; }
9674 cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h. */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9681 /* Override any gcc2 internal prototype to avoid an error. */
9682 #ifdef __cplusplus
9683 extern "C"
9684 #endif
9685 /* We use char because int might match the return type of a gcc2
9686 builtin and then its argument prototype would still apply. */
9687 char erfcf ();
9689 main ()
9691 erfcf ();
9693 return 0;
9695 _ACEOF
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698 (eval $ac_link) 2>conftest.er1
9699 ac_status=$?
9700 grep -v '^ *+' conftest.er1 >conftest.err
9701 rm -f conftest.er1
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
9705 { ac_try='test -z "$ac_c_werror_flag"
9706 || test ! -s conftest.err'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 (eval $ac_try) 2>&5
9709 ac_status=$?
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; } &&
9712 { ac_try='test -s conftest$ac_exeext'
9713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714 (eval $ac_try) 2>&5
9715 ac_status=$?
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; }; then
9718 ac_cv_lib_m_erfcf=yes
9719 else
9720 echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9723 ac_cv_lib_m_erfcf=no
9725 rm -f conftest.err conftest.$ac_objext \
9726 conftest$ac_exeext conftest.$ac_ext
9727 LIBS=$ac_check_lib_save_LIBS
9729 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
9730 echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
9731 if test $ac_cv_lib_m_erfcf = yes; then
9733 cat >>confdefs.h <<\_ACEOF
9734 #define HAVE_ERFCF 1
9735 _ACEOF
9739 echo "$as_me:$LINENO: checking for erff in -lm" >&5
9740 echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
9741 if test "${ac_cv_lib_m_erff+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744 ac_check_lib_save_LIBS=$LIBS
9745 LIBS="-lm $LIBS"
9746 if test x$gcc_no_link = xyes; then
9747 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9749 { (exit 1); exit 1; }; }
9751 cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h. */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9758 /* Override any gcc2 internal prototype to avoid an error. */
9759 #ifdef __cplusplus
9760 extern "C"
9761 #endif
9762 /* We use char because int might match the return type of a gcc2
9763 builtin and then its argument prototype would still apply. */
9764 char erff ();
9766 main ()
9768 erff ();
9770 return 0;
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775 (eval $ac_link) 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -z "$ac_c_werror_flag"
9783 || test ! -s conftest.err'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 (eval $ac_try) 2>&5
9786 ac_status=$?
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; } &&
9789 { ac_try='test -s conftest$ac_exeext'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 (eval $ac_try) 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 ac_cv_lib_m_erff=yes
9796 else
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9800 ac_cv_lib_m_erff=no
9802 rm -f conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9804 LIBS=$ac_check_lib_save_LIBS
9806 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5
9807 echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
9808 if test $ac_cv_lib_m_erff = yes; then
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_ERFF 1
9812 _ACEOF
9816 echo "$as_me:$LINENO: checking for j0 in -lm" >&5
9817 echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
9818 if test "${ac_cv_lib_m_j0+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821 ac_check_lib_save_LIBS=$LIBS
9822 LIBS="-lm $LIBS"
9823 if test x$gcc_no_link = xyes; then
9824 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9825 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9826 { (exit 1); exit 1; }; }
9828 cat >conftest.$ac_ext <<_ACEOF
9829 /* confdefs.h. */
9830 _ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9835 /* Override any gcc2 internal prototype to avoid an error. */
9836 #ifdef __cplusplus
9837 extern "C"
9838 #endif
9839 /* We use char because int might match the return type of a gcc2
9840 builtin and then its argument prototype would still apply. */
9841 char j0 ();
9843 main ()
9845 j0 ();
9847 return 0;
9849 _ACEOF
9850 rm -f conftest.$ac_objext conftest$ac_exeext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852 (eval $ac_link) 2>conftest.er1
9853 ac_status=$?
9854 grep -v '^ *+' conftest.er1 >conftest.err
9855 rm -f conftest.er1
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -z "$ac_c_werror_flag"
9860 || test ! -s conftest.err'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 (eval $ac_try) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try='test -s conftest$ac_exeext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 (eval $ac_try) 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 ac_cv_lib_m_j0=yes
9873 else
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 ac_cv_lib_m_j0=no
9879 rm -f conftest.err conftest.$ac_objext \
9880 conftest$ac_exeext conftest.$ac_ext
9881 LIBS=$ac_check_lib_save_LIBS
9883 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5
9884 echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
9885 if test $ac_cv_lib_m_j0 = yes; then
9887 cat >>confdefs.h <<\_ACEOF
9888 #define HAVE_J0 1
9889 _ACEOF
9893 echo "$as_me:$LINENO: checking for j0f in -lm" >&5
9894 echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
9895 if test "${ac_cv_lib_m_j0f+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898 ac_check_lib_save_LIBS=$LIBS
9899 LIBS="-lm $LIBS"
9900 if test x$gcc_no_link = xyes; then
9901 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9902 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9903 { (exit 1); exit 1; }; }
9905 cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h. */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9912 /* Override any gcc2 internal prototype to avoid an error. */
9913 #ifdef __cplusplus
9914 extern "C"
9915 #endif
9916 /* We use char because int might match the return type of a gcc2
9917 builtin and then its argument prototype would still apply. */
9918 char j0f ();
9920 main ()
9922 j0f ();
9924 return 0;
9926 _ACEOF
9927 rm -f conftest.$ac_objext conftest$ac_exeext
9928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9929 (eval $ac_link) 2>conftest.er1
9930 ac_status=$?
9931 grep -v '^ *+' conftest.er1 >conftest.err
9932 rm -f conftest.er1
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } &&
9936 { ac_try='test -z "$ac_c_werror_flag"
9937 || test ! -s conftest.err'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 (eval $ac_try) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; } &&
9943 { ac_try='test -s conftest$ac_exeext'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 (eval $ac_try) 2>&5
9946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_cv_lib_m_j0f=yes
9950 else
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 ac_cv_lib_m_j0f=no
9956 rm -f conftest.err conftest.$ac_objext \
9957 conftest$ac_exeext conftest.$ac_ext
9958 LIBS=$ac_check_lib_save_LIBS
9960 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
9961 echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
9962 if test $ac_cv_lib_m_j0f = yes; then
9964 cat >>confdefs.h <<\_ACEOF
9965 #define HAVE_J0F 1
9966 _ACEOF
9970 echo "$as_me:$LINENO: checking for j1 in -lm" >&5
9971 echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
9972 if test "${ac_cv_lib_m_j1+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975 ac_check_lib_save_LIBS=$LIBS
9976 LIBS="-lm $LIBS"
9977 if test x$gcc_no_link = xyes; then
9978 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9980 { (exit 1); exit 1; }; }
9982 cat >conftest.$ac_ext <<_ACEOF
9983 /* confdefs.h. */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9989 /* Override any gcc2 internal prototype to avoid an error. */
9990 #ifdef __cplusplus
9991 extern "C"
9992 #endif
9993 /* We use char because int might match the return type of a gcc2
9994 builtin and then its argument prototype would still apply. */
9995 char j1 ();
9997 main ()
9999 j1 ();
10001 return 0;
10003 _ACEOF
10004 rm -f conftest.$ac_objext conftest$ac_exeext
10005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10006 (eval $ac_link) 2>conftest.er1
10007 ac_status=$?
10008 grep -v '^ *+' conftest.er1 >conftest.err
10009 rm -f conftest.er1
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
10013 { ac_try='test -z "$ac_c_werror_flag"
10014 || test ! -s conftest.err'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10017 ac_status=$?
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; } &&
10020 { ac_try='test -s conftest$ac_exeext'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5
10023 ac_status=$?
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; }; then
10026 ac_cv_lib_m_j1=yes
10027 else
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10031 ac_cv_lib_m_j1=no
10033 rm -f conftest.err conftest.$ac_objext \
10034 conftest$ac_exeext conftest.$ac_ext
10035 LIBS=$ac_check_lib_save_LIBS
10037 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
10038 echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
10039 if test $ac_cv_lib_m_j1 = yes; then
10041 cat >>confdefs.h <<\_ACEOF
10042 #define HAVE_J1 1
10043 _ACEOF
10047 echo "$as_me:$LINENO: checking for j1f in -lm" >&5
10048 echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
10049 if test "${ac_cv_lib_m_j1f+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 else
10052 ac_check_lib_save_LIBS=$LIBS
10053 LIBS="-lm $LIBS"
10054 if test x$gcc_no_link = xyes; then
10055 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10056 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10057 { (exit 1); exit 1; }; }
10059 cat >conftest.$ac_ext <<_ACEOF
10060 /* confdefs.h. */
10061 _ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10066 /* Override any gcc2 internal prototype to avoid an error. */
10067 #ifdef __cplusplus
10068 extern "C"
10069 #endif
10070 /* We use char because int might match the return type of a gcc2
10071 builtin and then its argument prototype would still apply. */
10072 char j1f ();
10074 main ()
10076 j1f ();
10078 return 0;
10080 _ACEOF
10081 rm -f conftest.$ac_objext conftest$ac_exeext
10082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10083 (eval $ac_link) 2>conftest.er1
10084 ac_status=$?
10085 grep -v '^ *+' conftest.er1 >conftest.err
10086 rm -f conftest.er1
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } &&
10090 { ac_try='test -z "$ac_c_werror_flag"
10091 || test ! -s conftest.err'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; } &&
10097 { ac_try='test -s conftest$ac_exeext'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; }; then
10103 ac_cv_lib_m_j1f=yes
10104 else
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_cv_lib_m_j1f=no
10110 rm -f conftest.err conftest.$ac_objext \
10111 conftest$ac_exeext conftest.$ac_ext
10112 LIBS=$ac_check_lib_save_LIBS
10114 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
10115 echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
10116 if test $ac_cv_lib_m_j1f = yes; then
10118 cat >>confdefs.h <<\_ACEOF
10119 #define HAVE_J1F 1
10120 _ACEOF
10124 echo "$as_me:$LINENO: checking for jn in -lm" >&5
10125 echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
10126 if test "${ac_cv_lib_m_jn+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10128 else
10129 ac_check_lib_save_LIBS=$LIBS
10130 LIBS="-lm $LIBS"
10131 if test x$gcc_no_link = xyes; then
10132 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10133 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10134 { (exit 1); exit 1; }; }
10136 cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h. */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10143 /* Override any gcc2 internal prototype to avoid an error. */
10144 #ifdef __cplusplus
10145 extern "C"
10146 #endif
10147 /* We use char because int might match the return type of a gcc2
10148 builtin and then its argument prototype would still apply. */
10149 char jn ();
10151 main ()
10153 jn ();
10155 return 0;
10157 _ACEOF
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160 (eval $ac_link) 2>conftest.er1
10161 ac_status=$?
10162 grep -v '^ *+' conftest.er1 >conftest.err
10163 rm -f conftest.er1
10164 cat conftest.err >&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } &&
10167 { ac_try='test -z "$ac_c_werror_flag"
10168 || test ! -s conftest.err'
10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170 (eval $ac_try) 2>&5
10171 ac_status=$?
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; } &&
10174 { ac_try='test -s conftest$ac_exeext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10177 ac_status=$?
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 ac_cv_lib_m_jn=yes
10181 else
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 ac_cv_lib_m_jn=no
10187 rm -f conftest.err conftest.$ac_objext \
10188 conftest$ac_exeext conftest.$ac_ext
10189 LIBS=$ac_check_lib_save_LIBS
10191 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
10192 echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
10193 if test $ac_cv_lib_m_jn = yes; then
10195 cat >>confdefs.h <<\_ACEOF
10196 #define HAVE_JN 1
10197 _ACEOF
10201 echo "$as_me:$LINENO: checking for jnf in -lm" >&5
10202 echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
10203 if test "${ac_cv_lib_m_jnf+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 else
10206 ac_check_lib_save_LIBS=$LIBS
10207 LIBS="-lm $LIBS"
10208 if test x$gcc_no_link = xyes; then
10209 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10210 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10211 { (exit 1); exit 1; }; }
10213 cat >conftest.$ac_ext <<_ACEOF
10214 /* confdefs.h. */
10215 _ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10220 /* Override any gcc2 internal prototype to avoid an error. */
10221 #ifdef __cplusplus
10222 extern "C"
10223 #endif
10224 /* We use char because int might match the return type of a gcc2
10225 builtin and then its argument prototype would still apply. */
10226 char jnf ();
10228 main ()
10230 jnf ();
10232 return 0;
10234 _ACEOF
10235 rm -f conftest.$ac_objext conftest$ac_exeext
10236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10237 (eval $ac_link) 2>conftest.er1
10238 ac_status=$?
10239 grep -v '^ *+' conftest.er1 >conftest.err
10240 rm -f conftest.er1
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } &&
10244 { ac_try='test -z "$ac_c_werror_flag"
10245 || test ! -s conftest.err'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; } &&
10251 { ac_try='test -s conftest$ac_exeext'
10252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10254 ac_status=$?
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_cv_lib_m_jnf=yes
10258 else
10259 echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10262 ac_cv_lib_m_jnf=no
10264 rm -f conftest.err conftest.$ac_objext \
10265 conftest$ac_exeext conftest.$ac_ext
10266 LIBS=$ac_check_lib_save_LIBS
10268 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
10269 echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
10270 if test $ac_cv_lib_m_jnf = yes; then
10272 cat >>confdefs.h <<\_ACEOF
10273 #define HAVE_JNF 1
10274 _ACEOF
10278 echo "$as_me:$LINENO: checking for y0 in -lm" >&5
10279 echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
10280 if test "${ac_cv_lib_m_y0+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 else
10283 ac_check_lib_save_LIBS=$LIBS
10284 LIBS="-lm $LIBS"
10285 if test x$gcc_no_link = xyes; then
10286 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10287 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10288 { (exit 1); exit 1; }; }
10290 cat >conftest.$ac_ext <<_ACEOF
10291 /* confdefs.h. */
10292 _ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h. */
10297 /* Override any gcc2 internal prototype to avoid an error. */
10298 #ifdef __cplusplus
10299 extern "C"
10300 #endif
10301 /* We use char because int might match the return type of a gcc2
10302 builtin and then its argument prototype would still apply. */
10303 char y0 ();
10305 main ()
10307 y0 ();
10309 return 0;
10311 _ACEOF
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314 (eval $ac_link) 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } &&
10321 { ac_try='test -z "$ac_c_werror_flag"
10322 || test ! -s conftest.err'
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; } &&
10328 { ac_try='test -s conftest$ac_exeext'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; }; then
10334 ac_cv_lib_m_y0=yes
10335 else
10336 echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10339 ac_cv_lib_m_y0=no
10341 rm -f conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10343 LIBS=$ac_check_lib_save_LIBS
10345 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
10346 echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
10347 if test $ac_cv_lib_m_y0 = yes; then
10349 cat >>confdefs.h <<\_ACEOF
10350 #define HAVE_Y0 1
10351 _ACEOF
10355 echo "$as_me:$LINENO: checking for y0f in -lm" >&5
10356 echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
10357 if test "${ac_cv_lib_m_y0f+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360 ac_check_lib_save_LIBS=$LIBS
10361 LIBS="-lm $LIBS"
10362 if test x$gcc_no_link = xyes; then
10363 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10364 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10365 { (exit 1); exit 1; }; }
10367 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h. */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10374 /* Override any gcc2 internal prototype to avoid an error. */
10375 #ifdef __cplusplus
10376 extern "C"
10377 #endif
10378 /* We use char because int might match the return type of a gcc2
10379 builtin and then its argument prototype would still apply. */
10380 char y0f ();
10382 main ()
10384 y0f ();
10386 return 0;
10388 _ACEOF
10389 rm -f conftest.$ac_objext conftest$ac_exeext
10390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10391 (eval $ac_link) 2>conftest.er1
10392 ac_status=$?
10393 grep -v '^ *+' conftest.er1 >conftest.err
10394 rm -f conftest.er1
10395 cat conftest.err >&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } &&
10398 { ac_try='test -z "$ac_c_werror_flag"
10399 || test ! -s conftest.err'
10400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401 (eval $ac_try) 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; } &&
10405 { ac_try='test -s conftest$ac_exeext'
10406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407 (eval $ac_try) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; }; then
10411 ac_cv_lib_m_y0f=yes
10412 else
10413 echo "$as_me: failed program was:" >&5
10414 sed 's/^/| /' conftest.$ac_ext >&5
10416 ac_cv_lib_m_y0f=no
10418 rm -f conftest.err conftest.$ac_objext \
10419 conftest$ac_exeext conftest.$ac_ext
10420 LIBS=$ac_check_lib_save_LIBS
10422 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
10423 echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
10424 if test $ac_cv_lib_m_y0f = yes; then
10426 cat >>confdefs.h <<\_ACEOF
10427 #define HAVE_Y0F 1
10428 _ACEOF
10432 echo "$as_me:$LINENO: checking for y1 in -lm" >&5
10433 echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
10434 if test "${ac_cv_lib_m_y1+set}" = set; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 else
10437 ac_check_lib_save_LIBS=$LIBS
10438 LIBS="-lm $LIBS"
10439 if test x$gcc_no_link = xyes; then
10440 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10441 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10442 { (exit 1); exit 1; }; }
10444 cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h. */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10451 /* Override any gcc2 internal prototype to avoid an error. */
10452 #ifdef __cplusplus
10453 extern "C"
10454 #endif
10455 /* We use char because int might match the return type of a gcc2
10456 builtin and then its argument prototype would still apply. */
10457 char y1 ();
10459 main ()
10461 y1 ();
10463 return 0;
10465 _ACEOF
10466 rm -f conftest.$ac_objext conftest$ac_exeext
10467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10468 (eval $ac_link) 2>conftest.er1
10469 ac_status=$?
10470 grep -v '^ *+' conftest.er1 >conftest.err
10471 rm -f conftest.er1
10472 cat conftest.err >&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } &&
10475 { ac_try='test -z "$ac_c_werror_flag"
10476 || test ! -s conftest.err'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; } &&
10482 { ac_try='test -s conftest$ac_exeext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10485 ac_status=$?
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 ac_cv_lib_m_y1=yes
10489 else
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10493 ac_cv_lib_m_y1=no
10495 rm -f conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
10497 LIBS=$ac_check_lib_save_LIBS
10499 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
10500 echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
10501 if test $ac_cv_lib_m_y1 = yes; then
10503 cat >>confdefs.h <<\_ACEOF
10504 #define HAVE_Y1 1
10505 _ACEOF
10509 echo "$as_me:$LINENO: checking for y1f in -lm" >&5
10510 echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
10511 if test "${ac_cv_lib_m_y1f+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514 ac_check_lib_save_LIBS=$LIBS
10515 LIBS="-lm $LIBS"
10516 if test x$gcc_no_link = xyes; then
10517 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10518 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10519 { (exit 1); exit 1; }; }
10521 cat >conftest.$ac_ext <<_ACEOF
10522 /* confdefs.h. */
10523 _ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h. */
10528 /* Override any gcc2 internal prototype to avoid an error. */
10529 #ifdef __cplusplus
10530 extern "C"
10531 #endif
10532 /* We use char because int might match the return type of a gcc2
10533 builtin and then its argument prototype would still apply. */
10534 char y1f ();
10536 main ()
10538 y1f ();
10540 return 0;
10542 _ACEOF
10543 rm -f conftest.$ac_objext conftest$ac_exeext
10544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10545 (eval $ac_link) 2>conftest.er1
10546 ac_status=$?
10547 grep -v '^ *+' conftest.er1 >conftest.err
10548 rm -f conftest.er1
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } &&
10552 { ac_try='test -z "$ac_c_werror_flag"
10553 || test ! -s conftest.err'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; } &&
10559 { ac_try='test -s conftest$ac_exeext'
10560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561 (eval $ac_try) 2>&5
10562 ac_status=$?
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }; then
10565 ac_cv_lib_m_y1f=yes
10566 else
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10570 ac_cv_lib_m_y1f=no
10572 rm -f conftest.err conftest.$ac_objext \
10573 conftest$ac_exeext conftest.$ac_ext
10574 LIBS=$ac_check_lib_save_LIBS
10576 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
10577 echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
10578 if test $ac_cv_lib_m_y1f = yes; then
10580 cat >>confdefs.h <<\_ACEOF
10581 #define HAVE_Y1F 1
10582 _ACEOF
10586 echo "$as_me:$LINENO: checking for yn in -lm" >&5
10587 echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
10588 if test "${ac_cv_lib_m_yn+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591 ac_check_lib_save_LIBS=$LIBS
10592 LIBS="-lm $LIBS"
10593 if test x$gcc_no_link = xyes; then
10594 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10595 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10596 { (exit 1); exit 1; }; }
10598 cat >conftest.$ac_ext <<_ACEOF
10599 /* confdefs.h. */
10600 _ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10605 /* Override any gcc2 internal prototype to avoid an error. */
10606 #ifdef __cplusplus
10607 extern "C"
10608 #endif
10609 /* We use char because int might match the return type of a gcc2
10610 builtin and then its argument prototype would still apply. */
10611 char yn ();
10613 main ()
10615 yn ();
10617 return 0;
10619 _ACEOF
10620 rm -f conftest.$ac_objext conftest$ac_exeext
10621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10622 (eval $ac_link) 2>conftest.er1
10623 ac_status=$?
10624 grep -v '^ *+' conftest.er1 >conftest.err
10625 rm -f conftest.er1
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } &&
10629 { ac_try='test -z "$ac_c_werror_flag"
10630 || test ! -s conftest.err'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; } &&
10636 { ac_try='test -s conftest$ac_exeext'
10637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638 (eval $ac_try) 2>&5
10639 ac_status=$?
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; }; then
10642 ac_cv_lib_m_yn=yes
10643 else
10644 echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10647 ac_cv_lib_m_yn=no
10649 rm -f conftest.err conftest.$ac_objext \
10650 conftest$ac_exeext conftest.$ac_ext
10651 LIBS=$ac_check_lib_save_LIBS
10653 echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
10654 echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
10655 if test $ac_cv_lib_m_yn = yes; then
10657 cat >>confdefs.h <<\_ACEOF
10658 #define HAVE_YN 1
10659 _ACEOF
10663 echo "$as_me:$LINENO: checking for ynf in -lm" >&5
10664 echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
10665 if test "${ac_cv_lib_m_ynf+set}" = set; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 else
10668 ac_check_lib_save_LIBS=$LIBS
10669 LIBS="-lm $LIBS"
10670 if test x$gcc_no_link = xyes; then
10671 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10672 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10673 { (exit 1); exit 1; }; }
10675 cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h. */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10682 /* Override any gcc2 internal prototype to avoid an error. */
10683 #ifdef __cplusplus
10684 extern "C"
10685 #endif
10686 /* We use char because int might match the return type of a gcc2
10687 builtin and then its argument prototype would still apply. */
10688 char ynf ();
10690 main ()
10692 ynf ();
10694 return 0;
10696 _ACEOF
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10699 (eval $ac_link) 2>conftest.er1
10700 ac_status=$?
10701 grep -v '^ *+' conftest.er1 >conftest.err
10702 rm -f conftest.er1
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } &&
10706 { ac_try='test -z "$ac_c_werror_flag"
10707 || test ! -s conftest.err'
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; } &&
10713 { ac_try='test -s conftest$ac_exeext'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10719 ac_cv_lib_m_ynf=yes
10720 else
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 ac_cv_lib_m_ynf=no
10726 rm -f conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10728 LIBS=$ac_check_lib_save_LIBS
10730 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
10731 echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
10732 if test $ac_cv_lib_m_ynf = yes; then
10734 cat >>confdefs.h <<\_ACEOF
10735 #define HAVE_YNF 1
10736 _ACEOF
10741 # Fallback in case isfinite is not available.
10742 echo "$as_me:$LINENO: checking for finite in -lm" >&5
10743 echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6
10744 if test "${ac_cv_lib_m_finite+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 else
10747 ac_check_lib_save_LIBS=$LIBS
10748 LIBS="-lm $LIBS"
10749 if test x$gcc_no_link = xyes; then
10750 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10751 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10752 { (exit 1); exit 1; }; }
10754 cat >conftest.$ac_ext <<_ACEOF
10755 /* confdefs.h. */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10761 /* Override any gcc2 internal prototype to avoid an error. */
10762 #ifdef __cplusplus
10763 extern "C"
10764 #endif
10765 /* We use char because int might match the return type of a gcc2
10766 builtin and then its argument prototype would still apply. */
10767 char finite ();
10769 main ()
10771 finite ();
10773 return 0;
10775 _ACEOF
10776 rm -f conftest.$ac_objext conftest$ac_exeext
10777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10778 (eval $ac_link) 2>conftest.er1
10779 ac_status=$?
10780 grep -v '^ *+' conftest.er1 >conftest.err
10781 rm -f conftest.er1
10782 cat conftest.err >&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } &&
10785 { ac_try='test -z "$ac_c_werror_flag"
10786 || test ! -s conftest.err'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10789 ac_status=$?
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; } &&
10792 { ac_try='test -s conftest$ac_exeext'
10793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794 (eval $ac_try) 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10798 ac_cv_lib_m_finite=yes
10799 else
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_cv_lib_m_finite=no
10805 rm -f conftest.err conftest.$ac_objext \
10806 conftest$ac_exeext conftest.$ac_ext
10807 LIBS=$ac_check_lib_save_LIBS
10809 echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5
10810 echo "${ECHO_T}$ac_cv_lib_m_finite" >&6
10811 if test $ac_cv_lib_m_finite = yes; then
10813 cat >>confdefs.h <<\_ACEOF
10814 #define HAVE_FINITE 1
10815 _ACEOF
10820 # Let the user override this
10821 # Check whether --enable-cmath or --disable-cmath was given.
10822 if test "${enable_cmath+set}" = set; then
10823 enableval="$enable_cmath"
10824 need_math=$enableval
10826 if test "$need_math" = "yes"; then
10827 { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
10828 echo "$as_me: Including complex math functions in libgfor" >&6;};
10829 extra_math_obj='$(gfor_cmath_obj)'
10832 MATH_OBJ="$extra_math_obj"
10835 # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
10836 # for struct timezone, as you might think. We also need to check how
10837 # to call gettimeofday if we have it.
10838 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10839 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10840 if test "${ac_cv_header_time+set}" = set; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 else
10843 cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h. */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10849 #include <sys/types.h>
10850 #include <sys/time.h>
10851 #include <time.h>
10854 main ()
10856 if ((struct tm *) 0)
10857 return 0;
10859 return 0;
10861 _ACEOF
10862 rm -f conftest.$ac_objext
10863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10864 (eval $ac_compile) 2>conftest.er1
10865 ac_status=$?
10866 grep -v '^ *+' conftest.er1 >conftest.err
10867 rm -f conftest.er1
10868 cat conftest.err >&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } &&
10871 { ac_try='test -z "$ac_c_werror_flag"
10872 || test ! -s conftest.err'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest.$ac_objext'
10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880 (eval $ac_try) 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 ac_cv_header_time=yes
10885 else
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10889 ac_cv_header_time=no
10891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10893 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10894 echo "${ECHO_T}$ac_cv_header_time" >&6
10895 if test $ac_cv_header_time = yes; then
10897 cat >>confdefs.h <<\_ACEOF
10898 #define TIME_WITH_SYS_TIME 1
10899 _ACEOF
10905 for ac_func in gettimeofday
10907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10908 echo "$as_me:$LINENO: checking for $ac_func" >&5
10909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10910 if eval "test \"\${$as_ac_var+set}\" = set"; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913 if test x$gcc_no_link = xyes; then
10914 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10915 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10916 { (exit 1); exit 1; }; }
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10926 #define $ac_func innocuous_$ac_func
10928 /* System header to define __stub macros and hopefully few prototypes,
10929 which can conflict with char $ac_func (); below.
10930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10931 <limits.h> exists even on freestanding compilers. */
10933 #ifdef __STDC__
10934 # include <limits.h>
10935 #else
10936 # include <assert.h>
10937 #endif
10939 #undef $ac_func
10941 /* Override any gcc2 internal prototype to avoid an error. */
10942 #ifdef __cplusplus
10943 extern "C"
10945 #endif
10946 /* We use char because int might match the return type of a gcc2
10947 builtin and then its argument prototype would still apply. */
10948 char $ac_func ();
10949 /* The GNU C library defines this for functions which it implements
10950 to always fail with ENOSYS. Some functions are actually named
10951 something starting with __ and the normal name is an alias. */
10952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10953 choke me
10954 #else
10955 char (*f) () = $ac_func;
10956 #endif
10957 #ifdef __cplusplus
10959 #endif
10962 main ()
10964 return f != $ac_func;
10966 return 0;
10968 _ACEOF
10969 rm -f conftest.$ac_objext conftest$ac_exeext
10970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10971 (eval $ac_link) 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } &&
10978 { ac_try='test -z "$ac_c_werror_flag"
10979 || test ! -s conftest.err'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; } &&
10985 { ac_try='test -s conftest$ac_exeext'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10991 eval "$as_ac_var=yes"
10992 else
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10996 eval "$as_ac_var=no"
10998 rm -f conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
11001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11003 if test `eval echo '${'$as_ac_var'}'` = yes; then
11004 cat >>confdefs.h <<_ACEOF
11005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11006 _ACEOF
11009 done
11011 if test "$ac_cv_func_gettimeofday" = yes; then
11012 echo "$as_me:$LINENO: checking for struct timezone" >&5
11013 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11014 if test "${gfor_cv_struct_timezone+set}" = set; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 else
11017 cat >conftest.$ac_ext <<_ACEOF
11018 /* confdefs.h. */
11019 _ACEOF
11020 cat confdefs.h >>conftest.$ac_ext
11021 cat >>conftest.$ac_ext <<_ACEOF
11022 /* end confdefs.h. */
11023 #include <sys/time.h>
11025 main ()
11027 struct timezone tz;
11029 return 0;
11031 _ACEOF
11032 rm -f conftest.$ac_objext
11033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11034 (eval $ac_compile) 2>conftest.er1
11035 ac_status=$?
11036 grep -v '^ *+' conftest.er1 >conftest.err
11037 rm -f conftest.er1
11038 cat conftest.err >&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } &&
11041 { ac_try='test -z "$ac_c_werror_flag"
11042 || test ! -s conftest.err'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; } &&
11048 { ac_try='test -s conftest.$ac_objext'
11049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050 (eval $ac_try) 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; }; then
11054 gfor_cv_struct_timezone=yes
11055 else
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 gfor_cv_struct_timezone=no
11061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11063 echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
11064 echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
11065 if test $gfor_cv_struct_timezone = yes; then
11066 if test "$cross_compiling" = yes; then
11067 gfor_have_struct_timezone=yes
11068 else
11069 cat >conftest.$ac_ext <<_ACEOF
11070 /* confdefs.h. */
11071 _ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h. */
11076 #ifdef TIME_WITH_SYS_TIME
11077 #include <sys/time.h>
11078 #include <time.h>
11079 #else
11080 #ifdef HAVE_SYS_TIME_H
11081 #include <sys/time.h>
11082 #else
11083 #include <time.h>
11084 #endif
11085 #endif
11086 main ()
11088 struct timeval time;
11089 struct timezone dummy;
11090 if (gettimeofday (&time, &dummy))
11091 exit (1);
11092 else
11093 exit (0);
11095 _ACEOF
11096 rm -f conftest$ac_exeext
11097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11098 (eval $ac_link) 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11107 gfor_have_struct_timezone=yes
11108 else
11109 echo "$as_me: program exited with status $ac_status" >&5
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 ( exit $ac_status )
11114 gfor_have_struct_timezone=no
11116 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11118 if test $gfor_have_struct_timezone = yes; then
11120 cat >>confdefs.h <<\_ACEOF
11121 #define HAVE_TIMEZONE 1
11122 _ACEOF
11127 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
11128 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11129 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132 if test x$gcc_no_link = xyes; then
11133 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11134 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11135 { (exit 1); exit 1; }; }
11137 cat >conftest.$ac_ext <<_ACEOF
11138 /* confdefs.h. */
11139 _ACEOF
11140 cat confdefs.h >>conftest.$ac_ext
11141 cat >>conftest.$ac_ext <<_ACEOF
11142 /* end confdefs.h. */
11144 #ifdef TIME_WITH_SYS_TIME
11145 #include <sys/time.h>
11146 #include <time.h>
11147 #else
11148 #ifdef HAVE_SYS_TIME_H
11149 #include <sys/time.h>
11150 #else
11151 #include <time.h>
11152 #endif
11153 #endif
11156 main ()
11159 struct timeval time;
11160 #ifdef HAVE_TIMEZONE
11161 struct timezone dummy;
11162 #define DUMMY &dummy
11163 #else
11164 #define DUMMY NULL
11165 #endif
11166 gettimeofday (&time, DUMMY);
11168 return 0;
11170 _ACEOF
11171 rm -f conftest.$ac_objext conftest$ac_exeext
11172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11173 (eval $ac_link) 2>conftest.er1
11174 ac_status=$?
11175 grep -v '^ *+' conftest.er1 >conftest.err
11176 rm -f conftest.er1
11177 cat conftest.err >&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
11180 { ac_try='test -z "$ac_c_werror_flag"
11181 || test ! -s conftest.err'
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest$ac_exeext'
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; }; then
11193 emacs_cv_gettimeofday_two_arguments=yes
11194 else
11195 echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11198 emacs_cv_gettimeofday_two_arguments=no
11200 rm -f conftest.err conftest.$ac_objext \
11201 conftest$ac_exeext conftest.$ac_ext
11203 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
11204 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11205 if test $emacs_cv_gettimeofday_two_arguments = no; then
11207 cat >>confdefs.h <<\_ACEOF
11208 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11209 _ACEOF
11214 # Attempt to assert that the target is of common type in case we don't
11215 # have C99 integer types at all.
11217 echo "$as_me:$LINENO: checking whether the target is ILP32" >&5
11218 echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6
11219 if test "${target_ilp32+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 else
11223 save_CFLAGS="$CFLAGS"
11224 CFLAGS="-O2"
11225 if test x$gcc_no_link = xyes; then
11226 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11227 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11228 { (exit 1); exit 1; }; }
11230 cat >conftest.$ac_ext <<_ACEOF
11231 /* confdefs.h. */
11232 _ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11238 main ()
11241 if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4)
11243 else
11244 undefined_function ();
11247 return 0;
11249 _ACEOF
11250 rm -f conftest.$ac_objext conftest$ac_exeext
11251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11252 (eval $ac_link) 2>conftest.er1
11253 ac_status=$?
11254 grep -v '^ *+' conftest.er1 >conftest.err
11255 rm -f conftest.er1
11256 cat conftest.err >&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } &&
11259 { ac_try='test -z "$ac_c_werror_flag"
11260 || test ! -s conftest.err'
11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11263 ac_status=$?
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; } &&
11266 { ac_try='test -s conftest$ac_exeext'
11267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11268 (eval $ac_try) 2>&5
11269 ac_status=$?
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; }; then
11272 target_ilp32=yes
11273 else
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 target_ilp32=no
11279 rm -f conftest.err conftest.$ac_objext \
11280 conftest$ac_exeext conftest.$ac_ext
11281 CFLAGS="$save_CFLAGS"
11283 echo "$as_me:$LINENO: result: $target_ilp32" >&5
11284 echo "${ECHO_T}$target_ilp32" >&6
11285 if test $target_ilp32 = yes; then
11287 cat >>confdefs.h <<\_ACEOF
11288 #define TARGET_ILP32 1
11289 _ACEOF
11294 # Check out attribute support.
11296 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
11297 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
11298 if test "${have_attribute_visibility+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11302 save_CFLAGS="$CFLAGS"
11303 CFLAGS="$CFLAGS -Werror"
11304 cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h. */
11306 _ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 void __attribute__((visibility("hidden"))) foo(void) { }
11312 main ()
11316 return 0;
11318 _ACEOF
11319 rm -f conftest.$ac_objext
11320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11321 (eval $ac_compile) 2>conftest.er1
11322 ac_status=$?
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } &&
11328 { ac_try='test -z "$ac_c_werror_flag"
11329 || test ! -s conftest.err'
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; } &&
11335 { ac_try='test -s conftest.$ac_objext'
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 have_attribute_visibility=yes
11342 else
11343 echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11346 have_attribute_visibility=no
11348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11349 CFLAGS="$save_CFLAGS"
11351 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
11352 echo "${ECHO_T}$have_attribute_visibility" >&6
11353 if test $have_attribute_visibility = yes; then
11355 cat >>confdefs.h <<\_ACEOF
11356 #define HAVE_ATTRIBUTE_VISIBILITY 1
11357 _ACEOF
11361 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
11362 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
11363 if test "${have_attribute_dllexport+set}" = set; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11365 else
11367 save_CFLAGS="$CFLAGS"
11368 CFLAGS="$CFLAGS -Werror"
11369 cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h. */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375 void __attribute__((dllexport)) foo(void) { }
11377 main ()
11381 return 0;
11383 _ACEOF
11384 rm -f conftest.$ac_objext
11385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11386 (eval $ac_compile) 2>conftest.er1
11387 ac_status=$?
11388 grep -v '^ *+' conftest.er1 >conftest.err
11389 rm -f conftest.er1
11390 cat conftest.err >&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } &&
11393 { ac_try='test -z "$ac_c_werror_flag"
11394 || test ! -s conftest.err'
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; } &&
11400 { ac_try='test -s conftest.$ac_objext'
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
11406 have_attribute_dllexport=yes
11407 else
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11411 have_attribute_dllexport=no
11413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11414 CFLAGS="$save_CFLAGS"
11416 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
11417 echo "${ECHO_T}$have_attribute_dllexport" >&6
11418 if test $have_attribute_dllexport = yes; then
11420 cat >>confdefs.h <<\_ACEOF
11421 #define HAVE_ATTRIBUTE_DLLEXPORT 1
11422 _ACEOF
11426 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
11427 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
11428 if test "${have_attribute_alias+set}" = set; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11430 else
11432 if test x$gcc_no_link = xyes; then
11433 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11434 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11435 { (exit 1); exit 1; }; }
11437 cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h. */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11444 #define ULP STR1(__USER_LABEL_PREFIX__)
11445 #define STR1(x) STR2(x)
11446 #define STR2(x) #x
11447 void foo(void) { }
11448 extern void bar(void) __attribute__((alias(ULP "foo")));
11450 main ()
11452 bar();
11454 return 0;
11456 _ACEOF
11457 rm -f conftest.$ac_objext conftest$ac_exeext
11458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11459 (eval $ac_link) 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } &&
11466 { ac_try='test -z "$ac_c_werror_flag"
11467 || test ! -s conftest.err'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; } &&
11473 { ac_try='test -s conftest$ac_exeext'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; }; then
11479 have_attribute_alias=yes
11480 else
11481 echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11484 have_attribute_alias=no
11486 rm -f conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11489 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
11490 echo "${ECHO_T}$have_attribute_alias" >&6
11491 if test $have_attribute_alias = yes; then
11493 cat >>confdefs.h <<\_ACEOF
11494 #define HAVE_ATTRIBUTE_ALIAS 1
11495 _ACEOF
11499 cat >confcache <<\_ACEOF
11500 # This file is a shell script that caches the results of configure
11501 # tests run on this system so they can be shared between configure
11502 # scripts and configure runs, see configure's option --config-cache.
11503 # It is not useful on other systems. If it contains results you don't
11504 # want to keep, you may remove or edit it.
11506 # config.status only pays attention to the cache file if you give it
11507 # the --recheck option to rerun configure.
11509 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11510 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11511 # following values.
11513 _ACEOF
11515 # The following way of writing the cache mishandles newlines in values,
11516 # but we know of no workaround that is simple, portable, and efficient.
11517 # So, don't put newlines in cache variables' values.
11518 # Ultrix sh set writes to stderr and can't be redirected directly,
11519 # and sets the high bit in the cache file unless we assign to the vars.
11521 (set) 2>&1 |
11522 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11523 *ac_space=\ *)
11524 # `set' does not quote correctly, so add quotes (double-quote
11525 # substitution turns \\\\ into \\, and sed turns \\ into \).
11526 sed -n \
11527 "s/'/'\\\\''/g;
11528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11531 # `set' quotes correctly as required by POSIX, so do not add quotes.
11532 sed -n \
11533 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11535 esac;
11537 sed '
11538 t clear
11539 : clear
11540 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11541 t end
11542 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11543 : end' >>confcache
11544 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11545 if test -w $cache_file; then
11546 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11547 cat confcache >$cache_file
11548 else
11549 echo "not updating unwritable cache $cache_file"
11552 rm -f confcache
11554 if test ${multilib} = yes; then
11555 multilib_arg="--enable-multilib"
11556 else
11557 multilib_arg=
11560 # Write our Makefile.
11561 ac_config_files="$ac_config_files Makefile"
11563 cat >confcache <<\_ACEOF
11564 # This file is a shell script that caches the results of configure
11565 # tests run on this system so they can be shared between configure
11566 # scripts and configure runs, see configure's option --config-cache.
11567 # It is not useful on other systems. If it contains results you don't
11568 # want to keep, you may remove or edit it.
11570 # config.status only pays attention to the cache file if you give it
11571 # the --recheck option to rerun configure.
11573 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11574 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11575 # following values.
11577 _ACEOF
11579 # The following way of writing the cache mishandles newlines in values,
11580 # but we know of no workaround that is simple, portable, and efficient.
11581 # So, don't put newlines in cache variables' values.
11582 # Ultrix sh set writes to stderr and can't be redirected directly,
11583 # and sets the high bit in the cache file unless we assign to the vars.
11585 (set) 2>&1 |
11586 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11587 *ac_space=\ *)
11588 # `set' does not quote correctly, so add quotes (double-quote
11589 # substitution turns \\\\ into \\, and sed turns \\ into \).
11590 sed -n \
11591 "s/'/'\\\\''/g;
11592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11595 # `set' quotes correctly as required by POSIX, so do not add quotes.
11596 sed -n \
11597 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11599 esac;
11601 sed '
11602 t clear
11603 : clear
11604 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11605 t end
11606 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11607 : end' >>confcache
11608 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11609 if test -w $cache_file; then
11610 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11611 cat confcache >$cache_file
11612 else
11613 echo "not updating unwritable cache $cache_file"
11616 rm -f confcache
11618 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11619 # Let make expand exec_prefix.
11620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11622 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11623 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11624 # trailing colons and then remove the whole line if VPATH becomes empty
11625 # (actually we leave an empty line to preserve line numbers).
11626 if test "x$srcdir" = x.; then
11627 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11628 s/:*\$(srcdir):*/:/;
11629 s/:*\${srcdir}:*/:/;
11630 s/:*@srcdir@:*/:/;
11631 s/^\([^=]*=[ ]*\):*/\1/;
11632 s/:*$//;
11633 s/^[^=]*=[ ]*$//;
11637 DEFS=-DHAVE_CONFIG_H
11639 ac_libobjs=
11640 ac_ltlibobjs=
11641 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11642 # 1. Remove the extension, and $U if already installed.
11643 ac_i=`echo "$ac_i" |
11644 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11645 # 2. Add them.
11646 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11647 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11648 done
11649 LIBOBJS=$ac_libobjs
11651 LTLIBOBJS=$ac_ltlibobjs
11654 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11655 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11656 Usually this means the macro was only invoked conditionally." >&5
11657 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11658 Usually this means the macro was only invoked conditionally." >&2;}
11659 { (exit 1); exit 1; }; }
11662 : ${CONFIG_STATUS=./config.status}
11663 ac_clean_files_save=$ac_clean_files
11664 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11665 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11666 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11667 cat >$CONFIG_STATUS <<_ACEOF
11668 #! $SHELL
11669 # Generated by $as_me.
11670 # Run this file to recreate the current configuration.
11671 # Compiler output produced by configure, useful for debugging
11672 # configure, is in config.log if it exists.
11674 debug=false
11675 ac_cs_recheck=false
11676 ac_cs_silent=false
11677 SHELL=\${CONFIG_SHELL-$SHELL}
11678 _ACEOF
11680 cat >>$CONFIG_STATUS <<\_ACEOF
11681 ## --------------------- ##
11682 ## M4sh Initialization. ##
11683 ## --------------------- ##
11685 # Be Bourne compatible
11686 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11687 emulate sh
11688 NULLCMD=:
11689 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11690 # is contrary to our usage. Disable this feature.
11691 alias -g '${1+"$@"}'='"$@"'
11692 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11693 set -o posix
11695 DUALCASE=1; export DUALCASE # for MKS sh
11697 # Support unset when possible.
11698 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11699 as_unset=unset
11700 else
11701 as_unset=false
11705 # Work around bugs in pre-3.0 UWIN ksh.
11706 $as_unset ENV MAIL MAILPATH
11707 PS1='$ '
11708 PS2='> '
11709 PS4='+ '
11711 # NLS nuisances.
11712 for as_var in \
11713 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11714 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11715 LC_TELEPHONE LC_TIME
11717 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11718 eval $as_var=C; export $as_var
11719 else
11720 $as_unset $as_var
11722 done
11724 # Required to use basename.
11725 if expr a : '\(a\)' >/dev/null 2>&1; then
11726 as_expr=expr
11727 else
11728 as_expr=false
11731 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11732 as_basename=basename
11733 else
11734 as_basename=false
11738 # Name of the executable.
11739 as_me=`$as_basename "$0" ||
11740 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11741 X"$0" : 'X\(//\)$' \| \
11742 X"$0" : 'X\(/\)$' \| \
11743 . : '\(.\)' 2>/dev/null ||
11744 echo X/"$0" |
11745 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11746 /^X\/\(\/\/\)$/{ s//\1/; q; }
11747 /^X\/\(\/\).*/{ s//\1/; q; }
11748 s/.*/./; q'`
11751 # PATH needs CR, and LINENO needs CR and PATH.
11752 # Avoid depending upon Character Ranges.
11753 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11754 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11755 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11756 as_cr_digits='0123456789'
11757 as_cr_alnum=$as_cr_Letters$as_cr_digits
11759 # The user is always right.
11760 if test "${PATH_SEPARATOR+set}" != set; then
11761 echo "#! /bin/sh" >conf$$.sh
11762 echo "exit 0" >>conf$$.sh
11763 chmod +x conf$$.sh
11764 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11765 PATH_SEPARATOR=';'
11766 else
11767 PATH_SEPARATOR=:
11769 rm -f conf$$.sh
11773 as_lineno_1=$LINENO
11774 as_lineno_2=$LINENO
11775 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11776 test "x$as_lineno_1" != "x$as_lineno_2" &&
11777 test "x$as_lineno_3" = "x$as_lineno_2" || {
11778 # Find who we are. Look in the path if we contain no path at all
11779 # relative or not.
11780 case $0 in
11781 *[\\/]* ) as_myself=$0 ;;
11782 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11783 for as_dir in $PATH
11785 IFS=$as_save_IFS
11786 test -z "$as_dir" && as_dir=.
11787 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11788 done
11791 esac
11792 # We did not find ourselves, most probably we were run as `sh COMMAND'
11793 # in which case we are not to be found in the path.
11794 if test "x$as_myself" = x; then
11795 as_myself=$0
11797 if test ! -f "$as_myself"; then
11798 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11799 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11800 { (exit 1); exit 1; }; }
11802 case $CONFIG_SHELL in
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
11809 for as_base in sh bash ksh sh5; do
11810 case $as_dir in
11812 if ("$as_dir/$as_base" -c '
11813 as_lineno_1=$LINENO
11814 as_lineno_2=$LINENO
11815 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11816 test "x$as_lineno_1" != "x$as_lineno_2" &&
11817 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11818 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11819 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11820 CONFIG_SHELL=$as_dir/$as_base
11821 export CONFIG_SHELL
11822 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11823 fi;;
11824 esac
11825 done
11826 done
11828 esac
11830 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11831 # uniformly replaced by the line number. The first 'sed' inserts a
11832 # line-number line before each line; the second 'sed' does the real
11833 # work. The second script uses 'N' to pair each line-number line
11834 # with the numbered line, and appends trailing '-' during
11835 # substitution so that $LINENO is not a special case at line end.
11836 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11837 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11838 sed '=' <$as_myself |
11839 sed '
11841 s,$,-,
11842 : loop
11843 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11844 t loop
11845 s,-$,,
11846 s,^['$as_cr_digits']*\n,,
11847 ' >$as_me.lineno &&
11848 chmod +x $as_me.lineno ||
11849 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11850 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11851 { (exit 1); exit 1; }; }
11853 # Don't try to exec as it changes $[0], causing all sort of problems
11854 # (the dirname of $[0] is not the place where we might find the
11855 # original and so on. Autoconf is especially sensible to this).
11856 . ./$as_me.lineno
11857 # Exit status is that of the last command.
11858 exit
11862 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11863 *c*,-n*) ECHO_N= ECHO_C='
11864 ' ECHO_T=' ' ;;
11865 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11866 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11867 esac
11869 if expr a : '\(a\)' >/dev/null 2>&1; then
11870 as_expr=expr
11871 else
11872 as_expr=false
11875 rm -f conf$$ conf$$.exe conf$$.file
11876 echo >conf$$.file
11877 if ln -s conf$$.file conf$$ 2>/dev/null; then
11878 # We could just check for DJGPP; but this test a) works b) is more generic
11879 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11880 if test -f conf$$.exe; then
11881 # Don't use ln at all; we don't have any links
11882 as_ln_s='cp -p'
11883 else
11884 as_ln_s='ln -s'
11886 elif ln conf$$.file conf$$ 2>/dev/null; then
11887 as_ln_s=ln
11888 else
11889 as_ln_s='cp -p'
11891 rm -f conf$$ conf$$.exe conf$$.file
11893 if mkdir -p . 2>/dev/null; then
11894 as_mkdir_p=:
11895 else
11896 test -d ./-p && rmdir ./-p
11897 as_mkdir_p=false
11900 as_executable_p="test -f"
11902 # Sed expression to map a string onto a valid CPP name.
11903 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11905 # Sed expression to map a string onto a valid variable name.
11906 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11909 # IFS
11910 # We need space, tab and new line, in precisely that order.
11911 as_nl='
11913 IFS=" $as_nl"
11915 # CDPATH.
11916 $as_unset CDPATH
11918 exec 6>&1
11920 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11921 # report actual input values of CONFIG_FILES etc. instead of their
11922 # values after options handling. Logging --version etc. is OK.
11923 exec 5>>config.log
11925 echo
11926 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11927 ## Running $as_me. ##
11928 _ASBOX
11929 } >&5
11930 cat >&5 <<_CSEOF
11932 This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
11933 generated by GNU Autoconf 2.59. Invocation command line was
11935 CONFIG_FILES = $CONFIG_FILES
11936 CONFIG_HEADERS = $CONFIG_HEADERS
11937 CONFIG_LINKS = $CONFIG_LINKS
11938 CONFIG_COMMANDS = $CONFIG_COMMANDS
11939 $ $0 $@
11941 _CSEOF
11942 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11943 echo >&5
11944 _ACEOF
11946 # Files that config.status was made for.
11947 if test -n "$ac_config_files"; then
11948 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11951 if test -n "$ac_config_headers"; then
11952 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11955 if test -n "$ac_config_links"; then
11956 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11959 if test -n "$ac_config_commands"; then
11960 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11963 cat >>$CONFIG_STATUS <<\_ACEOF
11965 ac_cs_usage="\
11966 \`$as_me' instantiates files from templates according to the
11967 current configuration.
11969 Usage: $0 [OPTIONS] [FILE]...
11971 -h, --help print this help, then exit
11972 -V, --version print version number, then exit
11973 -q, --quiet do not print progress messages
11974 -d, --debug don't remove temporary files
11975 --recheck update $as_me by reconfiguring in the same conditions
11976 --file=FILE[:TEMPLATE]
11977 instantiate the configuration file FILE
11978 --header=FILE[:TEMPLATE]
11979 instantiate the configuration header FILE
11981 Configuration files:
11982 $config_files
11984 Configuration headers:
11985 $config_headers
11987 Configuration commands:
11988 $config_commands
11990 Report bugs to <bug-autoconf@gnu.org>."
11991 _ACEOF
11993 cat >>$CONFIG_STATUS <<_ACEOF
11994 ac_cs_version="\\
11995 GNU Fortran Runtime Library config.status 0.2
11996 configured by $0, generated by GNU Autoconf 2.59,
11997 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11999 Copyright (C) 2003 Free Software Foundation, Inc.
12000 This config.status script is free software; the Free Software Foundation
12001 gives unlimited permission to copy, distribute and modify it."
12002 srcdir=$srcdir
12003 INSTALL="$INSTALL"
12004 _ACEOF
12006 cat >>$CONFIG_STATUS <<\_ACEOF
12007 # If no file are specified by the user, then we need to provide default
12008 # value. By we need to know if files were specified by the user.
12009 ac_need_defaults=:
12010 while test $# != 0
12012 case $1 in
12013 --*=*)
12014 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12015 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12016 ac_shift=:
12019 ac_option=$1
12020 ac_optarg=$2
12021 ac_shift=shift
12023 *) # This is not an option, so the user has probably given explicit
12024 # arguments.
12025 ac_option=$1
12026 ac_need_defaults=false;;
12027 esac
12029 case $ac_option in
12030 # Handling of the options.
12031 _ACEOF
12032 cat >>$CONFIG_STATUS <<\_ACEOF
12033 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12034 ac_cs_recheck=: ;;
12035 --version | --vers* | -V )
12036 echo "$ac_cs_version"; exit 0 ;;
12037 --he | --h)
12038 # Conflict between --help and --header
12039 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12040 Try \`$0 --help' for more information." >&5
12041 echo "$as_me: error: ambiguous option: $1
12042 Try \`$0 --help' for more information." >&2;}
12043 { (exit 1); exit 1; }; };;
12044 --help | --hel | -h )
12045 echo "$ac_cs_usage"; exit 0 ;;
12046 --debug | --d* | -d )
12047 debug=: ;;
12048 --file | --fil | --fi | --f )
12049 $ac_shift
12050 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12051 ac_need_defaults=false;;
12052 --header | --heade | --head | --hea )
12053 $ac_shift
12054 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12055 ac_need_defaults=false;;
12056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12057 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12058 ac_cs_silent=: ;;
12060 # This is an error.
12061 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12062 Try \`$0 --help' for more information." >&5
12063 echo "$as_me: error: unrecognized option: $1
12064 Try \`$0 --help' for more information." >&2;}
12065 { (exit 1); exit 1; }; } ;;
12067 *) ac_config_targets="$ac_config_targets $1" ;;
12069 esac
12070 shift
12071 done
12073 ac_configure_extra_args=
12075 if $ac_cs_silent; then
12076 exec 6>/dev/null
12077 ac_configure_extra_args="$ac_configure_extra_args --silent"
12080 _ACEOF
12081 cat >>$CONFIG_STATUS <<_ACEOF
12082 if \$ac_cs_recheck; then
12083 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12084 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12087 _ACEOF
12089 cat >>$CONFIG_STATUS <<_ACEOF
12091 # INIT-COMMANDS section.
12095 srcdir="$srcdir"
12096 host="$host"
12097 target="$target"
12098 with_multisubdir="$with_multisubdir"
12099 with_multisrctop="$with_multisrctop"
12100 with_target_subdir="$with_target_subdir"
12101 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12102 multi_basedir="$multi_basedir"
12103 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12104 CC="$CC"
12106 _ACEOF
12110 cat >>$CONFIG_STATUS <<\_ACEOF
12111 for ac_config_target in $ac_config_targets
12113 case "$ac_config_target" in
12114 # Handling of arguments.
12115 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12116 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12117 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12118 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12119 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12120 { (exit 1); exit 1; }; };;
12121 esac
12122 done
12124 # If the user did not use the arguments to specify the items to instantiate,
12125 # then the envvar interface is used. Set only those that are not.
12126 # We use the long form for the default assignment because of an extremely
12127 # bizarre bug on SunOS 4.1.3.
12128 if $ac_need_defaults; then
12129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12134 # Have a temporary directory for convenience. Make it in the build tree
12135 # simply because there is no reason to put it here, and in addition,
12136 # creating and moving files from /tmp can sometimes cause problems.
12137 # Create a temporary directory, and hook for its removal unless debugging.
12138 $debug ||
12140 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12141 trap '{ (exit 1); exit 1; }' 1 2 13 15
12144 # Create a (secure) tmp directory for tmp files.
12147 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12148 test -n "$tmp" && test -d "$tmp"
12149 } ||
12151 tmp=./confstat$$-$RANDOM
12152 (umask 077 && mkdir $tmp)
12153 } ||
12155 echo "$me: cannot create a temporary directory in ." >&2
12156 { (exit 1); exit 1; }
12159 _ACEOF
12161 cat >>$CONFIG_STATUS <<_ACEOF
12164 # CONFIG_FILES section.
12167 # No need to generate the scripts if there are no CONFIG_FILES.
12168 # This happens for instance when ./config.status config.h
12169 if test -n "\$CONFIG_FILES"; then
12170 # Protect against being on the right side of a sed subst in config.status.
12171 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12172 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12173 s,@SHELL@,$SHELL,;t t
12174 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12175 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12176 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12177 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12178 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12179 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12180 s,@exec_prefix@,$exec_prefix,;t t
12181 s,@prefix@,$prefix,;t t
12182 s,@program_transform_name@,$program_transform_name,;t t
12183 s,@bindir@,$bindir,;t t
12184 s,@sbindir@,$sbindir,;t t
12185 s,@libexecdir@,$libexecdir,;t t
12186 s,@datadir@,$datadir,;t t
12187 s,@sysconfdir@,$sysconfdir,;t t
12188 s,@sharedstatedir@,$sharedstatedir,;t t
12189 s,@localstatedir@,$localstatedir,;t t
12190 s,@libdir@,$libdir,;t t
12191 s,@includedir@,$includedir,;t t
12192 s,@oldincludedir@,$oldincludedir,;t t
12193 s,@infodir@,$infodir,;t t
12194 s,@mandir@,$mandir,;t t
12195 s,@build_alias@,$build_alias,;t t
12196 s,@host_alias@,$host_alias,;t t
12197 s,@target_alias@,$target_alias,;t t
12198 s,@DEFS@,$DEFS,;t t
12199 s,@ECHO_C@,$ECHO_C,;t t
12200 s,@ECHO_N@,$ECHO_N,;t t
12201 s,@ECHO_T@,$ECHO_T,;t t
12202 s,@LIBS@,$LIBS,;t t
12203 s,@build@,$build,;t t
12204 s,@build_cpu@,$build_cpu,;t t
12205 s,@build_vendor@,$build_vendor,;t t
12206 s,@build_os@,$build_os,;t t
12207 s,@host@,$host,;t t
12208 s,@host_cpu@,$host_cpu,;t t
12209 s,@host_vendor@,$host_vendor,;t t
12210 s,@host_os@,$host_os,;t t
12211 s,@target@,$target,;t t
12212 s,@target_cpu@,$target_cpu,;t t
12213 s,@target_vendor@,$target_vendor,;t t
12214 s,@target_os@,$target_os,;t t
12215 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12216 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12217 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12218 s,@CYGPATH_W@,$CYGPATH_W,;t t
12219 s,@PACKAGE@,$PACKAGE,;t t
12220 s,@VERSION@,$VERSION,;t t
12221 s,@ACLOCAL@,$ACLOCAL,;t t
12222 s,@AUTOCONF@,$AUTOCONF,;t t
12223 s,@AUTOMAKE@,$AUTOMAKE,;t t
12224 s,@AUTOHEADER@,$AUTOHEADER,;t t
12225 s,@MAKEINFO@,$MAKEINFO,;t t
12226 s,@install_sh@,$install_sh,;t t
12227 s,@STRIP@,$STRIP,;t t
12228 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12229 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12230 s,@mkdir_p@,$mkdir_p,;t t
12231 s,@AWK@,$AWK,;t t
12232 s,@SET_MAKE@,$SET_MAKE,;t t
12233 s,@am__leading_dot@,$am__leading_dot,;t t
12234 s,@AMTAR@,$AMTAR,;t t
12235 s,@am__tar@,$am__tar,;t t
12236 s,@am__untar@,$am__untar,;t t
12237 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12238 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12239 s,@MAINT@,$MAINT,;t t
12240 s,@multi_basedir@,$multi_basedir,;t t
12241 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12242 s,@gcc_version_full@,$gcc_version_full,;t t
12243 s,@gcc_version@,$gcc_version,;t t
12244 s,@toolexecdir@,$toolexecdir,;t t
12245 s,@toolexeclibdir@,$toolexeclibdir,;t t
12246 s,@CC@,$CC,;t t
12247 s,@ac_ct_CC@,$ac_ct_CC,;t t
12248 s,@EXEEXT@,$EXEEXT,;t t
12249 s,@OBJEXT@,$OBJEXT,;t t
12250 s,@CFLAGS@,$CFLAGS,;t t
12251 s,@AS@,$AS,;t t
12252 s,@ac_ct_AS@,$ac_ct_AS,;t t
12253 s,@AR@,$AR,;t t
12254 s,@ac_ct_AR@,$ac_ct_AR,;t t
12255 s,@RANLIB@,$RANLIB,;t t
12256 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12257 s,@LN_S@,$LN_S,;t t
12258 s,@LIBTOOL@,$LIBTOOL,;t t
12259 s,@enable_shared@,$enable_shared,;t t
12260 s,@enable_static@,$enable_static,;t t
12261 s,@FC@,$FC,;t t
12262 s,@FCFLAGS@,$FCFLAGS,;t t
12263 s,@LDFLAGS@,$LDFLAGS,;t t
12264 s,@ac_ct_FC@,$ac_ct_FC,;t t
12265 s,@CPP@,$CPP,;t t
12266 s,@CPPFLAGS@,$CPPFLAGS,;t t
12267 s,@EGREP@,$EGREP,;t t
12268 s,@MATH_OBJ@,$MATH_OBJ,;t t
12269 s,@LIBOBJS@,$LIBOBJS,;t t
12270 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12271 CEOF
12273 _ACEOF
12275 cat >>$CONFIG_STATUS <<\_ACEOF
12276 # Split the substitutions into bite-sized pieces for seds with
12277 # small command number limits, like on Digital OSF/1 and HP-UX.
12278 ac_max_sed_lines=48
12279 ac_sed_frag=1 # Number of current file.
12280 ac_beg=1 # First line for current file.
12281 ac_end=$ac_max_sed_lines # Line after last line for current file.
12282 ac_more_lines=:
12283 ac_sed_cmds=
12284 while $ac_more_lines; do
12285 if test $ac_beg -gt 1; then
12286 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12287 else
12288 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12290 if test ! -s $tmp/subs.frag; then
12291 ac_more_lines=false
12292 else
12293 # The purpose of the label and of the branching condition is to
12294 # speed up the sed processing (if there are no `@' at all, there
12295 # is no need to browse any of the substitutions).
12296 # These are the two extra sed commands mentioned above.
12297 (echo ':t
12298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12299 if test -z "$ac_sed_cmds"; then
12300 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12301 else
12302 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12304 ac_sed_frag=`expr $ac_sed_frag + 1`
12305 ac_beg=$ac_end
12306 ac_end=`expr $ac_end + $ac_max_sed_lines`
12308 done
12309 if test -z "$ac_sed_cmds"; then
12310 ac_sed_cmds=cat
12312 fi # test -n "$CONFIG_FILES"
12314 _ACEOF
12315 cat >>$CONFIG_STATUS <<\_ACEOF
12316 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12317 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12318 case $ac_file in
12319 - | *:- | *:-:* ) # input from stdin
12320 cat >$tmp/stdin
12321 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12322 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12323 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12324 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12325 * ) ac_file_in=$ac_file.in ;;
12326 esac
12328 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12329 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12330 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12331 X"$ac_file" : 'X\(//\)[^/]' \| \
12332 X"$ac_file" : 'X\(//\)$' \| \
12333 X"$ac_file" : 'X\(/\)' \| \
12334 . : '\(.\)' 2>/dev/null ||
12335 echo X"$ac_file" |
12336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12338 /^X\(\/\/\)$/{ s//\1/; q; }
12339 /^X\(\/\).*/{ s//\1/; q; }
12340 s/.*/./; q'`
12341 { if $as_mkdir_p; then
12342 mkdir -p "$ac_dir"
12343 else
12344 as_dir="$ac_dir"
12345 as_dirs=
12346 while test ! -d "$as_dir"; do
12347 as_dirs="$as_dir $as_dirs"
12348 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12350 X"$as_dir" : 'X\(//\)[^/]' \| \
12351 X"$as_dir" : 'X\(//\)$' \| \
12352 X"$as_dir" : 'X\(/\)' \| \
12353 . : '\(.\)' 2>/dev/null ||
12354 echo X"$as_dir" |
12355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12356 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12357 /^X\(\/\/\)$/{ s//\1/; q; }
12358 /^X\(\/\).*/{ s//\1/; q; }
12359 s/.*/./; q'`
12360 done
12361 test ! -n "$as_dirs" || mkdir $as_dirs
12362 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12363 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12364 { (exit 1); exit 1; }; }; }
12366 ac_builddir=.
12368 if test "$ac_dir" != .; then
12369 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12370 # A "../" for each directory in $ac_dir_suffix.
12371 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12372 else
12373 ac_dir_suffix= ac_top_builddir=
12376 case $srcdir in
12377 .) # No --srcdir option. We are building in place.
12378 ac_srcdir=.
12379 if test -z "$ac_top_builddir"; then
12380 ac_top_srcdir=.
12381 else
12382 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12383 fi ;;
12384 [\\/]* | ?:[\\/]* ) # Absolute path.
12385 ac_srcdir=$srcdir$ac_dir_suffix;
12386 ac_top_srcdir=$srcdir ;;
12387 *) # Relative path.
12388 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12389 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12390 esac
12392 # Do not use `cd foo && pwd` to compute absolute paths, because
12393 # the directories may not exist.
12394 case `pwd` in
12395 .) ac_abs_builddir="$ac_dir";;
12397 case "$ac_dir" in
12398 .) ac_abs_builddir=`pwd`;;
12399 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12400 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12401 esac;;
12402 esac
12403 case $ac_abs_builddir in
12404 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12406 case ${ac_top_builddir}. in
12407 .) ac_abs_top_builddir=$ac_abs_builddir;;
12408 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12409 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12410 esac;;
12411 esac
12412 case $ac_abs_builddir in
12413 .) ac_abs_srcdir=$ac_srcdir;;
12415 case $ac_srcdir in
12416 .) ac_abs_srcdir=$ac_abs_builddir;;
12417 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12418 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12419 esac;;
12420 esac
12421 case $ac_abs_builddir in
12422 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12424 case $ac_top_srcdir in
12425 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12426 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12427 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12428 esac;;
12429 esac
12432 case $INSTALL in
12433 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12434 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12435 esac
12437 if test x"$ac_file" != x-; then
12438 { echo "$as_me:$LINENO: creating $ac_file" >&5
12439 echo "$as_me: creating $ac_file" >&6;}
12440 rm -f "$ac_file"
12442 # Let's still pretend it is `configure' which instantiates (i.e., don't
12443 # use $as_me), people would be surprised to read:
12444 # /* config.h. Generated by config.status. */
12445 if test x"$ac_file" = x-; then
12446 configure_input=
12447 else
12448 configure_input="$ac_file. "
12450 configure_input=$configure_input"Generated from `echo $ac_file_in |
12451 sed 's,.*/,,'` by configure."
12453 # First look for the input files in the build tree, otherwise in the
12454 # src tree.
12455 ac_file_inputs=`IFS=:
12456 for f in $ac_file_in; do
12457 case $f in
12458 -) echo $tmp/stdin ;;
12459 [\\/$]*)
12460 # Absolute (can't be DOS-style, as IFS=:)
12461 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12462 echo "$as_me: error: cannot find input file: $f" >&2;}
12463 { (exit 1); exit 1; }; }
12464 echo "$f";;
12465 *) # Relative
12466 if test -f "$f"; then
12467 # Build tree
12468 echo "$f"
12469 elif test -f "$srcdir/$f"; then
12470 # Source tree
12471 echo "$srcdir/$f"
12472 else
12473 # /dev/null tree
12474 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12475 echo "$as_me: error: cannot find input file: $f" >&2;}
12476 { (exit 1); exit 1; }; }
12477 fi;;
12478 esac
12479 done` || { (exit 1); exit 1; }
12480 _ACEOF
12481 cat >>$CONFIG_STATUS <<_ACEOF
12482 sed "$ac_vpsub
12483 $extrasub
12484 _ACEOF
12485 cat >>$CONFIG_STATUS <<\_ACEOF
12487 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12488 s,@configure_input@,$configure_input,;t t
12489 s,@srcdir@,$ac_srcdir,;t t
12490 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12491 s,@top_srcdir@,$ac_top_srcdir,;t t
12492 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12493 s,@builddir@,$ac_builddir,;t t
12494 s,@abs_builddir@,$ac_abs_builddir,;t t
12495 s,@top_builddir@,$ac_top_builddir,;t t
12496 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12497 s,@INSTALL@,$ac_INSTALL,;t t
12498 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12499 rm -f $tmp/stdin
12500 if test x"$ac_file" != x-; then
12501 mv $tmp/out $ac_file
12502 else
12503 cat $tmp/out
12504 rm -f $tmp/out
12507 done
12508 _ACEOF
12509 cat >>$CONFIG_STATUS <<\_ACEOF
12512 # CONFIG_HEADER section.
12515 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12516 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12518 # ac_d sets the value in "#define NAME VALUE" lines.
12519 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12520 ac_dB='[ ].*$,\1#\2'
12521 ac_dC=' '
12522 ac_dD=',;t'
12523 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12524 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12525 ac_uB='$,\1#\2define\3'
12526 ac_uC=' '
12527 ac_uD=',;t'
12529 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12530 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12531 case $ac_file in
12532 - | *:- | *:-:* ) # input from stdin
12533 cat >$tmp/stdin
12534 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12536 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12537 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12538 * ) ac_file_in=$ac_file.in ;;
12539 esac
12541 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12542 echo "$as_me: creating $ac_file" >&6;}
12544 # First look for the input files in the build tree, otherwise in the
12545 # src tree.
12546 ac_file_inputs=`IFS=:
12547 for f in $ac_file_in; do
12548 case $f in
12549 -) echo $tmp/stdin ;;
12550 [\\/$]*)
12551 # Absolute (can't be DOS-style, as IFS=:)
12552 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12553 echo "$as_me: error: cannot find input file: $f" >&2;}
12554 { (exit 1); exit 1; }; }
12555 # Do quote $f, to prevent DOS paths from being IFS'd.
12556 echo "$f";;
12557 *) # Relative
12558 if test -f "$f"; then
12559 # Build tree
12560 echo "$f"
12561 elif test -f "$srcdir/$f"; then
12562 # Source tree
12563 echo "$srcdir/$f"
12564 else
12565 # /dev/null tree
12566 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12567 echo "$as_me: error: cannot find input file: $f" >&2;}
12568 { (exit 1); exit 1; }; }
12569 fi;;
12570 esac
12571 done` || { (exit 1); exit 1; }
12572 # Remove the trailing spaces.
12573 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12575 _ACEOF
12577 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12578 # `conftest.undefs', that substitutes the proper values into
12579 # config.h.in to produce config.h. The first handles `#define'
12580 # templates, and the second `#undef' templates.
12581 # And first: Protect against being on the right side of a sed subst in
12582 # config.status. Protect against being in an unquoted here document
12583 # in config.status.
12584 rm -f conftest.defines conftest.undefs
12585 # Using a here document instead of a string reduces the quoting nightmare.
12586 # Putting comments in sed scripts is not portable.
12588 # `end' is used to avoid that the second main sed command (meant for
12589 # 0-ary CPP macros) applies to n-ary macro definitions.
12590 # See the Autoconf documentation for `clear'.
12591 cat >confdef2sed.sed <<\_ACEOF
12592 s/[\\&,]/\\&/g
12593 s,[\\$`],\\&,g
12594 t clear
12595 : clear
12596 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12597 t end
12598 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12599 : end
12600 _ACEOF
12601 # If some macros were called several times there might be several times
12602 # the same #defines, which is useless. Nevertheless, we may not want to
12603 # sort them, since we want the *last* AC-DEFINE to be honored.
12604 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12605 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12606 rm -f confdef2sed.sed
12608 # This sed command replaces #undef with comments. This is necessary, for
12609 # example, in the case of _POSIX_SOURCE, which is predefined and required
12610 # on some systems where configure will not decide to define it.
12611 cat >>conftest.undefs <<\_ACEOF
12612 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12613 _ACEOF
12615 # Break up conftest.defines because some shells have a limit on the size
12616 # of here documents, and old seds have small limits too (100 cmds).
12617 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12618 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12619 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12620 echo ' :' >>$CONFIG_STATUS
12621 rm -f conftest.tail
12622 while grep . conftest.defines >/dev/null
12624 # Write a limited-size here document to $tmp/defines.sed.
12625 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12626 # Speed up: don't consider the non `#define' lines.
12627 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12628 # Work around the forget-to-reset-the-flag bug.
12629 echo 't clr' >>$CONFIG_STATUS
12630 echo ': clr' >>$CONFIG_STATUS
12631 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12632 echo 'CEOF
12633 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12634 rm -f $tmp/in
12635 mv $tmp/out $tmp/in
12636 ' >>$CONFIG_STATUS
12637 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12638 rm -f conftest.defines
12639 mv conftest.tail conftest.defines
12640 done
12641 rm -f conftest.defines
12642 echo ' fi # grep' >>$CONFIG_STATUS
12643 echo >>$CONFIG_STATUS
12645 # Break up conftest.undefs because some shells have a limit on the size
12646 # of here documents, and old seds have small limits too (100 cmds).
12647 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12648 rm -f conftest.tail
12649 while grep . conftest.undefs >/dev/null
12651 # Write a limited-size here document to $tmp/undefs.sed.
12652 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12653 # Speed up: don't consider the non `#undef'
12654 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12655 # Work around the forget-to-reset-the-flag bug.
12656 echo 't clr' >>$CONFIG_STATUS
12657 echo ': clr' >>$CONFIG_STATUS
12658 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12659 echo 'CEOF
12660 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12661 rm -f $tmp/in
12662 mv $tmp/out $tmp/in
12663 ' >>$CONFIG_STATUS
12664 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12665 rm -f conftest.undefs
12666 mv conftest.tail conftest.undefs
12667 done
12668 rm -f conftest.undefs
12670 cat >>$CONFIG_STATUS <<\_ACEOF
12671 # Let's still pretend it is `configure' which instantiates (i.e., don't
12672 # use $as_me), people would be surprised to read:
12673 # /* config.h. Generated by config.status. */
12674 if test x"$ac_file" = x-; then
12675 echo "/* Generated by configure. */" >$tmp/config.h
12676 else
12677 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12679 cat $tmp/in >>$tmp/config.h
12680 rm -f $tmp/in
12681 if test x"$ac_file" != x-; then
12682 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12683 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12684 echo "$as_me: $ac_file is unchanged" >&6;}
12685 else
12686 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12688 X"$ac_file" : 'X\(//\)[^/]' \| \
12689 X"$ac_file" : 'X\(//\)$' \| \
12690 X"$ac_file" : 'X\(/\)' \| \
12691 . : '\(.\)' 2>/dev/null ||
12692 echo X"$ac_file" |
12693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12695 /^X\(\/\/\)$/{ s//\1/; q; }
12696 /^X\(\/\).*/{ s//\1/; q; }
12697 s/.*/./; q'`
12698 { if $as_mkdir_p; then
12699 mkdir -p "$ac_dir"
12700 else
12701 as_dir="$ac_dir"
12702 as_dirs=
12703 while test ! -d "$as_dir"; do
12704 as_dirs="$as_dir $as_dirs"
12705 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12706 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12707 X"$as_dir" : 'X\(//\)[^/]' \| \
12708 X"$as_dir" : 'X\(//\)$' \| \
12709 X"$as_dir" : 'X\(/\)' \| \
12710 . : '\(.\)' 2>/dev/null ||
12711 echo X"$as_dir" |
12712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12714 /^X\(\/\/\)$/{ s//\1/; q; }
12715 /^X\(\/\).*/{ s//\1/; q; }
12716 s/.*/./; q'`
12717 done
12718 test ! -n "$as_dirs" || mkdir $as_dirs
12719 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12720 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12721 { (exit 1); exit 1; }; }; }
12723 rm -f $ac_file
12724 mv $tmp/config.h $ac_file
12726 else
12727 cat $tmp/config.h
12728 rm -f $tmp/config.h
12730 # Compute $ac_file's index in $config_headers.
12731 _am_stamp_count=1
12732 for _am_header in $config_headers :; do
12733 case $_am_header in
12734 $ac_file | $ac_file:* )
12735 break ;;
12737 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12738 esac
12739 done
12740 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12741 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12742 X$ac_file : 'X\(//\)[^/]' \| \
12743 X$ac_file : 'X\(//\)$' \| \
12744 X$ac_file : 'X\(/\)' \| \
12745 . : '\(.\)' 2>/dev/null ||
12746 echo X$ac_file |
12747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12749 /^X\(\/\/\)$/{ s//\1/; q; }
12750 /^X\(\/\).*/{ s//\1/; q; }
12751 s/.*/./; q'`/stamp-h$_am_stamp_count
12752 done
12753 _ACEOF
12754 cat >>$CONFIG_STATUS <<\_ACEOF
12757 # CONFIG_COMMANDS section.
12759 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12760 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12761 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12762 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12763 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12764 X"$ac_dest" : 'X\(//\)[^/]' \| \
12765 X"$ac_dest" : 'X\(//\)$' \| \
12766 X"$ac_dest" : 'X\(/\)' \| \
12767 . : '\(.\)' 2>/dev/null ||
12768 echo X"$ac_dest" |
12769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12771 /^X\(\/\/\)$/{ s//\1/; q; }
12772 /^X\(\/\).*/{ s//\1/; q; }
12773 s/.*/./; q'`
12774 { if $as_mkdir_p; then
12775 mkdir -p "$ac_dir"
12776 else
12777 as_dir="$ac_dir"
12778 as_dirs=
12779 while test ! -d "$as_dir"; do
12780 as_dirs="$as_dir $as_dirs"
12781 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12782 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12783 X"$as_dir" : 'X\(//\)[^/]' \| \
12784 X"$as_dir" : 'X\(//\)$' \| \
12785 X"$as_dir" : 'X\(/\)' \| \
12786 . : '\(.\)' 2>/dev/null ||
12787 echo X"$as_dir" |
12788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12790 /^X\(\/\/\)$/{ s//\1/; q; }
12791 /^X\(\/\).*/{ s//\1/; q; }
12792 s/.*/./; q'`
12793 done
12794 test ! -n "$as_dirs" || mkdir $as_dirs
12795 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12796 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12797 { (exit 1); exit 1; }; }; }
12799 ac_builddir=.
12801 if test "$ac_dir" != .; then
12802 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12803 # A "../" for each directory in $ac_dir_suffix.
12804 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12805 else
12806 ac_dir_suffix= ac_top_builddir=
12809 case $srcdir in
12810 .) # No --srcdir option. We are building in place.
12811 ac_srcdir=.
12812 if test -z "$ac_top_builddir"; then
12813 ac_top_srcdir=.
12814 else
12815 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12816 fi ;;
12817 [\\/]* | ?:[\\/]* ) # Absolute path.
12818 ac_srcdir=$srcdir$ac_dir_suffix;
12819 ac_top_srcdir=$srcdir ;;
12820 *) # Relative path.
12821 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12822 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12823 esac
12825 # Do not use `cd foo && pwd` to compute absolute paths, because
12826 # the directories may not exist.
12827 case `pwd` in
12828 .) ac_abs_builddir="$ac_dir";;
12830 case "$ac_dir" in
12831 .) ac_abs_builddir=`pwd`;;
12832 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12833 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12834 esac;;
12835 esac
12836 case $ac_abs_builddir in
12837 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12839 case ${ac_top_builddir}. in
12840 .) ac_abs_top_builddir=$ac_abs_builddir;;
12841 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12842 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12843 esac;;
12844 esac
12845 case $ac_abs_builddir in
12846 .) ac_abs_srcdir=$ac_srcdir;;
12848 case $ac_srcdir in
12849 .) ac_abs_srcdir=$ac_abs_builddir;;
12850 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12851 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12852 esac;;
12853 esac
12854 case $ac_abs_builddir in
12855 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12857 case $ac_top_srcdir in
12858 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12859 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12860 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12861 esac;;
12862 esac
12865 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12866 echo "$as_me: executing $ac_dest commands" >&6;}
12867 case $ac_dest in
12868 default-1 )
12869 # Only add multilib support code if we just rebuilt the top-level
12870 # Makefile.
12871 case " $CONFIG_FILES " in
12872 *" Makefile "*)
12873 ac_file=Makefile . ${multi_basedir}/config-ml.in
12875 esac ;;
12876 esac
12877 done
12878 _ACEOF
12880 cat >>$CONFIG_STATUS <<\_ACEOF
12882 { (exit 0); exit 0; }
12883 _ACEOF
12884 chmod +x $CONFIG_STATUS
12885 ac_clean_files=$ac_clean_files_save
12888 # configure is writing to config.log, and then calls config.status.
12889 # config.status does its own redirection, appending to config.log.
12890 # Unfortunately, on DOS this fails, as config.log is still kept open
12891 # by configure, so config.status won't be able to write to it; its
12892 # output is simply discarded. So we exec the FD to /dev/null,
12893 # effectively closing config.log, so it can be properly (re)opened and
12894 # appended to by config.status. When coming back to configure, we
12895 # need to make the FD available again.
12896 if test "$no_create" != yes; then
12897 ac_cs_success=:
12898 ac_config_status_args=
12899 test "$silent" = yes &&
12900 ac_config_status_args="$ac_config_status_args --quiet"
12901 exec 5>/dev/null
12902 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12903 exec 5>>config.log
12904 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12905 # would make configure fail if this is the last instruction.
12906 $ac_cs_success || { (exit 1); exit 1; }