* de.po: Update.
[official-gcc/alias-decl.git] / libgfortran / configure
blob3bae7ed77e88b67064f752c3b1026bcfc8a3f774
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU Fortran Runtime Library 0.2.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='GNU Fortran Runtime Library'
269 PACKAGE_TARNAME='libgfortran'
270 PACKAGE_VERSION='0.2'
271 PACKAGE_STRING='GNU Fortran Runtime Library 0.2'
272 PACKAGE_BUGREPORT=''
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL enable_shared enable_static FC FCFLAGS LDFLAGS ac_ct_FC extra_ldflags_libgfortran CPP CPPFLAGS EGREP MATH_OBJ LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
724 else
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_FC_set=${FC+set}
753 ac_env_FC_value=$FC
754 ac_cv_env_FC_set=${FC+set}
755 ac_cv_env_FC_value=$FC
756 ac_env_FCFLAGS_set=${FCFLAGS+set}
757 ac_env_FCFLAGS_value=$FCFLAGS
758 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
759 ac_cv_env_FCFLAGS_value=$FCFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPP_set=${CPP+set}
765 ac_env_CPP_value=$CPP
766 ac_cv_env_CPP_set=${CPP+set}
767 ac_cv_env_CPP_value=$CPP
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures GNU Fortran Runtime Library 0.2 to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800 _ACEOF
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
831 cat <<\_ACEOF
833 Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838 System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 --target=TARGET configure for building compilers for TARGET [HOST]
842 _ACEOF
845 if test -n "$ac_init_help"; then
846 case $ac_init_help in
847 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.2:";;
848 esac
849 cat <<\_ACEOF
851 Optional Features:
852 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
853 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
854 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
855 --enable-maintainer-mode enable make rules and dependencies not useful
856 (and sometimes confusing) to the casual installer
857 --enable-multilib build many library versions (default)
858 --enable-shared=PKGS build shared libraries default=yes
859 --enable-static=PKGS build static libraries default=yes
860 --enable-fast-install=PKGS optimize for fast installation default=yes
861 --disable-libtool-lock avoid locking (might break parallel builds)
862 --disable-largefile omit support for large files
863 --enable-cmath Include complex math functions
865 Optional Packages:
866 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
867 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
868 --with-gnu-ld assume the C compiler uses GNU ld default=no
869 --with-pic try to use only PIC/non-PIC objects default=use both
871 Some influential environment variables:
872 CC C compiler command
873 CFLAGS C compiler flags
874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
875 nonstandard directory <lib dir>
876 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
877 headers in a nonstandard directory <include dir>
878 FC Fortran compiler command
879 FCFLAGS Fortran compiler flags
880 CPP C preprocessor
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
885 _ACEOF
888 if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
890 ac_popdir=`pwd`
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
893 ac_builddir=.
895 if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899 else
900 ac_dir_suffix= ac_top_builddir=
903 case $srcdir in
904 .) # No --srcdir option. We are building in place.
905 ac_srcdir=.
906 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=.
908 else
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910 fi ;;
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
914 *) # Relative path.
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 esac
919 # Do not use `cd foo && pwd` to compute absolute paths, because
920 # the directories may not exist.
921 case `pwd` in
922 .) ac_abs_builddir="$ac_dir";;
924 case "$ac_dir" in
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 esac;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_srcdir=$ac_srcdir;;
942 case $ac_srcdir in
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 esac;;
956 esac
958 cd $ac_dir
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
961 echo
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
964 echo
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
968 echo
969 $ac_configure --help
970 else
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 cd $ac_popdir
974 done
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
979 cat <<\_ACEOF
980 GNU Fortran Runtime Library configure 0.2
981 generated by GNU Autoconf 2.59
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
986 _ACEOF
987 exit 0
989 exec 5>config.log
990 cat >&5 <<_ACEOF
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
994 It was created by GNU Fortran Runtime Library $as_me 0.2, which was
995 generated by GNU Autoconf 2.59. Invocation command line was
997 $ $0 $@
999 _ACEOF
1001 cat <<_ASUNAME
1002 ## --------- ##
1003 ## Platform. ##
1004 ## --------- ##
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023 _ASUNAME
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026 for as_dir in $PATH
1028 IFS=$as_save_IFS
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1031 done
1033 } >&5
1035 cat >&5 <<_ACEOF
1038 ## ----------- ##
1039 ## Core tests. ##
1040 ## ----------- ##
1042 _ACEOF
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1050 ac_configure_args=
1051 ac_configure_args0=
1052 ac_configure_args1=
1053 ac_sep=
1054 ac_must_keep_next=false
1055 for ac_pass in 1 2
1057 for ac_arg
1059 case $ac_arg in
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 continue ;;
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066 esac
1067 case $ac_pass in
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1073 else
1074 case $ac_arg in
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081 esac
1083 -* ) ac_must_keep_next=true ;;
1084 esac
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1088 ac_sep=" "
1090 esac
1091 done
1092 done
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log. We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close' the trap.
1101 trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1104 echo
1106 cat <<\_ASBOX
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1110 _ASBOX
1111 echo
1112 # The following way of writing the cache mishandles newlines in values,
1114 (set) 2>&1 |
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116 *ac_space=\ *)
1117 sed -n \
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 sed -n \
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 esac;
1127 echo
1129 cat <<\_ASBOX
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1133 _ASBOX
1134 echo
1135 for ac_var in $ac_subst_vars
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1142 if test -n "$ac_subst_files"; then
1143 cat <<\_ASBOX
1144 ## ------------- ##
1145 ## Output files. ##
1146 ## ------------- ##
1147 _ASBOX
1148 echo
1149 for ac_var in $ac_subst_files
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1157 if test -s confdefs.h; then
1158 cat <<\_ASBOX
1159 ## ----------- ##
1160 ## confdefs.h. ##
1161 ## ----------- ##
1162 _ASBOX
1163 echo
1164 sed "/^$/d" confdefs.h | sort
1165 echo
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1170 } >&5
1171 rm -f core *.core &&
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173 exit $exit_status
1175 for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177 done
1178 ac_signal=0
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183 echo >confdefs.h
1185 # Predefined preprocessor variables.
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1189 _ACEOF
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1204 _ACEOF
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209 _ACEOF
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 else
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1226 . "$ac_site_file"
1228 done
1230 if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1236 case $cache_file in
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1239 esac
1241 else
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1244 >$cache_file
1247 # Check that the precious variables saved in the cache have kept the same
1248 # value.
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1257 set,)
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,set)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,);;
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271 echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273 echo "$as_me: current value: $ac_new_val" >&2;}
1274 ac_cache_corrupted=:
1275 fi;;
1276 esac
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1279 case $ac_new_val in
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1283 esac
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287 esac
1289 done
1290 if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1298 ac_ext=c
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330 ac_config_headers="$ac_config_headers config.h"
1333 # -------
1334 # Options
1335 # -------
1337 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1338 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1339 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1340 if test "${enable_version_specific_runtime_libs+set}" = set; then
1341 enableval="$enable_version_specific_runtime_libs"
1342 case "$enableval" in
1343 yes) version_specific_libs=yes ;;
1344 no) version_specific_libs=no ;;
1345 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1346 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1347 { (exit 1); exit 1; }; };;
1348 esac
1349 else
1350 version_specific_libs=no
1352 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1353 echo "${ECHO_T}$version_specific_libs" >&6
1356 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1358 # You will slowly go insane if you do not grok the following fact: when
1359 # building this library, the top-level /target/ becomes the library's /host/.
1361 # configure then causes --target to default to --host, exactly like any
1362 # other package using autoconf. Therefore, 'target' and 'host' will
1363 # always be the same. This makes sense both for native and cross compilers
1364 # just think about it for a little while. :-)
1366 # Also, if this library is being configured as part of a cross compiler, the
1367 # top-level configure script will pass the "real" host as $with_cross_host.
1369 # Do not delete or change the following two lines. For why, see
1370 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1371 ac_aux_dir=
1372 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1373 if test -f $ac_dir/install-sh; then
1374 ac_aux_dir=$ac_dir
1375 ac_install_sh="$ac_aux_dir/install-sh -c"
1376 break
1377 elif test -f $ac_dir/install.sh; then
1378 ac_aux_dir=$ac_dir
1379 ac_install_sh="$ac_aux_dir/install.sh -c"
1380 break
1381 elif test -f $ac_dir/shtool; then
1382 ac_aux_dir=$ac_dir
1383 ac_install_sh="$ac_aux_dir/shtool install -c"
1384 break
1386 done
1387 if test -z "$ac_aux_dir"; then
1388 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1389 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1390 { (exit 1); exit 1; }; }
1392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1394 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1396 # Make sure we can run config.sub.
1397 $ac_config_sub sun4 >/dev/null 2>&1 ||
1398 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1399 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1400 { (exit 1); exit 1; }; }
1402 echo "$as_me:$LINENO: checking build system type" >&5
1403 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1404 if test "${ac_cv_build+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407 ac_cv_build_alias=$build_alias
1408 test -z "$ac_cv_build_alias" &&
1409 ac_cv_build_alias=`$ac_config_guess`
1410 test -z "$ac_cv_build_alias" &&
1411 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1412 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1413 { (exit 1); exit 1; }; }
1414 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1420 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1421 echo "${ECHO_T}$ac_cv_build" >&6
1422 build=$ac_cv_build
1423 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428 echo "$as_me:$LINENO: checking host system type" >&5
1429 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1430 if test "${ac_cv_host+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433 ac_cv_host_alias=$host_alias
1434 test -z "$ac_cv_host_alias" &&
1435 ac_cv_host_alias=$ac_cv_build_alias
1436 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1437 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1439 { (exit 1); exit 1; }; }
1442 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1443 echo "${ECHO_T}$ac_cv_host" >&6
1444 host=$ac_cv_host
1445 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450 echo "$as_me:$LINENO: checking target system type" >&5
1451 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1452 if test "${ac_cv_target+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1454 else
1455 ac_cv_target_alias=$target_alias
1456 test "x$ac_cv_target_alias" = "x" &&
1457 ac_cv_target_alias=$ac_cv_host_alias
1458 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1465 echo "${ECHO_T}$ac_cv_target" >&6
1466 target=$ac_cv_target
1467 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472 # The aliases save the names the user supplied, while $host etc.
1473 # will get canonicalized.
1474 test -n "$target_alias" &&
1475 test "$program_prefix$program_suffix$program_transform_name" = \
1476 NONENONEs,x,x, &&
1477 program_prefix=${target_alias}-
1478 target_alias=${target_alias-$host_alias}
1480 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1481 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1482 # 1.8.2: minimum required version
1483 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1484 # of other PACKAGE_* variables will, however, and there's nothing
1485 # we can do about that; they come from AC_INIT).
1486 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1487 # file in the top srcdir, etc, etc), so stop complaining.
1488 # no-dependencies: turns off auto dependency generation (just for now)
1489 # -Wall: turns on all automake warnings...
1490 # -Wno-portability: ...except this one, since GNU make is required.
1491 am__api_version="1.9"
1492 # Find a good install program. We prefer a C program (faster),
1493 # so one script is as good as another. But avoid the broken or
1494 # incompatible versions:
1495 # SysV /etc/install, /usr/sbin/install
1496 # SunOS /usr/etc/install
1497 # IRIX /sbin/install
1498 # AIX /bin/install
1499 # AmigaOS /C/install, which installs bootblocks on floppy discs
1500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1503 # OS/2's system install, which has a completely different semantic
1504 # ./install, which can be erroneously created by make from ./install.sh.
1505 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1506 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1507 if test -z "$INSTALL"; then
1508 if test "${ac_cv_path_install+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 for as_dir in $PATH
1514 IFS=$as_save_IFS
1515 test -z "$as_dir" && as_dir=.
1516 # Account for people who put trailing slashes in PATH elements.
1517 case $as_dir/ in
1518 ./ | .// | /cC/* | \
1519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1520 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1521 /usr/ucb/* ) ;;
1523 # OSF1 and SCO ODT 3.0 have their own names for install.
1524 # Don't use installbsd from OSF since it installs stuff as root
1525 # by default.
1526 for ac_prog in ginstall scoinst install; do
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1529 if test $ac_prog = install &&
1530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1531 # AIX install. It has an incompatible calling convention.
1533 elif test $ac_prog = install &&
1534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1535 # program-specific install script used by HP pwplus--don't use.
1537 else
1538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1539 break 3
1542 done
1543 done
1545 esac
1546 done
1550 if test "${ac_cv_path_install+set}" = set; then
1551 INSTALL=$ac_cv_path_install
1552 else
1553 # As a last resort, use the slow shell script. We don't cache a
1554 # path for INSTALL within a source directory, because that will
1555 # break other packages using the cache if that directory is
1556 # removed, or if the path is relative.
1557 INSTALL=$ac_install_sh
1560 echo "$as_me:$LINENO: result: $INSTALL" >&5
1561 echo "${ECHO_T}$INSTALL" >&6
1563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1564 # It thinks the first close brace ends the variable substitution.
1565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1571 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1572 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1573 # Just in case
1574 sleep 1
1575 echo timestamp > conftest.file
1576 # Do `set' in a subshell so we don't clobber the current shell's
1577 # arguments. Must try -L first in case configure is actually a
1578 # symlink; some systems play weird games with the mod time of symlinks
1579 # (eg FreeBSD returns the mod time of the symlink's containing
1580 # directory).
1581 if (
1582 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1583 if test "$*" = "X"; then
1584 # -L didn't work.
1585 set X `ls -t $srcdir/configure conftest.file`
1587 rm -f conftest.file
1588 if test "$*" != "X $srcdir/configure conftest.file" \
1589 && test "$*" != "X conftest.file $srcdir/configure"; then
1591 # If neither matched, then we have a broken ls. This can happen
1592 # if, for instance, CONFIG_SHELL is bash and it inherits a
1593 # broken ls alias from the environment. This has actually
1594 # happened. Such a system could not be considered "sane".
1595 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1596 alias in your environment" >&5
1597 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1598 alias in your environment" >&2;}
1599 { (exit 1); exit 1; }; }
1602 test "$2" = conftest.file
1604 then
1605 # Ok.
1607 else
1608 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1609 Check your system clock" >&5
1610 echo "$as_me: error: newly created file is older than distributed files!
1611 Check your system clock" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: result: yes" >&5
1615 echo "${ECHO_T}yes" >&6
1616 test "$program_prefix" != NONE &&
1617 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1618 # Use a double $ so make ignores it.
1619 test "$program_suffix" != NONE &&
1620 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1621 # Double any \ or $. echo might interpret backslashes.
1622 # By default was `s,x,x', remove it if useless.
1623 cat <<\_ACEOF >conftest.sed
1624 s/[\\$]/&&/g;s/;s,x,x,$//
1625 _ACEOF
1626 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1627 rm conftest.sed
1629 # expand $ac_aux_dir to an absolute path
1630 am_aux_dir=`cd $ac_aux_dir && pwd`
1632 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1633 # Use eval to expand $SHELL
1634 if eval "$MISSING --run true"; then
1635 am_missing_run="$MISSING --run "
1636 else
1637 am_missing_run=
1638 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1639 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1642 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1643 # We used to keeping the `.' as first argument, in order to
1644 # allow $(mkdir_p) to be used without argument. As in
1645 # $(mkdir_p) $(somedir)
1646 # where $(somedir) is conditionally defined. However this is wrong
1647 # for two reasons:
1648 # 1. if the package is installed by a user who cannot write `.'
1649 # make install will fail,
1650 # 2. the above comment should most certainly read
1651 # $(mkdir_p) $(DESTDIR)$(somedir)
1652 # so it does not work when $(somedir) is undefined and
1653 # $(DESTDIR) is not.
1654 # To support the latter case, we have to write
1655 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1656 # so the `.' trick is pointless.
1657 mkdir_p='mkdir -p --'
1658 else
1659 # On NextStep and OpenStep, the `mkdir' command does not
1660 # recognize any option. It will interpret all options as
1661 # directories to create, and then abort because `.' already
1662 # exists.
1663 for d in ./-p ./--version;
1665 test -d $d && rmdir $d
1666 done
1667 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1668 if test -f "$ac_aux_dir/mkinstalldirs"; then
1669 mkdir_p='$(mkinstalldirs)'
1670 else
1671 mkdir_p='$(install_sh) -d'
1675 for ac_prog in gawk mawk nawk awk
1677 # Extract the first word of "$ac_prog", so it can be a program name with args.
1678 set dummy $ac_prog; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_AWK+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684 if test -n "$AWK"; then
1685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1686 else
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 ac_cv_prog_AWK="$ac_prog"
1695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696 break 2
1698 done
1699 done
1703 AWK=$ac_cv_prog_AWK
1704 if test -n "$AWK"; then
1705 echo "$as_me:$LINENO: result: $AWK" >&5
1706 echo "${ECHO_T}$AWK" >&6
1707 else
1708 echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1712 test -n "$AWK" && break
1713 done
1715 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1716 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1717 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1718 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 else
1721 cat >conftest.make <<\_ACEOF
1722 all:
1723 @echo 'ac_maketemp="$(MAKE)"'
1724 _ACEOF
1725 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1726 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1727 if test -n "$ac_maketemp"; then
1728 eval ac_cv_prog_make_${ac_make}_set=yes
1729 else
1730 eval ac_cv_prog_make_${ac_make}_set=no
1732 rm -f conftest.make
1734 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1735 echo "$as_me:$LINENO: result: yes" >&5
1736 echo "${ECHO_T}yes" >&6
1737 SET_MAKE=
1738 else
1739 echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1741 SET_MAKE="MAKE=${MAKE-make}"
1744 rm -rf .tst 2>/dev/null
1745 mkdir .tst 2>/dev/null
1746 if test -d .tst; then
1747 am__leading_dot=.
1748 else
1749 am__leading_dot=_
1751 rmdir .tst 2>/dev/null
1753 # test to see if srcdir already configured
1754 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1755 test -f $srcdir/config.status; then
1756 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1757 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1758 { (exit 1); exit 1; }; }
1761 # test whether we have cygpath
1762 if test -z "$CYGPATH_W"; then
1763 if (cygpath --version) >/dev/null 2>/dev/null; then
1764 CYGPATH_W='cygpath -w'
1765 else
1766 CYGPATH_W=echo
1771 # Define the identity of the package.
1772 PACKAGE='libgfortran'
1773 VERSION='0.2'
1776 # Some tools Automake needs.
1778 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1781 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1784 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1787 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1790 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1792 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1794 # Installed binaries are usually stripped using `strip' when the user
1795 # run `make install-strip'. However `strip' might not be the right
1796 # tool to use in cross-compilation environments, therefore Automake
1797 # will honor the `STRIP' environment variable to overrule this program.
1798 if test "$cross_compiling" != no; then
1799 if test -n "$ac_tool_prefix"; then
1800 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1801 set dummy ${ac_tool_prefix}strip; ac_word=$2
1802 echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804 if test "${ac_cv_prog_STRIP+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 else
1807 if test -n "$STRIP"; then
1808 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1809 else
1810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 for as_dir in $PATH
1813 IFS=$as_save_IFS
1814 test -z "$as_dir" && as_dir=.
1815 for ac_exec_ext in '' $ac_executable_extensions; do
1816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819 break 2
1821 done
1822 done
1826 STRIP=$ac_cv_prog_STRIP
1827 if test -n "$STRIP"; then
1828 echo "$as_me:$LINENO: result: $STRIP" >&5
1829 echo "${ECHO_T}$STRIP" >&6
1830 else
1831 echo "$as_me:$LINENO: result: no" >&5
1832 echo "${ECHO_T}no" >&6
1836 if test -z "$ac_cv_prog_STRIP"; then
1837 ac_ct_STRIP=$STRIP
1838 # Extract the first word of "strip", so it can be a program name with args.
1839 set dummy strip; ac_word=$2
1840 echo "$as_me:$LINENO: checking for $ac_word" >&5
1841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845 if test -n "$ac_ct_STRIP"; then
1846 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1847 else
1848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 for as_dir in $PATH
1851 IFS=$as_save_IFS
1852 test -z "$as_dir" && as_dir=.
1853 for ac_exec_ext in '' $ac_executable_extensions; do
1854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855 ac_cv_prog_ac_ct_STRIP="strip"
1856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 break 2
1859 done
1860 done
1862 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1865 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1866 if test -n "$ac_ct_STRIP"; then
1867 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1868 echo "${ECHO_T}$ac_ct_STRIP" >&6
1869 else
1870 echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1874 STRIP=$ac_ct_STRIP
1875 else
1876 STRIP="$ac_cv_prog_STRIP"
1880 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1882 # We need awk for the "check" target. The system "awk" is bad on
1883 # some platforms.
1884 # Always define AMTAR for backward compatibility.
1886 AMTAR=${AMTAR-"${am_missing_run}tar"}
1888 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1895 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1896 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1897 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1898 if test "${enable_maintainer_mode+set}" = set; then
1899 enableval="$enable_maintainer_mode"
1900 USE_MAINTAINER_MODE=$enableval
1901 else
1902 USE_MAINTAINER_MODE=no
1904 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1905 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1908 if test $USE_MAINTAINER_MODE = yes; then
1909 MAINTAINER_MODE_TRUE=
1910 MAINTAINER_MODE_FALSE='#'
1911 else
1912 MAINTAINER_MODE_TRUE='#'
1913 MAINTAINER_MODE_FALSE=
1916 MAINT=$MAINTAINER_MODE_TRUE
1919 # Default to --enable-multilib
1920 # Check whether --enable-multilib or --disable-multilib was given.
1921 if test "${enable_multilib+set}" = set; then
1922 enableval="$enable_multilib"
1923 case "$enableval" in
1924 yes) multilib=yes ;;
1925 no) multilib=no ;;
1926 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1927 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1928 { (exit 1); exit 1; }; } ;;
1929 esac
1930 else
1931 multilib=yes
1934 # We may get other options which we leave undocumented:
1935 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1936 # See config-ml.in if you want the gory details.
1938 if test "$srcdir" = "."; then
1939 if test "$with_target_subdir" != "."; then
1940 multi_basedir="$srcdir/$with_multisrctop../.."
1941 else
1942 multi_basedir="$srcdir/$with_multisrctop.."
1944 else
1945 multi_basedir="$srcdir/.."
1949 ac_config_commands="$ac_config_commands default-1"
1952 # Handy for debugging:
1953 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1955 # Are we being configured with some form of cross compiler?
1956 # NB: We don't actually need to know this just now, but when, say, a test
1957 # suite is included, we'll have to know.
1958 if test "$build" != "$host"; then
1959 LIBGFOR_IS_NATIVE=false
1960 GCC_NO_EXECUTABLES
1961 else
1962 LIBGFOR_IS_NATIVE=true
1965 # Calculate toolexeclibdir
1966 # Also toolexecdir, though it's only used in toolexeclibdir
1967 case ${version_specific_libs} in
1968 yes)
1969 # Need the gcc compiler version to know where to install libraries
1970 # and header files if --enable-version-specific-runtime-libs option
1971 # is selected.
1972 toolexecdir='$(libdir)/gcc/$(target_alias)'
1973 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1976 if test -n "$with_cross_host" &&
1977 test x"$with_cross_host" != x"no"; then
1978 # Install a library built with a cross compiler in tooldir, not libdir.
1979 toolexecdir='$(exec_prefix)/$(target_alias)'
1980 toolexeclibdir='$(toolexecdir)/lib'
1981 else
1982 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1983 toolexeclibdir='$(libdir)'
1985 multi_os_directory=`$CC -print-multi-os-directory`
1986 case $multi_os_directory in
1987 .) ;; # Avoid trailing /.
1988 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1989 esac
1991 esac
1995 # Check the compiler.
1996 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1997 # We must force CC to /not/ be precious variables; otherwise
1998 # the wrong, non-multilib-adjusted value will be used in multilibs.
1999 # As a side effect, we have to subst CFLAGS ourselves.
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016 if test -n "$CC"; then
2017 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 break 2
2030 done
2031 done
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037 echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2039 else
2040 echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2045 if test -z "$ac_cv_prog_CC"; then
2046 ac_ct_CC=$CC
2047 # Extract the first word of "gcc", so it can be a program name with args.
2048 set dummy gcc; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054 if test -n "$ac_ct_CC"; then
2055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2060 IFS=$as_save_IFS
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_ac_ct_CC="gcc"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 break 2
2068 done
2069 done
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6
2077 else
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2082 CC=$ac_ct_CC
2083 else
2084 CC="$ac_cv_prog_CC"
2087 if test -z "$CC"; then
2088 if test -n "$ac_tool_prefix"; then
2089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2090 set dummy ${ac_tool_prefix}cc; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106 ac_cv_prog_CC="${ac_tool_prefix}cc"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 break 2
2110 done
2111 done
2115 CC=$ac_cv_prog_CC
2116 if test -n "$CC"; then
2117 echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2119 else
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2125 if test -z "$ac_cv_prog_CC"; then
2126 ac_ct_CC=$CC
2127 # Extract the first word of "cc", so it can be a program name with args.
2128 set dummy cc; ac_word=$2
2129 echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134 if test -n "$ac_ct_CC"; then
2135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144 ac_cv_prog_ac_ct_CC="cc"
2145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146 break 2
2148 done
2149 done
2153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2154 if test -n "$ac_ct_CC"; then
2155 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2156 echo "${ECHO_T}$ac_ct_CC" >&6
2157 else
2158 echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6
2162 CC=$ac_ct_CC
2163 else
2164 CC="$ac_cv_prog_CC"
2168 if test -z "$CC"; then
2169 # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 if test -n "$CC"; then
2177 ac_cv_prog_CC="$CC" # Let the user override the test.
2178 else
2179 ac_prog_rejected=no
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188 ac_prog_rejected=yes
2189 continue
2191 ac_cv_prog_CC="cc"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2195 done
2196 done
2198 if test $ac_prog_rejected = yes; then
2199 # We found a bogon in the path, so make sure we never use it.
2200 set dummy $ac_cv_prog_CC
2201 shift
2202 if test $# != 0; then
2203 # We chose a different compiler from the bogus one.
2204 # However, it has the same basename, so the bogon will be chosen
2205 # first if we set CC to just the basename; use the full file name.
2206 shift
2207 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2212 CC=$ac_cv_prog_CC
2213 if test -n "$CC"; then
2214 echo "$as_me:$LINENO: result: $CC" >&5
2215 echo "${ECHO_T}$CC" >&6
2216 else
2217 echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2222 if test -z "$CC"; then
2223 if test -n "$ac_tool_prefix"; then
2224 for ac_prog in cl
2226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2247 done
2248 done
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254 echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2256 else
2257 echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2261 test -n "$CC" && break
2262 done
2264 if test -z "$CC"; then
2265 ac_ct_CC=$CC
2266 for ac_prog in cl
2268 # Extract the first word of "$ac_prog", so it can be a program name with args.
2269 set dummy $ac_prog; ac_word=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275 if test -n "$ac_ct_CC"; then
2276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2281 IFS=$as_save_IFS
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285 ac_cv_prog_ac_ct_CC="$ac_prog"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 break 2
2289 done
2290 done
2294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2295 if test -n "$ac_ct_CC"; then
2296 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2297 echo "${ECHO_T}$ac_ct_CC" >&6
2298 else
2299 echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2303 test -n "$ac_ct_CC" && break
2304 done
2306 CC=$ac_ct_CC
2312 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: no acceptable C compiler found in \$PATH
2315 See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2318 # Provide some information about the compiler.
2319 echo "$as_me:$LINENO:" \
2320 "checking for C compiler version" >&5
2321 ac_compiler=`set X $ac_compile; echo $2`
2322 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2323 (eval $ac_compiler --version </dev/null >&5) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }
2327 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2328 (eval $ac_compiler -v </dev/null >&5) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }
2332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2333 (eval $ac_compiler -V </dev/null >&5) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }
2338 cat >conftest.$ac_ext <<_ACEOF
2339 /* confdefs.h. */
2340 _ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2346 main ()
2350 return 0;
2352 _ACEOF
2353 ac_clean_files_save=$ac_clean_files
2354 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2355 # Try to create an executable without -o first, disregard a.out.
2356 # It will help us diagnose broken compilers, and finding out an intuition
2357 # of exeext.
2358 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2359 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2360 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2361 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2362 (eval $ac_link_default) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; then
2366 # Find the output, starting from the most likely. This scheme is
2367 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2368 # resort.
2370 # Be careful to initialize this variable, since it used to be cached.
2371 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2372 ac_cv_exeext=
2373 # b.out is created by i960 compilers.
2374 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2376 test -f "$ac_file" || continue
2377 case $ac_file in
2378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2380 conftest.$ac_ext )
2381 # This is the source file.
2383 [ab].out )
2384 # We found the default executable, but exeext='' is most
2385 # certainly right.
2386 break;;
2387 *.* )
2388 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2389 # FIXME: I believe we export ac_cv_exeext for Libtool,
2390 # but it would be cool to find out if it's true. Does anybody
2391 # maintain Libtool? --akim.
2392 export ac_cv_exeext
2393 break;;
2395 break;;
2396 esac
2397 done
2398 else
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2402 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: C compiler cannot create executables
2405 See \`config.log' for more details." >&2;}
2406 { (exit 77); exit 77; }; }
2409 ac_exeext=$ac_cv_exeext
2410 echo "$as_me:$LINENO: result: $ac_file" >&5
2411 echo "${ECHO_T}$ac_file" >&6
2413 # Check the compiler produces executables we can run. If not, either
2414 # the compiler is broken, or we cross compile.
2415 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2416 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2417 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2418 # If not cross compiling, check that we can run a simple program.
2419 if test "$cross_compiling" != yes; then
2420 if { ac_try='./$ac_file'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 (eval $ac_try) 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2426 cross_compiling=no
2427 else
2428 if test "$cross_compiling" = maybe; then
2429 cross_compiling=yes
2430 else
2431 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2432 If you meant to cross compile, use \`--host'.
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot run C compiled programs.
2435 If you meant to cross compile, use \`--host'.
2436 See \`config.log' for more details." >&2;}
2437 { (exit 1); exit 1; }; }
2441 echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6
2444 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2445 ac_clean_files=$ac_clean_files_save
2446 # Check the compiler produces executables we can run. If not, either
2447 # the compiler is broken, or we cross compile.
2448 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2449 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2450 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2451 echo "${ECHO_T}$cross_compiling" >&6
2453 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2454 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2456 (eval $ac_link) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; then
2460 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2461 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2462 # work properly (i.e., refer to `conftest.exe'), while it won't with
2463 # `rm'.
2464 for ac_file in conftest.exe conftest conftest.*; do
2465 test -f "$ac_file" || continue
2466 case $ac_file in
2467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2468 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2469 export ac_cv_exeext
2470 break;;
2471 * ) break;;
2472 esac
2473 done
2474 else
2475 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2476 See \`config.log' for more details." >&5
2477 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2478 See \`config.log' for more details." >&2;}
2479 { (exit 1); exit 1; }; }
2482 rm -f conftest$ac_cv_exeext
2483 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2484 echo "${ECHO_T}$ac_cv_exeext" >&6
2486 rm -f conftest.$ac_ext
2487 EXEEXT=$ac_cv_exeext
2488 ac_exeext=$EXEEXT
2489 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2490 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2491 if test "${ac_cv_objext+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 else
2494 cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h. */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2502 main ()
2506 return 0;
2508 _ACEOF
2509 rm -f conftest.o conftest.obj
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; then
2515 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2516 case $ac_file in
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2518 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2519 break;;
2520 esac
2521 done
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2533 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2535 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2536 echo "${ECHO_T}$ac_cv_objext" >&6
2537 OBJEXT=$ac_cv_objext
2538 ac_objext=$OBJEXT
2539 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2540 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2541 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544 cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h. */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2552 main ()
2554 #ifndef __GNUC__
2555 choke me
2556 #endif
2559 return 0;
2561 _ACEOF
2562 rm -f conftest.$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564 (eval $ac_compile) 2>conftest.er1
2565 ac_status=$?
2566 grep -v '^ *+' conftest.er1 >conftest.err
2567 rm -f conftest.er1
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -z "$ac_c_werror_flag"
2572 || test ! -s conftest.err'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; } &&
2578 { ac_try='test -s conftest.$ac_objext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2584 ac_compiler_gnu=yes
2585 else
2586 echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2589 ac_compiler_gnu=no
2591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2592 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2595 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2596 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2597 GCC=`test $ac_compiler_gnu = yes && echo yes`
2598 ac_test_CFLAGS=${CFLAGS+set}
2599 ac_save_CFLAGS=$CFLAGS
2600 CFLAGS="-g"
2601 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2602 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2603 if test "${ac_cv_prog_cc_g+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606 cat >conftest.$ac_ext <<_ACEOF
2607 /* confdefs.h. */
2608 _ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h. */
2614 main ()
2618 return 0;
2620 _ACEOF
2621 rm -f conftest.$ac_objext
2622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623 (eval $ac_compile) 2>conftest.er1
2624 ac_status=$?
2625 grep -v '^ *+' conftest.er1 >conftest.err
2626 rm -f conftest.er1
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
2630 { ac_try='test -z "$ac_c_werror_flag"
2631 || test ! -s conftest.err'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; } &&
2637 { ac_try='test -s conftest.$ac_objext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2643 ac_cv_prog_cc_g=yes
2644 else
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2648 ac_cv_prog_cc_g=no
2650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2652 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2653 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2654 if test "$ac_test_CFLAGS" = set; then
2655 CFLAGS=$ac_save_CFLAGS
2656 elif test $ac_cv_prog_cc_g = yes; then
2657 if test "$GCC" = yes; then
2658 CFLAGS="-g -O2"
2659 else
2660 CFLAGS="-g"
2662 else
2663 if test "$GCC" = yes; then
2664 CFLAGS="-O2"
2665 else
2666 CFLAGS=
2669 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2670 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2671 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674 ac_cv_prog_cc_stdc=no
2675 ac_save_CC=$CC
2676 cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h. */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2682 #include <stdarg.h>
2683 #include <stdio.h>
2684 #include <sys/types.h>
2685 #include <sys/stat.h>
2686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2687 struct buf { int x; };
2688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2689 static char *e (p, i)
2690 char **p;
2691 int i;
2693 return p[i];
2695 static char *f (char * (*g) (char **, int), char **p, ...)
2697 char *s;
2698 va_list v;
2699 va_start (v,p);
2700 s = g (p, va_arg (v,int));
2701 va_end (v);
2702 return s;
2705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2706 function prototypes and stuff, but not '\xHH' hex character constants.
2707 These don't provoke an error unfortunately, instead are silently treated
2708 as 'x'. The following induces an error, until -std1 is added to get
2709 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2710 array size at least. It's necessary to write '\x00'==0 to get something
2711 that's true only with -std1. */
2712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2714 int test (int i, double x);
2715 struct s1 {int (*f) (int a);};
2716 struct s2 {int (*f) (double a);};
2717 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2718 int argc;
2719 char **argv;
2721 main ()
2723 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2725 return 0;
2727 _ACEOF
2728 # Don't try gcc -ansi; that turns off useful extensions and
2729 # breaks some systems' header files.
2730 # AIX -qlanglvl=ansi
2731 # Ultrix and OSF/1 -std1
2732 # HP-UX 10.20 and later -Ae
2733 # HP-UX older versions -Aa -D_HPUX_SOURCE
2734 # SVR4 -Xc -D__EXTENSIONS__
2735 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2737 CC="$ac_save_CC $ac_arg"
2738 rm -f conftest.$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740 (eval $ac_compile) 2>conftest.er1
2741 ac_status=$?
2742 grep -v '^ *+' conftest.er1 >conftest.err
2743 rm -f conftest.er1
2744 cat conftest.err >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try='test -z "$ac_c_werror_flag"
2748 || test ! -s conftest.err'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 (eval $ac_try) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; } &&
2754 { ac_try='test -s conftest.$ac_objext'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 (eval $ac_try) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; }; then
2760 ac_cv_prog_cc_stdc=$ac_arg
2761 break
2762 else
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2767 rm -f conftest.err conftest.$ac_objext
2768 done
2769 rm -f conftest.$ac_ext conftest.$ac_objext
2770 CC=$ac_save_CC
2774 case "x$ac_cv_prog_cc_stdc" in
2775 x|xno)
2776 echo "$as_me:$LINENO: result: none needed" >&5
2777 echo "${ECHO_T}none needed" >&6 ;;
2779 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2780 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2781 CC="$CC $ac_cv_prog_cc_stdc" ;;
2782 esac
2784 # Some people use a C++ compiler to compile C. Since we use `exit',
2785 # in C++ we need to declare it. In case someone uses the same compiler
2786 # for both compiling C and C++ we need to have the C++ compiler decide
2787 # the declaration of exit, since it's the most demanding environment.
2788 cat >conftest.$ac_ext <<_ACEOF
2789 #ifndef __cplusplus
2790 choke me
2791 #endif
2792 _ACEOF
2793 rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795 (eval $ac_compile) 2>conftest.er1
2796 ac_status=$?
2797 grep -v '^ *+' conftest.er1 >conftest.err
2798 rm -f conftest.er1
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 for ac_declaration in \
2816 '' \
2817 'extern "C" void std::exit (int) throw (); using std::exit;' \
2818 'extern "C" void std::exit (int); using std::exit;' \
2819 'extern "C" void exit (int) throw ();' \
2820 'extern "C" void exit (int);' \
2821 'void exit (int);'
2823 cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h. */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2829 $ac_declaration
2830 #include <stdlib.h>
2832 main ()
2834 exit (42);
2836 return 0;
2838 _ACEOF
2839 rm -f conftest.$ac_objext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841 (eval $ac_compile) 2>conftest.er1
2842 ac_status=$?
2843 grep -v '^ *+' conftest.er1 >conftest.err
2844 rm -f conftest.er1
2845 cat conftest.err >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } &&
2848 { ac_try='test -z "$ac_c_werror_flag"
2849 || test ! -s conftest.err'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 (eval $ac_try) 2>&5
2852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; } &&
2855 { ac_try='test -s conftest.$ac_objext'
2856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 (eval $ac_try) 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; }; then
2862 else
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2866 continue
2868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2869 cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h. */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2875 $ac_declaration
2877 main ()
2879 exit (42);
2881 return 0;
2883 _ACEOF
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886 (eval $ac_compile) 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -z "$ac_c_werror_flag"
2894 || test ! -s conftest.err'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; } &&
2900 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2906 break
2907 else
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2913 done
2914 rm -f conftest*
2915 if test -n "$ac_declaration"; then
2916 echo '#ifdef __cplusplus' >>confdefs.h
2917 echo $ac_declaration >>confdefs.h
2918 echo '#endif' >>confdefs.h
2921 else
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2927 ac_ext=c
2928 ac_cpp='$CPP $CPPFLAGS'
2929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2937 # Add -Wall if we are using GCC.
2938 if test "x$GCC" = "xyes"; then
2939 CFLAGS="$CFLAGS -Wall"
2942 # Find other programs we need.
2943 if test -n "$ac_tool_prefix"; then
2944 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2945 set dummy ${ac_tool_prefix}as; ac_word=$2
2946 echo "$as_me:$LINENO: checking for $ac_word" >&5
2947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2948 if test "${ac_cv_prog_AS+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951 if test -n "$AS"; then
2952 ac_cv_prog_AS="$AS" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961 ac_cv_prog_AS="${ac_tool_prefix}as"
2962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 break 2
2965 done
2966 done
2970 AS=$ac_cv_prog_AS
2971 if test -n "$AS"; then
2972 echo "$as_me:$LINENO: result: $AS" >&5
2973 echo "${ECHO_T}$AS" >&6
2974 else
2975 echo "$as_me:$LINENO: result: no" >&5
2976 echo "${ECHO_T}no" >&6
2980 if test -z "$ac_cv_prog_AS"; then
2981 ac_ct_AS=$AS
2982 # Extract the first word of "as", so it can be a program name with args.
2983 set dummy as; ac_word=$2
2984 echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989 if test -n "$ac_ct_AS"; then
2990 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_ac_ct_AS="as"
3000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3003 done
3004 done
3008 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3009 if test -n "$ac_ct_AS"; then
3010 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3011 echo "${ECHO_T}$ac_ct_AS" >&6
3012 else
3013 echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6
3017 AS=$ac_ct_AS
3018 else
3019 AS="$ac_cv_prog_AS"
3022 if test -n "$ac_tool_prefix"; then
3023 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3024 set dummy ${ac_tool_prefix}ar; ac_word=$2
3025 echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3027 if test "${ac_cv_prog_AR+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 else
3030 if test -n "$AR"; then
3031 ac_cv_prog_AR="$AR" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_AR="${ac_tool_prefix}ar"
3041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3044 done
3045 done
3049 AR=$ac_cv_prog_AR
3050 if test -n "$AR"; then
3051 echo "$as_me:$LINENO: result: $AR" >&5
3052 echo "${ECHO_T}$AR" >&6
3053 else
3054 echo "$as_me:$LINENO: result: no" >&5
3055 echo "${ECHO_T}no" >&6
3059 if test -z "$ac_cv_prog_AR"; then
3060 ac_ct_AR=$AR
3061 # Extract the first word of "ar", so it can be a program name with args.
3062 set dummy ar; ac_word=$2
3063 echo "$as_me:$LINENO: checking for $ac_word" >&5
3064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3065 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068 if test -n "$ac_ct_AR"; then
3069 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_ac_ct_AR="ar"
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3082 done
3083 done
3087 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3088 if test -n "$ac_ct_AR"; then
3089 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3090 echo "${ECHO_T}$ac_ct_AR" >&6
3091 else
3092 echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6
3096 AR=$ac_ct_AR
3097 else
3098 AR="$ac_cv_prog_AR"
3101 if test -n "$ac_tool_prefix"; then
3102 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3103 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3104 echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106 if test "${ac_cv_prog_RANLIB+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109 if test -n "$RANLIB"; then
3110 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3123 done
3124 done
3128 RANLIB=$ac_cv_prog_RANLIB
3129 if test -n "$RANLIB"; then
3130 echo "$as_me:$LINENO: result: $RANLIB" >&5
3131 echo "${ECHO_T}$RANLIB" >&6
3132 else
3133 echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6
3138 if test -z "$ac_cv_prog_RANLIB"; then
3139 ac_ct_RANLIB=$RANLIB
3140 # Extract the first word of "ranlib", so it can be a program name with args.
3141 set dummy ranlib; ac_word=$2
3142 echo "$as_me:$LINENO: checking for $ac_word" >&5
3143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3144 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147 if test -n "$ac_ct_RANLIB"; then
3148 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_ac_ct_RANLIB="ranlib"
3158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3161 done
3162 done
3164 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3167 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3168 if test -n "$ac_ct_RANLIB"; then
3169 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3170 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3171 else
3172 echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3176 RANLIB=$ac_ct_RANLIB
3177 else
3178 RANLIB="$ac_cv_prog_RANLIB"
3181 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3182 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3183 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3184 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187 cat >conftest.make <<\_ACEOF
3188 all:
3189 @echo 'ac_maketemp="$(MAKE)"'
3190 _ACEOF
3191 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3192 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3193 if test -n "$ac_maketemp"; then
3194 eval ac_cv_prog_make_${ac_make}_set=yes
3195 else
3196 eval ac_cv_prog_make_${ac_make}_set=no
3198 rm -f conftest.make
3200 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3201 echo "$as_me:$LINENO: result: yes" >&5
3202 echo "${ECHO_T}yes" >&6
3203 SET_MAKE=
3204 else
3205 echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3207 SET_MAKE="MAKE=${MAKE-make}"
3210 # Find a good install program. We prefer a C program (faster),
3211 # so one script is as good as another. But avoid the broken or
3212 # incompatible versions:
3213 # SysV /etc/install, /usr/sbin/install
3214 # SunOS /usr/etc/install
3215 # IRIX /sbin/install
3216 # AIX /bin/install
3217 # AmigaOS /C/install, which installs bootblocks on floppy discs
3218 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3219 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3220 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3221 # OS/2's system install, which has a completely different semantic
3222 # ./install, which can be erroneously created by make from ./install.sh.
3223 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3224 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3225 if test -z "$INSTALL"; then
3226 if test "${ac_cv_path_install+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 # Account for people who put trailing slashes in PATH elements.
3235 case $as_dir/ in
3236 ./ | .// | /cC/* | \
3237 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3238 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3239 /usr/ucb/* ) ;;
3241 # OSF1 and SCO ODT 3.0 have their own names for install.
3242 # Don't use installbsd from OSF since it installs stuff as root
3243 # by default.
3244 for ac_prog in ginstall scoinst install; do
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3247 if test $ac_prog = install &&
3248 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3249 # AIX install. It has an incompatible calling convention.
3251 elif test $ac_prog = install &&
3252 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3253 # program-specific install script used by HP pwplus--don't use.
3255 else
3256 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3257 break 3
3260 done
3261 done
3263 esac
3264 done
3268 if test "${ac_cv_path_install+set}" = set; then
3269 INSTALL=$ac_cv_path_install
3270 else
3271 # As a last resort, use the slow shell script. We don't cache a
3272 # path for INSTALL within a source directory, because that will
3273 # break other packages using the cache if that directory is
3274 # removed, or if the path is relative.
3275 INSTALL=$ac_install_sh
3278 echo "$as_me:$LINENO: result: $INSTALL" >&5
3279 echo "${ECHO_T}$INSTALL" >&6
3281 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3282 # It thinks the first close brace ends the variable substitution.
3283 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3285 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3287 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3290 # Configure libtool
3291 #AC_MSG_NOTICE([====== Starting libtool configuration])
3293 # Check whether --enable-shared or --disable-shared was given.
3294 if test "${enable_shared+set}" = set; then
3295 enableval="$enable_shared"
3296 p=${PACKAGE-default}
3297 case $enableval in
3298 yes) enable_shared=yes ;;
3299 no) enable_shared=no ;;
3301 enable_shared=no
3302 # Look at the argument we got. We use all the common list separators.
3303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3304 for pkg in $enableval; do
3305 if test "X$pkg" = "X$p"; then
3306 enable_shared=yes
3308 done
3309 IFS="$ac_save_ifs"
3311 esac
3312 else
3313 enable_shared=yes
3315 # Check whether --enable-static or --disable-static was given.
3316 if test "${enable_static+set}" = set; then
3317 enableval="$enable_static"
3318 p=${PACKAGE-default}
3319 case $enableval in
3320 yes) enable_static=yes ;;
3321 no) enable_static=no ;;
3323 enable_static=no
3324 # Look at the argument we got. We use all the common list separators.
3325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3326 for pkg in $enableval; do
3327 if test "X$pkg" = "X$p"; then
3328 enable_static=yes
3330 done
3331 IFS="$ac_save_ifs"
3333 esac
3334 else
3335 enable_static=yes
3337 # Check whether --enable-fast-install or --disable-fast-install was given.
3338 if test "${enable_fast_install+set}" = set; then
3339 enableval="$enable_fast_install"
3340 p=${PACKAGE-default}
3341 case $enableval in
3342 yes) enable_fast_install=yes ;;
3343 no) enable_fast_install=no ;;
3345 enable_fast_install=no
3346 # Look at the argument we got. We use all the common list separators.
3347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3348 for pkg in $enableval; do
3349 if test "X$pkg" = "X$p"; then
3350 enable_fast_install=yes
3352 done
3353 IFS="$ac_save_ifs"
3355 esac
3356 else
3357 enable_fast_install=yes
3360 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3361 if test "${with_gnu_ld+set}" = set; then
3362 withval="$with_gnu_ld"
3363 test "$withval" = no || with_gnu_ld=yes
3364 else
3365 with_gnu_ld=no
3367 ac_prog=ld
3368 if test "$GCC" = yes; then
3369 # Check if gcc -print-prog-name=ld gives a path.
3370 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3371 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3372 case $host in
3373 *-*-mingw*)
3374 # gcc leaves a trailing carriage return which upsets mingw
3375 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3377 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3378 esac
3379 case $ac_prog in
3380 # Accept absolute paths.
3381 [\\/]* | [A-Za-z]:[\\/]*)
3382 re_direlt='/[^/][^/]*/\.\./'
3383 # Canonicalize the path of ld
3384 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3385 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3386 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3387 done
3388 test -z "$LD" && LD="$ac_prog"
3391 # If it fails, then pretend we aren't using GCC.
3392 ac_prog=ld
3395 # If it is relative, then search for the first ld in PATH.
3396 with_gnu_ld=unknown
3398 esac
3399 elif test "$with_gnu_ld" = yes; then
3400 echo "$as_me:$LINENO: checking for GNU ld" >&5
3401 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3402 else
3403 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3404 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3406 if test "${lt_cv_path_LD+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409 if test -z "$LD"; then
3410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3411 for ac_dir in $PATH; do
3412 test -z "$ac_dir" && ac_dir=.
3413 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3414 lt_cv_path_LD="$ac_dir/$ac_prog"
3415 # Check to see if the program is GNU ld. I'd rather use --version,
3416 # but apparently some GNU ld's only accept -v.
3417 # Break only if it was the GNU/non-GNU ld that we prefer.
3418 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3419 test "$with_gnu_ld" != no && break
3420 else
3421 test "$with_gnu_ld" != yes && break
3424 done
3425 IFS="$ac_save_ifs"
3426 else
3427 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3431 LD="$lt_cv_path_LD"
3432 if test -n "$LD"; then
3433 echo "$as_me:$LINENO: result: $LD" >&5
3434 echo "${ECHO_T}$LD" >&6
3435 else
3436 echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6
3439 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3440 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3441 { (exit 1); exit 1; }; }
3442 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3443 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3444 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 else
3447 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3448 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3449 lt_cv_prog_gnu_ld=yes
3450 else
3451 lt_cv_prog_gnu_ld=no
3454 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3455 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3456 with_gnu_ld=$lt_cv_prog_gnu_ld
3459 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3460 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3461 if test "${lt_cv_ld_reload_flag+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 lt_cv_ld_reload_flag='-r'
3466 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3467 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3468 reload_flag=$lt_cv_ld_reload_flag
3469 test -n "$reload_flag" && reload_flag=" $reload_flag"
3471 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3472 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3473 if test "${lt_cv_path_NM+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476 if test -n "$NM"; then
3477 # Let the user override the test.
3478 lt_cv_path_NM="$NM"
3479 else
3480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3481 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3482 test -z "$ac_dir" && ac_dir=.
3483 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3484 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3485 # Check to see if the nm accepts a BSD-compat flag.
3486 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3487 # nm: unknown option "B" ignored
3488 # Tru64's nm complains that /dev/null is an invalid object file
3489 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3490 lt_cv_path_NM="$tmp_nm -B"
3491 break
3492 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3493 lt_cv_path_NM="$tmp_nm -p"
3494 break
3495 else
3496 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3497 continue # so that we can try to find one that supports BSD flags
3500 done
3501 IFS="$ac_save_ifs"
3502 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3506 NM="$lt_cv_path_NM"
3507 echo "$as_me:$LINENO: result: $NM" >&5
3508 echo "${ECHO_T}$NM" >&6
3510 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3511 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3512 LN_S=$as_ln_s
3513 if test "$LN_S" = "ln -s"; then
3514 echo "$as_me:$LINENO: result: yes" >&5
3515 echo "${ECHO_T}yes" >&6
3516 else
3517 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3518 echo "${ECHO_T}no, using $LN_S" >&6
3521 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3522 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3523 if test "${lt_cv_deplibs_check_method+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 else
3526 lt_cv_file_magic_cmd='$MAGIC_CMD'
3527 lt_cv_file_magic_test_file=
3528 lt_cv_deplibs_check_method='unknown'
3529 # Need to set the preceding variable on all platforms that support
3530 # interlibrary dependencies.
3531 # 'none' -- dependencies not supported.
3532 # `unknown' -- same as none, but documents that we really don't know.
3533 # 'pass_all' -- all dependencies passed with no checks.
3534 # 'test_compile' -- check by making test program.
3535 # 'file_magic [regex]' -- check by looking for files in library path
3536 # which responds to the $file_magic_cmd with a given egrep regex.
3537 # If you have `file' or equivalent on your system and you're not sure
3538 # whether `pass_all' will *always* work, you probably want this one.
3540 case $host_os in
3541 aix*)
3542 lt_cv_deplibs_check_method=pass_all
3545 beos*)
3546 lt_cv_deplibs_check_method=pass_all
3549 bsdi4*)
3550 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3551 lt_cv_file_magic_cmd='/usr/bin/file -L'
3552 lt_cv_file_magic_test_file=/shlib/libc.so
3555 cygwin* | mingw* |pw32*)
3556 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3557 lt_cv_file_magic_cmd='$OBJDUMP -f'
3560 darwin* | rhapsody*)
3561 # this will be overwritten by pass_all, but leave it in just in case
3562 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3563 lt_cv_file_magic_cmd='/usr/bin/file -L'
3564 case "$host_os" in
3565 rhapsody* | darwin1.012)
3566 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3568 *) # Darwin 1.3 on
3569 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3571 esac
3572 lt_cv_deplibs_check_method=pass_all
3575 freebsd* | kfreebsd*-gnu)
3576 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3577 case $host_cpu in
3578 i*86 )
3579 # Not sure whether the presence of OpenBSD here was a mistake.
3580 # Let's accept both of them until this is cleared up.
3581 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3582 lt_cv_file_magic_cmd=/usr/bin/file
3583 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3585 esac
3586 else
3587 lt_cv_deplibs_check_method=pass_all
3591 gnu*)
3592 lt_cv_deplibs_check_method=pass_all
3595 hpux10.20*|hpux11*)
3596 case $host_cpu in
3597 hppa*)
3598 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3599 lt_cv_file_magic_cmd=/usr/bin/file
3600 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3602 ia64*)
3603 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3604 lt_cv_file_magic_cmd=/usr/bin/file
3605 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3607 esac
3610 irix5* | irix6*)
3611 case $host_os in
3612 irix5*)
3613 # this will be overridden with pass_all, but let us keep it just in case
3614 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3617 case $LD in
3618 *-32|*"-32 ") libmagic=32-bit;;
3619 *-n32|*"-n32 ") libmagic=N32;;
3620 *-64|*"-64 ") libmagic=64-bit;;
3621 *) libmagic=never-match;;
3622 esac
3623 # this will be overridden with pass_all, but let us keep it just in case
3624 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3626 esac
3627 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3628 lt_cv_deplibs_check_method=pass_all
3631 # This must be Linux ELF.
3632 linux-gnu*)
3633 lt_cv_deplibs_check_method=pass_all
3636 netbsd* | knetbsd*-gnu)
3637 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3638 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3639 else
3640 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3644 newsos6)
3645 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3646 lt_cv_file_magic_cmd=/usr/bin/file
3647 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3650 osf3* | osf4* | osf5*)
3651 # this will be overridden with pass_all, but let us keep it just in case
3652 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3653 lt_cv_file_magic_test_file=/shlib/libc.so
3654 lt_cv_deplibs_check_method=pass_all
3657 sco3.2v5*)
3658 lt_cv_deplibs_check_method=pass_all
3661 solaris*)
3662 lt_cv_deplibs_check_method=pass_all
3663 lt_cv_file_magic_test_file=/lib/libc.so
3666 sysv5uw[78]* | sysv4*uw2*)
3667 lt_cv_deplibs_check_method=pass_all
3670 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3671 case $host_vendor in
3672 ncr)
3673 lt_cv_deplibs_check_method=pass_all
3675 motorola)
3676 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]'
3677 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3679 esac
3681 esac
3684 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3685 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3686 file_magic_cmd=$lt_cv_file_magic_cmd
3687 deplibs_check_method=$lt_cv_deplibs_check_method
3693 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3695 # find the maximum length of command line arguments
3696 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3697 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3698 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3702 teststring="ABCD"
3704 case $build_os in
3705 msdosdjgpp*)
3706 # On DJGPP, this test can blow up pretty badly due to problems in libc
3707 # (any single argument exceeding 2000 bytes causes a buffer overrun
3708 # during glob expansion). Even if it were fixed, the result of this
3709 # check would be larger than it should be.
3710 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3713 cygwin* | mingw*)
3714 # On Win9x/ME, this test blows up -- it succeeds, but takes
3715 # about 5 minutes as the teststring grows exponentially.
3716 # Worse, since 9x/ME are not pre-emptively multitasking,
3717 # you end up with a "frozen" computer, even though with patience
3718 # the test eventually succeeds (with a max line length of 256k).
3719 # Instead, let's just punt: use the minimum linelength reported by
3720 # all of the supported platforms: 8192 (on NT/2K/XP).
3721 lt_cv_sys_max_cmd_len=8192;
3724 amigaos*)
3725 # On AmigaOS with pdksh, this test takes hours, literally.
3726 # So we just punt and use a minimum line length of 8192.
3727 lt_cv_sys_max_cmd_len=8192;
3730 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3731 # This has been around since 386BSD, at least. Likely further.
3732 if test -x /sbin/sysctl; then
3733 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3734 elif test -x /usr/sbin/sysctl; then
3735 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3736 else
3737 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3739 # And add a safety zone
3740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3743 esac
3747 if test -n $lt_cv_sys_max_cmd_len ; then
3748 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3749 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3750 else
3751 echo "$as_me:$LINENO: result: none" >&5
3752 echo "${ECHO_T}none" >&6
3756 # Only perform the check for file, if the check method requires it
3757 case $deplibs_check_method in
3758 file_magic*)
3759 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3760 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3761 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3762 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 case $MAGIC_CMD in
3767 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3769 ?:/*)
3770 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3773 ac_save_MAGIC_CMD="$MAGIC_CMD"
3774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3775 ac_dummy="/usr/bin:$PATH"
3776 for ac_dir in $ac_dummy; do
3777 test -z "$ac_dir" && ac_dir=.
3778 if test -f $ac_dir/${ac_tool_prefix}file; then
3779 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3780 if test -n "$file_magic_test_file"; then
3781 case $deplibs_check_method in
3782 "file_magic "*)
3783 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3784 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3785 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3786 egrep "$file_magic_regex" > /dev/null; then
3788 else
3789 cat <<EOF 1>&2
3791 *** Warning: the command libtool uses to detect shared libraries,
3792 *** $file_magic_cmd, produces output that libtool cannot recognize.
3793 *** The result is that libtool may fail to recognize shared libraries
3794 *** as such. This will affect the creation of libtool libraries that
3795 *** depend on shared libraries, but programs linked with such libtool
3796 *** libraries will work regardless of this problem. Nevertheless, you
3797 *** may want to report the problem to your system manager and/or to
3798 *** bug-libtool@gnu.org
3801 fi ;;
3802 esac
3804 break
3806 done
3807 IFS="$ac_save_ifs"
3808 MAGIC_CMD="$ac_save_MAGIC_CMD"
3810 esac
3813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3814 if test -n "$MAGIC_CMD"; then
3815 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3816 echo "${ECHO_T}$MAGIC_CMD" >&6
3817 else
3818 echo "$as_me:$LINENO: result: no" >&5
3819 echo "${ECHO_T}no" >&6
3822 if test -z "$lt_cv_path_MAGIC_CMD"; then
3823 if test -n "$ac_tool_prefix"; then
3824 echo "$as_me:$LINENO: checking for file" >&5
3825 echo $ECHO_N "checking for file... $ECHO_C" >&6
3826 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829 case $MAGIC_CMD in
3831 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3833 ?:/*)
3834 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3837 ac_save_MAGIC_CMD="$MAGIC_CMD"
3838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3839 ac_dummy="/usr/bin:$PATH"
3840 for ac_dir in $ac_dummy; do
3841 test -z "$ac_dir" && ac_dir=.
3842 if test -f $ac_dir/file; then
3843 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3844 if test -n "$file_magic_test_file"; then
3845 case $deplibs_check_method in
3846 "file_magic "*)
3847 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3848 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3849 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3850 egrep "$file_magic_regex" > /dev/null; then
3852 else
3853 cat <<EOF 1>&2
3855 *** Warning: the command libtool uses to detect shared libraries,
3856 *** $file_magic_cmd, produces output that libtool cannot recognize.
3857 *** The result is that libtool may fail to recognize shared libraries
3858 *** as such. This will affect the creation of libtool libraries that
3859 *** depend on shared libraries, but programs linked with such libtool
3860 *** libraries will work regardless of this problem. Nevertheless, you
3861 *** may want to report the problem to your system manager and/or to
3862 *** bug-libtool@gnu.org
3865 fi ;;
3866 esac
3868 break
3870 done
3871 IFS="$ac_save_ifs"
3872 MAGIC_CMD="$ac_save_MAGIC_CMD"
3874 esac
3877 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3878 if test -n "$MAGIC_CMD"; then
3879 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3880 echo "${ECHO_T}$MAGIC_CMD" >&6
3881 else
3882 echo "$as_me:$LINENO: result: no" >&5
3883 echo "${ECHO_T}no" >&6
3886 else
3887 MAGIC_CMD=:
3893 esac
3895 if test -n "$ac_tool_prefix"; then
3896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3897 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_prog_RANLIB+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903 if test -n "$RANLIB"; then
3904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 break 2
3917 done
3918 done
3922 RANLIB=$ac_cv_prog_RANLIB
3923 if test -n "$RANLIB"; then
3924 echo "$as_me:$LINENO: result: $RANLIB" >&5
3925 echo "${ECHO_T}$RANLIB" >&6
3926 else
3927 echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6
3932 if test -z "$ac_cv_prog_RANLIB"; then
3933 ac_ct_RANLIB=$RANLIB
3934 # Extract the first word of "ranlib", so it can be a program name with args.
3935 set dummy ranlib; ac_word=$2
3936 echo "$as_me:$LINENO: checking for $ac_word" >&5
3937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3938 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941 if test -n "$ac_ct_RANLIB"; then
3942 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3943 else
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3951 ac_cv_prog_ac_ct_RANLIB="ranlib"
3952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 break 2
3955 done
3956 done
3958 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3961 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3962 if test -n "$ac_ct_RANLIB"; then
3963 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3964 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3965 else
3966 echo "$as_me:$LINENO: result: no" >&5
3967 echo "${ECHO_T}no" >&6
3970 RANLIB=$ac_ct_RANLIB
3971 else
3972 RANLIB="$ac_cv_prog_RANLIB"
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3977 set dummy ${ac_tool_prefix}strip; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_STRIP+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983 if test -n "$STRIP"; then
3984 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3997 done
3998 done
4002 STRIP=$ac_cv_prog_STRIP
4003 if test -n "$STRIP"; then
4004 echo "$as_me:$LINENO: result: $STRIP" >&5
4005 echo "${ECHO_T}$STRIP" >&6
4006 else
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4012 if test -z "$ac_cv_prog_STRIP"; then
4013 ac_ct_STRIP=$STRIP
4014 # Extract the first word of "strip", so it can be a program name with args.
4015 set dummy strip; ac_word=$2
4016 echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4018 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 if test -n "$ac_ct_STRIP"; then
4022 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_prog_ac_ct_STRIP="strip"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 break 2
4035 done
4036 done
4038 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4041 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4042 if test -n "$ac_ct_STRIP"; then
4043 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4044 echo "${ECHO_T}$ac_ct_STRIP" >&6
4045 else
4046 echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4050 STRIP=$ac_ct_STRIP
4051 else
4052 STRIP="$ac_cv_prog_STRIP"
4056 # Check for any special flags to pass to ltconfig.
4057 libtool_flags="--cache-file=$cache_file"
4058 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4059 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4060 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4061 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4062 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4065 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4066 if test "${enable_libtool_lock+set}" = set; then
4067 enableval="$enable_libtool_lock"
4070 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4071 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4074 # Check whether --with-pic or --without-pic was given.
4075 if test "${with_pic+set}" = set; then
4076 withval="$with_pic"
4077 pic_mode="$withval"
4078 else
4079 pic_mode=default
4081 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4082 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4084 # Some flags need to be propagated to the compiler or linker for good
4085 # libtool support.
4086 case $host in
4087 *-*-irix6*)
4088 # Find out which ABI we are using.
4089 echo '#line 4089 "configure"' > conftest.$ac_ext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; then
4095 if test "$lt_cv_prog_gnu_ld" = yes; then
4096 case `/usr/bin/file conftest.$ac_objext` in
4097 *32-bit*)
4098 LD="${LD-ld} -melf32bsmip"
4100 *N32*)
4101 LD="${LD-ld} -melf32bmipn32"
4103 *64-bit*)
4104 LD="${LD-ld} -melf64bmip"
4106 esac
4107 else
4108 case `/usr/bin/file conftest.$ac_objext` in
4109 *32-bit*)
4110 LD="${LD-ld} -32"
4112 *N32*)
4113 LD="${LD-ld} -n32"
4115 *64-bit*)
4116 LD="${LD-ld} -64"
4118 esac
4121 rm -rf conftest*
4124 ia64-*-hpux*)
4125 # Find out which ABI we are using.
4126 echo 'int i;' > conftest.$ac_ext
4127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128 (eval $ac_compile) 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; then
4132 case "`/usr/bin/file conftest.o`" in
4133 *ELF-32*)
4134 HPUX_IA64_MODE="32"
4136 *ELF-64*)
4137 HPUX_IA64_MODE="64"
4139 esac
4141 rm -rf conftest*
4144 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4145 # Find out which ABI we are using.
4146 echo 'int i;' > conftest.$ac_ext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148 (eval $ac_compile) 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; then
4152 case "`/usr/bin/file conftest.o`" in
4153 *32-bit*)
4154 case $host in
4155 x86_64-*linux*)
4156 LD="${LD-ld} -m elf_i386"
4158 ppc64-*linux*|powerpc64-*linux*)
4159 LD="${LD-ld} -m elf32ppclinux"
4161 s390x-*linux*)
4162 LD="${LD-ld} -m elf_s390"
4164 sparc64-*linux*)
4165 LD="${LD-ld} -m elf32_sparc"
4167 esac
4169 *64-bit*)
4170 case $host in
4171 x86_64-*linux*)
4172 LD="${LD-ld} -m elf_x86_64"
4174 ppc*-*linux*|powerpc*-*linux*)
4175 LD="${LD-ld} -m elf64ppc"
4177 s390*-*linux*)
4178 LD="${LD-ld} -m elf64_s390"
4180 sparc*-*linux*)
4181 LD="${LD-ld} -m elf64_sparc"
4183 esac
4185 esac
4187 rm -rf conftest*
4190 *-*-sco3.2v5*)
4191 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4192 SAVE_CFLAGS="$CFLAGS"
4193 CFLAGS="$CFLAGS -belf"
4194 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4195 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4196 if test "${lt_cv_cc_needs_belf+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4201 ac_ext=c
4202 ac_cpp='$CPP $CPPFLAGS'
4203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h. */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4215 main ()
4219 return 0;
4221 _ACEOF
4222 rm -f conftest.$ac_objext conftest$ac_exeext
4223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4224 (eval $ac_link) 2>conftest.er1
4225 ac_status=$?
4226 grep -v '^ *+' conftest.er1 >conftest.err
4227 rm -f conftest.er1
4228 cat conftest.err >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } &&
4231 { ac_try='test -z "$ac_c_werror_flag"
4232 || test ! -s conftest.err'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 (eval $ac_try) 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest$ac_exeext'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 (eval $ac_try) 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 lt_cv_cc_needs_belf=yes
4245 else
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 lt_cv_cc_needs_belf=no
4251 rm -f conftest.err conftest.$ac_objext \
4252 conftest$ac_exeext conftest.$ac_ext
4253 ac_ext=c
4254 ac_cpp='$CPP $CPPFLAGS'
4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4261 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4262 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4263 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4264 CFLAGS="$SAVE_CFLAGS"
4269 esac
4272 # Save cache, so that ltconfig can load it
4273 cat >confcache <<\_ACEOF
4274 # This file is a shell script that caches the results of configure
4275 # tests run on this system so they can be shared between configure
4276 # scripts and configure runs, see configure's option --config-cache.
4277 # It is not useful on other systems. If it contains results you don't
4278 # want to keep, you may remove or edit it.
4280 # config.status only pays attention to the cache file if you give it
4281 # the --recheck option to rerun configure.
4283 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4284 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4285 # following values.
4287 _ACEOF
4289 # The following way of writing the cache mishandles newlines in values,
4290 # but we know of no workaround that is simple, portable, and efficient.
4291 # So, don't put newlines in cache variables' values.
4292 # Ultrix sh set writes to stderr and can't be redirected directly,
4293 # and sets the high bit in the cache file unless we assign to the vars.
4295 (set) 2>&1 |
4296 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4297 *ac_space=\ *)
4298 # `set' does not quote correctly, so add quotes (double-quote
4299 # substitution turns \\\\ into \\, and sed turns \\ into \).
4300 sed -n \
4301 "s/'/'\\\\''/g;
4302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4305 # `set' quotes correctly as required by POSIX, so do not add quotes.
4306 sed -n \
4307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4309 esac;
4311 sed '
4312 t clear
4313 : clear
4314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4315 t end
4316 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4317 : end' >>confcache
4318 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4319 if test -w $cache_file; then
4320 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4321 cat confcache >$cache_file
4322 else
4323 echo "not updating unwritable cache $cache_file"
4326 rm -f confcache
4328 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4329 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4330 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4331 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4332 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4333 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4334 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4335 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4336 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4337 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4338 echo "$as_me: error: libtool configure failed" >&2;}
4339 { (exit 1); exit 1; }; }
4341 # Reload cache, that may have been modified by ltconfig
4342 if test -r "$cache_file"; then
4343 # Some versions of bash will fail to source /dev/null (special
4344 # files actually), so we avoid doing that.
4345 if test -f "$cache_file"; then
4346 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4347 echo "$as_me: loading cache $cache_file" >&6;}
4348 case $cache_file in
4349 [\\/]* | ?:[\\/]* ) . $cache_file;;
4350 *) . ./$cache_file;;
4351 esac
4353 else
4354 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4355 echo "$as_me: creating cache $cache_file" >&6;}
4356 >$cache_file
4360 # This can be used to rebuild libtool when needed
4361 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4363 # Always use our own libtool.
4364 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4366 # Redirect the config.log output again, so that the ltconfig log is not
4367 # clobbered by the next message.
4368 exec 5>>./config.log
4377 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4379 # We need gfortran to compile parts of the library
4380 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4381 #AC_PROG_FC(gfortran)
4382 FC="$GFORTRAN"
4383 ac_ext=${FC_SRCEXT-f}
4384 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4385 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4387 if test -n "$ac_tool_prefix"; then
4388 for ac_prog in gfortran
4390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4392 echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4394 if test "${ac_cv_prog_FC+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397 if test -n "$FC"; then
4398 ac_cv_prog_FC="$FC" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4411 done
4412 done
4416 FC=$ac_cv_prog_FC
4417 if test -n "$FC"; then
4418 echo "$as_me:$LINENO: result: $FC" >&5
4419 echo "${ECHO_T}$FC" >&6
4420 else
4421 echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6
4425 test -n "$FC" && break
4426 done
4428 if test -z "$FC"; then
4429 ac_ct_FC=$FC
4430 for ac_prog in gfortran
4432 # Extract the first word of "$ac_prog", so it can be a program name with args.
4433 set dummy $ac_prog; ac_word=$2
4434 echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4436 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 if test -n "$ac_ct_FC"; then
4440 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449 ac_cv_prog_ac_ct_FC="$ac_prog"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4453 done
4454 done
4458 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4459 if test -n "$ac_ct_FC"; then
4460 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4461 echo "${ECHO_T}$ac_ct_FC" >&6
4462 else
4463 echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6
4467 test -n "$ac_ct_FC" && break
4468 done
4470 FC=$ac_ct_FC
4474 # Provide some information about the compiler.
4475 echo "$as_me:4475:" \
4476 "checking for Fortran compiler version" >&5
4477 ac_compiler=`set X $ac_compile; echo $2`
4478 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4479 (eval $ac_compiler --version </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 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4489 (eval $ac_compiler -V </dev/null >&5) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }
4493 rm -f a.out
4495 # If we don't use `.F' as extension, the preprocessor is not run on the
4496 # input file. (Note that this only needs to work for GNU compilers.)
4497 ac_save_ext=$ac_ext
4498 ac_ext=F
4499 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4500 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4501 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504 cat >conftest.$ac_ext <<_ACEOF
4505 program main
4506 #ifndef __GNUC__
4507 choke me
4508 #endif
4511 _ACEOF
4512 rm -f conftest.$ac_objext
4513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4514 (eval $ac_compile) 2>conftest.er1
4515 ac_status=$?
4516 grep -v '^ *+' conftest.er1 >conftest.err
4517 rm -f conftest.er1
4518 cat conftest.err >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); } &&
4521 { ac_try='test -z "$ac_fc_werror_flag"
4522 || test ! -s conftest.err'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; } &&
4528 { ac_try='test -s conftest.$ac_objext'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 ac_compiler_gnu=yes
4535 else
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4539 ac_compiler_gnu=no
4541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4542 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4545 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4546 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4547 ac_ext=$ac_save_ext
4548 ac_test_FFLAGS=${FCFLAGS+set}
4549 ac_save_FFLAGS=$FCFLAGS
4550 FCFLAGS=
4551 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4552 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4553 if test "${ac_cv_prog_fc_g+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556 FCFLAGS=-g
4557 cat >conftest.$ac_ext <<_ACEOF
4558 program main
4561 _ACEOF
4562 rm -f conftest.$ac_objext
4563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4564 (eval $ac_compile) 2>conftest.er1
4565 ac_status=$?
4566 grep -v '^ *+' conftest.er1 >conftest.err
4567 rm -f conftest.er1
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } &&
4571 { ac_try='test -z "$ac_fc_werror_flag"
4572 || test ! -s conftest.err'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; } &&
4578 { ac_try='test -s conftest.$ac_objext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 (eval $ac_try) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 ac_cv_prog_fc_g=yes
4585 else
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4589 ac_cv_prog_fc_g=no
4591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4594 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4595 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4596 if test "$ac_test_FFLAGS" = set; then
4597 FCFLAGS=$ac_save_FFLAGS
4598 elif test $ac_cv_prog_fc_g = yes; then
4599 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4600 FCFLAGS="-g -O2"
4601 else
4602 FCFLAGS="-g"
4604 else
4605 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4606 FCFLAGS="-O2"
4607 else
4608 FCFLAGS=
4612 ac_ext=c
4613 ac_cpp='$CPP $CPPFLAGS'
4614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4618 FCFLAGS="$FCFLAGS -Wall -fno-repack-arrays -fno-underscoring"
4620 # extra LD Flags which are required for targets
4621 case "${host}" in
4622 *-darwin*)
4623 # Darwin needs -single_module when linking libgfortran
4624 extra_ldflags_libgfortran=-Wl,-single_module
4626 esac
4629 # Check whether --enable-largefile or --disable-largefile was given.
4630 if test "${enable_largefile+set}" = set; then
4631 enableval="$enable_largefile"
4634 if test "$enable_largefile" != no; then
4636 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4637 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4638 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641 ac_cv_sys_largefile_CC=no
4642 if test "$GCC" != yes; then
4643 ac_save_CC=$CC
4644 while :; do
4645 # IRIX 6.2 and later do not support large files by default,
4646 # so use the C compiler's -n32 option if that helps.
4647 cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h. */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4653 #include <sys/types.h>
4654 /* Check that off_t can represent 2**63 - 1 correctly.
4655 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4656 since some C++ compilers masquerading as C compilers
4657 incorrectly reject 9223372036854775807. */
4658 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4659 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4660 && LARGE_OFF_T % 2147483647 == 1)
4661 ? 1 : -1];
4663 main ()
4667 return 0;
4669 _ACEOF
4670 rm -f conftest.$ac_objext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672 (eval $ac_compile) 2>conftest.er1
4673 ac_status=$?
4674 grep -v '^ *+' conftest.er1 >conftest.err
4675 rm -f conftest.er1
4676 cat conftest.err >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } &&
4679 { ac_try='test -z "$ac_c_werror_flag"
4680 || test ! -s conftest.err'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 (eval $ac_try) 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; } &&
4686 { ac_try='test -s conftest.$ac_objext'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 (eval $ac_try) 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4692 break
4693 else
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4698 rm -f conftest.err conftest.$ac_objext
4699 CC="$CC -n32"
4700 rm -f conftest.$ac_objext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4702 (eval $ac_compile) 2>conftest.er1
4703 ac_status=$?
4704 grep -v '^ *+' conftest.er1 >conftest.err
4705 rm -f conftest.er1
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } &&
4709 { ac_try='test -z "$ac_c_werror_flag"
4710 || test ! -s conftest.err'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 (eval $ac_try) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; } &&
4716 { ac_try='test -s conftest.$ac_objext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4722 ac_cv_sys_largefile_CC=' -n32'; break
4723 else
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4728 rm -f conftest.err conftest.$ac_objext
4729 break
4730 done
4731 CC=$ac_save_CC
4732 rm -f conftest.$ac_ext
4735 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4736 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4737 if test "$ac_cv_sys_largefile_CC" != no; then
4738 CC=$CC$ac_cv_sys_largefile_CC
4741 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4742 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4743 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746 while :; do
4747 ac_cv_sys_file_offset_bits=no
4748 cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h. */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4754 #include <sys/types.h>
4755 /* Check that off_t can represent 2**63 - 1 correctly.
4756 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4757 since some C++ compilers masquerading as C compilers
4758 incorrectly reject 9223372036854775807. */
4759 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4760 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4761 && LARGE_OFF_T % 2147483647 == 1)
4762 ? 1 : -1];
4764 main ()
4768 return 0;
4770 _ACEOF
4771 rm -f conftest.$ac_objext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773 (eval $ac_compile) 2>conftest.er1
4774 ac_status=$?
4775 grep -v '^ *+' conftest.er1 >conftest.err
4776 rm -f conftest.er1
4777 cat conftest.err >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } &&
4780 { ac_try='test -z "$ac_c_werror_flag"
4781 || test ! -s conftest.err'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783 (eval $ac_try) 2>&5
4784 ac_status=$?
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; } &&
4787 { ac_try='test -s conftest.$ac_objext'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 (eval $ac_try) 2>&5
4790 ac_status=$?
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; }; then
4793 break
4794 else
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4800 cat >conftest.$ac_ext <<_ACEOF
4801 /* confdefs.h. */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4806 #define _FILE_OFFSET_BITS 64
4807 #include <sys/types.h>
4808 /* Check that off_t can represent 2**63 - 1 correctly.
4809 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4810 since some C++ compilers masquerading as C compilers
4811 incorrectly reject 9223372036854775807. */
4812 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4813 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4814 && LARGE_OFF_T % 2147483647 == 1)
4815 ? 1 : -1];
4817 main ()
4821 return 0;
4823 _ACEOF
4824 rm -f conftest.$ac_objext
4825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4826 (eval $ac_compile) 2>conftest.er1
4827 ac_status=$?
4828 grep -v '^ *+' conftest.er1 >conftest.err
4829 rm -f conftest.er1
4830 cat conftest.err >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } &&
4833 { ac_try='test -z "$ac_c_werror_flag"
4834 || test ! -s conftest.err'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 (eval $ac_try) 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; } &&
4840 { ac_try='test -s conftest.$ac_objext'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 (eval $ac_try) 2>&5
4843 ac_status=$?
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; }; then
4846 ac_cv_sys_file_offset_bits=64; break
4847 else
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4853 break
4854 done
4856 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4857 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4858 if test "$ac_cv_sys_file_offset_bits" != no; then
4860 cat >>confdefs.h <<_ACEOF
4861 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4862 _ACEOF
4865 rm -f conftest*
4866 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4867 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4868 if test "${ac_cv_sys_large_files+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871 while :; do
4872 ac_cv_sys_large_files=no
4873 cat >conftest.$ac_ext <<_ACEOF
4874 /* confdefs.h. */
4875 _ACEOF
4876 cat confdefs.h >>conftest.$ac_ext
4877 cat >>conftest.$ac_ext <<_ACEOF
4878 /* end confdefs.h. */
4879 #include <sys/types.h>
4880 /* Check that off_t can represent 2**63 - 1 correctly.
4881 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4882 since some C++ compilers masquerading as C compilers
4883 incorrectly reject 9223372036854775807. */
4884 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4885 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4886 && LARGE_OFF_T % 2147483647 == 1)
4887 ? 1 : -1];
4889 main ()
4893 return 0;
4895 _ACEOF
4896 rm -f conftest.$ac_objext
4897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>conftest.er1
4899 ac_status=$?
4900 grep -v '^ *+' conftest.er1 >conftest.err
4901 rm -f conftest.er1
4902 cat conftest.err >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } &&
4905 { ac_try='test -z "$ac_c_werror_flag"
4906 || test ! -s conftest.err'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; } &&
4912 { ac_try='test -s conftest.$ac_objext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4918 break
4919 else
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4925 cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 #define _LARGE_FILES 1
4932 #include <sys/types.h>
4933 /* Check that off_t can represent 2**63 - 1 correctly.
4934 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4935 since some C++ compilers masquerading as C compilers
4936 incorrectly reject 9223372036854775807. */
4937 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4938 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4939 && LARGE_OFF_T % 2147483647 == 1)
4940 ? 1 : -1];
4942 main ()
4946 return 0;
4948 _ACEOF
4949 rm -f conftest.$ac_objext
4950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>conftest.er1
4952 ac_status=$?
4953 grep -v '^ *+' conftest.er1 >conftest.err
4954 rm -f conftest.er1
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
4958 { ac_try='test -z "$ac_c_werror_flag"
4959 || test ! -s conftest.err'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 (eval $ac_try) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; } &&
4965 { ac_try='test -s conftest.$ac_objext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 (eval $ac_try) 2>&5
4968 ac_status=$?
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 ac_cv_sys_large_files=1; break
4972 else
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4978 break
4979 done
4981 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4982 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4983 if test "$ac_cv_sys_large_files" != no; then
4985 cat >>confdefs.h <<_ACEOF
4986 #define _LARGE_FILES $ac_cv_sys_large_files
4987 _ACEOF
4990 rm -f conftest*
4993 ac_ext=c
4994 ac_cpp='$CPP $CPPFLAGS'
4995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4998 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4999 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5000 # On Suns, sometimes $CPP names a directory.
5001 if test -n "$CPP" && test -d "$CPP"; then
5002 CPP=
5004 if test -z "$CPP"; then
5005 if test "${ac_cv_prog_CPP+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008 # Double quotes because CPP needs to be expanded
5009 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5011 ac_preproc_ok=false
5012 for ac_c_preproc_warn_flag in '' yes
5014 # Use a header file that comes with gcc, so configuring glibc
5015 # with a fresh cross-compiler works.
5016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5017 # <limits.h> exists even on freestanding compilers.
5018 # On the NeXT, cc -E runs the code through the compiler's parser,
5019 # not just through cpp. "Syntax error" is here to catch this case.
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 #ifdef __STDC__
5027 # include <limits.h>
5028 #else
5029 # include <assert.h>
5030 #endif
5031 Syntax error
5032 _ACEOF
5033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5035 ac_status=$?
5036 grep -v '^ *+' conftest.er1 >conftest.err
5037 rm -f conftest.er1
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } >/dev/null; then
5041 if test -s conftest.err; then
5042 ac_cpp_err=$ac_c_preproc_warn_flag
5043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5044 else
5045 ac_cpp_err=
5047 else
5048 ac_cpp_err=yes
5050 if test -z "$ac_cpp_err"; then
5052 else
5053 echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5056 # Broken: fails on valid input.
5057 continue
5059 rm -f conftest.err conftest.$ac_ext
5061 # OK, works on sane cases. Now check whether non-existent headers
5062 # can be detected and how.
5063 cat >conftest.$ac_ext <<_ACEOF
5064 /* confdefs.h. */
5065 _ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5069 #include <ac_nonexistent.h>
5070 _ACEOF
5071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5073 ac_status=$?
5074 grep -v '^ *+' conftest.er1 >conftest.err
5075 rm -f conftest.er1
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } >/dev/null; then
5079 if test -s conftest.err; then
5080 ac_cpp_err=$ac_c_preproc_warn_flag
5081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5082 else
5083 ac_cpp_err=
5085 else
5086 ac_cpp_err=yes
5088 if test -z "$ac_cpp_err"; then
5089 # Broken: success on invalid input.
5090 continue
5091 else
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5095 # Passes both tests.
5096 ac_preproc_ok=:
5097 break
5099 rm -f conftest.err conftest.$ac_ext
5101 done
5102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5103 rm -f conftest.err conftest.$ac_ext
5104 if $ac_preproc_ok; then
5105 break
5108 done
5109 ac_cv_prog_CPP=$CPP
5112 CPP=$ac_cv_prog_CPP
5113 else
5114 ac_cv_prog_CPP=$CPP
5116 echo "$as_me:$LINENO: result: $CPP" >&5
5117 echo "${ECHO_T}$CPP" >&6
5118 ac_preproc_ok=false
5119 for ac_c_preproc_warn_flag in '' yes
5121 # Use a header file that comes with gcc, so configuring glibc
5122 # with a fresh cross-compiler works.
5123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5124 # <limits.h> exists even on freestanding compilers.
5125 # On the NeXT, cc -E runs the code through the compiler's parser,
5126 # not just through cpp. "Syntax error" is here to catch this case.
5127 cat >conftest.$ac_ext <<_ACEOF
5128 /* confdefs.h. */
5129 _ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5133 #ifdef __STDC__
5134 # include <limits.h>
5135 #else
5136 # include <assert.h>
5137 #endif
5138 Syntax error
5139 _ACEOF
5140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5142 ac_status=$?
5143 grep -v '^ *+' conftest.er1 >conftest.err
5144 rm -f conftest.er1
5145 cat conftest.err >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } >/dev/null; then
5148 if test -s conftest.err; then
5149 ac_cpp_err=$ac_c_preproc_warn_flag
5150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5151 else
5152 ac_cpp_err=
5154 else
5155 ac_cpp_err=yes
5157 if test -z "$ac_cpp_err"; then
5159 else
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5163 # Broken: fails on valid input.
5164 continue
5166 rm -f conftest.err conftest.$ac_ext
5168 # OK, works on sane cases. Now check whether non-existent headers
5169 # can be detected and how.
5170 cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h. */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 #include <ac_nonexistent.h>
5177 _ACEOF
5178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5180 ac_status=$?
5181 grep -v '^ *+' conftest.er1 >conftest.err
5182 rm -f conftest.er1
5183 cat conftest.err >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } >/dev/null; then
5186 if test -s conftest.err; then
5187 ac_cpp_err=$ac_c_preproc_warn_flag
5188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5189 else
5190 ac_cpp_err=
5192 else
5193 ac_cpp_err=yes
5195 if test -z "$ac_cpp_err"; then
5196 # Broken: success on invalid input.
5197 continue
5198 else
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5202 # Passes both tests.
5203 ac_preproc_ok=:
5204 break
5206 rm -f conftest.err conftest.$ac_ext
5208 done
5209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5210 rm -f conftest.err conftest.$ac_ext
5211 if $ac_preproc_ok; then
5213 else
5214 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5215 See \`config.log' for more details." >&5
5216 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5217 See \`config.log' for more details." >&2;}
5218 { (exit 1); exit 1; }; }
5221 ac_ext=c
5222 ac_cpp='$CPP $CPPFLAGS'
5223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5228 echo "$as_me:$LINENO: checking for egrep" >&5
5229 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5230 if test "${ac_cv_prog_egrep+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5234 then ac_cv_prog_egrep='grep -E'
5235 else ac_cv_prog_egrep='egrep'
5238 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5239 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5240 EGREP=$ac_cv_prog_egrep
5243 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5244 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5245 if test "${ac_cv_header_stdc+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248 cat >conftest.$ac_ext <<_ACEOF
5249 /* confdefs.h. */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254 #include <stdlib.h>
5255 #include <stdarg.h>
5256 #include <string.h>
5257 #include <float.h>
5260 main ()
5264 return 0;
5266 _ACEOF
5267 rm -f conftest.$ac_objext
5268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5269 (eval $ac_compile) 2>conftest.er1
5270 ac_status=$?
5271 grep -v '^ *+' conftest.er1 >conftest.err
5272 rm -f conftest.er1
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } &&
5276 { ac_try='test -z "$ac_c_werror_flag"
5277 || test ! -s conftest.err'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 (eval $ac_try) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; } &&
5283 { ac_try='test -s conftest.$ac_objext'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 (eval $ac_try) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; }; then
5289 ac_cv_header_stdc=yes
5290 else
5291 echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.$ac_ext >&5
5294 ac_cv_header_stdc=no
5296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5298 if test $ac_cv_header_stdc = yes; then
5299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5300 cat >conftest.$ac_ext <<_ACEOF
5301 /* confdefs.h. */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 #include <string.h>
5308 _ACEOF
5309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5310 $EGREP "memchr" >/dev/null 2>&1; then
5312 else
5313 ac_cv_header_stdc=no
5315 rm -f conftest*
5319 if test $ac_cv_header_stdc = yes; then
5320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5321 cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h. */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 #include <stdlib.h>
5329 _ACEOF
5330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5331 $EGREP "free" >/dev/null 2>&1; then
5333 else
5334 ac_cv_header_stdc=no
5336 rm -f conftest*
5340 if test $ac_cv_header_stdc = yes; then
5341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5342 if test "$cross_compiling" = yes; then
5344 else
5345 cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h. */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5351 #include <ctype.h>
5352 #if ((' ' & 0x0FF) == 0x020)
5353 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5354 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5355 #else
5356 # define ISLOWER(c) \
5357 (('a' <= (c) && (c) <= 'i') \
5358 || ('j' <= (c) && (c) <= 'r') \
5359 || ('s' <= (c) && (c) <= 'z'))
5360 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5361 #endif
5363 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5365 main ()
5367 int i;
5368 for (i = 0; i < 256; i++)
5369 if (XOR (islower (i), ISLOWER (i))
5370 || toupper (i) != TOUPPER (i))
5371 exit(2);
5372 exit (0);
5374 _ACEOF
5375 rm -f conftest$ac_exeext
5376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5377 (eval $ac_link) 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 (eval $ac_try) 2>&5
5383 ac_status=$?
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5387 else
5388 echo "$as_me: program exited with status $ac_status" >&5
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5392 ( exit $ac_status )
5393 ac_cv_header_stdc=no
5395 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5399 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5400 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5401 if test $ac_cv_header_stdc = yes; then
5403 cat >>confdefs.h <<\_ACEOF
5404 #define STDC_HEADERS 1
5405 _ACEOF
5409 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5419 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5420 inttypes.h stdint.h unistd.h
5422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5423 echo "$as_me:$LINENO: checking for $ac_header" >&5
5424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428 cat >conftest.$ac_ext <<_ACEOF
5429 /* confdefs.h. */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434 $ac_includes_default
5436 #include <$ac_header>
5437 _ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -z "$ac_c_werror_flag"
5448 || test ! -s conftest.err'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 (eval $ac_try) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; } &&
5454 { ac_try='test -s conftest.$ac_objext'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 (eval $ac_try) 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 eval "$as_ac_Header=yes"
5461 else
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 eval "$as_ac_Header=no"
5467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5472 cat >>confdefs.h <<_ACEOF
5473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5474 _ACEOF
5478 done
5483 for ac_header in stdlib.h unistd.h
5485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5487 echo "$as_me:$LINENO: checking for $ac_header" >&5
5488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5494 else
5495 # Is the header compilable?
5496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5498 cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h. */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504 $ac_includes_default
5505 #include <$ac_header>
5506 _ACEOF
5507 rm -f conftest.$ac_objext
5508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5509 (eval $ac_compile) 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } &&
5516 { ac_try='test -z "$ac_c_werror_flag"
5517 || test ! -s conftest.err'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 (eval $ac_try) 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; } &&
5523 { ac_try='test -s conftest.$ac_objext'
5524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 (eval $ac_try) 2>&5
5526 ac_status=$?
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; }; then
5529 ac_header_compiler=yes
5530 else
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5534 ac_header_compiler=no
5536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5538 echo "${ECHO_T}$ac_header_compiler" >&6
5540 # Is the header present?
5541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5543 cat >conftest.$ac_ext <<_ACEOF
5544 /* confdefs.h. */
5545 _ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h. */
5549 #include <$ac_header>
5550 _ACEOF
5551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } >/dev/null; then
5559 if test -s conftest.err; then
5560 ac_cpp_err=$ac_c_preproc_warn_flag
5561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5562 else
5563 ac_cpp_err=
5565 else
5566 ac_cpp_err=yes
5568 if test -z "$ac_cpp_err"; then
5569 ac_header_preproc=yes
5570 else
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 ac_header_preproc=no
5576 rm -f conftest.err conftest.$ac_ext
5577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5578 echo "${ECHO_T}$ac_header_preproc" >&6
5580 # So? What about this header?
5581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5582 yes:no: )
5583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5587 ac_header_preproc=yes
5589 no:yes:* )
5590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5603 cat <<\_ASBOX
5604 ## ------------------------------------------------------ ##
5605 ## Report this to the GNU Fortran Runtime Library lists. ##
5606 ## ------------------------------------------------------ ##
5607 _ASBOX
5609 sed "s/^/$as_me: WARNING: /" >&2
5611 esac
5612 echo "$as_me:$LINENO: checking for $ac_header" >&5
5613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617 eval "$as_ac_Header=\$ac_header_preproc"
5619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5624 cat >>confdefs.h <<_ACEOF
5625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5626 _ACEOF
5630 done
5633 for ac_func in getpagesize
5635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5636 echo "$as_me:$LINENO: checking for $ac_func" >&5
5637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5638 if eval "test \"\${$as_ac_var+set}\" = set"; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641 cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h. */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5649 #define $ac_func innocuous_$ac_func
5651 /* System header to define __stub macros and hopefully few prototypes,
5652 which can conflict with char $ac_func (); below.
5653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5654 <limits.h> exists even on freestanding compilers. */
5656 #ifdef __STDC__
5657 # include <limits.h>
5658 #else
5659 # include <assert.h>
5660 #endif
5662 #undef $ac_func
5664 /* Override any gcc2 internal prototype to avoid an error. */
5665 #ifdef __cplusplus
5666 extern "C"
5668 #endif
5669 /* We use char because int might match the return type of a gcc2
5670 builtin and then its argument prototype would still apply. */
5671 char $ac_func ();
5672 /* The GNU C library defines this for functions which it implements
5673 to always fail with ENOSYS. Some functions are actually named
5674 something starting with __ and the normal name is an alias. */
5675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5676 choke me
5677 #else
5678 char (*f) () = $ac_func;
5679 #endif
5680 #ifdef __cplusplus
5682 #endif
5685 main ()
5687 return f != $ac_func;
5689 return 0;
5691 _ACEOF
5692 rm -f conftest.$ac_objext conftest$ac_exeext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5694 (eval $ac_link) 2>conftest.er1
5695 ac_status=$?
5696 grep -v '^ *+' conftest.er1 >conftest.err
5697 rm -f conftest.er1
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try='test -z "$ac_c_werror_flag"
5702 || test ! -s conftest.err'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 (eval $ac_try) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; } &&
5708 { ac_try='test -s conftest$ac_exeext'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 (eval $ac_try) 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714 eval "$as_ac_var=yes"
5715 else
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5719 eval "$as_ac_var=no"
5721 rm -f conftest.err conftest.$ac_objext \
5722 conftest$ac_exeext conftest.$ac_ext
5724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5726 if test `eval echo '${'$as_ac_var'}'` = yes; then
5727 cat >>confdefs.h <<_ACEOF
5728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5729 _ACEOF
5732 done
5734 echo "$as_me:$LINENO: checking for working mmap" >&5
5735 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5736 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739 if test "$cross_compiling" = yes; then
5740 ac_cv_func_mmap_fixed_mapped=no
5741 else
5742 cat >conftest.$ac_ext <<_ACEOF
5743 /* confdefs.h. */
5744 _ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h. */
5748 $ac_includes_default
5749 /* malloc might have been renamed as rpl_malloc. */
5750 #undef malloc
5752 /* Thanks to Mike Haertel and Jim Avera for this test.
5753 Here is a matrix of mmap possibilities:
5754 mmap private not fixed
5755 mmap private fixed at somewhere currently unmapped
5756 mmap private fixed at somewhere already mapped
5757 mmap shared not fixed
5758 mmap shared fixed at somewhere currently unmapped
5759 mmap shared fixed at somewhere already mapped
5760 For private mappings, we should verify that changes cannot be read()
5761 back from the file, nor mmap's back from the file at a different
5762 address. (There have been systems where private was not correctly
5763 implemented like the infamous i386 svr4.0, and systems where the
5764 VM page cache was not coherent with the file system buffer cache
5765 like early versions of FreeBSD and possibly contemporary NetBSD.)
5766 For shared mappings, we should conversely verify that changes get
5767 propagated back to all the places they're supposed to be.
5769 Grep wants private fixed already mapped.
5770 The main things grep needs to know about mmap are:
5771 * does it exist and is it safe to write into the mmap'd area
5772 * how to use it (BSD variants) */
5774 #include <fcntl.h>
5775 #include <sys/mman.h>
5777 #if !STDC_HEADERS && !HAVE_STDLIB_H
5778 char *malloc ();
5779 #endif
5781 /* This mess was copied from the GNU getpagesize.h. */
5782 #if !HAVE_GETPAGESIZE
5783 /* Assume that all systems that can run configure have sys/param.h. */
5784 # if !HAVE_SYS_PARAM_H
5785 # define HAVE_SYS_PARAM_H 1
5786 # endif
5788 # ifdef _SC_PAGESIZE
5789 # define getpagesize() sysconf(_SC_PAGESIZE)
5790 # else /* no _SC_PAGESIZE */
5791 # if HAVE_SYS_PARAM_H
5792 # include <sys/param.h>
5793 # ifdef EXEC_PAGESIZE
5794 # define getpagesize() EXEC_PAGESIZE
5795 # else /* no EXEC_PAGESIZE */
5796 # ifdef NBPG
5797 # define getpagesize() NBPG * CLSIZE
5798 # ifndef CLSIZE
5799 # define CLSIZE 1
5800 # endif /* no CLSIZE */
5801 # else /* no NBPG */
5802 # ifdef NBPC
5803 # define getpagesize() NBPC
5804 # else /* no NBPC */
5805 # ifdef PAGESIZE
5806 # define getpagesize() PAGESIZE
5807 # endif /* PAGESIZE */
5808 # endif /* no NBPC */
5809 # endif /* no NBPG */
5810 # endif /* no EXEC_PAGESIZE */
5811 # else /* no HAVE_SYS_PARAM_H */
5812 # define getpagesize() 8192 /* punt totally */
5813 # endif /* no HAVE_SYS_PARAM_H */
5814 # endif /* no _SC_PAGESIZE */
5816 #endif /* no HAVE_GETPAGESIZE */
5819 main ()
5821 char *data, *data2, *data3;
5822 int i, pagesize;
5823 int fd;
5825 pagesize = getpagesize ();
5827 /* First, make a file with some known garbage in it. */
5828 data = (char *) malloc (pagesize);
5829 if (!data)
5830 exit (1);
5831 for (i = 0; i < pagesize; ++i)
5832 *(data + i) = rand ();
5833 umask (0);
5834 fd = creat ("conftest.mmap", 0600);
5835 if (fd < 0)
5836 exit (1);
5837 if (write (fd, data, pagesize) != pagesize)
5838 exit (1);
5839 close (fd);
5841 /* Next, try to mmap the file at a fixed address which already has
5842 something else allocated at it. If we can, also make sure that
5843 we see the same garbage. */
5844 fd = open ("conftest.mmap", O_RDWR);
5845 if (fd < 0)
5846 exit (1);
5847 data2 = (char *) malloc (2 * pagesize);
5848 if (!data2)
5849 exit (1);
5850 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5851 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5852 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5853 exit (1);
5854 for (i = 0; i < pagesize; ++i)
5855 if (*(data + i) != *(data2 + i))
5856 exit (1);
5858 /* Finally, make sure that changes to the mapped area do not
5859 percolate back to the file as seen by read(). (This is a bug on
5860 some variants of i386 svr4.0.) */
5861 for (i = 0; i < pagesize; ++i)
5862 *(data2 + i) = *(data2 + i) + 1;
5863 data3 = (char *) malloc (pagesize);
5864 if (!data3)
5865 exit (1);
5866 if (read (fd, data3, pagesize) != pagesize)
5867 exit (1);
5868 for (i = 0; i < pagesize; ++i)
5869 if (*(data + i) != *(data3 + i))
5870 exit (1);
5871 close (fd);
5872 exit (0);
5874 _ACEOF
5875 rm -f conftest$ac_exeext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5877 (eval $ac_link) 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_cv_func_mmap_fixed_mapped=yes
5887 else
5888 echo "$as_me: program exited with status $ac_status" >&5
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 ( exit $ac_status )
5893 ac_cv_func_mmap_fixed_mapped=no
5895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5898 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5899 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5900 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5902 cat >>confdefs.h <<\_ACEOF
5903 #define HAVE_MMAP 1
5904 _ACEOF
5907 rm -f conftest.mmap
5909 echo "$as_me:$LINENO: checking for off_t" >&5
5910 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5911 if test "${ac_cv_type_off_t+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h. */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 $ac_includes_default
5922 main ()
5924 if ((off_t *) 0)
5925 return 0;
5926 if (sizeof (off_t))
5927 return 0;
5929 return 0;
5931 _ACEOF
5932 rm -f conftest.$ac_objext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5934 (eval $ac_compile) 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try='test -z "$ac_c_werror_flag"
5942 || test ! -s conftest.err'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 (eval $ac_try) 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try='test -s conftest.$ac_objext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 (eval $ac_try) 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5954 ac_cv_type_off_t=yes
5955 else
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 ac_cv_type_off_t=no
5961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5963 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5964 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5965 if test $ac_cv_type_off_t = yes; then
5967 else
5969 cat >>confdefs.h <<_ACEOF
5970 #define off_t long
5971 _ACEOF
5976 # check header files
5977 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5978 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5979 if test "${ac_cv_header_stdc+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 #include <stdlib.h>
5989 #include <stdarg.h>
5990 #include <string.h>
5991 #include <float.h>
5994 main ()
5998 return 0;
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003 (eval $ac_compile) 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
6010 { ac_try='test -z "$ac_c_werror_flag"
6011 || test ! -s conftest.err'
6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 (eval $ac_try) 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; } &&
6017 { ac_try='test -s conftest.$ac_objext'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 (eval $ac_try) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6023 ac_cv_header_stdc=yes
6024 else
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6028 ac_cv_header_stdc=no
6030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6032 if test $ac_cv_header_stdc = yes; then
6033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6034 cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h. */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 #include <string.h>
6042 _ACEOF
6043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6044 $EGREP "memchr" >/dev/null 2>&1; then
6046 else
6047 ac_cv_header_stdc=no
6049 rm -f conftest*
6053 if test $ac_cv_header_stdc = yes; then
6054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6055 cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h. */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 #include <stdlib.h>
6063 _ACEOF
6064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065 $EGREP "free" >/dev/null 2>&1; then
6067 else
6068 ac_cv_header_stdc=no
6070 rm -f conftest*
6074 if test $ac_cv_header_stdc = yes; then
6075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6076 if test "$cross_compiling" = yes; then
6078 else
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 #include <ctype.h>
6086 #if ((' ' & 0x0FF) == 0x020)
6087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6089 #else
6090 # define ISLOWER(c) \
6091 (('a' <= (c) && (c) <= 'i') \
6092 || ('j' <= (c) && (c) <= 'r') \
6093 || ('s' <= (c) && (c) <= 'z'))
6094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6095 #endif
6097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6099 main ()
6101 int i;
6102 for (i = 0; i < 256; i++)
6103 if (XOR (islower (i), ISLOWER (i))
6104 || toupper (i) != TOUPPER (i))
6105 exit(2);
6106 exit (0);
6108 _ACEOF
6109 rm -f conftest$ac_exeext
6110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6111 (eval $ac_link) 2>&5
6112 ac_status=$?
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 (eval $ac_try) 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6121 else
6122 echo "$as_me: program exited with status $ac_status" >&5
6123 echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6126 ( exit $ac_status )
6127 ac_cv_header_stdc=no
6129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6133 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6134 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6135 if test $ac_cv_header_stdc = yes; then
6137 cat >>confdefs.h <<\_ACEOF
6138 #define STDC_HEADERS 1
6139 _ACEOF
6150 for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h signal.h
6152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6154 echo "$as_me:$LINENO: checking for $ac_header" >&5
6155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6161 else
6162 # Is the header compilable?
6163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h. */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 $ac_includes_default
6172 #include <$ac_header>
6173 _ACEOF
6174 rm -f conftest.$ac_objext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176 (eval $ac_compile) 2>conftest.er1
6177 ac_status=$?
6178 grep -v '^ *+' conftest.er1 >conftest.err
6179 rm -f conftest.er1
6180 cat conftest.err >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -z "$ac_c_werror_flag"
6184 || test ! -s conftest.err'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } &&
6190 { ac_try='test -s conftest.$ac_objext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 ac_header_compiler=yes
6197 else
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6201 ac_header_compiler=no
6203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6205 echo "${ECHO_T}$ac_header_compiler" >&6
6207 # Is the header present?
6208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6210 cat >conftest.$ac_ext <<_ACEOF
6211 /* confdefs.h. */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6216 #include <$ac_header>
6217 _ACEOF
6218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6220 ac_status=$?
6221 grep -v '^ *+' conftest.er1 >conftest.err
6222 rm -f conftest.er1
6223 cat conftest.err >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } >/dev/null; then
6226 if test -s conftest.err; then
6227 ac_cpp_err=$ac_c_preproc_warn_flag
6228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6229 else
6230 ac_cpp_err=
6232 else
6233 ac_cpp_err=yes
6235 if test -z "$ac_cpp_err"; then
6236 ac_header_preproc=yes
6237 else
6238 echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6241 ac_header_preproc=no
6243 rm -f conftest.err conftest.$ac_ext
6244 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6245 echo "${ECHO_T}$ac_header_preproc" >&6
6247 # So? What about this header?
6248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6249 yes:no: )
6250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6254 ac_header_preproc=yes
6256 no:yes:* )
6257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6270 cat <<\_ASBOX
6271 ## ------------------------------------------------------ ##
6272 ## Report this to the GNU Fortran Runtime Library lists. ##
6273 ## ------------------------------------------------------ ##
6274 _ASBOX
6276 sed "s/^/$as_me: WARNING: /" >&2
6278 esac
6279 echo "$as_me:$LINENO: checking for $ac_header" >&5
6280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284 eval "$as_ac_Header=\$ac_header_preproc"
6286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6291 cat >>confdefs.h <<_ACEOF
6292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6293 _ACEOF
6297 done
6304 for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
6306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6308 echo "$as_me:$LINENO: checking for $ac_header" >&5
6309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6315 else
6316 # Is the header compilable?
6317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6319 cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h. */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 $ac_includes_default
6326 #include <$ac_header>
6327 _ACEOF
6328 rm -f conftest.$ac_objext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6330 (eval $ac_compile) 2>conftest.er1
6331 ac_status=$?
6332 grep -v '^ *+' conftest.er1 >conftest.err
6333 rm -f conftest.er1
6334 cat conftest.err >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } &&
6337 { ac_try='test -z "$ac_c_werror_flag"
6338 || test ! -s conftest.err'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 (eval $ac_try) 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; } &&
6344 { ac_try='test -s conftest.$ac_objext'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 (eval $ac_try) 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 ac_header_compiler=yes
6351 else
6352 echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6355 ac_header_compiler=no
6357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6359 echo "${ECHO_T}$ac_header_compiler" >&6
6361 # Is the header present?
6362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 #include <$ac_header>
6371 _ACEOF
6372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6374 ac_status=$?
6375 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -f conftest.er1
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } >/dev/null; then
6380 if test -s conftest.err; then
6381 ac_cpp_err=$ac_c_preproc_warn_flag
6382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6383 else
6384 ac_cpp_err=
6386 else
6387 ac_cpp_err=yes
6389 if test -z "$ac_cpp_err"; then
6390 ac_header_preproc=yes
6391 else
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6395 ac_header_preproc=no
6397 rm -f conftest.err conftest.$ac_ext
6398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6399 echo "${ECHO_T}$ac_header_preproc" >&6
6401 # So? What about this header?
6402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6403 yes:no: )
6404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6408 ac_header_preproc=yes
6410 no:yes:* )
6411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6424 cat <<\_ASBOX
6425 ## ------------------------------------------------------ ##
6426 ## Report this to the GNU Fortran Runtime Library lists. ##
6427 ## ------------------------------------------------------ ##
6428 _ASBOX
6430 sed "s/^/$as_me: WARNING: /" >&2
6432 esac
6433 echo "$as_me:$LINENO: checking for $ac_header" >&5
6434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438 eval "$as_ac_Header=\$ac_header_preproc"
6440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6445 cat >>confdefs.h <<_ACEOF
6446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6447 _ACEOF
6451 done
6457 for ac_header in sys/mman.h sys/types.h sys/stat.h ieeefp.h
6459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6461 echo "$as_me:$LINENO: checking for $ac_header" >&5
6462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6468 else
6469 # Is the header compilable?
6470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6472 cat >conftest.$ac_ext <<_ACEOF
6473 /* confdefs.h. */
6474 _ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h. */
6478 $ac_includes_default
6479 #include <$ac_header>
6480 _ACEOF
6481 rm -f conftest.$ac_objext
6482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6483 (eval $ac_compile) 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } &&
6490 { ac_try='test -z "$ac_c_werror_flag"
6491 || test ! -s conftest.err'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 (eval $ac_try) 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; } &&
6497 { ac_try='test -s conftest.$ac_objext'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 (eval $ac_try) 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
6503 ac_header_compiler=yes
6504 else
6505 echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6508 ac_header_compiler=no
6510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6512 echo "${ECHO_T}$ac_header_compiler" >&6
6514 # Is the header present?
6515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6517 cat >conftest.$ac_ext <<_ACEOF
6518 /* confdefs.h. */
6519 _ACEOF
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h. */
6523 #include <$ac_header>
6524 _ACEOF
6525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6527 ac_status=$?
6528 grep -v '^ *+' conftest.er1 >conftest.err
6529 rm -f conftest.er1
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } >/dev/null; then
6533 if test -s conftest.err; then
6534 ac_cpp_err=$ac_c_preproc_warn_flag
6535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6536 else
6537 ac_cpp_err=
6539 else
6540 ac_cpp_err=yes
6542 if test -z "$ac_cpp_err"; then
6543 ac_header_preproc=yes
6544 else
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6548 ac_header_preproc=no
6550 rm -f conftest.err conftest.$ac_ext
6551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6552 echo "${ECHO_T}$ac_header_preproc" >&6
6554 # So? What about this header?
6555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6556 yes:no: )
6557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6561 ac_header_preproc=yes
6563 no:yes:* )
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6577 cat <<\_ASBOX
6578 ## ------------------------------------------------------ ##
6579 ## Report this to the GNU Fortran Runtime Library lists. ##
6580 ## ------------------------------------------------------ ##
6581 _ASBOX
6583 sed "s/^/$as_me: WARNING: /" >&2
6585 esac
6586 echo "$as_me:$LINENO: checking for $ac_header" >&5
6587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591 eval "$as_ac_Header=\$ac_header_preproc"
6593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6598 cat >>confdefs.h <<_ACEOF
6599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6600 _ACEOF
6604 done
6606 if test "${ac_cv_header_complex_h+set}" = set; then
6607 echo "$as_me:$LINENO: checking for complex.h" >&5
6608 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6609 if test "${ac_cv_header_complex_h+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6613 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6614 else
6615 # Is the header compilable?
6616 echo "$as_me:$LINENO: checking complex.h usability" >&5
6617 echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6618 cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h. */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6624 $ac_includes_default
6625 #include <complex.h>
6626 _ACEOF
6627 rm -f conftest.$ac_objext
6628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6629 (eval $ac_compile) 2>conftest.er1
6630 ac_status=$?
6631 grep -v '^ *+' conftest.er1 >conftest.err
6632 rm -f conftest.er1
6633 cat conftest.err >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } &&
6636 { ac_try='test -z "$ac_c_werror_flag"
6637 || test ! -s conftest.err'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 (eval $ac_try) 2>&5
6640 ac_status=$?
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; } &&
6643 { ac_try='test -s conftest.$ac_objext'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 (eval $ac_try) 2>&5
6646 ac_status=$?
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; }; then
6649 ac_header_compiler=yes
6650 else
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6654 ac_header_compiler=no
6656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6658 echo "${ECHO_T}$ac_header_compiler" >&6
6660 # Is the header present?
6661 echo "$as_me:$LINENO: checking complex.h presence" >&5
6662 echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6663 cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h. */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669 #include <complex.h>
6670 _ACEOF
6671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6673 ac_status=$?
6674 grep -v '^ *+' conftest.er1 >conftest.err
6675 rm -f conftest.er1
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } >/dev/null; then
6679 if test -s conftest.err; then
6680 ac_cpp_err=$ac_c_preproc_warn_flag
6681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6682 else
6683 ac_cpp_err=
6685 else
6686 ac_cpp_err=yes
6688 if test -z "$ac_cpp_err"; then
6689 ac_header_preproc=yes
6690 else
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6694 ac_header_preproc=no
6696 rm -f conftest.err conftest.$ac_ext
6697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6698 echo "${ECHO_T}$ac_header_preproc" >&6
6700 # So? What about this header?
6701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6702 yes:no: )
6703 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6704 echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6705 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6706 echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6707 ac_header_preproc=yes
6709 no:yes:* )
6710 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6711 echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
6713 echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
6714 { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6715 echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6716 { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5
6717 echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;}
6718 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6719 echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6720 { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6721 echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6723 cat <<\_ASBOX
6724 ## ------------------------------------------------------ ##
6725 ## Report this to the GNU Fortran Runtime Library lists. ##
6726 ## ------------------------------------------------------ ##
6727 _ASBOX
6729 sed "s/^/$as_me: WARNING: /" >&2
6731 esac
6732 echo "$as_me:$LINENO: checking for complex.h" >&5
6733 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6734 if test "${ac_cv_header_complex_h+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737 ac_cv_header_complex_h=$ac_header_preproc
6739 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6740 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6743 if test $ac_cv_header_complex_h = yes; then
6745 cat >>confdefs.h <<\_ACEOF
6746 #define HAVE_COMPLEX_H 1
6747 _ACEOF
6753 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6754 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6755 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758 cat >conftest.$ac_ext <<_ACEOF
6759 /* confdefs.h. */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 $ac_includes_default
6766 main ()
6768 static struct stat ac_aggr;
6769 if (ac_aggr.st_blksize)
6770 return 0;
6772 return 0;
6774 _ACEOF
6775 rm -f conftest.$ac_objext
6776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6777 (eval $ac_compile) 2>conftest.er1
6778 ac_status=$?
6779 grep -v '^ *+' conftest.er1 >conftest.err
6780 rm -f conftest.er1
6781 cat conftest.err >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } &&
6784 { ac_try='test -z "$ac_c_werror_flag"
6785 || test ! -s conftest.err'
6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 (eval $ac_try) 2>&5
6788 ac_status=$?
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; } &&
6791 { ac_try='test -s conftest.$ac_objext'
6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 (eval $ac_try) 2>&5
6794 ac_status=$?
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; }; then
6797 ac_cv_member_struct_stat_st_blksize=yes
6798 else
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6802 cat >conftest.$ac_ext <<_ACEOF
6803 /* confdefs.h. */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6808 $ac_includes_default
6810 main ()
6812 static struct stat ac_aggr;
6813 if (sizeof ac_aggr.st_blksize)
6814 return 0;
6816 return 0;
6818 _ACEOF
6819 rm -f conftest.$ac_objext
6820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6821 (eval $ac_compile) 2>conftest.er1
6822 ac_status=$?
6823 grep -v '^ *+' conftest.er1 >conftest.err
6824 rm -f conftest.er1
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } &&
6828 { ac_try='test -z "$ac_c_werror_flag"
6829 || test ! -s conftest.err'
6830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 (eval $ac_try) 2>&5
6832 ac_status=$?
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; } &&
6835 { ac_try='test -s conftest.$ac_objext'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 (eval $ac_try) 2>&5
6838 ac_status=$?
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; }; then
6841 ac_cv_member_struct_stat_st_blksize=yes
6842 else
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6846 ac_cv_member_struct_stat_st_blksize=no
6848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6852 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6853 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
6854 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6856 cat >>confdefs.h <<_ACEOF
6857 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6858 _ACEOF
6863 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6864 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6865 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 $ac_includes_default
6876 main ()
6878 static struct stat ac_aggr;
6879 if (ac_aggr.st_blocks)
6880 return 0;
6882 return 0;
6884 _ACEOF
6885 rm -f conftest.$ac_objext
6886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6887 (eval $ac_compile) 2>conftest.er1
6888 ac_status=$?
6889 grep -v '^ *+' conftest.er1 >conftest.err
6890 rm -f conftest.er1
6891 cat conftest.err >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } &&
6894 { ac_try='test -z "$ac_c_werror_flag"
6895 || test ! -s conftest.err'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 (eval $ac_try) 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; } &&
6901 { ac_try='test -s conftest.$ac_objext'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 (eval $ac_try) 2>&5
6904 ac_status=$?
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; }; then
6907 ac_cv_member_struct_stat_st_blocks=yes
6908 else
6909 echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6912 cat >conftest.$ac_ext <<_ACEOF
6913 /* confdefs.h. */
6914 _ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6918 $ac_includes_default
6920 main ()
6922 static struct stat ac_aggr;
6923 if (sizeof ac_aggr.st_blocks)
6924 return 0;
6926 return 0;
6928 _ACEOF
6929 rm -f conftest.$ac_objext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6931 (eval $ac_compile) 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try='test -z "$ac_c_werror_flag"
6939 || test ! -s conftest.err'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; } &&
6945 { ac_try='test -s conftest.$ac_objext'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; }; then
6951 ac_cv_member_struct_stat_st_blocks=yes
6952 else
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 ac_cv_member_struct_stat_st_blocks=no
6958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6962 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6963 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
6964 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6966 cat >>confdefs.h <<_ACEOF
6967 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6968 _ACEOF
6973 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6974 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
6975 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978 cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h. */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 $ac_includes_default
6986 main ()
6988 static struct stat ac_aggr;
6989 if (ac_aggr.st_rdev)
6990 return 0;
6992 return 0;
6994 _ACEOF
6995 rm -f conftest.$ac_objext
6996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6997 (eval $ac_compile) 2>conftest.er1
6998 ac_status=$?
6999 grep -v '^ *+' conftest.er1 >conftest.err
7000 rm -f conftest.er1
7001 cat conftest.err >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } &&
7004 { ac_try='test -z "$ac_c_werror_flag"
7005 || test ! -s conftest.err'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; } &&
7011 { ac_try='test -s conftest.$ac_objext'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 (eval $ac_try) 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7017 ac_cv_member_struct_stat_st_rdev=yes
7018 else
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 $ac_includes_default
7030 main ()
7032 static struct stat ac_aggr;
7033 if (sizeof ac_aggr.st_rdev)
7034 return 0;
7036 return 0;
7038 _ACEOF
7039 rm -f conftest.$ac_objext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7041 (eval $ac_compile) 2>conftest.er1
7042 ac_status=$?
7043 grep -v '^ *+' conftest.er1 >conftest.err
7044 rm -f conftest.er1
7045 cat conftest.err >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } &&
7048 { ac_try='test -z "$ac_c_werror_flag"
7049 || test ! -s conftest.err'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; } &&
7055 { ac_try='test -s conftest.$ac_objext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 (eval $ac_try) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 ac_cv_member_struct_stat_st_rdev=yes
7062 else
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7066 ac_cv_member_struct_stat_st_rdev=no
7068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7072 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7073 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7074 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7076 cat >>confdefs.h <<_ACEOF
7077 #define HAVE_STRUCT_STAT_ST_RDEV 1
7078 _ACEOF
7084 # Check for complex math functions
7085 echo "$as_me:$LINENO: checking for csin in -lm" >&5
7086 echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
7087 if test "${ac_cv_lib_m_csin+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 ac_check_lib_save_LIBS=$LIBS
7091 LIBS="-lm $LIBS"
7092 cat >conftest.$ac_ext <<_ACEOF
7093 /* confdefs.h. */
7094 _ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7099 /* Override any gcc2 internal prototype to avoid an error. */
7100 #ifdef __cplusplus
7101 extern "C"
7102 #endif
7103 /* We use char because int might match the return type of a gcc2
7104 builtin and then its argument prototype would still apply. */
7105 char csin ();
7107 main ()
7109 csin ();
7111 return 0;
7113 _ACEOF
7114 rm -f conftest.$ac_objext conftest$ac_exeext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7116 (eval $ac_link) 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } &&
7123 { ac_try='test -z "$ac_c_werror_flag"
7124 || test ! -s conftest.err'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 (eval $ac_try) 2>&5
7127 ac_status=$?
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; } &&
7130 { ac_try='test -s conftest$ac_exeext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 (eval $ac_try) 2>&5
7133 ac_status=$?
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7136 ac_cv_lib_m_csin=yes
7137 else
7138 echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7141 ac_cv_lib_m_csin=no
7143 rm -f conftest.err conftest.$ac_objext \
7144 conftest$ac_exeext conftest.$ac_ext
7145 LIBS=$ac_check_lib_save_LIBS
7147 echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
7148 echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
7149 if test $ac_cv_lib_m_csin = yes; then
7150 need_math="no"
7151 else
7152 need_math="yes"
7156 # Check for library functions.
7164 for ac_func in getrusage times mkstemp strtof snprintf ftruncate chsize
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 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h. */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7180 #define $ac_func innocuous_$ac_func
7182 /* System header to define __stub macros and hopefully few prototypes,
7183 which can conflict with char $ac_func (); below.
7184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7185 <limits.h> exists even on freestanding compilers. */
7187 #ifdef __STDC__
7188 # include <limits.h>
7189 #else
7190 # include <assert.h>
7191 #endif
7193 #undef $ac_func
7195 /* Override any gcc2 internal prototype to avoid an error. */
7196 #ifdef __cplusplus
7197 extern "C"
7199 #endif
7200 /* We use char because int might match the return type of a gcc2
7201 builtin and then its argument prototype would still apply. */
7202 char $ac_func ();
7203 /* The GNU C library defines this for functions which it implements
7204 to always fail with ENOSYS. Some functions are actually named
7205 something starting with __ and the normal name is an alias. */
7206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7207 choke me
7208 #else
7209 char (*f) () = $ac_func;
7210 #endif
7211 #ifdef __cplusplus
7213 #endif
7216 main ()
7218 return f != $ac_func;
7220 return 0;
7222 _ACEOF
7223 rm -f conftest.$ac_objext conftest$ac_exeext
7224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7225 (eval $ac_link) 2>conftest.er1
7226 ac_status=$?
7227 grep -v '^ *+' conftest.er1 >conftest.err
7228 rm -f conftest.er1
7229 cat conftest.err >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } &&
7232 { ac_try='test -z "$ac_c_werror_flag"
7233 || test ! -s conftest.err'
7234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235 (eval $ac_try) 2>&5
7236 ac_status=$?
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); }; } &&
7239 { ac_try='test -s conftest$ac_exeext'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 (eval $ac_try) 2>&5
7242 ac_status=$?
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; }; then
7245 eval "$as_ac_var=yes"
7246 else
7247 echo "$as_me: failed program was:" >&5
7248 sed 's/^/| /' conftest.$ac_ext >&5
7250 eval "$as_ac_var=no"
7252 rm -f conftest.err conftest.$ac_objext \
7253 conftest$ac_exeext conftest.$ac_ext
7255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7257 if test `eval echo '${'$as_ac_var'}'` = yes; then
7258 cat >>confdefs.h <<_ACEOF
7259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7260 _ACEOF
7263 done
7273 for ac_func in chdir strerror getlogin gethostname kill link symlink perror
7275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7276 echo "$as_me:$LINENO: checking for $ac_func" >&5
7277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7278 if eval "test \"\${$as_ac_var+set}\" = set"; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 else
7281 cat >conftest.$ac_ext <<_ACEOF
7282 /* confdefs.h. */
7283 _ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7289 #define $ac_func innocuous_$ac_func
7291 /* System header to define __stub macros and hopefully few prototypes,
7292 which can conflict with char $ac_func (); below.
7293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7294 <limits.h> exists even on freestanding compilers. */
7296 #ifdef __STDC__
7297 # include <limits.h>
7298 #else
7299 # include <assert.h>
7300 #endif
7302 #undef $ac_func
7304 /* Override any gcc2 internal prototype to avoid an error. */
7305 #ifdef __cplusplus
7306 extern "C"
7308 #endif
7309 /* We use char because int might match the return type of a gcc2
7310 builtin and then its argument prototype would still apply. */
7311 char $ac_func ();
7312 /* The GNU C library defines this for functions which it implements
7313 to always fail with ENOSYS. Some functions are actually named
7314 something starting with __ and the normal name is an alias. */
7315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7316 choke me
7317 #else
7318 char (*f) () = $ac_func;
7319 #endif
7320 #ifdef __cplusplus
7322 #endif
7325 main ()
7327 return f != $ac_func;
7329 return 0;
7331 _ACEOF
7332 rm -f conftest.$ac_objext conftest$ac_exeext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7334 (eval $ac_link) 2>conftest.er1
7335 ac_status=$?
7336 grep -v '^ *+' conftest.er1 >conftest.err
7337 rm -f conftest.er1
7338 cat conftest.err >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } &&
7341 { ac_try='test -z "$ac_c_werror_flag"
7342 || test ! -s conftest.err'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 (eval $ac_try) 2>&5
7345 ac_status=$?
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; } &&
7348 { ac_try='test -s conftest$ac_exeext'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 (eval $ac_try) 2>&5
7351 ac_status=$?
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; }; then
7354 eval "$as_ac_var=yes"
7355 else
7356 echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7359 eval "$as_ac_var=no"
7361 rm -f conftest.err conftest.$ac_objext \
7362 conftest$ac_exeext conftest.$ac_ext
7364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7366 if test `eval echo '${'$as_ac_var'}'` = yes; then
7367 cat >>confdefs.h <<_ACEOF
7368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7369 _ACEOF
7372 done
7376 for ac_func in sleep time
7378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7379 echo "$as_me:$LINENO: checking for $ac_func" >&5
7380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7381 if eval "test \"\${$as_ac_var+set}\" = set"; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384 cat >conftest.$ac_ext <<_ACEOF
7385 /* confdefs.h. */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7392 #define $ac_func innocuous_$ac_func
7394 /* System header to define __stub macros and hopefully few prototypes,
7395 which can conflict with char $ac_func (); below.
7396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7397 <limits.h> exists even on freestanding compilers. */
7399 #ifdef __STDC__
7400 # include <limits.h>
7401 #else
7402 # include <assert.h>
7403 #endif
7405 #undef $ac_func
7407 /* Override any gcc2 internal prototype to avoid an error. */
7408 #ifdef __cplusplus
7409 extern "C"
7411 #endif
7412 /* We use char because int might match the return type of a gcc2
7413 builtin and then its argument prototype would still apply. */
7414 char $ac_func ();
7415 /* The GNU C library defines this for functions which it implements
7416 to always fail with ENOSYS. Some functions are actually named
7417 something starting with __ and the normal name is an alias. */
7418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7419 choke me
7420 #else
7421 char (*f) () = $ac_func;
7422 #endif
7423 #ifdef __cplusplus
7425 #endif
7428 main ()
7430 return f != $ac_func;
7432 return 0;
7434 _ACEOF
7435 rm -f conftest.$ac_objext conftest$ac_exeext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7437 (eval $ac_link) 2>conftest.er1
7438 ac_status=$?
7439 grep -v '^ *+' conftest.er1 >conftest.err
7440 rm -f conftest.er1
7441 cat conftest.err >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } &&
7444 { ac_try='test -z "$ac_c_werror_flag"
7445 || test ! -s conftest.err'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; } &&
7451 { ac_try='test -s conftest$ac_exeext'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 (eval $ac_try) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; }; then
7457 eval "$as_ac_var=yes"
7458 else
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7462 eval "$as_ac_var=no"
7464 rm -f conftest.err conftest.$ac_objext \
7465 conftest$ac_exeext conftest.$ac_ext
7467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7468 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7469 if test `eval echo '${'$as_ac_var'}'` = yes; then
7470 cat >>confdefs.h <<_ACEOF
7471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7472 _ACEOF
7475 done
7478 # Check libc for getgid, getpid, getuid
7479 echo "$as_me:$LINENO: checking for getgid in -lc" >&5
7480 echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
7481 if test "${ac_cv_lib_c_getgid+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484 ac_check_lib_save_LIBS=$LIBS
7485 LIBS="-lc $LIBS"
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h. */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7493 /* Override any gcc2 internal prototype to avoid an error. */
7494 #ifdef __cplusplus
7495 extern "C"
7496 #endif
7497 /* We use char because int might match the return type of a gcc2
7498 builtin and then its argument prototype would still apply. */
7499 char getgid ();
7501 main ()
7503 getgid ();
7505 return 0;
7507 _ACEOF
7508 rm -f conftest.$ac_objext conftest$ac_exeext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7510 (eval $ac_link) 2>conftest.er1
7511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } &&
7517 { ac_try='test -z "$ac_c_werror_flag"
7518 || test ! -s conftest.err'
7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 (eval $ac_try) 2>&5
7521 ac_status=$?
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; } &&
7524 { ac_try='test -s conftest$ac_exeext'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526 (eval $ac_try) 2>&5
7527 ac_status=$?
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; }; then
7530 ac_cv_lib_c_getgid=yes
7531 else
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7535 ac_cv_lib_c_getgid=no
7537 rm -f conftest.err conftest.$ac_objext \
7538 conftest$ac_exeext conftest.$ac_ext
7539 LIBS=$ac_check_lib_save_LIBS
7541 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
7542 echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
7543 if test $ac_cv_lib_c_getgid = yes; then
7545 cat >>confdefs.h <<\_ACEOF
7546 #define HAVE_GETGID 1
7547 _ACEOF
7551 echo "$as_me:$LINENO: checking for getpid in -lc" >&5
7552 echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
7553 if test "${ac_cv_lib_c_getpid+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556 ac_check_lib_save_LIBS=$LIBS
7557 LIBS="-lc $LIBS"
7558 cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h. */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7565 /* Override any gcc2 internal prototype to avoid an error. */
7566 #ifdef __cplusplus
7567 extern "C"
7568 #endif
7569 /* We use char because int might match the return type of a gcc2
7570 builtin and then its argument prototype would still apply. */
7571 char getpid ();
7573 main ()
7575 getpid ();
7577 return 0;
7579 _ACEOF
7580 rm -f conftest.$ac_objext conftest$ac_exeext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7582 (eval $ac_link) 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } &&
7589 { ac_try='test -z "$ac_c_werror_flag"
7590 || test ! -s conftest.err'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 (eval $ac_try) 2>&5
7593 ac_status=$?
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; } &&
7596 { ac_try='test -s conftest$ac_exeext'
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 (eval $ac_try) 2>&5
7599 ac_status=$?
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7602 ac_cv_lib_c_getpid=yes
7603 else
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.$ac_ext >&5
7607 ac_cv_lib_c_getpid=no
7609 rm -f conftest.err conftest.$ac_objext \
7610 conftest$ac_exeext conftest.$ac_ext
7611 LIBS=$ac_check_lib_save_LIBS
7613 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
7614 echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
7615 if test $ac_cv_lib_c_getpid = yes; then
7617 cat >>confdefs.h <<\_ACEOF
7618 #define HAVE_GETPID 1
7619 _ACEOF
7623 echo "$as_me:$LINENO: checking for getuid in -lc" >&5
7624 echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
7625 if test "${ac_cv_lib_c_getuid+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628 ac_check_lib_save_LIBS=$LIBS
7629 LIBS="-lc $LIBS"
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7637 /* Override any gcc2 internal prototype to avoid an error. */
7638 #ifdef __cplusplus
7639 extern "C"
7640 #endif
7641 /* We use char because int might match the return type of a gcc2
7642 builtin and then its argument prototype would still apply. */
7643 char getuid ();
7645 main ()
7647 getuid ();
7649 return 0;
7651 _ACEOF
7652 rm -f conftest.$ac_objext conftest$ac_exeext
7653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7654 (eval $ac_link) 2>conftest.er1
7655 ac_status=$?
7656 grep -v '^ *+' conftest.er1 >conftest.err
7657 rm -f conftest.er1
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try='test -z "$ac_c_werror_flag"
7662 || test ! -s conftest.err'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; } &&
7668 { ac_try='test -s conftest$ac_exeext'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 (eval $ac_try) 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; }; then
7674 ac_cv_lib_c_getuid=yes
7675 else
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7679 ac_cv_lib_c_getuid=no
7681 rm -f conftest.err conftest.$ac_objext \
7682 conftest$ac_exeext conftest.$ac_ext
7683 LIBS=$ac_check_lib_save_LIBS
7685 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
7686 echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
7687 if test $ac_cv_lib_c_getuid = yes; then
7689 cat >>confdefs.h <<\_ACEOF
7690 #define HAVE_GETUID 1
7691 _ACEOF
7696 # Check for C99 (and other IEEE) math functions
7697 # ??? This list seems awful long. Is there a better way to test for these?
7698 echo "$as_me:$LINENO: checking for acosf in -lm" >&5
7699 echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
7700 if test "${ac_cv_lib_m_acosf+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703 ac_check_lib_save_LIBS=$LIBS
7704 LIBS="-lm $LIBS"
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h. */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7712 /* Override any gcc2 internal prototype to avoid an error. */
7713 #ifdef __cplusplus
7714 extern "C"
7715 #endif
7716 /* We use char because int might match the return type of a gcc2
7717 builtin and then its argument prototype would still apply. */
7718 char acosf ();
7720 main ()
7722 acosf ();
7724 return 0;
7726 _ACEOF
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7729 (eval $ac_link) 2>conftest.er1
7730 ac_status=$?
7731 grep -v '^ *+' conftest.er1 >conftest.err
7732 rm -f conftest.er1
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try='test -z "$ac_c_werror_flag"
7737 || test ! -s conftest.err'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 (eval $ac_try) 2>&5
7740 ac_status=$?
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; } &&
7743 { ac_try='test -s conftest$ac_exeext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 (eval $ac_try) 2>&5
7746 ac_status=$?
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 ac_cv_lib_m_acosf=yes
7750 else
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7754 ac_cv_lib_m_acosf=no
7756 rm -f conftest.err conftest.$ac_objext \
7757 conftest$ac_exeext conftest.$ac_ext
7758 LIBS=$ac_check_lib_save_LIBS
7760 echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
7761 echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
7762 if test $ac_cv_lib_m_acosf = yes; then
7764 cat >>confdefs.h <<\_ACEOF
7765 #define HAVE_ACOSF 1
7766 _ACEOF
7770 echo "$as_me:$LINENO: checking for asinf in -lm" >&5
7771 echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
7772 if test "${ac_cv_lib_m_asinf+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775 ac_check_lib_save_LIBS=$LIBS
7776 LIBS="-lm $LIBS"
7777 cat >conftest.$ac_ext <<_ACEOF
7778 /* confdefs.h. */
7779 _ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7784 /* Override any gcc2 internal prototype to avoid an error. */
7785 #ifdef __cplusplus
7786 extern "C"
7787 #endif
7788 /* We use char because int might match the return type of a gcc2
7789 builtin and then its argument prototype would still apply. */
7790 char asinf ();
7792 main ()
7794 asinf ();
7796 return 0;
7798 _ACEOF
7799 rm -f conftest.$ac_objext conftest$ac_exeext
7800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7801 (eval $ac_link) 2>conftest.er1
7802 ac_status=$?
7803 grep -v '^ *+' conftest.er1 >conftest.err
7804 rm -f conftest.er1
7805 cat conftest.err >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } &&
7808 { ac_try='test -z "$ac_c_werror_flag"
7809 || test ! -s conftest.err'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 (eval $ac_try) 2>&5
7812 ac_status=$?
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; } &&
7815 { ac_try='test -s conftest$ac_exeext'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 (eval $ac_try) 2>&5
7818 ac_status=$?
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; }; then
7821 ac_cv_lib_m_asinf=yes
7822 else
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7826 ac_cv_lib_m_asinf=no
7828 rm -f conftest.err conftest.$ac_objext \
7829 conftest$ac_exeext conftest.$ac_ext
7830 LIBS=$ac_check_lib_save_LIBS
7832 echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
7833 echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
7834 if test $ac_cv_lib_m_asinf = yes; then
7836 cat >>confdefs.h <<\_ACEOF
7837 #define HAVE_ASINF 1
7838 _ACEOF
7842 echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
7843 echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
7844 if test "${ac_cv_lib_m_atan2f+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847 ac_check_lib_save_LIBS=$LIBS
7848 LIBS="-lm $LIBS"
7849 cat >conftest.$ac_ext <<_ACEOF
7850 /* confdefs.h. */
7851 _ACEOF
7852 cat confdefs.h >>conftest.$ac_ext
7853 cat >>conftest.$ac_ext <<_ACEOF
7854 /* end confdefs.h. */
7856 /* Override any gcc2 internal prototype to avoid an error. */
7857 #ifdef __cplusplus
7858 extern "C"
7859 #endif
7860 /* We use char because int might match the return type of a gcc2
7861 builtin and then its argument prototype would still apply. */
7862 char atan2f ();
7864 main ()
7866 atan2f ();
7868 return 0;
7870 _ACEOF
7871 rm -f conftest.$ac_objext conftest$ac_exeext
7872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7873 (eval $ac_link) 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -z "$ac_c_werror_flag"
7881 || test ! -s conftest.err'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 (eval $ac_try) 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 (eval $ac_try) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 ac_cv_lib_m_atan2f=yes
7894 else
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7898 ac_cv_lib_m_atan2f=no
7900 rm -f conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7902 LIBS=$ac_check_lib_save_LIBS
7904 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
7905 echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
7906 if test $ac_cv_lib_m_atan2f = yes; then
7908 cat >>confdefs.h <<\_ACEOF
7909 #define HAVE_ATAN2F 1
7910 _ACEOF
7914 echo "$as_me:$LINENO: checking for atanf in -lm" >&5
7915 echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
7916 if test "${ac_cv_lib_m_atanf+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919 ac_check_lib_save_LIBS=$LIBS
7920 LIBS="-lm $LIBS"
7921 cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7928 /* Override any gcc2 internal prototype to avoid an error. */
7929 #ifdef __cplusplus
7930 extern "C"
7931 #endif
7932 /* We use char because int might match the return type of a gcc2
7933 builtin and then its argument prototype would still apply. */
7934 char atanf ();
7936 main ()
7938 atanf ();
7940 return 0;
7942 _ACEOF
7943 rm -f conftest.$ac_objext conftest$ac_exeext
7944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7945 (eval $ac_link) 2>conftest.er1
7946 ac_status=$?
7947 grep -v '^ *+' conftest.er1 >conftest.err
7948 rm -f conftest.er1
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } &&
7952 { ac_try='test -z "$ac_c_werror_flag"
7953 || test ! -s conftest.err'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 (eval $ac_try) 2>&5
7956 ac_status=$?
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; } &&
7959 { ac_try='test -s conftest$ac_exeext'
7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 (eval $ac_try) 2>&5
7962 ac_status=$?
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; }; then
7965 ac_cv_lib_m_atanf=yes
7966 else
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7970 ac_cv_lib_m_atanf=no
7972 rm -f conftest.err conftest.$ac_objext \
7973 conftest$ac_exeext conftest.$ac_ext
7974 LIBS=$ac_check_lib_save_LIBS
7976 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
7977 echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
7978 if test $ac_cv_lib_m_atanf = yes; then
7980 cat >>confdefs.h <<\_ACEOF
7981 #define HAVE_ATANF 1
7982 _ACEOF
7986 echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
7987 echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
7988 if test "${ac_cv_lib_m_ceilf+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 else
7991 ac_check_lib_save_LIBS=$LIBS
7992 LIBS="-lm $LIBS"
7993 cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h. */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
8000 /* Override any gcc2 internal prototype to avoid an error. */
8001 #ifdef __cplusplus
8002 extern "C"
8003 #endif
8004 /* We use char because int might match the return type of a gcc2
8005 builtin and then its argument prototype would still apply. */
8006 char ceilf ();
8008 main ()
8010 ceilf ();
8012 return 0;
8014 _ACEOF
8015 rm -f conftest.$ac_objext conftest$ac_exeext
8016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8017 (eval $ac_link) 2>conftest.er1
8018 ac_status=$?
8019 grep -v '^ *+' conftest.er1 >conftest.err
8020 rm -f conftest.er1
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } &&
8024 { ac_try='test -z "$ac_c_werror_flag"
8025 || test ! -s conftest.err'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027 (eval $ac_try) 2>&5
8028 ac_status=$?
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; } &&
8031 { ac_try='test -s conftest$ac_exeext'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 (eval $ac_try) 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8037 ac_cv_lib_m_ceilf=yes
8038 else
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8042 ac_cv_lib_m_ceilf=no
8044 rm -f conftest.err conftest.$ac_objext \
8045 conftest$ac_exeext conftest.$ac_ext
8046 LIBS=$ac_check_lib_save_LIBS
8048 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
8049 echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
8050 if test $ac_cv_lib_m_ceilf = yes; then
8052 cat >>confdefs.h <<\_ACEOF
8053 #define HAVE_CEILF 1
8054 _ACEOF
8058 echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
8059 echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
8060 if test "${ac_cv_lib_m_copysignf+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063 ac_check_lib_save_LIBS=$LIBS
8064 LIBS="-lm $LIBS"
8065 cat >conftest.$ac_ext <<_ACEOF
8066 /* confdefs.h. */
8067 _ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8072 /* Override any gcc2 internal prototype to avoid an error. */
8073 #ifdef __cplusplus
8074 extern "C"
8075 #endif
8076 /* We use char because int might match the return type of a gcc2
8077 builtin and then its argument prototype would still apply. */
8078 char copysignf ();
8080 main ()
8082 copysignf ();
8084 return 0;
8086 _ACEOF
8087 rm -f conftest.$ac_objext conftest$ac_exeext
8088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8089 (eval $ac_link) 2>conftest.er1
8090 ac_status=$?
8091 grep -v '^ *+' conftest.er1 >conftest.err
8092 rm -f conftest.er1
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } &&
8096 { ac_try='test -z "$ac_c_werror_flag"
8097 || test ! -s conftest.err'
8098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099 (eval $ac_try) 2>&5
8100 ac_status=$?
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; } &&
8103 { ac_try='test -s conftest$ac_exeext'
8104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105 (eval $ac_try) 2>&5
8106 ac_status=$?
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); }; }; then
8109 ac_cv_lib_m_copysignf=yes
8110 else
8111 echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8114 ac_cv_lib_m_copysignf=no
8116 rm -f conftest.err conftest.$ac_objext \
8117 conftest$ac_exeext conftest.$ac_ext
8118 LIBS=$ac_check_lib_save_LIBS
8120 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
8121 echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
8122 if test $ac_cv_lib_m_copysignf = yes; then
8124 cat >>confdefs.h <<\_ACEOF
8125 #define HAVE_COPYSIGNF 1
8126 _ACEOF
8130 echo "$as_me:$LINENO: checking for cosf in -lm" >&5
8131 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
8132 if test "${ac_cv_lib_m_cosf+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135 ac_check_lib_save_LIBS=$LIBS
8136 LIBS="-lm $LIBS"
8137 cat >conftest.$ac_ext <<_ACEOF
8138 /* confdefs.h. */
8139 _ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8144 /* Override any gcc2 internal prototype to avoid an error. */
8145 #ifdef __cplusplus
8146 extern "C"
8147 #endif
8148 /* We use char because int might match the return type of a gcc2
8149 builtin and then its argument prototype would still apply. */
8150 char cosf ();
8152 main ()
8154 cosf ();
8156 return 0;
8158 _ACEOF
8159 rm -f conftest.$ac_objext conftest$ac_exeext
8160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8161 (eval $ac_link) 2>conftest.er1
8162 ac_status=$?
8163 grep -v '^ *+' conftest.er1 >conftest.err
8164 rm -f conftest.er1
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } &&
8168 { ac_try='test -z "$ac_c_werror_flag"
8169 || test ! -s conftest.err'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 (eval $ac_try) 2>&5
8172 ac_status=$?
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; } &&
8175 { ac_try='test -s conftest$ac_exeext'
8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177 (eval $ac_try) 2>&5
8178 ac_status=$?
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 ac_cv_lib_m_cosf=yes
8182 else
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8186 ac_cv_lib_m_cosf=no
8188 rm -f conftest.err conftest.$ac_objext \
8189 conftest$ac_exeext conftest.$ac_ext
8190 LIBS=$ac_check_lib_save_LIBS
8192 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
8193 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
8194 if test $ac_cv_lib_m_cosf = yes; then
8196 cat >>confdefs.h <<\_ACEOF
8197 #define HAVE_COSF 1
8198 _ACEOF
8202 echo "$as_me:$LINENO: checking for coshf in -lm" >&5
8203 echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
8204 if test "${ac_cv_lib_m_coshf+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 else
8207 ac_check_lib_save_LIBS=$LIBS
8208 LIBS="-lm $LIBS"
8209 cat >conftest.$ac_ext <<_ACEOF
8210 /* confdefs.h. */
8211 _ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8216 /* Override any gcc2 internal prototype to avoid an error. */
8217 #ifdef __cplusplus
8218 extern "C"
8219 #endif
8220 /* We use char because int might match the return type of a gcc2
8221 builtin and then its argument prototype would still apply. */
8222 char coshf ();
8224 main ()
8226 coshf ();
8228 return 0;
8230 _ACEOF
8231 rm -f conftest.$ac_objext conftest$ac_exeext
8232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8233 (eval $ac_link) 2>conftest.er1
8234 ac_status=$?
8235 grep -v '^ *+' conftest.er1 >conftest.err
8236 rm -f conftest.er1
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try='test -z "$ac_c_werror_flag"
8241 || test ! -s conftest.err'
8242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 (eval $ac_try) 2>&5
8244 ac_status=$?
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; } &&
8247 { ac_try='test -s conftest$ac_exeext'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249 (eval $ac_try) 2>&5
8250 ac_status=$?
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; }; then
8253 ac_cv_lib_m_coshf=yes
8254 else
8255 echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8258 ac_cv_lib_m_coshf=no
8260 rm -f conftest.err conftest.$ac_objext \
8261 conftest$ac_exeext conftest.$ac_ext
8262 LIBS=$ac_check_lib_save_LIBS
8264 echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
8265 echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
8266 if test $ac_cv_lib_m_coshf = yes; then
8268 cat >>confdefs.h <<\_ACEOF
8269 #define HAVE_COSHF 1
8270 _ACEOF
8274 echo "$as_me:$LINENO: checking for expf in -lm" >&5
8275 echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
8276 if test "${ac_cv_lib_m_expf+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 else
8279 ac_check_lib_save_LIBS=$LIBS
8280 LIBS="-lm $LIBS"
8281 cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h. */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8288 /* Override any gcc2 internal prototype to avoid an error. */
8289 #ifdef __cplusplus
8290 extern "C"
8291 #endif
8292 /* We use char because int might match the return type of a gcc2
8293 builtin and then its argument prototype would still apply. */
8294 char expf ();
8296 main ()
8298 expf ();
8300 return 0;
8302 _ACEOF
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305 (eval $ac_link) 2>conftest.er1
8306 ac_status=$?
8307 grep -v '^ *+' conftest.er1 >conftest.err
8308 rm -f conftest.er1
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -z "$ac_c_werror_flag"
8313 || test ! -s conftest.err'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 (eval $ac_try) 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; } &&
8319 { ac_try='test -s conftest$ac_exeext'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 (eval $ac_try) 2>&5
8322 ac_status=$?
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8325 ac_cv_lib_m_expf=yes
8326 else
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8330 ac_cv_lib_m_expf=no
8332 rm -f conftest.err conftest.$ac_objext \
8333 conftest$ac_exeext conftest.$ac_ext
8334 LIBS=$ac_check_lib_save_LIBS
8336 echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
8337 echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
8338 if test $ac_cv_lib_m_expf = yes; then
8340 cat >>confdefs.h <<\_ACEOF
8341 #define HAVE_EXPF 1
8342 _ACEOF
8346 echo "$as_me:$LINENO: checking for fabsf in -lm" >&5
8347 echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6
8348 if test "${ac_cv_lib_m_fabsf+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 else
8351 ac_check_lib_save_LIBS=$LIBS
8352 LIBS="-lm $LIBS"
8353 cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h. */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8360 /* Override any gcc2 internal prototype to avoid an error. */
8361 #ifdef __cplusplus
8362 extern "C"
8363 #endif
8364 /* We use char because int might match the return type of a gcc2
8365 builtin and then its argument prototype would still apply. */
8366 char fabsf ();
8368 main ()
8370 fabsf ();
8372 return 0;
8374 _ACEOF
8375 rm -f conftest.$ac_objext conftest$ac_exeext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8377 (eval $ac_link) 2>conftest.er1
8378 ac_status=$?
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -z "$ac_c_werror_flag"
8385 || test ! -s conftest.err'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 (eval $ac_try) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; } &&
8391 { ac_try='test -s conftest$ac_exeext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 ac_cv_lib_m_fabsf=yes
8398 else
8399 echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8402 ac_cv_lib_m_fabsf=no
8404 rm -f conftest.err conftest.$ac_objext \
8405 conftest$ac_exeext conftest.$ac_ext
8406 LIBS=$ac_check_lib_save_LIBS
8408 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5
8409 echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6
8410 if test $ac_cv_lib_m_fabsf = yes; then
8412 cat >>confdefs.h <<\_ACEOF
8413 #define HAVE_FABSF 1
8414 _ACEOF
8418 echo "$as_me:$LINENO: checking for floorf in -lm" >&5
8419 echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
8420 if test "${ac_cv_lib_m_floorf+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423 ac_check_lib_save_LIBS=$LIBS
8424 LIBS="-lm $LIBS"
8425 cat >conftest.$ac_ext <<_ACEOF
8426 /* confdefs.h. */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8432 /* Override any gcc2 internal prototype to avoid an error. */
8433 #ifdef __cplusplus
8434 extern "C"
8435 #endif
8436 /* We use char because int might match the return type of a gcc2
8437 builtin and then its argument prototype would still apply. */
8438 char floorf ();
8440 main ()
8442 floorf ();
8444 return 0;
8446 _ACEOF
8447 rm -f conftest.$ac_objext conftest$ac_exeext
8448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8449 (eval $ac_link) 2>conftest.er1
8450 ac_status=$?
8451 grep -v '^ *+' conftest.er1 >conftest.err
8452 rm -f conftest.er1
8453 cat conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } &&
8456 { ac_try='test -z "$ac_c_werror_flag"
8457 || test ! -s conftest.err'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 (eval $ac_try) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; } &&
8463 { ac_try='test -s conftest$ac_exeext'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 (eval $ac_try) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8469 ac_cv_lib_m_floorf=yes
8470 else
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8474 ac_cv_lib_m_floorf=no
8476 rm -f conftest.err conftest.$ac_objext \
8477 conftest$ac_exeext conftest.$ac_ext
8478 LIBS=$ac_check_lib_save_LIBS
8480 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
8481 echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
8482 if test $ac_cv_lib_m_floorf = yes; then
8484 cat >>confdefs.h <<\_ACEOF
8485 #define HAVE_FLOORF 1
8486 _ACEOF
8490 echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
8491 echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
8492 if test "${ac_cv_lib_m_frexpf+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495 ac_check_lib_save_LIBS=$LIBS
8496 LIBS="-lm $LIBS"
8497 cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h. */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8504 /* Override any gcc2 internal prototype to avoid an error. */
8505 #ifdef __cplusplus
8506 extern "C"
8507 #endif
8508 /* We use char because int might match the return type of a gcc2
8509 builtin and then its argument prototype would still apply. */
8510 char frexpf ();
8512 main ()
8514 frexpf ();
8516 return 0;
8518 _ACEOF
8519 rm -f conftest.$ac_objext conftest$ac_exeext
8520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8521 (eval $ac_link) 2>conftest.er1
8522 ac_status=$?
8523 grep -v '^ *+' conftest.er1 >conftest.err
8524 rm -f conftest.er1
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -z "$ac_c_werror_flag"
8529 || test ! -s conftest.err'
8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531 (eval $ac_try) 2>&5
8532 ac_status=$?
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; } &&
8535 { ac_try='test -s conftest$ac_exeext'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 (eval $ac_try) 2>&5
8538 ac_status=$?
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; }; then
8541 ac_cv_lib_m_frexpf=yes
8542 else
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 ac_cv_lib_m_frexpf=no
8548 rm -f conftest.err conftest.$ac_objext \
8549 conftest$ac_exeext conftest.$ac_ext
8550 LIBS=$ac_check_lib_save_LIBS
8552 echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
8553 echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
8554 if test $ac_cv_lib_m_frexpf = yes; then
8556 cat >>confdefs.h <<\_ACEOF
8557 #define HAVE_FREXPF 1
8558 _ACEOF
8562 echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
8563 echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
8564 if test "${ac_cv_lib_m_hypotf+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 else
8567 ac_check_lib_save_LIBS=$LIBS
8568 LIBS="-lm $LIBS"
8569 cat >conftest.$ac_ext <<_ACEOF
8570 /* confdefs.h. */
8571 _ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8576 /* Override any gcc2 internal prototype to avoid an error. */
8577 #ifdef __cplusplus
8578 extern "C"
8579 #endif
8580 /* We use char because int might match the return type of a gcc2
8581 builtin and then its argument prototype would still apply. */
8582 char hypotf ();
8584 main ()
8586 hypotf ();
8588 return 0;
8590 _ACEOF
8591 rm -f conftest.$ac_objext conftest$ac_exeext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8593 (eval $ac_link) 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -z "$ac_c_werror_flag"
8601 || test ! -s conftest.err'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try='test -s conftest$ac_exeext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 ac_cv_lib_m_hypotf=yes
8614 else
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 ac_cv_lib_m_hypotf=no
8620 rm -f conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8622 LIBS=$ac_check_lib_save_LIBS
8624 echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
8625 echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
8626 if test $ac_cv_lib_m_hypotf = yes; then
8628 cat >>confdefs.h <<\_ACEOF
8629 #define HAVE_HYPOTF 1
8630 _ACEOF
8634 echo "$as_me:$LINENO: checking for logf in -lm" >&5
8635 echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
8636 if test "${ac_cv_lib_m_logf+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 else
8639 ac_check_lib_save_LIBS=$LIBS
8640 LIBS="-lm $LIBS"
8641 cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h. */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8648 /* Override any gcc2 internal prototype to avoid an error. */
8649 #ifdef __cplusplus
8650 extern "C"
8651 #endif
8652 /* We use char because int might match the return type of a gcc2
8653 builtin and then its argument prototype would still apply. */
8654 char logf ();
8656 main ()
8658 logf ();
8660 return 0;
8662 _ACEOF
8663 rm -f conftest.$ac_objext conftest$ac_exeext
8664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8665 (eval $ac_link) 2>conftest.er1
8666 ac_status=$?
8667 grep -v '^ *+' conftest.er1 >conftest.err
8668 rm -f conftest.er1
8669 cat conftest.err >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } &&
8672 { ac_try='test -z "$ac_c_werror_flag"
8673 || test ! -s conftest.err'
8674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 (eval $ac_try) 2>&5
8676 ac_status=$?
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; } &&
8679 { ac_try='test -s conftest$ac_exeext'
8680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 (eval $ac_try) 2>&5
8682 ac_status=$?
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }; }; then
8685 ac_cv_lib_m_logf=yes
8686 else
8687 echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8690 ac_cv_lib_m_logf=no
8692 rm -f conftest.err conftest.$ac_objext \
8693 conftest$ac_exeext conftest.$ac_ext
8694 LIBS=$ac_check_lib_save_LIBS
8696 echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
8697 echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
8698 if test $ac_cv_lib_m_logf = yes; then
8700 cat >>confdefs.h <<\_ACEOF
8701 #define HAVE_LOGF 1
8702 _ACEOF
8706 echo "$as_me:$LINENO: checking for log10f in -lm" >&5
8707 echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
8708 if test "${ac_cv_lib_m_log10f+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711 ac_check_lib_save_LIBS=$LIBS
8712 LIBS="-lm $LIBS"
8713 cat >conftest.$ac_ext <<_ACEOF
8714 /* confdefs.h. */
8715 _ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8720 /* Override any gcc2 internal prototype to avoid an error. */
8721 #ifdef __cplusplus
8722 extern "C"
8723 #endif
8724 /* We use char because int might match the return type of a gcc2
8725 builtin and then its argument prototype would still apply. */
8726 char log10f ();
8728 main ()
8730 log10f ();
8732 return 0;
8734 _ACEOF
8735 rm -f conftest.$ac_objext conftest$ac_exeext
8736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8737 (eval $ac_link) 2>conftest.er1
8738 ac_status=$?
8739 grep -v '^ *+' conftest.er1 >conftest.err
8740 rm -f conftest.er1
8741 cat conftest.err >&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); } &&
8744 { ac_try='test -z "$ac_c_werror_flag"
8745 || test ! -s conftest.err'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 (eval $ac_try) 2>&5
8748 ac_status=$?
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; } &&
8751 { ac_try='test -s conftest$ac_exeext'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 (eval $ac_try) 2>&5
8754 ac_status=$?
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; }; then
8757 ac_cv_lib_m_log10f=yes
8758 else
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8762 ac_cv_lib_m_log10f=no
8764 rm -f conftest.err conftest.$ac_objext \
8765 conftest$ac_exeext conftest.$ac_ext
8766 LIBS=$ac_check_lib_save_LIBS
8768 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
8769 echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
8770 if test $ac_cv_lib_m_log10f = yes; then
8772 cat >>confdefs.h <<\_ACEOF
8773 #define HAVE_LOG10F 1
8774 _ACEOF
8778 echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
8779 echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
8780 if test "${ac_cv_lib_m_nextafter+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783 ac_check_lib_save_LIBS=$LIBS
8784 LIBS="-lm $LIBS"
8785 cat >conftest.$ac_ext <<_ACEOF
8786 /* confdefs.h. */
8787 _ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8792 /* Override any gcc2 internal prototype to avoid an error. */
8793 #ifdef __cplusplus
8794 extern "C"
8795 #endif
8796 /* We use char because int might match the return type of a gcc2
8797 builtin and then its argument prototype would still apply. */
8798 char nextafter ();
8800 main ()
8802 nextafter ();
8804 return 0;
8806 _ACEOF
8807 rm -f conftest.$ac_objext conftest$ac_exeext
8808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8809 (eval $ac_link) 2>conftest.er1
8810 ac_status=$?
8811 grep -v '^ *+' conftest.er1 >conftest.err
8812 rm -f conftest.er1
8813 cat conftest.err >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } &&
8816 { ac_try='test -z "$ac_c_werror_flag"
8817 || test ! -s conftest.err'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 (eval $ac_try) 2>&5
8820 ac_status=$?
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; } &&
8823 { ac_try='test -s conftest$ac_exeext'
8824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8825 (eval $ac_try) 2>&5
8826 ac_status=$?
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; }; then
8829 ac_cv_lib_m_nextafter=yes
8830 else
8831 echo "$as_me: failed program was:" >&5
8832 sed 's/^/| /' conftest.$ac_ext >&5
8834 ac_cv_lib_m_nextafter=no
8836 rm -f conftest.err conftest.$ac_objext \
8837 conftest$ac_exeext conftest.$ac_ext
8838 LIBS=$ac_check_lib_save_LIBS
8840 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
8841 echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
8842 if test $ac_cv_lib_m_nextafter = yes; then
8844 cat >>confdefs.h <<\_ACEOF
8845 #define HAVE_NEXTAFTER 1
8846 _ACEOF
8850 echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
8851 echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
8852 if test "${ac_cv_lib_m_nextafterf+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855 ac_check_lib_save_LIBS=$LIBS
8856 LIBS="-lm $LIBS"
8857 cat >conftest.$ac_ext <<_ACEOF
8858 /* confdefs.h. */
8859 _ACEOF
8860 cat confdefs.h >>conftest.$ac_ext
8861 cat >>conftest.$ac_ext <<_ACEOF
8862 /* end confdefs.h. */
8864 /* Override any gcc2 internal prototype to avoid an error. */
8865 #ifdef __cplusplus
8866 extern "C"
8867 #endif
8868 /* We use char because int might match the return type of a gcc2
8869 builtin and then its argument prototype would still apply. */
8870 char nextafterf ();
8872 main ()
8874 nextafterf ();
8876 return 0;
8878 _ACEOF
8879 rm -f conftest.$ac_objext conftest$ac_exeext
8880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8881 (eval $ac_link) 2>conftest.er1
8882 ac_status=$?
8883 grep -v '^ *+' conftest.er1 >conftest.err
8884 rm -f conftest.er1
8885 cat conftest.err >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } &&
8888 { ac_try='test -z "$ac_c_werror_flag"
8889 || test ! -s conftest.err'
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 (eval $ac_try) 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; } &&
8895 { ac_try='test -s conftest$ac_exeext'
8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897 (eval $ac_try) 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; }; then
8901 ac_cv_lib_m_nextafterf=yes
8902 else
8903 echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8906 ac_cv_lib_m_nextafterf=no
8908 rm -f conftest.err conftest.$ac_objext \
8909 conftest$ac_exeext conftest.$ac_ext
8910 LIBS=$ac_check_lib_save_LIBS
8912 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
8913 echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
8914 if test $ac_cv_lib_m_nextafterf = yes; then
8916 cat >>confdefs.h <<\_ACEOF
8917 #define HAVE_NEXTAFTERF 1
8918 _ACEOF
8922 echo "$as_me:$LINENO: checking for powf in -lm" >&5
8923 echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
8924 if test "${ac_cv_lib_m_powf+set}" = set; then
8925 echo $ECHO_N "(cached) $ECHO_C" >&6
8926 else
8927 ac_check_lib_save_LIBS=$LIBS
8928 LIBS="-lm $LIBS"
8929 cat >conftest.$ac_ext <<_ACEOF
8930 /* confdefs.h. */
8931 _ACEOF
8932 cat confdefs.h >>conftest.$ac_ext
8933 cat >>conftest.$ac_ext <<_ACEOF
8934 /* end confdefs.h. */
8936 /* Override any gcc2 internal prototype to avoid an error. */
8937 #ifdef __cplusplus
8938 extern "C"
8939 #endif
8940 /* We use char because int might match the return type of a gcc2
8941 builtin and then its argument prototype would still apply. */
8942 char powf ();
8944 main ()
8946 powf ();
8948 return 0;
8950 _ACEOF
8951 rm -f conftest.$ac_objext conftest$ac_exeext
8952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8953 (eval $ac_link) 2>conftest.er1
8954 ac_status=$?
8955 grep -v '^ *+' conftest.er1 >conftest.err
8956 rm -f conftest.er1
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } &&
8960 { ac_try='test -z "$ac_c_werror_flag"
8961 || test ! -s conftest.err'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963 (eval $ac_try) 2>&5
8964 ac_status=$?
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; } &&
8967 { ac_try='test -s conftest$ac_exeext'
8968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969 (eval $ac_try) 2>&5
8970 ac_status=$?
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; }; then
8973 ac_cv_lib_m_powf=yes
8974 else
8975 echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8978 ac_cv_lib_m_powf=no
8980 rm -f conftest.err conftest.$ac_objext \
8981 conftest$ac_exeext conftest.$ac_ext
8982 LIBS=$ac_check_lib_save_LIBS
8984 echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
8985 echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
8986 if test $ac_cv_lib_m_powf = yes; then
8988 cat >>confdefs.h <<\_ACEOF
8989 #define HAVE_POWF 1
8990 _ACEOF
8994 echo "$as_me:$LINENO: checking for round in -lm" >&5
8995 echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
8996 if test "${ac_cv_lib_m_round+set}" = set; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 else
8999 ac_check_lib_save_LIBS=$LIBS
9000 LIBS="-lm $LIBS"
9001 cat >conftest.$ac_ext <<_ACEOF
9002 /* confdefs.h. */
9003 _ACEOF
9004 cat confdefs.h >>conftest.$ac_ext
9005 cat >>conftest.$ac_ext <<_ACEOF
9006 /* end confdefs.h. */
9008 /* Override any gcc2 internal prototype to avoid an error. */
9009 #ifdef __cplusplus
9010 extern "C"
9011 #endif
9012 /* We use char because int might match the return type of a gcc2
9013 builtin and then its argument prototype would still apply. */
9014 char round ();
9016 main ()
9018 round ();
9020 return 0;
9022 _ACEOF
9023 rm -f conftest.$ac_objext conftest$ac_exeext
9024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9025 (eval $ac_link) 2>conftest.er1
9026 ac_status=$?
9027 grep -v '^ *+' conftest.er1 >conftest.err
9028 rm -f conftest.er1
9029 cat conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } &&
9032 { ac_try='test -z "$ac_c_werror_flag"
9033 || test ! -s conftest.err'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035 (eval $ac_try) 2>&5
9036 ac_status=$?
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; } &&
9039 { ac_try='test -s conftest$ac_exeext'
9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041 (eval $ac_try) 2>&5
9042 ac_status=$?
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; }; then
9045 ac_cv_lib_m_round=yes
9046 else
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9050 ac_cv_lib_m_round=no
9052 rm -f conftest.err conftest.$ac_objext \
9053 conftest$ac_exeext conftest.$ac_ext
9054 LIBS=$ac_check_lib_save_LIBS
9056 echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
9057 echo "${ECHO_T}$ac_cv_lib_m_round" >&6
9058 if test $ac_cv_lib_m_round = yes; then
9060 cat >>confdefs.h <<\_ACEOF
9061 #define HAVE_ROUND 1
9062 _ACEOF
9066 echo "$as_me:$LINENO: checking for roundf in -lm" >&5
9067 echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
9068 if test "${ac_cv_lib_m_roundf+set}" = set; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9070 else
9071 ac_check_lib_save_LIBS=$LIBS
9072 LIBS="-lm $LIBS"
9073 cat >conftest.$ac_ext <<_ACEOF
9074 /* confdefs.h. */
9075 _ACEOF
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h. */
9080 /* Override any gcc2 internal prototype to avoid an error. */
9081 #ifdef __cplusplus
9082 extern "C"
9083 #endif
9084 /* We use char because int might match the return type of a gcc2
9085 builtin and then its argument prototype would still apply. */
9086 char roundf ();
9088 main ()
9090 roundf ();
9092 return 0;
9094 _ACEOF
9095 rm -f conftest.$ac_objext conftest$ac_exeext
9096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9097 (eval $ac_link) 2>conftest.er1
9098 ac_status=$?
9099 grep -v '^ *+' conftest.er1 >conftest.err
9100 rm -f conftest.er1
9101 cat conftest.err >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); } &&
9104 { ac_try='test -z "$ac_c_werror_flag"
9105 || test ! -s conftest.err'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 (eval $ac_try) 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; } &&
9111 { ac_try='test -s conftest$ac_exeext'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 (eval $ac_try) 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_cv_lib_m_roundf=yes
9118 else
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9122 ac_cv_lib_m_roundf=no
9124 rm -f conftest.err conftest.$ac_objext \
9125 conftest$ac_exeext conftest.$ac_ext
9126 LIBS=$ac_check_lib_save_LIBS
9128 echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
9129 echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
9130 if test $ac_cv_lib_m_roundf = yes; then
9132 cat >>confdefs.h <<\_ACEOF
9133 #define HAVE_ROUNDF 1
9134 _ACEOF
9138 echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
9139 echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
9140 if test "${ac_cv_lib_m_scalbnf+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9142 else
9143 ac_check_lib_save_LIBS=$LIBS
9144 LIBS="-lm $LIBS"
9145 cat >conftest.$ac_ext <<_ACEOF
9146 /* confdefs.h. */
9147 _ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9152 /* Override any gcc2 internal prototype to avoid an error. */
9153 #ifdef __cplusplus
9154 extern "C"
9155 #endif
9156 /* We use char because int might match the return type of a gcc2
9157 builtin and then its argument prototype would still apply. */
9158 char scalbnf ();
9160 main ()
9162 scalbnf ();
9164 return 0;
9166 _ACEOF
9167 rm -f conftest.$ac_objext conftest$ac_exeext
9168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9169 (eval $ac_link) 2>conftest.er1
9170 ac_status=$?
9171 grep -v '^ *+' conftest.er1 >conftest.err
9172 rm -f conftest.er1
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } &&
9176 { ac_try='test -z "$ac_c_werror_flag"
9177 || test ! -s conftest.err'
9178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179 (eval $ac_try) 2>&5
9180 ac_status=$?
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; } &&
9183 { ac_try='test -s conftest$ac_exeext'
9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185 (eval $ac_try) 2>&5
9186 ac_status=$?
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; }; then
9189 ac_cv_lib_m_scalbnf=yes
9190 else
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9194 ac_cv_lib_m_scalbnf=no
9196 rm -f conftest.err conftest.$ac_objext \
9197 conftest$ac_exeext conftest.$ac_ext
9198 LIBS=$ac_check_lib_save_LIBS
9200 echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
9201 echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
9202 if test $ac_cv_lib_m_scalbnf = yes; then
9204 cat >>confdefs.h <<\_ACEOF
9205 #define HAVE_SCALBNF 1
9206 _ACEOF
9210 echo "$as_me:$LINENO: checking for sinf in -lm" >&5
9211 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
9212 if test "${ac_cv_lib_m_sinf+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215 ac_check_lib_save_LIBS=$LIBS
9216 LIBS="-lm $LIBS"
9217 cat >conftest.$ac_ext <<_ACEOF
9218 /* confdefs.h. */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9224 /* Override any gcc2 internal prototype to avoid an error. */
9225 #ifdef __cplusplus
9226 extern "C"
9227 #endif
9228 /* We use char because int might match the return type of a gcc2
9229 builtin and then its argument prototype would still apply. */
9230 char sinf ();
9232 main ()
9234 sinf ();
9236 return 0;
9238 _ACEOF
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241 (eval $ac_link) 2>conftest.er1
9242 ac_status=$?
9243 grep -v '^ *+' conftest.er1 >conftest.err
9244 rm -f conftest.er1
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -z "$ac_c_werror_flag"
9249 || test ! -s conftest.err'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 (eval $ac_try) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 (eval $ac_try) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_lib_m_sinf=yes
9262 else
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 ac_cv_lib_m_sinf=no
9268 rm -f conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270 LIBS=$ac_check_lib_save_LIBS
9272 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
9273 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
9274 if test $ac_cv_lib_m_sinf = yes; then
9276 cat >>confdefs.h <<\_ACEOF
9277 #define HAVE_SINF 1
9278 _ACEOF
9282 echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
9283 echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
9284 if test "${ac_cv_lib_m_sinhf+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9287 ac_check_lib_save_LIBS=$LIBS
9288 LIBS="-lm $LIBS"
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 sinhf ();
9304 main ()
9306 sinhf ();
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_sinhf=yes
9334 else
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 ac_cv_lib_m_sinhf=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_sinhf" >&5
9345 echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
9346 if test $ac_cv_lib_m_sinhf = yes; then
9348 cat >>confdefs.h <<\_ACEOF
9349 #define HAVE_SINHF 1
9350 _ACEOF
9354 echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
9355 echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
9356 if test "${ac_cv_lib_m_sqrtf+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 cat >conftest.$ac_ext <<_ACEOF
9362 /* confdefs.h. */
9363 _ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9368 /* Override any gcc2 internal prototype to avoid an error. */
9369 #ifdef __cplusplus
9370 extern "C"
9371 #endif
9372 /* We use char because int might match the return type of a gcc2
9373 builtin and then its argument prototype would still apply. */
9374 char sqrtf ();
9376 main ()
9378 sqrtf ();
9380 return 0;
9382 _ACEOF
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } &&
9392 { ac_try='test -z "$ac_c_werror_flag"
9393 || test ! -s conftest.err'
9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395 (eval $ac_try) 2>&5
9396 ac_status=$?
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; } &&
9399 { ac_try='test -s conftest$ac_exeext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 ac_cv_lib_m_sqrtf=yes
9406 else
9407 echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9410 ac_cv_lib_m_sqrtf=no
9412 rm -f conftest.err conftest.$ac_objext \
9413 conftest$ac_exeext conftest.$ac_ext
9414 LIBS=$ac_check_lib_save_LIBS
9416 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
9417 echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
9418 if test $ac_cv_lib_m_sqrtf = yes; then
9420 cat >>confdefs.h <<\_ACEOF
9421 #define HAVE_SQRTF 1
9422 _ACEOF
9426 echo "$as_me:$LINENO: checking for tanf in -lm" >&5
9427 echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
9428 if test "${ac_cv_lib_m_tanf+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9431 ac_check_lib_save_LIBS=$LIBS
9432 LIBS="-lm $LIBS"
9433 cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h. */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9440 /* Override any gcc2 internal prototype to avoid an error. */
9441 #ifdef __cplusplus
9442 extern "C"
9443 #endif
9444 /* We use char because int might match the return type of a gcc2
9445 builtin and then its argument prototype would still apply. */
9446 char tanf ();
9448 main ()
9450 tanf ();
9452 return 0;
9454 _ACEOF
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9457 (eval $ac_link) 2>conftest.er1
9458 ac_status=$?
9459 grep -v '^ *+' conftest.er1 >conftest.err
9460 rm -f conftest.er1
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try='test -z "$ac_c_werror_flag"
9465 || test ! -s conftest.err'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; } &&
9471 { ac_try='test -s conftest$ac_exeext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 (eval $ac_try) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 ac_cv_lib_m_tanf=yes
9478 else
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9482 ac_cv_lib_m_tanf=no
9484 rm -f conftest.err conftest.$ac_objext \
9485 conftest$ac_exeext conftest.$ac_ext
9486 LIBS=$ac_check_lib_save_LIBS
9488 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
9489 echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
9490 if test $ac_cv_lib_m_tanf = yes; then
9492 cat >>confdefs.h <<\_ACEOF
9493 #define HAVE_TANF 1
9494 _ACEOF
9498 echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
9499 echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
9500 if test "${ac_cv_lib_m_tanhf+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503 ac_check_lib_save_LIBS=$LIBS
9504 LIBS="-lm $LIBS"
9505 cat >conftest.$ac_ext <<_ACEOF
9506 /* confdefs.h. */
9507 _ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9512 /* Override any gcc2 internal prototype to avoid an error. */
9513 #ifdef __cplusplus
9514 extern "C"
9515 #endif
9516 /* We use char because int might match the return type of a gcc2
9517 builtin and then its argument prototype would still apply. */
9518 char tanhf ();
9520 main ()
9522 tanhf ();
9524 return 0;
9526 _ACEOF
9527 rm -f conftest.$ac_objext conftest$ac_exeext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>conftest.er1
9530 ac_status=$?
9531 grep -v '^ *+' conftest.er1 >conftest.err
9532 rm -f conftest.er1
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -z "$ac_c_werror_flag"
9537 || test ! -s conftest.err'
9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 (eval $ac_try) 2>&5
9540 ac_status=$?
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); }; } &&
9543 { ac_try='test -s conftest$ac_exeext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 (eval $ac_try) 2>&5
9546 ac_status=$?
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 ac_cv_lib_m_tanhf=yes
9550 else
9551 echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9554 ac_cv_lib_m_tanhf=no
9556 rm -f conftest.err conftest.$ac_objext \
9557 conftest$ac_exeext conftest.$ac_ext
9558 LIBS=$ac_check_lib_save_LIBS
9560 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
9561 echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
9562 if test $ac_cv_lib_m_tanhf = yes; then
9564 cat >>confdefs.h <<\_ACEOF
9565 #define HAVE_TANHF 1
9566 _ACEOF
9570 echo "$as_me:$LINENO: checking for erf in -lm" >&5
9571 echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
9572 if test "${ac_cv_lib_m_erf+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575 ac_check_lib_save_LIBS=$LIBS
9576 LIBS="-lm $LIBS"
9577 cat >conftest.$ac_ext <<_ACEOF
9578 /* confdefs.h. */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9584 /* Override any gcc2 internal prototype to avoid an error. */
9585 #ifdef __cplusplus
9586 extern "C"
9587 #endif
9588 /* We use char because int might match the return type of a gcc2
9589 builtin and then its argument prototype would still apply. */
9590 char erf ();
9592 main ()
9594 erf ();
9596 return 0;
9598 _ACEOF
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9601 (eval $ac_link) 2>conftest.er1
9602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } &&
9608 { ac_try='test -z "$ac_c_werror_flag"
9609 || test ! -s conftest.err'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; } &&
9615 { ac_try='test -s conftest$ac_exeext'
9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 (eval $ac_try) 2>&5
9618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
9621 ac_cv_lib_m_erf=yes
9622 else
9623 echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9626 ac_cv_lib_m_erf=no
9628 rm -f conftest.err conftest.$ac_objext \
9629 conftest$ac_exeext conftest.$ac_ext
9630 LIBS=$ac_check_lib_save_LIBS
9632 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
9633 echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
9634 if test $ac_cv_lib_m_erf = yes; then
9636 cat >>confdefs.h <<\_ACEOF
9637 #define HAVE_ERF 1
9638 _ACEOF
9642 echo "$as_me:$LINENO: checking for erfc in -lm" >&5
9643 echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
9644 if test "${ac_cv_lib_m_erfc+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 else
9647 ac_check_lib_save_LIBS=$LIBS
9648 LIBS="-lm $LIBS"
9649 cat >conftest.$ac_ext <<_ACEOF
9650 /* confdefs.h. */
9651 _ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9656 /* Override any gcc2 internal prototype to avoid an error. */
9657 #ifdef __cplusplus
9658 extern "C"
9659 #endif
9660 /* We use char because int might match the return type of a gcc2
9661 builtin and then its argument prototype would still apply. */
9662 char erfc ();
9664 main ()
9666 erfc ();
9668 return 0;
9670 _ACEOF
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673 (eval $ac_link) 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -z "$ac_c_werror_flag"
9681 || test ! -s conftest.err'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try='test -s conftest$ac_exeext'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 (eval $ac_try) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; }; then
9693 ac_cv_lib_m_erfc=yes
9694 else
9695 echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9698 ac_cv_lib_m_erfc=no
9700 rm -f conftest.err conftest.$ac_objext \
9701 conftest$ac_exeext conftest.$ac_ext
9702 LIBS=$ac_check_lib_save_LIBS
9704 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
9705 echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
9706 if test $ac_cv_lib_m_erfc = yes; then
9708 cat >>confdefs.h <<\_ACEOF
9709 #define HAVE_ERFC 1
9710 _ACEOF
9714 echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
9715 echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
9716 if test "${ac_cv_lib_m_erfcf+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 else
9719 ac_check_lib_save_LIBS=$LIBS
9720 LIBS="-lm $LIBS"
9721 cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h. */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9728 /* Override any gcc2 internal prototype to avoid an error. */
9729 #ifdef __cplusplus
9730 extern "C"
9731 #endif
9732 /* We use char because int might match the return type of a gcc2
9733 builtin and then its argument prototype would still apply. */
9734 char erfcf ();
9736 main ()
9738 erfcf ();
9740 return 0;
9742 _ACEOF
9743 rm -f conftest.$ac_objext conftest$ac_exeext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745 (eval $ac_link) 2>conftest.er1
9746 ac_status=$?
9747 grep -v '^ *+' conftest.er1 >conftest.err
9748 rm -f conftest.er1
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -z "$ac_c_werror_flag"
9753 || test ! -s conftest.err'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 (eval $ac_try) 2>&5
9756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest$ac_exeext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 (eval $ac_try) 2>&5
9762 ac_status=$?
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_cv_lib_m_erfcf=yes
9766 else
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_cv_lib_m_erfcf=no
9772 rm -f conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
9774 LIBS=$ac_check_lib_save_LIBS
9776 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
9777 echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
9778 if test $ac_cv_lib_m_erfcf = yes; then
9780 cat >>confdefs.h <<\_ACEOF
9781 #define HAVE_ERFCF 1
9782 _ACEOF
9786 echo "$as_me:$LINENO: checking for erff in -lm" >&5
9787 echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
9788 if test "${ac_cv_lib_m_erff+set}" = set; then
9789 echo $ECHO_N "(cached) $ECHO_C" >&6
9790 else
9791 ac_check_lib_save_LIBS=$LIBS
9792 LIBS="-lm $LIBS"
9793 cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h. */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9800 /* Override any gcc2 internal prototype to avoid an error. */
9801 #ifdef __cplusplus
9802 extern "C"
9803 #endif
9804 /* We use char because int might match the return type of a gcc2
9805 builtin and then its argument prototype would still apply. */
9806 char erff ();
9808 main ()
9810 erff ();
9812 return 0;
9814 _ACEOF
9815 rm -f conftest.$ac_objext conftest$ac_exeext
9816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9817 (eval $ac_link) 2>conftest.er1
9818 ac_status=$?
9819 grep -v '^ *+' conftest.er1 >conftest.err
9820 rm -f conftest.er1
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } &&
9824 { ac_try='test -z "$ac_c_werror_flag"
9825 || test ! -s conftest.err'
9826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827 (eval $ac_try) 2>&5
9828 ac_status=$?
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); }; } &&
9831 { ac_try='test -s conftest$ac_exeext'
9832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833 (eval $ac_try) 2>&5
9834 ac_status=$?
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; }; then
9837 ac_cv_lib_m_erff=yes
9838 else
9839 echo "$as_me: failed program was:" >&5
9840 sed 's/^/| /' conftest.$ac_ext >&5
9842 ac_cv_lib_m_erff=no
9844 rm -f conftest.err conftest.$ac_objext \
9845 conftest$ac_exeext conftest.$ac_ext
9846 LIBS=$ac_check_lib_save_LIBS
9848 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5
9849 echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
9850 if test $ac_cv_lib_m_erff = yes; then
9852 cat >>confdefs.h <<\_ACEOF
9853 #define HAVE_ERFF 1
9854 _ACEOF
9858 echo "$as_me:$LINENO: checking for j0 in -lm" >&5
9859 echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
9860 if test "${ac_cv_lib_m_j0+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863 ac_check_lib_save_LIBS=$LIBS
9864 LIBS="-lm $LIBS"
9865 cat >conftest.$ac_ext <<_ACEOF
9866 /* confdefs.h. */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9872 /* Override any gcc2 internal prototype to avoid an error. */
9873 #ifdef __cplusplus
9874 extern "C"
9875 #endif
9876 /* We use char because int might match the return type of a gcc2
9877 builtin and then its argument prototype would still apply. */
9878 char j0 ();
9880 main ()
9882 j0 ();
9884 return 0;
9886 _ACEOF
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9889 (eval $ac_link) 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -z "$ac_c_werror_flag"
9897 || test ! -s conftest.err'
9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 (eval $ac_try) 2>&5
9900 ac_status=$?
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; } &&
9903 { ac_try='test -s conftest$ac_exeext'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 (eval $ac_try) 2>&5
9906 ac_status=$?
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 ac_cv_lib_m_j0=yes
9910 else
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9914 ac_cv_lib_m_j0=no
9916 rm -f conftest.err conftest.$ac_objext \
9917 conftest$ac_exeext conftest.$ac_ext
9918 LIBS=$ac_check_lib_save_LIBS
9920 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5
9921 echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
9922 if test $ac_cv_lib_m_j0 = yes; then
9924 cat >>confdefs.h <<\_ACEOF
9925 #define HAVE_J0 1
9926 _ACEOF
9930 echo "$as_me:$LINENO: checking for j0f in -lm" >&5
9931 echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
9932 if test "${ac_cv_lib_m_j0f+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9934 else
9935 ac_check_lib_save_LIBS=$LIBS
9936 LIBS="-lm $LIBS"
9937 cat >conftest.$ac_ext <<_ACEOF
9938 /* confdefs.h. */
9939 _ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h. */
9944 /* Override any gcc2 internal prototype to avoid an error. */
9945 #ifdef __cplusplus
9946 extern "C"
9947 #endif
9948 /* We use char because int might match the return type of a gcc2
9949 builtin and then its argument prototype would still apply. */
9950 char j0f ();
9952 main ()
9954 j0f ();
9956 return 0;
9958 _ACEOF
9959 rm -f conftest.$ac_objext conftest$ac_exeext
9960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9961 (eval $ac_link) 2>conftest.er1
9962 ac_status=$?
9963 grep -v '^ *+' conftest.er1 >conftest.err
9964 rm -f conftest.er1
9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } &&
9968 { ac_try='test -z "$ac_c_werror_flag"
9969 || test ! -s conftest.err'
9970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 (eval $ac_try) 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest$ac_exeext'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 (eval $ac_try) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_cv_lib_m_j0f=yes
9982 else
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9986 ac_cv_lib_m_j0f=no
9988 rm -f conftest.err conftest.$ac_objext \
9989 conftest$ac_exeext conftest.$ac_ext
9990 LIBS=$ac_check_lib_save_LIBS
9992 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
9993 echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
9994 if test $ac_cv_lib_m_j0f = yes; then
9996 cat >>confdefs.h <<\_ACEOF
9997 #define HAVE_J0F 1
9998 _ACEOF
10002 echo "$as_me:$LINENO: checking for j1 in -lm" >&5
10003 echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
10004 if test "${ac_cv_lib_m_j1+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10006 else
10007 ac_check_lib_save_LIBS=$LIBS
10008 LIBS="-lm $LIBS"
10009 cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h. */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10016 /* Override any gcc2 internal prototype to avoid an error. */
10017 #ifdef __cplusplus
10018 extern "C"
10019 #endif
10020 /* We use char because int might match the return type of a gcc2
10021 builtin and then its argument prototype would still apply. */
10022 char j1 ();
10024 main ()
10026 j1 ();
10028 return 0;
10030 _ACEOF
10031 rm -f conftest.$ac_objext conftest$ac_exeext
10032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10033 (eval $ac_link) 2>conftest.er1
10034 ac_status=$?
10035 grep -v '^ *+' conftest.er1 >conftest.err
10036 rm -f conftest.er1
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try='test -z "$ac_c_werror_flag"
10041 || test ! -s conftest.err'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; } &&
10047 { ac_try='test -s conftest$ac_exeext'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10050 ac_status=$?
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
10053 ac_cv_lib_m_j1=yes
10054 else
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 ac_cv_lib_m_j1=no
10060 rm -f conftest.err conftest.$ac_objext \
10061 conftest$ac_exeext conftest.$ac_ext
10062 LIBS=$ac_check_lib_save_LIBS
10064 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
10065 echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
10066 if test $ac_cv_lib_m_j1 = yes; then
10068 cat >>confdefs.h <<\_ACEOF
10069 #define HAVE_J1 1
10070 _ACEOF
10074 echo "$as_me:$LINENO: checking for j1f in -lm" >&5
10075 echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
10076 if test "${ac_cv_lib_m_j1f+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079 ac_check_lib_save_LIBS=$LIBS
10080 LIBS="-lm $LIBS"
10081 cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h. */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10088 /* Override any gcc2 internal prototype to avoid an error. */
10089 #ifdef __cplusplus
10090 extern "C"
10091 #endif
10092 /* We use char because int might match the return type of a gcc2
10093 builtin and then its argument prototype would still apply. */
10094 char j1f ();
10096 main ()
10098 j1f ();
10100 return 0;
10102 _ACEOF
10103 rm -f conftest.$ac_objext conftest$ac_exeext
10104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10105 (eval $ac_link) 2>conftest.er1
10106 ac_status=$?
10107 grep -v '^ *+' conftest.er1 >conftest.err
10108 rm -f conftest.er1
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } &&
10112 { ac_try='test -z "$ac_c_werror_flag"
10113 || test ! -s conftest.err'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; } &&
10119 { ac_try='test -s conftest$ac_exeext'
10120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121 (eval $ac_try) 2>&5
10122 ac_status=$?
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); }; }; then
10125 ac_cv_lib_m_j1f=yes
10126 else
10127 echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10130 ac_cv_lib_m_j1f=no
10132 rm -f conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
10134 LIBS=$ac_check_lib_save_LIBS
10136 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
10137 echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
10138 if test $ac_cv_lib_m_j1f = yes; then
10140 cat >>confdefs.h <<\_ACEOF
10141 #define HAVE_J1F 1
10142 _ACEOF
10146 echo "$as_me:$LINENO: checking for jn in -lm" >&5
10147 echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
10148 if test "${ac_cv_lib_m_jn+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151 ac_check_lib_save_LIBS=$LIBS
10152 LIBS="-lm $LIBS"
10153 cat >conftest.$ac_ext <<_ACEOF
10154 /* confdefs.h. */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10160 /* Override any gcc2 internal prototype to avoid an error. */
10161 #ifdef __cplusplus
10162 extern "C"
10163 #endif
10164 /* We use char because int might match the return type of a gcc2
10165 builtin and then its argument prototype would still apply. */
10166 char jn ();
10168 main ()
10170 jn ();
10172 return 0;
10174 _ACEOF
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177 (eval $ac_link) 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -z "$ac_c_werror_flag"
10185 || test ! -s conftest.err'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; } &&
10191 { ac_try='test -s conftest$ac_exeext'
10192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10194 ac_status=$?
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 ac_cv_lib_m_jn=yes
10198 else
10199 echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10202 ac_cv_lib_m_jn=no
10204 rm -f conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
10206 LIBS=$ac_check_lib_save_LIBS
10208 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
10209 echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
10210 if test $ac_cv_lib_m_jn = yes; then
10212 cat >>confdefs.h <<\_ACEOF
10213 #define HAVE_JN 1
10214 _ACEOF
10218 echo "$as_me:$LINENO: checking for jnf in -lm" >&5
10219 echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
10220 if test "${ac_cv_lib_m_jnf+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223 ac_check_lib_save_LIBS=$LIBS
10224 LIBS="-lm $LIBS"
10225 cat >conftest.$ac_ext <<_ACEOF
10226 /* confdefs.h. */
10227 _ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h. */
10232 /* Override any gcc2 internal prototype to avoid an error. */
10233 #ifdef __cplusplus
10234 extern "C"
10235 #endif
10236 /* We use char because int might match the return type of a gcc2
10237 builtin and then its argument prototype would still apply. */
10238 char jnf ();
10240 main ()
10242 jnf ();
10244 return 0;
10246 _ACEOF
10247 rm -f conftest.$ac_objext conftest$ac_exeext
10248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10249 (eval $ac_link) 2>conftest.er1
10250 ac_status=$?
10251 grep -v '^ *+' conftest.er1 >conftest.err
10252 rm -f conftest.er1
10253 cat conftest.err >&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } &&
10256 { ac_try='test -z "$ac_c_werror_flag"
10257 || test ! -s conftest.err'
10258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259 (eval $ac_try) 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; } &&
10263 { ac_try='test -s conftest$ac_exeext'
10264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265 (eval $ac_try) 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 ac_cv_lib_m_jnf=yes
10270 else
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10274 ac_cv_lib_m_jnf=no
10276 rm -f conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext conftest.$ac_ext
10278 LIBS=$ac_check_lib_save_LIBS
10280 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
10281 echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
10282 if test $ac_cv_lib_m_jnf = yes; then
10284 cat >>confdefs.h <<\_ACEOF
10285 #define HAVE_JNF 1
10286 _ACEOF
10290 echo "$as_me:$LINENO: checking for y0 in -lm" >&5
10291 echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
10292 if test "${ac_cv_lib_m_y0+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10295 ac_check_lib_save_LIBS=$LIBS
10296 LIBS="-lm $LIBS"
10297 cat >conftest.$ac_ext <<_ACEOF
10298 /* confdefs.h. */
10299 _ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10304 /* Override any gcc2 internal prototype to avoid an error. */
10305 #ifdef __cplusplus
10306 extern "C"
10307 #endif
10308 /* We use char because int might match the return type of a gcc2
10309 builtin and then its argument prototype would still apply. */
10310 char y0 ();
10312 main ()
10314 y0 ();
10316 return 0;
10318 _ACEOF
10319 rm -f conftest.$ac_objext conftest$ac_exeext
10320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10321 (eval $ac_link) 2>conftest.er1
10322 ac_status=$?
10323 grep -v '^ *+' conftest.er1 >conftest.err
10324 rm -f conftest.er1
10325 cat conftest.err >&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } &&
10328 { ac_try='test -z "$ac_c_werror_flag"
10329 || test ! -s conftest.err'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; } &&
10335 { ac_try='test -s conftest$ac_exeext'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10338 ac_status=$?
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; }; then
10341 ac_cv_lib_m_y0=yes
10342 else
10343 echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10346 ac_cv_lib_m_y0=no
10348 rm -f conftest.err conftest.$ac_objext \
10349 conftest$ac_exeext conftest.$ac_ext
10350 LIBS=$ac_check_lib_save_LIBS
10352 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
10353 echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
10354 if test $ac_cv_lib_m_y0 = yes; then
10356 cat >>confdefs.h <<\_ACEOF
10357 #define HAVE_Y0 1
10358 _ACEOF
10362 echo "$as_me:$LINENO: checking for y0f in -lm" >&5
10363 echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
10364 if test "${ac_cv_lib_m_y0f+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367 ac_check_lib_save_LIBS=$LIBS
10368 LIBS="-lm $LIBS"
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h. */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10376 /* Override any gcc2 internal prototype to avoid an error. */
10377 #ifdef __cplusplus
10378 extern "C"
10379 #endif
10380 /* We use char because int might match the return type of a gcc2
10381 builtin and then its argument prototype would still apply. */
10382 char y0f ();
10384 main ()
10386 y0f ();
10388 return 0;
10390 _ACEOF
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10393 (eval $ac_link) 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -z "$ac_c_werror_flag"
10401 || test ! -s conftest.err'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10404 ac_status=$?
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; } &&
10407 { ac_try='test -s conftest$ac_exeext'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10413 ac_cv_lib_m_y0f=yes
10414 else
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10418 ac_cv_lib_m_y0f=no
10420 rm -f conftest.err conftest.$ac_objext \
10421 conftest$ac_exeext conftest.$ac_ext
10422 LIBS=$ac_check_lib_save_LIBS
10424 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
10425 echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
10426 if test $ac_cv_lib_m_y0f = yes; then
10428 cat >>confdefs.h <<\_ACEOF
10429 #define HAVE_Y0F 1
10430 _ACEOF
10434 echo "$as_me:$LINENO: checking for y1 in -lm" >&5
10435 echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
10436 if test "${ac_cv_lib_m_y1+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 else
10439 ac_check_lib_save_LIBS=$LIBS
10440 LIBS="-lm $LIBS"
10441 cat >conftest.$ac_ext <<_ACEOF
10442 /* confdefs.h. */
10443 _ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10448 /* Override any gcc2 internal prototype to avoid an error. */
10449 #ifdef __cplusplus
10450 extern "C"
10451 #endif
10452 /* We use char because int might match the return type of a gcc2
10453 builtin and then its argument prototype would still apply. */
10454 char y1 ();
10456 main ()
10458 y1 ();
10460 return 0;
10462 _ACEOF
10463 rm -f conftest.$ac_objext conftest$ac_exeext
10464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10465 (eval $ac_link) 2>conftest.er1
10466 ac_status=$?
10467 grep -v '^ *+' conftest.er1 >conftest.err
10468 rm -f conftest.er1
10469 cat conftest.err >&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); } &&
10472 { ac_try='test -z "$ac_c_werror_flag"
10473 || test ! -s conftest.err'
10474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475 (eval $ac_try) 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; } &&
10479 { ac_try='test -s conftest$ac_exeext'
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 ac_cv_lib_m_y1=yes
10486 else
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10490 ac_cv_lib_m_y1=no
10492 rm -f conftest.err conftest.$ac_objext \
10493 conftest$ac_exeext conftest.$ac_ext
10494 LIBS=$ac_check_lib_save_LIBS
10496 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
10497 echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
10498 if test $ac_cv_lib_m_y1 = yes; then
10500 cat >>confdefs.h <<\_ACEOF
10501 #define HAVE_Y1 1
10502 _ACEOF
10506 echo "$as_me:$LINENO: checking for y1f in -lm" >&5
10507 echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
10508 if test "${ac_cv_lib_m_y1f+set}" = set; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10510 else
10511 ac_check_lib_save_LIBS=$LIBS
10512 LIBS="-lm $LIBS"
10513 cat >conftest.$ac_ext <<_ACEOF
10514 /* confdefs.h. */
10515 _ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10520 /* Override any gcc2 internal prototype to avoid an error. */
10521 #ifdef __cplusplus
10522 extern "C"
10523 #endif
10524 /* We use char because int might match the return type of a gcc2
10525 builtin and then its argument prototype would still apply. */
10526 char y1f ();
10528 main ()
10530 y1f ();
10532 return 0;
10534 _ACEOF
10535 rm -f conftest.$ac_objext conftest$ac_exeext
10536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10537 (eval $ac_link) 2>conftest.er1
10538 ac_status=$?
10539 grep -v '^ *+' conftest.er1 >conftest.err
10540 rm -f conftest.er1
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } &&
10544 { ac_try='test -z "$ac_c_werror_flag"
10545 || test ! -s conftest.err'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; } &&
10551 { ac_try='test -s conftest$ac_exeext'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
10557 ac_cv_lib_m_y1f=yes
10558 else
10559 echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10562 ac_cv_lib_m_y1f=no
10564 rm -f conftest.err conftest.$ac_objext \
10565 conftest$ac_exeext conftest.$ac_ext
10566 LIBS=$ac_check_lib_save_LIBS
10568 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
10569 echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
10570 if test $ac_cv_lib_m_y1f = yes; then
10572 cat >>confdefs.h <<\_ACEOF
10573 #define HAVE_Y1F 1
10574 _ACEOF
10578 echo "$as_me:$LINENO: checking for yn in -lm" >&5
10579 echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
10580 if test "${ac_cv_lib_m_yn+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
10582 else
10583 ac_check_lib_save_LIBS=$LIBS
10584 LIBS="-lm $LIBS"
10585 cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h. */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10592 /* Override any gcc2 internal prototype to avoid an error. */
10593 #ifdef __cplusplus
10594 extern "C"
10595 #endif
10596 /* We use char because int might match the return type of a gcc2
10597 builtin and then its argument prototype would still apply. */
10598 char yn ();
10600 main ()
10602 yn ();
10604 return 0;
10606 _ACEOF
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10609 (eval $ac_link) 2>conftest.er1
10610 ac_status=$?
10611 grep -v '^ *+' conftest.er1 >conftest.err
10612 rm -f conftest.er1
10613 cat conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } &&
10616 { ac_try='test -z "$ac_c_werror_flag"
10617 || test ! -s conftest.err'
10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10620 ac_status=$?
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; } &&
10623 { ac_try='test -s conftest$ac_exeext'
10624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10625 (eval $ac_try) 2>&5
10626 ac_status=$?
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; }; then
10629 ac_cv_lib_m_yn=yes
10630 else
10631 echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10634 ac_cv_lib_m_yn=no
10636 rm -f conftest.err conftest.$ac_objext \
10637 conftest$ac_exeext conftest.$ac_ext
10638 LIBS=$ac_check_lib_save_LIBS
10640 echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
10641 echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
10642 if test $ac_cv_lib_m_yn = yes; then
10644 cat >>confdefs.h <<\_ACEOF
10645 #define HAVE_YN 1
10646 _ACEOF
10650 echo "$as_me:$LINENO: checking for ynf in -lm" >&5
10651 echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
10652 if test "${ac_cv_lib_m_ynf+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 else
10655 ac_check_lib_save_LIBS=$LIBS
10656 LIBS="-lm $LIBS"
10657 cat >conftest.$ac_ext <<_ACEOF
10658 /* confdefs.h. */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10664 /* Override any gcc2 internal prototype to avoid an error. */
10665 #ifdef __cplusplus
10666 extern "C"
10667 #endif
10668 /* We use char because int might match the return type of a gcc2
10669 builtin and then its argument prototype would still apply. */
10670 char ynf ();
10672 main ()
10674 ynf ();
10676 return 0;
10678 _ACEOF
10679 rm -f conftest.$ac_objext conftest$ac_exeext
10680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10681 (eval $ac_link) 2>conftest.er1
10682 ac_status=$?
10683 grep -v '^ *+' conftest.er1 >conftest.err
10684 rm -f conftest.er1
10685 cat conftest.err >&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } &&
10688 { ac_try='test -z "$ac_c_werror_flag"
10689 || test ! -s conftest.err'
10690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691 (eval $ac_try) 2>&5
10692 ac_status=$?
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; } &&
10695 { ac_try='test -s conftest$ac_exeext'
10696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10698 ac_status=$?
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10701 ac_cv_lib_m_ynf=yes
10702 else
10703 echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10706 ac_cv_lib_m_ynf=no
10708 rm -f conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
10710 LIBS=$ac_check_lib_save_LIBS
10712 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
10713 echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
10714 if test $ac_cv_lib_m_ynf = yes; then
10716 cat >>confdefs.h <<\_ACEOF
10717 #define HAVE_YNF 1
10718 _ACEOF
10723 # Fallback in case isfinite is not available.
10724 echo "$as_me:$LINENO: checking for finite in -lm" >&5
10725 echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6
10726 if test "${ac_cv_lib_m_finite+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729 ac_check_lib_save_LIBS=$LIBS
10730 LIBS="-lm $LIBS"
10731 cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h. */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10738 /* Override any gcc2 internal prototype to avoid an error. */
10739 #ifdef __cplusplus
10740 extern "C"
10741 #endif
10742 /* We use char because int might match the return type of a gcc2
10743 builtin and then its argument prototype would still apply. */
10744 char finite ();
10746 main ()
10748 finite ();
10750 return 0;
10752 _ACEOF
10753 rm -f conftest.$ac_objext conftest$ac_exeext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10755 (eval $ac_link) 2>conftest.er1
10756 ac_status=$?
10757 grep -v '^ *+' conftest.er1 >conftest.err
10758 rm -f conftest.er1
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -z "$ac_c_werror_flag"
10763 || test ! -s conftest.err'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest$ac_exeext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 ac_cv_lib_m_finite=yes
10776 else
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 ac_cv_lib_m_finite=no
10782 rm -f conftest.err conftest.$ac_objext \
10783 conftest$ac_exeext conftest.$ac_ext
10784 LIBS=$ac_check_lib_save_LIBS
10786 echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5
10787 echo "${ECHO_T}$ac_cv_lib_m_finite" >&6
10788 if test $ac_cv_lib_m_finite = yes; then
10790 cat >>confdefs.h <<\_ACEOF
10791 #define HAVE_FINITE 1
10792 _ACEOF
10797 # Let the user override this
10798 # Check whether --enable-cmath or --disable-cmath was given.
10799 if test "${enable_cmath+set}" = set; then
10800 enableval="$enable_cmath"
10801 need_math=$enableval
10803 if test "$need_math" = "yes"; then
10804 { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
10805 echo "$as_me: Including complex math functions in libgfor" >&6;};
10806 extra_math_obj='$(gfor_cmath_obj)'
10809 MATH_OBJ="$extra_math_obj"
10812 # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
10813 # for struct timezone, as you might think. We also need to check how
10814 # to call gettimeofday if we have it.
10815 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10816 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10817 if test "${ac_cv_header_time+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10820 cat >conftest.$ac_ext <<_ACEOF
10821 /* confdefs.h. */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826 #include <sys/types.h>
10827 #include <sys/time.h>
10828 #include <time.h>
10831 main ()
10833 if ((struct tm *) 0)
10834 return 0;
10836 return 0;
10838 _ACEOF
10839 rm -f conftest.$ac_objext
10840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10841 (eval $ac_compile) 2>conftest.er1
10842 ac_status=$?
10843 grep -v '^ *+' conftest.er1 >conftest.err
10844 rm -f conftest.er1
10845 cat conftest.err >&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } &&
10848 { ac_try='test -z "$ac_c_werror_flag"
10849 || test ! -s conftest.err'
10850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10851 (eval $ac_try) 2>&5
10852 ac_status=$?
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); }; } &&
10855 { ac_try='test -s conftest.$ac_objext'
10856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10857 (eval $ac_try) 2>&5
10858 ac_status=$?
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; }; then
10861 ac_cv_header_time=yes
10862 else
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10866 ac_cv_header_time=no
10868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10870 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10871 echo "${ECHO_T}$ac_cv_header_time" >&6
10872 if test $ac_cv_header_time = yes; then
10874 cat >>confdefs.h <<\_ACEOF
10875 #define TIME_WITH_SYS_TIME 1
10876 _ACEOF
10882 for ac_func in gettimeofday
10884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10885 echo "$as_me:$LINENO: checking for $ac_func" >&5
10886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10887 if eval "test \"\${$as_ac_var+set}\" = set"; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10889 else
10890 cat >conftest.$ac_ext <<_ACEOF
10891 /* confdefs.h. */
10892 _ACEOF
10893 cat confdefs.h >>conftest.$ac_ext
10894 cat >>conftest.$ac_ext <<_ACEOF
10895 /* end confdefs.h. */
10896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10898 #define $ac_func innocuous_$ac_func
10900 /* System header to define __stub macros and hopefully few prototypes,
10901 which can conflict with char $ac_func (); below.
10902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10903 <limits.h> exists even on freestanding compilers. */
10905 #ifdef __STDC__
10906 # include <limits.h>
10907 #else
10908 # include <assert.h>
10909 #endif
10911 #undef $ac_func
10913 /* Override any gcc2 internal prototype to avoid an error. */
10914 #ifdef __cplusplus
10915 extern "C"
10917 #endif
10918 /* We use char because int might match the return type of a gcc2
10919 builtin and then its argument prototype would still apply. */
10920 char $ac_func ();
10921 /* The GNU C library defines this for functions which it implements
10922 to always fail with ENOSYS. Some functions are actually named
10923 something starting with __ and the normal name is an alias. */
10924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10925 choke me
10926 #else
10927 char (*f) () = $ac_func;
10928 #endif
10929 #ifdef __cplusplus
10931 #endif
10934 main ()
10936 return f != $ac_func;
10938 return 0;
10940 _ACEOF
10941 rm -f conftest.$ac_objext conftest$ac_exeext
10942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10943 (eval $ac_link) 2>conftest.er1
10944 ac_status=$?
10945 grep -v '^ *+' conftest.er1 >conftest.err
10946 rm -f conftest.er1
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
10950 { ac_try='test -z "$ac_c_werror_flag"
10951 || test ! -s conftest.err'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; } &&
10957 { ac_try='test -s conftest$ac_exeext'
10958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959 (eval $ac_try) 2>&5
10960 ac_status=$?
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; }; then
10963 eval "$as_ac_var=yes"
10964 else
10965 echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10968 eval "$as_ac_var=no"
10970 rm -f conftest.err conftest.$ac_objext \
10971 conftest$ac_exeext conftest.$ac_ext
10973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10975 if test `eval echo '${'$as_ac_var'}'` = yes; then
10976 cat >>confdefs.h <<_ACEOF
10977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10978 _ACEOF
10981 done
10983 if test "$ac_cv_func_gettimeofday" = yes; then
10984 echo "$as_me:$LINENO: checking for struct timezone" >&5
10985 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
10986 if test "${gfor_cv_struct_timezone+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10988 else
10989 cat >conftest.$ac_ext <<_ACEOF
10990 /* confdefs.h. */
10991 _ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h. */
10995 #include <sys/time.h>
10997 main ()
10999 struct timezone tz;
11001 return 0;
11003 _ACEOF
11004 rm -f conftest.$ac_objext
11005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11006 (eval $ac_compile) 2>conftest.er1
11007 ac_status=$?
11008 grep -v '^ *+' conftest.er1 >conftest.err
11009 rm -f conftest.er1
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -z "$ac_c_werror_flag"
11014 || test ! -s conftest.err'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; } &&
11020 { ac_try='test -s conftest.$ac_objext'
11021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022 (eval $ac_try) 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; }; then
11026 gfor_cv_struct_timezone=yes
11027 else
11028 echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11031 gfor_cv_struct_timezone=no
11033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11035 echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
11036 echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
11037 if test $gfor_cv_struct_timezone = yes; then
11038 if test "$cross_compiling" = yes; then
11039 gfor_have_struct_timezone=yes
11040 else
11041 cat >conftest.$ac_ext <<_ACEOF
11042 /* confdefs.h. */
11043 _ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h. */
11048 #ifdef TIME_WITH_SYS_TIME
11049 #include <sys/time.h>
11050 #include <time.h>
11051 #else
11052 #ifdef HAVE_SYS_TIME_H
11053 #include <sys/time.h>
11054 #else
11055 #include <time.h>
11056 #endif
11057 #endif
11058 main ()
11060 struct timeval time;
11061 struct timezone dummy;
11062 if (gettimeofday (&time, &dummy))
11063 exit (1);
11064 else
11065 exit (0);
11067 _ACEOF
11068 rm -f conftest$ac_exeext
11069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11070 (eval $ac_link) 2>&5
11071 ac_status=$?
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; }; then
11079 gfor_have_struct_timezone=yes
11080 else
11081 echo "$as_me: program exited with status $ac_status" >&5
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11085 ( exit $ac_status )
11086 gfor_have_struct_timezone=no
11088 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11090 if test $gfor_have_struct_timezone = yes; then
11092 cat >>confdefs.h <<\_ACEOF
11093 #define HAVE_TIMEZONE 1
11094 _ACEOF
11099 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
11100 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11101 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 else
11104 cat >conftest.$ac_ext <<_ACEOF
11105 /* confdefs.h. */
11106 _ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11111 #ifdef TIME_WITH_SYS_TIME
11112 #include <sys/time.h>
11113 #include <time.h>
11114 #else
11115 #ifdef HAVE_SYS_TIME_H
11116 #include <sys/time.h>
11117 #else
11118 #include <time.h>
11119 #endif
11120 #endif
11123 main ()
11126 struct timeval time;
11127 #ifdef HAVE_TIMEZONE
11128 struct timezone dummy;
11129 #define DUMMY &dummy
11130 #else
11131 #define DUMMY NULL
11132 #endif
11133 gettimeofday (&time, DUMMY);
11135 return 0;
11137 _ACEOF
11138 rm -f conftest.$ac_objext conftest$ac_exeext
11139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11140 (eval $ac_link) 2>conftest.er1
11141 ac_status=$?
11142 grep -v '^ *+' conftest.er1 >conftest.err
11143 rm -f conftest.er1
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } &&
11147 { ac_try='test -z "$ac_c_werror_flag"
11148 || test ! -s conftest.err'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; } &&
11154 { ac_try='test -s conftest$ac_exeext'
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; }; then
11160 emacs_cv_gettimeofday_two_arguments=yes
11161 else
11162 echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11165 emacs_cv_gettimeofday_two_arguments=no
11167 rm -f conftest.err conftest.$ac_objext \
11168 conftest$ac_exeext conftest.$ac_ext
11170 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
11171 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11172 if test $emacs_cv_gettimeofday_two_arguments = no; then
11174 cat >>confdefs.h <<\_ACEOF
11175 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11176 _ACEOF
11181 # Attempt to assert that the target is of common type in case we don't
11182 # have C99 integer types at all.
11184 echo "$as_me:$LINENO: checking whether the target is ILP32" >&5
11185 echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6
11186 if test "${target_ilp32+set}" = set; then
11187 echo $ECHO_N "(cached) $ECHO_C" >&6
11188 else
11190 save_CFLAGS="$CFLAGS"
11191 CFLAGS="-O2"
11192 cat >conftest.$ac_ext <<_ACEOF
11193 /* confdefs.h. */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11200 main ()
11203 if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4)
11205 else
11206 undefined_function ();
11209 return 0;
11211 _ACEOF
11212 rm -f conftest.$ac_objext conftest$ac_exeext
11213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11214 (eval $ac_link) 2>conftest.er1
11215 ac_status=$?
11216 grep -v '^ *+' conftest.er1 >conftest.err
11217 rm -f conftest.er1
11218 cat conftest.err >&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); } &&
11221 { ac_try='test -z "$ac_c_werror_flag"
11222 || test ! -s conftest.err'
11223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; } &&
11228 { ac_try='test -s conftest$ac_exeext'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; }; then
11234 target_ilp32=yes
11235 else
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11239 target_ilp32=no
11241 rm -f conftest.err conftest.$ac_objext \
11242 conftest$ac_exeext conftest.$ac_ext
11243 CFLAGS="$save_CFLAGS"
11245 echo "$as_me:$LINENO: result: $target_ilp32" >&5
11246 echo "${ECHO_T}$target_ilp32" >&6
11247 if test $target_ilp32 = yes; then
11249 cat >>confdefs.h <<\_ACEOF
11250 #define TARGET_ILP32 1
11251 _ACEOF
11256 # Check out attribute support.
11258 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
11259 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
11260 if test "${have_attribute_visibility+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 else
11264 save_CFLAGS="$CFLAGS"
11265 CFLAGS="$CFLAGS -Werror"
11266 cat >conftest.$ac_ext <<_ACEOF
11267 /* confdefs.h. */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272 void __attribute__((visibility("hidden"))) foo(void) { }
11274 main ()
11278 return 0;
11280 _ACEOF
11281 rm -f conftest.$ac_objext
11282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11283 (eval $ac_compile) 2>conftest.er1
11284 ac_status=$?
11285 grep -v '^ *+' conftest.er1 >conftest.err
11286 rm -f conftest.er1
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -z "$ac_c_werror_flag"
11291 || test ! -s conftest.err'
11292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293 (eval $ac_try) 2>&5
11294 ac_status=$?
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; } &&
11297 { ac_try='test -s conftest.$ac_objext'
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }; then
11303 have_attribute_visibility=yes
11304 else
11305 echo "$as_me: failed program was:" >&5
11306 sed 's/^/| /' conftest.$ac_ext >&5
11308 have_attribute_visibility=no
11310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11311 CFLAGS="$save_CFLAGS"
11313 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
11314 echo "${ECHO_T}$have_attribute_visibility" >&6
11315 if test $have_attribute_visibility = yes; then
11317 cat >>confdefs.h <<\_ACEOF
11318 #define HAVE_ATTRIBUTE_VISIBILITY 1
11319 _ACEOF
11323 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
11324 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
11325 if test "${have_attribute_dllexport+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 else
11329 save_CFLAGS="$CFLAGS"
11330 CFLAGS="$CFLAGS -Werror"
11331 cat >conftest.$ac_ext <<_ACEOF
11332 /* confdefs.h. */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 void __attribute__((dllexport)) foo(void) { }
11339 main ()
11343 return 0;
11345 _ACEOF
11346 rm -f conftest.$ac_objext
11347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11348 (eval $ac_compile) 2>conftest.er1
11349 ac_status=$?
11350 grep -v '^ *+' conftest.er1 >conftest.err
11351 rm -f conftest.er1
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } &&
11355 { ac_try='test -z "$ac_c_werror_flag"
11356 || test ! -s conftest.err'
11357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11359 ac_status=$?
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; } &&
11362 { ac_try='test -s conftest.$ac_objext'
11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5
11365 ac_status=$?
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; }; then
11368 have_attribute_dllexport=yes
11369 else
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11373 have_attribute_dllexport=no
11375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11376 CFLAGS="$save_CFLAGS"
11378 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
11379 echo "${ECHO_T}$have_attribute_dllexport" >&6
11380 if test $have_attribute_dllexport = yes; then
11382 cat >>confdefs.h <<\_ACEOF
11383 #define HAVE_ATTRIBUTE_DLLEXPORT 1
11384 _ACEOF
11388 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
11389 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
11390 if test "${have_attribute_alias+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11394 cat >conftest.$ac_ext <<_ACEOF
11395 /* confdefs.h. */
11396 _ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11401 #define ULP STR1(__USER_LABEL_PREFIX__)
11402 #define STR1(x) STR2(x)
11403 #define STR2(x) #x
11404 void foo(void) { }
11405 extern void bar(void) __attribute__((alias(ULP "foo")));
11407 main ()
11409 bar();
11411 return 0;
11413 _ACEOF
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11416 (eval $ac_link) 2>conftest.er1
11417 ac_status=$?
11418 grep -v '^ *+' conftest.er1 >conftest.err
11419 rm -f conftest.er1
11420 cat conftest.err >&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try='test -z "$ac_c_werror_flag"
11424 || test ! -s conftest.err'
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11427 ac_status=$?
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; } &&
11430 { ac_try='test -s conftest$ac_exeext'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; }; then
11436 have_attribute_alias=yes
11437 else
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11441 have_attribute_alias=no
11443 rm -f conftest.err conftest.$ac_objext \
11444 conftest$ac_exeext conftest.$ac_ext
11446 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
11447 echo "${ECHO_T}$have_attribute_alias" >&6
11448 if test $have_attribute_alias = yes; then
11450 cat >>confdefs.h <<\_ACEOF
11451 #define HAVE_ATTRIBUTE_ALIAS 1
11452 _ACEOF
11456 cat >confcache <<\_ACEOF
11457 # This file is a shell script that caches the results of configure
11458 # tests run on this system so they can be shared between configure
11459 # scripts and configure runs, see configure's option --config-cache.
11460 # It is not useful on other systems. If it contains results you don't
11461 # want to keep, you may remove or edit it.
11463 # config.status only pays attention to the cache file if you give it
11464 # the --recheck option to rerun configure.
11466 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11467 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11468 # following values.
11470 _ACEOF
11472 # The following way of writing the cache mishandles newlines in values,
11473 # but we know of no workaround that is simple, portable, and efficient.
11474 # So, don't put newlines in cache variables' values.
11475 # Ultrix sh set writes to stderr and can't be redirected directly,
11476 # and sets the high bit in the cache file unless we assign to the vars.
11478 (set) 2>&1 |
11479 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11480 *ac_space=\ *)
11481 # `set' does not quote correctly, so add quotes (double-quote
11482 # substitution turns \\\\ into \\, and sed turns \\ into \).
11483 sed -n \
11484 "s/'/'\\\\''/g;
11485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11488 # `set' quotes correctly as required by POSIX, so do not add quotes.
11489 sed -n \
11490 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11492 esac;
11494 sed '
11495 t clear
11496 : clear
11497 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11498 t end
11499 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11500 : end' >>confcache
11501 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11502 if test -w $cache_file; then
11503 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11504 cat confcache >$cache_file
11505 else
11506 echo "not updating unwritable cache $cache_file"
11509 rm -f confcache
11511 if test ${multilib} = yes; then
11512 multilib_arg="--enable-multilib"
11513 else
11514 multilib_arg=
11517 # Write our Makefile.
11518 ac_config_files="$ac_config_files Makefile"
11520 cat >confcache <<\_ACEOF
11521 # This file is a shell script that caches the results of configure
11522 # tests run on this system so they can be shared between configure
11523 # scripts and configure runs, see configure's option --config-cache.
11524 # It is not useful on other systems. If it contains results you don't
11525 # want to keep, you may remove or edit it.
11527 # config.status only pays attention to the cache file if you give it
11528 # the --recheck option to rerun configure.
11530 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11531 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11532 # following values.
11534 _ACEOF
11536 # The following way of writing the cache mishandles newlines in values,
11537 # but we know of no workaround that is simple, portable, and efficient.
11538 # So, don't put newlines in cache variables' values.
11539 # Ultrix sh set writes to stderr and can't be redirected directly,
11540 # and sets the high bit in the cache file unless we assign to the vars.
11542 (set) 2>&1 |
11543 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11544 *ac_space=\ *)
11545 # `set' does not quote correctly, so add quotes (double-quote
11546 # substitution turns \\\\ into \\, and sed turns \\ into \).
11547 sed -n \
11548 "s/'/'\\\\''/g;
11549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11552 # `set' quotes correctly as required by POSIX, so do not add quotes.
11553 sed -n \
11554 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11556 esac;
11558 sed '
11559 t clear
11560 : clear
11561 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11562 t end
11563 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11564 : end' >>confcache
11565 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11566 if test -w $cache_file; then
11567 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11568 cat confcache >$cache_file
11569 else
11570 echo "not updating unwritable cache $cache_file"
11573 rm -f confcache
11575 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11576 # Let make expand exec_prefix.
11577 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11579 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11580 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11581 # trailing colons and then remove the whole line if VPATH becomes empty
11582 # (actually we leave an empty line to preserve line numbers).
11583 if test "x$srcdir" = x.; then
11584 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11585 s/:*\$(srcdir):*/:/;
11586 s/:*\${srcdir}:*/:/;
11587 s/:*@srcdir@:*/:/;
11588 s/^\([^=]*=[ ]*\):*/\1/;
11589 s/:*$//;
11590 s/^[^=]*=[ ]*$//;
11594 DEFS=-DHAVE_CONFIG_H
11596 ac_libobjs=
11597 ac_ltlibobjs=
11598 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11599 # 1. Remove the extension, and $U if already installed.
11600 ac_i=`echo "$ac_i" |
11601 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11602 # 2. Add them.
11603 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11604 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11605 done
11606 LIBOBJS=$ac_libobjs
11608 LTLIBOBJS=$ac_ltlibobjs
11611 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11612 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11613 Usually this means the macro was only invoked conditionally." >&5
11614 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11615 Usually this means the macro was only invoked conditionally." >&2;}
11616 { (exit 1); exit 1; }; }
11619 : ${CONFIG_STATUS=./config.status}
11620 ac_clean_files_save=$ac_clean_files
11621 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11622 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11623 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11624 cat >$CONFIG_STATUS <<_ACEOF
11625 #! $SHELL
11626 # Generated by $as_me.
11627 # Run this file to recreate the current configuration.
11628 # Compiler output produced by configure, useful for debugging
11629 # configure, is in config.log if it exists.
11631 debug=false
11632 ac_cs_recheck=false
11633 ac_cs_silent=false
11634 SHELL=\${CONFIG_SHELL-$SHELL}
11635 _ACEOF
11637 cat >>$CONFIG_STATUS <<\_ACEOF
11638 ## --------------------- ##
11639 ## M4sh Initialization. ##
11640 ## --------------------- ##
11642 # Be Bourne compatible
11643 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11644 emulate sh
11645 NULLCMD=:
11646 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11647 # is contrary to our usage. Disable this feature.
11648 alias -g '${1+"$@"}'='"$@"'
11649 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11650 set -o posix
11652 DUALCASE=1; export DUALCASE # for MKS sh
11654 # Support unset when possible.
11655 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11656 as_unset=unset
11657 else
11658 as_unset=false
11662 # Work around bugs in pre-3.0 UWIN ksh.
11663 $as_unset ENV MAIL MAILPATH
11664 PS1='$ '
11665 PS2='> '
11666 PS4='+ '
11668 # NLS nuisances.
11669 for as_var in \
11670 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11671 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11672 LC_TELEPHONE LC_TIME
11674 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11675 eval $as_var=C; export $as_var
11676 else
11677 $as_unset $as_var
11679 done
11681 # Required to use basename.
11682 if expr a : '\(a\)' >/dev/null 2>&1; then
11683 as_expr=expr
11684 else
11685 as_expr=false
11688 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11689 as_basename=basename
11690 else
11691 as_basename=false
11695 # Name of the executable.
11696 as_me=`$as_basename "$0" ||
11697 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11698 X"$0" : 'X\(//\)$' \| \
11699 X"$0" : 'X\(/\)$' \| \
11700 . : '\(.\)' 2>/dev/null ||
11701 echo X/"$0" |
11702 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11703 /^X\/\(\/\/\)$/{ s//\1/; q; }
11704 /^X\/\(\/\).*/{ s//\1/; q; }
11705 s/.*/./; q'`
11708 # PATH needs CR, and LINENO needs CR and PATH.
11709 # Avoid depending upon Character Ranges.
11710 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11711 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11712 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11713 as_cr_digits='0123456789'
11714 as_cr_alnum=$as_cr_Letters$as_cr_digits
11716 # The user is always right.
11717 if test "${PATH_SEPARATOR+set}" != set; then
11718 echo "#! /bin/sh" >conf$$.sh
11719 echo "exit 0" >>conf$$.sh
11720 chmod +x conf$$.sh
11721 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11722 PATH_SEPARATOR=';'
11723 else
11724 PATH_SEPARATOR=:
11726 rm -f conf$$.sh
11730 as_lineno_1=$LINENO
11731 as_lineno_2=$LINENO
11732 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11733 test "x$as_lineno_1" != "x$as_lineno_2" &&
11734 test "x$as_lineno_3" = "x$as_lineno_2" || {
11735 # Find who we are. Look in the path if we contain no path at all
11736 # relative or not.
11737 case $0 in
11738 *[\\/]* ) as_myself=$0 ;;
11739 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740 for as_dir in $PATH
11742 IFS=$as_save_IFS
11743 test -z "$as_dir" && as_dir=.
11744 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11745 done
11748 esac
11749 # We did not find ourselves, most probably we were run as `sh COMMAND'
11750 # in which case we are not to be found in the path.
11751 if test "x$as_myself" = x; then
11752 as_myself=$0
11754 if test ! -f "$as_myself"; then
11755 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11756 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11757 { (exit 1); exit 1; }; }
11759 case $CONFIG_SHELL in
11761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11762 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11764 IFS=$as_save_IFS
11765 test -z "$as_dir" && as_dir=.
11766 for as_base in sh bash ksh sh5; do
11767 case $as_dir in
11769 if ("$as_dir/$as_base" -c '
11770 as_lineno_1=$LINENO
11771 as_lineno_2=$LINENO
11772 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11773 test "x$as_lineno_1" != "x$as_lineno_2" &&
11774 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11775 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11776 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11777 CONFIG_SHELL=$as_dir/$as_base
11778 export CONFIG_SHELL
11779 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11780 fi;;
11781 esac
11782 done
11783 done
11785 esac
11787 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11788 # uniformly replaced by the line number. The first 'sed' inserts a
11789 # line-number line before each line; the second 'sed' does the real
11790 # work. The second script uses 'N' to pair each line-number line
11791 # with the numbered line, and appends trailing '-' during
11792 # substitution so that $LINENO is not a special case at line end.
11793 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11794 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11795 sed '=' <$as_myself |
11796 sed '
11798 s,$,-,
11799 : loop
11800 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11801 t loop
11802 s,-$,,
11803 s,^['$as_cr_digits']*\n,,
11804 ' >$as_me.lineno &&
11805 chmod +x $as_me.lineno ||
11806 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11807 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11808 { (exit 1); exit 1; }; }
11810 # Don't try to exec as it changes $[0], causing all sort of problems
11811 # (the dirname of $[0] is not the place where we might find the
11812 # original and so on. Autoconf is especially sensible to this).
11813 . ./$as_me.lineno
11814 # Exit status is that of the last command.
11815 exit
11819 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11820 *c*,-n*) ECHO_N= ECHO_C='
11821 ' ECHO_T=' ' ;;
11822 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11823 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11824 esac
11826 if expr a : '\(a\)' >/dev/null 2>&1; then
11827 as_expr=expr
11828 else
11829 as_expr=false
11832 rm -f conf$$ conf$$.exe conf$$.file
11833 echo >conf$$.file
11834 if ln -s conf$$.file conf$$ 2>/dev/null; then
11835 # We could just check for DJGPP; but this test a) works b) is more generic
11836 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11837 if test -f conf$$.exe; then
11838 # Don't use ln at all; we don't have any links
11839 as_ln_s='cp -p'
11840 else
11841 as_ln_s='ln -s'
11843 elif ln conf$$.file conf$$ 2>/dev/null; then
11844 as_ln_s=ln
11845 else
11846 as_ln_s='cp -p'
11848 rm -f conf$$ conf$$.exe conf$$.file
11850 if mkdir -p . 2>/dev/null; then
11851 as_mkdir_p=:
11852 else
11853 test -d ./-p && rmdir ./-p
11854 as_mkdir_p=false
11857 as_executable_p="test -f"
11859 # Sed expression to map a string onto a valid CPP name.
11860 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11862 # Sed expression to map a string onto a valid variable name.
11863 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11866 # IFS
11867 # We need space, tab and new line, in precisely that order.
11868 as_nl='
11870 IFS=" $as_nl"
11872 # CDPATH.
11873 $as_unset CDPATH
11875 exec 6>&1
11877 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11878 # report actual input values of CONFIG_FILES etc. instead of their
11879 # values after options handling. Logging --version etc. is OK.
11880 exec 5>>config.log
11882 echo
11883 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11884 ## Running $as_me. ##
11885 _ASBOX
11886 } >&5
11887 cat >&5 <<_CSEOF
11889 This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
11890 generated by GNU Autoconf 2.59. Invocation command line was
11892 CONFIG_FILES = $CONFIG_FILES
11893 CONFIG_HEADERS = $CONFIG_HEADERS
11894 CONFIG_LINKS = $CONFIG_LINKS
11895 CONFIG_COMMANDS = $CONFIG_COMMANDS
11896 $ $0 $@
11898 _CSEOF
11899 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11900 echo >&5
11901 _ACEOF
11903 # Files that config.status was made for.
11904 if test -n "$ac_config_files"; then
11905 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11908 if test -n "$ac_config_headers"; then
11909 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11912 if test -n "$ac_config_links"; then
11913 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11916 if test -n "$ac_config_commands"; then
11917 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11920 cat >>$CONFIG_STATUS <<\_ACEOF
11922 ac_cs_usage="\
11923 \`$as_me' instantiates files from templates according to the
11924 current configuration.
11926 Usage: $0 [OPTIONS] [FILE]...
11928 -h, --help print this help, then exit
11929 -V, --version print version number, then exit
11930 -q, --quiet do not print progress messages
11931 -d, --debug don't remove temporary files
11932 --recheck update $as_me by reconfiguring in the same conditions
11933 --file=FILE[:TEMPLATE]
11934 instantiate the configuration file FILE
11935 --header=FILE[:TEMPLATE]
11936 instantiate the configuration header FILE
11938 Configuration files:
11939 $config_files
11941 Configuration headers:
11942 $config_headers
11944 Configuration commands:
11945 $config_commands
11947 Report bugs to <bug-autoconf@gnu.org>."
11948 _ACEOF
11950 cat >>$CONFIG_STATUS <<_ACEOF
11951 ac_cs_version="\\
11952 GNU Fortran Runtime Library config.status 0.2
11953 configured by $0, generated by GNU Autoconf 2.59,
11954 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11956 Copyright (C) 2003 Free Software Foundation, Inc.
11957 This config.status script is free software; the Free Software Foundation
11958 gives unlimited permission to copy, distribute and modify it."
11959 srcdir=$srcdir
11960 INSTALL="$INSTALL"
11961 _ACEOF
11963 cat >>$CONFIG_STATUS <<\_ACEOF
11964 # If no file are specified by the user, then we need to provide default
11965 # value. By we need to know if files were specified by the user.
11966 ac_need_defaults=:
11967 while test $# != 0
11969 case $1 in
11970 --*=*)
11971 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11972 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11973 ac_shift=:
11976 ac_option=$1
11977 ac_optarg=$2
11978 ac_shift=shift
11980 *) # This is not an option, so the user has probably given explicit
11981 # arguments.
11982 ac_option=$1
11983 ac_need_defaults=false;;
11984 esac
11986 case $ac_option in
11987 # Handling of the options.
11988 _ACEOF
11989 cat >>$CONFIG_STATUS <<\_ACEOF
11990 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11991 ac_cs_recheck=: ;;
11992 --version | --vers* | -V )
11993 echo "$ac_cs_version"; exit 0 ;;
11994 --he | --h)
11995 # Conflict between --help and --header
11996 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11997 Try \`$0 --help' for more information." >&5
11998 echo "$as_me: error: ambiguous option: $1
11999 Try \`$0 --help' for more information." >&2;}
12000 { (exit 1); exit 1; }; };;
12001 --help | --hel | -h )
12002 echo "$ac_cs_usage"; exit 0 ;;
12003 --debug | --d* | -d )
12004 debug=: ;;
12005 --file | --fil | --fi | --f )
12006 $ac_shift
12007 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12008 ac_need_defaults=false;;
12009 --header | --heade | --head | --hea )
12010 $ac_shift
12011 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12012 ac_need_defaults=false;;
12013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12014 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12015 ac_cs_silent=: ;;
12017 # This is an error.
12018 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12019 Try \`$0 --help' for more information." >&5
12020 echo "$as_me: error: unrecognized option: $1
12021 Try \`$0 --help' for more information." >&2;}
12022 { (exit 1); exit 1; }; } ;;
12024 *) ac_config_targets="$ac_config_targets $1" ;;
12026 esac
12027 shift
12028 done
12030 ac_configure_extra_args=
12032 if $ac_cs_silent; then
12033 exec 6>/dev/null
12034 ac_configure_extra_args="$ac_configure_extra_args --silent"
12037 _ACEOF
12038 cat >>$CONFIG_STATUS <<_ACEOF
12039 if \$ac_cs_recheck; then
12040 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12041 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12044 _ACEOF
12046 cat >>$CONFIG_STATUS <<_ACEOF
12048 # INIT-COMMANDS section.
12052 srcdir="$srcdir"
12053 host="$host"
12054 target="$target"
12055 with_multisubdir="$with_multisubdir"
12056 with_multisrctop="$with_multisrctop"
12057 with_target_subdir="$with_target_subdir"
12058 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12059 multi_basedir="$multi_basedir"
12060 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12061 CC="$CC"
12063 _ACEOF
12067 cat >>$CONFIG_STATUS <<\_ACEOF
12068 for ac_config_target in $ac_config_targets
12070 case "$ac_config_target" in
12071 # Handling of arguments.
12072 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12073 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12074 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12075 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12076 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12077 { (exit 1); exit 1; }; };;
12078 esac
12079 done
12081 # If the user did not use the arguments to specify the items to instantiate,
12082 # then the envvar interface is used. Set only those that are not.
12083 # We use the long form for the default assignment because of an extremely
12084 # bizarre bug on SunOS 4.1.3.
12085 if $ac_need_defaults; then
12086 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12087 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12088 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12091 # Have a temporary directory for convenience. Make it in the build tree
12092 # simply because there is no reason to put it here, and in addition,
12093 # creating and moving files from /tmp can sometimes cause problems.
12094 # Create a temporary directory, and hook for its removal unless debugging.
12095 $debug ||
12097 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12098 trap '{ (exit 1); exit 1; }' 1 2 13 15
12101 # Create a (secure) tmp directory for tmp files.
12104 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12105 test -n "$tmp" && test -d "$tmp"
12106 } ||
12108 tmp=./confstat$$-$RANDOM
12109 (umask 077 && mkdir $tmp)
12110 } ||
12112 echo "$me: cannot create a temporary directory in ." >&2
12113 { (exit 1); exit 1; }
12116 _ACEOF
12118 cat >>$CONFIG_STATUS <<_ACEOF
12121 # CONFIG_FILES section.
12124 # No need to generate the scripts if there are no CONFIG_FILES.
12125 # This happens for instance when ./config.status config.h
12126 if test -n "\$CONFIG_FILES"; then
12127 # Protect against being on the right side of a sed subst in config.status.
12128 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12129 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12130 s,@SHELL@,$SHELL,;t t
12131 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12132 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12133 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12134 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12135 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12136 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12137 s,@exec_prefix@,$exec_prefix,;t t
12138 s,@prefix@,$prefix,;t t
12139 s,@program_transform_name@,$program_transform_name,;t t
12140 s,@bindir@,$bindir,;t t
12141 s,@sbindir@,$sbindir,;t t
12142 s,@libexecdir@,$libexecdir,;t t
12143 s,@datadir@,$datadir,;t t
12144 s,@sysconfdir@,$sysconfdir,;t t
12145 s,@sharedstatedir@,$sharedstatedir,;t t
12146 s,@localstatedir@,$localstatedir,;t t
12147 s,@libdir@,$libdir,;t t
12148 s,@includedir@,$includedir,;t t
12149 s,@oldincludedir@,$oldincludedir,;t t
12150 s,@infodir@,$infodir,;t t
12151 s,@mandir@,$mandir,;t t
12152 s,@build_alias@,$build_alias,;t t
12153 s,@host_alias@,$host_alias,;t t
12154 s,@target_alias@,$target_alias,;t t
12155 s,@DEFS@,$DEFS,;t t
12156 s,@ECHO_C@,$ECHO_C,;t t
12157 s,@ECHO_N@,$ECHO_N,;t t
12158 s,@ECHO_T@,$ECHO_T,;t t
12159 s,@LIBS@,$LIBS,;t t
12160 s,@build@,$build,;t t
12161 s,@build_cpu@,$build_cpu,;t t
12162 s,@build_vendor@,$build_vendor,;t t
12163 s,@build_os@,$build_os,;t t
12164 s,@host@,$host,;t t
12165 s,@host_cpu@,$host_cpu,;t t
12166 s,@host_vendor@,$host_vendor,;t t
12167 s,@host_os@,$host_os,;t t
12168 s,@target@,$target,;t t
12169 s,@target_cpu@,$target_cpu,;t t
12170 s,@target_vendor@,$target_vendor,;t t
12171 s,@target_os@,$target_os,;t t
12172 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12173 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12174 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12175 s,@CYGPATH_W@,$CYGPATH_W,;t t
12176 s,@PACKAGE@,$PACKAGE,;t t
12177 s,@VERSION@,$VERSION,;t t
12178 s,@ACLOCAL@,$ACLOCAL,;t t
12179 s,@AUTOCONF@,$AUTOCONF,;t t
12180 s,@AUTOMAKE@,$AUTOMAKE,;t t
12181 s,@AUTOHEADER@,$AUTOHEADER,;t t
12182 s,@MAKEINFO@,$MAKEINFO,;t t
12183 s,@install_sh@,$install_sh,;t t
12184 s,@STRIP@,$STRIP,;t t
12185 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12186 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12187 s,@mkdir_p@,$mkdir_p,;t t
12188 s,@AWK@,$AWK,;t t
12189 s,@SET_MAKE@,$SET_MAKE,;t t
12190 s,@am__leading_dot@,$am__leading_dot,;t t
12191 s,@AMTAR@,$AMTAR,;t t
12192 s,@am__tar@,$am__tar,;t t
12193 s,@am__untar@,$am__untar,;t t
12194 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12195 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12196 s,@MAINT@,$MAINT,;t t
12197 s,@multi_basedir@,$multi_basedir,;t t
12198 s,@toolexecdir@,$toolexecdir,;t t
12199 s,@toolexeclibdir@,$toolexeclibdir,;t t
12200 s,@CC@,$CC,;t t
12201 s,@ac_ct_CC@,$ac_ct_CC,;t t
12202 s,@EXEEXT@,$EXEEXT,;t t
12203 s,@OBJEXT@,$OBJEXT,;t t
12204 s,@CFLAGS@,$CFLAGS,;t t
12205 s,@AS@,$AS,;t t
12206 s,@ac_ct_AS@,$ac_ct_AS,;t t
12207 s,@AR@,$AR,;t t
12208 s,@ac_ct_AR@,$ac_ct_AR,;t t
12209 s,@RANLIB@,$RANLIB,;t t
12210 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12211 s,@LN_S@,$LN_S,;t t
12212 s,@LIBTOOL@,$LIBTOOL,;t t
12213 s,@enable_shared@,$enable_shared,;t t
12214 s,@enable_static@,$enable_static,;t t
12215 s,@FC@,$FC,;t t
12216 s,@FCFLAGS@,$FCFLAGS,;t t
12217 s,@LDFLAGS@,$LDFLAGS,;t t
12218 s,@ac_ct_FC@,$ac_ct_FC,;t t
12219 s,@extra_ldflags_libgfortran@,$extra_ldflags_libgfortran,;t t
12220 s,@CPP@,$CPP,;t t
12221 s,@CPPFLAGS@,$CPPFLAGS,;t t
12222 s,@EGREP@,$EGREP,;t t
12223 s,@MATH_OBJ@,$MATH_OBJ,;t t
12224 s,@LIBOBJS@,$LIBOBJS,;t t
12225 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12226 CEOF
12228 _ACEOF
12230 cat >>$CONFIG_STATUS <<\_ACEOF
12231 # Split the substitutions into bite-sized pieces for seds with
12232 # small command number limits, like on Digital OSF/1 and HP-UX.
12233 ac_max_sed_lines=48
12234 ac_sed_frag=1 # Number of current file.
12235 ac_beg=1 # First line for current file.
12236 ac_end=$ac_max_sed_lines # Line after last line for current file.
12237 ac_more_lines=:
12238 ac_sed_cmds=
12239 while $ac_more_lines; do
12240 if test $ac_beg -gt 1; then
12241 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12242 else
12243 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12245 if test ! -s $tmp/subs.frag; then
12246 ac_more_lines=false
12247 else
12248 # The purpose of the label and of the branching condition is to
12249 # speed up the sed processing (if there are no `@' at all, there
12250 # is no need to browse any of the substitutions).
12251 # These are the two extra sed commands mentioned above.
12252 (echo ':t
12253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12254 if test -z "$ac_sed_cmds"; then
12255 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12256 else
12257 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12259 ac_sed_frag=`expr $ac_sed_frag + 1`
12260 ac_beg=$ac_end
12261 ac_end=`expr $ac_end + $ac_max_sed_lines`
12263 done
12264 if test -z "$ac_sed_cmds"; then
12265 ac_sed_cmds=cat
12267 fi # test -n "$CONFIG_FILES"
12269 _ACEOF
12270 cat >>$CONFIG_STATUS <<\_ACEOF
12271 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12272 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12273 case $ac_file in
12274 - | *:- | *:-:* ) # input from stdin
12275 cat >$tmp/stdin
12276 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12277 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12278 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12279 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12280 * ) ac_file_in=$ac_file.in ;;
12281 esac
12283 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12284 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12285 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12286 X"$ac_file" : 'X\(//\)[^/]' \| \
12287 X"$ac_file" : 'X\(//\)$' \| \
12288 X"$ac_file" : 'X\(/\)' \| \
12289 . : '\(.\)' 2>/dev/null ||
12290 echo X"$ac_file" |
12291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12292 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12293 /^X\(\/\/\)$/{ s//\1/; q; }
12294 /^X\(\/\).*/{ s//\1/; q; }
12295 s/.*/./; q'`
12296 { if $as_mkdir_p; then
12297 mkdir -p "$ac_dir"
12298 else
12299 as_dir="$ac_dir"
12300 as_dirs=
12301 while test ! -d "$as_dir"; do
12302 as_dirs="$as_dir $as_dirs"
12303 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12305 X"$as_dir" : 'X\(//\)[^/]' \| \
12306 X"$as_dir" : 'X\(//\)$' \| \
12307 X"$as_dir" : 'X\(/\)' \| \
12308 . : '\(.\)' 2>/dev/null ||
12309 echo X"$as_dir" |
12310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12311 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12312 /^X\(\/\/\)$/{ s//\1/; q; }
12313 /^X\(\/\).*/{ s//\1/; q; }
12314 s/.*/./; q'`
12315 done
12316 test ! -n "$as_dirs" || mkdir $as_dirs
12317 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12318 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12319 { (exit 1); exit 1; }; }; }
12321 ac_builddir=.
12323 if test "$ac_dir" != .; then
12324 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12325 # A "../" for each directory in $ac_dir_suffix.
12326 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12327 else
12328 ac_dir_suffix= ac_top_builddir=
12331 case $srcdir in
12332 .) # No --srcdir option. We are building in place.
12333 ac_srcdir=.
12334 if test -z "$ac_top_builddir"; then
12335 ac_top_srcdir=.
12336 else
12337 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12338 fi ;;
12339 [\\/]* | ?:[\\/]* ) # Absolute path.
12340 ac_srcdir=$srcdir$ac_dir_suffix;
12341 ac_top_srcdir=$srcdir ;;
12342 *) # Relative path.
12343 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12344 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12345 esac
12347 # Do not use `cd foo && pwd` to compute absolute paths, because
12348 # the directories may not exist.
12349 case `pwd` in
12350 .) ac_abs_builddir="$ac_dir";;
12352 case "$ac_dir" in
12353 .) ac_abs_builddir=`pwd`;;
12354 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12355 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12356 esac;;
12357 esac
12358 case $ac_abs_builddir in
12359 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12361 case ${ac_top_builddir}. in
12362 .) ac_abs_top_builddir=$ac_abs_builddir;;
12363 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12364 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12365 esac;;
12366 esac
12367 case $ac_abs_builddir in
12368 .) ac_abs_srcdir=$ac_srcdir;;
12370 case $ac_srcdir in
12371 .) ac_abs_srcdir=$ac_abs_builddir;;
12372 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12373 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12374 esac;;
12375 esac
12376 case $ac_abs_builddir in
12377 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12379 case $ac_top_srcdir in
12380 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12381 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12382 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12383 esac;;
12384 esac
12387 case $INSTALL in
12388 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12389 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12390 esac
12392 if test x"$ac_file" != x-; then
12393 { echo "$as_me:$LINENO: creating $ac_file" >&5
12394 echo "$as_me: creating $ac_file" >&6;}
12395 rm -f "$ac_file"
12397 # Let's still pretend it is `configure' which instantiates (i.e., don't
12398 # use $as_me), people would be surprised to read:
12399 # /* config.h. Generated by config.status. */
12400 if test x"$ac_file" = x-; then
12401 configure_input=
12402 else
12403 configure_input="$ac_file. "
12405 configure_input=$configure_input"Generated from `echo $ac_file_in |
12406 sed 's,.*/,,'` by configure."
12408 # First look for the input files in the build tree, otherwise in the
12409 # src tree.
12410 ac_file_inputs=`IFS=:
12411 for f in $ac_file_in; do
12412 case $f in
12413 -) echo $tmp/stdin ;;
12414 [\\/$]*)
12415 # Absolute (can't be DOS-style, as IFS=:)
12416 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12417 echo "$as_me: error: cannot find input file: $f" >&2;}
12418 { (exit 1); exit 1; }; }
12419 echo "$f";;
12420 *) # Relative
12421 if test -f "$f"; then
12422 # Build tree
12423 echo "$f"
12424 elif test -f "$srcdir/$f"; then
12425 # Source tree
12426 echo "$srcdir/$f"
12427 else
12428 # /dev/null tree
12429 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12430 echo "$as_me: error: cannot find input file: $f" >&2;}
12431 { (exit 1); exit 1; }; }
12432 fi;;
12433 esac
12434 done` || { (exit 1); exit 1; }
12435 _ACEOF
12436 cat >>$CONFIG_STATUS <<_ACEOF
12437 sed "$ac_vpsub
12438 $extrasub
12439 _ACEOF
12440 cat >>$CONFIG_STATUS <<\_ACEOF
12442 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12443 s,@configure_input@,$configure_input,;t t
12444 s,@srcdir@,$ac_srcdir,;t t
12445 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12446 s,@top_srcdir@,$ac_top_srcdir,;t t
12447 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12448 s,@builddir@,$ac_builddir,;t t
12449 s,@abs_builddir@,$ac_abs_builddir,;t t
12450 s,@top_builddir@,$ac_top_builddir,;t t
12451 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12452 s,@INSTALL@,$ac_INSTALL,;t t
12453 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12454 rm -f $tmp/stdin
12455 if test x"$ac_file" != x-; then
12456 mv $tmp/out $ac_file
12457 else
12458 cat $tmp/out
12459 rm -f $tmp/out
12462 done
12463 _ACEOF
12464 cat >>$CONFIG_STATUS <<\_ACEOF
12467 # CONFIG_HEADER section.
12470 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12471 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12473 # ac_d sets the value in "#define NAME VALUE" lines.
12474 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12475 ac_dB='[ ].*$,\1#\2'
12476 ac_dC=' '
12477 ac_dD=',;t'
12478 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12479 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12480 ac_uB='$,\1#\2define\3'
12481 ac_uC=' '
12482 ac_uD=',;t'
12484 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12485 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12486 case $ac_file in
12487 - | *:- | *:-:* ) # input from stdin
12488 cat >$tmp/stdin
12489 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12490 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12491 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12492 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12493 * ) ac_file_in=$ac_file.in ;;
12494 esac
12496 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12497 echo "$as_me: creating $ac_file" >&6;}
12499 # First look for the input files in the build tree, otherwise in the
12500 # src tree.
12501 ac_file_inputs=`IFS=:
12502 for f in $ac_file_in; do
12503 case $f in
12504 -) echo $tmp/stdin ;;
12505 [\\/$]*)
12506 # Absolute (can't be DOS-style, as IFS=:)
12507 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12508 echo "$as_me: error: cannot find input file: $f" >&2;}
12509 { (exit 1); exit 1; }; }
12510 # Do quote $f, to prevent DOS paths from being IFS'd.
12511 echo "$f";;
12512 *) # Relative
12513 if test -f "$f"; then
12514 # Build tree
12515 echo "$f"
12516 elif test -f "$srcdir/$f"; then
12517 # Source tree
12518 echo "$srcdir/$f"
12519 else
12520 # /dev/null tree
12521 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12522 echo "$as_me: error: cannot find input file: $f" >&2;}
12523 { (exit 1); exit 1; }; }
12524 fi;;
12525 esac
12526 done` || { (exit 1); exit 1; }
12527 # Remove the trailing spaces.
12528 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12530 _ACEOF
12532 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12533 # `conftest.undefs', that substitutes the proper values into
12534 # config.h.in to produce config.h. The first handles `#define'
12535 # templates, and the second `#undef' templates.
12536 # And first: Protect against being on the right side of a sed subst in
12537 # config.status. Protect against being in an unquoted here document
12538 # in config.status.
12539 rm -f conftest.defines conftest.undefs
12540 # Using a here document instead of a string reduces the quoting nightmare.
12541 # Putting comments in sed scripts is not portable.
12543 # `end' is used to avoid that the second main sed command (meant for
12544 # 0-ary CPP macros) applies to n-ary macro definitions.
12545 # See the Autoconf documentation for `clear'.
12546 cat >confdef2sed.sed <<\_ACEOF
12547 s/[\\&,]/\\&/g
12548 s,[\\$`],\\&,g
12549 t clear
12550 : clear
12551 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12552 t end
12553 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12554 : end
12555 _ACEOF
12556 # If some macros were called several times there might be several times
12557 # the same #defines, which is useless. Nevertheless, we may not want to
12558 # sort them, since we want the *last* AC-DEFINE to be honored.
12559 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12560 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12561 rm -f confdef2sed.sed
12563 # This sed command replaces #undef with comments. This is necessary, for
12564 # example, in the case of _POSIX_SOURCE, which is predefined and required
12565 # on some systems where configure will not decide to define it.
12566 cat >>conftest.undefs <<\_ACEOF
12567 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12568 _ACEOF
12570 # Break up conftest.defines because some shells have a limit on the size
12571 # of here documents, and old seds have small limits too (100 cmds).
12572 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12573 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12574 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12575 echo ' :' >>$CONFIG_STATUS
12576 rm -f conftest.tail
12577 while grep . conftest.defines >/dev/null
12579 # Write a limited-size here document to $tmp/defines.sed.
12580 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12581 # Speed up: don't consider the non `#define' lines.
12582 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12583 # Work around the forget-to-reset-the-flag bug.
12584 echo 't clr' >>$CONFIG_STATUS
12585 echo ': clr' >>$CONFIG_STATUS
12586 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12587 echo 'CEOF
12588 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12589 rm -f $tmp/in
12590 mv $tmp/out $tmp/in
12591 ' >>$CONFIG_STATUS
12592 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12593 rm -f conftest.defines
12594 mv conftest.tail conftest.defines
12595 done
12596 rm -f conftest.defines
12597 echo ' fi # grep' >>$CONFIG_STATUS
12598 echo >>$CONFIG_STATUS
12600 # Break up conftest.undefs because some shells have a limit on the size
12601 # of here documents, and old seds have small limits too (100 cmds).
12602 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12603 rm -f conftest.tail
12604 while grep . conftest.undefs >/dev/null
12606 # Write a limited-size here document to $tmp/undefs.sed.
12607 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12608 # Speed up: don't consider the non `#undef'
12609 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12610 # Work around the forget-to-reset-the-flag bug.
12611 echo 't clr' >>$CONFIG_STATUS
12612 echo ': clr' >>$CONFIG_STATUS
12613 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12614 echo 'CEOF
12615 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12616 rm -f $tmp/in
12617 mv $tmp/out $tmp/in
12618 ' >>$CONFIG_STATUS
12619 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12620 rm -f conftest.undefs
12621 mv conftest.tail conftest.undefs
12622 done
12623 rm -f conftest.undefs
12625 cat >>$CONFIG_STATUS <<\_ACEOF
12626 # Let's still pretend it is `configure' which instantiates (i.e., don't
12627 # use $as_me), people would be surprised to read:
12628 # /* config.h. Generated by config.status. */
12629 if test x"$ac_file" = x-; then
12630 echo "/* Generated by configure. */" >$tmp/config.h
12631 else
12632 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12634 cat $tmp/in >>$tmp/config.h
12635 rm -f $tmp/in
12636 if test x"$ac_file" != x-; then
12637 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12638 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12639 echo "$as_me: $ac_file is unchanged" >&6;}
12640 else
12641 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12643 X"$ac_file" : 'X\(//\)[^/]' \| \
12644 X"$ac_file" : 'X\(//\)$' \| \
12645 X"$ac_file" : 'X\(/\)' \| \
12646 . : '\(.\)' 2>/dev/null ||
12647 echo X"$ac_file" |
12648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12650 /^X\(\/\/\)$/{ s//\1/; q; }
12651 /^X\(\/\).*/{ s//\1/; q; }
12652 s/.*/./; q'`
12653 { if $as_mkdir_p; then
12654 mkdir -p "$ac_dir"
12655 else
12656 as_dir="$ac_dir"
12657 as_dirs=
12658 while test ! -d "$as_dir"; do
12659 as_dirs="$as_dir $as_dirs"
12660 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12662 X"$as_dir" : 'X\(//\)[^/]' \| \
12663 X"$as_dir" : 'X\(//\)$' \| \
12664 X"$as_dir" : 'X\(/\)' \| \
12665 . : '\(.\)' 2>/dev/null ||
12666 echo X"$as_dir" |
12667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12669 /^X\(\/\/\)$/{ s//\1/; q; }
12670 /^X\(\/\).*/{ s//\1/; q; }
12671 s/.*/./; q'`
12672 done
12673 test ! -n "$as_dirs" || mkdir $as_dirs
12674 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12675 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12676 { (exit 1); exit 1; }; }; }
12678 rm -f $ac_file
12679 mv $tmp/config.h $ac_file
12681 else
12682 cat $tmp/config.h
12683 rm -f $tmp/config.h
12685 # Compute $ac_file's index in $config_headers.
12686 _am_stamp_count=1
12687 for _am_header in $config_headers :; do
12688 case $_am_header in
12689 $ac_file | $ac_file:* )
12690 break ;;
12692 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12693 esac
12694 done
12695 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12696 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12697 X$ac_file : 'X\(//\)[^/]' \| \
12698 X$ac_file : 'X\(//\)$' \| \
12699 X$ac_file : 'X\(/\)' \| \
12700 . : '\(.\)' 2>/dev/null ||
12701 echo X$ac_file |
12702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12704 /^X\(\/\/\)$/{ s//\1/; q; }
12705 /^X\(\/\).*/{ s//\1/; q; }
12706 s/.*/./; q'`/stamp-h$_am_stamp_count
12707 done
12708 _ACEOF
12709 cat >>$CONFIG_STATUS <<\_ACEOF
12712 # CONFIG_COMMANDS section.
12714 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12715 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12716 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12717 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12718 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12719 X"$ac_dest" : 'X\(//\)[^/]' \| \
12720 X"$ac_dest" : 'X\(//\)$' \| \
12721 X"$ac_dest" : 'X\(/\)' \| \
12722 . : '\(.\)' 2>/dev/null ||
12723 echo X"$ac_dest" |
12724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12725 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12726 /^X\(\/\/\)$/{ s//\1/; q; }
12727 /^X\(\/\).*/{ s//\1/; q; }
12728 s/.*/./; q'`
12729 { if $as_mkdir_p; then
12730 mkdir -p "$ac_dir"
12731 else
12732 as_dir="$ac_dir"
12733 as_dirs=
12734 while test ! -d "$as_dir"; do
12735 as_dirs="$as_dir $as_dirs"
12736 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12737 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12738 X"$as_dir" : 'X\(//\)[^/]' \| \
12739 X"$as_dir" : 'X\(//\)$' \| \
12740 X"$as_dir" : 'X\(/\)' \| \
12741 . : '\(.\)' 2>/dev/null ||
12742 echo X"$as_dir" |
12743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12744 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12745 /^X\(\/\/\)$/{ s//\1/; q; }
12746 /^X\(\/\).*/{ s//\1/; q; }
12747 s/.*/./; q'`
12748 done
12749 test ! -n "$as_dirs" || mkdir $as_dirs
12750 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12751 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12752 { (exit 1); exit 1; }; }; }
12754 ac_builddir=.
12756 if test "$ac_dir" != .; then
12757 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12758 # A "../" for each directory in $ac_dir_suffix.
12759 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12760 else
12761 ac_dir_suffix= ac_top_builddir=
12764 case $srcdir in
12765 .) # No --srcdir option. We are building in place.
12766 ac_srcdir=.
12767 if test -z "$ac_top_builddir"; then
12768 ac_top_srcdir=.
12769 else
12770 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12771 fi ;;
12772 [\\/]* | ?:[\\/]* ) # Absolute path.
12773 ac_srcdir=$srcdir$ac_dir_suffix;
12774 ac_top_srcdir=$srcdir ;;
12775 *) # Relative path.
12776 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12777 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12778 esac
12780 # Do not use `cd foo && pwd` to compute absolute paths, because
12781 # the directories may not exist.
12782 case `pwd` in
12783 .) ac_abs_builddir="$ac_dir";;
12785 case "$ac_dir" in
12786 .) ac_abs_builddir=`pwd`;;
12787 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12788 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12789 esac;;
12790 esac
12791 case $ac_abs_builddir in
12792 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12794 case ${ac_top_builddir}. in
12795 .) ac_abs_top_builddir=$ac_abs_builddir;;
12796 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12797 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12798 esac;;
12799 esac
12800 case $ac_abs_builddir in
12801 .) ac_abs_srcdir=$ac_srcdir;;
12803 case $ac_srcdir in
12804 .) ac_abs_srcdir=$ac_abs_builddir;;
12805 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12806 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12807 esac;;
12808 esac
12809 case $ac_abs_builddir in
12810 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12812 case $ac_top_srcdir in
12813 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12814 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12815 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12816 esac;;
12817 esac
12820 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12821 echo "$as_me: executing $ac_dest commands" >&6;}
12822 case $ac_dest in
12823 default-1 )
12824 # Only add multilib support code if we just rebuilt the top-level
12825 # Makefile.
12826 case " $CONFIG_FILES " in
12827 *" Makefile "*)
12828 ac_file=Makefile . ${multi_basedir}/config-ml.in
12830 esac ;;
12831 esac
12832 done
12833 _ACEOF
12835 cat >>$CONFIG_STATUS <<\_ACEOF
12837 { (exit 0); exit 0; }
12838 _ACEOF
12839 chmod +x $CONFIG_STATUS
12840 ac_clean_files=$ac_clean_files_save
12843 # configure is writing to config.log, and then calls config.status.
12844 # config.status does its own redirection, appending to config.log.
12845 # Unfortunately, on DOS this fails, as config.log is still kept open
12846 # by configure, so config.status won't be able to write to it; its
12847 # output is simply discarded. So we exec the FD to /dev/null,
12848 # effectively closing config.log, so it can be properly (re)opened and
12849 # appended to by config.status. When coming back to configure, we
12850 # need to make the FD available again.
12851 if test "$no_create" != yes; then
12852 ac_cs_success=:
12853 ac_config_status_args=
12854 test "$silent" = yes &&
12855 ac_config_status_args="$ac_config_status_args --quiet"
12856 exec 5>/dev/null
12857 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12858 exec 5>>config.log
12859 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12860 # would make configure fail if this is the last instruction.
12861 $ac_cs_success || { (exit 1); exit 1; }