OSDN Git Service

config/:
[pf3gnuchains/gcc-fork.git] / libgfortran / configure
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.
4 #
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 ## --------------------- ##
11
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
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
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
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
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
48   fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
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
111 do
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
116
117        ;;
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
123   fi
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; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
137          /*)
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
153 ;;
154   esac
155
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 '
166       N
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; }; }
177
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
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
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'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
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
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
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`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
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}
261
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}
266
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=''
273
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"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT AM_FCFLAGS AM_CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL enable_shared enable_static FC FCFLAGS LDFLAGS ac_ct_FC extra_ldflags_libgfortran CPP CPPFLAGS EGREP MATH_OBJ LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
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
333
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'
351
352 ac_prev=
353 for ac_option
354 do
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
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
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 ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
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 ;;
393
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" ;;
402
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'" ;;
415
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 ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
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 ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
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 ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
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 ;;
464
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 ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
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 ;;
490
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 ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
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 ;;
511
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 ;;
518
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 ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
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 ;;
545
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 ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
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 ;;
573
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 ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
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'" ;;
597
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" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
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 ;;
617
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 ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
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 ;;
639
640   *)
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}
646     ;;
647
648   esac
649 done
650
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; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
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
667
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
671 do
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
679
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
686
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
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
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=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
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; }; }
734   fi
735 fi
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
772
773 #
774 # Report the --help message.
775 #
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.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
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.
786
787 Defaults for the options are specified in brackets.
788
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 \`..']
799
800 _ACEOF
801
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]
808
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'.
813
814 For better control, use the options below.
815
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
830
831   cat <<\_ACEOF
832
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
837
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
843 fi
844
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
850
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
864
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
870
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
881
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.
884
885 _ACEOF
886 fi
887
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=.
894
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=
901 fi
902
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
918
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";;
923 *)
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}.;;
932 *)
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;;
941 *)
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;;
950 *)
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
957
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
972     fi
973     cd $ac_popdir
974   done
975 fi
976
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
982
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
988 fi
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.
993
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
996
997   $ $0 $@
998
999 _ACEOF
1000 {
1001 cat <<_ASUNAME
1002 ## --------- ##
1003 ## Platform. ##
1004 ## --------- ##
1005
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`
1011
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`
1014
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`
1022
1023 _ASUNAME
1024
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026 for as_dir in $PATH
1027 do
1028   IFS=$as_save_IFS
1029   test -z "$as_dir" && as_dir=.
1030   echo "PATH: $as_dir"
1031 done
1032
1033 } >&5
1034
1035 cat >&5 <<_ACEOF
1036
1037
1038 ## ----------- ##
1039 ## Core tests. ##
1040 ## ----------- ##
1041
1042 _ACEOF
1043
1044
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
1056 do
1057   for ac_arg
1058   do
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'" ;;
1069     2)
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
1082             ;;
1083           -* ) ac_must_keep_next=true ;;
1084         esac
1085       fi
1086       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087       # Get rid of the leading space.
1088       ac_sep=" "
1089       ;;
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; }
1095
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.
1103   {
1104     echo
1105
1106     cat <<\_ASBOX
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1110 _ASBOX
1111     echo
1112     # The following way of writing the cache mishandles newlines in values,
1113 {
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"
1120       ;;
1121     *)
1122       sed -n \
1123         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124       ;;
1125     esac;
1126 }
1127     echo
1128
1129     cat <<\_ASBOX
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1133 _ASBOX
1134     echo
1135     for ac_var in $ac_subst_vars
1136     do
1137       eval ac_val=$`echo $ac_var`
1138       echo "$ac_var='"'"'$ac_val'"'"'"
1139     done | sort
1140     echo
1141
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
1150       do
1151         eval ac_val=$`echo $ac_var`
1152         echo "$ac_var='"'"'$ac_val'"'"'"
1153       done | sort
1154       echo
1155     fi
1156
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
1166     fi
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
1174      ' 0
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
1179
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
1184
1185 # Predefined preprocessor variables.
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209 _ACEOF
1210
1211
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"
1219   fi
1220 fi
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"
1227   fi
1228 done
1229
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
1240   fi
1241 else
1242   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1244   >$cache_file
1245 fi
1246
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     ,);;
1266     *)
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
1288   fi
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; }; }
1296 fi
1297
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
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330           ac_config_headers="$ac_config_headers config.h"
1331
1332
1333 # -------
1334 # Options
1335 # -------
1336
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
1351 fi;
1352 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1353 echo "${ECHO_T}$version_specific_libs" >&6
1354
1355
1356 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1357 #
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/.
1360 #
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.  :-)
1365 #
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.
1368 #
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
1385   fi
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; }; }
1391 fi
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.
1395
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; }; }
1401
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; }; }
1418
1419 fi
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/'`
1426
1427
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; }; }
1440
1441 fi
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/'`
1448
1449
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; }; }
1462
1463 fi
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/'`
1470
1471
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}
1479
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
1513 do
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/* ) ;;
1522   *)
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.
1532             :
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.
1536             :
1537           else
1538             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1539             break 3
1540           fi
1541         fi
1542       done
1543     done
1544     ;;
1545 esac
1546 done
1547
1548
1549 fi
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
1558   fi
1559 fi
1560 echo "$as_me:$LINENO: result: $INSTALL" >&5
1561 echo "${ECHO_T}$INSTALL" >&6
1562
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}'
1566
1567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1568
1569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1570
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`
1586    fi
1587    rm -f conftest.file
1588    if test "$*" != "X $srcdir/configure conftest.file" \
1589       && test "$*" != "X conftest.file $srcdir/configure"; then
1590
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; }; }
1600    fi
1601
1602    test "$2" = conftest.file
1603    )
1604 then
1605    # Ok.
1606    :
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; }; }
1613 fi
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
1628
1629 # expand $ac_aux_dir to an absolute path
1630 am_aux_dir=`cd $ac_aux_dir && pwd`
1631
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;}
1640 fi
1641
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;
1664   do
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'
1672   fi
1673 fi
1674
1675 for ac_prog in gawk mawk nawk awk
1676 do
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
1689 do
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
1697   fi
1698 done
1699 done
1700
1701 fi
1702 fi
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
1710 fi
1711
1712   test -n "$AWK" && break
1713 done
1714
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
1731 fi
1732 rm -f conftest.make
1733 fi
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}"
1742 fi
1743
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=_
1750 fi
1751 rmdir .tst 2>/dev/null
1752
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; }; }
1759 fi
1760
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
1767   fi
1768 fi
1769
1770
1771 # Define the identity of the package.
1772  PACKAGE='libgfortran'
1773  VERSION='0.2'
1774
1775
1776 # Some tools Automake needs.
1777
1778 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1779
1780
1781 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1782
1783
1784 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1785
1786
1787 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1788
1789
1790 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1791
1792 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1793
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
1812 do
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
1820   fi
1821 done
1822 done
1823
1824 fi
1825 fi
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
1833 fi
1834
1835 fi
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
1850 do
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
1858   fi
1859 done
1860 done
1861
1862   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1863 fi
1864 fi
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
1872 fi
1873
1874   STRIP=$ac_ct_STRIP
1875 else
1876   STRIP="$ac_cv_prog_STRIP"
1877 fi
1878
1879 fi
1880 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1881
1882 # We need awk for the "check" target.  The system "awk" is bad on
1883 # some platforms.
1884 # Always define AMTAR for backward compatibility.
1885
1886 AMTAR=${AMTAR-"${am_missing_run}tar"}
1887
1888 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1889
1890
1891
1892
1893
1894
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
1903 fi;
1904   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1905 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1906
1907
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=
1914 fi
1915
1916   MAINT=$MAINTAINER_MODE_TRUE
1917
1918
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
1932 fi;
1933
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.
1937
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.."
1943   fi
1944 else
1945   multi_basedir="$srcdir/.."
1946 fi
1947
1948
1949           ac_config_commands="$ac_config_commands default-1"
1950
1951
1952 # Handy for debugging:
1953 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1954
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
1961 else
1962   LIBGFOR_IS_NATIVE=true
1963 fi
1964
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)'
1974     ;;
1975   no)
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)'
1984     fi
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
1990     ;;
1991 esac
1992
1993
1994
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.
2000
2001
2002
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
2021 do
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
2029   fi
2030 done
2031 done
2032
2033 fi
2034 fi
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
2042 fi
2043
2044 fi
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
2059 do
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
2067   fi
2068 done
2069 done
2070
2071 fi
2072 fi
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
2080 fi
2081
2082   CC=$ac_ct_CC
2083 else
2084   CC="$ac_cv_prog_CC"
2085 fi
2086
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
2101 do
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
2109   fi
2110 done
2111 done
2112
2113 fi
2114 fi
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
2122 fi
2123
2124 fi
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
2139 do
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
2147   fi
2148 done
2149 done
2150
2151 fi
2152 fi
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
2160 fi
2161
2162   CC=$ac_ct_CC
2163 else
2164   CC="$ac_cv_prog_CC"
2165 fi
2166
2167 fi
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
2182 do
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
2190      fi
2191     ac_cv_prog_CC="cc"
2192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193     break 2
2194   fi
2195 done
2196 done
2197
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+' '}$@"
2208   fi
2209 fi
2210 fi
2211 fi
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
2219 fi
2220
2221 fi
2222 if test -z "$CC"; then
2223   if test -n "$ac_tool_prefix"; then
2224   for ac_prog in cl
2225   do
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
2238 do
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
2246   fi
2247 done
2248 done
2249
2250 fi
2251 fi
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
2259 fi
2260
2261     test -n "$CC" && break
2262   done
2263 fi
2264 if test -z "$CC"; then
2265   ac_ct_CC=$CC
2266   for ac_prog in cl
2267 do
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
2280 do
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
2288   fi
2289 done
2290 done
2291
2292 fi
2293 fi
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
2301 fi
2302
2303   test -n "$ac_ct_CC" && break
2304 done
2305
2306   CC=$ac_ct_CC
2307 fi
2308
2309 fi
2310
2311
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; }; }
2317
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); }
2337
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.  */
2344
2345 int
2346 main ()
2347 {
2348
2349   ;
2350   return 0;
2351 }
2352 _ACEOF
2353 # FIXME: Cleanup?
2354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2355   (eval $ac_link) 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); }; then
2359   gcc_no_link=no
2360 else
2361   gcc_no_link=yes
2362 fi
2363
2364 if test x$gcc_no_link = xyes; then
2365   # Setting cross_compile will disable run tests; it will
2366   # also disable AC_CHECK_FILE but that's generally
2367   # correct if we can't link.
2368   cross_compiling=yes
2369   EXEEXT=
2370 else
2371   cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h.  */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h.  */
2377
2378 int
2379 main ()
2380 {
2381
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 ac_clean_files_save=$ac_clean_files
2387 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2388 # Try to create an executable without -o first, disregard a.out.
2389 # It will help us diagnose broken compilers, and finding out an intuition
2390 # of exeext.
2391 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2392 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2393 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2394 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2395   (eval $ac_link_default) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; then
2399   # Find the output, starting from the most likely.  This scheme is
2400 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2401 # resort.
2402
2403 # Be careful to initialize this variable, since it used to be cached.
2404 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2405 ac_cv_exeext=
2406 # b.out is created by i960 compilers.
2407 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2408 do
2409   test -f "$ac_file" || continue
2410   case $ac_file in
2411     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2412         ;;
2413     conftest.$ac_ext )
2414         # This is the source file.
2415         ;;
2416     [ab].out )
2417         # We found the default executable, but exeext='' is most
2418         # certainly right.
2419         break;;
2420     *.* )
2421         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422         # FIXME: I believe we export ac_cv_exeext for Libtool,
2423         # but it would be cool to find out if it's true.  Does anybody
2424         # maintain Libtool? --akim.
2425         export ac_cv_exeext
2426         break;;
2427     * )
2428         break;;
2429   esac
2430 done
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: C compiler cannot create executables
2438 See \`config.log' for more details." >&2;}
2439    { (exit 77); exit 77; }; }
2440 fi
2441
2442 ac_exeext=$ac_cv_exeext
2443 echo "$as_me:$LINENO: result: $ac_file" >&5
2444 echo "${ECHO_T}$ac_file" >&6
2445
2446 # Check the compiler produces executables we can run.  If not, either
2447 # the compiler is broken, or we cross compile.
2448 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2449 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2450 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2451 # If not cross compiling, check that we can run a simple program.
2452 if test "$cross_compiling" != yes; then
2453   if { ac_try='./$ac_file'
2454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455   (eval $ac_try) 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }; }; then
2459     cross_compiling=no
2460   else
2461     if test "$cross_compiling" = maybe; then
2462         cross_compiling=yes
2463     else
2464         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2465 If you meant to cross compile, use \`--host'.
2466 See \`config.log' for more details." >&5
2467 echo "$as_me: error: cannot run C compiled programs.
2468 If you meant to cross compile, use \`--host'.
2469 See \`config.log' for more details." >&2;}
2470    { (exit 1); exit 1; }; }
2471     fi
2472   fi
2473 fi
2474 echo "$as_me:$LINENO: result: yes" >&5
2475 echo "${ECHO_T}yes" >&6
2476
2477 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2478 ac_clean_files=$ac_clean_files_save
2479 # Check the compiler produces executables we can run.  If not, either
2480 # the compiler is broken, or we cross compile.
2481 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2482 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2483 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2484 echo "${ECHO_T}$cross_compiling" >&6
2485
2486 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2487 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2489   (eval $ac_link) 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }; then
2493   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2494 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2495 # work properly (i.e., refer to `conftest.exe'), while it won't with
2496 # `rm'.
2497 for ac_file in conftest.exe conftest conftest.*; do
2498   test -f "$ac_file" || continue
2499   case $ac_file in
2500     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2501     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2502           export ac_cv_exeext
2503           break;;
2504     * ) break;;
2505   esac
2506 done
2507 else
2508   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2509 See \`config.log' for more details." >&5
2510 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2511 See \`config.log' for more details." >&2;}
2512    { (exit 1); exit 1; }; }
2513 fi
2514
2515 rm -f conftest$ac_cv_exeext
2516 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2517 echo "${ECHO_T}$ac_cv_exeext" >&6
2518
2519 rm -f conftest.$ac_ext
2520 EXEEXT=$ac_cv_exeext
2521 ac_exeext=$EXEEXT
2522 fi
2523 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2524 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2525 if test "${ac_cv_objext+set}" = set; then
2526   echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528   cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h.  */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h.  */
2534
2535 int
2536 main ()
2537 {
2538
2539   ;
2540   return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.o conftest.obj
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545   (eval $ac_compile) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; then
2549   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2550   case $ac_file in
2551     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2552     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2553        break;;
2554   esac
2555 done
2556 else
2557   echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564    { (exit 1); exit 1; }; }
2565 fi
2566
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2568 fi
2569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6
2571 OBJEXT=$ac_cv_objext
2572 ac_objext=$OBJEXT
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578   cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584
2585 int
2586 main ()
2587 {
2588 #ifndef __GNUC__
2589        choke me
2590 #endif
2591
2592   ;
2593   return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598   (eval $ac_compile) 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_c_werror_flag"
2606                          || test ! -s conftest.err'
2607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608   (eval $ac_try) 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }; } &&
2612          { ac_try='test -s conftest.$ac_objext'
2613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614   (eval $ac_try) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; }; then
2618   ac_compiler_gnu=yes
2619 else
2620   echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 ac_compiler_gnu=no
2624 fi
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2627
2628 fi
2629 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2630 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2631 GCC=`test $ac_compiler_gnu = yes && echo yes`
2632 ac_test_CFLAGS=${CFLAGS+set}
2633 ac_save_CFLAGS=$CFLAGS
2634 CFLAGS="-g"
2635 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2636 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2637 if test "${ac_cv_prog_cc_g+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646
2647 int
2648 main ()
2649 {
2650
2651   ;
2652   return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657   (eval $ac_compile) 2>conftest.er1
2658   ac_status=$?
2659   grep -v '^ *+' conftest.er1 >conftest.err
2660   rm -f conftest.er1
2661   cat conftest.err >&5
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); } &&
2664          { ac_try='test -z "$ac_c_werror_flag"
2665                          || test ! -s conftest.err'
2666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667   (eval $ac_try) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; } &&
2671          { ac_try='test -s conftest.$ac_objext'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   ac_cv_prog_cc_g=yes
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 ac_cv_prog_cc_g=no
2683 fi
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 fi
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2688 if test "$ac_test_CFLAGS" = set; then
2689   CFLAGS=$ac_save_CFLAGS
2690 elif test $ac_cv_prog_cc_g = yes; then
2691   if test "$GCC" = yes; then
2692     CFLAGS="-g -O2"
2693   else
2694     CFLAGS="-g"
2695   fi
2696 else
2697   if test "$GCC" = yes; then
2698     CFLAGS="-O2"
2699   else
2700     CFLAGS=
2701   fi
2702 fi
2703 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2704 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2705 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2706   echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708   ac_cv_prog_cc_stdc=no
2709 ac_save_CC=$CC
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h.  */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h.  */
2716 #include <stdarg.h>
2717 #include <stdio.h>
2718 #include <sys/types.h>
2719 #include <sys/stat.h>
2720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2721 struct buf { int x; };
2722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2723 static char *e (p, i)
2724      char **p;
2725      int i;
2726 {
2727   return p[i];
2728 }
2729 static char *f (char * (*g) (char **, int), char **p, ...)
2730 {
2731   char *s;
2732   va_list v;
2733   va_start (v,p);
2734   s = g (p, va_arg (v,int));
2735   va_end (v);
2736   return s;
2737 }
2738
2739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2740    function prototypes and stuff, but not '\xHH' hex character constants.
2741    These don't provoke an error unfortunately, instead are silently treated
2742    as 'x'.  The following induces an error, until -std1 is added to get
2743    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2744    array size at least.  It's necessary to write '\x00'==0 to get something
2745    that's true only with -std1.  */
2746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2747
2748 int test (int i, double x);
2749 struct s1 {int (*f) (int a);};
2750 struct s2 {int (*f) (double a);};
2751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2752 int argc;
2753 char **argv;
2754 int
2755 main ()
2756 {
2757 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 # Don't try gcc -ansi; that turns off useful extensions and
2763 # breaks some systems' header files.
2764 # AIX                   -qlanglvl=ansi
2765 # Ultrix and OSF/1      -std1
2766 # HP-UX 10.20 and later -Ae
2767 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2768 # SVR4                  -Xc -D__EXTENSIONS__
2769 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2770 do
2771   CC="$ac_save_CC $ac_arg"
2772   rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774   (eval $ac_compile) 2>conftest.er1
2775   ac_status=$?
2776   grep -v '^ *+' conftest.er1 >conftest.err
2777   rm -f conftest.er1
2778   cat conftest.err >&5
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); } &&
2781          { ac_try='test -z "$ac_c_werror_flag"
2782                          || test ! -s conftest.err'
2783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; } &&
2788          { ac_try='test -s conftest.$ac_objext'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; }; then
2794   ac_cv_prog_cc_stdc=$ac_arg
2795 break
2796 else
2797   echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2799
2800 fi
2801 rm -f conftest.err conftest.$ac_objext
2802 done
2803 rm -f conftest.$ac_ext conftest.$ac_objext
2804 CC=$ac_save_CC
2805
2806 fi
2807
2808 case "x$ac_cv_prog_cc_stdc" in
2809   x|xno)
2810     echo "$as_me:$LINENO: result: none needed" >&5
2811 echo "${ECHO_T}none needed" >&6 ;;
2812   *)
2813     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2814 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2815     CC="$CC $ac_cv_prog_cc_stdc" ;;
2816 esac
2817
2818 # Some people use a C++ compiler to compile C.  Since we use `exit',
2819 # in C++ we need to declare it.  In case someone uses the same compiler
2820 # for both compiling C and C++ we need to have the C++ compiler decide
2821 # the declaration of exit, since it's the most demanding environment.
2822 cat >conftest.$ac_ext <<_ACEOF
2823 #ifndef __cplusplus
2824   choke me
2825 #endif
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829   (eval $ac_compile) 2>conftest.er1
2830   ac_status=$?
2831   grep -v '^ *+' conftest.er1 >conftest.err
2832   rm -f conftest.er1
2833   cat conftest.err >&5
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); } &&
2836          { ac_try='test -z "$ac_c_werror_flag"
2837                          || test ! -s conftest.err'
2838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839   (eval $ac_try) 2>&5
2840   ac_status=$?
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); }; } &&
2843          { ac_try='test -s conftest.$ac_objext'
2844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845   (eval $ac_try) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; }; then
2849   for ac_declaration in \
2850    '' \
2851    'extern "C" void std::exit (int) throw (); using std::exit;' \
2852    'extern "C" void std::exit (int); using std::exit;' \
2853    'extern "C" void exit (int) throw ();' \
2854    'extern "C" void exit (int);' \
2855    'void exit (int);'
2856 do
2857   cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h.  */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h.  */
2863 $ac_declaration
2864 #include <stdlib.h>
2865 int
2866 main ()
2867 {
2868 exit (42);
2869   ;
2870   return 0;
2871 }
2872 _ACEOF
2873 rm -f conftest.$ac_objext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875   (eval $ac_compile) 2>conftest.er1
2876   ac_status=$?
2877   grep -v '^ *+' conftest.er1 >conftest.err
2878   rm -f conftest.er1
2879   cat conftest.err >&5
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); } &&
2882          { ac_try='test -z "$ac_c_werror_flag"
2883                          || test ! -s conftest.err'
2884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885   (eval $ac_try) 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }; } &&
2889          { ac_try='test -s conftest.$ac_objext'
2890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891   (eval $ac_try) 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; }; then
2895   :
2896 else
2897   echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2899
2900 continue
2901 fi
2902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903   cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h.  */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h.  */
2909 $ac_declaration
2910 int
2911 main ()
2912 {
2913 exit (42);
2914   ;
2915   return 0;
2916 }
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920   (eval $ac_compile) 2>conftest.er1
2921   ac_status=$?
2922   grep -v '^ *+' conftest.er1 >conftest.err
2923   rm -f conftest.er1
2924   cat conftest.err >&5
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); } &&
2927          { ac_try='test -z "$ac_c_werror_flag"
2928                          || test ! -s conftest.err'
2929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930   (eval $ac_try) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; } &&
2934          { ac_try='test -s conftest.$ac_objext'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; }; then
2940   break
2941 else
2942   echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945 fi
2946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2947 done
2948 rm -f conftest*
2949 if test -n "$ac_declaration"; then
2950   echo '#ifdef __cplusplus' >>confdefs.h
2951   echo $ac_declaration      >>confdefs.h
2952   echo '#endif'             >>confdefs.h
2953 fi
2954
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959 fi
2960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961 ac_ext=c
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966
2967
2968
2969 # Add -Wall if we are using GCC.
2970 if test "x$GCC" = "xyes"; then
2971   AM_FCFLAGS="-Wall"
2972   ## We like to use C99 routines when available.  This makes sure that
2973   ## __STDC_VERSION__ is set such that libc includes make them available.
2974   AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
2975 fi
2976
2977
2978
2979 # Find other programs we need.
2980 if test -n "$ac_tool_prefix"; then
2981   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2982 set dummy ${ac_tool_prefix}as; ac_word=$2
2983 echo "$as_me:$LINENO: checking for $ac_word" >&5
2984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2985 if test "${ac_cv_prog_AS+set}" = set; then
2986   echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988   if test -n "$AS"; then
2989   ac_cv_prog_AS="$AS" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994   IFS=$as_save_IFS
2995   test -z "$as_dir" && as_dir=.
2996   for ac_exec_ext in '' $ac_executable_extensions; do
2997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998     ac_cv_prog_AS="${ac_tool_prefix}as"
2999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000     break 2
3001   fi
3002 done
3003 done
3004
3005 fi
3006 fi
3007 AS=$ac_cv_prog_AS
3008 if test -n "$AS"; then
3009   echo "$as_me:$LINENO: result: $AS" >&5
3010 echo "${ECHO_T}$AS" >&6
3011 else
3012   echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6
3014 fi
3015
3016 fi
3017 if test -z "$ac_cv_prog_AS"; then
3018   ac_ct_AS=$AS
3019   # Extract the first word of "as", so it can be a program name with args.
3020 set dummy as; ac_word=$2
3021 echo "$as_me:$LINENO: checking for $ac_word" >&5
3022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3023 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3024   echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026   if test -n "$ac_ct_AS"; then
3027   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032   IFS=$as_save_IFS
3033   test -z "$as_dir" && as_dir=.
3034   for ac_exec_ext in '' $ac_executable_extensions; do
3035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036     ac_cv_prog_ac_ct_AS="as"
3037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3038     break 2
3039   fi
3040 done
3041 done
3042
3043 fi
3044 fi
3045 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3046 if test -n "$ac_ct_AS"; then
3047   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3048 echo "${ECHO_T}$ac_ct_AS" >&6
3049 else
3050   echo "$as_me:$LINENO: result: no" >&5
3051 echo "${ECHO_T}no" >&6
3052 fi
3053
3054   AS=$ac_ct_AS
3055 else
3056   AS="$ac_cv_prog_AS"
3057 fi
3058
3059 if test -n "$ac_tool_prefix"; then
3060   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3061 set dummy ${ac_tool_prefix}ar; ac_word=$2
3062 echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3064 if test "${ac_cv_prog_AR+set}" = set; then
3065   echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067   if test -n "$AR"; then
3068   ac_cv_prog_AR="$AR" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073   IFS=$as_save_IFS
3074   test -z "$as_dir" && as_dir=.
3075   for ac_exec_ext in '' $ac_executable_extensions; do
3076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077     ac_cv_prog_AR="${ac_tool_prefix}ar"
3078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079     break 2
3080   fi
3081 done
3082 done
3083
3084 fi
3085 fi
3086 AR=$ac_cv_prog_AR
3087 if test -n "$AR"; then
3088   echo "$as_me:$LINENO: result: $AR" >&5
3089 echo "${ECHO_T}$AR" >&6
3090 else
3091   echo "$as_me:$LINENO: result: no" >&5
3092 echo "${ECHO_T}no" >&6
3093 fi
3094
3095 fi
3096 if test -z "$ac_cv_prog_AR"; then
3097   ac_ct_AR=$AR
3098   # Extract the first word of "ar", so it can be a program name with args.
3099 set dummy ar; ac_word=$2
3100 echo "$as_me:$LINENO: checking for $ac_word" >&5
3101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3102 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3103   echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105   if test -n "$ac_ct_AR"; then
3106   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111   IFS=$as_save_IFS
3112   test -z "$as_dir" && as_dir=.
3113   for ac_exec_ext in '' $ac_executable_extensions; do
3114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115     ac_cv_prog_ac_ct_AR="ar"
3116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3117     break 2
3118   fi
3119 done
3120 done
3121
3122 fi
3123 fi
3124 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3125 if test -n "$ac_ct_AR"; then
3126   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3127 echo "${ECHO_T}$ac_ct_AR" >&6
3128 else
3129   echo "$as_me:$LINENO: result: no" >&5
3130 echo "${ECHO_T}no" >&6
3131 fi
3132
3133   AR=$ac_ct_AR
3134 else
3135   AR="$ac_cv_prog_AR"
3136 fi
3137
3138 if test -n "$ac_tool_prefix"; then
3139   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3141 echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_RANLIB+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   if test -n "$RANLIB"; then
3147   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152   IFS=$as_save_IFS
3153   test -z "$as_dir" && as_dir=.
3154   for ac_exec_ext in '' $ac_executable_extensions; do
3155   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158     break 2
3159   fi
3160 done
3161 done
3162
3163 fi
3164 fi
3165 RANLIB=$ac_cv_prog_RANLIB
3166 if test -n "$RANLIB"; then
3167   echo "$as_me:$LINENO: result: $RANLIB" >&5
3168 echo "${ECHO_T}$RANLIB" >&6
3169 else
3170   echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3172 fi
3173
3174 fi
3175 if test -z "$ac_cv_prog_RANLIB"; then
3176   ac_ct_RANLIB=$RANLIB
3177   # Extract the first word of "ranlib", so it can be a program name with args.
3178 set dummy ranlib; ac_word=$2
3179 echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3182   echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184   if test -n "$ac_ct_RANLIB"; then
3185   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192   for ac_exec_ext in '' $ac_executable_extensions; do
3193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194     ac_cv_prog_ac_ct_RANLIB="ranlib"
3195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199 done
3200
3201   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3202 fi
3203 fi
3204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3205 if test -n "$ac_ct_RANLIB"; then
3206   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3207 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3208 else
3209   echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3211 fi
3212
3213   RANLIB=$ac_ct_RANLIB
3214 else
3215   RANLIB="$ac_cv_prog_RANLIB"
3216 fi
3217
3218 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3219 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3220 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3221 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3222   echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224   cat >conftest.make <<\_ACEOF
3225 all:
3226         @echo 'ac_maketemp="$(MAKE)"'
3227 _ACEOF
3228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3229 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3230 if test -n "$ac_maketemp"; then
3231   eval ac_cv_prog_make_${ac_make}_set=yes
3232 else
3233   eval ac_cv_prog_make_${ac_make}_set=no
3234 fi
3235 rm -f conftest.make
3236 fi
3237 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3238   echo "$as_me:$LINENO: result: yes" >&5
3239 echo "${ECHO_T}yes" >&6
3240   SET_MAKE=
3241 else
3242   echo "$as_me:$LINENO: result: no" >&5
3243 echo "${ECHO_T}no" >&6
3244   SET_MAKE="MAKE=${MAKE-make}"
3245 fi
3246
3247 # Find a good install program.  We prefer a C program (faster),
3248 # so one script is as good as another.  But avoid the broken or
3249 # incompatible versions:
3250 # SysV /etc/install, /usr/sbin/install
3251 # SunOS /usr/etc/install
3252 # IRIX /sbin/install
3253 # AIX /bin/install
3254 # AmigaOS /C/install, which installs bootblocks on floppy discs
3255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3258 # OS/2's system install, which has a completely different semantic
3259 # ./install, which can be erroneously created by make from ./install.sh.
3260 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3261 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3262 if test -z "$INSTALL"; then
3263 if test "${ac_cv_path_install+set}" = set; then
3264   echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271   # Account for people who put trailing slashes in PATH elements.
3272 case $as_dir/ in
3273   ./ | .// | /cC/* | \
3274   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3275   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3276   /usr/ucb/* ) ;;
3277   *)
3278     # OSF1 and SCO ODT 3.0 have their own names for install.
3279     # Don't use installbsd from OSF since it installs stuff as root
3280     # by default.
3281     for ac_prog in ginstall scoinst install; do
3282       for ac_exec_ext in '' $ac_executable_extensions; do
3283         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3284           if test $ac_prog = install &&
3285             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3286             # AIX install.  It has an incompatible calling convention.
3287             :
3288           elif test $ac_prog = install &&
3289             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3290             # program-specific install script used by HP pwplus--don't use.
3291             :
3292           else
3293             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3294             break 3
3295           fi
3296         fi
3297       done
3298     done
3299     ;;
3300 esac
3301 done
3302
3303
3304 fi
3305   if test "${ac_cv_path_install+set}" = set; then
3306     INSTALL=$ac_cv_path_install
3307   else
3308     # As a last resort, use the slow shell script.  We don't cache a
3309     # path for INSTALL within a source directory, because that will
3310     # break other packages using the cache if that directory is
3311     # removed, or if the path is relative.
3312     INSTALL=$ac_install_sh
3313   fi
3314 fi
3315 echo "$as_me:$LINENO: result: $INSTALL" >&5
3316 echo "${ECHO_T}$INSTALL" >&6
3317
3318 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3319 # It thinks the first close brace ends the variable substitution.
3320 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3321
3322 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3323
3324 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3325
3326
3327 # Configure libtool
3328 #AC_MSG_NOTICE([====== Starting libtool configuration])
3329
3330 # Check whether --enable-shared or --disable-shared was given.
3331 if test "${enable_shared+set}" = set; then
3332   enableval="$enable_shared"
3333   p=${PACKAGE-default}
3334 case $enableval in
3335 yes) enable_shared=yes ;;
3336 no) enable_shared=no ;;
3337 *)
3338   enable_shared=no
3339   # Look at the argument we got.  We use all the common list separators.
3340   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3341   for pkg in $enableval; do
3342     if test "X$pkg" = "X$p"; then
3343       enable_shared=yes
3344     fi
3345   done
3346   IFS="$ac_save_ifs"
3347   ;;
3348 esac
3349 else
3350   enable_shared=yes
3351 fi;
3352 # Check whether --enable-static or --disable-static was given.
3353 if test "${enable_static+set}" = set; then
3354   enableval="$enable_static"
3355   p=${PACKAGE-default}
3356 case $enableval in
3357 yes) enable_static=yes ;;
3358 no) enable_static=no ;;
3359 *)
3360   enable_static=no
3361   # Look at the argument we got.  We use all the common list separators.
3362   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3363   for pkg in $enableval; do
3364     if test "X$pkg" = "X$p"; then
3365       enable_static=yes
3366     fi
3367   done
3368   IFS="$ac_save_ifs"
3369   ;;
3370 esac
3371 else
3372   enable_static=yes
3373 fi;
3374 # Check whether --enable-fast-install or --disable-fast-install was given.
3375 if test "${enable_fast_install+set}" = set; then
3376   enableval="$enable_fast_install"
3377   p=${PACKAGE-default}
3378 case $enableval in
3379 yes) enable_fast_install=yes ;;
3380 no) enable_fast_install=no ;;
3381 *)
3382   enable_fast_install=no
3383   # Look at the argument we got.  We use all the common list separators.
3384   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3385   for pkg in $enableval; do
3386     if test "X$pkg" = "X$p"; then
3387       enable_fast_install=yes
3388     fi
3389   done
3390   IFS="$ac_save_ifs"
3391   ;;
3392 esac
3393 else
3394   enable_fast_install=yes
3395 fi;
3396
3397 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3398 if test "${with_gnu_ld+set}" = set; then
3399   withval="$with_gnu_ld"
3400   test "$withval" = no || with_gnu_ld=yes
3401 else
3402   with_gnu_ld=no
3403 fi;
3404 ac_prog=ld
3405 if test "$GCC" = yes; then
3406   # Check if gcc -print-prog-name=ld gives a path.
3407   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3408 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3409   case $host in
3410   *-*-mingw*)
3411     # gcc leaves a trailing carriage return which upsets mingw
3412     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3413   *)
3414     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3415   esac
3416   case $ac_prog in
3417     # Accept absolute paths.
3418     [\\/]* | [A-Za-z]:[\\/]*)
3419       re_direlt='/[^/][^/]*/\.\./'
3420       # Canonicalize the path of ld
3421       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3422       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3423         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3424       done
3425       test -z "$LD" && LD="$ac_prog"
3426       ;;
3427   "")
3428     # If it fails, then pretend we aren't using GCC.
3429     ac_prog=ld
3430     ;;
3431   *)
3432     # If it is relative, then search for the first ld in PATH.
3433     with_gnu_ld=unknown
3434     ;;
3435   esac
3436 elif test "$with_gnu_ld" = yes; then
3437   echo "$as_me:$LINENO: checking for GNU ld" >&5
3438 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3439 else
3440   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3441 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3442 fi
3443 if test "${lt_cv_path_LD+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446   if test -z "$LD"; then
3447   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3448   for ac_dir in $PATH; do
3449     test -z "$ac_dir" && ac_dir=.
3450     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3451       lt_cv_path_LD="$ac_dir/$ac_prog"
3452       # Check to see if the program is GNU ld.  I'd rather use --version,
3453       # but apparently some GNU ld's only accept -v.
3454       # Break only if it was the GNU/non-GNU ld that we prefer.
3455       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3456         test "$with_gnu_ld" != no && break
3457       else
3458         test "$with_gnu_ld" != yes && break
3459       fi
3460     fi
3461   done
3462   IFS="$ac_save_ifs"
3463 else
3464   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3465 fi
3466 fi
3467
3468 LD="$lt_cv_path_LD"
3469 if test -n "$LD"; then
3470   echo "$as_me:$LINENO: result: $LD" >&5
3471 echo "${ECHO_T}$LD" >&6
3472 else
3473   echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6
3475 fi
3476 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3477 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3478    { (exit 1); exit 1; }; }
3479 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3480 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3481 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3482   echo $ECHO_N "(cached) $ECHO_C" >&6
3483 else
3484   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3485 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3486   lt_cv_prog_gnu_ld=yes
3487 else
3488   lt_cv_prog_gnu_ld=no
3489 fi
3490 fi
3491 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3492 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3493 with_gnu_ld=$lt_cv_prog_gnu_ld
3494
3495
3496 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3497 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3498 if test "${lt_cv_ld_reload_flag+set}" = set; then
3499   echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501   lt_cv_ld_reload_flag='-r'
3502 fi
3503 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3504 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3505 reload_flag=$lt_cv_ld_reload_flag
3506 test -n "$reload_flag" && reload_flag=" $reload_flag"
3507
3508 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3509 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3510 if test "${lt_cv_path_NM+set}" = set; then
3511   echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513   if test -n "$NM"; then
3514   # Let the user override the test.
3515   lt_cv_path_NM="$NM"
3516 else
3517   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3518   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3519     test -z "$ac_dir" && ac_dir=.
3520     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3521     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3522       # Check to see if the nm accepts a BSD-compat flag.
3523       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3524       #   nm: unknown option "B" ignored
3525       # Tru64's nm complains that /dev/null is an invalid object file
3526       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3527         lt_cv_path_NM="$tmp_nm -B"
3528         break
3529       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3530         lt_cv_path_NM="$tmp_nm -p"
3531         break
3532       else
3533         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3534         continue # so that we can try to find one that supports BSD flags
3535       fi
3536     fi
3537   done
3538   IFS="$ac_save_ifs"
3539   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3540 fi
3541 fi
3542
3543 NM="$lt_cv_path_NM"
3544 echo "$as_me:$LINENO: result: $NM" >&5
3545 echo "${ECHO_T}$NM" >&6
3546
3547 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3548 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3549 LN_S=$as_ln_s
3550 if test "$LN_S" = "ln -s"; then
3551   echo "$as_me:$LINENO: result: yes" >&5
3552 echo "${ECHO_T}yes" >&6
3553 else
3554   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3555 echo "${ECHO_T}no, using $LN_S" >&6
3556 fi
3557
3558 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3559 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3560 if test "${lt_cv_deplibs_check_method+set}" = set; then
3561   echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563   lt_cv_file_magic_cmd='$MAGIC_CMD'
3564 lt_cv_file_magic_test_file=
3565 lt_cv_deplibs_check_method='unknown'
3566 # Need to set the preceding variable on all platforms that support
3567 # interlibrary dependencies.
3568 # 'none' -- dependencies not supported.
3569 # `unknown' -- same as none, but documents that we really don't know.
3570 # 'pass_all' -- all dependencies passed with no checks.
3571 # 'test_compile' -- check by making test program.
3572 # 'file_magic [regex]' -- check by looking for files in library path
3573 # which responds to the $file_magic_cmd with a given egrep regex.
3574 # If you have `file' or equivalent on your system and you're not sure
3575 # whether `pass_all' will *always* work, you probably want this one.
3576
3577 case $host_os in
3578 aix*)
3579   lt_cv_deplibs_check_method=pass_all
3580   ;;
3581
3582 beos*)
3583   lt_cv_deplibs_check_method=pass_all
3584   ;;
3585
3586 bsdi4*)
3587   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3588   lt_cv_file_magic_cmd='/usr/bin/file -L'
3589   lt_cv_file_magic_test_file=/shlib/libc.so
3590   ;;
3591
3592 cygwin* | mingw* |pw32*)
3593   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3594   lt_cv_file_magic_cmd='$OBJDUMP -f'
3595   ;;
3596
3597 darwin* | rhapsody*)
3598   # this will be overwritten by pass_all, but leave it in just in case
3599   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3600   lt_cv_file_magic_cmd='/usr/bin/file -L'
3601   case "$host_os" in
3602   rhapsody* | darwin1.012)
3603     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3604     ;;
3605   *) # Darwin 1.3 on
3606     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3607     ;;
3608   esac
3609   lt_cv_deplibs_check_method=pass_all
3610   ;;
3611
3612 freebsd* | kfreebsd*-gnu)
3613   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3614     case $host_cpu in
3615     i*86 )
3616       # Not sure whether the presence of OpenBSD here was a mistake.
3617       # Let's accept both of them until this is cleared up.
3618       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3619       lt_cv_file_magic_cmd=/usr/bin/file
3620       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3621       ;;
3622     esac
3623   else
3624     lt_cv_deplibs_check_method=pass_all
3625   fi
3626   ;;
3627
3628 gnu*)
3629   lt_cv_deplibs_check_method=pass_all
3630   ;;
3631
3632 hpux10.20*|hpux11*)
3633   case $host_cpu in
3634   hppa*)
3635     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3636     lt_cv_file_magic_cmd=/usr/bin/file
3637     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3638     ;;
3639   ia64*)
3640     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3641     lt_cv_file_magic_cmd=/usr/bin/file
3642     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3643     ;;
3644   esac
3645   ;;
3646
3647 irix5* | irix6*)
3648   case $host_os in
3649   irix5*)
3650     # this will be overridden with pass_all, but let us keep it just in case
3651     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3652     ;;
3653   *)
3654     case $LD in
3655     *-32|*"-32 ") libmagic=32-bit;;
3656     *-n32|*"-n32 ") libmagic=N32;;
3657     *-64|*"-64 ") libmagic=64-bit;;
3658     *) libmagic=never-match;;
3659     esac
3660     # this will be overridden with pass_all, but let us keep it just in case
3661     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3662     ;;
3663   esac
3664   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3665   lt_cv_deplibs_check_method=pass_all
3666   ;;
3667
3668 # This must be Linux ELF.
3669 linux-gnu*)
3670   lt_cv_deplibs_check_method=pass_all
3671   ;;
3672
3673 netbsd* | knetbsd*-gnu)
3674   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3675     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3676   else
3677     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3678   fi
3679   ;;
3680
3681 newsos6)
3682   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3683   lt_cv_file_magic_cmd=/usr/bin/file
3684   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3685   ;;
3686
3687 osf3* | osf4* | osf5*)
3688   # this will be overridden with pass_all, but let us keep it just in case
3689   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3690   lt_cv_file_magic_test_file=/shlib/libc.so
3691   lt_cv_deplibs_check_method=pass_all
3692   ;;
3693
3694 sco3.2v5*)
3695   lt_cv_deplibs_check_method=pass_all
3696   ;;
3697
3698 solaris*)
3699   lt_cv_deplibs_check_method=pass_all
3700   lt_cv_file_magic_test_file=/lib/libc.so
3701   ;;
3702
3703 sysv5uw[78]* | sysv4*uw2*)
3704   lt_cv_deplibs_check_method=pass_all
3705   ;;
3706
3707 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3708   case $host_vendor in
3709   ncr)
3710     lt_cv_deplibs_check_method=pass_all
3711     ;;
3712   motorola)
3713     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3714     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3715     ;;
3716   esac
3717   ;;
3718 esac
3719
3720 fi
3721 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3722 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3723 file_magic_cmd=$lt_cv_file_magic_cmd
3724 deplibs_check_method=$lt_cv_deplibs_check_method
3725
3726
3727
3728
3729
3730 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3731
3732 # find the maximum length of command line arguments
3733 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3734 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3735 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738     i=0
3739   teststring="ABCD"
3740
3741   case $build_os in
3742   msdosdjgpp*)
3743     # On DJGPP, this test can blow up pretty badly due to problems in libc
3744     # (any single argument exceeding 2000 bytes causes a buffer overrun
3745     # during glob expansion).  Even if it were fixed, the result of this
3746     # check would be larger than it should be.
3747     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3748     ;;
3749
3750   cygwin* | mingw*)
3751     # On Win9x/ME, this test blows up -- it succeeds, but takes
3752     # about 5 minutes as the teststring grows exponentially.
3753     # Worse, since 9x/ME are not pre-emptively multitasking,
3754     # you end up with a "frozen" computer, even though with patience
3755     # the test eventually succeeds (with a max line length of 256k).
3756     # Instead, let's just punt: use the minimum linelength reported by
3757     # all of the supported platforms: 8192 (on NT/2K/XP).
3758     lt_cv_sys_max_cmd_len=8192;
3759     ;;
3760
3761   amigaos*)
3762     # On AmigaOS with pdksh, this test takes hours, literally.
3763     # So we just punt and use a minimum line length of 8192.
3764     lt_cv_sys_max_cmd_len=8192;
3765     ;;
3766
3767   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3768     # This has been around since 386BSD, at least.  Likely further.
3769     if test -x /sbin/sysctl; then
3770       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3771     elif test -x /usr/sbin/sysctl; then
3772       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3773     else
3774       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3775     fi
3776     # And add a safety zone
3777     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3778     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3779     ;;
3780   esac
3781
3782 fi
3783
3784 if test -n "$lt_cv_sys_max_cmd_len" ; then
3785   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3786 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3787 else
3788   echo "$as_me:$LINENO: result: none" >&5
3789 echo "${ECHO_T}none" >&6
3790 fi
3791
3792
3793 # Only perform the check for file, if the check method requires it
3794 case $deplibs_check_method in
3795 file_magic*)
3796   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3797     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3798 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3799 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   case $MAGIC_CMD in
3803   /*)
3804   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3805   ;;
3806   ?:/*)
3807   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3808   ;;
3809   *)
3810   ac_save_MAGIC_CMD="$MAGIC_CMD"
3811   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3812   ac_dummy="/usr/bin:$PATH"
3813   for ac_dir in $ac_dummy; do
3814     test -z "$ac_dir" && ac_dir=.
3815     if test -f $ac_dir/${ac_tool_prefix}file; then
3816       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3817       if test -n "$file_magic_test_file"; then
3818         case $deplibs_check_method in
3819         "file_magic "*)
3820           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3821           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3822           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3823             egrep "$file_magic_regex" > /dev/null; then
3824             :
3825           else
3826             cat <<EOF 1>&2
3827
3828 *** Warning: the command libtool uses to detect shared libraries,
3829 *** $file_magic_cmd, produces output that libtool cannot recognize.
3830 *** The result is that libtool may fail to recognize shared libraries
3831 *** as such.  This will affect the creation of libtool libraries that
3832 *** depend on shared libraries, but programs linked with such libtool
3833 *** libraries will work regardless of this problem.  Nevertheless, you
3834 *** may want to report the problem to your system manager and/or to
3835 *** bug-libtool@gnu.org
3836
3837 EOF
3838           fi ;;
3839         esac
3840       fi
3841       break
3842     fi
3843   done
3844   IFS="$ac_save_ifs"
3845   MAGIC_CMD="$ac_save_MAGIC_CMD"
3846   ;;
3847 esac
3848 fi
3849
3850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3851 if test -n "$MAGIC_CMD"; then
3852   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3853 echo "${ECHO_T}$MAGIC_CMD" >&6
3854 else
3855   echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3857 fi
3858
3859 if test -z "$lt_cv_path_MAGIC_CMD"; then
3860   if test -n "$ac_tool_prefix"; then
3861     echo "$as_me:$LINENO: checking for file" >&5
3862 echo $ECHO_N "checking for file... $ECHO_C" >&6
3863 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3864   echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866   case $MAGIC_CMD in
3867   /*)
3868   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3869   ;;
3870   ?:/*)
3871   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3872   ;;
3873   *)
3874   ac_save_MAGIC_CMD="$MAGIC_CMD"
3875   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3876   ac_dummy="/usr/bin:$PATH"
3877   for ac_dir in $ac_dummy; do
3878     test -z "$ac_dir" && ac_dir=.
3879     if test -f $ac_dir/file; then
3880       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3881       if test -n "$file_magic_test_file"; then
3882         case $deplibs_check_method in
3883         "file_magic "*)
3884           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3885           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3886           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3887             egrep "$file_magic_regex" > /dev/null; then
3888             :
3889           else
3890             cat <<EOF 1>&2
3891
3892 *** Warning: the command libtool uses to detect shared libraries,
3893 *** $file_magic_cmd, produces output that libtool cannot recognize.
3894 *** The result is that libtool may fail to recognize shared libraries
3895 *** as such.  This will affect the creation of libtool libraries that
3896 *** depend on shared libraries, but programs linked with such libtool
3897 *** libraries will work regardless of this problem.  Nevertheless, you
3898 *** may want to report the problem to your system manager and/or to
3899 *** bug-libtool@gnu.org
3900
3901 EOF
3902           fi ;;
3903         esac
3904       fi
3905       break
3906     fi
3907   done
3908   IFS="$ac_save_ifs"
3909   MAGIC_CMD="$ac_save_MAGIC_CMD"
3910   ;;
3911 esac
3912 fi
3913
3914 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3915 if test -n "$MAGIC_CMD"; then
3916   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3917 echo "${ECHO_T}$MAGIC_CMD" >&6
3918 else
3919   echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3921 fi
3922
3923   else
3924     MAGIC_CMD=:
3925   fi
3926 fi
3927
3928   fi
3929   ;;
3930 esac
3931
3932 if test -n "$ac_tool_prefix"; then
3933   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3934 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3935 echo "$as_me:$LINENO: checking for $ac_word" >&5
3936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3937 if test "${ac_cv_prog_RANLIB+set}" = set; then
3938   echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940   if test -n "$RANLIB"; then
3941   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946   IFS=$as_save_IFS
3947   test -z "$as_dir" && as_dir=.
3948   for ac_exec_ext in '' $ac_executable_extensions; do
3949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3952     break 2
3953   fi
3954 done
3955 done
3956
3957 fi
3958 fi
3959 RANLIB=$ac_cv_prog_RANLIB
3960 if test -n "$RANLIB"; then
3961   echo "$as_me:$LINENO: result: $RANLIB" >&5
3962 echo "${ECHO_T}$RANLIB" >&6
3963 else
3964   echo "$as_me:$LINENO: result: no" >&5
3965 echo "${ECHO_T}no" >&6
3966 fi
3967
3968 fi
3969 if test -z "$ac_cv_prog_RANLIB"; then
3970   ac_ct_RANLIB=$RANLIB
3971   # Extract the first word of "ranlib", so it can be a program name with args.
3972 set dummy ranlib; ac_word=$2
3973 echo "$as_me:$LINENO: checking for $ac_word" >&5
3974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3975 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3976   echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978   if test -n "$ac_ct_RANLIB"; then
3979   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3980 else
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3983 do
3984   IFS=$as_save_IFS
3985   test -z "$as_dir" && as_dir=.
3986   for ac_exec_ext in '' $ac_executable_extensions; do
3987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988     ac_cv_prog_ac_ct_RANLIB="ranlib"
3989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990     break 2
3991   fi
3992 done
3993 done
3994
3995   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3996 fi
3997 fi
3998 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3999 if test -n "$ac_ct_RANLIB"; then
4000   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4001 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4002 else
4003   echo "$as_me:$LINENO: result: no" >&5
4004 echo "${ECHO_T}no" >&6
4005 fi
4006
4007   RANLIB=$ac_ct_RANLIB
4008 else
4009   RANLIB="$ac_cv_prog_RANLIB"
4010 fi
4011
4012 if test -n "$ac_tool_prefix"; then
4013   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4014 set dummy ${ac_tool_prefix}strip; ac_word=$2
4015 echo "$as_me:$LINENO: checking for $ac_word" >&5
4016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4017 if test "${ac_cv_prog_STRIP+set}" = set; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   if test -n "$STRIP"; then
4021   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4022 else
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4025 do
4026   IFS=$as_save_IFS
4027   test -z "$as_dir" && as_dir=.
4028   for ac_exec_ext in '' $ac_executable_extensions; do
4029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4032     break 2
4033   fi
4034 done
4035 done
4036
4037 fi
4038 fi
4039 STRIP=$ac_cv_prog_STRIP
4040 if test -n "$STRIP"; then
4041   echo "$as_me:$LINENO: result: $STRIP" >&5
4042 echo "${ECHO_T}$STRIP" >&6
4043 else
4044   echo "$as_me:$LINENO: result: no" >&5
4045 echo "${ECHO_T}no" >&6
4046 fi
4047
4048 fi
4049 if test -z "$ac_cv_prog_STRIP"; then
4050   ac_ct_STRIP=$STRIP
4051   # Extract the first word of "strip", so it can be a program name with args.
4052 set dummy strip; ac_word=$2
4053 echo "$as_me:$LINENO: checking for $ac_word" >&5
4054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4055 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4056   echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058   if test -n "$ac_ct_STRIP"; then
4059   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4060 else
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH
4063 do
4064   IFS=$as_save_IFS
4065   test -z "$as_dir" && as_dir=.
4066   for ac_exec_ext in '' $ac_executable_extensions; do
4067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4068     ac_cv_prog_ac_ct_STRIP="strip"
4069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4070     break 2
4071   fi
4072 done
4073 done
4074
4075   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4076 fi
4077 fi
4078 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4079 if test -n "$ac_ct_STRIP"; then
4080   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4081 echo "${ECHO_T}$ac_ct_STRIP" >&6
4082 else
4083   echo "$as_me:$LINENO: result: no" >&5
4084 echo "${ECHO_T}no" >&6
4085 fi
4086
4087   STRIP=$ac_ct_STRIP
4088 else
4089   STRIP="$ac_cv_prog_STRIP"
4090 fi
4091
4092
4093 # Check for any special flags to pass to ltconfig.
4094 libtool_flags="--cache-file=$cache_file"
4095 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4096 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4097 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4098 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4099 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4100
4101
4102 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4103 if test "${enable_libtool_lock+set}" = set; then
4104   enableval="$enable_libtool_lock"
4105
4106 fi;
4107 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4108 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4109
4110
4111 # Check whether --with-pic or --without-pic was given.
4112 if test "${with_pic+set}" = set; then
4113   withval="$with_pic"
4114   pic_mode="$withval"
4115 else
4116   pic_mode=default
4117 fi;
4118 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4119 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4120
4121 # Some flags need to be propagated to the compiler or linker for good
4122 # libtool support.
4123 case $host in
4124 *-*-irix6*)
4125   # Find out which ABI we are using.
4126   echo '#line 4126 "configure"' > conftest.$ac_ext
4127   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128   (eval $ac_compile) 2>&5
4129   ac_status=$?
4130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); }; then
4132    if test "$lt_cv_prog_gnu_ld" = yes; then
4133     case `/usr/bin/file conftest.$ac_objext` in
4134     *32-bit*)
4135       LD="${LD-ld} -melf32bsmip"
4136       ;;
4137     *N32*)
4138       LD="${LD-ld} -melf32bmipn32"
4139       ;;
4140     *64-bit*)
4141       LD="${LD-ld} -melf64bmip"
4142       ;;
4143     esac
4144    else
4145     case `/usr/bin/file conftest.$ac_objext` in
4146     *32-bit*)
4147       LD="${LD-ld} -32"
4148       ;;
4149     *N32*)
4150       LD="${LD-ld} -n32"
4151       ;;
4152     *64-bit*)
4153       LD="${LD-ld} -64"
4154       ;;
4155     esac
4156    fi
4157   fi
4158   rm -rf conftest*
4159   ;;
4160
4161 ia64-*-hpux*)
4162   # Find out which ABI we are using.
4163   echo 'int i;' > conftest.$ac_ext
4164   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4165   (eval $ac_compile) 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }; then
4169     case "`/usr/bin/file conftest.o`" in
4170     *ELF-32*)
4171       HPUX_IA64_MODE="32"
4172       ;;
4173     *ELF-64*)
4174       HPUX_IA64_MODE="64"
4175       ;;
4176     esac
4177   fi
4178   rm -rf conftest*
4179   ;;
4180
4181 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4182   # Find out which ABI we are using.
4183   echo 'int i;' > conftest.$ac_ext
4184   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4185   (eval $ac_compile) 2>&5
4186   ac_status=$?
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); }; then
4189     case "`/usr/bin/file conftest.o`" in
4190     *32-bit*)
4191       case $host in
4192         x86_64-*linux*)
4193           LD="${LD-ld} -m elf_i386"
4194           ;;
4195         ppc64-*linux*|powerpc64-*linux*)
4196           LD="${LD-ld} -m elf32ppclinux"
4197           ;;
4198         s390x-*linux*)
4199           LD="${LD-ld} -m elf_s390"
4200           ;;
4201         sparc64-*linux*)
4202           LD="${LD-ld} -m elf32_sparc"
4203           ;;
4204       esac
4205       ;;
4206     *64-bit*)
4207       case $host in
4208         x86_64-*linux*)
4209           LD="${LD-ld} -m elf_x86_64"
4210           ;;
4211         ppc*-*linux*|powerpc*-*linux*)
4212           LD="${LD-ld} -m elf64ppc"
4213           ;;
4214         s390*-*linux*)
4215           LD="${LD-ld} -m elf64_s390"
4216           ;;
4217         sparc*-*linux*)
4218           LD="${LD-ld} -m elf64_sparc"
4219           ;;
4220       esac
4221       ;;
4222     esac
4223   fi
4224   rm -rf conftest*
4225   ;;
4226
4227 *-*-sco3.2v5*)
4228   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4229   SAVE_CFLAGS="$CFLAGS"
4230   CFLAGS="$CFLAGS -belf"
4231   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4232 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4233 if test "${lt_cv_cc_needs_belf+set}" = set; then
4234   echo $ECHO_N "(cached) $ECHO_C" >&6
4235 else
4236
4237
4238      ac_ext=c
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243
4244      if test x$gcc_no_link = xyes; then
4245   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4246 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4247    { (exit 1); exit 1; }; }
4248 fi
4249 cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h.  */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h.  */
4255
4256 int
4257 main ()
4258 {
4259
4260   ;
4261   return 0;
4262 }
4263 _ACEOF
4264 rm -f conftest.$ac_objext conftest$ac_exeext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266   (eval $ac_link) 2>conftest.er1
4267   ac_status=$?
4268   grep -v '^ *+' conftest.er1 >conftest.err
4269   rm -f conftest.er1
4270   cat conftest.err >&5
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); } &&
4273          { ac_try='test -z "$ac_c_werror_flag"
4274                          || test ! -s conftest.err'
4275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276   (eval $ac_try) 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); }; } &&
4280          { ac_try='test -s conftest$ac_exeext'
4281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282   (eval $ac_try) 2>&5
4283   ac_status=$?
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); }; }; then
4286   lt_cv_cc_needs_belf=yes
4287 else
4288   echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 lt_cv_cc_needs_belf=no
4292 fi
4293 rm -f conftest.err conftest.$ac_objext \
4294       conftest$ac_exeext conftest.$ac_ext
4295      ac_ext=c
4296 ac_cpp='$CPP $CPPFLAGS'
4297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300
4301 fi
4302 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4303 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4304   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4305     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4306     CFLAGS="$SAVE_CFLAGS"
4307   fi
4308   ;;
4309
4310
4311 esac
4312
4313
4314 # Save cache, so that ltconfig can load it
4315 cat >confcache <<\_ACEOF
4316 # This file is a shell script that caches the results of configure
4317 # tests run on this system so they can be shared between configure
4318 # scripts and configure runs, see configure's option --config-cache.
4319 # It is not useful on other systems.  If it contains results you don't
4320 # want to keep, you may remove or edit it.
4321 #
4322 # config.status only pays attention to the cache file if you give it
4323 # the --recheck option to rerun configure.
4324 #
4325 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4326 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4327 # following values.
4328
4329 _ACEOF
4330
4331 # The following way of writing the cache mishandles newlines in values,
4332 # but we know of no workaround that is simple, portable, and efficient.
4333 # So, don't put newlines in cache variables' values.
4334 # Ultrix sh set writes to stderr and can't be redirected directly,
4335 # and sets the high bit in the cache file unless we assign to the vars.
4336 {
4337   (set) 2>&1 |
4338     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4339     *ac_space=\ *)
4340       # `set' does not quote correctly, so add quotes (double-quote
4341       # substitution turns \\\\ into \\, and sed turns \\ into \).
4342       sed -n \
4343         "s/'/'\\\\''/g;
4344           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4345       ;;
4346     *)
4347       # `set' quotes correctly as required by POSIX, so do not add quotes.
4348       sed -n \
4349         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4350       ;;
4351     esac;
4352 } |
4353   sed '
4354      t clear
4355      : clear
4356      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4357      t end
4358      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4359      : end' >>confcache
4360 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4361   if test -w $cache_file; then
4362     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4363     cat confcache >$cache_file
4364   else
4365     echo "not updating unwritable cache $cache_file"
4366   fi
4367 fi
4368 rm -f confcache
4369
4370 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4371 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4372 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4373 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4374 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4375 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4376 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4377 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4378 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4379 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4380 echo "$as_me: error: libtool configure failed" >&2;}
4381    { (exit 1); exit 1; }; }
4382
4383 # Reload cache, that may have been modified by ltconfig
4384 if test -r "$cache_file"; then
4385   # Some versions of bash will fail to source /dev/null (special
4386   # files actually), so we avoid doing that.
4387   if test -f "$cache_file"; then
4388     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4389 echo "$as_me: loading cache $cache_file" >&6;}
4390     case $cache_file in
4391       [\\/]* | ?:[\\/]* ) . $cache_file;;
4392       *)                      . ./$cache_file;;
4393     esac
4394   fi
4395 else
4396   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4397 echo "$as_me: creating cache $cache_file" >&6;}
4398   >$cache_file
4399 fi
4400
4401
4402 # This can be used to rebuild libtool when needed
4403 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4404
4405 # Always use our own libtool.
4406 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4407
4408 # Redirect the config.log output again, so that the ltconfig log is not
4409 # clobbered by the next message.
4410 exec 5>>./config.log
4411
4412
4413
4414
4415
4416
4417
4418
4419 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4420
4421 # We need gfortran to compile parts of the library
4422 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4423 #AC_PROG_FC(gfortran)
4424 FC="$GFORTRAN"
4425 ac_ext=${FC_SRCEXT-f}
4426 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4427 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4428 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4429 if test -n "$ac_tool_prefix"; then
4430   for ac_prog in gfortran
4431   do
4432     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4434 echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4436 if test "${ac_cv_prog_FC+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439   if test -n "$FC"; then
4440   ac_cv_prog_FC="$FC" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445   IFS=$as_save_IFS
4446   test -z "$as_dir" && as_dir=.
4447   for ac_exec_ext in '' $ac_executable_extensions; do
4448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451     break 2
4452   fi
4453 done
4454 done
4455
4456 fi
4457 fi
4458 FC=$ac_cv_prog_FC
4459 if test -n "$FC"; then
4460   echo "$as_me:$LINENO: result: $FC" >&5
4461 echo "${ECHO_T}$FC" >&6
4462 else
4463   echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6
4465 fi
4466
4467     test -n "$FC" && break
4468   done
4469 fi
4470 if test -z "$FC"; then
4471   ac_ct_FC=$FC
4472   for ac_prog in gfortran
4473 do
4474   # Extract the first word of "$ac_prog", so it can be a program name with args.
4475 set dummy $ac_prog; ac_word=$2
4476 echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   if test -n "$ac_ct_FC"; then
4482   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4486 do
4487   IFS=$as_save_IFS
4488   test -z "$as_dir" && as_dir=.
4489   for ac_exec_ext in '' $ac_executable_extensions; do
4490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491     ac_cv_prog_ac_ct_FC="$ac_prog"
4492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493     break 2
4494   fi
4495 done
4496 done
4497
4498 fi
4499 fi
4500 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4501 if test -n "$ac_ct_FC"; then
4502   echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4503 echo "${ECHO_T}$ac_ct_FC" >&6
4504 else
4505   echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4507 fi
4508
4509   test -n "$ac_ct_FC" && break
4510 done
4511
4512   FC=$ac_ct_FC
4513 fi
4514
4515
4516 # Provide some information about the compiler.
4517 echo "$as_me:4517:" \
4518      "checking for Fortran compiler version" >&5
4519 ac_compiler=`set X $ac_compile; echo $2`
4520 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4521   (eval $ac_compiler --version </dev/null >&5) 2>&5
4522   ac_status=$?
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); }
4525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4526   (eval $ac_compiler -v </dev/null >&5) 2>&5
4527   ac_status=$?
4528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529   (exit $ac_status); }
4530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4531   (eval $ac_compiler -V </dev/null >&5) 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); }
4535 rm -f a.out
4536
4537 # If we don't use `.F' as extension, the preprocessor is not run on the
4538 # input file.  (Note that this only needs to work for GNU compilers.)
4539 ac_save_ext=$ac_ext
4540 ac_ext=F
4541 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4542 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4543 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4544   echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546   cat >conftest.$ac_ext <<_ACEOF
4547       program main
4548 #ifndef __GNUC__
4549        choke me
4550 #endif
4551
4552       end
4553 _ACEOF
4554 rm -f conftest.$ac_objext
4555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4556   (eval $ac_compile) 2>conftest.er1
4557   ac_status=$?
4558   grep -v '^ *+' conftest.er1 >conftest.err
4559   rm -f conftest.er1
4560   cat conftest.err >&5
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); } &&
4563          { ac_try='test -z "$ac_fc_werror_flag"
4564                          || test ! -s conftest.err'
4565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566   (eval $ac_try) 2>&5
4567   ac_status=$?
4568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); }; } &&
4570          { ac_try='test -s conftest.$ac_objext'
4571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572   (eval $ac_try) 2>&5
4573   ac_status=$?
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); }; }; then
4576   ac_compiler_gnu=yes
4577 else
4578   echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4580
4581 ac_compiler_gnu=no
4582 fi
4583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4584 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4585
4586 fi
4587 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4588 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4589 ac_ext=$ac_save_ext
4590 ac_test_FFLAGS=${FCFLAGS+set}
4591 ac_save_FFLAGS=$FCFLAGS
4592 FCFLAGS=
4593 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4594 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4595 if test "${ac_cv_prog_fc_g+set}" = set; then
4596   echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598   FCFLAGS=-g
4599 cat >conftest.$ac_ext <<_ACEOF
4600       program main
4601
4602       end
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4606   (eval $ac_compile) 2>conftest.er1
4607   ac_status=$?
4608   grep -v '^ *+' conftest.er1 >conftest.err
4609   rm -f conftest.er1
4610   cat conftest.err >&5
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); } &&
4613          { ac_try='test -z "$ac_fc_werror_flag"
4614                          || test ! -s conftest.err'
4615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616   (eval $ac_try) 2>&5
4617   ac_status=$?
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); }; } &&
4620          { ac_try='test -s conftest.$ac_objext'
4621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622   (eval $ac_try) 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); }; }; then
4626   ac_cv_prog_fc_g=yes
4627 else
4628   echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4630
4631 ac_cv_prog_fc_g=no
4632 fi
4633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4634
4635 fi
4636 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4637 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4638 if test "$ac_test_FFLAGS" = set; then
4639   FCFLAGS=$ac_save_FFLAGS
4640 elif test $ac_cv_prog_fc_g = yes; then
4641   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4642     FCFLAGS="-g -O2"
4643   else
4644     FCFLAGS="-g"
4645   fi
4646 else
4647   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4648     FCFLAGS="-O2"
4649   else
4650     FCFLAGS=
4651   fi
4652 fi
4653
4654 ac_ext=c
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659
4660 FCFLAGS="$FCFLAGS -Wall -fno-repack-arrays -fno-underscoring"
4661
4662 # extra LD Flags which are required for targets
4663 case "${host}" in
4664   *-darwin*)
4665     # Darwin needs -single_module when linking libgfortran
4666     extra_ldflags_libgfortran=-Wl,-single_module
4667     ;;
4668 esac
4669
4670
4671 # Check whether --enable-largefile or --disable-largefile was given.
4672 if test "${enable_largefile+set}" = set; then
4673   enableval="$enable_largefile"
4674
4675 fi;
4676 if test "$enable_largefile" != no; then
4677
4678   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4679 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4680 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683   ac_cv_sys_largefile_CC=no
4684      if test "$GCC" != yes; then
4685        ac_save_CC=$CC
4686        while :; do
4687          # IRIX 6.2 and later do not support large files by default,
4688          # so use the C compiler's -n32 option if that helps.
4689          cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h.  */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h.  */
4695 #include <sys/types.h>
4696  /* Check that off_t can represent 2**63 - 1 correctly.
4697     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4698     since some C++ compilers masquerading as C compilers
4699     incorrectly reject 9223372036854775807.  */
4700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4701   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4702                        && LARGE_OFF_T % 2147483647 == 1)
4703                       ? 1 : -1];
4704 int
4705 main ()
4706 {
4707
4708   ;
4709   return 0;
4710 }
4711 _ACEOF
4712          rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714   (eval $ac_compile) 2>conftest.er1
4715   ac_status=$?
4716   grep -v '^ *+' conftest.er1 >conftest.err
4717   rm -f conftest.er1
4718   cat conftest.err >&5
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); } &&
4721          { ac_try='test -z "$ac_c_werror_flag"
4722                          || test ! -s conftest.err'
4723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724   (eval $ac_try) 2>&5
4725   ac_status=$?
4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727   (exit $ac_status); }; } &&
4728          { ac_try='test -s conftest.$ac_objext'
4729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730   (eval $ac_try) 2>&5
4731   ac_status=$?
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); }; }; then
4734   break
4735 else
4736   echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4738
4739 fi
4740 rm -f conftest.err conftest.$ac_objext
4741          CC="$CC -n32"
4742          rm -f conftest.$ac_objext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744   (eval $ac_compile) 2>conftest.er1
4745   ac_status=$?
4746   grep -v '^ *+' conftest.er1 >conftest.err
4747   rm -f conftest.er1
4748   cat conftest.err >&5
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); } &&
4751          { ac_try='test -z "$ac_c_werror_flag"
4752                          || test ! -s conftest.err'
4753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754   (eval $ac_try) 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); }; } &&
4758          { ac_try='test -s conftest.$ac_objext'
4759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760   (eval $ac_try) 2>&5
4761   ac_status=$?
4762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); }; }; then
4764   ac_cv_sys_largefile_CC=' -n32'; break
4765 else
4766   echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4768
4769 fi
4770 rm -f conftest.err conftest.$ac_objext
4771          break
4772        done
4773        CC=$ac_save_CC
4774        rm -f conftest.$ac_ext
4775     fi
4776 fi
4777 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4778 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4779   if test "$ac_cv_sys_largefile_CC" != no; then
4780     CC=$CC$ac_cv_sys_largefile_CC
4781   fi
4782
4783   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4784 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4785 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788   while :; do
4789   ac_cv_sys_file_offset_bits=no
4790   cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h.  */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h.  */
4796 #include <sys/types.h>
4797  /* Check that off_t can represent 2**63 - 1 correctly.
4798     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4799     since some C++ compilers masquerading as C compilers
4800     incorrectly reject 9223372036854775807.  */
4801 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4802   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4803                        && LARGE_OFF_T % 2147483647 == 1)
4804                       ? 1 : -1];
4805 int
4806 main ()
4807 {
4808
4809   ;
4810   return 0;
4811 }
4812 _ACEOF
4813 rm -f conftest.$ac_objext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815   (eval $ac_compile) 2>conftest.er1
4816   ac_status=$?
4817   grep -v '^ *+' conftest.er1 >conftest.err
4818   rm -f conftest.er1
4819   cat conftest.err >&5
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); } &&
4822          { ac_try='test -z "$ac_c_werror_flag"
4823                          || test ! -s conftest.err'
4824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825   (eval $ac_try) 2>&5
4826   ac_status=$?
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); }; } &&
4829          { ac_try='test -s conftest.$ac_objext'
4830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831   (eval $ac_try) 2>&5
4832   ac_status=$?
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); }; }; then
4835   break
4836 else
4837   echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4839
4840 fi
4841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4842   cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h.  */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h.  */
4848 #define _FILE_OFFSET_BITS 64
4849 #include <sys/types.h>
4850  /* Check that off_t can represent 2**63 - 1 correctly.
4851     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4852     since some C++ compilers masquerading as C compilers
4853     incorrectly reject 9223372036854775807.  */
4854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4855   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4856                        && LARGE_OFF_T % 2147483647 == 1)
4857                       ? 1 : -1];
4858 int
4859 main ()
4860 {
4861
4862   ;
4863   return 0;
4864 }
4865 _ACEOF
4866 rm -f conftest.$ac_objext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868   (eval $ac_compile) 2>conftest.er1
4869   ac_status=$?
4870   grep -v '^ *+' conftest.er1 >conftest.err
4871   rm -f conftest.er1
4872   cat conftest.err >&5
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); } &&
4875          { ac_try='test -z "$ac_c_werror_flag"
4876                          || test ! -s conftest.err'
4877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878   (eval $ac_try) 2>&5
4879   ac_status=$?
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); }; } &&
4882          { ac_try='test -s conftest.$ac_objext'
4883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884   (eval $ac_try) 2>&5
4885   ac_status=$?
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); }; }; then
4888   ac_cv_sys_file_offset_bits=64; break
4889 else
4890   echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4892
4893 fi
4894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4895   break
4896 done
4897 fi
4898 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4899 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4900 if test "$ac_cv_sys_file_offset_bits" != no; then
4901
4902 cat >>confdefs.h <<_ACEOF
4903 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4904 _ACEOF
4905
4906 fi
4907 rm -f conftest*
4908   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4909 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4910 if test "${ac_cv_sys_large_files+set}" = set; then
4911   echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913   while :; do
4914   ac_cv_sys_large_files=no
4915   cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h.  */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h.  */
4921 #include <sys/types.h>
4922  /* Check that off_t can represent 2**63 - 1 correctly.
4923     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4924     since some C++ compilers masquerading as C compilers
4925     incorrectly reject 9223372036854775807.  */
4926 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4927   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4928                        && LARGE_OFF_T % 2147483647 == 1)
4929                       ? 1 : -1];
4930 int
4931 main ()
4932 {
4933
4934   ;
4935   return 0;
4936 }
4937 _ACEOF
4938 rm -f conftest.$ac_objext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940   (eval $ac_compile) 2>conftest.er1
4941   ac_status=$?
4942   grep -v '^ *+' conftest.er1 >conftest.err
4943   rm -f conftest.er1
4944   cat conftest.err >&5
4945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946   (exit $ac_status); } &&
4947          { ac_try='test -z "$ac_c_werror_flag"
4948                          || test ! -s conftest.err'
4949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950   (eval $ac_try) 2>&5
4951   ac_status=$?
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); }; } &&
4954          { ac_try='test -s conftest.$ac_objext'
4955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956   (eval $ac_try) 2>&5
4957   ac_status=$?
4958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959   (exit $ac_status); }; }; then
4960   break
4961 else
4962   echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4964
4965 fi
4966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4967   cat >conftest.$ac_ext <<_ACEOF
4968 /* confdefs.h.  */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h.  */
4973 #define _LARGE_FILES 1
4974 #include <sys/types.h>
4975  /* Check that off_t can represent 2**63 - 1 correctly.
4976     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4977     since some C++ compilers masquerading as C compilers
4978     incorrectly reject 9223372036854775807.  */
4979 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4980   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4981                        && LARGE_OFF_T % 2147483647 == 1)
4982                       ? 1 : -1];
4983 int
4984 main ()
4985 {
4986
4987   ;
4988   return 0;
4989 }
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993   (eval $ac_compile) 2>conftest.er1
4994   ac_status=$?
4995   grep -v '^ *+' conftest.er1 >conftest.err
4996   rm -f conftest.er1
4997   cat conftest.err >&5
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); } &&
5000          { ac_try='test -z "$ac_c_werror_flag"
5001                          || test ! -s conftest.err'
5002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003   (eval $ac_try) 2>&5
5004   ac_status=$?
5005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006   (exit $ac_status); }; } &&
5007          { ac_try='test -s conftest.$ac_objext'
5008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009   (eval $ac_try) 2>&5
5010   ac_status=$?
5011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012   (exit $ac_status); }; }; then
5013   ac_cv_sys_large_files=1; break
5014 else
5015   echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5017
5018 fi
5019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5020   break
5021 done
5022 fi
5023 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5024 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5025 if test "$ac_cv_sys_large_files" != no; then
5026
5027 cat >>confdefs.h <<_ACEOF
5028 #define _LARGE_FILES $ac_cv_sys_large_files
5029 _ACEOF
5030
5031 fi
5032 rm -f conftest*
5033 fi
5034
5035 if test x$gcc_no_link = xyes; then
5036   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
5037     ac_cv_func_mmap_fixed_mapped=no
5038   fi
5039 fi
5040 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
5041   ac_ext=c
5042 ac_cpp='$CPP $CPPFLAGS'
5043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5046 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5047 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5048 # On Suns, sometimes $CPP names a directory.
5049 if test -n "$CPP" && test -d "$CPP"; then
5050   CPP=
5051 fi
5052 if test -z "$CPP"; then
5053   if test "${ac_cv_prog_CPP+set}" = set; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056       # Double quotes because CPP needs to be expanded
5057     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5058     do
5059       ac_preproc_ok=false
5060 for ac_c_preproc_warn_flag in '' yes
5061 do
5062   # Use a header file that comes with gcc, so configuring glibc
5063   # with a fresh cross-compiler works.
5064   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5065   # <limits.h> exists even on freestanding compilers.
5066   # On the NeXT, cc -E runs the code through the compiler's parser,
5067   # not just through cpp. "Syntax error" is here to catch this case.
5068   cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h.  */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h.  */
5074 #ifdef __STDC__
5075 # include <limits.h>
5076 #else
5077 # include <assert.h>
5078 #endif
5079                      Syntax error
5080 _ACEOF
5081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5083   ac_status=$?
5084   grep -v '^ *+' conftest.er1 >conftest.err
5085   rm -f conftest.er1
5086   cat conftest.err >&5
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); } >/dev/null; then
5089   if test -s conftest.err; then
5090     ac_cpp_err=$ac_c_preproc_warn_flag
5091     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5092   else
5093     ac_cpp_err=
5094   fi
5095 else
5096   ac_cpp_err=yes
5097 fi
5098 if test -z "$ac_cpp_err"; then
5099   :
5100 else
5101   echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5103
5104   # Broken: fails on valid input.
5105 continue
5106 fi
5107 rm -f conftest.err conftest.$ac_ext
5108
5109   # OK, works on sane cases.  Now check whether non-existent headers
5110   # can be detected and how.
5111   cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h.  */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h.  */
5117 #include <ac_nonexistent.h>
5118 _ACEOF
5119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5121   ac_status=$?
5122   grep -v '^ *+' conftest.er1 >conftest.err
5123   rm -f conftest.er1
5124   cat conftest.err >&5
5125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126   (exit $ac_status); } >/dev/null; then
5127   if test -s conftest.err; then
5128     ac_cpp_err=$ac_c_preproc_warn_flag
5129     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5130   else
5131     ac_cpp_err=
5132   fi
5133 else
5134   ac_cpp_err=yes
5135 fi
5136 if test -z "$ac_cpp_err"; then
5137   # Broken: success on invalid input.
5138 continue
5139 else
5140   echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5142
5143   # Passes both tests.
5144 ac_preproc_ok=:
5145 break
5146 fi
5147 rm -f conftest.err conftest.$ac_ext
5148
5149 done
5150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5151 rm -f conftest.err conftest.$ac_ext
5152 if $ac_preproc_ok; then
5153   break
5154 fi
5155
5156     done
5157     ac_cv_prog_CPP=$CPP
5158
5159 fi
5160   CPP=$ac_cv_prog_CPP
5161 else
5162   ac_cv_prog_CPP=$CPP
5163 fi
5164 echo "$as_me:$LINENO: result: $CPP" >&5
5165 echo "${ECHO_T}$CPP" >&6
5166 ac_preproc_ok=false
5167 for ac_c_preproc_warn_flag in '' yes
5168 do
5169   # Use a header file that comes with gcc, so configuring glibc
5170   # with a fresh cross-compiler works.
5171   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5172   # <limits.h> exists even on freestanding compilers.
5173   # On the NeXT, cc -E runs the code through the compiler's parser,
5174   # not just through cpp. "Syntax error" is here to catch this case.
5175   cat >conftest.$ac_ext <<_ACEOF
5176 /* confdefs.h.  */
5177 _ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h.  */
5181 #ifdef __STDC__
5182 # include <limits.h>
5183 #else
5184 # include <assert.h>
5185 #endif
5186                      Syntax error
5187 _ACEOF
5188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5189   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5190   ac_status=$?
5191   grep -v '^ *+' conftest.er1 >conftest.err
5192   rm -f conftest.er1
5193   cat conftest.err >&5
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); } >/dev/null; then
5196   if test -s conftest.err; then
5197     ac_cpp_err=$ac_c_preproc_warn_flag
5198     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5199   else
5200     ac_cpp_err=
5201   fi
5202 else
5203   ac_cpp_err=yes
5204 fi
5205 if test -z "$ac_cpp_err"; then
5206   :
5207 else
5208   echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5210
5211   # Broken: fails on valid input.
5212 continue
5213 fi
5214 rm -f conftest.err conftest.$ac_ext
5215
5216   # OK, works on sane cases.  Now check whether non-existent headers
5217   # can be detected and how.
5218   cat >conftest.$ac_ext <<_ACEOF
5219 /* confdefs.h.  */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h.  */
5224 #include <ac_nonexistent.h>
5225 _ACEOF
5226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5227   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5228   ac_status=$?
5229   grep -v '^ *+' conftest.er1 >conftest.err
5230   rm -f conftest.er1
5231   cat conftest.err >&5
5232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233   (exit $ac_status); } >/dev/null; then
5234   if test -s conftest.err; then
5235     ac_cpp_err=$ac_c_preproc_warn_flag
5236     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5237   else
5238     ac_cpp_err=
5239   fi
5240 else
5241   ac_cpp_err=yes
5242 fi
5243 if test -z "$ac_cpp_err"; then
5244   # Broken: success on invalid input.
5245 continue
5246 else
5247   echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250   # Passes both tests.
5251 ac_preproc_ok=:
5252 break
5253 fi
5254 rm -f conftest.err conftest.$ac_ext
5255
5256 done
5257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5258 rm -f conftest.err conftest.$ac_ext
5259 if $ac_preproc_ok; then
5260   :
5261 else
5262   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5263 See \`config.log' for more details." >&5
5264 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5265 See \`config.log' for more details." >&2;}
5266    { (exit 1); exit 1; }; }
5267 fi
5268
5269 ac_ext=c
5270 ac_cpp='$CPP $CPPFLAGS'
5271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5274
5275
5276 echo "$as_me:$LINENO: checking for egrep" >&5
5277 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5278 if test "${ac_cv_prog_egrep+set}" = set; then
5279   echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5282     then ac_cv_prog_egrep='grep -E'
5283     else ac_cv_prog_egrep='egrep'
5284     fi
5285 fi
5286 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5287 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5288  EGREP=$ac_cv_prog_egrep
5289
5290
5291 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5292 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5293 if test "${ac_cv_header_stdc+set}" = set; then
5294   echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296   cat >conftest.$ac_ext <<_ACEOF
5297 /* confdefs.h.  */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h.  */
5302 #include <stdlib.h>
5303 #include <stdarg.h>
5304 #include <string.h>
5305 #include <float.h>
5306
5307 int
5308 main ()
5309 {
5310
5311   ;
5312   return 0;
5313 }
5314 _ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317   (eval $ac_compile) 2>conftest.er1
5318   ac_status=$?
5319   grep -v '^ *+' conftest.er1 >conftest.err
5320   rm -f conftest.er1
5321   cat conftest.err >&5
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); } &&
5324          { ac_try='test -z "$ac_c_werror_flag"
5325                          || test ! -s conftest.err'
5326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327   (eval $ac_try) 2>&5
5328   ac_status=$?
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); }; } &&
5331          { ac_try='test -s conftest.$ac_objext'
5332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333   (eval $ac_try) 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); }; }; then
5337   ac_cv_header_stdc=yes
5338 else
5339   echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5341
5342 ac_cv_header_stdc=no
5343 fi
5344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5345
5346 if test $ac_cv_header_stdc = yes; then
5347   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5348   cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5354 #include <string.h>
5355
5356 _ACEOF
5357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5358   $EGREP "memchr" >/dev/null 2>&1; then
5359   :
5360 else
5361   ac_cv_header_stdc=no
5362 fi
5363 rm -f conftest*
5364
5365 fi
5366
5367 if test $ac_cv_header_stdc = yes; then
5368   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5369   cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h.  */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h.  */
5375 #include <stdlib.h>
5376
5377 _ACEOF
5378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5379   $EGREP "free" >/dev/null 2>&1; then
5380   :
5381 else
5382   ac_cv_header_stdc=no
5383 fi
5384 rm -f conftest*
5385
5386 fi
5387
5388 if test $ac_cv_header_stdc = yes; then
5389   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5390   if test "$cross_compiling" = yes; then
5391   :
5392 else
5393   cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h.  */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h.  */
5399 #include <ctype.h>
5400 #if ((' ' & 0x0FF) == 0x020)
5401 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5402 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5403 #else
5404 # define ISLOWER(c) \
5405                    (('a' <= (c) && (c) <= 'i') \
5406                      || ('j' <= (c) && (c) <= 'r') \
5407                      || ('s' <= (c) && (c) <= 'z'))
5408 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5409 #endif
5410
5411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5412 int
5413 main ()
5414 {
5415   int i;
5416   for (i = 0; i < 256; i++)
5417     if (XOR (islower (i), ISLOWER (i))
5418         || toupper (i) != TOUPPER (i))
5419       exit(2);
5420   exit (0);
5421 }
5422 _ACEOF
5423 rm -f conftest$ac_exeext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5425   (eval $ac_link) 2>&5
5426   ac_status=$?
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430   (eval $ac_try) 2>&5
5431   ac_status=$?
5432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433   (exit $ac_status); }; }; then
5434   :
5435 else
5436   echo "$as_me: program exited with status $ac_status" >&5
5437 echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5439
5440 ( exit $ac_status )
5441 ac_cv_header_stdc=no
5442 fi
5443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5444 fi
5445 fi
5446 fi
5447 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5448 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5449 if test $ac_cv_header_stdc = yes; then
5450
5451 cat >>confdefs.h <<\_ACEOF
5452 #define STDC_HEADERS 1
5453 _ACEOF
5454
5455 fi
5456
5457 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5468                   inttypes.h stdint.h unistd.h
5469 do
5470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5471 echo "$as_me:$LINENO: checking for $ac_header" >&5
5472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h.  */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h.  */
5482 $ac_includes_default
5483
5484 #include <$ac_header>
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488   (eval $ac_compile) 2>conftest.er1
5489   ac_status=$?
5490   grep -v '^ *+' conftest.er1 >conftest.err
5491   rm -f conftest.er1
5492   cat conftest.err >&5
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); } &&
5495          { ac_try='test -z "$ac_c_werror_flag"
5496                          || test ! -s conftest.err'
5497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498   (eval $ac_try) 2>&5
5499   ac_status=$?
5500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); }; } &&
5502          { ac_try='test -s conftest.$ac_objext'
5503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504   (eval $ac_try) 2>&5
5505   ac_status=$?
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); }; }; then
5508   eval "$as_ac_Header=yes"
5509 else
5510   echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513 eval "$as_ac_Header=no"
5514 fi
5515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5516 fi
5517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5520   cat >>confdefs.h <<_ACEOF
5521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5522 _ACEOF
5523
5524 fi
5525
5526 done
5527
5528
5529
5530
5531 for ac_header in stdlib.h unistd.h
5532 do
5533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5535   echo "$as_me:$LINENO: checking for $ac_header" >&5
5536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5538   echo $ECHO_N "(cached) $ECHO_C" >&6
5539 fi
5540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5542 else
5543   # Is the header compilable?
5544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5546 cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h.  */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h.  */
5552 $ac_includes_default
5553 #include <$ac_header>
5554 _ACEOF
5555 rm -f conftest.$ac_objext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557   (eval $ac_compile) 2>conftest.er1
5558   ac_status=$?
5559   grep -v '^ *+' conftest.er1 >conftest.err
5560   rm -f conftest.er1
5561   cat conftest.err >&5
5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); } &&
5564          { ac_try='test -z "$ac_c_werror_flag"
5565                          || test ! -s conftest.err'
5566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567   (eval $ac_try) 2>&5
5568   ac_status=$?
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); }; } &&
5571          { ac_try='test -s conftest.$ac_objext'
5572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573   (eval $ac_try) 2>&5
5574   ac_status=$?
5575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576   (exit $ac_status); }; }; then
5577   ac_header_compiler=yes
5578 else
5579   echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5581
5582 ac_header_compiler=no
5583 fi
5584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5586 echo "${ECHO_T}$ac_header_compiler" >&6
5587
5588 # Is the header present?
5589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5591 cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h.  */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h.  */
5597 #include <$ac_header>
5598 _ACEOF
5599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5601   ac_status=$?
5602   grep -v '^ *+' conftest.er1 >conftest.err
5603   rm -f conftest.er1
5604   cat conftest.err >&5
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); } >/dev/null; then
5607   if test -s conftest.err; then
5608     ac_cpp_err=$ac_c_preproc_warn_flag
5609     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5610   else
5611     ac_cpp_err=
5612   fi
5613 else
5614   ac_cpp_err=yes
5615 fi
5616 if test -z "$ac_cpp_err"; then
5617   ac_header_preproc=yes
5618 else
5619   echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5621
5622   ac_header_preproc=no
5623 fi
5624 rm -f conftest.err conftest.$ac_ext
5625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5626 echo "${ECHO_T}$ac_header_preproc" >&6
5627
5628 # So?  What about this header?
5629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5630   yes:no: )
5631     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5635     ac_header_preproc=yes
5636     ;;
5637   no:yes:* )
5638     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5640     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5641 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5642     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5644     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5645 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5648     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5650     (
5651       cat <<\_ASBOX
5652 ## ------------------------------------------------------ ##
5653 ## Report this to the GNU Fortran Runtime Library lists.  ##
5654 ## ------------------------------------------------------ ##
5655 _ASBOX
5656     ) |
5657       sed "s/^/$as_me: WARNING:     /" >&2
5658     ;;
5659 esac
5660 echo "$as_me:$LINENO: checking for $ac_header" >&5
5661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5663   echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665   eval "$as_ac_Header=\$ac_header_preproc"
5666 fi
5667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5669
5670 fi
5671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5672   cat >>confdefs.h <<_ACEOF
5673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5674 _ACEOF
5675
5676 fi
5677
5678 done
5679
5680
5681 for ac_func in getpagesize
5682 do
5683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5684 echo "$as_me:$LINENO: checking for $ac_func" >&5
5685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5686 if eval "test \"\${$as_ac_var+set}\" = set"; then
5687   echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689   if test x$gcc_no_link = xyes; then
5690   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5691 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5692    { (exit 1); exit 1; }; }
5693 fi
5694 cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h.  */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h.  */
5700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5702 #define $ac_func innocuous_$ac_func
5703
5704 /* System header to define __stub macros and hopefully few prototypes,
5705     which can conflict with char $ac_func (); below.
5706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5707     <limits.h> exists even on freestanding compilers.  */
5708
5709 #ifdef __STDC__
5710 # include <limits.h>
5711 #else
5712 # include <assert.h>
5713 #endif
5714
5715 #undef $ac_func
5716
5717 /* Override any gcc2 internal prototype to avoid an error.  */
5718 #ifdef __cplusplus
5719 extern "C"
5720 {
5721 #endif
5722 /* We use char because int might match the return type of a gcc2
5723    builtin and then its argument prototype would still apply.  */
5724 char $ac_func ();
5725 /* The GNU C library defines this for functions which it implements
5726     to always fail with ENOSYS.  Some functions are actually named
5727     something starting with __ and the normal name is an alias.  */
5728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5729 choke me
5730 #else
5731 char (*f) () = $ac_func;
5732 #endif
5733 #ifdef __cplusplus
5734 }
5735 #endif
5736
5737 int
5738 main ()
5739 {
5740 return f != $ac_func;
5741   ;
5742   return 0;
5743 }
5744 _ACEOF
5745 rm -f conftest.$ac_objext conftest$ac_exeext
5746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5747   (eval $ac_link) 2>conftest.er1
5748   ac_status=$?
5749   grep -v '^ *+' conftest.er1 >conftest.err
5750   rm -f conftest.er1
5751   cat conftest.err >&5
5752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); } &&
5754          { ac_try='test -z "$ac_c_werror_flag"
5755                          || test ! -s conftest.err'
5756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757   (eval $ac_try) 2>&5
5758   ac_status=$?
5759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760   (exit $ac_status); }; } &&
5761          { ac_try='test -s conftest$ac_exeext'
5762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763   (eval $ac_try) 2>&5
5764   ac_status=$?
5765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766   (exit $ac_status); }; }; then
5767   eval "$as_ac_var=yes"
5768 else
5769   echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5771
5772 eval "$as_ac_var=no"
5773 fi
5774 rm -f conftest.err conftest.$ac_objext \
5775       conftest$ac_exeext conftest.$ac_ext
5776 fi
5777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5779 if test `eval echo '${'$as_ac_var'}'` = yes; then
5780   cat >>confdefs.h <<_ACEOF
5781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5782 _ACEOF
5783
5784 fi
5785 done
5786
5787 echo "$as_me:$LINENO: checking for working mmap" >&5
5788 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5789 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5790   echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792   if test "$cross_compiling" = yes; then
5793   ac_cv_func_mmap_fixed_mapped=no
5794 else
5795   cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h.  */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h.  */
5801 $ac_includes_default
5802 /* malloc might have been renamed as rpl_malloc. */
5803 #undef malloc
5804
5805 /* Thanks to Mike Haertel and Jim Avera for this test.
5806    Here is a matrix of mmap possibilities:
5807         mmap private not fixed
5808         mmap private fixed at somewhere currently unmapped
5809         mmap private fixed at somewhere already mapped
5810         mmap shared not fixed
5811         mmap shared fixed at somewhere currently unmapped
5812         mmap shared fixed at somewhere already mapped
5813    For private mappings, we should verify that changes cannot be read()
5814    back from the file, nor mmap's back from the file at a different
5815    address.  (There have been systems where private was not correctly
5816    implemented like the infamous i386 svr4.0, and systems where the
5817    VM page cache was not coherent with the file system buffer cache
5818    like early versions of FreeBSD and possibly contemporary NetBSD.)
5819    For shared mappings, we should conversely verify that changes get
5820    propagated back to all the places they're supposed to be.
5821
5822    Grep wants private fixed already mapped.
5823    The main things grep needs to know about mmap are:
5824    * does it exist and is it safe to write into the mmap'd area
5825    * how to use it (BSD variants)  */
5826
5827 #include <fcntl.h>
5828 #include <sys/mman.h>
5829
5830 #if !STDC_HEADERS && !HAVE_STDLIB_H
5831 char *malloc ();
5832 #endif
5833
5834 /* This mess was copied from the GNU getpagesize.h.  */
5835 #if !HAVE_GETPAGESIZE
5836 /* Assume that all systems that can run configure have sys/param.h.  */
5837 # if !HAVE_SYS_PARAM_H
5838 #  define HAVE_SYS_PARAM_H 1
5839 # endif
5840
5841 # ifdef _SC_PAGESIZE
5842 #  define getpagesize() sysconf(_SC_PAGESIZE)
5843 # else /* no _SC_PAGESIZE */
5844 #  if HAVE_SYS_PARAM_H
5845 #   include <sys/param.h>
5846 #   ifdef EXEC_PAGESIZE
5847 #    define getpagesize() EXEC_PAGESIZE
5848 #   else /* no EXEC_PAGESIZE */
5849 #    ifdef NBPG
5850 #     define getpagesize() NBPG * CLSIZE
5851 #     ifndef CLSIZE
5852 #      define CLSIZE 1
5853 #     endif /* no CLSIZE */
5854 #    else /* no NBPG */
5855 #     ifdef NBPC
5856 #      define getpagesize() NBPC
5857 #     else /* no NBPC */
5858 #      ifdef PAGESIZE
5859 #       define getpagesize() PAGESIZE
5860 #      endif /* PAGESIZE */
5861 #     endif /* no NBPC */
5862 #    endif /* no NBPG */
5863 #   endif /* no EXEC_PAGESIZE */
5864 #  else /* no HAVE_SYS_PARAM_H */
5865 #   define getpagesize() 8192   /* punt totally */
5866 #  endif /* no HAVE_SYS_PARAM_H */
5867 # endif /* no _SC_PAGESIZE */
5868
5869 #endif /* no HAVE_GETPAGESIZE */
5870
5871 int
5872 main ()
5873 {
5874   char *data, *data2, *data3;
5875   int i, pagesize;
5876   int fd;
5877
5878   pagesize = getpagesize ();
5879
5880   /* First, make a file with some known garbage in it. */
5881   data = (char *) malloc (pagesize);
5882   if (!data)
5883     exit (1);
5884   for (i = 0; i < pagesize; ++i)
5885     *(data + i) = rand ();
5886   umask (0);
5887   fd = creat ("conftest.mmap", 0600);
5888   if (fd < 0)
5889     exit (1);
5890   if (write (fd, data, pagesize) != pagesize)
5891     exit (1);
5892   close (fd);
5893
5894   /* Next, try to mmap the file at a fixed address which already has
5895      something else allocated at it.  If we can, also make sure that
5896      we see the same garbage.  */
5897   fd = open ("conftest.mmap", O_RDWR);
5898   if (fd < 0)
5899     exit (1);
5900   data2 = (char *) malloc (2 * pagesize);
5901   if (!data2)
5902     exit (1);
5903   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5904   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5905                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
5906     exit (1);
5907   for (i = 0; i < pagesize; ++i)
5908     if (*(data + i) != *(data2 + i))
5909       exit (1);
5910
5911   /* Finally, make sure that changes to the mapped area do not
5912      percolate back to the file as seen by read().  (This is a bug on
5913      some variants of i386 svr4.0.)  */
5914   for (i = 0; i < pagesize; ++i)
5915     *(data2 + i) = *(data2 + i) + 1;
5916   data3 = (char *) malloc (pagesize);
5917   if (!data3)
5918     exit (1);
5919   if (read (fd, data3, pagesize) != pagesize)
5920     exit (1);
5921   for (i = 0; i < pagesize; ++i)
5922     if (*(data + i) != *(data3 + i))
5923       exit (1);
5924   close (fd);
5925   exit (0);
5926 }
5927 _ACEOF
5928 rm -f conftest$ac_exeext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930   (eval $ac_link) 2>&5
5931   ac_status=$?
5932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935   (eval $ac_try) 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); }; }; then
5939   ac_cv_func_mmap_fixed_mapped=yes
5940 else
5941   echo "$as_me: program exited with status $ac_status" >&5
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5944
5945 ( exit $ac_status )
5946 ac_cv_func_mmap_fixed_mapped=no
5947 fi
5948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5949 fi
5950 fi
5951 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5952 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5953 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5954
5955 cat >>confdefs.h <<\_ACEOF
5956 #define HAVE_MMAP 1
5957 _ACEOF
5958
5959 fi
5960 rm -f conftest.mmap
5961
5962 fi
5963 echo "$as_me:$LINENO: checking for off_t" >&5
5964 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5965 if test "${ac_cv_type_off_t+set}" = set; then
5966   echo $ECHO_N "(cached) $ECHO_C" >&6
5967 else
5968   cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h.  */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h.  */
5974 $ac_includes_default
5975 int
5976 main ()
5977 {
5978 if ((off_t *) 0)
5979   return 0;
5980 if (sizeof (off_t))
5981   return 0;
5982   ;
5983   return 0;
5984 }
5985 _ACEOF
5986 rm -f conftest.$ac_objext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988   (eval $ac_compile) 2>conftest.er1
5989   ac_status=$?
5990   grep -v '^ *+' conftest.er1 >conftest.err
5991   rm -f conftest.er1
5992   cat conftest.err >&5
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); } &&
5995          { ac_try='test -z "$ac_c_werror_flag"
5996                          || test ! -s conftest.err'
5997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998   (eval $ac_try) 2>&5
5999   ac_status=$?
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); }; } &&
6002          { ac_try='test -s conftest.$ac_objext'
6003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004   (eval $ac_try) 2>&5
6005   ac_status=$?
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); }; }; then
6008   ac_cv_type_off_t=yes
6009 else
6010   echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013 ac_cv_type_off_t=no
6014 fi
6015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6016 fi
6017 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6018 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6019 if test $ac_cv_type_off_t = yes; then
6020   :
6021 else
6022
6023 cat >>confdefs.h <<_ACEOF
6024 #define off_t long
6025 _ACEOF
6026
6027 fi
6028
6029
6030 # check header files
6031 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6032 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6033 if test "${ac_cv_header_stdc+set}" = set; then
6034   echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036   cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h.  */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h.  */
6042 #include <stdlib.h>
6043 #include <stdarg.h>
6044 #include <string.h>
6045 #include <float.h>
6046
6047 int
6048 main ()
6049 {
6050
6051   ;
6052   return 0;
6053 }
6054 _ACEOF
6055 rm -f conftest.$ac_objext
6056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6057   (eval $ac_compile) 2>conftest.er1
6058   ac_status=$?
6059   grep -v '^ *+' conftest.er1 >conftest.err
6060   rm -f conftest.er1
6061   cat conftest.err >&5
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); } &&
6064          { ac_try='test -z "$ac_c_werror_flag"
6065                          || test ! -s conftest.err'
6066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067   (eval $ac_try) 2>&5
6068   ac_status=$?
6069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); }; } &&
6071          { ac_try='test -s conftest.$ac_objext'
6072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073   (eval $ac_try) 2>&5
6074   ac_status=$?
6075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076   (exit $ac_status); }; }; then
6077   ac_cv_header_stdc=yes
6078 else
6079   echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6081
6082 ac_cv_header_stdc=no
6083 fi
6084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6085
6086 if test $ac_cv_header_stdc = yes; then
6087   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6088   cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h.  */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h.  */
6094 #include <string.h>
6095
6096 _ACEOF
6097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6098   $EGREP "memchr" >/dev/null 2>&1; then
6099   :
6100 else
6101   ac_cv_header_stdc=no
6102 fi
6103 rm -f conftest*
6104
6105 fi
6106
6107 if test $ac_cv_header_stdc = yes; then
6108   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6109   cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h.  */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h.  */
6115 #include <stdlib.h>
6116
6117 _ACEOF
6118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6119   $EGREP "free" >/dev/null 2>&1; then
6120   :
6121 else
6122   ac_cv_header_stdc=no
6123 fi
6124 rm -f conftest*
6125
6126 fi
6127
6128 if test $ac_cv_header_stdc = yes; then
6129   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6130   if test "$cross_compiling" = yes; then
6131   :
6132 else
6133   cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h.  */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h.  */
6139 #include <ctype.h>
6140 #if ((' ' & 0x0FF) == 0x020)
6141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6143 #else
6144 # define ISLOWER(c) \
6145                    (('a' <= (c) && (c) <= 'i') \
6146                      || ('j' <= (c) && (c) <= 'r') \
6147                      || ('s' <= (c) && (c) <= 'z'))
6148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6149 #endif
6150
6151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6152 int
6153 main ()
6154 {
6155   int i;
6156   for (i = 0; i < 256; i++)
6157     if (XOR (islower (i), ISLOWER (i))
6158         || toupper (i) != TOUPPER (i))
6159       exit(2);
6160   exit (0);
6161 }
6162 _ACEOF
6163 rm -f conftest$ac_exeext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6165   (eval $ac_link) 2>&5
6166   ac_status=$?
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170   (eval $ac_try) 2>&5
6171   ac_status=$?
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); }; }; then
6174   :
6175 else
6176   echo "$as_me: program exited with status $ac_status" >&5
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180 ( exit $ac_status )
6181 ac_cv_header_stdc=no
6182 fi
6183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6184 fi
6185 fi
6186 fi
6187 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6188 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6189 if test $ac_cv_header_stdc = yes; then
6190
6191 cat >>confdefs.h <<\_ACEOF
6192 #define STDC_HEADERS 1
6193 _ACEOF
6194
6195 fi
6196
6197
6198
6199
6200
6201
6202
6203
6204 for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h signal.h
6205 do
6206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6208   echo "$as_me:$LINENO: checking for $ac_header" >&5
6209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6211   echo $ECHO_N "(cached) $ECHO_C" >&6
6212 fi
6213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6215 else
6216   # Is the header compilable?
6217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h.  */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h.  */
6225 $ac_includes_default
6226 #include <$ac_header>
6227 _ACEOF
6228 rm -f conftest.$ac_objext
6229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6230   (eval $ac_compile) 2>conftest.er1
6231   ac_status=$?
6232   grep -v '^ *+' conftest.er1 >conftest.err
6233   rm -f conftest.er1
6234   cat conftest.err >&5
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); } &&
6237          { ac_try='test -z "$ac_c_werror_flag"
6238                          || test ! -s conftest.err'
6239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240   (eval $ac_try) 2>&5
6241   ac_status=$?
6242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243   (exit $ac_status); }; } &&
6244          { ac_try='test -s conftest.$ac_objext'
6245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246   (eval $ac_try) 2>&5
6247   ac_status=$?
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); }; }; then
6250   ac_header_compiler=yes
6251 else
6252   echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6254
6255 ac_header_compiler=no
6256 fi
6257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6259 echo "${ECHO_T}$ac_header_compiler" >&6
6260
6261 # Is the header present?
6262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6264 cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h.  */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h.  */
6270 #include <$ac_header>
6271 _ACEOF
6272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6273   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6274   ac_status=$?
6275   grep -v '^ *+' conftest.er1 >conftest.err
6276   rm -f conftest.er1
6277   cat conftest.err >&5
6278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279   (exit $ac_status); } >/dev/null; then
6280   if test -s conftest.err; then
6281     ac_cpp_err=$ac_c_preproc_warn_flag
6282     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6283   else
6284     ac_cpp_err=
6285   fi
6286 else
6287   ac_cpp_err=yes
6288 fi
6289 if test -z "$ac_cpp_err"; then
6290   ac_header_preproc=yes
6291 else
6292   echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6294
6295   ac_header_preproc=no
6296 fi
6297 rm -f conftest.err conftest.$ac_ext
6298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6299 echo "${ECHO_T}$ac_header_preproc" >&6
6300
6301 # So?  What about this header?
6302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6303   yes:no: )
6304     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6308     ac_header_preproc=yes
6309     ;;
6310   no:yes:* )
6311     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6313     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6314 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6315     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6317     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6318 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6319     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6321     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6323     (
6324       cat <<\_ASBOX
6325 ## ------------------------------------------------------ ##
6326 ## Report this to the GNU Fortran Runtime Library lists.  ##
6327 ## ------------------------------------------------------ ##
6328 _ASBOX
6329     ) |
6330       sed "s/^/$as_me: WARNING:     /" >&2
6331     ;;
6332 esac
6333 echo "$as_me:$LINENO: checking for $ac_header" >&5
6334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6336   echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338   eval "$as_ac_Header=\$ac_header_preproc"
6339 fi
6340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6342
6343 fi
6344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6345   cat >>confdefs.h <<_ACEOF
6346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6347 _ACEOF
6348
6349 fi
6350
6351 done
6352
6353
6354
6355
6356
6357
6358 for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
6359 do
6360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6362   echo "$as_me:$LINENO: checking for $ac_header" >&5
6363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 fi
6367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6369 else
6370   # Is the header compilable?
6371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6373 cat >conftest.$ac_ext <<_ACEOF
6374 /* confdefs.h.  */
6375 _ACEOF
6376 cat confdefs.h >>conftest.$ac_ext
6377 cat >>conftest.$ac_ext <<_ACEOF
6378 /* end confdefs.h.  */
6379 $ac_includes_default
6380 #include <$ac_header>
6381 _ACEOF
6382 rm -f conftest.$ac_objext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384   (eval $ac_compile) 2>conftest.er1
6385   ac_status=$?
6386   grep -v '^ *+' conftest.er1 >conftest.err
6387   rm -f conftest.er1
6388   cat conftest.err >&5
6389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390   (exit $ac_status); } &&
6391          { ac_try='test -z "$ac_c_werror_flag"
6392                          || test ! -s conftest.err'
6393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394   (eval $ac_try) 2>&5
6395   ac_status=$?
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); }; } &&
6398          { ac_try='test -s conftest.$ac_objext'
6399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400   (eval $ac_try) 2>&5
6401   ac_status=$?
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); }; }; then
6404   ac_header_compiler=yes
6405 else
6406   echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6408
6409 ac_header_compiler=no
6410 fi
6411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6413 echo "${ECHO_T}$ac_header_compiler" >&6
6414
6415 # Is the header present?
6416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6418 cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h.  */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h.  */
6424 #include <$ac_header>
6425 _ACEOF
6426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6428   ac_status=$?
6429   grep -v '^ *+' conftest.er1 >conftest.err
6430   rm -f conftest.er1
6431   cat conftest.err >&5
6432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433   (exit $ac_status); } >/dev/null; then
6434   if test -s conftest.err; then
6435     ac_cpp_err=$ac_c_preproc_warn_flag
6436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6437   else
6438     ac_cpp_err=
6439   fi
6440 else
6441   ac_cpp_err=yes
6442 fi
6443 if test -z "$ac_cpp_err"; then
6444   ac_header_preproc=yes
6445 else
6446   echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6448
6449   ac_header_preproc=no
6450 fi
6451 rm -f conftest.err conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6453 echo "${ECHO_T}$ac_header_preproc" >&6
6454
6455 # So?  What about this header?
6456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6457   yes:no: )
6458     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6462     ac_header_preproc=yes
6463     ;;
6464   no:yes:* )
6465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6467     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6468 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6469     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6471     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6472 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6475     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6477     (
6478       cat <<\_ASBOX
6479 ## ------------------------------------------------------ ##
6480 ## Report this to the GNU Fortran Runtime Library lists.  ##
6481 ## ------------------------------------------------------ ##
6482 _ASBOX
6483     ) |
6484       sed "s/^/$as_me: WARNING:     /" >&2
6485     ;;
6486 esac
6487 echo "$as_me:$LINENO: checking for $ac_header" >&5
6488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6490   echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492   eval "$as_ac_Header=\$ac_header_preproc"
6493 fi
6494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6496
6497 fi
6498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6499   cat >>confdefs.h <<_ACEOF
6500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6501 _ACEOF
6502
6503 fi
6504
6505 done
6506
6507
6508
6509
6510
6511 for ac_header in sys/mman.h sys/types.h sys/stat.h ieeefp.h
6512 do
6513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6515   echo "$as_me:$LINENO: checking for $ac_header" >&5
6516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6518   echo $ECHO_N "(cached) $ECHO_C" >&6
6519 fi
6520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6522 else
6523   # Is the header compilable?
6524 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6526 cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h.  */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h.  */
6532 $ac_includes_default
6533 #include <$ac_header>
6534 _ACEOF
6535 rm -f conftest.$ac_objext
6536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6537   (eval $ac_compile) 2>conftest.er1
6538   ac_status=$?
6539   grep -v '^ *+' conftest.er1 >conftest.err
6540   rm -f conftest.er1
6541   cat conftest.err >&5
6542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543   (exit $ac_status); } &&
6544          { ac_try='test -z "$ac_c_werror_flag"
6545                          || test ! -s conftest.err'
6546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547   (eval $ac_try) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; } &&
6551          { ac_try='test -s conftest.$ac_objext'
6552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553   (eval $ac_try) 2>&5
6554   ac_status=$?
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); }; }; then
6557   ac_header_compiler=yes
6558 else
6559   echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6561
6562 ac_header_compiler=no
6563 fi
6564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6566 echo "${ECHO_T}$ac_header_compiler" >&6
6567
6568 # Is the header present?
6569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6571 cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h.  */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h.  */
6577 #include <$ac_header>
6578 _ACEOF
6579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6580   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6581   ac_status=$?
6582   grep -v '^ *+' conftest.er1 >conftest.err
6583   rm -f conftest.er1
6584   cat conftest.err >&5
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); } >/dev/null; then
6587   if test -s conftest.err; then
6588     ac_cpp_err=$ac_c_preproc_warn_flag
6589     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6590   else
6591     ac_cpp_err=
6592   fi
6593 else
6594   ac_cpp_err=yes
6595 fi
6596 if test -z "$ac_cpp_err"; then
6597   ac_header_preproc=yes
6598 else
6599   echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6601
6602   ac_header_preproc=no
6603 fi
6604 rm -f conftest.err conftest.$ac_ext
6605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6606 echo "${ECHO_T}$ac_header_preproc" >&6
6607
6608 # So?  What about this header?
6609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6610   yes:no: )
6611     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6615     ac_header_preproc=yes
6616     ;;
6617   no:yes:* )
6618     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6620     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6621 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6622     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6624     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6625 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6628     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6630     (
6631       cat <<\_ASBOX
6632 ## ------------------------------------------------------ ##
6633 ## Report this to the GNU Fortran Runtime Library lists.  ##
6634 ## ------------------------------------------------------ ##
6635 _ASBOX
6636     ) |
6637       sed "s/^/$as_me: WARNING:     /" >&2
6638     ;;
6639 esac
6640 echo "$as_me:$LINENO: checking for $ac_header" >&5
6641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6643   echo $ECHO_N "(cached) $ECHO_C" >&6
6644 else
6645   eval "$as_ac_Header=\$ac_header_preproc"
6646 fi
6647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6649
6650 fi
6651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6652   cat >>confdefs.h <<_ACEOF
6653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6654 _ACEOF
6655
6656 fi
6657
6658 done
6659
6660 if test "${ac_cv_header_complex_h+set}" = set; then
6661   echo "$as_me:$LINENO: checking for complex.h" >&5
6662 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6663 if test "${ac_cv_header_complex_h+set}" = set; then
6664   echo $ECHO_N "(cached) $ECHO_C" >&6
6665 fi
6666 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6667 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6668 else
6669   # Is the header compilable?
6670 echo "$as_me:$LINENO: checking complex.h usability" >&5
6671 echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h.  */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h.  */
6678 $ac_includes_default
6679 #include <complex.h>
6680 _ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6683   (eval $ac_compile) 2>conftest.er1
6684   ac_status=$?
6685   grep -v '^ *+' conftest.er1 >conftest.err
6686   rm -f conftest.er1
6687   cat conftest.err >&5
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); } &&
6690          { ac_try='test -z "$ac_c_werror_flag"
6691                          || test ! -s conftest.err'
6692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693   (eval $ac_try) 2>&5
6694   ac_status=$?
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); }; } &&
6697          { ac_try='test -s conftest.$ac_objext'
6698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699   (eval $ac_try) 2>&5
6700   ac_status=$?
6701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702   (exit $ac_status); }; }; then
6703   ac_header_compiler=yes
6704 else
6705   echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6707
6708 ac_header_compiler=no
6709 fi
6710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6712 echo "${ECHO_T}$ac_header_compiler" >&6
6713
6714 # Is the header present?
6715 echo "$as_me:$LINENO: checking complex.h presence" >&5
6716 echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h.  */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h.  */
6723 #include <complex.h>
6724 _ACEOF
6725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6726   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6727   ac_status=$?
6728   grep -v '^ *+' conftest.er1 >conftest.err
6729   rm -f conftest.er1
6730   cat conftest.err >&5
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); } >/dev/null; then
6733   if test -s conftest.err; then
6734     ac_cpp_err=$ac_c_preproc_warn_flag
6735     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6736   else
6737     ac_cpp_err=
6738   fi
6739 else
6740   ac_cpp_err=yes
6741 fi
6742 if test -z "$ac_cpp_err"; then
6743   ac_header_preproc=yes
6744 else
6745   echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6747
6748   ac_header_preproc=no
6749 fi
6750 rm -f conftest.err conftest.$ac_ext
6751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6752 echo "${ECHO_T}$ac_header_preproc" >&6
6753
6754 # So?  What about this header?
6755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6756   yes:no: )
6757     { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6758 echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6759     { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6760 echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6761     ac_header_preproc=yes
6762     ;;
6763   no:yes:* )
6764     { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6765 echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6766     { echo "$as_me:$LINENO: WARNING: complex.h:     check for missing prerequisite headers?" >&5
6767 echo "$as_me: WARNING: complex.h:     check for missing prerequisite headers?" >&2;}
6768     { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6769 echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6770     { echo "$as_me:$LINENO: WARNING: complex.h:     section \"Present But Cannot Be Compiled\"" >&5
6771 echo "$as_me: WARNING: complex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6772     { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6773 echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6774     { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6775 echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6776     (
6777       cat <<\_ASBOX
6778 ## ------------------------------------------------------ ##
6779 ## Report this to the GNU Fortran Runtime Library lists.  ##
6780 ## ------------------------------------------------------ ##
6781 _ASBOX
6782     ) |
6783       sed "s/^/$as_me: WARNING:     /" >&2
6784     ;;
6785 esac
6786 echo "$as_me:$LINENO: checking for complex.h" >&5
6787 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6788 if test "${ac_cv_header_complex_h+set}" = set; then
6789   echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791   ac_cv_header_complex_h=$ac_header_preproc
6792 fi
6793 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6794 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6795
6796 fi
6797 if test $ac_cv_header_complex_h = yes; then
6798
6799 cat >>confdefs.h <<\_ACEOF
6800 #define HAVE_COMPLEX_H 1
6801 _ACEOF
6802
6803 fi
6804
6805
6806
6807 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6808 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6809 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6810   echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812   cat >conftest.$ac_ext <<_ACEOF
6813 /* confdefs.h.  */
6814 _ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6817 /* end confdefs.h.  */
6818 $ac_includes_default
6819 int
6820 main ()
6821 {
6822 static struct stat ac_aggr;
6823 if (ac_aggr.st_blksize)
6824 return 0;
6825   ;
6826   return 0;
6827 }
6828 _ACEOF
6829 rm -f conftest.$ac_objext
6830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6831   (eval $ac_compile) 2>conftest.er1
6832   ac_status=$?
6833   grep -v '^ *+' conftest.er1 >conftest.err
6834   rm -f conftest.er1
6835   cat conftest.err >&5
6836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837   (exit $ac_status); } &&
6838          { ac_try='test -z "$ac_c_werror_flag"
6839                          || test ! -s conftest.err'
6840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841   (eval $ac_try) 2>&5
6842   ac_status=$?
6843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844   (exit $ac_status); }; } &&
6845          { ac_try='test -s conftest.$ac_objext'
6846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847   (eval $ac_try) 2>&5
6848   ac_status=$?
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); }; }; then
6851   ac_cv_member_struct_stat_st_blksize=yes
6852 else
6853   echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6855
6856 cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h.  */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h.  */
6862 $ac_includes_default
6863 int
6864 main ()
6865 {
6866 static struct stat ac_aggr;
6867 if (sizeof ac_aggr.st_blksize)
6868 return 0;
6869   ;
6870   return 0;
6871 }
6872 _ACEOF
6873 rm -f conftest.$ac_objext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6875   (eval $ac_compile) 2>conftest.er1
6876   ac_status=$?
6877   grep -v '^ *+' conftest.er1 >conftest.err
6878   rm -f conftest.er1
6879   cat conftest.err >&5
6880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); } &&
6882          { ac_try='test -z "$ac_c_werror_flag"
6883                          || test ! -s conftest.err'
6884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885   (eval $ac_try) 2>&5
6886   ac_status=$?
6887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888   (exit $ac_status); }; } &&
6889          { ac_try='test -s conftest.$ac_objext'
6890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891   (eval $ac_try) 2>&5
6892   ac_status=$?
6893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894   (exit $ac_status); }; }; then
6895   ac_cv_member_struct_stat_st_blksize=yes
6896 else
6897   echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6899
6900 ac_cv_member_struct_stat_st_blksize=no
6901 fi
6902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6903 fi
6904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6905 fi
6906 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6907 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
6908 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6909
6910 cat >>confdefs.h <<_ACEOF
6911 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6912 _ACEOF
6913
6914
6915 fi
6916
6917 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6918 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6919 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6920   echo $ECHO_N "(cached) $ECHO_C" >&6
6921 else
6922   cat >conftest.$ac_ext <<_ACEOF
6923 /* confdefs.h.  */
6924 _ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h.  */
6928 $ac_includes_default
6929 int
6930 main ()
6931 {
6932 static struct stat ac_aggr;
6933 if (ac_aggr.st_blocks)
6934 return 0;
6935   ;
6936   return 0;
6937 }
6938 _ACEOF
6939 rm -f conftest.$ac_objext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6941   (eval $ac_compile) 2>conftest.er1
6942   ac_status=$?
6943   grep -v '^ *+' conftest.er1 >conftest.err
6944   rm -f conftest.er1
6945   cat conftest.err >&5
6946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); } &&
6948          { ac_try='test -z "$ac_c_werror_flag"
6949                          || test ! -s conftest.err'
6950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951   (eval $ac_try) 2>&5
6952   ac_status=$?
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); }; } &&
6955          { ac_try='test -s conftest.$ac_objext'
6956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957   (eval $ac_try) 2>&5
6958   ac_status=$?
6959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); }; }; then
6961   ac_cv_member_struct_stat_st_blocks=yes
6962 else
6963   echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6965
6966 cat >conftest.$ac_ext <<_ACEOF
6967 /* confdefs.h.  */
6968 _ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h.  */
6972 $ac_includes_default
6973 int
6974 main ()
6975 {
6976 static struct stat ac_aggr;
6977 if (sizeof ac_aggr.st_blocks)
6978 return 0;
6979   ;
6980   return 0;
6981 }
6982 _ACEOF
6983 rm -f conftest.$ac_objext
6984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6985   (eval $ac_compile) 2>conftest.er1
6986   ac_status=$?
6987   grep -v '^ *+' conftest.er1 >conftest.err
6988   rm -f conftest.er1
6989   cat conftest.err >&5
6990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991   (exit $ac_status); } &&
6992          { ac_try='test -z "$ac_c_werror_flag"
6993                          || test ! -s conftest.err'
6994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995   (eval $ac_try) 2>&5
6996   ac_status=$?
6997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998   (exit $ac_status); }; } &&
6999          { ac_try='test -s conftest.$ac_objext'
7000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001   (eval $ac_try) 2>&5
7002   ac_status=$?
7003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); }; }; then
7005   ac_cv_member_struct_stat_st_blocks=yes
7006 else
7007   echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7009
7010 ac_cv_member_struct_stat_st_blocks=no
7011 fi
7012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7013 fi
7014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7015 fi
7016 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
7017 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
7018 if test $ac_cv_member_struct_stat_st_blocks = yes; then
7019
7020 cat >>confdefs.h <<_ACEOF
7021 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7022 _ACEOF
7023
7024
7025 fi
7026
7027 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7028 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
7029 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7030   echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032   cat >conftest.$ac_ext <<_ACEOF
7033 /* confdefs.h.  */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h.  */
7038 $ac_includes_default
7039 int
7040 main ()
7041 {
7042 static struct stat ac_aggr;
7043 if (ac_aggr.st_rdev)
7044 return 0;
7045   ;
7046   return 0;
7047 }
7048 _ACEOF
7049 rm -f conftest.$ac_objext
7050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7051   (eval $ac_compile) 2>conftest.er1
7052   ac_status=$?
7053   grep -v '^ *+' conftest.er1 >conftest.err
7054   rm -f conftest.er1
7055   cat conftest.err >&5
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); } &&
7058          { ac_try='test -z "$ac_c_werror_flag"
7059                          || test ! -s conftest.err'
7060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061   (eval $ac_try) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); }; } &&
7065          { ac_try='test -s conftest.$ac_objext'
7066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067   (eval $ac_try) 2>&5
7068   ac_status=$?
7069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070   (exit $ac_status); }; }; then
7071   ac_cv_member_struct_stat_st_rdev=yes
7072 else
7073   echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7075
7076 cat >conftest.$ac_ext <<_ACEOF
7077 /* confdefs.h.  */
7078 _ACEOF
7079 cat confdefs.h >>conftest.$ac_ext
7080 cat >>conftest.$ac_ext <<_ACEOF
7081 /* end confdefs.h.  */
7082 $ac_includes_default
7083 int
7084 main ()
7085 {
7086 static struct stat ac_aggr;
7087 if (sizeof ac_aggr.st_rdev)
7088 return 0;
7089   ;
7090   return 0;
7091 }
7092 _ACEOF
7093 rm -f conftest.$ac_objext
7094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7095   (eval $ac_compile) 2>conftest.er1
7096   ac_status=$?
7097   grep -v '^ *+' conftest.er1 >conftest.err
7098   rm -f conftest.er1
7099   cat conftest.err >&5
7100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101   (exit $ac_status); } &&
7102          { ac_try='test -z "$ac_c_werror_flag"
7103                          || test ! -s conftest.err'
7104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105   (eval $ac_try) 2>&5
7106   ac_status=$?
7107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108   (exit $ac_status); }; } &&
7109          { ac_try='test -s conftest.$ac_objext'
7110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111   (eval $ac_try) 2>&5
7112   ac_status=$?
7113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114   (exit $ac_status); }; }; then
7115   ac_cv_member_struct_stat_st_rdev=yes
7116 else
7117   echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7119
7120 ac_cv_member_struct_stat_st_rdev=no
7121 fi
7122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7123 fi
7124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7125 fi
7126 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7127 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7128 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7129
7130 cat >>confdefs.h <<_ACEOF
7131 #define HAVE_STRUCT_STAT_ST_RDEV 1
7132 _ACEOF
7133
7134
7135 fi
7136
7137
7138 # Check for complex math functions
7139 echo "$as_me:$LINENO: checking for csin in -lm" >&5
7140 echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
7141 if test "${ac_cv_lib_m_csin+set}" = set; then
7142   echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144   ac_check_lib_save_LIBS=$LIBS
7145 LIBS="-lm  $LIBS"
7146 if test x$gcc_no_link = xyes; then
7147   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7148 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7149    { (exit 1); exit 1; }; }
7150 fi
7151 cat >conftest.$ac_ext <<_ACEOF
7152 /* confdefs.h.  */
7153 _ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h.  */
7157
7158 /* Override any gcc2 internal prototype to avoid an error.  */
7159 #ifdef __cplusplus
7160 extern "C"
7161 #endif
7162 /* We use char because int might match the return type of a gcc2
7163    builtin and then its argument prototype would still apply.  */
7164 char csin ();
7165 int
7166 main ()
7167 {
7168 csin ();
7169   ;
7170   return 0;
7171 }
7172 _ACEOF
7173 rm -f conftest.$ac_objext conftest$ac_exeext
7174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175   (eval $ac_link) 2>conftest.er1
7176   ac_status=$?
7177   grep -v '^ *+' conftest.er1 >conftest.err
7178   rm -f conftest.er1
7179   cat conftest.err >&5
7180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181   (exit $ac_status); } &&
7182          { ac_try='test -z "$ac_c_werror_flag"
7183                          || test ! -s conftest.err'
7184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185   (eval $ac_try) 2>&5
7186   ac_status=$?
7187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188   (exit $ac_status); }; } &&
7189          { ac_try='test -s conftest$ac_exeext'
7190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191   (eval $ac_try) 2>&5
7192   ac_status=$?
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); }; }; then
7195   ac_cv_lib_m_csin=yes
7196 else
7197   echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.$ac_ext >&5
7199
7200 ac_cv_lib_m_csin=no
7201 fi
7202 rm -f conftest.err conftest.$ac_objext \
7203       conftest$ac_exeext conftest.$ac_ext
7204 LIBS=$ac_check_lib_save_LIBS
7205 fi
7206 echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
7207 echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
7208 if test $ac_cv_lib_m_csin = yes; then
7209   need_math="no"
7210 else
7211   need_math="yes"
7212 fi
7213
7214
7215 # Check for library functions.
7216
7217
7218
7219
7220
7221
7222
7223 for ac_func in getrusage times mkstemp strtof snprintf ftruncate chsize
7224 do
7225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7226 echo "$as_me:$LINENO: checking for $ac_func" >&5
7227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7228 if eval "test \"\${$as_ac_var+set}\" = set"; then
7229   echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231   if test x$gcc_no_link = xyes; then
7232   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7233 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7234    { (exit 1); exit 1; }; }
7235 fi
7236 cat >conftest.$ac_ext <<_ACEOF
7237 /* confdefs.h.  */
7238 _ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h.  */
7242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7244 #define $ac_func innocuous_$ac_func
7245
7246 /* System header to define __stub macros and hopefully few prototypes,
7247     which can conflict with char $ac_func (); below.
7248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7249     <limits.h> exists even on freestanding compilers.  */
7250
7251 #ifdef __STDC__
7252 # include <limits.h>
7253 #else
7254 # include <assert.h>
7255 #endif
7256
7257 #undef $ac_func
7258
7259 /* Override any gcc2 internal prototype to avoid an error.  */
7260 #ifdef __cplusplus
7261 extern "C"
7262 {
7263 #endif
7264 /* We use char because int might match the return type of a gcc2
7265    builtin and then its argument prototype would still apply.  */
7266 char $ac_func ();
7267 /* The GNU C library defines this for functions which it implements
7268     to always fail with ENOSYS.  Some functions are actually named
7269     something starting with __ and the normal name is an alias.  */
7270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7271 choke me
7272 #else
7273 char (*f) () = $ac_func;
7274 #endif
7275 #ifdef __cplusplus
7276 }
7277 #endif
7278
7279 int
7280 main ()
7281 {
7282 return f != $ac_func;
7283   ;
7284   return 0;
7285 }
7286 _ACEOF
7287 rm -f conftest.$ac_objext conftest$ac_exeext
7288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7289   (eval $ac_link) 2>conftest.er1
7290   ac_status=$?
7291   grep -v '^ *+' conftest.er1 >conftest.err
7292   rm -f conftest.er1
7293   cat conftest.err >&5
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); } &&
7296          { ac_try='test -z "$ac_c_werror_flag"
7297                          || test ! -s conftest.err'
7298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299   (eval $ac_try) 2>&5
7300   ac_status=$?
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); }; } &&
7303          { ac_try='test -s conftest$ac_exeext'
7304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305   (eval $ac_try) 2>&5
7306   ac_status=$?
7307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308   (exit $ac_status); }; }; then
7309   eval "$as_ac_var=yes"
7310 else
7311   echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7313
7314 eval "$as_ac_var=no"
7315 fi
7316 rm -f conftest.err conftest.$ac_objext \
7317       conftest$ac_exeext conftest.$ac_ext
7318 fi
7319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7321 if test `eval echo '${'$as_ac_var'}'` = yes; then
7322   cat >>confdefs.h <<_ACEOF
7323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7324 _ACEOF
7325
7326 fi
7327 done
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337 for ac_func in chdir strerror getlogin gethostname kill link symlink perror
7338 do
7339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7340 echo "$as_me:$LINENO: checking for $ac_func" >&5
7341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7342 if eval "test \"\${$as_ac_var+set}\" = set"; then
7343   echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345   if test x$gcc_no_link = xyes; then
7346   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7347 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7348    { (exit 1); exit 1; }; }
7349 fi
7350 cat >conftest.$ac_ext <<_ACEOF
7351 /* confdefs.h.  */
7352 _ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h.  */
7356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7358 #define $ac_func innocuous_$ac_func
7359
7360 /* System header to define __stub macros and hopefully few prototypes,
7361     which can conflict with char $ac_func (); below.
7362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7363     <limits.h> exists even on freestanding compilers.  */
7364
7365 #ifdef __STDC__
7366 # include <limits.h>
7367 #else
7368 # include <assert.h>
7369 #endif
7370
7371 #undef $ac_func
7372
7373 /* Override any gcc2 internal prototype to avoid an error.  */
7374 #ifdef __cplusplus
7375 extern "C"
7376 {
7377 #endif
7378 /* We use char because int might match the return type of a gcc2
7379    builtin and then its argument prototype would still apply.  */
7380 char $ac_func ();
7381 /* The GNU C library defines this for functions which it implements
7382     to always fail with ENOSYS.  Some functions are actually named
7383     something starting with __ and the normal name is an alias.  */
7384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7385 choke me
7386 #else
7387 char (*f) () = $ac_func;
7388 #endif
7389 #ifdef __cplusplus
7390 }
7391 #endif
7392
7393 int
7394 main ()
7395 {
7396 return f != $ac_func;
7397   ;
7398   return 0;
7399 }
7400 _ACEOF
7401 rm -f conftest.$ac_objext conftest$ac_exeext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7403   (eval $ac_link) 2>conftest.er1
7404   ac_status=$?
7405   grep -v '^ *+' conftest.er1 >conftest.err
7406   rm -f conftest.er1
7407   cat conftest.err >&5
7408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409   (exit $ac_status); } &&
7410          { ac_try='test -z "$ac_c_werror_flag"
7411                          || test ! -s conftest.err'
7412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413   (eval $ac_try) 2>&5
7414   ac_status=$?
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); }; } &&
7417          { ac_try='test -s conftest$ac_exeext'
7418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419   (eval $ac_try) 2>&5
7420   ac_status=$?
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); }; }; then
7423   eval "$as_ac_var=yes"
7424 else
7425   echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7427
7428 eval "$as_ac_var=no"
7429 fi
7430 rm -f conftest.err conftest.$ac_objext \
7431       conftest$ac_exeext conftest.$ac_ext
7432 fi
7433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7435 if test `eval echo '${'$as_ac_var'}'` = yes; then
7436   cat >>confdefs.h <<_ACEOF
7437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7438 _ACEOF
7439
7440 fi
7441 done
7442
7443
7444
7445 for ac_func in sleep time
7446 do
7447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7448 echo "$as_me:$LINENO: checking for $ac_func" >&5
7449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7450 if eval "test \"\${$as_ac_var+set}\" = set"; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   if test x$gcc_no_link = xyes; then
7454   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7455 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7456    { (exit 1); exit 1; }; }
7457 fi
7458 cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h.  */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h.  */
7464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7466 #define $ac_func innocuous_$ac_func
7467
7468 /* System header to define __stub macros and hopefully few prototypes,
7469     which can conflict with char $ac_func (); below.
7470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7471     <limits.h> exists even on freestanding compilers.  */
7472
7473 #ifdef __STDC__
7474 # include <limits.h>
7475 #else
7476 # include <assert.h>
7477 #endif
7478
7479 #undef $ac_func
7480
7481 /* Override any gcc2 internal prototype to avoid an error.  */
7482 #ifdef __cplusplus
7483 extern "C"
7484 {
7485 #endif
7486 /* We use char because int might match the return type of a gcc2
7487    builtin and then its argument prototype would still apply.  */
7488 char $ac_func ();
7489 /* The GNU C library defines this for functions which it implements
7490     to always fail with ENOSYS.  Some functions are actually named
7491     something starting with __ and the normal name is an alias.  */
7492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7493 choke me
7494 #else
7495 char (*f) () = $ac_func;
7496 #endif
7497 #ifdef __cplusplus
7498 }
7499 #endif
7500
7501 int
7502 main ()
7503 {
7504 return f != $ac_func;
7505   ;
7506   return 0;
7507 }
7508 _ACEOF
7509 rm -f conftest.$ac_objext conftest$ac_exeext
7510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7511   (eval $ac_link) 2>conftest.er1
7512   ac_status=$?
7513   grep -v '^ *+' conftest.er1 >conftest.err
7514   rm -f conftest.er1
7515   cat conftest.err >&5
7516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517   (exit $ac_status); } &&
7518          { ac_try='test -z "$ac_c_werror_flag"
7519                          || test ! -s conftest.err'
7520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521   (eval $ac_try) 2>&5
7522   ac_status=$?
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   (exit $ac_status); }; } &&
7525          { ac_try='test -s conftest$ac_exeext'
7526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527   (eval $ac_try) 2>&5
7528   ac_status=$?
7529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530   (exit $ac_status); }; }; then
7531   eval "$as_ac_var=yes"
7532 else
7533   echo "$as_me: failed program was:" >&5
7534 sed 's/^/| /' conftest.$ac_ext >&5
7535
7536 eval "$as_ac_var=no"
7537 fi
7538 rm -f conftest.err conftest.$ac_objext \
7539       conftest$ac_exeext conftest.$ac_ext
7540 fi
7541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7543 if test `eval echo '${'$as_ac_var'}'` = yes; then
7544   cat >>confdefs.h <<_ACEOF
7545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7546 _ACEOF
7547
7548 fi
7549 done
7550
7551
7552 # Check libc for getgid, getpid, getuid
7553 echo "$as_me:$LINENO: checking for getgid in -lc" >&5
7554 echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
7555 if test "${ac_cv_lib_c_getgid+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558   ac_check_lib_save_LIBS=$LIBS
7559 LIBS="-lc  $LIBS"
7560 if test x$gcc_no_link = xyes; then
7561   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7562 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7563    { (exit 1); exit 1; }; }
7564 fi
7565 cat >conftest.$ac_ext <<_ACEOF
7566 /* confdefs.h.  */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h.  */
7571
7572 /* Override any gcc2 internal prototype to avoid an error.  */
7573 #ifdef __cplusplus
7574 extern "C"
7575 #endif
7576 /* We use char because int might match the return type of a gcc2
7577    builtin and then its argument prototype would still apply.  */
7578 char getgid ();
7579 int
7580 main ()
7581 {
7582 getgid ();
7583   ;
7584   return 0;
7585 }
7586 _ACEOF
7587 rm -f conftest.$ac_objext conftest$ac_exeext
7588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7589   (eval $ac_link) 2>conftest.er1
7590   ac_status=$?
7591   grep -v '^ *+' conftest.er1 >conftest.err
7592   rm -f conftest.er1
7593   cat conftest.err >&5
7594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595   (exit $ac_status); } &&
7596          { ac_try='test -z "$ac_c_werror_flag"
7597                          || test ! -s conftest.err'
7598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599   (eval $ac_try) 2>&5
7600   ac_status=$?
7601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602   (exit $ac_status); }; } &&
7603          { ac_try='test -s conftest$ac_exeext'
7604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605   (eval $ac_try) 2>&5
7606   ac_status=$?
7607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608   (exit $ac_status); }; }; then
7609   ac_cv_lib_c_getgid=yes
7610 else
7611   echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7613
7614 ac_cv_lib_c_getgid=no
7615 fi
7616 rm -f conftest.err conftest.$ac_objext \
7617       conftest$ac_exeext conftest.$ac_ext
7618 LIBS=$ac_check_lib_save_LIBS
7619 fi
7620 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
7621 echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
7622 if test $ac_cv_lib_c_getgid = yes; then
7623
7624 cat >>confdefs.h <<\_ACEOF
7625 #define HAVE_GETGID 1
7626 _ACEOF
7627
7628 fi
7629
7630 echo "$as_me:$LINENO: checking for getpid in -lc" >&5
7631 echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
7632 if test "${ac_cv_lib_c_getpid+set}" = set; then
7633   echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635   ac_check_lib_save_LIBS=$LIBS
7636 LIBS="-lc  $LIBS"
7637 if test x$gcc_no_link = xyes; then
7638   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7639 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7640    { (exit 1); exit 1; }; }
7641 fi
7642 cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h.  */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h.  */
7648
7649 /* Override any gcc2 internal prototype to avoid an error.  */
7650 #ifdef __cplusplus
7651 extern "C"
7652 #endif
7653 /* We use char because int might match the return type of a gcc2
7654    builtin and then its argument prototype would still apply.  */
7655 char getpid ();
7656 int
7657 main ()
7658 {
7659 getpid ();
7660   ;
7661   return 0;
7662 }
7663 _ACEOF
7664 rm -f conftest.$ac_objext conftest$ac_exeext
7665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7666   (eval $ac_link) 2>conftest.er1
7667   ac_status=$?
7668   grep -v '^ *+' conftest.er1 >conftest.err
7669   rm -f conftest.er1
7670   cat conftest.err >&5
7671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); } &&
7673          { ac_try='test -z "$ac_c_werror_flag"
7674                          || test ! -s conftest.err'
7675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676   (eval $ac_try) 2>&5
7677   ac_status=$?
7678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679   (exit $ac_status); }; } &&
7680          { ac_try='test -s conftest$ac_exeext'
7681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682   (eval $ac_try) 2>&5
7683   ac_status=$?
7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); }; }; then
7686   ac_cv_lib_c_getpid=yes
7687 else
7688   echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7690
7691 ac_cv_lib_c_getpid=no
7692 fi
7693 rm -f conftest.err conftest.$ac_objext \
7694       conftest$ac_exeext conftest.$ac_ext
7695 LIBS=$ac_check_lib_save_LIBS
7696 fi
7697 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
7698 echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
7699 if test $ac_cv_lib_c_getpid = yes; then
7700
7701 cat >>confdefs.h <<\_ACEOF
7702 #define HAVE_GETPID 1
7703 _ACEOF
7704
7705 fi
7706
7707 echo "$as_me:$LINENO: checking for getuid in -lc" >&5
7708 echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
7709 if test "${ac_cv_lib_c_getuid+set}" = set; then
7710   echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712   ac_check_lib_save_LIBS=$LIBS
7713 LIBS="-lc  $LIBS"
7714 if test x$gcc_no_link = xyes; then
7715   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7716 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7717    { (exit 1); exit 1; }; }
7718 fi
7719 cat >conftest.$ac_ext <<_ACEOF
7720 /* confdefs.h.  */
7721 _ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h.  */
7725
7726 /* Override any gcc2 internal prototype to avoid an error.  */
7727 #ifdef __cplusplus
7728 extern "C"
7729 #endif
7730 /* We use char because int might match the return type of a gcc2
7731    builtin and then its argument prototype would still apply.  */
7732 char getuid ();
7733 int
7734 main ()
7735 {
7736 getuid ();
7737   ;
7738   return 0;
7739 }
7740 _ACEOF
7741 rm -f conftest.$ac_objext conftest$ac_exeext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7743   (eval $ac_link) 2>conftest.er1
7744   ac_status=$?
7745   grep -v '^ *+' conftest.er1 >conftest.err
7746   rm -f conftest.er1
7747   cat conftest.err >&5
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); } &&
7750          { ac_try='test -z "$ac_c_werror_flag"
7751                          || test ! -s conftest.err'
7752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753   (eval $ac_try) 2>&5
7754   ac_status=$?
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); }; } &&
7757          { ac_try='test -s conftest$ac_exeext'
7758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759   (eval $ac_try) 2>&5
7760   ac_status=$?
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); }; }; then
7763   ac_cv_lib_c_getuid=yes
7764 else
7765   echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7767
7768 ac_cv_lib_c_getuid=no
7769 fi
7770 rm -f conftest.err conftest.$ac_objext \
7771       conftest$ac_exeext conftest.$ac_ext
7772 LIBS=$ac_check_lib_save_LIBS
7773 fi
7774 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
7775 echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
7776 if test $ac_cv_lib_c_getuid = yes; then
7777
7778 cat >>confdefs.h <<\_ACEOF
7779 #define HAVE_GETUID 1
7780 _ACEOF
7781
7782 fi
7783
7784
7785 # Check for C99 (and other IEEE) math functions
7786 # ??? This list seems awful long. Is there a better way to test for these?
7787 echo "$as_me:$LINENO: checking for acosf in -lm" >&5
7788 echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
7789 if test "${ac_cv_lib_m_acosf+set}" = set; then
7790   echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792   ac_check_lib_save_LIBS=$LIBS
7793 LIBS="-lm  $LIBS"
7794 if test x$gcc_no_link = xyes; then
7795   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7796 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7797    { (exit 1); exit 1; }; }
7798 fi
7799 cat >conftest.$ac_ext <<_ACEOF
7800 /* confdefs.h.  */
7801 _ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h.  */
7805
7806 /* Override any gcc2 internal prototype to avoid an error.  */
7807 #ifdef __cplusplus
7808 extern "C"
7809 #endif
7810 /* We use char because int might match the return type of a gcc2
7811    builtin and then its argument prototype would still apply.  */
7812 char acosf ();
7813 int
7814 main ()
7815 {
7816 acosf ();
7817   ;
7818   return 0;
7819 }
7820 _ACEOF
7821 rm -f conftest.$ac_objext conftest$ac_exeext
7822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7823   (eval $ac_link) 2>conftest.er1
7824   ac_status=$?
7825   grep -v '^ *+' conftest.er1 >conftest.err
7826   rm -f conftest.er1
7827   cat conftest.err >&5
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); } &&
7830          { ac_try='test -z "$ac_c_werror_flag"
7831                          || test ! -s conftest.err'
7832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833   (eval $ac_try) 2>&5
7834   ac_status=$?
7835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); }; } &&
7837          { ac_try='test -s conftest$ac_exeext'
7838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839   (eval $ac_try) 2>&5
7840   ac_status=$?
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); }; }; then
7843   ac_cv_lib_m_acosf=yes
7844 else
7845   echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7847
7848 ac_cv_lib_m_acosf=no
7849 fi
7850 rm -f conftest.err conftest.$ac_objext \
7851       conftest$ac_exeext conftest.$ac_ext
7852 LIBS=$ac_check_lib_save_LIBS
7853 fi
7854 echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
7855 echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
7856 if test $ac_cv_lib_m_acosf = yes; then
7857
7858 cat >>confdefs.h <<\_ACEOF
7859 #define HAVE_ACOSF 1
7860 _ACEOF
7861
7862 fi
7863
7864 echo "$as_me:$LINENO: checking for asinf in -lm" >&5
7865 echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
7866 if test "${ac_cv_lib_m_asinf+set}" = set; then
7867   echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869   ac_check_lib_save_LIBS=$LIBS
7870 LIBS="-lm  $LIBS"
7871 if test x$gcc_no_link = xyes; then
7872   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7873 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7874    { (exit 1); exit 1; }; }
7875 fi
7876 cat >conftest.$ac_ext <<_ACEOF
7877 /* confdefs.h.  */
7878 _ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h.  */
7882
7883 /* Override any gcc2 internal prototype to avoid an error.  */
7884 #ifdef __cplusplus
7885 extern "C"
7886 #endif
7887 /* We use char because int might match the return type of a gcc2
7888    builtin and then its argument prototype would still apply.  */
7889 char asinf ();
7890 int
7891 main ()
7892 {
7893 asinf ();
7894   ;
7895   return 0;
7896 }
7897 _ACEOF
7898 rm -f conftest.$ac_objext conftest$ac_exeext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7900   (eval $ac_link) 2>conftest.er1
7901   ac_status=$?
7902   grep -v '^ *+' conftest.er1 >conftest.err
7903   rm -f conftest.er1
7904   cat conftest.err >&5
7905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906   (exit $ac_status); } &&
7907          { ac_try='test -z "$ac_c_werror_flag"
7908                          || test ! -s conftest.err'
7909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910   (eval $ac_try) 2>&5
7911   ac_status=$?
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); }; } &&
7914          { ac_try='test -s conftest$ac_exeext'
7915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916   (eval $ac_try) 2>&5
7917   ac_status=$?
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); }; }; then
7920   ac_cv_lib_m_asinf=yes
7921 else
7922   echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7924
7925 ac_cv_lib_m_asinf=no
7926 fi
7927 rm -f conftest.err conftest.$ac_objext \
7928       conftest$ac_exeext conftest.$ac_ext
7929 LIBS=$ac_check_lib_save_LIBS
7930 fi
7931 echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
7932 echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
7933 if test $ac_cv_lib_m_asinf = yes; then
7934
7935 cat >>confdefs.h <<\_ACEOF
7936 #define HAVE_ASINF 1
7937 _ACEOF
7938
7939 fi
7940
7941 echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
7942 echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
7943 if test "${ac_cv_lib_m_atan2f+set}" = set; then
7944   echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946   ac_check_lib_save_LIBS=$LIBS
7947 LIBS="-lm  $LIBS"
7948 if test x$gcc_no_link = xyes; then
7949   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7950 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7951    { (exit 1); exit 1; }; }
7952 fi
7953 cat >conftest.$ac_ext <<_ACEOF
7954 /* confdefs.h.  */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h.  */
7959
7960 /* Override any gcc2 internal prototype to avoid an error.  */
7961 #ifdef __cplusplus
7962 extern "C"
7963 #endif
7964 /* We use char because int might match the return type of a gcc2
7965    builtin and then its argument prototype would still apply.  */
7966 char atan2f ();
7967 int
7968 main ()
7969 {
7970 atan2f ();
7971   ;
7972   return 0;
7973 }
7974 _ACEOF
7975 rm -f conftest.$ac_objext conftest$ac_exeext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7977   (eval $ac_link) 2>conftest.er1
7978   ac_status=$?
7979   grep -v '^ *+' conftest.er1 >conftest.err
7980   rm -f conftest.er1
7981   cat conftest.err >&5
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); } &&
7984          { ac_try='test -z "$ac_c_werror_flag"
7985                          || test ! -s conftest.err'
7986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987   (eval $ac_try) 2>&5
7988   ac_status=$?
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); }; } &&
7991          { ac_try='test -s conftest$ac_exeext'
7992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993   (eval $ac_try) 2>&5
7994   ac_status=$?
7995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); }; }; then
7997   ac_cv_lib_m_atan2f=yes
7998 else
7999   echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8001
8002 ac_cv_lib_m_atan2f=no
8003 fi
8004 rm -f conftest.err conftest.$ac_objext \
8005       conftest$ac_exeext conftest.$ac_ext
8006 LIBS=$ac_check_lib_save_LIBS
8007 fi
8008 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
8009 echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
8010 if test $ac_cv_lib_m_atan2f = yes; then
8011
8012 cat >>confdefs.h <<\_ACEOF
8013 #define HAVE_ATAN2F 1
8014 _ACEOF
8015
8016 fi
8017
8018 echo "$as_me:$LINENO: checking for atanf in -lm" >&5
8019 echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
8020 if test "${ac_cv_lib_m_atanf+set}" = set; then
8021   echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023   ac_check_lib_save_LIBS=$LIBS
8024 LIBS="-lm  $LIBS"
8025 if test x$gcc_no_link = xyes; then
8026   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8027 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8028    { (exit 1); exit 1; }; }
8029 fi
8030 cat >conftest.$ac_ext <<_ACEOF
8031 /* confdefs.h.  */
8032 _ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h.  */
8036
8037 /* Override any gcc2 internal prototype to avoid an error.  */
8038 #ifdef __cplusplus
8039 extern "C"
8040 #endif
8041 /* We use char because int might match the return type of a gcc2
8042    builtin and then its argument prototype would still apply.  */
8043 char atanf ();
8044 int
8045 main ()
8046 {
8047 atanf ();
8048   ;
8049   return 0;
8050 }
8051 _ACEOF
8052 rm -f conftest.$ac_objext conftest$ac_exeext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8054   (eval $ac_link) 2>conftest.er1
8055   ac_status=$?
8056   grep -v '^ *+' conftest.er1 >conftest.err
8057   rm -f conftest.er1
8058   cat conftest.err >&5
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); } &&
8061          { ac_try='test -z "$ac_c_werror_flag"
8062                          || test ! -s conftest.err'
8063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064   (eval $ac_try) 2>&5
8065   ac_status=$?
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); }; } &&
8068          { ac_try='test -s conftest$ac_exeext'
8069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070   (eval $ac_try) 2>&5
8071   ac_status=$?
8072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073   (exit $ac_status); }; }; then
8074   ac_cv_lib_m_atanf=yes
8075 else
8076   echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8078
8079 ac_cv_lib_m_atanf=no
8080 fi
8081 rm -f conftest.err conftest.$ac_objext \
8082       conftest$ac_exeext conftest.$ac_ext
8083 LIBS=$ac_check_lib_save_LIBS
8084 fi
8085 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
8086 echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
8087 if test $ac_cv_lib_m_atanf = yes; then
8088
8089 cat >>confdefs.h <<\_ACEOF
8090 #define HAVE_ATANF 1
8091 _ACEOF
8092
8093 fi
8094
8095 echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
8096 echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
8097 if test "${ac_cv_lib_m_ceilf+set}" = set; then
8098   echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100   ac_check_lib_save_LIBS=$LIBS
8101 LIBS="-lm  $LIBS"
8102 if test x$gcc_no_link = xyes; then
8103   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8104 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8105    { (exit 1); exit 1; }; }
8106 fi
8107 cat >conftest.$ac_ext <<_ACEOF
8108 /* confdefs.h.  */
8109 _ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h.  */
8113
8114 /* Override any gcc2 internal prototype to avoid an error.  */
8115 #ifdef __cplusplus
8116 extern "C"
8117 #endif
8118 /* We use char because int might match the return type of a gcc2
8119    builtin and then its argument prototype would still apply.  */
8120 char ceilf ();
8121 int
8122 main ()
8123 {
8124 ceilf ();
8125   ;
8126   return 0;
8127 }
8128 _ACEOF
8129 rm -f conftest.$ac_objext conftest$ac_exeext
8130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8131   (eval $ac_link) 2>conftest.er1
8132   ac_status=$?
8133   grep -v '^ *+' conftest.er1 >conftest.err
8134   rm -f conftest.er1
8135   cat conftest.err >&5
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); } &&
8138          { ac_try='test -z "$ac_c_werror_flag"
8139                          || test ! -s conftest.err'
8140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141   (eval $ac_try) 2>&5
8142   ac_status=$?
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); }; } &&
8145          { ac_try='test -s conftest$ac_exeext'
8146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147   (eval $ac_try) 2>&5
8148   ac_status=$?
8149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150   (exit $ac_status); }; }; then
8151   ac_cv_lib_m_ceilf=yes
8152 else
8153   echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8155
8156 ac_cv_lib_m_ceilf=no
8157 fi
8158 rm -f conftest.err conftest.$ac_objext \
8159       conftest$ac_exeext conftest.$ac_ext
8160 LIBS=$ac_check_lib_save_LIBS
8161 fi
8162 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
8163 echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
8164 if test $ac_cv_lib_m_ceilf = yes; then
8165
8166 cat >>confdefs.h <<\_ACEOF
8167 #define HAVE_CEILF 1
8168 _ACEOF
8169
8170 fi
8171
8172 echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
8173 echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
8174 if test "${ac_cv_lib_m_copysignf+set}" = set; then
8175   echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177   ac_check_lib_save_LIBS=$LIBS
8178 LIBS="-lm  $LIBS"
8179 if test x$gcc_no_link = xyes; then
8180   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8181 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8182    { (exit 1); exit 1; }; }
8183 fi
8184 cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h.  */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h.  */
8190
8191 /* Override any gcc2 internal prototype to avoid an error.  */
8192 #ifdef __cplusplus
8193 extern "C"
8194 #endif
8195 /* We use char because int might match the return type of a gcc2
8196    builtin and then its argument prototype would still apply.  */
8197 char copysignf ();
8198 int
8199 main ()
8200 {
8201 copysignf ();
8202   ;
8203   return 0;
8204 }
8205 _ACEOF
8206 rm -f conftest.$ac_objext conftest$ac_exeext
8207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8208   (eval $ac_link) 2>conftest.er1
8209   ac_status=$?
8210   grep -v '^ *+' conftest.er1 >conftest.err
8211   rm -f conftest.er1
8212   cat conftest.err >&5
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); } &&
8215          { ac_try='test -z "$ac_c_werror_flag"
8216                          || test ! -s conftest.err'
8217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218   (eval $ac_try) 2>&5
8219   ac_status=$?
8220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221   (exit $ac_status); }; } &&
8222          { ac_try='test -s conftest$ac_exeext'
8223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224   (eval $ac_try) 2>&5
8225   ac_status=$?
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); }; }; then
8228   ac_cv_lib_m_copysignf=yes
8229 else
8230   echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8232
8233 ac_cv_lib_m_copysignf=no
8234 fi
8235 rm -f conftest.err conftest.$ac_objext \
8236       conftest$ac_exeext conftest.$ac_ext
8237 LIBS=$ac_check_lib_save_LIBS
8238 fi
8239 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
8240 echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
8241 if test $ac_cv_lib_m_copysignf = yes; then
8242
8243 cat >>confdefs.h <<\_ACEOF
8244 #define HAVE_COPYSIGNF 1
8245 _ACEOF
8246
8247 fi
8248
8249 echo "$as_me:$LINENO: checking for cosf in -lm" >&5
8250 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
8251 if test "${ac_cv_lib_m_cosf+set}" = set; then
8252   echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254   ac_check_lib_save_LIBS=$LIBS
8255 LIBS="-lm  $LIBS"
8256 if test x$gcc_no_link = xyes; then
8257   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8258 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8259    { (exit 1); exit 1; }; }
8260 fi
8261 cat >conftest.$ac_ext <<_ACEOF
8262 /* confdefs.h.  */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h.  */
8267
8268 /* Override any gcc2 internal prototype to avoid an error.  */
8269 #ifdef __cplusplus
8270 extern "C"
8271 #endif
8272 /* We use char because int might match the return type of a gcc2
8273    builtin and then its argument prototype would still apply.  */
8274 char cosf ();
8275 int
8276 main ()
8277 {
8278 cosf ();
8279   ;
8280   return 0;
8281 }
8282 _ACEOF
8283 rm -f conftest.$ac_objext conftest$ac_exeext
8284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285   (eval $ac_link) 2>conftest.er1
8286   ac_status=$?
8287   grep -v '^ *+' conftest.er1 >conftest.err
8288   rm -f conftest.er1
8289   cat conftest.err >&5
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); } &&
8292          { ac_try='test -z "$ac_c_werror_flag"
8293                          || test ! -s conftest.err'
8294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295   (eval $ac_try) 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; } &&
8299          { ac_try='test -s conftest$ac_exeext'
8300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301   (eval $ac_try) 2>&5
8302   ac_status=$?
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); }; }; then
8305   ac_cv_lib_m_cosf=yes
8306 else
8307   echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310 ac_cv_lib_m_cosf=no
8311 fi
8312 rm -f conftest.err conftest.$ac_objext \
8313       conftest$ac_exeext conftest.$ac_ext
8314 LIBS=$ac_check_lib_save_LIBS
8315 fi
8316 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
8317 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
8318 if test $ac_cv_lib_m_cosf = yes; then
8319
8320 cat >>confdefs.h <<\_ACEOF
8321 #define HAVE_COSF 1
8322 _ACEOF
8323
8324 fi
8325
8326 echo "$as_me:$LINENO: checking for coshf in -lm" >&5
8327 echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
8328 if test "${ac_cv_lib_m_coshf+set}" = set; then
8329   echo $ECHO_N "(cached) $ECHO_C" >&6
8330 else
8331   ac_check_lib_save_LIBS=$LIBS
8332 LIBS="-lm  $LIBS"
8333 if test x$gcc_no_link = xyes; then
8334   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8335 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8336    { (exit 1); exit 1; }; }
8337 fi
8338 cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h.  */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h.  */
8344
8345 /* Override any gcc2 internal prototype to avoid an error.  */
8346 #ifdef __cplusplus
8347 extern "C"
8348 #endif
8349 /* We use char because int might match the return type of a gcc2
8350    builtin and then its argument prototype would still apply.  */
8351 char coshf ();
8352 int
8353 main ()
8354 {
8355 coshf ();
8356   ;
8357   return 0;
8358 }
8359 _ACEOF
8360 rm -f conftest.$ac_objext conftest$ac_exeext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8362   (eval $ac_link) 2>conftest.er1
8363   ac_status=$?
8364   grep -v '^ *+' conftest.er1 >conftest.err
8365   rm -f conftest.er1
8366   cat conftest.err >&5
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); } &&
8369          { ac_try='test -z "$ac_c_werror_flag"
8370                          || test ! -s conftest.err'
8371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372   (eval $ac_try) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); }; } &&
8376          { ac_try='test -s conftest$ac_exeext'
8377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378   (eval $ac_try) 2>&5
8379   ac_status=$?
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); }; }; then
8382   ac_cv_lib_m_coshf=yes
8383 else
8384   echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8386
8387 ac_cv_lib_m_coshf=no
8388 fi
8389 rm -f conftest.err conftest.$ac_objext \
8390       conftest$ac_exeext conftest.$ac_ext
8391 LIBS=$ac_check_lib_save_LIBS
8392 fi
8393 echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
8394 echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
8395 if test $ac_cv_lib_m_coshf = yes; then
8396
8397 cat >>confdefs.h <<\_ACEOF
8398 #define HAVE_COSHF 1
8399 _ACEOF
8400
8401 fi
8402
8403 echo "$as_me:$LINENO: checking for expf in -lm" >&5
8404 echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
8405 if test "${ac_cv_lib_m_expf+set}" = set; then
8406   echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408   ac_check_lib_save_LIBS=$LIBS
8409 LIBS="-lm  $LIBS"
8410 if test x$gcc_no_link = xyes; then
8411   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8413    { (exit 1); exit 1; }; }
8414 fi
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h.  */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h.  */
8421
8422 /* Override any gcc2 internal prototype to avoid an error.  */
8423 #ifdef __cplusplus
8424 extern "C"
8425 #endif
8426 /* We use char because int might match the return type of a gcc2
8427    builtin and then its argument prototype would still apply.  */
8428 char expf ();
8429 int
8430 main ()
8431 {
8432 expf ();
8433   ;
8434   return 0;
8435 }
8436 _ACEOF
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439   (eval $ac_link) 2>conftest.er1
8440   ac_status=$?
8441   grep -v '^ *+' conftest.er1 >conftest.err
8442   rm -f conftest.er1
8443   cat conftest.err >&5
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); } &&
8446          { ac_try='test -z "$ac_c_werror_flag"
8447                          || test ! -s conftest.err'
8448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449   (eval $ac_try) 2>&5
8450   ac_status=$?
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); }; } &&
8453          { ac_try='test -s conftest$ac_exeext'
8454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455   (eval $ac_try) 2>&5
8456   ac_status=$?
8457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458   (exit $ac_status); }; }; then
8459   ac_cv_lib_m_expf=yes
8460 else
8461   echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 ac_cv_lib_m_expf=no
8465 fi
8466 rm -f conftest.err conftest.$ac_objext \
8467       conftest$ac_exeext conftest.$ac_ext
8468 LIBS=$ac_check_lib_save_LIBS
8469 fi
8470 echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
8471 echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
8472 if test $ac_cv_lib_m_expf = yes; then
8473
8474 cat >>confdefs.h <<\_ACEOF
8475 #define HAVE_EXPF 1
8476 _ACEOF
8477
8478 fi
8479
8480 echo "$as_me:$LINENO: checking for fabsf in -lm" >&5
8481 echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6
8482 if test "${ac_cv_lib_m_fabsf+set}" = set; then
8483   echo $ECHO_N "(cached) $ECHO_C" >&6
8484 else
8485   ac_check_lib_save_LIBS=$LIBS
8486 LIBS="-lm  $LIBS"
8487 if test x$gcc_no_link = xyes; then
8488   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8490    { (exit 1); exit 1; }; }
8491 fi
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h.  */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h.  */
8498
8499 /* Override any gcc2 internal prototype to avoid an error.  */
8500 #ifdef __cplusplus
8501 extern "C"
8502 #endif
8503 /* We use char because int might match the return type of a gcc2
8504    builtin and then its argument prototype would still apply.  */
8505 char fabsf ();
8506 int
8507 main ()
8508 {
8509 fabsf ();
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516   (eval $ac_link) 2>conftest.er1
8517   ac_status=$?
8518   grep -v '^ *+' conftest.er1 >conftest.err
8519   rm -f conftest.er1
8520   cat conftest.err >&5
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } &&
8523          { ac_try='test -z "$ac_c_werror_flag"
8524                          || test ! -s conftest.err'
8525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526   (eval $ac_try) 2>&5
8527   ac_status=$?
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); }; } &&
8530          { ac_try='test -s conftest$ac_exeext'
8531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532   (eval $ac_try) 2>&5
8533   ac_status=$?
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); }; }; then
8536   ac_cv_lib_m_fabsf=yes
8537 else
8538   echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8540
8541 ac_cv_lib_m_fabsf=no
8542 fi
8543 rm -f conftest.err conftest.$ac_objext \
8544       conftest$ac_exeext conftest.$ac_ext
8545 LIBS=$ac_check_lib_save_LIBS
8546 fi
8547 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5
8548 echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6
8549 if test $ac_cv_lib_m_fabsf = yes; then
8550
8551 cat >>confdefs.h <<\_ACEOF
8552 #define HAVE_FABSF 1
8553 _ACEOF
8554
8555 fi
8556
8557 echo "$as_me:$LINENO: checking for floorf in -lm" >&5
8558 echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
8559 if test "${ac_cv_lib_m_floorf+set}" = set; then
8560   echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562   ac_check_lib_save_LIBS=$LIBS
8563 LIBS="-lm  $LIBS"
8564 if test x$gcc_no_link = xyes; then
8565   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8566 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8567    { (exit 1); exit 1; }; }
8568 fi
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.  */
8575
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 floorf ();
8583 int
8584 main ()
8585 {
8586 floorf ();
8587   ;
8588   return 0;
8589 }
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_floorf=yes
8614 else
8615   echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8617
8618 ac_cv_lib_m_floorf=no
8619 fi
8620 rm -f conftest.err conftest.$ac_objext \
8621       conftest$ac_exeext conftest.$ac_ext
8622 LIBS=$ac_check_lib_save_LIBS
8623 fi
8624 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
8625 echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
8626 if test $ac_cv_lib_m_floorf = yes; then
8627
8628 cat >>confdefs.h <<\_ACEOF
8629 #define HAVE_FLOORF 1
8630 _ACEOF
8631
8632 fi
8633
8634 echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
8635 echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
8636 if test "${ac_cv_lib_m_frexpf+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 if test x$gcc_no_link = xyes; then
8642   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8643 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8644    { (exit 1); exit 1; }; }
8645 fi
8646 cat >conftest.$ac_ext <<_ACEOF
8647 /* confdefs.h.  */
8648 _ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h.  */
8652
8653 /* Override any gcc2 internal prototype to avoid an error.  */
8654 #ifdef __cplusplus
8655 extern "C"
8656 #endif
8657 /* We use char because int might match the return type of a gcc2
8658    builtin and then its argument prototype would still apply.  */
8659 char frexpf ();
8660 int
8661 main ()
8662 {
8663 frexpf ();
8664   ;
8665   return 0;
8666 }
8667 _ACEOF
8668 rm -f conftest.$ac_objext conftest$ac_exeext
8669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8670   (eval $ac_link) 2>conftest.er1
8671   ac_status=$?
8672   grep -v '^ *+' conftest.er1 >conftest.err
8673   rm -f conftest.er1
8674   cat conftest.err >&5
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); } &&
8677          { ac_try='test -z "$ac_c_werror_flag"
8678                          || test ! -s conftest.err'
8679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680   (eval $ac_try) 2>&5
8681   ac_status=$?
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); }; } &&
8684          { ac_try='test -s conftest$ac_exeext'
8685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686   (eval $ac_try) 2>&5
8687   ac_status=$?
8688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689   (exit $ac_status); }; }; then
8690   ac_cv_lib_m_frexpf=yes
8691 else
8692   echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8694
8695 ac_cv_lib_m_frexpf=no
8696 fi
8697 rm -f conftest.err conftest.$ac_objext \
8698       conftest$ac_exeext conftest.$ac_ext
8699 LIBS=$ac_check_lib_save_LIBS
8700 fi
8701 echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
8702 echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
8703 if test $ac_cv_lib_m_frexpf = yes; then
8704
8705 cat >>confdefs.h <<\_ACEOF
8706 #define HAVE_FREXPF 1
8707 _ACEOF
8708
8709 fi
8710
8711 echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
8712 echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
8713 if test "${ac_cv_lib_m_hypotf+set}" = set; then
8714   echo $ECHO_N "(cached) $ECHO_C" >&6
8715 else
8716   ac_check_lib_save_LIBS=$LIBS
8717 LIBS="-lm  $LIBS"
8718 if test x$gcc_no_link = xyes; then
8719   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8720 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8721    { (exit 1); exit 1; }; }
8722 fi
8723 cat >conftest.$ac_ext <<_ACEOF
8724 /* confdefs.h.  */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h.  */
8729
8730 /* Override any gcc2 internal prototype to avoid an error.  */
8731 #ifdef __cplusplus
8732 extern "C"
8733 #endif
8734 /* We use char because int might match the return type of a gcc2
8735    builtin and then its argument prototype would still apply.  */
8736 char hypotf ();
8737 int
8738 main ()
8739 {
8740 hypotf ();
8741   ;
8742   return 0;
8743 }
8744 _ACEOF
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747   (eval $ac_link) 2>conftest.er1
8748   ac_status=$?
8749   grep -v '^ *+' conftest.er1 >conftest.err
8750   rm -f conftest.er1
8751   cat conftest.err >&5
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); } &&
8754          { ac_try='test -z "$ac_c_werror_flag"
8755                          || test ! -s conftest.err'
8756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757   (eval $ac_try) 2>&5
8758   ac_status=$?
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); }; } &&
8761          { ac_try='test -s conftest$ac_exeext'
8762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763   (eval $ac_try) 2>&5
8764   ac_status=$?
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); }; }; then
8767   ac_cv_lib_m_hypotf=yes
8768 else
8769   echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8771
8772 ac_cv_lib_m_hypotf=no
8773 fi
8774 rm -f conftest.err conftest.$ac_objext \
8775       conftest$ac_exeext conftest.$ac_ext
8776 LIBS=$ac_check_lib_save_LIBS
8777 fi
8778 echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
8779 echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
8780 if test $ac_cv_lib_m_hypotf = yes; then
8781
8782 cat >>confdefs.h <<\_ACEOF
8783 #define HAVE_HYPOTF 1
8784 _ACEOF
8785
8786 fi
8787
8788 echo "$as_me:$LINENO: checking for logf in -lm" >&5
8789 echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
8790 if test "${ac_cv_lib_m_logf+set}" = set; then
8791   echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793   ac_check_lib_save_LIBS=$LIBS
8794 LIBS="-lm  $LIBS"
8795 if test x$gcc_no_link = xyes; then
8796   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8797 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8798    { (exit 1); exit 1; }; }
8799 fi
8800 cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h.  */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h.  */
8806
8807 /* Override any gcc2 internal prototype to avoid an error.  */
8808 #ifdef __cplusplus
8809 extern "C"
8810 #endif
8811 /* We use char because int might match the return type of a gcc2
8812    builtin and then its argument prototype would still apply.  */
8813 char logf ();
8814 int
8815 main ()
8816 {
8817 logf ();
8818   ;
8819   return 0;
8820 }
8821 _ACEOF
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824   (eval $ac_link) 2>conftest.er1
8825   ac_status=$?
8826   grep -v '^ *+' conftest.er1 >conftest.err
8827   rm -f conftest.er1
8828   cat conftest.err >&5
8829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); } &&
8831          { ac_try='test -z "$ac_c_werror_flag"
8832                          || test ! -s conftest.err'
8833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834   (eval $ac_try) 2>&5
8835   ac_status=$?
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); }; } &&
8838          { ac_try='test -s conftest$ac_exeext'
8839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840   (eval $ac_try) 2>&5
8841   ac_status=$?
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); }; }; then
8844   ac_cv_lib_m_logf=yes
8845 else
8846   echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8848
8849 ac_cv_lib_m_logf=no
8850 fi
8851 rm -f conftest.err conftest.$ac_objext \
8852       conftest$ac_exeext conftest.$ac_ext
8853 LIBS=$ac_check_lib_save_LIBS
8854 fi
8855 echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
8856 echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
8857 if test $ac_cv_lib_m_logf = yes; then
8858
8859 cat >>confdefs.h <<\_ACEOF
8860 #define HAVE_LOGF 1
8861 _ACEOF
8862
8863 fi
8864
8865 echo "$as_me:$LINENO: checking for log10f in -lm" >&5
8866 echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
8867 if test "${ac_cv_lib_m_log10f+set}" = set; then
8868   echo $ECHO_N "(cached) $ECHO_C" >&6
8869 else
8870   ac_check_lib_save_LIBS=$LIBS
8871 LIBS="-lm  $LIBS"
8872 if test x$gcc_no_link = xyes; then
8873   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8874 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8875    { (exit 1); exit 1; }; }
8876 fi
8877 cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h.  */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h.  */
8883
8884 /* Override any gcc2 internal prototype to avoid an error.  */
8885 #ifdef __cplusplus
8886 extern "C"
8887 #endif
8888 /* We use char because int might match the return type of a gcc2
8889    builtin and then its argument prototype would still apply.  */
8890 char log10f ();
8891 int
8892 main ()
8893 {
8894 log10f ();
8895   ;
8896   return 0;
8897 }
8898 _ACEOF
8899 rm -f conftest.$ac_objext conftest$ac_exeext
8900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8901   (eval $ac_link) 2>conftest.er1
8902   ac_status=$?
8903   grep -v '^ *+' conftest.er1 >conftest.err
8904   rm -f conftest.er1
8905   cat conftest.err >&5
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); } &&
8908          { ac_try='test -z "$ac_c_werror_flag"
8909                          || test ! -s conftest.err'
8910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911   (eval $ac_try) 2>&5
8912   ac_status=$?
8913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); }; } &&
8915          { ac_try='test -s conftest$ac_exeext'
8916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917   (eval $ac_try) 2>&5
8918   ac_status=$?
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   (exit $ac_status); }; }; then
8921   ac_cv_lib_m_log10f=yes
8922 else
8923   echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8925
8926 ac_cv_lib_m_log10f=no
8927 fi
8928 rm -f conftest.err conftest.$ac_objext \
8929       conftest$ac_exeext conftest.$ac_ext
8930 LIBS=$ac_check_lib_save_LIBS
8931 fi
8932 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
8933 echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
8934 if test $ac_cv_lib_m_log10f = yes; then
8935
8936 cat >>confdefs.h <<\_ACEOF
8937 #define HAVE_LOG10F 1
8938 _ACEOF
8939
8940 fi
8941
8942 echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
8943 echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
8944 if test "${ac_cv_lib_m_nextafter+set}" = set; then
8945   echo $ECHO_N "(cached) $ECHO_C" >&6
8946 else
8947   ac_check_lib_save_LIBS=$LIBS
8948 LIBS="-lm  $LIBS"
8949 if test x$gcc_no_link = xyes; then
8950   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8951 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8952    { (exit 1); exit 1; }; }
8953 fi
8954 cat >conftest.$ac_ext <<_ACEOF
8955 /* confdefs.h.  */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h.  */
8960
8961 /* Override any gcc2 internal prototype to avoid an error.  */
8962 #ifdef __cplusplus
8963 extern "C"
8964 #endif
8965 /* We use char because int might match the return type of a gcc2
8966    builtin and then its argument prototype would still apply.  */
8967 char nextafter ();
8968 int
8969 main ()
8970 {
8971 nextafter ();
8972   ;
8973   return 0;
8974 }
8975 _ACEOF
8976 rm -f conftest.$ac_objext conftest$ac_exeext
8977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8978   (eval $ac_link) 2>conftest.er1
8979   ac_status=$?
8980   grep -v '^ *+' conftest.er1 >conftest.err
8981   rm -f conftest.er1
8982   cat conftest.err >&5
8983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984   (exit $ac_status); } &&
8985          { ac_try='test -z "$ac_c_werror_flag"
8986                          || test ! -s conftest.err'
8987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988   (eval $ac_try) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }; } &&
8992          { ac_try='test -s conftest$ac_exeext'
8993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994   (eval $ac_try) 2>&5
8995   ac_status=$?
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); }; }; then
8998   ac_cv_lib_m_nextafter=yes
8999 else
9000   echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9002
9003 ac_cv_lib_m_nextafter=no
9004 fi
9005 rm -f conftest.err conftest.$ac_objext \
9006       conftest$ac_exeext conftest.$ac_ext
9007 LIBS=$ac_check_lib_save_LIBS
9008 fi
9009 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
9010 echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
9011 if test $ac_cv_lib_m_nextafter = yes; then
9012
9013 cat >>confdefs.h <<\_ACEOF
9014 #define HAVE_NEXTAFTER 1
9015 _ACEOF
9016
9017 fi
9018
9019 echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
9020 echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
9021 if test "${ac_cv_lib_m_nextafterf+set}" = set; then
9022   echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024   ac_check_lib_save_LIBS=$LIBS
9025 LIBS="-lm  $LIBS"
9026 if test x$gcc_no_link = xyes; then
9027   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9028 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9029    { (exit 1); exit 1; }; }
9030 fi
9031 cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h.  */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h.  */
9037
9038 /* Override any gcc2 internal prototype to avoid an error.  */
9039 #ifdef __cplusplus
9040 extern "C"
9041 #endif
9042 /* We use char because int might match the return type of a gcc2
9043    builtin and then its argument prototype would still apply.  */
9044 char nextafterf ();
9045 int
9046 main ()
9047 {
9048 nextafterf ();
9049   ;
9050   return 0;
9051 }
9052 _ACEOF
9053 rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055   (eval $ac_link) 2>conftest.er1
9056   ac_status=$?
9057   grep -v '^ *+' conftest.er1 >conftest.err
9058   rm -f conftest.er1
9059   cat conftest.err >&5
9060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061   (exit $ac_status); } &&
9062          { ac_try='test -z "$ac_c_werror_flag"
9063                          || test ! -s conftest.err'
9064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065   (eval $ac_try) 2>&5
9066   ac_status=$?
9067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); }; } &&
9069          { ac_try='test -s conftest$ac_exeext'
9070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071   (eval $ac_try) 2>&5
9072   ac_status=$?
9073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074   (exit $ac_status); }; }; then
9075   ac_cv_lib_m_nextafterf=yes
9076 else
9077   echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9079
9080 ac_cv_lib_m_nextafterf=no
9081 fi
9082 rm -f conftest.err conftest.$ac_objext \
9083       conftest$ac_exeext conftest.$ac_ext
9084 LIBS=$ac_check_lib_save_LIBS
9085 fi
9086 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
9087 echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
9088 if test $ac_cv_lib_m_nextafterf = yes; then
9089
9090 cat >>confdefs.h <<\_ACEOF
9091 #define HAVE_NEXTAFTERF 1
9092 _ACEOF
9093
9094 fi
9095
9096 echo "$as_me:$LINENO: checking for powf in -lm" >&5
9097 echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
9098 if test "${ac_cv_lib_m_powf+set}" = set; then
9099   echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101   ac_check_lib_save_LIBS=$LIBS
9102 LIBS="-lm  $LIBS"
9103 if test x$gcc_no_link = xyes; then
9104   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9106    { (exit 1); exit 1; }; }
9107 fi
9108 cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h.  */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h.  */
9114
9115 /* Override any gcc2 internal prototype to avoid an error.  */
9116 #ifdef __cplusplus
9117 extern "C"
9118 #endif
9119 /* We use char because int might match the return type of a gcc2
9120    builtin and then its argument prototype would still apply.  */
9121 char powf ();
9122 int
9123 main ()
9124 {
9125 powf ();
9126   ;
9127   return 0;
9128 }
9129 _ACEOF
9130 rm -f conftest.$ac_objext conftest$ac_exeext
9131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9132   (eval $ac_link) 2>conftest.er1
9133   ac_status=$?
9134   grep -v '^ *+' conftest.er1 >conftest.err
9135   rm -f conftest.er1
9136   cat conftest.err >&5
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); } &&
9139          { ac_try='test -z "$ac_c_werror_flag"
9140                          || test ! -s conftest.err'
9141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142   (eval $ac_try) 2>&5
9143   ac_status=$?
9144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145   (exit $ac_status); }; } &&
9146          { ac_try='test -s conftest$ac_exeext'
9147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148   (eval $ac_try) 2>&5
9149   ac_status=$?
9150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); }; }; then
9152   ac_cv_lib_m_powf=yes
9153 else
9154   echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9156
9157 ac_cv_lib_m_powf=no
9158 fi
9159 rm -f conftest.err conftest.$ac_objext \
9160       conftest$ac_exeext conftest.$ac_ext
9161 LIBS=$ac_check_lib_save_LIBS
9162 fi
9163 echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
9164 echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
9165 if test $ac_cv_lib_m_powf = yes; then
9166
9167 cat >>confdefs.h <<\_ACEOF
9168 #define HAVE_POWF 1
9169 _ACEOF
9170
9171 fi
9172
9173 echo "$as_me:$LINENO: checking for round in -lm" >&5
9174 echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
9175 if test "${ac_cv_lib_m_round+set}" = set; then
9176   echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178   ac_check_lib_save_LIBS=$LIBS
9179 LIBS="-lm  $LIBS"
9180 if test x$gcc_no_link = xyes; then
9181   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9182 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9183    { (exit 1); exit 1; }; }
9184 fi
9185 cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h.  */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h.  */
9191
9192 /* Override any gcc2 internal prototype to avoid an error.  */
9193 #ifdef __cplusplus
9194 extern "C"
9195 #endif
9196 /* We use char because int might match the return type of a gcc2
9197    builtin and then its argument prototype would still apply.  */
9198 char round ();
9199 int
9200 main ()
9201 {
9202 round ();
9203   ;
9204   return 0;
9205 }
9206 _ACEOF
9207 rm -f conftest.$ac_objext conftest$ac_exeext
9208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9209   (eval $ac_link) 2>conftest.er1
9210   ac_status=$?
9211   grep -v '^ *+' conftest.er1 >conftest.err
9212   rm -f conftest.er1
9213   cat conftest.err >&5
9214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215   (exit $ac_status); } &&
9216          { ac_try='test -z "$ac_c_werror_flag"
9217                          || test ! -s conftest.err'
9218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219   (eval $ac_try) 2>&5
9220   ac_status=$?
9221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222   (exit $ac_status); }; } &&
9223          { ac_try='test -s conftest$ac_exeext'
9224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225   (eval $ac_try) 2>&5
9226   ac_status=$?
9227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228   (exit $ac_status); }; }; then
9229   ac_cv_lib_m_round=yes
9230 else
9231   echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9233
9234 ac_cv_lib_m_round=no
9235 fi
9236 rm -f conftest.err conftest.$ac_objext \
9237       conftest$ac_exeext conftest.$ac_ext
9238 LIBS=$ac_check_lib_save_LIBS
9239 fi
9240 echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
9241 echo "${ECHO_T}$ac_cv_lib_m_round" >&6
9242 if test $ac_cv_lib_m_round = yes; then
9243
9244 cat >>confdefs.h <<\_ACEOF
9245 #define HAVE_ROUND 1
9246 _ACEOF
9247
9248 fi
9249
9250 echo "$as_me:$LINENO: checking for roundf in -lm" >&5
9251 echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
9252 if test "${ac_cv_lib_m_roundf+set}" = set; then
9253   echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255   ac_check_lib_save_LIBS=$LIBS
9256 LIBS="-lm  $LIBS"
9257 if test x$gcc_no_link = xyes; then
9258   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9259 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9260    { (exit 1); exit 1; }; }
9261 fi
9262 cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h.  */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h.  */
9268
9269 /* Override any gcc2 internal prototype to avoid an error.  */
9270 #ifdef __cplusplus
9271 extern "C"
9272 #endif
9273 /* We use char because int might match the return type of a gcc2
9274    builtin and then its argument prototype would still apply.  */
9275 char roundf ();
9276 int
9277 main ()
9278 {
9279 roundf ();
9280   ;
9281   return 0;
9282 }
9283 _ACEOF
9284 rm -f conftest.$ac_objext conftest$ac_exeext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9286   (eval $ac_link) 2>conftest.er1
9287   ac_status=$?
9288   grep -v '^ *+' conftest.er1 >conftest.err
9289   rm -f conftest.er1
9290   cat conftest.err >&5
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); } &&
9293          { ac_try='test -z "$ac_c_werror_flag"
9294                          || test ! -s conftest.err'
9295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296   (eval $ac_try) 2>&5
9297   ac_status=$?
9298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299   (exit $ac_status); }; } &&
9300          { ac_try='test -s conftest$ac_exeext'
9301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302   (eval $ac_try) 2>&5
9303   ac_status=$?
9304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305   (exit $ac_status); }; }; then
9306   ac_cv_lib_m_roundf=yes
9307 else
9308   echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9310
9311 ac_cv_lib_m_roundf=no
9312 fi
9313 rm -f conftest.err conftest.$ac_objext \
9314       conftest$ac_exeext conftest.$ac_ext
9315 LIBS=$ac_check_lib_save_LIBS
9316 fi
9317 echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
9318 echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
9319 if test $ac_cv_lib_m_roundf = yes; then
9320
9321 cat >>confdefs.h <<\_ACEOF
9322 #define HAVE_ROUNDF 1
9323 _ACEOF
9324
9325 fi
9326
9327 echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
9328 echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
9329 if test "${ac_cv_lib_m_scalbnf+set}" = set; then
9330   echo $ECHO_N "(cached) $ECHO_C" >&6
9331 else
9332   ac_check_lib_save_LIBS=$LIBS
9333 LIBS="-lm  $LIBS"
9334 if test x$gcc_no_link = xyes; then
9335   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9336 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9337    { (exit 1); exit 1; }; }
9338 fi
9339 cat >conftest.$ac_ext <<_ACEOF
9340 /* confdefs.h.  */
9341 _ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h.  */
9345
9346 /* Override any gcc2 internal prototype to avoid an error.  */
9347 #ifdef __cplusplus
9348 extern "C"
9349 #endif
9350 /* We use char because int might match the return type of a gcc2
9351    builtin and then its argument prototype would still apply.  */
9352 char scalbnf ();
9353 int
9354 main ()
9355 {
9356 scalbnf ();
9357   ;
9358   return 0;
9359 }
9360 _ACEOF
9361 rm -f conftest.$ac_objext conftest$ac_exeext
9362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9363   (eval $ac_link) 2>conftest.er1
9364   ac_status=$?
9365   grep -v '^ *+' conftest.er1 >conftest.err
9366   rm -f conftest.er1
9367   cat conftest.err >&5
9368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369   (exit $ac_status); } &&
9370          { ac_try='test -z "$ac_c_werror_flag"
9371                          || test ! -s conftest.err'
9372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373   (eval $ac_try) 2>&5
9374   ac_status=$?
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); }; } &&
9377          { ac_try='test -s conftest$ac_exeext'
9378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379   (eval $ac_try) 2>&5
9380   ac_status=$?
9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382   (exit $ac_status); }; }; then
9383   ac_cv_lib_m_scalbnf=yes
9384 else
9385   echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9387
9388 ac_cv_lib_m_scalbnf=no
9389 fi
9390 rm -f conftest.err conftest.$ac_objext \
9391       conftest$ac_exeext conftest.$ac_ext
9392 LIBS=$ac_check_lib_save_LIBS
9393 fi
9394 echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
9395 echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
9396 if test $ac_cv_lib_m_scalbnf = yes; then
9397
9398 cat >>confdefs.h <<\_ACEOF
9399 #define HAVE_SCALBNF 1
9400 _ACEOF
9401
9402 fi
9403
9404 echo "$as_me:$LINENO: checking for sinf in -lm" >&5
9405 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
9406 if test "${ac_cv_lib_m_sinf+set}" = set; then
9407   echo $ECHO_N "(cached) $ECHO_C" >&6
9408 else
9409   ac_check_lib_save_LIBS=$LIBS
9410 LIBS="-lm  $LIBS"
9411 if test x$gcc_no_link = xyes; then
9412   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9413 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9414    { (exit 1); exit 1; }; }
9415 fi
9416 cat >conftest.$ac_ext <<_ACEOF
9417 /* confdefs.h.  */
9418 _ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h.  */
9422
9423 /* Override any gcc2 internal prototype to avoid an error.  */
9424 #ifdef __cplusplus
9425 extern "C"
9426 #endif
9427 /* We use char because int might match the return type of a gcc2
9428    builtin and then its argument prototype would still apply.  */
9429 char sinf ();
9430 int
9431 main ()
9432 {
9433 sinf ();
9434   ;
9435   return 0;
9436 }
9437 _ACEOF
9438 rm -f conftest.$ac_objext conftest$ac_exeext
9439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9440   (eval $ac_link) 2>conftest.er1
9441   ac_status=$?
9442   grep -v '^ *+' conftest.er1 >conftest.err
9443   rm -f conftest.er1
9444   cat conftest.err >&5
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); } &&
9447          { ac_try='test -z "$ac_c_werror_flag"
9448                          || test ! -s conftest.err'
9449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450   (eval $ac_try) 2>&5
9451   ac_status=$?
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); }; } &&
9454          { ac_try='test -s conftest$ac_exeext'
9455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456   (eval $ac_try) 2>&5
9457   ac_status=$?
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); }; }; then
9460   ac_cv_lib_m_sinf=yes
9461 else
9462   echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9464
9465 ac_cv_lib_m_sinf=no
9466 fi
9467 rm -f conftest.err conftest.$ac_objext \
9468       conftest$ac_exeext conftest.$ac_ext
9469 LIBS=$ac_check_lib_save_LIBS
9470 fi
9471 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
9472 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
9473 if test $ac_cv_lib_m_sinf = yes; then
9474
9475 cat >>confdefs.h <<\_ACEOF
9476 #define HAVE_SINF 1
9477 _ACEOF
9478
9479 fi
9480
9481 echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
9482 echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
9483 if test "${ac_cv_lib_m_sinhf+set}" = set; then
9484   echo $ECHO_N "(cached) $ECHO_C" >&6
9485 else
9486   ac_check_lib_save_LIBS=$LIBS
9487 LIBS="-lm  $LIBS"
9488 if test x$gcc_no_link = xyes; then
9489   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9490 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9491    { (exit 1); exit 1; }; }
9492 fi
9493 cat >conftest.$ac_ext <<_ACEOF
9494 /* confdefs.h.  */
9495 _ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h.  */
9499
9500 /* Override any gcc2 internal prototype to avoid an error.  */
9501 #ifdef __cplusplus
9502 extern "C"
9503 #endif
9504 /* We use char because int might match the return type of a gcc2
9505    builtin and then its argument prototype would still apply.  */
9506 char sinhf ();
9507 int
9508 main ()
9509 {
9510 sinhf ();
9511   ;
9512   return 0;
9513 }
9514 _ACEOF
9515 rm -f conftest.$ac_objext conftest$ac_exeext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9517   (eval $ac_link) 2>conftest.er1
9518   ac_status=$?
9519   grep -v '^ *+' conftest.er1 >conftest.err
9520   rm -f conftest.er1
9521   cat conftest.err >&5
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); } &&
9524          { ac_try='test -z "$ac_c_werror_flag"
9525                          || test ! -s conftest.err'
9526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527   (eval $ac_try) 2>&5
9528   ac_status=$?
9529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530   (exit $ac_status); }; } &&
9531          { ac_try='test -s conftest$ac_exeext'
9532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533   (eval $ac_try) 2>&5
9534   ac_status=$?
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); }; }; then
9537   ac_cv_lib_m_sinhf=yes
9538 else
9539   echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9541
9542 ac_cv_lib_m_sinhf=no
9543 fi
9544 rm -f conftest.err conftest.$ac_objext \
9545       conftest$ac_exeext conftest.$ac_ext
9546 LIBS=$ac_check_lib_save_LIBS
9547 fi
9548 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
9549 echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
9550 if test $ac_cv_lib_m_sinhf = yes; then
9551
9552 cat >>confdefs.h <<\_ACEOF
9553 #define HAVE_SINHF 1
9554 _ACEOF
9555
9556 fi
9557
9558 echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
9559 echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
9560 if test "${ac_cv_lib_m_sqrtf+set}" = set; then
9561   echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563   ac_check_lib_save_LIBS=$LIBS
9564 LIBS="-lm  $LIBS"
9565 if test x$gcc_no_link = xyes; then
9566   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9567 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9568    { (exit 1); exit 1; }; }
9569 fi
9570 cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h.  */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h.  */
9576
9577 /* Override any gcc2 internal prototype to avoid an error.  */
9578 #ifdef __cplusplus
9579 extern "C"
9580 #endif
9581 /* We use char because int might match the return type of a gcc2
9582    builtin and then its argument prototype would still apply.  */
9583 char sqrtf ();
9584 int
9585 main ()
9586 {
9587 sqrtf ();
9588   ;
9589   return 0;
9590 }
9591 _ACEOF
9592 rm -f conftest.$ac_objext conftest$ac_exeext
9593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9594   (eval $ac_link) 2>conftest.er1
9595   ac_status=$?
9596   grep -v '^ *+' conftest.er1 >conftest.err
9597   rm -f conftest.er1
9598   cat conftest.err >&5
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); } &&
9601          { ac_try='test -z "$ac_c_werror_flag"
9602                          || test ! -s conftest.err'
9603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604   (eval $ac_try) 2>&5
9605   ac_status=$?
9606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607   (exit $ac_status); }; } &&
9608          { ac_try='test -s conftest$ac_exeext'
9609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610   (eval $ac_try) 2>&5
9611   ac_status=$?
9612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613   (exit $ac_status); }; }; then
9614   ac_cv_lib_m_sqrtf=yes
9615 else
9616   echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9618
9619 ac_cv_lib_m_sqrtf=no
9620 fi
9621 rm -f conftest.err conftest.$ac_objext \
9622       conftest$ac_exeext conftest.$ac_ext
9623 LIBS=$ac_check_lib_save_LIBS
9624 fi
9625 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
9626 echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
9627 if test $ac_cv_lib_m_sqrtf = yes; then
9628
9629 cat >>confdefs.h <<\_ACEOF
9630 #define HAVE_SQRTF 1
9631 _ACEOF
9632
9633 fi
9634
9635 echo "$as_me:$LINENO: checking for tanf in -lm" >&5
9636 echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
9637 if test "${ac_cv_lib_m_tanf+set}" = set; then
9638   echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640   ac_check_lib_save_LIBS=$LIBS
9641 LIBS="-lm  $LIBS"
9642 if test x$gcc_no_link = xyes; then
9643   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9644 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9645    { (exit 1); exit 1; }; }
9646 fi
9647 cat >conftest.$ac_ext <<_ACEOF
9648 /* confdefs.h.  */
9649 _ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h.  */
9653
9654 /* Override any gcc2 internal prototype to avoid an error.  */
9655 #ifdef __cplusplus
9656 extern "C"
9657 #endif
9658 /* We use char because int might match the return type of a gcc2
9659    builtin and then its argument prototype would still apply.  */
9660 char tanf ();
9661 int
9662 main ()
9663 {
9664 tanf ();
9665   ;
9666   return 0;
9667 }
9668 _ACEOF
9669 rm -f conftest.$ac_objext conftest$ac_exeext
9670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9671   (eval $ac_link) 2>conftest.er1
9672   ac_status=$?
9673   grep -v '^ *+' conftest.er1 >conftest.err
9674   rm -f conftest.er1
9675   cat conftest.err >&5
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); } &&
9678          { ac_try='test -z "$ac_c_werror_flag"
9679                          || test ! -s conftest.err'
9680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681   (eval $ac_try) 2>&5
9682   ac_status=$?
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); }; } &&
9685          { ac_try='test -s conftest$ac_exeext'
9686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687   (eval $ac_try) 2>&5
9688   ac_status=$?
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); }; }; then
9691   ac_cv_lib_m_tanf=yes
9692 else
9693   echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9695
9696 ac_cv_lib_m_tanf=no
9697 fi
9698 rm -f conftest.err conftest.$ac_objext \
9699       conftest$ac_exeext conftest.$ac_ext
9700 LIBS=$ac_check_lib_save_LIBS
9701 fi
9702 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
9703 echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
9704 if test $ac_cv_lib_m_tanf = yes; then
9705
9706 cat >>confdefs.h <<\_ACEOF
9707 #define HAVE_TANF 1
9708 _ACEOF
9709
9710 fi
9711
9712 echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
9713 echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
9714 if test "${ac_cv_lib_m_tanhf+set}" = set; then
9715   echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717   ac_check_lib_save_LIBS=$LIBS
9718 LIBS="-lm  $LIBS"
9719 if test x$gcc_no_link = xyes; then
9720   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9721 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9722    { (exit 1); exit 1; }; }
9723 fi
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h.  */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h.  */
9730
9731 /* Override any gcc2 internal prototype to avoid an error.  */
9732 #ifdef __cplusplus
9733 extern "C"
9734 #endif
9735 /* We use char because int might match the return type of a gcc2
9736    builtin and then its argument prototype would still apply.  */
9737 char tanhf ();
9738 int
9739 main ()
9740 {
9741 tanhf ();
9742   ;
9743   return 0;
9744 }
9745 _ACEOF
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9748   (eval $ac_link) 2>conftest.er1
9749   ac_status=$?
9750   grep -v '^ *+' conftest.er1 >conftest.err
9751   rm -f conftest.er1
9752   cat conftest.err >&5
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); } &&
9755          { ac_try='test -z "$ac_c_werror_flag"
9756                          || test ! -s conftest.err'
9757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758   (eval $ac_try) 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); }; } &&
9762          { ac_try='test -s conftest$ac_exeext'
9763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764   (eval $ac_try) 2>&5
9765   ac_status=$?
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); }; }; then
9768   ac_cv_lib_m_tanhf=yes
9769 else
9770   echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9772
9773 ac_cv_lib_m_tanhf=no
9774 fi
9775 rm -f conftest.err conftest.$ac_objext \
9776       conftest$ac_exeext conftest.$ac_ext
9777 LIBS=$ac_check_lib_save_LIBS
9778 fi
9779 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
9780 echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
9781 if test $ac_cv_lib_m_tanhf = yes; then
9782
9783 cat >>confdefs.h <<\_ACEOF
9784 #define HAVE_TANHF 1
9785 _ACEOF
9786
9787 fi
9788
9789 echo "$as_me:$LINENO: checking for trunc in -lm" >&5
9790 echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6
9791 if test "${ac_cv_lib_m_trunc+set}" = set; then
9792   echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794   ac_check_lib_save_LIBS=$LIBS
9795 LIBS="-lm  $LIBS"
9796 if test x$gcc_no_link = xyes; then
9797   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9798 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9799    { (exit 1); exit 1; }; }
9800 fi
9801 cat >conftest.$ac_ext <<_ACEOF
9802 /* confdefs.h.  */
9803 _ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h.  */
9807
9808 /* Override any gcc2 internal prototype to avoid an error.  */
9809 #ifdef __cplusplus
9810 extern "C"
9811 #endif
9812 /* We use char because int might match the return type of a gcc2
9813    builtin and then its argument prototype would still apply.  */
9814 char trunc ();
9815 int
9816 main ()
9817 {
9818 trunc ();
9819   ;
9820   return 0;
9821 }
9822 _ACEOF
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9825   (eval $ac_link) 2>conftest.er1
9826   ac_status=$?
9827   grep -v '^ *+' conftest.er1 >conftest.err
9828   rm -f conftest.er1
9829   cat conftest.err >&5
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); } &&
9832          { ac_try='test -z "$ac_c_werror_flag"
9833                          || test ! -s conftest.err'
9834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835   (eval $ac_try) 2>&5
9836   ac_status=$?
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); }; } &&
9839          { ac_try='test -s conftest$ac_exeext'
9840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841   (eval $ac_try) 2>&5
9842   ac_status=$?
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); }; }; then
9845   ac_cv_lib_m_trunc=yes
9846 else
9847   echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9849
9850 ac_cv_lib_m_trunc=no
9851 fi
9852 rm -f conftest.err conftest.$ac_objext \
9853       conftest$ac_exeext conftest.$ac_ext
9854 LIBS=$ac_check_lib_save_LIBS
9855 fi
9856 echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5
9857 echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6
9858 if test $ac_cv_lib_m_trunc = yes; then
9859
9860 cat >>confdefs.h <<\_ACEOF
9861 #define HAVE_TRUNC 1
9862 _ACEOF
9863
9864 fi
9865
9866 echo "$as_me:$LINENO: checking for truncf in -lm" >&5
9867 echo $ECHO_N "checking for truncf in -lm... $ECHO_C" >&6
9868 if test "${ac_cv_lib_m_truncf+set}" = set; then
9869   echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871   ac_check_lib_save_LIBS=$LIBS
9872 LIBS="-lm  $LIBS"
9873 if test x$gcc_no_link = xyes; then
9874   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9875 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9876    { (exit 1); exit 1; }; }
9877 fi
9878 cat >conftest.$ac_ext <<_ACEOF
9879 /* confdefs.h.  */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h.  */
9884
9885 /* Override any gcc2 internal prototype to avoid an error.  */
9886 #ifdef __cplusplus
9887 extern "C"
9888 #endif
9889 /* We use char because int might match the return type of a gcc2
9890    builtin and then its argument prototype would still apply.  */
9891 char truncf ();
9892 int
9893 main ()
9894 {
9895 truncf ();
9896   ;
9897   return 0;
9898 }
9899 _ACEOF
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902   (eval $ac_link) 2>conftest.er1
9903   ac_status=$?
9904   grep -v '^ *+' conftest.er1 >conftest.err
9905   rm -f conftest.er1
9906   cat conftest.err >&5
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); } &&
9909          { ac_try='test -z "$ac_c_werror_flag"
9910                          || test ! -s conftest.err'
9911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912   (eval $ac_try) 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); }; } &&
9916          { ac_try='test -s conftest$ac_exeext'
9917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918   (eval $ac_try) 2>&5
9919   ac_status=$?
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); }; }; then
9922   ac_cv_lib_m_truncf=yes
9923 else
9924   echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9926
9927 ac_cv_lib_m_truncf=no
9928 fi
9929 rm -f conftest.err conftest.$ac_objext \
9930       conftest$ac_exeext conftest.$ac_ext
9931 LIBS=$ac_check_lib_save_LIBS
9932 fi
9933 echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncf" >&5
9934 echo "${ECHO_T}$ac_cv_lib_m_truncf" >&6
9935 if test $ac_cv_lib_m_truncf = yes; then
9936
9937 cat >>confdefs.h <<\_ACEOF
9938 #define HAVE_TRUNCF 1
9939 _ACEOF
9940
9941 fi
9942
9943 echo "$as_me:$LINENO: checking for erf in -lm" >&5
9944 echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
9945 if test "${ac_cv_lib_m_erf+set}" = set; then
9946   echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948   ac_check_lib_save_LIBS=$LIBS
9949 LIBS="-lm  $LIBS"
9950 if test x$gcc_no_link = xyes; then
9951   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9952 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9953    { (exit 1); exit 1; }; }
9954 fi
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h.  */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h.  */
9961
9962 /* Override any gcc2 internal prototype to avoid an error.  */
9963 #ifdef __cplusplus
9964 extern "C"
9965 #endif
9966 /* We use char because int might match the return type of a gcc2
9967    builtin and then its argument prototype would still apply.  */
9968 char erf ();
9969 int
9970 main ()
9971 {
9972 erf ();
9973   ;
9974   return 0;
9975 }
9976 _ACEOF
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9979   (eval $ac_link) 2>conftest.er1
9980   ac_status=$?
9981   grep -v '^ *+' conftest.er1 >conftest.err
9982   rm -f conftest.er1
9983   cat conftest.err >&5
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); } &&
9986          { ac_try='test -z "$ac_c_werror_flag"
9987                          || test ! -s conftest.err'
9988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989   (eval $ac_try) 2>&5
9990   ac_status=$?
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); }; } &&
9993          { ac_try='test -s conftest$ac_exeext'
9994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995   (eval $ac_try) 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); }; }; then
9999   ac_cv_lib_m_erf=yes
10000 else
10001   echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10003
10004 ac_cv_lib_m_erf=no
10005 fi
10006 rm -f conftest.err conftest.$ac_objext \
10007       conftest$ac_exeext conftest.$ac_ext
10008 LIBS=$ac_check_lib_save_LIBS
10009 fi
10010 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
10011 echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
10012 if test $ac_cv_lib_m_erf = yes; then
10013
10014 cat >>confdefs.h <<\_ACEOF
10015 #define HAVE_ERF 1
10016 _ACEOF
10017
10018 fi
10019
10020 echo "$as_me:$LINENO: checking for erfc in -lm" >&5
10021 echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
10022 if test "${ac_cv_lib_m_erfc+set}" = set; then
10023   echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025   ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-lm  $LIBS"
10027 if test x$gcc_no_link = xyes; then
10028   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10029 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10030    { (exit 1); exit 1; }; }
10031 fi
10032 cat >conftest.$ac_ext <<_ACEOF
10033 /* confdefs.h.  */
10034 _ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h.  */
10038
10039 /* Override any gcc2 internal prototype to avoid an error.  */
10040 #ifdef __cplusplus
10041 extern "C"
10042 #endif
10043 /* We use char because int might match the return type of a gcc2
10044    builtin and then its argument prototype would still apply.  */
10045 char erfc ();
10046 int
10047 main ()
10048 {
10049 erfc ();
10050   ;
10051   return 0;
10052 }
10053 _ACEOF
10054 rm -f conftest.$ac_objext conftest$ac_exeext
10055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10056   (eval $ac_link) 2>conftest.er1
10057   ac_status=$?
10058   grep -v '^ *+' conftest.er1 >conftest.err
10059   rm -f conftest.er1
10060   cat conftest.err >&5
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); } &&
10063          { ac_try='test -z "$ac_c_werror_flag"
10064                          || test ! -s conftest.err'
10065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066   (eval $ac_try) 2>&5
10067   ac_status=$?
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); }; } &&
10070          { ac_try='test -s conftest$ac_exeext'
10071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072   (eval $ac_try) 2>&5
10073   ac_status=$?
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); }; }; then
10076   ac_cv_lib_m_erfc=yes
10077 else
10078   echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10080
10081 ac_cv_lib_m_erfc=no
10082 fi
10083 rm -f conftest.err conftest.$ac_objext \
10084       conftest$ac_exeext conftest.$ac_ext
10085 LIBS=$ac_check_lib_save_LIBS
10086 fi
10087 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
10088 echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
10089 if test $ac_cv_lib_m_erfc = yes; then
10090
10091 cat >>confdefs.h <<\_ACEOF
10092 #define HAVE_ERFC 1
10093 _ACEOF
10094
10095 fi
10096
10097 echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
10098 echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
10099 if test "${ac_cv_lib_m_erfcf+set}" = set; then
10100   echo $ECHO_N "(cached) $ECHO_C" >&6
10101 else
10102   ac_check_lib_save_LIBS=$LIBS
10103 LIBS="-lm  $LIBS"
10104 if test x$gcc_no_link = xyes; then
10105   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10106 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10107    { (exit 1); exit 1; }; }
10108 fi
10109 cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h.  */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h.  */
10115
10116 /* Override any gcc2 internal prototype to avoid an error.  */
10117 #ifdef __cplusplus
10118 extern "C"
10119 #endif
10120 /* We use char because int might match the return type of a gcc2
10121    builtin and then its argument prototype would still apply.  */
10122 char erfcf ();
10123 int
10124 main ()
10125 {
10126 erfcf ();
10127   ;
10128   return 0;
10129 }
10130 _ACEOF
10131 rm -f conftest.$ac_objext conftest$ac_exeext
10132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10133   (eval $ac_link) 2>conftest.er1
10134   ac_status=$?
10135   grep -v '^ *+' conftest.er1 >conftest.err
10136   rm -f conftest.er1
10137   cat conftest.err >&5
10138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139   (exit $ac_status); } &&
10140          { ac_try='test -z "$ac_c_werror_flag"
10141                          || test ! -s conftest.err'
10142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143   (eval $ac_try) 2>&5
10144   ac_status=$?
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); }; } &&
10147          { ac_try='test -s conftest$ac_exeext'
10148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149   (eval $ac_try) 2>&5
10150   ac_status=$?
10151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); }; }; then
10153   ac_cv_lib_m_erfcf=yes
10154 else
10155   echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10157
10158 ac_cv_lib_m_erfcf=no
10159 fi
10160 rm -f conftest.err conftest.$ac_objext \
10161       conftest$ac_exeext conftest.$ac_ext
10162 LIBS=$ac_check_lib_save_LIBS
10163 fi
10164 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
10165 echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
10166 if test $ac_cv_lib_m_erfcf = yes; then
10167
10168 cat >>confdefs.h <<\_ACEOF
10169 #define HAVE_ERFCF 1
10170 _ACEOF
10171
10172 fi
10173
10174 echo "$as_me:$LINENO: checking for erff in -lm" >&5
10175 echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
10176 if test "${ac_cv_lib_m_erff+set}" = set; then
10177   echo $ECHO_N "(cached) $ECHO_C" >&6
10178 else
10179   ac_check_lib_save_LIBS=$LIBS
10180 LIBS="-lm  $LIBS"
10181 if test x$gcc_no_link = xyes; then
10182   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10183 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10184    { (exit 1); exit 1; }; }
10185 fi
10186 cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h.  */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h.  */
10192
10193 /* Override any gcc2 internal prototype to avoid an error.  */
10194 #ifdef __cplusplus
10195 extern "C"
10196 #endif
10197 /* We use char because int might match the return type of a gcc2
10198    builtin and then its argument prototype would still apply.  */
10199 char erff ();
10200 int
10201 main ()
10202 {
10203 erff ();
10204   ;
10205   return 0;
10206 }
10207 _ACEOF
10208 rm -f conftest.$ac_objext conftest$ac_exeext
10209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210   (eval $ac_link) 2>conftest.er1
10211   ac_status=$?
10212   grep -v '^ *+' conftest.er1 >conftest.err
10213   rm -f conftest.er1
10214   cat conftest.err >&5
10215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216   (exit $ac_status); } &&
10217          { ac_try='test -z "$ac_c_werror_flag"
10218                          || test ! -s conftest.err'
10219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220   (eval $ac_try) 2>&5
10221   ac_status=$?
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); }; } &&
10224          { ac_try='test -s conftest$ac_exeext'
10225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226   (eval $ac_try) 2>&5
10227   ac_status=$?
10228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229   (exit $ac_status); }; }; then
10230   ac_cv_lib_m_erff=yes
10231 else
10232   echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10234
10235 ac_cv_lib_m_erff=no
10236 fi
10237 rm -f conftest.err conftest.$ac_objext \
10238       conftest$ac_exeext conftest.$ac_ext
10239 LIBS=$ac_check_lib_save_LIBS
10240 fi
10241 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5
10242 echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
10243 if test $ac_cv_lib_m_erff = yes; then
10244
10245 cat >>confdefs.h <<\_ACEOF
10246 #define HAVE_ERFF 1
10247 _ACEOF
10248
10249 fi
10250
10251 echo "$as_me:$LINENO: checking for j0 in -lm" >&5
10252 echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
10253 if test "${ac_cv_lib_m_j0+set}" = set; then
10254   echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10256   ac_check_lib_save_LIBS=$LIBS
10257 LIBS="-lm  $LIBS"
10258 if test x$gcc_no_link = xyes; then
10259   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10260 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10261    { (exit 1); exit 1; }; }
10262 fi
10263 cat >conftest.$ac_ext <<_ACEOF
10264 /* confdefs.h.  */
10265 _ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h.  */
10269
10270 /* Override any gcc2 internal prototype to avoid an error.  */
10271 #ifdef __cplusplus
10272 extern "C"
10273 #endif
10274 /* We use char because int might match the return type of a gcc2
10275    builtin and then its argument prototype would still apply.  */
10276 char j0 ();
10277 int
10278 main ()
10279 {
10280 j0 ();
10281   ;
10282   return 0;
10283 }
10284 _ACEOF
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10287   (eval $ac_link) 2>conftest.er1
10288   ac_status=$?
10289   grep -v '^ *+' conftest.er1 >conftest.err
10290   rm -f conftest.er1
10291   cat conftest.err >&5
10292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293   (exit $ac_status); } &&
10294          { ac_try='test -z "$ac_c_werror_flag"
10295                          || test ! -s conftest.err'
10296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297   (eval $ac_try) 2>&5
10298   ac_status=$?
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); }; } &&
10301          { ac_try='test -s conftest$ac_exeext'
10302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303   (eval $ac_try) 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); }; }; then
10307   ac_cv_lib_m_j0=yes
10308 else
10309   echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10311
10312 ac_cv_lib_m_j0=no
10313 fi
10314 rm -f conftest.err conftest.$ac_objext \
10315       conftest$ac_exeext conftest.$ac_ext
10316 LIBS=$ac_check_lib_save_LIBS
10317 fi
10318 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5
10319 echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
10320 if test $ac_cv_lib_m_j0 = yes; then
10321
10322 cat >>confdefs.h <<\_ACEOF
10323 #define HAVE_J0 1
10324 _ACEOF
10325
10326 fi
10327
10328 echo "$as_me:$LINENO: checking for j0f in -lm" >&5
10329 echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
10330 if test "${ac_cv_lib_m_j0f+set}" = set; then
10331   echo $ECHO_N "(cached) $ECHO_C" >&6
10332 else
10333   ac_check_lib_save_LIBS=$LIBS
10334 LIBS="-lm  $LIBS"
10335 if test x$gcc_no_link = xyes; then
10336   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10337 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10338    { (exit 1); exit 1; }; }
10339 fi
10340 cat >conftest.$ac_ext <<_ACEOF
10341 /* confdefs.h.  */
10342 _ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h.  */
10346
10347 /* Override any gcc2 internal prototype to avoid an error.  */
10348 #ifdef __cplusplus
10349 extern "C"
10350 #endif
10351 /* We use char because int might match the return type of a gcc2
10352    builtin and then its argument prototype would still apply.  */
10353 char j0f ();
10354 int
10355 main ()
10356 {
10357 j0f ();
10358   ;
10359   return 0;
10360 }
10361 _ACEOF
10362 rm -f conftest.$ac_objext conftest$ac_exeext
10363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10364   (eval $ac_link) 2>conftest.er1
10365   ac_status=$?
10366   grep -v '^ *+' conftest.er1 >conftest.err
10367   rm -f conftest.er1
10368   cat conftest.err >&5
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); } &&
10371          { ac_try='test -z "$ac_c_werror_flag"
10372                          || test ! -s conftest.err'
10373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374   (eval $ac_try) 2>&5
10375   ac_status=$?
10376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377   (exit $ac_status); }; } &&
10378          { ac_try='test -s conftest$ac_exeext'
10379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380   (eval $ac_try) 2>&5
10381   ac_status=$?
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); }; }; then
10384   ac_cv_lib_m_j0f=yes
10385 else
10386   echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10388
10389 ac_cv_lib_m_j0f=no
10390 fi
10391 rm -f conftest.err conftest.$ac_objext \
10392       conftest$ac_exeext conftest.$ac_ext
10393 LIBS=$ac_check_lib_save_LIBS
10394 fi
10395 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
10396 echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
10397 if test $ac_cv_lib_m_j0f = yes; then
10398
10399 cat >>confdefs.h <<\_ACEOF
10400 #define HAVE_J0F 1
10401 _ACEOF
10402
10403 fi
10404
10405 echo "$as_me:$LINENO: checking for j1 in -lm" >&5
10406 echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
10407 if test "${ac_cv_lib_m_j1+set}" = set; then
10408   echo $ECHO_N "(cached) $ECHO_C" >&6
10409 else
10410   ac_check_lib_save_LIBS=$LIBS
10411 LIBS="-lm  $LIBS"
10412 if test x$gcc_no_link = xyes; then
10413   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10414 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10415    { (exit 1); exit 1; }; }
10416 fi
10417 cat >conftest.$ac_ext <<_ACEOF
10418 /* confdefs.h.  */
10419 _ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h.  */
10423
10424 /* Override any gcc2 internal prototype to avoid an error.  */
10425 #ifdef __cplusplus
10426 extern "C"
10427 #endif
10428 /* We use char because int might match the return type of a gcc2
10429    builtin and then its argument prototype would still apply.  */
10430 char j1 ();
10431 int
10432 main ()
10433 {
10434 j1 ();
10435   ;
10436   return 0;
10437 }
10438 _ACEOF
10439 rm -f conftest.$ac_objext conftest$ac_exeext
10440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10441   (eval $ac_link) 2>conftest.er1
10442   ac_status=$?
10443   grep -v '^ *+' conftest.er1 >conftest.err
10444   rm -f conftest.er1
10445   cat conftest.err >&5
10446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447   (exit $ac_status); } &&
10448          { ac_try='test -z "$ac_c_werror_flag"
10449                          || test ! -s conftest.err'
10450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451   (eval $ac_try) 2>&5
10452   ac_status=$?
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); }; } &&
10455          { ac_try='test -s conftest$ac_exeext'
10456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457   (eval $ac_try) 2>&5
10458   ac_status=$?
10459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460   (exit $ac_status); }; }; then
10461   ac_cv_lib_m_j1=yes
10462 else
10463   echo "$as_me: failed program was:" >&5
10464 sed 's/^/| /' conftest.$ac_ext >&5
10465
10466 ac_cv_lib_m_j1=no
10467 fi
10468 rm -f conftest.err conftest.$ac_objext \
10469       conftest$ac_exeext conftest.$ac_ext
10470 LIBS=$ac_check_lib_save_LIBS
10471 fi
10472 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
10473 echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
10474 if test $ac_cv_lib_m_j1 = yes; then
10475
10476 cat >>confdefs.h <<\_ACEOF
10477 #define HAVE_J1 1
10478 _ACEOF
10479
10480 fi
10481
10482 echo "$as_me:$LINENO: checking for j1f in -lm" >&5
10483 echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
10484 if test "${ac_cv_lib_m_j1f+set}" = set; then
10485   echo $ECHO_N "(cached) $ECHO_C" >&6
10486 else
10487   ac_check_lib_save_LIBS=$LIBS
10488 LIBS="-lm  $LIBS"
10489 if test x$gcc_no_link = xyes; then
10490   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10491 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10492    { (exit 1); exit 1; }; }
10493 fi
10494 cat >conftest.$ac_ext <<_ACEOF
10495 /* confdefs.h.  */
10496 _ACEOF
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h.  */
10500
10501 /* Override any gcc2 internal prototype to avoid an error.  */
10502 #ifdef __cplusplus
10503 extern "C"
10504 #endif
10505 /* We use char because int might match the return type of a gcc2
10506    builtin and then its argument prototype would still apply.  */
10507 char j1f ();
10508 int
10509 main ()
10510 {
10511 j1f ();
10512   ;
10513   return 0;
10514 }
10515 _ACEOF
10516 rm -f conftest.$ac_objext conftest$ac_exeext
10517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10518   (eval $ac_link) 2>conftest.er1
10519   ac_status=$?
10520   grep -v '^ *+' conftest.er1 >conftest.err
10521   rm -f conftest.er1
10522   cat conftest.err >&5
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); } &&
10525          { ac_try='test -z "$ac_c_werror_flag"
10526                          || test ! -s conftest.err'
10527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528   (eval $ac_try) 2>&5
10529   ac_status=$?
10530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531   (exit $ac_status); }; } &&
10532          { ac_try='test -s conftest$ac_exeext'
10533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10534   (eval $ac_try) 2>&5
10535   ac_status=$?
10536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537   (exit $ac_status); }; }; then
10538   ac_cv_lib_m_j1f=yes
10539 else
10540   echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10542
10543 ac_cv_lib_m_j1f=no
10544 fi
10545 rm -f conftest.err conftest.$ac_objext \
10546       conftest$ac_exeext conftest.$ac_ext
10547 LIBS=$ac_check_lib_save_LIBS
10548 fi
10549 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
10550 echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
10551 if test $ac_cv_lib_m_j1f = yes; then
10552
10553 cat >>confdefs.h <<\_ACEOF
10554 #define HAVE_J1F 1
10555 _ACEOF
10556
10557 fi
10558
10559 echo "$as_me:$LINENO: checking for jn in -lm" >&5
10560 echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
10561 if test "${ac_cv_lib_m_jn+set}" = set; then
10562   echo $ECHO_N "(cached) $ECHO_C" >&6
10563 else
10564   ac_check_lib_save_LIBS=$LIBS
10565 LIBS="-lm  $LIBS"
10566 if test x$gcc_no_link = xyes; then
10567   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10568 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10569    { (exit 1); exit 1; }; }
10570 fi
10571 cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h.  */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h.  */
10577
10578 /* Override any gcc2 internal prototype to avoid an error.  */
10579 #ifdef __cplusplus
10580 extern "C"
10581 #endif
10582 /* We use char because int might match the return type of a gcc2
10583    builtin and then its argument prototype would still apply.  */
10584 char jn ();
10585 int
10586 main ()
10587 {
10588 jn ();
10589   ;
10590   return 0;
10591 }
10592 _ACEOF
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10595   (eval $ac_link) 2>conftest.er1
10596   ac_status=$?
10597   grep -v '^ *+' conftest.er1 >conftest.err
10598   rm -f conftest.er1
10599   cat conftest.err >&5
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); } &&
10602          { ac_try='test -z "$ac_c_werror_flag"
10603                          || test ! -s conftest.err'
10604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605   (eval $ac_try) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; } &&
10609          { ac_try='test -s conftest$ac_exeext'
10610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611   (eval $ac_try) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }; }; then
10615   ac_cv_lib_m_jn=yes
10616 else
10617   echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 ac_cv_lib_m_jn=no
10621 fi
10622 rm -f conftest.err conftest.$ac_objext \
10623       conftest$ac_exeext conftest.$ac_ext
10624 LIBS=$ac_check_lib_save_LIBS
10625 fi
10626 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
10627 echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
10628 if test $ac_cv_lib_m_jn = yes; then
10629
10630 cat >>confdefs.h <<\_ACEOF
10631 #define HAVE_JN 1
10632 _ACEOF
10633
10634 fi
10635
10636 echo "$as_me:$LINENO: checking for jnf in -lm" >&5
10637 echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
10638 if test "${ac_cv_lib_m_jnf+set}" = set; then
10639   echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641   ac_check_lib_save_LIBS=$LIBS
10642 LIBS="-lm  $LIBS"
10643 if test x$gcc_no_link = xyes; then
10644   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10645 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10646    { (exit 1); exit 1; }; }
10647 fi
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h.  */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h.  */
10654
10655 /* Override any gcc2 internal prototype to avoid an error.  */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 /* We use char because int might match the return type of a gcc2
10660    builtin and then its argument prototype would still apply.  */
10661 char jnf ();
10662 int
10663 main ()
10664 {
10665 jnf ();
10666   ;
10667   return 0;
10668 }
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672   (eval $ac_link) 2>conftest.er1
10673   ac_status=$?
10674   grep -v '^ *+' conftest.er1 >conftest.err
10675   rm -f conftest.er1
10676   cat conftest.err >&5
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); } &&
10679          { ac_try='test -z "$ac_c_werror_flag"
10680                          || test ! -s conftest.err'
10681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682   (eval $ac_try) 2>&5
10683   ac_status=$?
10684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685   (exit $ac_status); }; } &&
10686          { ac_try='test -s conftest$ac_exeext'
10687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688   (eval $ac_try) 2>&5
10689   ac_status=$?
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); }; }; then
10692   ac_cv_lib_m_jnf=yes
10693 else
10694   echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10696
10697 ac_cv_lib_m_jnf=no
10698 fi
10699 rm -f conftest.err conftest.$ac_objext \
10700       conftest$ac_exeext conftest.$ac_ext
10701 LIBS=$ac_check_lib_save_LIBS
10702 fi
10703 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
10704 echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
10705 if test $ac_cv_lib_m_jnf = yes; then
10706
10707 cat >>confdefs.h <<\_ACEOF
10708 #define HAVE_JNF 1
10709 _ACEOF
10710
10711 fi
10712
10713 echo "$as_me:$LINENO: checking for y0 in -lm" >&5
10714 echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
10715 if test "${ac_cv_lib_m_y0+set}" = set; then
10716   echo $ECHO_N "(cached) $ECHO_C" >&6
10717 else
10718   ac_check_lib_save_LIBS=$LIBS
10719 LIBS="-lm  $LIBS"
10720 if test x$gcc_no_link = xyes; then
10721   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10722 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10723    { (exit 1); exit 1; }; }
10724 fi
10725 cat >conftest.$ac_ext <<_ACEOF
10726 /* confdefs.h.  */
10727 _ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h.  */
10731
10732 /* Override any gcc2 internal prototype to avoid an error.  */
10733 #ifdef __cplusplus
10734 extern "C"
10735 #endif
10736 /* We use char because int might match the return type of a gcc2
10737    builtin and then its argument prototype would still apply.  */
10738 char y0 ();
10739 int
10740 main ()
10741 {
10742 y0 ();
10743   ;
10744   return 0;
10745 }
10746 _ACEOF
10747 rm -f conftest.$ac_objext conftest$ac_exeext
10748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10749   (eval $ac_link) 2>conftest.er1
10750   ac_status=$?
10751   grep -v '^ *+' conftest.er1 >conftest.err
10752   rm -f conftest.er1
10753   cat conftest.err >&5
10754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); } &&
10756          { ac_try='test -z "$ac_c_werror_flag"
10757                          || test ! -s conftest.err'
10758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759   (eval $ac_try) 2>&5
10760   ac_status=$?
10761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762   (exit $ac_status); }; } &&
10763          { ac_try='test -s conftest$ac_exeext'
10764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765   (eval $ac_try) 2>&5
10766   ac_status=$?
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); }; }; then
10769   ac_cv_lib_m_y0=yes
10770 else
10771   echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10773
10774 ac_cv_lib_m_y0=no
10775 fi
10776 rm -f conftest.err conftest.$ac_objext \
10777       conftest$ac_exeext conftest.$ac_ext
10778 LIBS=$ac_check_lib_save_LIBS
10779 fi
10780 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
10781 echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
10782 if test $ac_cv_lib_m_y0 = yes; then
10783
10784 cat >>confdefs.h <<\_ACEOF
10785 #define HAVE_Y0 1
10786 _ACEOF
10787
10788 fi
10789
10790 echo "$as_me:$LINENO: checking for y0f in -lm" >&5
10791 echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
10792 if test "${ac_cv_lib_m_y0f+set}" = set; then
10793   echo $ECHO_N "(cached) $ECHO_C" >&6
10794 else
10795   ac_check_lib_save_LIBS=$LIBS
10796 LIBS="-lm  $LIBS"
10797 if test x$gcc_no_link = xyes; then
10798   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10799 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10800    { (exit 1); exit 1; }; }
10801 fi
10802 cat >conftest.$ac_ext <<_ACEOF
10803 /* confdefs.h.  */
10804 _ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h.  */
10808
10809 /* Override any gcc2 internal prototype to avoid an error.  */
10810 #ifdef __cplusplus
10811 extern "C"
10812 #endif
10813 /* We use char because int might match the return type of a gcc2
10814    builtin and then its argument prototype would still apply.  */
10815 char y0f ();
10816 int
10817 main ()
10818 {
10819 y0f ();
10820   ;
10821   return 0;
10822 }
10823 _ACEOF
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10826   (eval $ac_link) 2>conftest.er1
10827   ac_status=$?
10828   grep -v '^ *+' conftest.er1 >conftest.err
10829   rm -f conftest.er1
10830   cat conftest.err >&5
10831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832   (exit $ac_status); } &&
10833          { ac_try='test -z "$ac_c_werror_flag"
10834                          || test ! -s conftest.err'
10835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836   (eval $ac_try) 2>&5
10837   ac_status=$?
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); }; } &&
10840          { ac_try='test -s conftest$ac_exeext'
10841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842   (eval $ac_try) 2>&5
10843   ac_status=$?
10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845   (exit $ac_status); }; }; then
10846   ac_cv_lib_m_y0f=yes
10847 else
10848   echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10850
10851 ac_cv_lib_m_y0f=no
10852 fi
10853 rm -f conftest.err conftest.$ac_objext \
10854       conftest$ac_exeext conftest.$ac_ext
10855 LIBS=$ac_check_lib_save_LIBS
10856 fi
10857 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
10858 echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
10859 if test $ac_cv_lib_m_y0f = yes; then
10860
10861 cat >>confdefs.h <<\_ACEOF
10862 #define HAVE_Y0F 1
10863 _ACEOF
10864
10865 fi
10866
10867 echo "$as_me:$LINENO: checking for y1 in -lm" >&5
10868 echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
10869 if test "${ac_cv_lib_m_y1+set}" = set; then
10870   echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872   ac_check_lib_save_LIBS=$LIBS
10873 LIBS="-lm  $LIBS"
10874 if test x$gcc_no_link = xyes; then
10875   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10877    { (exit 1); exit 1; }; }
10878 fi
10879 cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h.  */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h.  */
10885
10886 /* Override any gcc2 internal prototype to avoid an error.  */
10887 #ifdef __cplusplus
10888 extern "C"
10889 #endif
10890 /* We use char because int might match the return type of a gcc2
10891    builtin and then its argument prototype would still apply.  */
10892 char y1 ();
10893 int
10894 main ()
10895 {
10896 y1 ();
10897   ;
10898   return 0;
10899 }
10900 _ACEOF
10901 rm -f conftest.$ac_objext conftest$ac_exeext
10902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10903   (eval $ac_link) 2>conftest.er1
10904   ac_status=$?
10905   grep -v '^ *+' conftest.er1 >conftest.err
10906   rm -f conftest.er1
10907   cat conftest.err >&5
10908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909   (exit $ac_status); } &&
10910          { ac_try='test -z "$ac_c_werror_flag"
10911                          || test ! -s conftest.err'
10912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913   (eval $ac_try) 2>&5
10914   ac_status=$?
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); }; } &&
10917          { ac_try='test -s conftest$ac_exeext'
10918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919   (eval $ac_try) 2>&5
10920   ac_status=$?
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); }; }; then
10923   ac_cv_lib_m_y1=yes
10924 else
10925   echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10927
10928 ac_cv_lib_m_y1=no
10929 fi
10930 rm -f conftest.err conftest.$ac_objext \
10931       conftest$ac_exeext conftest.$ac_ext
10932 LIBS=$ac_check_lib_save_LIBS
10933 fi
10934 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
10935 echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
10936 if test $ac_cv_lib_m_y1 = yes; then
10937
10938 cat >>confdefs.h <<\_ACEOF
10939 #define HAVE_Y1 1
10940 _ACEOF
10941
10942 fi
10943
10944 echo "$as_me:$LINENO: checking for y1f in -lm" >&5
10945 echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
10946 if test "${ac_cv_lib_m_y1f+set}" = set; then
10947   echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949   ac_check_lib_save_LIBS=$LIBS
10950 LIBS="-lm  $LIBS"
10951 if test x$gcc_no_link = xyes; then
10952   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10953 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10954    { (exit 1); exit 1; }; }
10955 fi
10956 cat >conftest.$ac_ext <<_ACEOF
10957 /* confdefs.h.  */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h.  */
10962
10963 /* Override any gcc2 internal prototype to avoid an error.  */
10964 #ifdef __cplusplus
10965 extern "C"
10966 #endif
10967 /* We use char because int might match the return type of a gcc2
10968    builtin and then its argument prototype would still apply.  */
10969 char y1f ();
10970 int
10971 main ()
10972 {
10973 y1f ();
10974   ;
10975   return 0;
10976 }
10977 _ACEOF
10978 rm -f conftest.$ac_objext conftest$ac_exeext
10979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10980   (eval $ac_link) 2>conftest.er1
10981   ac_status=$?
10982   grep -v '^ *+' conftest.er1 >conftest.err
10983   rm -f conftest.er1
10984   cat conftest.err >&5
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); } &&
10987          { ac_try='test -z "$ac_c_werror_flag"
10988                          || test ! -s conftest.err'
10989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990   (eval $ac_try) 2>&5
10991   ac_status=$?
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); }; } &&
10994          { ac_try='test -s conftest$ac_exeext'
10995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996   (eval $ac_try) 2>&5
10997   ac_status=$?
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); }; }; then
11000   ac_cv_lib_m_y1f=yes
11001 else
11002   echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11004
11005 ac_cv_lib_m_y1f=no
11006 fi
11007 rm -f conftest.err conftest.$ac_objext \
11008       conftest$ac_exeext conftest.$ac_ext
11009 LIBS=$ac_check_lib_save_LIBS
11010 fi
11011 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
11012 echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
11013 if test $ac_cv_lib_m_y1f = yes; then
11014
11015 cat >>confdefs.h <<\_ACEOF
11016 #define HAVE_Y1F 1
11017 _ACEOF
11018
11019 fi
11020
11021 echo "$as_me:$LINENO: checking for yn in -lm" >&5
11022 echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
11023 if test "${ac_cv_lib_m_yn+set}" = set; then
11024   echo $ECHO_N "(cached) $ECHO_C" >&6
11025 else
11026   ac_check_lib_save_LIBS=$LIBS
11027 LIBS="-lm  $LIBS"
11028 if test x$gcc_no_link = xyes; then
11029   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11030 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11031    { (exit 1); exit 1; }; }
11032 fi
11033 cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h.  */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h.  */
11039
11040 /* Override any gcc2 internal prototype to avoid an error.  */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 /* We use char because int might match the return type of a gcc2
11045    builtin and then its argument prototype would still apply.  */
11046 char yn ();
11047 int
11048 main ()
11049 {
11050 yn ();
11051   ;
11052   return 0;
11053 }
11054 _ACEOF
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11057   (eval $ac_link) 2>conftest.er1
11058   ac_status=$?
11059   grep -v '^ *+' conftest.er1 >conftest.err
11060   rm -f conftest.er1
11061   cat conftest.err >&5
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } &&
11064          { ac_try='test -z "$ac_c_werror_flag"
11065                          || test ! -s conftest.err'
11066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067   (eval $ac_try) 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; } &&
11071          { ac_try='test -s conftest$ac_exeext'
11072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073   (eval $ac_try) 2>&5
11074   ac_status=$?
11075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); }; }; then
11077   ac_cv_lib_m_yn=yes
11078 else
11079   echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11081
11082 ac_cv_lib_m_yn=no
11083 fi
11084 rm -f conftest.err conftest.$ac_objext \
11085       conftest$ac_exeext conftest.$ac_ext
11086 LIBS=$ac_check_lib_save_LIBS
11087 fi
11088 echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
11089 echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
11090 if test $ac_cv_lib_m_yn = yes; then
11091
11092 cat >>confdefs.h <<\_ACEOF
11093 #define HAVE_YN 1
11094 _ACEOF
11095
11096 fi
11097
11098 echo "$as_me:$LINENO: checking for ynf in -lm" >&5
11099 echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
11100 if test "${ac_cv_lib_m_ynf+set}" = set; then
11101   echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103   ac_check_lib_save_LIBS=$LIBS
11104 LIBS="-lm  $LIBS"
11105 if test x$gcc_no_link = xyes; then
11106   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11107 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11108    { (exit 1); exit 1; }; }
11109 fi
11110 cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h.  */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h.  */
11116
11117 /* Override any gcc2 internal prototype to avoid an error.  */
11118 #ifdef __cplusplus
11119 extern "C"
11120 #endif
11121 /* We use char because int might match the return type of a gcc2
11122    builtin and then its argument prototype would still apply.  */
11123 char ynf ();
11124 int
11125 main ()
11126 {
11127 ynf ();
11128   ;
11129   return 0;
11130 }
11131 _ACEOF
11132 rm -f conftest.$ac_objext conftest$ac_exeext
11133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11134   (eval $ac_link) 2>conftest.er1
11135   ac_status=$?
11136   grep -v '^ *+' conftest.er1 >conftest.err
11137   rm -f conftest.er1
11138   cat conftest.err >&5
11139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140   (exit $ac_status); } &&
11141          { ac_try='test -z "$ac_c_werror_flag"
11142                          || test ! -s conftest.err'
11143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11144   (eval $ac_try) 2>&5
11145   ac_status=$?
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); }; } &&
11148          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11154   ac_cv_lib_m_ynf=yes
11155 else
11156   echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11158
11159 ac_cv_lib_m_ynf=no
11160 fi
11161 rm -f conftest.err conftest.$ac_objext \
11162       conftest$ac_exeext conftest.$ac_ext
11163 LIBS=$ac_check_lib_save_LIBS
11164 fi
11165 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
11166 echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
11167 if test $ac_cv_lib_m_ynf = yes; then
11168
11169 cat >>confdefs.h <<\_ACEOF
11170 #define HAVE_YNF 1
11171 _ACEOF
11172
11173 fi
11174
11175
11176 # Fallback in case isfinite is not available.
11177 echo "$as_me:$LINENO: checking for finite in -lm" >&5
11178 echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6
11179 if test "${ac_cv_lib_m_finite+set}" = set; then
11180   echo $ECHO_N "(cached) $ECHO_C" >&6
11181 else
11182   ac_check_lib_save_LIBS=$LIBS
11183 LIBS="-lm  $LIBS"
11184 if test x$gcc_no_link = xyes; then
11185   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11186 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11187    { (exit 1); exit 1; }; }
11188 fi
11189 cat >conftest.$ac_ext <<_ACEOF
11190 /* confdefs.h.  */
11191 _ACEOF
11192 cat confdefs.h >>conftest.$ac_ext
11193 cat >>conftest.$ac_ext <<_ACEOF
11194 /* end confdefs.h.  */
11195
11196 /* Override any gcc2 internal prototype to avoid an error.  */
11197 #ifdef __cplusplus
11198 extern "C"
11199 #endif
11200 /* We use char because int might match the return type of a gcc2
11201    builtin and then its argument prototype would still apply.  */
11202 char finite ();
11203 int
11204 main ()
11205 {
11206 finite ();
11207   ;
11208   return 0;
11209 }
11210 _ACEOF
11211 rm -f conftest.$ac_objext conftest$ac_exeext
11212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11213   (eval $ac_link) 2>conftest.er1
11214   ac_status=$?
11215   grep -v '^ *+' conftest.er1 >conftest.err
11216   rm -f conftest.er1
11217   cat conftest.err >&5
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); } &&
11220          { ac_try='test -z "$ac_c_werror_flag"
11221                          || test ! -s conftest.err'
11222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11223   (eval $ac_try) 2>&5
11224   ac_status=$?
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); }; } &&
11227          { ac_try='test -s conftest$ac_exeext'
11228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229   (eval $ac_try) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); }; }; then
11233   ac_cv_lib_m_finite=yes
11234 else
11235   echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11237
11238 ac_cv_lib_m_finite=no
11239 fi
11240 rm -f conftest.err conftest.$ac_objext \
11241       conftest$ac_exeext conftest.$ac_ext
11242 LIBS=$ac_check_lib_save_LIBS
11243 fi
11244 echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5
11245 echo "${ECHO_T}$ac_cv_lib_m_finite" >&6
11246 if test $ac_cv_lib_m_finite = yes; then
11247
11248 cat >>confdefs.h <<\_ACEOF
11249 #define HAVE_FINITE 1
11250 _ACEOF
11251
11252 fi
11253
11254
11255 # Let the user override this
11256 # Check whether --enable-cmath or --disable-cmath was given.
11257 if test "${enable_cmath+set}" = set; then
11258   enableval="$enable_cmath"
11259   need_math=$enableval
11260 fi;
11261 if test "$need_math" = "yes"; then
11262         { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
11263 echo "$as_me: Including complex math functions in libgfor" >&6;};
11264   extra_math_obj='$(gfor_cmath_obj)'
11265 fi
11266
11267 MATH_OBJ="$extra_math_obj"
11268
11269
11270 # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
11271 # for struct timezone, as you might think.  We also need to check how
11272 # to call gettimeofday if we have it.
11273 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11274 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11275 if test "${ac_cv_header_time+set}" = set; then
11276   echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278   cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h.  */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h.  */
11284 #include <sys/types.h>
11285 #include <sys/time.h>
11286 #include <time.h>
11287
11288 int
11289 main ()
11290 {
11291 if ((struct tm *) 0)
11292 return 0;
11293   ;
11294   return 0;
11295 }
11296 _ACEOF
11297 rm -f conftest.$ac_objext
11298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11299   (eval $ac_compile) 2>conftest.er1
11300   ac_status=$?
11301   grep -v '^ *+' conftest.er1 >conftest.err
11302   rm -f conftest.er1
11303   cat conftest.err >&5
11304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); } &&
11306          { ac_try='test -z "$ac_c_werror_flag"
11307                          || test ! -s conftest.err'
11308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309   (eval $ac_try) 2>&5
11310   ac_status=$?
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   (exit $ac_status); }; } &&
11313          { ac_try='test -s conftest.$ac_objext'
11314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315   (eval $ac_try) 2>&5
11316   ac_status=$?
11317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318   (exit $ac_status); }; }; then
11319   ac_cv_header_time=yes
11320 else
11321   echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11323
11324 ac_cv_header_time=no
11325 fi
11326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11327 fi
11328 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11329 echo "${ECHO_T}$ac_cv_header_time" >&6
11330 if test $ac_cv_header_time = yes; then
11331
11332 cat >>confdefs.h <<\_ACEOF
11333 #define TIME_WITH_SYS_TIME 1
11334 _ACEOF
11335
11336 fi
11337
11338
11339
11340 for ac_func in gettimeofday
11341 do
11342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11343 echo "$as_me:$LINENO: checking for $ac_func" >&5
11344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11345 if eval "test \"\${$as_ac_var+set}\" = set"; then
11346   echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348   if test x$gcc_no_link = xyes; then
11349   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11350 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11351    { (exit 1); exit 1; }; }
11352 fi
11353 cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h.  */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h.  */
11359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11361 #define $ac_func innocuous_$ac_func
11362
11363 /* System header to define __stub macros and hopefully few prototypes,
11364     which can conflict with char $ac_func (); below.
11365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11366     <limits.h> exists even on freestanding compilers.  */
11367
11368 #ifdef __STDC__
11369 # include <limits.h>
11370 #else
11371 # include <assert.h>
11372 #endif
11373
11374 #undef $ac_func
11375
11376 /* Override any gcc2 internal prototype to avoid an error.  */
11377 #ifdef __cplusplus
11378 extern "C"
11379 {
11380 #endif
11381 /* We use char because int might match the return type of a gcc2
11382    builtin and then its argument prototype would still apply.  */
11383 char $ac_func ();
11384 /* The GNU C library defines this for functions which it implements
11385     to always fail with ENOSYS.  Some functions are actually named
11386     something starting with __ and the normal name is an alias.  */
11387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11388 choke me
11389 #else
11390 char (*f) () = $ac_func;
11391 #endif
11392 #ifdef __cplusplus
11393 }
11394 #endif
11395
11396 int
11397 main ()
11398 {
11399 return f != $ac_func;
11400   ;
11401   return 0;
11402 }
11403 _ACEOF
11404 rm -f conftest.$ac_objext conftest$ac_exeext
11405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11406   (eval $ac_link) 2>conftest.er1
11407   ac_status=$?
11408   grep -v '^ *+' conftest.er1 >conftest.err
11409   rm -f conftest.er1
11410   cat conftest.err >&5
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); } &&
11413          { ac_try='test -z "$ac_c_werror_flag"
11414                          || test ! -s conftest.err'
11415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416   (eval $ac_try) 2>&5
11417   ac_status=$?
11418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419   (exit $ac_status); }; } &&
11420          { ac_try='test -s conftest$ac_exeext'
11421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422   (eval $ac_try) 2>&5
11423   ac_status=$?
11424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); }; }; then
11426   eval "$as_ac_var=yes"
11427 else
11428   echo "$as_me: failed program was:" >&5
11429 sed 's/^/| /' conftest.$ac_ext >&5
11430
11431 eval "$as_ac_var=no"
11432 fi
11433 rm -f conftest.err conftest.$ac_objext \
11434       conftest$ac_exeext conftest.$ac_ext
11435 fi
11436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11437 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11438 if test `eval echo '${'$as_ac_var'}'` = yes; then
11439   cat >>confdefs.h <<_ACEOF
11440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11441 _ACEOF
11442
11443 fi
11444 done
11445
11446   if test "$ac_cv_func_gettimeofday" = yes; then
11447     echo "$as_me:$LINENO: checking for struct timezone" >&5
11448 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11449 if test "${gfor_cv_struct_timezone+set}" = set; then
11450   echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452   cat >conftest.$ac_ext <<_ACEOF
11453 /* confdefs.h.  */
11454 _ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h.  */
11458 #include <sys/time.h>
11459 int
11460 main ()
11461 {
11462 struct timezone tz;
11463   ;
11464   return 0;
11465 }
11466 _ACEOF
11467 rm -f conftest.$ac_objext
11468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11469   (eval $ac_compile) 2>conftest.er1
11470   ac_status=$?
11471   grep -v '^ *+' conftest.er1 >conftest.err
11472   rm -f conftest.er1
11473   cat conftest.err >&5
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); } &&
11476          { ac_try='test -z "$ac_c_werror_flag"
11477                          || test ! -s conftest.err'
11478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479   (eval $ac_try) 2>&5
11480   ac_status=$?
11481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482   (exit $ac_status); }; } &&
11483          { ac_try='test -s conftest.$ac_objext'
11484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485   (eval $ac_try) 2>&5
11486   ac_status=$?
11487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); }; }; then
11489   gfor_cv_struct_timezone=yes
11490 else
11491   echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11493
11494 gfor_cv_struct_timezone=no
11495 fi
11496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11497 fi
11498 echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
11499 echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
11500     if test $gfor_cv_struct_timezone = yes; then
11501                   if test "$cross_compiling" = yes; then
11502   gfor_have_struct_timezone=yes
11503 else
11504   cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h.  */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h.  */
11510
11511 #ifdef TIME_WITH_SYS_TIME
11512 #include <sys/time.h>
11513 #include <time.h>
11514 #else
11515 #ifdef HAVE_SYS_TIME_H
11516 #include <sys/time.h>
11517 #else
11518 #include <time.h>
11519 #endif
11520 #endif
11521 main ()
11522 {
11523   struct timeval time;
11524   struct timezone dummy;
11525   if (gettimeofday (&time, &dummy))
11526     exit (1);
11527   else
11528     exit (0);
11529 }
11530 _ACEOF
11531 rm -f conftest$ac_exeext
11532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11533   (eval $ac_link) 2>&5
11534   ac_status=$?
11535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538   (eval $ac_try) 2>&5
11539   ac_status=$?
11540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541   (exit $ac_status); }; }; then
11542   gfor_have_struct_timezone=yes
11543 else
11544   echo "$as_me: program exited with status $ac_status" >&5
11545 echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11547
11548 ( exit $ac_status )
11549 gfor_have_struct_timezone=no
11550 fi
11551 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11552 fi
11553       if test $gfor_have_struct_timezone = yes; then
11554
11555 cat >>confdefs.h <<\_ACEOF
11556 #define HAVE_TIMEZONE 1
11557 _ACEOF
11558
11559       fi
11560     fi
11561
11562     echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
11563 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11564 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11565   echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567   if test x$gcc_no_link = xyes; then
11568   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11569 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11570    { (exit 1); exit 1; }; }
11571 fi
11572 cat >conftest.$ac_ext <<_ACEOF
11573 /* confdefs.h.  */
11574 _ACEOF
11575 cat confdefs.h >>conftest.$ac_ext
11576 cat >>conftest.$ac_ext <<_ACEOF
11577 /* end confdefs.h.  */
11578
11579 #ifdef TIME_WITH_SYS_TIME
11580 #include <sys/time.h>
11581 #include <time.h>
11582 #else
11583 #ifdef HAVE_SYS_TIME_H
11584 #include <sys/time.h>
11585 #else
11586 #include <time.h>
11587 #endif
11588 #endif
11589
11590 int
11591 main ()
11592 {
11593
11594       struct timeval time;
11595 #ifdef HAVE_TIMEZONE
11596       struct timezone dummy;
11597 #define DUMMY &dummy
11598 #else
11599 #define DUMMY NULL
11600 #endif
11601       gettimeofday (&time, DUMMY);
11602   ;
11603   return 0;
11604 }
11605 _ACEOF
11606 rm -f conftest.$ac_objext conftest$ac_exeext
11607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11608   (eval $ac_link) 2>conftest.er1
11609   ac_status=$?
11610   grep -v '^ *+' conftest.er1 >conftest.err
11611   rm -f conftest.er1
11612   cat conftest.err >&5
11613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614   (exit $ac_status); } &&
11615          { ac_try='test -z "$ac_c_werror_flag"
11616                          || test ! -s conftest.err'
11617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618   (eval $ac_try) 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); }; } &&
11622          { ac_try='test -s conftest$ac_exeext'
11623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624   (eval $ac_try) 2>&5
11625   ac_status=$?
11626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627   (exit $ac_status); }; }; then
11628   emacs_cv_gettimeofday_two_arguments=yes
11629 else
11630   echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11632
11633 emacs_cv_gettimeofday_two_arguments=no
11634 fi
11635 rm -f conftest.err conftest.$ac_objext \
11636       conftest$ac_exeext conftest.$ac_ext
11637 fi
11638 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
11639 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11640     if test $emacs_cv_gettimeofday_two_arguments = no; then
11641
11642 cat >>confdefs.h <<\_ACEOF
11643 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11644 _ACEOF
11645
11646     fi
11647   fi
11648
11649 # Attempt to assert that the target is of common type in case we don't
11650 # have C99 integer types at all.
11651
11652   echo "$as_me:$LINENO: checking whether the target is ILP32" >&5
11653 echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6
11654 if test "${target_ilp32+set}" = set; then
11655   echo $ECHO_N "(cached) $ECHO_C" >&6
11656 else
11657
11658   save_CFLAGS="$CFLAGS"
11659   CFLAGS="-O2"
11660   if test x$gcc_no_link = xyes; then
11661   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11662 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11663    { (exit 1); exit 1; }; }
11664 fi
11665 cat >conftest.$ac_ext <<_ACEOF
11666 /* confdefs.h.  */
11667 _ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h.  */
11671
11672 int
11673 main ()
11674 {
11675
11676 if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4)
11677   ;
11678 else
11679   undefined_function ();
11680
11681   ;
11682   return 0;
11683 }
11684 _ACEOF
11685 rm -f conftest.$ac_objext conftest$ac_exeext
11686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11687   (eval $ac_link) 2>conftest.er1
11688   ac_status=$?
11689   grep -v '^ *+' conftest.er1 >conftest.err
11690   rm -f conftest.er1
11691   cat conftest.err >&5
11692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693   (exit $ac_status); } &&
11694          { ac_try='test -z "$ac_c_werror_flag"
11695                          || test ! -s conftest.err'
11696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697   (eval $ac_try) 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); }; } &&
11701          { ac_try='test -s conftest$ac_exeext'
11702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703   (eval $ac_try) 2>&5
11704   ac_status=$?
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); }; }; then
11707   target_ilp32=yes
11708 else
11709   echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712 target_ilp32=no
11713 fi
11714 rm -f conftest.err conftest.$ac_objext \
11715       conftest$ac_exeext conftest.$ac_ext
11716   CFLAGS="$save_CFLAGS"
11717 fi
11718 echo "$as_me:$LINENO: result: $target_ilp32" >&5
11719 echo "${ECHO_T}$target_ilp32" >&6
11720   if test $target_ilp32 = yes; then
11721
11722 cat >>confdefs.h <<\_ACEOF
11723 #define TARGET_ILP32 1
11724 _ACEOF
11725
11726   fi
11727
11728
11729 # Check out attribute support.
11730
11731   echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
11732 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
11733 if test "${have_attribute_visibility+set}" = set; then
11734   echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736
11737   save_CFLAGS="$CFLAGS"
11738   CFLAGS="$CFLAGS -Werror"
11739   cat >conftest.$ac_ext <<_ACEOF
11740 /* confdefs.h.  */
11741 _ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h.  */
11745 void __attribute__((visibility("hidden"))) foo(void) { }
11746 int
11747 main ()
11748 {
11749
11750   ;
11751   return 0;
11752 }
11753 _ACEOF
11754 rm -f conftest.$ac_objext
11755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11756   (eval $ac_compile) 2>conftest.er1
11757   ac_status=$?
11758   grep -v '^ *+' conftest.er1 >conftest.err
11759   rm -f conftest.er1
11760   cat conftest.err >&5
11761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762   (exit $ac_status); } &&
11763          { ac_try='test -z "$ac_c_werror_flag"
11764                          || test ! -s conftest.err'
11765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766   (eval $ac_try) 2>&5
11767   ac_status=$?
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); }; } &&
11770          { ac_try='test -s conftest.$ac_objext'
11771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772   (eval $ac_try) 2>&5
11773   ac_status=$?
11774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775   (exit $ac_status); }; }; then
11776   have_attribute_visibility=yes
11777 else
11778   echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11780
11781 have_attribute_visibility=no
11782 fi
11783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11784   CFLAGS="$save_CFLAGS"
11785 fi
11786 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
11787 echo "${ECHO_T}$have_attribute_visibility" >&6
11788   if test $have_attribute_visibility = yes; then
11789
11790 cat >>confdefs.h <<\_ACEOF
11791 #define HAVE_ATTRIBUTE_VISIBILITY 1
11792 _ACEOF
11793
11794   fi
11795
11796   echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
11797 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
11798 if test "${have_attribute_dllexport+set}" = set; then
11799   echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801
11802   save_CFLAGS="$CFLAGS"
11803   CFLAGS="$CFLAGS -Werror"
11804   cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810 void __attribute__((dllexport)) foo(void) { }
11811 int
11812 main ()
11813 {
11814
11815   ;
11816   return 0;
11817 }
11818 _ACEOF
11819 rm -f conftest.$ac_objext
11820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11821   (eval $ac_compile) 2>conftest.er1
11822   ac_status=$?
11823   grep -v '^ *+' conftest.er1 >conftest.err
11824   rm -f conftest.er1
11825   cat conftest.err >&5
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); } &&
11828          { ac_try='test -z "$ac_c_werror_flag"
11829                          || test ! -s conftest.err'
11830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831   (eval $ac_try) 2>&5
11832   ac_status=$?
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); }; } &&
11835          { ac_try='test -s conftest.$ac_objext'
11836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837   (eval $ac_try) 2>&5
11838   ac_status=$?
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); }; }; then
11841   have_attribute_dllexport=yes
11842 else
11843   echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11845
11846 have_attribute_dllexport=no
11847 fi
11848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11849   CFLAGS="$save_CFLAGS"
11850 fi
11851 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
11852 echo "${ECHO_T}$have_attribute_dllexport" >&6
11853   if test $have_attribute_dllexport = yes; then
11854
11855 cat >>confdefs.h <<\_ACEOF
11856 #define HAVE_ATTRIBUTE_DLLEXPORT 1
11857 _ACEOF
11858
11859   fi
11860
11861   echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
11862 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
11863 if test "${have_attribute_alias+set}" = set; then
11864   echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866
11867   if test x$gcc_no_link = xyes; then
11868   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11869 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11870    { (exit 1); exit 1; }; }
11871 fi
11872 cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h.  */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h.  */
11878
11879 #define ULP     STR1(__USER_LABEL_PREFIX__)
11880 #define STR1(x) STR2(x)
11881 #define STR2(x) #x
11882 void foo(void) { }
11883 extern void bar(void) __attribute__((alias(ULP "foo")));
11884 int
11885 main ()
11886 {
11887 bar();
11888   ;
11889   return 0;
11890 }
11891 _ACEOF
11892 rm -f conftest.$ac_objext conftest$ac_exeext
11893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11894   (eval $ac_link) 2>conftest.er1
11895   ac_status=$?
11896   grep -v '^ *+' conftest.er1 >conftest.err
11897   rm -f conftest.er1
11898   cat conftest.err >&5
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); } &&
11901          { ac_try='test -z "$ac_c_werror_flag"
11902                          || test ! -s conftest.err'
11903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904   (eval $ac_try) 2>&5
11905   ac_status=$?
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); }; } &&
11908          { ac_try='test -s conftest$ac_exeext'
11909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910   (eval $ac_try) 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); }; }; then
11914   have_attribute_alias=yes
11915 else
11916   echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11918
11919 have_attribute_alias=no
11920 fi
11921 rm -f conftest.err conftest.$ac_objext \
11922       conftest$ac_exeext conftest.$ac_ext
11923 fi
11924 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
11925 echo "${ECHO_T}$have_attribute_alias" >&6
11926   if test $have_attribute_alias = yes; then
11927
11928 cat >>confdefs.h <<\_ACEOF
11929 #define HAVE_ATTRIBUTE_ALIAS 1
11930 _ACEOF
11931
11932   fi
11933
11934 cat >confcache <<\_ACEOF
11935 # This file is a shell script that caches the results of configure
11936 # tests run on this system so they can be shared between configure
11937 # scripts and configure runs, see configure's option --config-cache.
11938 # It is not useful on other systems.  If it contains results you don't
11939 # want to keep, you may remove or edit it.
11940 #
11941 # config.status only pays attention to the cache file if you give it
11942 # the --recheck option to rerun configure.
11943 #
11944 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11945 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11946 # following values.
11947
11948 _ACEOF
11949
11950 # The following way of writing the cache mishandles newlines in values,
11951 # but we know of no workaround that is simple, portable, and efficient.
11952 # So, don't put newlines in cache variables' values.
11953 # Ultrix sh set writes to stderr and can't be redirected directly,
11954 # and sets the high bit in the cache file unless we assign to the vars.
11955 {
11956   (set) 2>&1 |
11957     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11958     *ac_space=\ *)
11959       # `set' does not quote correctly, so add quotes (double-quote
11960       # substitution turns \\\\ into \\, and sed turns \\ into \).
11961       sed -n \
11962         "s/'/'\\\\''/g;
11963           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11964       ;;
11965     *)
11966       # `set' quotes correctly as required by POSIX, so do not add quotes.
11967       sed -n \
11968         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11969       ;;
11970     esac;
11971 } |
11972   sed '
11973      t clear
11974      : clear
11975      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11976      t end
11977      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11978      : end' >>confcache
11979 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11980   if test -w $cache_file; then
11981     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11982     cat confcache >$cache_file
11983   else
11984     echo "not updating unwritable cache $cache_file"
11985   fi
11986 fi
11987 rm -f confcache
11988
11989 if test ${multilib} = yes; then
11990   multilib_arg="--enable-multilib"
11991 else
11992   multilib_arg=
11993 fi
11994
11995 # Write our Makefile.
11996           ac_config_files="$ac_config_files Makefile"
11997
11998 cat >confcache <<\_ACEOF
11999 # This file is a shell script that caches the results of configure
12000 # tests run on this system so they can be shared between configure
12001 # scripts and configure runs, see configure's option --config-cache.
12002 # It is not useful on other systems.  If it contains results you don't
12003 # want to keep, you may remove or edit it.
12004 #
12005 # config.status only pays attention to the cache file if you give it
12006 # the --recheck option to rerun configure.
12007 #
12008 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12009 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12010 # following values.
12011
12012 _ACEOF
12013
12014 # The following way of writing the cache mishandles newlines in values,
12015 # but we know of no workaround that is simple, portable, and efficient.
12016 # So, don't put newlines in cache variables' values.
12017 # Ultrix sh set writes to stderr and can't be redirected directly,
12018 # and sets the high bit in the cache file unless we assign to the vars.
12019 {
12020   (set) 2>&1 |
12021     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12022     *ac_space=\ *)
12023       # `set' does not quote correctly, so add quotes (double-quote
12024       # substitution turns \\\\ into \\, and sed turns \\ into \).
12025       sed -n \
12026         "s/'/'\\\\''/g;
12027           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12028       ;;
12029     *)
12030       # `set' quotes correctly as required by POSIX, so do not add quotes.
12031       sed -n \
12032         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12033       ;;
12034     esac;
12035 } |
12036   sed '
12037      t clear
12038      : clear
12039      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12040      t end
12041      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12042      : end' >>confcache
12043 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12044   if test -w $cache_file; then
12045     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12046     cat confcache >$cache_file
12047   else
12048     echo "not updating unwritable cache $cache_file"
12049   fi
12050 fi
12051 rm -f confcache
12052
12053 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12054 # Let make expand exec_prefix.
12055 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12056
12057 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12058 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12059 # trailing colons and then remove the whole line if VPATH becomes empty
12060 # (actually we leave an empty line to preserve line numbers).
12061 if test "x$srcdir" = x.; then
12062   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12063 s/:*\$(srcdir):*/:/;
12064 s/:*\${srcdir}:*/:/;
12065 s/:*@srcdir@:*/:/;
12066 s/^\([^=]*=[     ]*\):*/\1/;
12067 s/:*$//;
12068 s/^[^=]*=[       ]*$//;
12069 }'
12070 fi
12071
12072 DEFS=-DHAVE_CONFIG_H
12073
12074 ac_libobjs=
12075 ac_ltlibobjs=
12076 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12077   # 1. Remove the extension, and $U if already installed.
12078   ac_i=`echo "$ac_i" |
12079          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12080   # 2. Add them.
12081   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12082   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12083 done
12084 LIBOBJS=$ac_libobjs
12085
12086 LTLIBOBJS=$ac_ltlibobjs
12087
12088
12089 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12090   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12091 Usually this means the macro was only invoked conditionally." >&5
12092 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12093 Usually this means the macro was only invoked conditionally." >&2;}
12094    { (exit 1); exit 1; }; }
12095 fi
12096
12097 : ${CONFIG_STATUS=./config.status}
12098 ac_clean_files_save=$ac_clean_files
12099 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12100 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12101 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12102 cat >$CONFIG_STATUS <<_ACEOF
12103 #! $SHELL
12104 # Generated by $as_me.
12105 # Run this file to recreate the current configuration.
12106 # Compiler output produced by configure, useful for debugging
12107 # configure, is in config.log if it exists.
12108
12109 debug=false
12110 ac_cs_recheck=false
12111 ac_cs_silent=false
12112 SHELL=\${CONFIG_SHELL-$SHELL}
12113 _ACEOF
12114
12115 cat >>$CONFIG_STATUS <<\_ACEOF
12116 ## --------------------- ##
12117 ## M4sh Initialization.  ##
12118 ## --------------------- ##
12119
12120 # Be Bourne compatible
12121 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12122   emulate sh
12123   NULLCMD=:
12124   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12125   # is contrary to our usage.  Disable this feature.
12126   alias -g '${1+"$@"}'='"$@"'
12127 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12128   set -o posix
12129 fi
12130 DUALCASE=1; export DUALCASE # for MKS sh
12131
12132 # Support unset when possible.
12133 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12134   as_unset=unset
12135 else
12136   as_unset=false
12137 fi
12138
12139
12140 # Work around bugs in pre-3.0 UWIN ksh.
12141 $as_unset ENV MAIL MAILPATH
12142 PS1='$ '
12143 PS2='> '
12144 PS4='+ '
12145
12146 # NLS nuisances.
12147 for as_var in \
12148   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12149   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12150   LC_TELEPHONE LC_TIME
12151 do
12152   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12153     eval $as_var=C; export $as_var
12154   else
12155     $as_unset $as_var
12156   fi
12157 done
12158
12159 # Required to use basename.
12160 if expr a : '\(a\)' >/dev/null 2>&1; then
12161   as_expr=expr
12162 else
12163   as_expr=false
12164 fi
12165
12166 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12167   as_basename=basename
12168 else
12169   as_basename=false
12170 fi
12171
12172
12173 # Name of the executable.
12174 as_me=`$as_basename "$0" ||
12175 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12176          X"$0" : 'X\(//\)$' \| \
12177          X"$0" : 'X\(/\)$' \| \
12178          .     : '\(.\)' 2>/dev/null ||
12179 echo X/"$0" |
12180     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12181           /^X\/\(\/\/\)$/{ s//\1/; q; }
12182           /^X\/\(\/\).*/{ s//\1/; q; }
12183           s/.*/./; q'`
12184
12185
12186 # PATH needs CR, and LINENO needs CR and PATH.
12187 # Avoid depending upon Character Ranges.
12188 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12189 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12190 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12191 as_cr_digits='0123456789'
12192 as_cr_alnum=$as_cr_Letters$as_cr_digits
12193
12194 # The user is always right.
12195 if test "${PATH_SEPARATOR+set}" != set; then
12196   echo "#! /bin/sh" >conf$$.sh
12197   echo  "exit 0"   >>conf$$.sh
12198   chmod +x conf$$.sh
12199   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12200     PATH_SEPARATOR=';'
12201   else
12202     PATH_SEPARATOR=:
12203   fi
12204   rm -f conf$$.sh
12205 fi
12206
12207
12208   as_lineno_1=$LINENO
12209   as_lineno_2=$LINENO
12210   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12211   test "x$as_lineno_1" != "x$as_lineno_2" &&
12212   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12213   # Find who we are.  Look in the path if we contain no path at all
12214   # relative or not.
12215   case $0 in
12216     *[\\/]* ) as_myself=$0 ;;
12217     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218 for as_dir in $PATH
12219 do
12220   IFS=$as_save_IFS
12221   test -z "$as_dir" && as_dir=.
12222   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12223 done
12224
12225        ;;
12226   esac
12227   # We did not find ourselves, most probably we were run as `sh COMMAND'
12228   # in which case we are not to be found in the path.
12229   if test "x$as_myself" = x; then
12230     as_myself=$0
12231   fi
12232   if test ! -f "$as_myself"; then
12233     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12234 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12235    { (exit 1); exit 1; }; }
12236   fi
12237   case $CONFIG_SHELL in
12238   '')
12239     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12241 do
12242   IFS=$as_save_IFS
12243   test -z "$as_dir" && as_dir=.
12244   for as_base in sh bash ksh sh5; do
12245          case $as_dir in
12246          /*)
12247            if ("$as_dir/$as_base" -c '
12248   as_lineno_1=$LINENO
12249   as_lineno_2=$LINENO
12250   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12251   test "x$as_lineno_1" != "x$as_lineno_2" &&
12252   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12253              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12254              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12255              CONFIG_SHELL=$as_dir/$as_base
12256              export CONFIG_SHELL
12257              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12258            fi;;
12259          esac
12260        done
12261 done
12262 ;;
12263   esac
12264
12265   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12266   # uniformly replaced by the line number.  The first 'sed' inserts a
12267   # line-number line before each line; the second 'sed' does the real
12268   # work.  The second script uses 'N' to pair each line-number line
12269   # with the numbered line, and appends trailing '-' during
12270   # substitution so that $LINENO is not a special case at line end.
12271   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12272   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12273   sed '=' <$as_myself |
12274     sed '
12275       N
12276       s,$,-,
12277       : loop
12278       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12279       t loop
12280       s,-$,,
12281       s,^['$as_cr_digits']*\n,,
12282     ' >$as_me.lineno &&
12283   chmod +x $as_me.lineno ||
12284     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12285 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12286    { (exit 1); exit 1; }; }
12287
12288   # Don't try to exec as it changes $[0], causing all sort of problems
12289   # (the dirname of $[0] is not the place where we might find the
12290   # original and so on.  Autoconf is especially sensible to this).
12291   . ./$as_me.lineno
12292   # Exit status is that of the last command.
12293   exit
12294 }
12295
12296
12297 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12298   *c*,-n*) ECHO_N= ECHO_C='
12299 ' ECHO_T='      ' ;;
12300   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12301   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12302 esac
12303
12304 if expr a : '\(a\)' >/dev/null 2>&1; then
12305   as_expr=expr
12306 else
12307   as_expr=false
12308 fi
12309
12310 rm -f conf$$ conf$$.exe conf$$.file
12311 echo >conf$$.file
12312 if ln -s conf$$.file conf$$ 2>/dev/null; then
12313   # We could just check for DJGPP; but this test a) works b) is more generic
12314   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12315   if test -f conf$$.exe; then
12316     # Don't use ln at all; we don't have any links
12317     as_ln_s='cp -p'
12318   else
12319     as_ln_s='ln -s'
12320   fi
12321 elif ln conf$$.file conf$$ 2>/dev/null; then
12322   as_ln_s=ln
12323 else
12324   as_ln_s='cp -p'
12325 fi
12326 rm -f conf$$ conf$$.exe conf$$.file
12327
12328 if mkdir -p . 2>/dev/null; then
12329   as_mkdir_p=:
12330 else
12331   test -d ./-p && rmdir ./-p
12332   as_mkdir_p=false
12333 fi
12334
12335 as_executable_p="test -f"
12336
12337 # Sed expression to map a string onto a valid CPP name.
12338 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12339
12340 # Sed expression to map a string onto a valid variable name.
12341 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12342
12343
12344 # IFS
12345 # We need space, tab and new line, in precisely that order.
12346 as_nl='
12347 '
12348 IFS="   $as_nl"
12349
12350 # CDPATH.
12351 $as_unset CDPATH
12352
12353 exec 6>&1
12354
12355 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12356 # report actual input values of CONFIG_FILES etc. instead of their
12357 # values after options handling.  Logging --version etc. is OK.
12358 exec 5>>config.log
12359 {
12360   echo
12361   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12362 ## Running $as_me. ##
12363 _ASBOX
12364 } >&5
12365 cat >&5 <<_CSEOF
12366
12367 This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
12368 generated by GNU Autoconf 2.59.  Invocation command line was
12369
12370   CONFIG_FILES    = $CONFIG_FILES
12371   CONFIG_HEADERS  = $CONFIG_HEADERS
12372   CONFIG_LINKS    = $CONFIG_LINKS
12373   CONFIG_COMMANDS = $CONFIG_COMMANDS
12374   $ $0 $@
12375
12376 _CSEOF
12377 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12378 echo >&5
12379 _ACEOF
12380
12381 # Files that config.status was made for.
12382 if test -n "$ac_config_files"; then
12383   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12384 fi
12385
12386 if test -n "$ac_config_headers"; then
12387   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12388 fi
12389
12390 if test -n "$ac_config_links"; then
12391   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12392 fi
12393
12394 if test -n "$ac_config_commands"; then
12395   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12396 fi
12397
12398 cat >>$CONFIG_STATUS <<\_ACEOF
12399
12400 ac_cs_usage="\
12401 \`$as_me' instantiates files from templates according to the
12402 current configuration.
12403
12404 Usage: $0 [OPTIONS] [FILE]...
12405
12406   -h, --help       print this help, then exit
12407   -V, --version    print version number, then exit
12408   -q, --quiet      do not print progress messages
12409   -d, --debug      don't remove temporary files
12410       --recheck    update $as_me by reconfiguring in the same conditions
12411   --file=FILE[:TEMPLATE]
12412                    instantiate the configuration file FILE
12413   --header=FILE[:TEMPLATE]
12414                    instantiate the configuration header FILE
12415
12416 Configuration files:
12417 $config_files
12418
12419 Configuration headers:
12420 $config_headers
12421
12422 Configuration commands:
12423 $config_commands
12424
12425 Report bugs to <bug-autoconf@gnu.org>."
12426 _ACEOF
12427
12428 cat >>$CONFIG_STATUS <<_ACEOF
12429 ac_cs_version="\\
12430 GNU Fortran Runtime Library config.status 0.2
12431 configured by $0, generated by GNU Autoconf 2.59,
12432   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12433
12434 Copyright (C) 2003 Free Software Foundation, Inc.
12435 This config.status script is free software; the Free Software Foundation
12436 gives unlimited permission to copy, distribute and modify it."
12437 srcdir=$srcdir
12438 INSTALL="$INSTALL"
12439 _ACEOF
12440
12441 cat >>$CONFIG_STATUS <<\_ACEOF
12442 # If no file are specified by the user, then we need to provide default
12443 # value.  By we need to know if files were specified by the user.
12444 ac_need_defaults=:
12445 while test $# != 0
12446 do
12447   case $1 in
12448   --*=*)
12449     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12450     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12451     ac_shift=:
12452     ;;
12453   -*)
12454     ac_option=$1
12455     ac_optarg=$2
12456     ac_shift=shift
12457     ;;
12458   *) # This is not an option, so the user has probably given explicit
12459      # arguments.
12460      ac_option=$1
12461      ac_need_defaults=false;;
12462   esac
12463
12464   case $ac_option in
12465   # Handling of the options.
12466 _ACEOF
12467 cat >>$CONFIG_STATUS <<\_ACEOF
12468   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12469     ac_cs_recheck=: ;;
12470   --version | --vers* | -V )
12471     echo "$ac_cs_version"; exit 0 ;;
12472   --he | --h)
12473     # Conflict between --help and --header
12474     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12475 Try \`$0 --help' for more information." >&5
12476 echo "$as_me: error: ambiguous option: $1
12477 Try \`$0 --help' for more information." >&2;}
12478    { (exit 1); exit 1; }; };;
12479   --help | --hel | -h )
12480     echo "$ac_cs_usage"; exit 0 ;;
12481   --debug | --d* | -d )
12482     debug=: ;;
12483   --file | --fil | --fi | --f )
12484     $ac_shift
12485     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12486     ac_need_defaults=false;;
12487   --header | --heade | --head | --hea )
12488     $ac_shift
12489     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12490     ac_need_defaults=false;;
12491   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12492   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12493     ac_cs_silent=: ;;
12494
12495   # This is an error.
12496   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12497 Try \`$0 --help' for more information." >&5
12498 echo "$as_me: error: unrecognized option: $1
12499 Try \`$0 --help' for more information." >&2;}
12500    { (exit 1); exit 1; }; } ;;
12501
12502   *) ac_config_targets="$ac_config_targets $1" ;;
12503
12504   esac
12505   shift
12506 done
12507
12508 ac_configure_extra_args=
12509
12510 if $ac_cs_silent; then
12511   exec 6>/dev/null
12512   ac_configure_extra_args="$ac_configure_extra_args --silent"
12513 fi
12514
12515 _ACEOF
12516 cat >>$CONFIG_STATUS <<_ACEOF
12517 if \$ac_cs_recheck; then
12518   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12519   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12520 fi
12521
12522 _ACEOF
12523
12524 cat >>$CONFIG_STATUS <<_ACEOF
12525 #
12526 # INIT-COMMANDS section.
12527 #
12528
12529
12530 srcdir="$srcdir"
12531 host="$host"
12532 target="$target"
12533 with_multisubdir="$with_multisubdir"
12534 with_multisrctop="$with_multisrctop"
12535 with_target_subdir="$with_target_subdir"
12536 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12537 multi_basedir="$multi_basedir"
12538 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12539 CC="$CC"
12540
12541 _ACEOF
12542
12543
12544
12545 cat >>$CONFIG_STATUS <<\_ACEOF
12546 for ac_config_target in $ac_config_targets
12547 do
12548   case "$ac_config_target" in
12549   # Handling of arguments.
12550   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12551   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12552   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12553   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12554 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12555    { (exit 1); exit 1; }; };;
12556   esac
12557 done
12558
12559 # If the user did not use the arguments to specify the items to instantiate,
12560 # then the envvar interface is used.  Set only those that are not.
12561 # We use the long form for the default assignment because of an extremely
12562 # bizarre bug on SunOS 4.1.3.
12563 if $ac_need_defaults; then
12564   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12565   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12566   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12567 fi
12568
12569 # Have a temporary directory for convenience.  Make it in the build tree
12570 # simply because there is no reason to put it here, and in addition,
12571 # creating and moving files from /tmp can sometimes cause problems.
12572 # Create a temporary directory, and hook for its removal unless debugging.
12573 $debug ||
12574 {
12575   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12576   trap '{ (exit 1); exit 1; }' 1 2 13 15
12577 }
12578
12579 # Create a (secure) tmp directory for tmp files.
12580
12581 {
12582   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12583   test -n "$tmp" && test -d "$tmp"
12584 }  ||
12585 {
12586   tmp=./confstat$$-$RANDOM
12587   (umask 077 && mkdir $tmp)
12588 } ||
12589 {
12590    echo "$me: cannot create a temporary directory in ." >&2
12591    { (exit 1); exit 1; }
12592 }
12593
12594 _ACEOF
12595
12596 cat >>$CONFIG_STATUS <<_ACEOF
12597
12598 #
12599 # CONFIG_FILES section.
12600 #
12601
12602 # No need to generate the scripts if there are no CONFIG_FILES.
12603 # This happens for instance when ./config.status config.h
12604 if test -n "\$CONFIG_FILES"; then
12605   # Protect against being on the right side of a sed subst in config.status.
12606   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12607    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12608 s,@SHELL@,$SHELL,;t t
12609 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12610 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12611 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12612 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12613 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12614 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12615 s,@exec_prefix@,$exec_prefix,;t t
12616 s,@prefix@,$prefix,;t t
12617 s,@program_transform_name@,$program_transform_name,;t t
12618 s,@bindir@,$bindir,;t t
12619 s,@sbindir@,$sbindir,;t t
12620 s,@libexecdir@,$libexecdir,;t t
12621 s,@datadir@,$datadir,;t t
12622 s,@sysconfdir@,$sysconfdir,;t t
12623 s,@sharedstatedir@,$sharedstatedir,;t t
12624 s,@localstatedir@,$localstatedir,;t t
12625 s,@libdir@,$libdir,;t t
12626 s,@includedir@,$includedir,;t t
12627 s,@oldincludedir@,$oldincludedir,;t t
12628 s,@infodir@,$infodir,;t t
12629 s,@mandir@,$mandir,;t t
12630 s,@build_alias@,$build_alias,;t t
12631 s,@host_alias@,$host_alias,;t t
12632 s,@target_alias@,$target_alias,;t t
12633 s,@DEFS@,$DEFS,;t t
12634 s,@ECHO_C@,$ECHO_C,;t t
12635 s,@ECHO_N@,$ECHO_N,;t t
12636 s,@ECHO_T@,$ECHO_T,;t t
12637 s,@LIBS@,$LIBS,;t t
12638 s,@build@,$build,;t t
12639 s,@build_cpu@,$build_cpu,;t t
12640 s,@build_vendor@,$build_vendor,;t t
12641 s,@build_os@,$build_os,;t t
12642 s,@host@,$host,;t t
12643 s,@host_cpu@,$host_cpu,;t t
12644 s,@host_vendor@,$host_vendor,;t t
12645 s,@host_os@,$host_os,;t t
12646 s,@target@,$target,;t t
12647 s,@target_cpu@,$target_cpu,;t t
12648 s,@target_vendor@,$target_vendor,;t t
12649 s,@target_os@,$target_os,;t t
12650 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12651 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12652 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12653 s,@CYGPATH_W@,$CYGPATH_W,;t t
12654 s,@PACKAGE@,$PACKAGE,;t t
12655 s,@VERSION@,$VERSION,;t t
12656 s,@ACLOCAL@,$ACLOCAL,;t t
12657 s,@AUTOCONF@,$AUTOCONF,;t t
12658 s,@AUTOMAKE@,$AUTOMAKE,;t t
12659 s,@AUTOHEADER@,$AUTOHEADER,;t t
12660 s,@MAKEINFO@,$MAKEINFO,;t t
12661 s,@install_sh@,$install_sh,;t t
12662 s,@STRIP@,$STRIP,;t t
12663 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12664 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12665 s,@mkdir_p@,$mkdir_p,;t t
12666 s,@AWK@,$AWK,;t t
12667 s,@SET_MAKE@,$SET_MAKE,;t t
12668 s,@am__leading_dot@,$am__leading_dot,;t t
12669 s,@AMTAR@,$AMTAR,;t t
12670 s,@am__tar@,$am__tar,;t t
12671 s,@am__untar@,$am__untar,;t t
12672 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12673 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12674 s,@MAINT@,$MAINT,;t t
12675 s,@multi_basedir@,$multi_basedir,;t t
12676 s,@toolexecdir@,$toolexecdir,;t t
12677 s,@toolexeclibdir@,$toolexeclibdir,;t t
12678 s,@CC@,$CC,;t t
12679 s,@ac_ct_CC@,$ac_ct_CC,;t t
12680 s,@EXEEXT@,$EXEEXT,;t t
12681 s,@OBJEXT@,$OBJEXT,;t t
12682 s,@AM_FCFLAGS@,$AM_FCFLAGS,;t t
12683 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
12684 s,@AS@,$AS,;t t
12685 s,@ac_ct_AS@,$ac_ct_AS,;t t
12686 s,@AR@,$AR,;t t
12687 s,@ac_ct_AR@,$ac_ct_AR,;t t
12688 s,@RANLIB@,$RANLIB,;t t
12689 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12690 s,@LN_S@,$LN_S,;t t
12691 s,@LIBTOOL@,$LIBTOOL,;t t
12692 s,@enable_shared@,$enable_shared,;t t
12693 s,@enable_static@,$enable_static,;t t
12694 s,@FC@,$FC,;t t
12695 s,@FCFLAGS@,$FCFLAGS,;t t
12696 s,@LDFLAGS@,$LDFLAGS,;t t
12697 s,@ac_ct_FC@,$ac_ct_FC,;t t
12698 s,@extra_ldflags_libgfortran@,$extra_ldflags_libgfortran,;t t
12699 s,@CPP@,$CPP,;t t
12700 s,@CPPFLAGS@,$CPPFLAGS,;t t
12701 s,@EGREP@,$EGREP,;t t
12702 s,@MATH_OBJ@,$MATH_OBJ,;t t
12703 s,@LIBOBJS@,$LIBOBJS,;t t
12704 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12705 CEOF
12706
12707 _ACEOF
12708
12709   cat >>$CONFIG_STATUS <<\_ACEOF
12710   # Split the substitutions into bite-sized pieces for seds with
12711   # small command number limits, like on Digital OSF/1 and HP-UX.
12712   ac_max_sed_lines=48
12713   ac_sed_frag=1 # Number of current file.
12714   ac_beg=1 # First line for current file.
12715   ac_end=$ac_max_sed_lines # Line after last line for current file.
12716   ac_more_lines=:
12717   ac_sed_cmds=
12718   while $ac_more_lines; do
12719     if test $ac_beg -gt 1; then
12720       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12721     else
12722       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12723     fi
12724     if test ! -s $tmp/subs.frag; then
12725       ac_more_lines=false
12726     else
12727       # The purpose of the label and of the branching condition is to
12728       # speed up the sed processing (if there are no `@' at all, there
12729       # is no need to browse any of the substitutions).
12730       # These are the two extra sed commands mentioned above.
12731       (echo ':t
12732   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12733       if test -z "$ac_sed_cmds"; then
12734         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12735       else
12736         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12737       fi
12738       ac_sed_frag=`expr $ac_sed_frag + 1`
12739       ac_beg=$ac_end
12740       ac_end=`expr $ac_end + $ac_max_sed_lines`
12741     fi
12742   done
12743   if test -z "$ac_sed_cmds"; then
12744     ac_sed_cmds=cat
12745   fi
12746 fi # test -n "$CONFIG_FILES"
12747
12748 _ACEOF
12749 cat >>$CONFIG_STATUS <<\_ACEOF
12750 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12751   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12752   case $ac_file in
12753   - | *:- | *:-:* ) # input from stdin
12754         cat >$tmp/stdin
12755         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12756         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12757   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12758         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12759   * )   ac_file_in=$ac_file.in ;;
12760   esac
12761
12762   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12763   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12764 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12765          X"$ac_file" : 'X\(//\)[^/]' \| \
12766          X"$ac_file" : 'X\(//\)$' \| \
12767          X"$ac_file" : 'X\(/\)' \| \
12768          .     : '\(.\)' 2>/dev/null ||
12769 echo X"$ac_file" |
12770     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12771           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12772           /^X\(\/\/\)$/{ s//\1/; q; }
12773           /^X\(\/\).*/{ s//\1/; q; }
12774           s/.*/./; q'`
12775   { if $as_mkdir_p; then
12776     mkdir -p "$ac_dir"
12777   else
12778     as_dir="$ac_dir"
12779     as_dirs=
12780     while test ! -d "$as_dir"; do
12781       as_dirs="$as_dir $as_dirs"
12782       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12783 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12784          X"$as_dir" : 'X\(//\)[^/]' \| \
12785          X"$as_dir" : 'X\(//\)$' \| \
12786          X"$as_dir" : 'X\(/\)' \| \
12787          .     : '\(.\)' 2>/dev/null ||
12788 echo X"$as_dir" |
12789     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12790           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12791           /^X\(\/\/\)$/{ s//\1/; q; }
12792           /^X\(\/\).*/{ s//\1/; q; }
12793           s/.*/./; q'`
12794     done
12795     test ! -n "$as_dirs" || mkdir $as_dirs
12796   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12797 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12798    { (exit 1); exit 1; }; }; }
12799
12800   ac_builddir=.
12801
12802 if test "$ac_dir" != .; then
12803   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12804   # A "../" for each directory in $ac_dir_suffix.
12805   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12806 else
12807   ac_dir_suffix= ac_top_builddir=
12808 fi
12809
12810 case $srcdir in
12811   .)  # No --srcdir option.  We are building in place.
12812     ac_srcdir=.
12813     if test -z "$ac_top_builddir"; then
12814        ac_top_srcdir=.
12815     else
12816        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12817     fi ;;
12818   [\\/]* | ?:[\\/]* )  # Absolute path.
12819     ac_srcdir=$srcdir$ac_dir_suffix;
12820     ac_top_srcdir=$srcdir ;;
12821   *) # Relative path.
12822     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12823     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12824 esac
12825
12826 # Do not use `cd foo && pwd` to compute absolute paths, because
12827 # the directories may not exist.
12828 case `pwd` in
12829 .) ac_abs_builddir="$ac_dir";;
12830 *)
12831   case "$ac_dir" in
12832   .) ac_abs_builddir=`pwd`;;
12833   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12834   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12835   esac;;
12836 esac
12837 case $ac_abs_builddir in
12838 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12839 *)
12840   case ${ac_top_builddir}. in
12841   .) ac_abs_top_builddir=$ac_abs_builddir;;
12842   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12843   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12844   esac;;
12845 esac
12846 case $ac_abs_builddir in
12847 .) ac_abs_srcdir=$ac_srcdir;;
12848 *)
12849   case $ac_srcdir in
12850   .) ac_abs_srcdir=$ac_abs_builddir;;
12851   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12852   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12853   esac;;
12854 esac
12855 case $ac_abs_builddir in
12856 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12857 *)
12858   case $ac_top_srcdir in
12859   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12860   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12861   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12862   esac;;
12863 esac
12864
12865
12866   case $INSTALL in
12867   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12868   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12869   esac
12870
12871   if test x"$ac_file" != x-; then
12872     { echo "$as_me:$LINENO: creating $ac_file" >&5
12873 echo "$as_me: creating $ac_file" >&6;}
12874     rm -f "$ac_file"
12875   fi
12876   # Let's still pretend it is `configure' which instantiates (i.e., don't
12877   # use $as_me), people would be surprised to read:
12878   #    /* config.h.  Generated by config.status.  */
12879   if test x"$ac_file" = x-; then
12880     configure_input=
12881   else
12882     configure_input="$ac_file.  "
12883   fi
12884   configure_input=$configure_input"Generated from `echo $ac_file_in |
12885                                      sed 's,.*/,,'` by configure."
12886
12887   # First look for the input files in the build tree, otherwise in the
12888   # src tree.
12889   ac_file_inputs=`IFS=:
12890     for f in $ac_file_in; do
12891       case $f in
12892       -) echo $tmp/stdin ;;
12893       [\\/$]*)
12894          # Absolute (can't be DOS-style, as IFS=:)
12895          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12896 echo "$as_me: error: cannot find input file: $f" >&2;}
12897    { (exit 1); exit 1; }; }
12898          echo "$f";;
12899       *) # Relative
12900          if test -f "$f"; then
12901            # Build tree
12902            echo "$f"
12903          elif test -f "$srcdir/$f"; then
12904            # Source tree
12905            echo "$srcdir/$f"
12906          else
12907            # /dev/null tree
12908            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12909 echo "$as_me: error: cannot find input file: $f" >&2;}
12910    { (exit 1); exit 1; }; }
12911          fi;;
12912       esac
12913     done` || { (exit 1); exit 1; }
12914 _ACEOF
12915 cat >>$CONFIG_STATUS <<_ACEOF
12916   sed "$ac_vpsub
12917 $extrasub
12918 _ACEOF
12919 cat >>$CONFIG_STATUS <<\_ACEOF
12920 :t
12921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12922 s,@configure_input@,$configure_input,;t t
12923 s,@srcdir@,$ac_srcdir,;t t
12924 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12925 s,@top_srcdir@,$ac_top_srcdir,;t t
12926 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12927 s,@builddir@,$ac_builddir,;t t
12928 s,@abs_builddir@,$ac_abs_builddir,;t t
12929 s,@top_builddir@,$ac_top_builddir,;t t
12930 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12931 s,@INSTALL@,$ac_INSTALL,;t t
12932 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12933   rm -f $tmp/stdin
12934   if test x"$ac_file" != x-; then
12935     mv $tmp/out $ac_file
12936   else
12937     cat $tmp/out
12938     rm -f $tmp/out
12939   fi
12940
12941 done
12942 _ACEOF
12943 cat >>$CONFIG_STATUS <<\_ACEOF
12944
12945 #
12946 # CONFIG_HEADER section.
12947 #
12948
12949 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12950 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12951 #
12952 # ac_d sets the value in "#define NAME VALUE" lines.
12953 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12954 ac_dB='[         ].*$,\1#\2'
12955 ac_dC=' '
12956 ac_dD=',;t'
12957 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12958 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12959 ac_uB='$,\1#\2define\3'
12960 ac_uC=' '
12961 ac_uD=',;t'
12962
12963 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12964   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12965   case $ac_file in
12966   - | *:- | *:-:* ) # input from stdin
12967         cat >$tmp/stdin
12968         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12969         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12970   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12971         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12972   * )   ac_file_in=$ac_file.in ;;
12973   esac
12974
12975   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12976 echo "$as_me: creating $ac_file" >&6;}
12977
12978   # First look for the input files in the build tree, otherwise in the
12979   # src tree.
12980   ac_file_inputs=`IFS=:
12981     for f in $ac_file_in; do
12982       case $f in
12983       -) echo $tmp/stdin ;;
12984       [\\/$]*)
12985          # Absolute (can't be DOS-style, as IFS=:)
12986          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12987 echo "$as_me: error: cannot find input file: $f" >&2;}
12988    { (exit 1); exit 1; }; }
12989          # Do quote $f, to prevent DOS paths from being IFS'd.
12990          echo "$f";;
12991       *) # Relative
12992          if test -f "$f"; then
12993            # Build tree
12994            echo "$f"
12995          elif test -f "$srcdir/$f"; then
12996            # Source tree
12997            echo "$srcdir/$f"
12998          else
12999            # /dev/null tree
13000            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13001 echo "$as_me: error: cannot find input file: $f" >&2;}
13002    { (exit 1); exit 1; }; }
13003          fi;;
13004       esac
13005     done` || { (exit 1); exit 1; }
13006   # Remove the trailing spaces.
13007   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13008
13009 _ACEOF
13010
13011 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13012 # `conftest.undefs', that substitutes the proper values into
13013 # config.h.in to produce config.h.  The first handles `#define'
13014 # templates, and the second `#undef' templates.
13015 # And first: Protect against being on the right side of a sed subst in
13016 # config.status.  Protect against being in an unquoted here document
13017 # in config.status.
13018 rm -f conftest.defines conftest.undefs
13019 # Using a here document instead of a string reduces the quoting nightmare.
13020 # Putting comments in sed scripts is not portable.
13021 #
13022 # `end' is used to avoid that the second main sed command (meant for
13023 # 0-ary CPP macros) applies to n-ary macro definitions.
13024 # See the Autoconf documentation for `clear'.
13025 cat >confdef2sed.sed <<\_ACEOF
13026 s/[\\&,]/\\&/g
13027 s,[\\$`],\\&,g
13028 t clear
13029 : clear
13030 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13031 t end
13032 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13033 : end
13034 _ACEOF
13035 # If some macros were called several times there might be several times
13036 # the same #defines, which is useless.  Nevertheless, we may not want to
13037 # sort them, since we want the *last* AC-DEFINE to be honored.
13038 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13039 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13040 rm -f confdef2sed.sed
13041
13042 # This sed command replaces #undef with comments.  This is necessary, for
13043 # example, in the case of _POSIX_SOURCE, which is predefined and required
13044 # on some systems where configure will not decide to define it.
13045 cat >>conftest.undefs <<\_ACEOF
13046 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13047 _ACEOF
13048
13049 # Break up conftest.defines because some shells have a limit on the size
13050 # of here documents, and old seds have small limits too (100 cmds).
13051 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13052 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13053 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13054 echo '  :' >>$CONFIG_STATUS
13055 rm -f conftest.tail
13056 while grep . conftest.defines >/dev/null
13057 do
13058   # Write a limited-size here document to $tmp/defines.sed.
13059   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13060   # Speed up: don't consider the non `#define' lines.
13061   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13062   # Work around the forget-to-reset-the-flag bug.
13063   echo 't clr' >>$CONFIG_STATUS
13064   echo ': clr' >>$CONFIG_STATUS
13065   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13066   echo 'CEOF
13067   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13068   rm -f $tmp/in
13069   mv $tmp/out $tmp/in
13070 ' >>$CONFIG_STATUS
13071   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13072   rm -f conftest.defines
13073   mv conftest.tail conftest.defines
13074 done
13075 rm -f conftest.defines
13076 echo '  fi # grep' >>$CONFIG_STATUS
13077 echo >>$CONFIG_STATUS
13078
13079 # Break up conftest.undefs because some shells have a limit on the size
13080 # of here documents, and old seds have small limits too (100 cmds).
13081 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13082 rm -f conftest.tail
13083 while grep . conftest.undefs >/dev/null
13084 do
13085   # Write a limited-size here document to $tmp/undefs.sed.
13086   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13087   # Speed up: don't consider the non `#undef'
13088   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13089   # Work around the forget-to-reset-the-flag bug.
13090   echo 't clr' >>$CONFIG_STATUS
13091   echo ': clr' >>$CONFIG_STATUS
13092   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13093   echo 'CEOF
13094   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13095   rm -f $tmp/in
13096   mv $tmp/out $tmp/in
13097 ' >>$CONFIG_STATUS
13098   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13099   rm -f conftest.undefs
13100   mv conftest.tail conftest.undefs
13101 done
13102 rm -f conftest.undefs
13103
13104 cat >>$CONFIG_STATUS <<\_ACEOF
13105   # Let's still pretend it is `configure' which instantiates (i.e., don't
13106   # use $as_me), people would be surprised to read:
13107   #    /* config.h.  Generated by config.status.  */
13108   if test x"$ac_file" = x-; then
13109     echo "/* Generated by configure.  */" >$tmp/config.h
13110   else
13111     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13112   fi
13113   cat $tmp/in >>$tmp/config.h
13114   rm -f $tmp/in
13115   if test x"$ac_file" != x-; then
13116     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13117       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13118 echo "$as_me: $ac_file is unchanged" >&6;}
13119     else
13120       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13121 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13122          X"$ac_file" : 'X\(//\)[^/]' \| \
13123          X"$ac_file" : 'X\(//\)$' \| \
13124          X"$ac_file" : 'X\(/\)' \| \
13125          .     : '\(.\)' 2>/dev/null ||
13126 echo X"$ac_file" |
13127     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13128           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13129           /^X\(\/\/\)$/{ s//\1/; q; }
13130           /^X\(\/\).*/{ s//\1/; q; }
13131           s/.*/./; q'`
13132       { if $as_mkdir_p; then
13133     mkdir -p "$ac_dir"
13134   else
13135     as_dir="$ac_dir"
13136     as_dirs=
13137     while test ! -d "$as_dir"; do
13138       as_dirs="$as_dir $as_dirs"
13139       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13141          X"$as_dir" : 'X\(//\)[^/]' \| \
13142          X"$as_dir" : 'X\(//\)$' \| \
13143          X"$as_dir" : 'X\(/\)' \| \
13144          .     : '\(.\)' 2>/dev/null ||
13145 echo X"$as_dir" |
13146     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13147           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13148           /^X\(\/\/\)$/{ s//\1/; q; }
13149           /^X\(\/\).*/{ s//\1/; q; }
13150           s/.*/./; q'`
13151     done
13152     test ! -n "$as_dirs" || mkdir $as_dirs
13153   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13154 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13155    { (exit 1); exit 1; }; }; }
13156
13157       rm -f $ac_file
13158       mv $tmp/config.h $ac_file
13159     fi
13160   else
13161     cat $tmp/config.h
13162     rm -f $tmp/config.h
13163   fi
13164 # Compute $ac_file's index in $config_headers.
13165 _am_stamp_count=1
13166 for _am_header in $config_headers :; do
13167   case $_am_header in
13168     $ac_file | $ac_file:* )
13169       break ;;
13170     * )
13171       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13172   esac
13173 done
13174 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13175 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13176          X$ac_file : 'X\(//\)[^/]' \| \
13177          X$ac_file : 'X\(//\)$' \| \
13178          X$ac_file : 'X\(/\)' \| \
13179          .     : '\(.\)' 2>/dev/null ||
13180 echo X$ac_file |
13181     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13182           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13183           /^X\(\/\/\)$/{ s//\1/; q; }
13184           /^X\(\/\).*/{ s//\1/; q; }
13185           s/.*/./; q'`/stamp-h$_am_stamp_count
13186 done
13187 _ACEOF
13188 cat >>$CONFIG_STATUS <<\_ACEOF
13189
13190 #
13191 # CONFIG_COMMANDS section.
13192 #
13193 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13194   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13195   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13196   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13197 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13198          X"$ac_dest" : 'X\(//\)[^/]' \| \
13199          X"$ac_dest" : 'X\(//\)$' \| \
13200          X"$ac_dest" : 'X\(/\)' \| \
13201          .     : '\(.\)' 2>/dev/null ||
13202 echo X"$ac_dest" |
13203     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13204           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13205           /^X\(\/\/\)$/{ s//\1/; q; }
13206           /^X\(\/\).*/{ s//\1/; q; }
13207           s/.*/./; q'`
13208   { if $as_mkdir_p; then
13209     mkdir -p "$ac_dir"
13210   else
13211     as_dir="$ac_dir"
13212     as_dirs=
13213     while test ! -d "$as_dir"; do
13214       as_dirs="$as_dir $as_dirs"
13215       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13217          X"$as_dir" : 'X\(//\)[^/]' \| \
13218          X"$as_dir" : 'X\(//\)$' \| \
13219          X"$as_dir" : 'X\(/\)' \| \
13220          .     : '\(.\)' 2>/dev/null ||
13221 echo X"$as_dir" |
13222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13223           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13224           /^X\(\/\/\)$/{ s//\1/; q; }
13225           /^X\(\/\).*/{ s//\1/; q; }
13226           s/.*/./; q'`
13227     done
13228     test ! -n "$as_dirs" || mkdir $as_dirs
13229   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13230 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13231    { (exit 1); exit 1; }; }; }
13232
13233   ac_builddir=.
13234
13235 if test "$ac_dir" != .; then
13236   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13237   # A "../" for each directory in $ac_dir_suffix.
13238   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13239 else
13240   ac_dir_suffix= ac_top_builddir=
13241 fi
13242
13243 case $srcdir in
13244   .)  # No --srcdir option.  We are building in place.
13245     ac_srcdir=.
13246     if test -z "$ac_top_builddir"; then
13247        ac_top_srcdir=.
13248     else
13249        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13250     fi ;;
13251   [\\/]* | ?:[\\/]* )  # Absolute path.
13252     ac_srcdir=$srcdir$ac_dir_suffix;
13253     ac_top_srcdir=$srcdir ;;
13254   *) # Relative path.
13255     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13256     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13257 esac
13258
13259 # Do not use `cd foo && pwd` to compute absolute paths, because
13260 # the directories may not exist.
13261 case `pwd` in
13262 .) ac_abs_builddir="$ac_dir";;
13263 *)
13264   case "$ac_dir" in
13265   .) ac_abs_builddir=`pwd`;;
13266   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13267   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13268   esac;;
13269 esac
13270 case $ac_abs_builddir in
13271 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13272 *)
13273   case ${ac_top_builddir}. in
13274   .) ac_abs_top_builddir=$ac_abs_builddir;;
13275   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13276   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13277   esac;;
13278 esac
13279 case $ac_abs_builddir in
13280 .) ac_abs_srcdir=$ac_srcdir;;
13281 *)
13282   case $ac_srcdir in
13283   .) ac_abs_srcdir=$ac_abs_builddir;;
13284   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13285   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13286   esac;;
13287 esac
13288 case $ac_abs_builddir in
13289 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13290 *)
13291   case $ac_top_srcdir in
13292   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13293   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13294   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13295   esac;;
13296 esac
13297
13298
13299   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13300 echo "$as_me: executing $ac_dest commands" >&6;}
13301   case $ac_dest in
13302     default-1 )
13303 # Only add multilib support code if we just rebuilt the top-level
13304 # Makefile.
13305 case " $CONFIG_FILES " in
13306  *" Makefile "*)
13307    ac_file=Makefile . ${multi_basedir}/config-ml.in
13308    ;;
13309 esac ;;
13310   esac
13311 done
13312 _ACEOF
13313
13314 cat >>$CONFIG_STATUS <<\_ACEOF
13315
13316 { (exit 0); exit 0; }
13317 _ACEOF
13318 chmod +x $CONFIG_STATUS
13319 ac_clean_files=$ac_clean_files_save
13320
13321
13322 # configure is writing to config.log, and then calls config.status.
13323 # config.status does its own redirection, appending to config.log.
13324 # Unfortunately, on DOS this fails, as config.log is still kept open
13325 # by configure, so config.status won't be able to write to it; its
13326 # output is simply discarded.  So we exec the FD to /dev/null,
13327 # effectively closing config.log, so it can be properly (re)opened and
13328 # appended to by config.status.  When coming back to configure, we
13329 # need to make the FD available again.
13330 if test "$no_create" != yes; then
13331   ac_cs_success=:
13332   ac_config_status_args=
13333   test "$silent" = yes &&
13334     ac_config_status_args="$ac_config_status_args --quiet"
13335   exec 5>/dev/null
13336   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13337   exec 5>>config.log
13338   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13339   # would make configure fail if this is the last instruction.
13340   $ac_cs_success || { (exit 1); exit 1; }
13341 fi
13342