Makefile.am: Added new files.
[platform/upstream/gcc.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 CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL enable_shared enable_static FC FCFLAGS LDFLAGS ac_ct_FC CPP CPPFLAGS EGREP MATH_OBJ LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
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   GCC_NO_EXECUTABLES
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 ac_clean_files_save=$ac_clean_files
2354 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2355 # Try to create an executable without -o first, disregard a.out.
2356 # It will help us diagnose broken compilers, and finding out an intuition
2357 # of exeext.
2358 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2359 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2360 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2361 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2362   (eval $ac_link_default) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; then
2366   # Find the output, starting from the most likely.  This scheme is
2367 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2368 # resort.
2369
2370 # Be careful to initialize this variable, since it used to be cached.
2371 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2372 ac_cv_exeext=
2373 # b.out is created by i960 compilers.
2374 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2375 do
2376   test -f "$ac_file" || continue
2377   case $ac_file in
2378     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2379         ;;
2380     conftest.$ac_ext )
2381         # This is the source file.
2382         ;;
2383     [ab].out )
2384         # We found the default executable, but exeext='' is most
2385         # certainly right.
2386         break;;
2387     *.* )
2388         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2389         # FIXME: I believe we export ac_cv_exeext for Libtool,
2390         # but it would be cool to find out if it's true.  Does anybody
2391         # maintain Libtool? --akim.
2392         export ac_cv_exeext
2393         break;;
2394     * )
2395         break;;
2396   esac
2397 done
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: C compiler cannot create executables
2405 See \`config.log' for more details." >&2;}
2406    { (exit 77); exit 77; }; }
2407 fi
2408
2409 ac_exeext=$ac_cv_exeext
2410 echo "$as_me:$LINENO: result: $ac_file" >&5
2411 echo "${ECHO_T}$ac_file" >&6
2412
2413 # Check the compiler produces executables we can run.  If not, either
2414 # the compiler is broken, or we cross compile.
2415 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2416 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2417 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2418 # If not cross compiling, check that we can run a simple program.
2419 if test "$cross_compiling" != yes; then
2420   if { ac_try='./$ac_file'
2421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422   (eval $ac_try) 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); }; }; then
2426     cross_compiling=no
2427   else
2428     if test "$cross_compiling" = maybe; then
2429         cross_compiling=yes
2430     else
2431         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2432 If you meant to cross compile, use \`--host'.
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot run C compiled programs.
2435 If you meant to cross compile, use \`--host'.
2436 See \`config.log' for more details." >&2;}
2437    { (exit 1); exit 1; }; }
2438     fi
2439   fi
2440 fi
2441 echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6
2443
2444 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2445 ac_clean_files=$ac_clean_files_save
2446 # Check the compiler produces executables we can run.  If not, either
2447 # the compiler is broken, or we cross compile.
2448 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2449 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2450 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2451 echo "${ECHO_T}$cross_compiling" >&6
2452
2453 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2454 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2456   (eval $ac_link) 2>&5
2457   ac_status=$?
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); }; then
2460   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2461 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2462 # work properly (i.e., refer to `conftest.exe'), while it won't with
2463 # `rm'.
2464 for ac_file in conftest.exe conftest conftest.*; do
2465   test -f "$ac_file" || continue
2466   case $ac_file in
2467     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2468     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2469           export ac_cv_exeext
2470           break;;
2471     * ) break;;
2472   esac
2473 done
2474 else
2475   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2476 See \`config.log' for more details." >&5
2477 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2478 See \`config.log' for more details." >&2;}
2479    { (exit 1); exit 1; }; }
2480 fi
2481
2482 rm -f conftest$ac_cv_exeext
2483 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2484 echo "${ECHO_T}$ac_cv_exeext" >&6
2485
2486 rm -f conftest.$ac_ext
2487 EXEEXT=$ac_cv_exeext
2488 ac_exeext=$EXEEXT
2489 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2490 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2491 if test "${ac_cv_objext+set}" = set; then
2492   echo $ECHO_N "(cached) $ECHO_C" >&6
2493 else
2494   cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h.  */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h.  */
2500
2501 int
2502 main ()
2503 {
2504
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 rm -f conftest.o conftest.obj
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511   (eval $ac_compile) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; then
2515   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2516   case $ac_file in
2517     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2518     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2519        break;;
2520   esac
2521 done
2522 else
2523   echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2529 See \`config.log' for more details." >&2;}
2530    { (exit 1); exit 1; }; }
2531 fi
2532
2533 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2534 fi
2535 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2536 echo "${ECHO_T}$ac_cv_objext" >&6
2537 OBJEXT=$ac_cv_objext
2538 ac_objext=$OBJEXT
2539 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2540 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2541 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2542   echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544   cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h.  */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h.  */
2550
2551 int
2552 main ()
2553 {
2554 #ifndef __GNUC__
2555        choke me
2556 #endif
2557
2558   ;
2559   return 0;
2560 }
2561 _ACEOF
2562 rm -f conftest.$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564   (eval $ac_compile) 2>conftest.er1
2565   ac_status=$?
2566   grep -v '^ *+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } &&
2571          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573   (eval $ac_try) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }; } &&
2577          { ac_try='test -s conftest.$ac_objext'
2578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579   (eval $ac_try) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; }; then
2583   ac_compiler_gnu=yes
2584 else
2585   echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587
2588 ac_compiler_gnu=no
2589 fi
2590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2591 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2592
2593 fi
2594 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2595 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2596 GCC=`test $ac_compiler_gnu = yes && echo yes`
2597 ac_test_CFLAGS=${CFLAGS+set}
2598 ac_save_CFLAGS=$CFLAGS
2599 CFLAGS="-g"
2600 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2601 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2602 if test "${ac_cv_prog_cc_g+set}" = set; then
2603   echo $ECHO_N "(cached) $ECHO_C" >&6
2604 else
2605   cat >conftest.$ac_ext <<_ACEOF
2606 /* confdefs.h.  */
2607 _ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h.  */
2611
2612 int
2613 main ()
2614 {
2615
2616   ;
2617   return 0;
2618 }
2619 _ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622   (eval $ac_compile) 2>conftest.er1
2623   ac_status=$?
2624   grep -v '^ *+' conftest.er1 >conftest.err
2625   rm -f conftest.er1
2626   cat conftest.err >&5
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } &&
2629          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; } &&
2635          { ac_try='test -s conftest.$ac_objext'
2636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637   (eval $ac_try) 2>&5
2638   ac_status=$?
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); }; }; then
2641   ac_cv_prog_cc_g=yes
2642 else
2643   echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2645
2646 ac_cv_prog_cc_g=no
2647 fi
2648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649 fi
2650 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2651 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2652 if test "$ac_test_CFLAGS" = set; then
2653   CFLAGS=$ac_save_CFLAGS
2654 elif test $ac_cv_prog_cc_g = yes; then
2655   if test "$GCC" = yes; then
2656     CFLAGS="-g -O2"
2657   else
2658     CFLAGS="-g"
2659   fi
2660 else
2661   if test "$GCC" = yes; then
2662     CFLAGS="-O2"
2663   else
2664     CFLAGS=
2665   fi
2666 fi
2667 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2668 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2669 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   ac_cv_prog_cc_stdc=no
2673 ac_save_CC=$CC
2674 cat >conftest.$ac_ext <<_ACEOF
2675 /* confdefs.h.  */
2676 _ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h.  */
2680 #include <stdarg.h>
2681 #include <stdio.h>
2682 #include <sys/types.h>
2683 #include <sys/stat.h>
2684 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2685 struct buf { int x; };
2686 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2687 static char *e (p, i)
2688      char **p;
2689      int i;
2690 {
2691   return p[i];
2692 }
2693 static char *f (char * (*g) (char **, int), char **p, ...)
2694 {
2695   char *s;
2696   va_list v;
2697   va_start (v,p);
2698   s = g (p, va_arg (v,int));
2699   va_end (v);
2700   return s;
2701 }
2702
2703 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2704    function prototypes and stuff, but not '\xHH' hex character constants.
2705    These don't provoke an error unfortunately, instead are silently treated
2706    as 'x'.  The following induces an error, until -std1 is added to get
2707    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2708    array size at least.  It's necessary to write '\x00'==0 to get something
2709    that's true only with -std1.  */
2710 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2711
2712 int test (int i, double x);
2713 struct s1 {int (*f) (int a);};
2714 struct s2 {int (*f) (double a);};
2715 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2716 int argc;
2717 char **argv;
2718 int
2719 main ()
2720 {
2721 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2722   ;
2723   return 0;
2724 }
2725 _ACEOF
2726 # Don't try gcc -ansi; that turns off useful extensions and
2727 # breaks some systems' header files.
2728 # AIX                   -qlanglvl=ansi
2729 # Ultrix and OSF/1      -std1
2730 # HP-UX 10.20 and later -Ae
2731 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2732 # SVR4                  -Xc -D__EXTENSIONS__
2733 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2734 do
2735   CC="$ac_save_CC $ac_arg"
2736   rm -f conftest.$ac_objext
2737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738   (eval $ac_compile) 2>conftest.er1
2739   ac_status=$?
2740   grep -v '^ *+' conftest.er1 >conftest.err
2741   rm -f conftest.er1
2742   cat conftest.err >&5
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } &&
2745          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747   (eval $ac_try) 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; } &&
2751          { ac_try='test -s conftest.$ac_objext'
2752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753   (eval $ac_try) 2>&5
2754   ac_status=$?
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); }; }; then
2757   ac_cv_prog_cc_stdc=$ac_arg
2758 break
2759 else
2760   echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2762
2763 fi
2764 rm -f conftest.err conftest.$ac_objext
2765 done
2766 rm -f conftest.$ac_ext conftest.$ac_objext
2767 CC=$ac_save_CC
2768
2769 fi
2770
2771 case "x$ac_cv_prog_cc_stdc" in
2772   x|xno)
2773     echo "$as_me:$LINENO: result: none needed" >&5
2774 echo "${ECHO_T}none needed" >&6 ;;
2775   *)
2776     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2777 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2778     CC="$CC $ac_cv_prog_cc_stdc" ;;
2779 esac
2780
2781 # Some people use a C++ compiler to compile C.  Since we use `exit',
2782 # in C++ we need to declare it.  In case someone uses the same compiler
2783 # for both compiling C and C++ we need to have the C++ compiler decide
2784 # the declaration of exit, since it's the most demanding environment.
2785 cat >conftest.$ac_ext <<_ACEOF
2786 #ifndef __cplusplus
2787   choke me
2788 #endif
2789 _ACEOF
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792   (eval $ac_compile) 2>conftest.er1
2793   ac_status=$?
2794   grep -v '^ *+' conftest.er1 >conftest.err
2795   rm -f conftest.er1
2796   cat conftest.err >&5
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); } &&
2799          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; } &&
2805          { ac_try='test -s conftest.$ac_objext'
2806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); }; }; then
2811   for ac_declaration in \
2812    '' \
2813    'extern "C" void std::exit (int) throw (); using std::exit;' \
2814    'extern "C" void std::exit (int); using std::exit;' \
2815    'extern "C" void exit (int) throw ();' \
2816    'extern "C" void exit (int);' \
2817    'void exit (int);'
2818 do
2819   cat >conftest.$ac_ext <<_ACEOF
2820 /* confdefs.h.  */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h.  */
2825 $ac_declaration
2826 #include <stdlib.h>
2827 int
2828 main ()
2829 {
2830 exit (42);
2831   ;
2832   return 0;
2833 }
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837   (eval $ac_compile) 2>conftest.er1
2838   ac_status=$?
2839   grep -v '^ *+' conftest.er1 >conftest.err
2840   rm -f conftest.er1
2841   cat conftest.err >&5
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } &&
2844          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846   (eval $ac_try) 2>&5
2847   ac_status=$?
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); }; } &&
2850          { ac_try='test -s conftest.$ac_objext'
2851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852   (eval $ac_try) 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); }; }; then
2856   :
2857 else
2858   echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2860
2861 continue
2862 fi
2863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2864   cat >conftest.$ac_ext <<_ACEOF
2865 /* confdefs.h.  */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h.  */
2870 $ac_declaration
2871 int
2872 main ()
2873 {
2874 exit (42);
2875   ;
2876   return 0;
2877 }
2878 _ACEOF
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881   (eval $ac_compile) 2>conftest.er1
2882   ac_status=$?
2883   grep -v '^ *+' conftest.er1 >conftest.err
2884   rm -f conftest.er1
2885   cat conftest.err >&5
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); } &&
2888          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890   (eval $ac_try) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; } &&
2894          { ac_try='test -s conftest.$ac_objext'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; }; then
2900   break
2901 else
2902   echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905 fi
2906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907 done
2908 rm -f conftest*
2909 if test -n "$ac_declaration"; then
2910   echo '#ifdef __cplusplus' >>confdefs.h
2911   echo $ac_declaration      >>confdefs.h
2912   echo '#endif'             >>confdefs.h
2913 fi
2914
2915 else
2916   echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2918
2919 fi
2920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926
2927
2928
2929
2930
2931 # Add -Wall if we are using GCC.
2932 if test "x$GCC" = "xyes"; then
2933   CFLAGS="$CFLAGS -Wall"
2934 fi
2935
2936 # Find other programs we need.
2937 if test -n "$ac_tool_prefix"; then
2938   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}as; ac_word=$2
2940 echo "$as_me:$LINENO: checking for $ac_word" >&5
2941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942 if test "${ac_cv_prog_AS+set}" = set; then
2943   echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945   if test -n "$AS"; then
2946   ac_cv_prog_AS="$AS" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951   IFS=$as_save_IFS
2952   test -z "$as_dir" && as_dir=.
2953   for ac_exec_ext in '' $ac_executable_extensions; do
2954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955     ac_cv_prog_AS="${ac_tool_prefix}as"
2956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957     break 2
2958   fi
2959 done
2960 done
2961
2962 fi
2963 fi
2964 AS=$ac_cv_prog_AS
2965 if test -n "$AS"; then
2966   echo "$as_me:$LINENO: result: $AS" >&5
2967 echo "${ECHO_T}$AS" >&6
2968 else
2969   echo "$as_me:$LINENO: result: no" >&5
2970 echo "${ECHO_T}no" >&6
2971 fi
2972
2973 fi
2974 if test -z "$ac_cv_prog_AS"; then
2975   ac_ct_AS=$AS
2976   # Extract the first word of "as", so it can be a program name with args.
2977 set dummy as; ac_word=$2
2978 echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2980 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2981   echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983   if test -n "$ac_ct_AS"; then
2984   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989   IFS=$as_save_IFS
2990   test -z "$as_dir" && as_dir=.
2991   for ac_exec_ext in '' $ac_executable_extensions; do
2992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993     ac_cv_prog_ac_ct_AS="as"
2994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2995     break 2
2996   fi
2997 done
2998 done
2999
3000 fi
3001 fi
3002 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3003 if test -n "$ac_ct_AS"; then
3004   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3005 echo "${ECHO_T}$ac_ct_AS" >&6
3006 else
3007   echo "$as_me:$LINENO: result: no" >&5
3008 echo "${ECHO_T}no" >&6
3009 fi
3010
3011   AS=$ac_ct_AS
3012 else
3013   AS="$ac_cv_prog_AS"
3014 fi
3015
3016 if test -n "$ac_tool_prefix"; then
3017   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3018 set dummy ${ac_tool_prefix}ar; ac_word=$2
3019 echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3021 if test "${ac_cv_prog_AR+set}" = set; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024   if test -n "$AR"; then
3025   ac_cv_prog_AR="$AR" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3029 do
3030   IFS=$as_save_IFS
3031   test -z "$as_dir" && as_dir=.
3032   for ac_exec_ext in '' $ac_executable_extensions; do
3033   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034     ac_cv_prog_AR="${ac_tool_prefix}ar"
3035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3036     break 2
3037   fi
3038 done
3039 done
3040
3041 fi
3042 fi
3043 AR=$ac_cv_prog_AR
3044 if test -n "$AR"; then
3045   echo "$as_me:$LINENO: result: $AR" >&5
3046 echo "${ECHO_T}$AR" >&6
3047 else
3048   echo "$as_me:$LINENO: result: no" >&5
3049 echo "${ECHO_T}no" >&6
3050 fi
3051
3052 fi
3053 if test -z "$ac_cv_prog_AR"; then
3054   ac_ct_AR=$AR
3055   # Extract the first word of "ar", so it can be a program name with args.
3056 set dummy ar; ac_word=$2
3057 echo "$as_me:$LINENO: checking for $ac_word" >&5
3058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3059 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3060   echo $ECHO_N "(cached) $ECHO_C" >&6
3061 else
3062   if test -n "$ac_ct_AR"; then
3063   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3067 do
3068   IFS=$as_save_IFS
3069   test -z "$as_dir" && as_dir=.
3070   for ac_exec_ext in '' $ac_executable_extensions; do
3071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072     ac_cv_prog_ac_ct_AR="ar"
3073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3074     break 2
3075   fi
3076 done
3077 done
3078
3079 fi
3080 fi
3081 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3082 if test -n "$ac_ct_AR"; then
3083   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3084 echo "${ECHO_T}$ac_ct_AR" >&6
3085 else
3086   echo "$as_me:$LINENO: result: no" >&5
3087 echo "${ECHO_T}no" >&6
3088 fi
3089
3090   AR=$ac_ct_AR
3091 else
3092   AR="$ac_cv_prog_AR"
3093 fi
3094
3095 if test -n "$ac_tool_prefix"; then
3096   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3097 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3098 echo "$as_me:$LINENO: checking for $ac_word" >&5
3099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3100 if test "${ac_cv_prog_RANLIB+set}" = set; then
3101   echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103   if test -n "$RANLIB"; then
3104   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3108 do
3109   IFS=$as_save_IFS
3110   test -z "$as_dir" && as_dir=.
3111   for ac_exec_ext in '' $ac_executable_extensions; do
3112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115     break 2
3116   fi
3117 done
3118 done
3119
3120 fi
3121 fi
3122 RANLIB=$ac_cv_prog_RANLIB
3123 if test -n "$RANLIB"; then
3124   echo "$as_me:$LINENO: result: $RANLIB" >&5
3125 echo "${ECHO_T}$RANLIB" >&6
3126 else
3127   echo "$as_me:$LINENO: result: no" >&5
3128 echo "${ECHO_T}no" >&6
3129 fi
3130
3131 fi
3132 if test -z "$ac_cv_prog_RANLIB"; then
3133   ac_ct_RANLIB=$RANLIB
3134   # Extract the first word of "ranlib", so it can be a program name with args.
3135 set dummy ranlib; ac_word=$2
3136 echo "$as_me:$LINENO: checking for $ac_word" >&5
3137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3139   echo $ECHO_N "(cached) $ECHO_C" >&6
3140 else
3141   if test -n "$ac_ct_RANLIB"; then
3142   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3143 else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147   IFS=$as_save_IFS
3148   test -z "$as_dir" && as_dir=.
3149   for ac_exec_ext in '' $ac_executable_extensions; do
3150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151     ac_cv_prog_ac_ct_RANLIB="ranlib"
3152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3153     break 2
3154   fi
3155 done
3156 done
3157
3158   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3159 fi
3160 fi
3161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3162 if test -n "$ac_ct_RANLIB"; then
3163   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3164 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3165 else
3166   echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168 fi
3169
3170   RANLIB=$ac_ct_RANLIB
3171 else
3172   RANLIB="$ac_cv_prog_RANLIB"
3173 fi
3174
3175 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3176 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3177 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3178 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3179   echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181   cat >conftest.make <<\_ACEOF
3182 all:
3183         @echo 'ac_maketemp="$(MAKE)"'
3184 _ACEOF
3185 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3186 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3187 if test -n "$ac_maketemp"; then
3188   eval ac_cv_prog_make_${ac_make}_set=yes
3189 else
3190   eval ac_cv_prog_make_${ac_make}_set=no
3191 fi
3192 rm -f conftest.make
3193 fi
3194 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3195   echo "$as_me:$LINENO: result: yes" >&5
3196 echo "${ECHO_T}yes" >&6
3197   SET_MAKE=
3198 else
3199   echo "$as_me:$LINENO: result: no" >&5
3200 echo "${ECHO_T}no" >&6
3201   SET_MAKE="MAKE=${MAKE-make}"
3202 fi
3203
3204 # Find a good install program.  We prefer a C program (faster),
3205 # so one script is as good as another.  But avoid the broken or
3206 # incompatible versions:
3207 # SysV /etc/install, /usr/sbin/install
3208 # SunOS /usr/etc/install
3209 # IRIX /sbin/install
3210 # AIX /bin/install
3211 # AmigaOS /C/install, which installs bootblocks on floppy discs
3212 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3213 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3214 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3215 # OS/2's system install, which has a completely different semantic
3216 # ./install, which can be erroneously created by make from ./install.sh.
3217 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3218 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3219 if test -z "$INSTALL"; then
3220 if test "${ac_cv_path_install+set}" = set; then
3221   echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226   IFS=$as_save_IFS
3227   test -z "$as_dir" && as_dir=.
3228   # Account for people who put trailing slashes in PATH elements.
3229 case $as_dir/ in
3230   ./ | .// | /cC/* | \
3231   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3232   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3233   /usr/ucb/* ) ;;
3234   *)
3235     # OSF1 and SCO ODT 3.0 have their own names for install.
3236     # Don't use installbsd from OSF since it installs stuff as root
3237     # by default.
3238     for ac_prog in ginstall scoinst install; do
3239       for ac_exec_ext in '' $ac_executable_extensions; do
3240         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3241           if test $ac_prog = install &&
3242             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3243             # AIX install.  It has an incompatible calling convention.
3244             :
3245           elif test $ac_prog = install &&
3246             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3247             # program-specific install script used by HP pwplus--don't use.
3248             :
3249           else
3250             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3251             break 3
3252           fi
3253         fi
3254       done
3255     done
3256     ;;
3257 esac
3258 done
3259
3260
3261 fi
3262   if test "${ac_cv_path_install+set}" = set; then
3263     INSTALL=$ac_cv_path_install
3264   else
3265     # As a last resort, use the slow shell script.  We don't cache a
3266     # path for INSTALL within a source directory, because that will
3267     # break other packages using the cache if that directory is
3268     # removed, or if the path is relative.
3269     INSTALL=$ac_install_sh
3270   fi
3271 fi
3272 echo "$as_me:$LINENO: result: $INSTALL" >&5
3273 echo "${ECHO_T}$INSTALL" >&6
3274
3275 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3276 # It thinks the first close brace ends the variable substitution.
3277 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3278
3279 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3280
3281 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3282
3283
3284 # Configure libtool
3285 #AC_MSG_NOTICE([====== Starting libtool configuration])
3286
3287 # Check whether --enable-shared or --disable-shared was given.
3288 if test "${enable_shared+set}" = set; then
3289   enableval="$enable_shared"
3290   p=${PACKAGE-default}
3291 case $enableval in
3292 yes) enable_shared=yes ;;
3293 no) enable_shared=no ;;
3294 *)
3295   enable_shared=no
3296   # Look at the argument we got.  We use all the common list separators.
3297   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3298   for pkg in $enableval; do
3299     if test "X$pkg" = "X$p"; then
3300       enable_shared=yes
3301     fi
3302   done
3303   IFS="$ac_save_ifs"
3304   ;;
3305 esac
3306 else
3307   enable_shared=yes
3308 fi;
3309 # Check whether --enable-static or --disable-static was given.
3310 if test "${enable_static+set}" = set; then
3311   enableval="$enable_static"
3312   p=${PACKAGE-default}
3313 case $enableval in
3314 yes) enable_static=yes ;;
3315 no) enable_static=no ;;
3316 *)
3317   enable_static=no
3318   # Look at the argument we got.  We use all the common list separators.
3319   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3320   for pkg in $enableval; do
3321     if test "X$pkg" = "X$p"; then
3322       enable_static=yes
3323     fi
3324   done
3325   IFS="$ac_save_ifs"
3326   ;;
3327 esac
3328 else
3329   enable_static=yes
3330 fi;
3331 # Check whether --enable-fast-install or --disable-fast-install was given.
3332 if test "${enable_fast_install+set}" = set; then
3333   enableval="$enable_fast_install"
3334   p=${PACKAGE-default}
3335 case $enableval in
3336 yes) enable_fast_install=yes ;;
3337 no) enable_fast_install=no ;;
3338 *)
3339   enable_fast_install=no
3340   # Look at the argument we got.  We use all the common list separators.
3341   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3342   for pkg in $enableval; do
3343     if test "X$pkg" = "X$p"; then
3344       enable_fast_install=yes
3345     fi
3346   done
3347   IFS="$ac_save_ifs"
3348   ;;
3349 esac
3350 else
3351   enable_fast_install=yes
3352 fi;
3353
3354 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3355 if test "${with_gnu_ld+set}" = set; then
3356   withval="$with_gnu_ld"
3357   test "$withval" = no || with_gnu_ld=yes
3358 else
3359   with_gnu_ld=no
3360 fi;
3361 ac_prog=ld
3362 if test "$GCC" = yes; then
3363   # Check if gcc -print-prog-name=ld gives a path.
3364   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3365 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3366   case $host in
3367   *-*-mingw*)
3368     # gcc leaves a trailing carriage return which upsets mingw
3369     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3370   *)
3371     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3372   esac
3373   case $ac_prog in
3374     # Accept absolute paths.
3375     [\\/]* | [A-Za-z]:[\\/]*)
3376       re_direlt='/[^/][^/]*/\.\./'
3377       # Canonicalize the path of ld
3378       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3379       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3380         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3381       done
3382       test -z "$LD" && LD="$ac_prog"
3383       ;;
3384   "")
3385     # If it fails, then pretend we aren't using GCC.
3386     ac_prog=ld
3387     ;;
3388   *)
3389     # If it is relative, then search for the first ld in PATH.
3390     with_gnu_ld=unknown
3391     ;;
3392   esac
3393 elif test "$with_gnu_ld" = yes; then
3394   echo "$as_me:$LINENO: checking for GNU ld" >&5
3395 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3396 else
3397   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3398 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3399 fi
3400 if test "${lt_cv_path_LD+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   if test -z "$LD"; then
3404   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3405   for ac_dir in $PATH; do
3406     test -z "$ac_dir" && ac_dir=.
3407     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3408       lt_cv_path_LD="$ac_dir/$ac_prog"
3409       # Check to see if the program is GNU ld.  I'd rather use --version,
3410       # but apparently some GNU ld's only accept -v.
3411       # Break only if it was the GNU/non-GNU ld that we prefer.
3412       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3413         test "$with_gnu_ld" != no && break
3414       else
3415         test "$with_gnu_ld" != yes && break
3416       fi
3417     fi
3418   done
3419   IFS="$ac_save_ifs"
3420 else
3421   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3422 fi
3423 fi
3424
3425 LD="$lt_cv_path_LD"
3426 if test -n "$LD"; then
3427   echo "$as_me:$LINENO: result: $LD" >&5
3428 echo "${ECHO_T}$LD" >&6
3429 else
3430   echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6
3432 fi
3433 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3434 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3435    { (exit 1); exit 1; }; }
3436 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3437 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3438 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3439   echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3442 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3443   lt_cv_prog_gnu_ld=yes
3444 else
3445   lt_cv_prog_gnu_ld=no
3446 fi
3447 fi
3448 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3449 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3450 with_gnu_ld=$lt_cv_prog_gnu_ld
3451
3452
3453 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3454 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3455 if test "${lt_cv_ld_reload_flag+set}" = set; then
3456   echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458   lt_cv_ld_reload_flag='-r'
3459 fi
3460 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3461 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3462 reload_flag=$lt_cv_ld_reload_flag
3463 test -n "$reload_flag" && reload_flag=" $reload_flag"
3464
3465 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3466 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3467 if test "${lt_cv_path_NM+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470   if test -n "$NM"; then
3471   # Let the user override the test.
3472   lt_cv_path_NM="$NM"
3473 else
3474   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3475   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3476     test -z "$ac_dir" && ac_dir=.
3477     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3478     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3479       # Check to see if the nm accepts a BSD-compat flag.
3480       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3481       #   nm: unknown option "B" ignored
3482       # Tru64's nm complains that /dev/null is an invalid object file
3483       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3484         lt_cv_path_NM="$tmp_nm -B"
3485         break
3486       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3487         lt_cv_path_NM="$tmp_nm -p"
3488         break
3489       else
3490         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3491         continue # so that we can try to find one that supports BSD flags
3492       fi
3493     fi
3494   done
3495   IFS="$ac_save_ifs"
3496   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3497 fi
3498 fi
3499
3500 NM="$lt_cv_path_NM"
3501 echo "$as_me:$LINENO: result: $NM" >&5
3502 echo "${ECHO_T}$NM" >&6
3503
3504 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3505 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3506 LN_S=$as_ln_s
3507 if test "$LN_S" = "ln -s"; then
3508   echo "$as_me:$LINENO: result: yes" >&5
3509 echo "${ECHO_T}yes" >&6
3510 else
3511   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3512 echo "${ECHO_T}no, using $LN_S" >&6
3513 fi
3514
3515 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3516 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3517 if test "${lt_cv_deplibs_check_method+set}" = set; then
3518   echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520   lt_cv_file_magic_cmd='$MAGIC_CMD'
3521 lt_cv_file_magic_test_file=
3522 lt_cv_deplibs_check_method='unknown'
3523 # Need to set the preceding variable on all platforms that support
3524 # interlibrary dependencies.
3525 # 'none' -- dependencies not supported.
3526 # `unknown' -- same as none, but documents that we really don't know.
3527 # 'pass_all' -- all dependencies passed with no checks.
3528 # 'test_compile' -- check by making test program.
3529 # 'file_magic [regex]' -- check by looking for files in library path
3530 # which responds to the $file_magic_cmd with a given egrep regex.
3531 # If you have `file' or equivalent on your system and you're not sure
3532 # whether `pass_all' will *always* work, you probably want this one.
3533
3534 case $host_os in
3535 aix*)
3536   lt_cv_deplibs_check_method=pass_all
3537   ;;
3538
3539 beos*)
3540   lt_cv_deplibs_check_method=pass_all
3541   ;;
3542
3543 bsdi4*)
3544   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3545   lt_cv_file_magic_cmd='/usr/bin/file -L'
3546   lt_cv_file_magic_test_file=/shlib/libc.so
3547   ;;
3548
3549 cygwin* | mingw* |pw32*)
3550   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3551   lt_cv_file_magic_cmd='$OBJDUMP -f'
3552   ;;
3553
3554 darwin* | rhapsody*)
3555   # this will be overwritten by pass_all, but leave it in just in case
3556   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3557   lt_cv_file_magic_cmd='/usr/bin/file -L'
3558   case "$host_os" in
3559   rhapsody* | darwin1.012)
3560     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3561     ;;
3562   *) # Darwin 1.3 on
3563     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3564     ;;
3565   esac
3566   lt_cv_deplibs_check_method=pass_all
3567   ;;
3568
3569 freebsd* | kfreebsd*-gnu)
3570   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3571     case $host_cpu in
3572     i*86 )
3573       # Not sure whether the presence of OpenBSD here was a mistake.
3574       # Let's accept both of them until this is cleared up.
3575       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3576       lt_cv_file_magic_cmd=/usr/bin/file
3577       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3578       ;;
3579     esac
3580   else
3581     lt_cv_deplibs_check_method=pass_all
3582   fi
3583   ;;
3584
3585 gnu*)
3586   lt_cv_deplibs_check_method=pass_all
3587   ;;
3588
3589 hpux10.20*|hpux11*)
3590   case $host_cpu in
3591   hppa*)
3592     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3593     lt_cv_file_magic_cmd=/usr/bin/file
3594     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3595     ;;
3596   ia64*)
3597     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3598     lt_cv_file_magic_cmd=/usr/bin/file
3599     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3600     ;;
3601   esac
3602   ;;
3603
3604 irix5* | irix6*)
3605   case $host_os in
3606   irix5*)
3607     # this will be overridden with pass_all, but let us keep it just in case
3608     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3609     ;;
3610   *)
3611     case $LD in
3612     *-32|*"-32 ") libmagic=32-bit;;
3613     *-n32|*"-n32 ") libmagic=N32;;
3614     *-64|*"-64 ") libmagic=64-bit;;
3615     *) libmagic=never-match;;
3616     esac
3617     # this will be overridden with pass_all, but let us keep it just in case
3618     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3619     ;;
3620   esac
3621   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3622   lt_cv_deplibs_check_method=pass_all
3623   ;;
3624
3625 # This must be Linux ELF.
3626 linux-gnu*)
3627   lt_cv_deplibs_check_method=pass_all
3628   ;;
3629
3630 netbsd* | knetbsd*-gnu)
3631   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3632     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3633   else
3634     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3635   fi
3636   ;;
3637
3638 newsos6)
3639   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3640   lt_cv_file_magic_cmd=/usr/bin/file
3641   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3642   ;;
3643
3644 osf3* | osf4* | osf5*)
3645   # this will be overridden with pass_all, but let us keep it just in case
3646   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3647   lt_cv_file_magic_test_file=/shlib/libc.so
3648   lt_cv_deplibs_check_method=pass_all
3649   ;;
3650
3651 sco3.2v5*)
3652   lt_cv_deplibs_check_method=pass_all
3653   ;;
3654
3655 solaris*)
3656   lt_cv_deplibs_check_method=pass_all
3657   lt_cv_file_magic_test_file=/lib/libc.so
3658   ;;
3659
3660 sysv5uw[78]* | sysv4*uw2*)
3661   lt_cv_deplibs_check_method=pass_all
3662   ;;
3663
3664 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3665   case $host_vendor in
3666   ncr)
3667     lt_cv_deplibs_check_method=pass_all
3668     ;;
3669   motorola)
3670     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]'
3671     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3672     ;;
3673   esac
3674   ;;
3675 esac
3676
3677 fi
3678 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3679 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3680 file_magic_cmd=$lt_cv_file_magic_cmd
3681 deplibs_check_method=$lt_cv_deplibs_check_method
3682
3683
3684
3685
3686
3687 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3688
3689 # Only perform the check for file, if the check method requires it
3690 case $deplibs_check_method in
3691 file_magic*)
3692   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3693     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3694 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3695 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3696   echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698   case $MAGIC_CMD in
3699   /*)
3700   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3701   ;;
3702   ?:/*)
3703   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3704   ;;
3705   *)
3706   ac_save_MAGIC_CMD="$MAGIC_CMD"
3707   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3708   ac_dummy="/usr/bin:$PATH"
3709   for ac_dir in $ac_dummy; do
3710     test -z "$ac_dir" && ac_dir=.
3711     if test -f $ac_dir/${ac_tool_prefix}file; then
3712       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3713       if test -n "$file_magic_test_file"; then
3714         case $deplibs_check_method in
3715         "file_magic "*)
3716           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3717           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3718           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3719             egrep "$file_magic_regex" > /dev/null; then
3720             :
3721           else
3722             cat <<EOF 1>&2
3723
3724 *** Warning: the command libtool uses to detect shared libraries,
3725 *** $file_magic_cmd, produces output that libtool cannot recognize.
3726 *** The result is that libtool may fail to recognize shared libraries
3727 *** as such.  This will affect the creation of libtool libraries that
3728 *** depend on shared libraries, but programs linked with such libtool
3729 *** libraries will work regardless of this problem.  Nevertheless, you
3730 *** may want to report the problem to your system manager and/or to
3731 *** bug-libtool@gnu.org
3732
3733 EOF
3734           fi ;;
3735         esac
3736       fi
3737       break
3738     fi
3739   done
3740   IFS="$ac_save_ifs"
3741   MAGIC_CMD="$ac_save_MAGIC_CMD"
3742   ;;
3743 esac
3744 fi
3745
3746 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3747 if test -n "$MAGIC_CMD"; then
3748   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3749 echo "${ECHO_T}$MAGIC_CMD" >&6
3750 else
3751   echo "$as_me:$LINENO: result: no" >&5
3752 echo "${ECHO_T}no" >&6
3753 fi
3754
3755 if test -z "$lt_cv_path_MAGIC_CMD"; then
3756   if test -n "$ac_tool_prefix"; then
3757     echo "$as_me:$LINENO: checking for file" >&5
3758 echo $ECHO_N "checking for file... $ECHO_C" >&6
3759 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3760   echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762   case $MAGIC_CMD in
3763   /*)
3764   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3765   ;;
3766   ?:/*)
3767   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3768   ;;
3769   *)
3770   ac_save_MAGIC_CMD="$MAGIC_CMD"
3771   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3772   ac_dummy="/usr/bin:$PATH"
3773   for ac_dir in $ac_dummy; do
3774     test -z "$ac_dir" && ac_dir=.
3775     if test -f $ac_dir/file; then
3776       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3777       if test -n "$file_magic_test_file"; then
3778         case $deplibs_check_method in
3779         "file_magic "*)
3780           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3781           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3782           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3783             egrep "$file_magic_regex" > /dev/null; then
3784             :
3785           else
3786             cat <<EOF 1>&2
3787
3788 *** Warning: the command libtool uses to detect shared libraries,
3789 *** $file_magic_cmd, produces output that libtool cannot recognize.
3790 *** The result is that libtool may fail to recognize shared libraries
3791 *** as such.  This will affect the creation of libtool libraries that
3792 *** depend on shared libraries, but programs linked with such libtool
3793 *** libraries will work regardless of this problem.  Nevertheless, you
3794 *** may want to report the problem to your system manager and/or to
3795 *** bug-libtool@gnu.org
3796
3797 EOF
3798           fi ;;
3799         esac
3800       fi
3801       break
3802     fi
3803   done
3804   IFS="$ac_save_ifs"
3805   MAGIC_CMD="$ac_save_MAGIC_CMD"
3806   ;;
3807 esac
3808 fi
3809
3810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3811 if test -n "$MAGIC_CMD"; then
3812   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3813 echo "${ECHO_T}$MAGIC_CMD" >&6
3814 else
3815   echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3817 fi
3818
3819   else
3820     MAGIC_CMD=:
3821   fi
3822 fi
3823
3824   fi
3825   ;;
3826 esac
3827
3828 if test -n "$ac_tool_prefix"; then
3829   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3830 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3831 echo "$as_me:$LINENO: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3833 if test "${ac_cv_prog_RANLIB+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   if test -n "$RANLIB"; then
3837   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3841 do
3842   IFS=$as_save_IFS
3843   test -z "$as_dir" && as_dir=.
3844   for ac_exec_ext in '' $ac_executable_extensions; do
3845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3848     break 2
3849   fi
3850 done
3851 done
3852
3853 fi
3854 fi
3855 RANLIB=$ac_cv_prog_RANLIB
3856 if test -n "$RANLIB"; then
3857   echo "$as_me:$LINENO: result: $RANLIB" >&5
3858 echo "${ECHO_T}$RANLIB" >&6
3859 else
3860   echo "$as_me:$LINENO: result: no" >&5
3861 echo "${ECHO_T}no" >&6
3862 fi
3863
3864 fi
3865 if test -z "$ac_cv_prog_RANLIB"; then
3866   ac_ct_RANLIB=$RANLIB
3867   # Extract the first word of "ranlib", so it can be a program name with args.
3868 set dummy ranlib; ac_word=$2
3869 echo "$as_me:$LINENO: checking for $ac_word" >&5
3870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3871 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3872   echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874   if test -n "$ac_ct_RANLIB"; then
3875   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3876 else
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 for as_dir in $PATH
3879 do
3880   IFS=$as_save_IFS
3881   test -z "$as_dir" && as_dir=.
3882   for ac_exec_ext in '' $ac_executable_extensions; do
3883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3884     ac_cv_prog_ac_ct_RANLIB="ranlib"
3885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3886     break 2
3887   fi
3888 done
3889 done
3890
3891   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3892 fi
3893 fi
3894 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3895 if test -n "$ac_ct_RANLIB"; then
3896   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3897 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3898 else
3899   echo "$as_me:$LINENO: result: no" >&5
3900 echo "${ECHO_T}no" >&6
3901 fi
3902
3903   RANLIB=$ac_ct_RANLIB
3904 else
3905   RANLIB="$ac_cv_prog_RANLIB"
3906 fi
3907
3908 if test -n "$ac_tool_prefix"; then
3909   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3910 set dummy ${ac_tool_prefix}strip; ac_word=$2
3911 echo "$as_me:$LINENO: checking for $ac_word" >&5
3912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3913 if test "${ac_cv_prog_STRIP+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   if test -n "$STRIP"; then
3917   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3918 else
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3921 do
3922   IFS=$as_save_IFS
3923   test -z "$as_dir" && as_dir=.
3924   for ac_exec_ext in '' $ac_executable_extensions; do
3925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3928     break 2
3929   fi
3930 done
3931 done
3932
3933 fi
3934 fi
3935 STRIP=$ac_cv_prog_STRIP
3936 if test -n "$STRIP"; then
3937   echo "$as_me:$LINENO: result: $STRIP" >&5
3938 echo "${ECHO_T}$STRIP" >&6
3939 else
3940   echo "$as_me:$LINENO: result: no" >&5
3941 echo "${ECHO_T}no" >&6
3942 fi
3943
3944 fi
3945 if test -z "$ac_cv_prog_STRIP"; then
3946   ac_ct_STRIP=$STRIP
3947   # Extract the first word of "strip", so it can be a program name with args.
3948 set dummy strip; ac_word=$2
3949 echo "$as_me:$LINENO: checking for $ac_word" >&5
3950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3951 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3952   echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954   if test -n "$ac_ct_STRIP"; then
3955   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3956 else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3959 do
3960   IFS=$as_save_IFS
3961   test -z "$as_dir" && as_dir=.
3962   for ac_exec_ext in '' $ac_executable_extensions; do
3963   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3964     ac_cv_prog_ac_ct_STRIP="strip"
3965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966     break 2
3967   fi
3968 done
3969 done
3970
3971   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3972 fi
3973 fi
3974 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3975 if test -n "$ac_ct_STRIP"; then
3976   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3977 echo "${ECHO_T}$ac_ct_STRIP" >&6
3978 else
3979   echo "$as_me:$LINENO: result: no" >&5
3980 echo "${ECHO_T}no" >&6
3981 fi
3982
3983   STRIP=$ac_ct_STRIP
3984 else
3985   STRIP="$ac_cv_prog_STRIP"
3986 fi
3987
3988
3989 # Check for any special flags to pass to ltconfig.
3990 libtool_flags="--cache-file=$cache_file"
3991 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3992 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3993 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3994 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3995 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3996
3997
3998 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3999 if test "${enable_libtool_lock+set}" = set; then
4000   enableval="$enable_libtool_lock"
4001
4002 fi;
4003 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4004 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4005
4006
4007 # Check whether --with-pic or --without-pic was given.
4008 if test "${with_pic+set}" = set; then
4009   withval="$with_pic"
4010   pic_mode="$withval"
4011 else
4012   pic_mode=default
4013 fi;
4014 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4015 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4016
4017 # Some flags need to be propagated to the compiler or linker for good
4018 # libtool support.
4019 case $host in
4020 *-*-irix6*)
4021   # Find out which ABI we are using.
4022   echo '#line 4022 "configure"' > conftest.$ac_ext
4023   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4024   (eval $ac_compile) 2>&5
4025   ac_status=$?
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); }; then
4028    if test "$lt_cv_prog_gnu_ld" = yes; then
4029     case `/usr/bin/file conftest.$ac_objext` in
4030     *32-bit*)
4031       LD="${LD-ld} -melf32bsmip"
4032       ;;
4033     *N32*)
4034       LD="${LD-ld} -melf32bmipn32"
4035       ;;
4036     *64-bit*)
4037       LD="${LD-ld} -melf64bmip"
4038       ;;
4039     esac
4040    else
4041     case `/usr/bin/file conftest.$ac_objext` in
4042     *32-bit*)
4043       LD="${LD-ld} -32"
4044       ;;
4045     *N32*)
4046       LD="${LD-ld} -n32"
4047       ;;
4048     *64-bit*)
4049       LD="${LD-ld} -64"
4050       ;;
4051     esac
4052    fi
4053   fi
4054   rm -rf conftest*
4055   ;;
4056
4057 ia64-*-hpux*)
4058   # Find out which ABI we are using.
4059   echo 'int i;' > conftest.$ac_ext
4060   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061   (eval $ac_compile) 2>&5
4062   ac_status=$?
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); }; then
4065     case "`/usr/bin/file conftest.o`" in
4066     *ELF-32*)
4067       HPUX_IA64_MODE="32"
4068       ;;
4069     *ELF-64*)
4070       HPUX_IA64_MODE="64"
4071       ;;
4072     esac
4073   fi
4074   rm -rf conftest*
4075   ;;
4076
4077 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4078   # Find out which ABI we are using.
4079   echo 'int i;' > conftest.$ac_ext
4080   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4081   (eval $ac_compile) 2>&5
4082   ac_status=$?
4083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084   (exit $ac_status); }; then
4085     case "`/usr/bin/file conftest.o`" in
4086     *32-bit*)
4087       case $host in
4088         x86_64-*linux*)
4089           LD="${LD-ld} -m elf_i386"
4090           ;;
4091         ppc64-*linux*|powerpc64-*linux*)
4092           LD="${LD-ld} -m elf32ppclinux"
4093           ;;
4094         s390x-*linux*)
4095           LD="${LD-ld} -m elf_s390"
4096           ;;
4097         sparc64-*linux*)
4098           LD="${LD-ld} -m elf32_sparc"
4099           ;;
4100       esac
4101       ;;
4102     *64-bit*)
4103       case $host in
4104         x86_64-*linux*)
4105           LD="${LD-ld} -m elf_x86_64"
4106           ;;
4107         ppc*-*linux*|powerpc*-*linux*)
4108           LD="${LD-ld} -m elf64ppc"
4109           ;;
4110         s390*-*linux*)
4111           LD="${LD-ld} -m elf64_s390"
4112           ;;
4113         sparc*-*linux*)
4114           LD="${LD-ld} -m elf64_sparc"
4115           ;;
4116       esac
4117       ;;
4118     esac
4119   fi
4120   rm -rf conftest*
4121   ;;
4122
4123 *-*-sco3.2v5*)
4124   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4125   SAVE_CFLAGS="$CFLAGS"
4126   CFLAGS="$CFLAGS -belf"
4127   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4128 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4129 if test "${lt_cv_cc_needs_belf+set}" = set; then
4130   echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132
4133
4134      ac_ext=c
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139
4140      cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146
4147 int
4148 main ()
4149 {
4150
4151   ;
4152   return 0;
4153 }
4154 _ACEOF
4155 rm -f conftest.$ac_objext conftest$ac_exeext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4157   (eval $ac_link) 2>conftest.er1
4158   ac_status=$?
4159   grep -v '^ *+' conftest.er1 >conftest.err
4160   rm -f conftest.er1
4161   cat conftest.err >&5
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); } &&
4164          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166   (eval $ac_try) 2>&5
4167   ac_status=$?
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); }; } &&
4170          { ac_try='test -s conftest$ac_exeext'
4171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172   (eval $ac_try) 2>&5
4173   ac_status=$?
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); }; }; then
4176   lt_cv_cc_needs_belf=yes
4177 else
4178   echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181 lt_cv_cc_needs_belf=no
4182 fi
4183 rm -f conftest.err conftest.$ac_objext \
4184       conftest$ac_exeext conftest.$ac_ext
4185      ac_ext=c
4186 ac_cpp='$CPP $CPPFLAGS'
4187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190
4191 fi
4192 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4193 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4194   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4195     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4196     CFLAGS="$SAVE_CFLAGS"
4197   fi
4198   ;;
4199
4200
4201 esac
4202
4203
4204 # Save cache, so that ltconfig can load it
4205 cat >confcache <<\_ACEOF
4206 # This file is a shell script that caches the results of configure
4207 # tests run on this system so they can be shared between configure
4208 # scripts and configure runs, see configure's option --config-cache.
4209 # It is not useful on other systems.  If it contains results you don't
4210 # want to keep, you may remove or edit it.
4211 #
4212 # config.status only pays attention to the cache file if you give it
4213 # the --recheck option to rerun configure.
4214 #
4215 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4216 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4217 # following values.
4218
4219 _ACEOF
4220
4221 # The following way of writing the cache mishandles newlines in values,
4222 # but we know of no workaround that is simple, portable, and efficient.
4223 # So, don't put newlines in cache variables' values.
4224 # Ultrix sh set writes to stderr and can't be redirected directly,
4225 # and sets the high bit in the cache file unless we assign to the vars.
4226 {
4227   (set) 2>&1 |
4228     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4229     *ac_space=\ *)
4230       # `set' does not quote correctly, so add quotes (double-quote
4231       # substitution turns \\\\ into \\, and sed turns \\ into \).
4232       sed -n \
4233         "s/'/'\\\\''/g;
4234           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4235       ;;
4236     *)
4237       # `set' quotes correctly as required by POSIX, so do not add quotes.
4238       sed -n \
4239         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4240       ;;
4241     esac;
4242 } |
4243   sed '
4244      t clear
4245      : clear
4246      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4247      t end
4248      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4249      : end' >>confcache
4250 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4251   if test -w $cache_file; then
4252     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4253     cat confcache >$cache_file
4254   else
4255     echo "not updating unwritable cache $cache_file"
4256   fi
4257 fi
4258 rm -f confcache
4259
4260 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4261 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4262 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4263 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4264 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4265 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4266 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4267 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4268 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4269 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4270 echo "$as_me: error: libtool configure failed" >&2;}
4271    { (exit 1); exit 1; }; }
4272
4273 # Reload cache, that may have been modified by ltconfig
4274 if test -r "$cache_file"; then
4275   # Some versions of bash will fail to source /dev/null (special
4276   # files actually), so we avoid doing that.
4277   if test -f "$cache_file"; then
4278     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4279 echo "$as_me: loading cache $cache_file" >&6;}
4280     case $cache_file in
4281       [\\/]* | ?:[\\/]* ) . $cache_file;;
4282       *)                      . ./$cache_file;;
4283     esac
4284   fi
4285 else
4286   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4287 echo "$as_me: creating cache $cache_file" >&6;}
4288   >$cache_file
4289 fi
4290
4291
4292 # This can be used to rebuild libtool when needed
4293 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4294
4295 # Always use our own libtool.
4296 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4297
4298 # Redirect the config.log output again, so that the ltconfig log is not
4299 # clobbered by the next message.
4300 exec 5>>./config.log
4301
4302
4303
4304
4305
4306
4307
4308
4309 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4310
4311 # We need gfortran to compile parts of the library
4312 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4313 #AC_PROG_FC(gfortran)
4314 FC="$GFORTRAN"
4315 ac_ext=${FC_SRCEXT-f}
4316 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4317 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4319 if test -n "$ac_tool_prefix"; then
4320   for ac_prog in gfortran
4321   do
4322     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4324 echo "$as_me:$LINENO: checking for $ac_word" >&5
4325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4326 if test "${ac_cv_prog_FC+set}" = set; then
4327   echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329   if test -n "$FC"; then
4330   ac_cv_prog_FC="$FC" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4334 do
4335   IFS=$as_save_IFS
4336   test -z "$as_dir" && as_dir=.
4337   for ac_exec_ext in '' $ac_executable_extensions; do
4338   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4339     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341     break 2
4342   fi
4343 done
4344 done
4345
4346 fi
4347 fi
4348 FC=$ac_cv_prog_FC
4349 if test -n "$FC"; then
4350   echo "$as_me:$LINENO: result: $FC" >&5
4351 echo "${ECHO_T}$FC" >&6
4352 else
4353   echo "$as_me:$LINENO: result: no" >&5
4354 echo "${ECHO_T}no" >&6
4355 fi
4356
4357     test -n "$FC" && break
4358   done
4359 fi
4360 if test -z "$FC"; then
4361   ac_ct_FC=$FC
4362   for ac_prog in gfortran
4363 do
4364   # Extract the first word of "$ac_prog", so it can be a program name with args.
4365 set dummy $ac_prog; ac_word=$2
4366 echo "$as_me:$LINENO: checking for $ac_word" >&5
4367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4368 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   if test -n "$ac_ct_FC"; then
4372   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4373 else
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377   IFS=$as_save_IFS
4378   test -z "$as_dir" && as_dir=.
4379   for ac_exec_ext in '' $ac_executable_extensions; do
4380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381     ac_cv_prog_ac_ct_FC="$ac_prog"
4382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4383     break 2
4384   fi
4385 done
4386 done
4387
4388 fi
4389 fi
4390 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4391 if test -n "$ac_ct_FC"; then
4392   echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4393 echo "${ECHO_T}$ac_ct_FC" >&6
4394 else
4395   echo "$as_me:$LINENO: result: no" >&5
4396 echo "${ECHO_T}no" >&6
4397 fi
4398
4399   test -n "$ac_ct_FC" && break
4400 done
4401
4402   FC=$ac_ct_FC
4403 fi
4404
4405
4406 # Provide some information about the compiler.
4407 echo "$as_me:4407:" \
4408      "checking for Fortran compiler version" >&5
4409 ac_compiler=`set X $ac_compile; echo $2`
4410 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4411   (eval $ac_compiler --version </dev/null >&5) 2>&5
4412   ac_status=$?
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); }
4415 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4416   (eval $ac_compiler -v </dev/null >&5) 2>&5
4417   ac_status=$?
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); }
4420 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4421   (eval $ac_compiler -V </dev/null >&5) 2>&5
4422   ac_status=$?
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); }
4425 rm -f a.out
4426
4427 # If we don't use `.F' as extension, the preprocessor is not run on the
4428 # input file.  (Note that this only needs to work for GNU compilers.)
4429 ac_save_ext=$ac_ext
4430 ac_ext=F
4431 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4432 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4433 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4434   echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436   cat >conftest.$ac_ext <<_ACEOF
4437       program main
4438 #ifndef __GNUC__
4439        choke me
4440 #endif
4441
4442       end
4443 _ACEOF
4444 rm -f conftest.$ac_objext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446   (eval $ac_compile) 2>conftest.er1
4447   ac_status=$?
4448   grep -v '^ *+' conftest.er1 >conftest.err
4449   rm -f conftest.er1
4450   cat conftest.err >&5
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); } &&
4453          { ac_try='test -z "$ac_fc_werror_flag"                  || test ! -s conftest.err'
4454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455   (eval $ac_try) 2>&5
4456   ac_status=$?
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); }; } &&
4459          { ac_try='test -s conftest.$ac_objext'
4460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461   (eval $ac_try) 2>&5
4462   ac_status=$?
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); }; }; then
4465   ac_compiler_gnu=yes
4466 else
4467   echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4469
4470 ac_compiler_gnu=no
4471 fi
4472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4473 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4474
4475 fi
4476 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4477 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4478 ac_ext=$ac_save_ext
4479 ac_test_FFLAGS=${FCFLAGS+set}
4480 ac_save_FFLAGS=$FCFLAGS
4481 FCFLAGS=
4482 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4483 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4484 if test "${ac_cv_prog_fc_g+set}" = set; then
4485   echo $ECHO_N "(cached) $ECHO_C" >&6
4486 else
4487   FCFLAGS=-g
4488 cat >conftest.$ac_ext <<_ACEOF
4489       program main
4490
4491       end
4492 _ACEOF
4493 rm -f conftest.$ac_objext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4495   (eval $ac_compile) 2>conftest.er1
4496   ac_status=$?
4497   grep -v '^ *+' conftest.er1 >conftest.err
4498   rm -f conftest.er1
4499   cat conftest.err >&5
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); } &&
4502          { ac_try='test -z "$ac_fc_werror_flag"                  || test ! -s conftest.err'
4503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504   (eval $ac_try) 2>&5
4505   ac_status=$?
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); }; } &&
4508          { ac_try='test -s conftest.$ac_objext'
4509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510   (eval $ac_try) 2>&5
4511   ac_status=$?
4512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513   (exit $ac_status); }; }; then
4514   ac_cv_prog_fc_g=yes
4515 else
4516   echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4518
4519 ac_cv_prog_fc_g=no
4520 fi
4521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4522
4523 fi
4524 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4525 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4526 if test "$ac_test_FFLAGS" = set; then
4527   FCFLAGS=$ac_save_FFLAGS
4528 elif test $ac_cv_prog_fc_g = yes; then
4529   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4530     FCFLAGS="-g -O2"
4531   else
4532     FCFLAGS="-g"
4533   fi
4534 else
4535   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4536     FCFLAGS="-O2"
4537   else
4538     FCFLAGS=
4539   fi
4540 fi
4541
4542 ac_ext=c
4543 ac_cpp='$CPP $CPPFLAGS'
4544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547
4548 FCFLAGS="$FCFLAGS -Wall -fno-repack-arrays -fno-underscoring"
4549
4550 # Check whether --enable-largefile or --disable-largefile was given.
4551 if test "${enable_largefile+set}" = set; then
4552   enableval="$enable_largefile"
4553
4554 fi;
4555 if test "$enable_largefile" != no; then
4556
4557   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4558 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4559 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4560   echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562   ac_cv_sys_largefile_CC=no
4563      if test "$GCC" != yes; then
4564        ac_save_CC=$CC
4565        while :; do
4566          # IRIX 6.2 and later do not support large files by default,
4567          # so use the C compiler's -n32 option if that helps.
4568          cat >conftest.$ac_ext <<_ACEOF
4569 /* confdefs.h.  */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h.  */
4574 #include <sys/types.h>
4575  /* Check that off_t can represent 2**63 - 1 correctly.
4576     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4577     since some C++ compilers masquerading as C compilers
4578     incorrectly reject 9223372036854775807.  */
4579 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4580   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4581                        && LARGE_OFF_T % 2147483647 == 1)
4582                       ? 1 : -1];
4583 int
4584 main ()
4585 {
4586
4587   ;
4588   return 0;
4589 }
4590 _ACEOF
4591          rm -f conftest.$ac_objext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593   (eval $ac_compile) 2>conftest.er1
4594   ac_status=$?
4595   grep -v '^ *+' conftest.er1 >conftest.err
4596   rm -f conftest.er1
4597   cat conftest.err >&5
4598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599   (exit $ac_status); } &&
4600          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602   (eval $ac_try) 2>&5
4603   ac_status=$?
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); }; } &&
4606          { ac_try='test -s conftest.$ac_objext'
4607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608   (eval $ac_try) 2>&5
4609   ac_status=$?
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); }; }; then
4612   break
4613 else
4614   echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4616
4617 fi
4618 rm -f conftest.err conftest.$ac_objext
4619          CC="$CC -n32"
4620          rm -f conftest.$ac_objext
4621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4622   (eval $ac_compile) 2>conftest.er1
4623   ac_status=$?
4624   grep -v '^ *+' conftest.er1 >conftest.err
4625   rm -f conftest.er1
4626   cat conftest.err >&5
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); } &&
4629          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631   (eval $ac_try) 2>&5
4632   ac_status=$?
4633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634   (exit $ac_status); }; } &&
4635          { ac_try='test -s conftest.$ac_objext'
4636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637   (eval $ac_try) 2>&5
4638   ac_status=$?
4639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640   (exit $ac_status); }; }; then
4641   ac_cv_sys_largefile_CC=' -n32'; break
4642 else
4643   echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4645
4646 fi
4647 rm -f conftest.err conftest.$ac_objext
4648          break
4649        done
4650        CC=$ac_save_CC
4651        rm -f conftest.$ac_ext
4652     fi
4653 fi
4654 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4655 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4656   if test "$ac_cv_sys_largefile_CC" != no; then
4657     CC=$CC$ac_cv_sys_largefile_CC
4658   fi
4659
4660   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4661 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4662 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4663   echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665   while :; do
4666   ac_cv_sys_file_offset_bits=no
4667   cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h.  */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h.  */
4673 #include <sys/types.h>
4674  /* Check that off_t can represent 2**63 - 1 correctly.
4675     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4676     since some C++ compilers masquerading as C compilers
4677     incorrectly reject 9223372036854775807.  */
4678 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4679   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4680                        && LARGE_OFF_T % 2147483647 == 1)
4681                       ? 1 : -1];
4682 int
4683 main ()
4684 {
4685
4686   ;
4687   return 0;
4688 }
4689 _ACEOF
4690 rm -f conftest.$ac_objext
4691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4692   (eval $ac_compile) 2>conftest.er1
4693   ac_status=$?
4694   grep -v '^ *+' conftest.er1 >conftest.err
4695   rm -f conftest.er1
4696   cat conftest.err >&5
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); } &&
4699          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701   (eval $ac_try) 2>&5
4702   ac_status=$?
4703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704   (exit $ac_status); }; } &&
4705          { ac_try='test -s conftest.$ac_objext'
4706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707   (eval $ac_try) 2>&5
4708   ac_status=$?
4709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710   (exit $ac_status); }; }; then
4711   break
4712 else
4713   echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4715
4716 fi
4717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4718   cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h.  */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h.  */
4724 #define _FILE_OFFSET_BITS 64
4725 #include <sys/types.h>
4726  /* Check that off_t can represent 2**63 - 1 correctly.
4727     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4728     since some C++ compilers masquerading as C compilers
4729     incorrectly reject 9223372036854775807.  */
4730 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4731   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4732                        && LARGE_OFF_T % 2147483647 == 1)
4733                       ? 1 : -1];
4734 int
4735 main ()
4736 {
4737
4738   ;
4739   return 0;
4740 }
4741 _ACEOF
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"                   || test ! -s conftest.err'
4752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753   (eval $ac_try) 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); }; } &&
4757          { ac_try='test -s conftest.$ac_objext'
4758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759   (eval $ac_try) 2>&5
4760   ac_status=$?
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); }; }; then
4763   ac_cv_sys_file_offset_bits=64; break
4764 else
4765   echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4767
4768 fi
4769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4770   break
4771 done
4772 fi
4773 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4774 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4775 if test "$ac_cv_sys_file_offset_bits" != no; then
4776
4777 cat >>confdefs.h <<_ACEOF
4778 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4779 _ACEOF
4780
4781 fi
4782 rm -f conftest*
4783   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4784 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4785 if test "${ac_cv_sys_large_files+set}" = set; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788   while :; do
4789   ac_cv_sys_large_files=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"                   || test ! -s conftest.err'
4823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824   (eval $ac_try) 2>&5
4825   ac_status=$?
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); }; } &&
4828          { ac_try='test -s conftest.$ac_objext'
4829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830   (eval $ac_try) 2>&5
4831   ac_status=$?
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); }; }; then
4834   break
4835 else
4836   echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4838
4839 fi
4840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4841   cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h.  */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h.  */
4847 #define _LARGE_FILES 1
4848 #include <sys/types.h>
4849  /* Check that off_t can represent 2**63 - 1 correctly.
4850     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4851     since some C++ compilers masquerading as C compilers
4852     incorrectly reject 9223372036854775807.  */
4853 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4854   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4855                        && LARGE_OFF_T % 2147483647 == 1)
4856                       ? 1 : -1];
4857 int
4858 main ()
4859 {
4860
4861   ;
4862   return 0;
4863 }
4864 _ACEOF
4865 rm -f conftest.$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867   (eval $ac_compile) 2>conftest.er1
4868   ac_status=$?
4869   grep -v '^ *+' conftest.er1 >conftest.err
4870   rm -f conftest.er1
4871   cat conftest.err >&5
4872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873   (exit $ac_status); } &&
4874          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876   (eval $ac_try) 2>&5
4877   ac_status=$?
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); }; } &&
4880          { ac_try='test -s conftest.$ac_objext'
4881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882   (eval $ac_try) 2>&5
4883   ac_status=$?
4884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); }; }; then
4886   ac_cv_sys_large_files=1; break
4887 else
4888   echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891 fi
4892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4893   break
4894 done
4895 fi
4896 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4897 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4898 if test "$ac_cv_sys_large_files" != no; then
4899
4900 cat >>confdefs.h <<_ACEOF
4901 #define _LARGE_FILES $ac_cv_sys_large_files
4902 _ACEOF
4903
4904 fi
4905 rm -f conftest*
4906 fi
4907
4908 ac_ext=c
4909 ac_cpp='$CPP $CPPFLAGS'
4910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4914 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4915 # On Suns, sometimes $CPP names a directory.
4916 if test -n "$CPP" && test -d "$CPP"; then
4917   CPP=
4918 fi
4919 if test -z "$CPP"; then
4920   if test "${ac_cv_prog_CPP+set}" = set; then
4921   echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923       # Double quotes because CPP needs to be expanded
4924     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4925     do
4926       ac_preproc_ok=false
4927 for ac_c_preproc_warn_flag in '' yes
4928 do
4929   # Use a header file that comes with gcc, so configuring glibc
4930   # with a fresh cross-compiler works.
4931   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4932   # <limits.h> exists even on freestanding compilers.
4933   # On the NeXT, cc -E runs the code through the compiler's parser,
4934   # not just through cpp. "Syntax error" is here to catch this case.
4935   cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h.  */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h.  */
4941 #ifdef __STDC__
4942 # include <limits.h>
4943 #else
4944 # include <assert.h>
4945 #endif
4946                      Syntax error
4947 _ACEOF
4948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4950   ac_status=$?
4951   grep -v '^ *+' conftest.er1 >conftest.err
4952   rm -f conftest.er1
4953   cat conftest.err >&5
4954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955   (exit $ac_status); } >/dev/null; then
4956   if test -s conftest.err; then
4957     ac_cpp_err=$ac_c_preproc_warn_flag
4958     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4959   else
4960     ac_cpp_err=
4961   fi
4962 else
4963   ac_cpp_err=yes
4964 fi
4965 if test -z "$ac_cpp_err"; then
4966   :
4967 else
4968   echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4970
4971   # Broken: fails on valid input.
4972 continue
4973 fi
4974 rm -f conftest.err conftest.$ac_ext
4975
4976   # OK, works on sane cases.  Now check whether non-existent headers
4977   # can be detected and how.
4978   cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h.  */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h.  */
4984 #include <ac_nonexistent.h>
4985 _ACEOF
4986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4988   ac_status=$?
4989   grep -v '^ *+' conftest.er1 >conftest.err
4990   rm -f conftest.er1
4991   cat conftest.err >&5
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); } >/dev/null; then
4994   if test -s conftest.err; then
4995     ac_cpp_err=$ac_c_preproc_warn_flag
4996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4997   else
4998     ac_cpp_err=
4999   fi
5000 else
5001   ac_cpp_err=yes
5002 fi
5003 if test -z "$ac_cpp_err"; then
5004   # Broken: success on invalid input.
5005 continue
5006 else
5007   echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5009
5010   # Passes both tests.
5011 ac_preproc_ok=:
5012 break
5013 fi
5014 rm -f conftest.err conftest.$ac_ext
5015
5016 done
5017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5018 rm -f conftest.err conftest.$ac_ext
5019 if $ac_preproc_ok; then
5020   break
5021 fi
5022
5023     done
5024     ac_cv_prog_CPP=$CPP
5025
5026 fi
5027   CPP=$ac_cv_prog_CPP
5028 else
5029   ac_cv_prog_CPP=$CPP
5030 fi
5031 echo "$as_me:$LINENO: result: $CPP" >&5
5032 echo "${ECHO_T}$CPP" >&6
5033 ac_preproc_ok=false
5034 for ac_c_preproc_warn_flag in '' yes
5035 do
5036   # Use a header file that comes with gcc, so configuring glibc
5037   # with a fresh cross-compiler works.
5038   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039   # <limits.h> exists even on freestanding compilers.
5040   # On the NeXT, cc -E runs the code through the compiler's parser,
5041   # not just through cpp. "Syntax error" is here to catch this case.
5042   cat >conftest.$ac_ext <<_ACEOF
5043 /* confdefs.h.  */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h.  */
5048 #ifdef __STDC__
5049 # include <limits.h>
5050 #else
5051 # include <assert.h>
5052 #endif
5053                      Syntax error
5054 _ACEOF
5055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5057   ac_status=$?
5058   grep -v '^ *+' conftest.er1 >conftest.err
5059   rm -f conftest.er1
5060   cat conftest.err >&5
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); } >/dev/null; then
5063   if test -s conftest.err; then
5064     ac_cpp_err=$ac_c_preproc_warn_flag
5065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5066   else
5067     ac_cpp_err=
5068   fi
5069 else
5070   ac_cpp_err=yes
5071 fi
5072 if test -z "$ac_cpp_err"; then
5073   :
5074 else
5075   echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078   # Broken: fails on valid input.
5079 continue
5080 fi
5081 rm -f conftest.err conftest.$ac_ext
5082
5083   # OK, works on sane cases.  Now check whether non-existent headers
5084   # can be detected and how.
5085   cat >conftest.$ac_ext <<_ACEOF
5086 /* confdefs.h.  */
5087 _ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h.  */
5091 #include <ac_nonexistent.h>
5092 _ACEOF
5093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5095   ac_status=$?
5096   grep -v '^ *+' conftest.er1 >conftest.err
5097   rm -f conftest.er1
5098   cat conftest.err >&5
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); } >/dev/null; then
5101   if test -s conftest.err; then
5102     ac_cpp_err=$ac_c_preproc_warn_flag
5103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5104   else
5105     ac_cpp_err=
5106   fi
5107 else
5108   ac_cpp_err=yes
5109 fi
5110 if test -z "$ac_cpp_err"; then
5111   # Broken: success on invalid input.
5112 continue
5113 else
5114   echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5116
5117   # Passes both tests.
5118 ac_preproc_ok=:
5119 break
5120 fi
5121 rm -f conftest.err conftest.$ac_ext
5122
5123 done
5124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5125 rm -f conftest.err conftest.$ac_ext
5126 if $ac_preproc_ok; then
5127   :
5128 else
5129   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5130 See \`config.log' for more details." >&5
5131 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5132 See \`config.log' for more details." >&2;}
5133    { (exit 1); exit 1; }; }
5134 fi
5135
5136 ac_ext=c
5137 ac_cpp='$CPP $CPPFLAGS'
5138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5141
5142
5143 echo "$as_me:$LINENO: checking for egrep" >&5
5144 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5145 if test "${ac_cv_prog_egrep+set}" = set; then
5146   echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5149     then ac_cv_prog_egrep='grep -E'
5150     else ac_cv_prog_egrep='egrep'
5151     fi
5152 fi
5153 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5154 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5155  EGREP=$ac_cv_prog_egrep
5156
5157
5158 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5159 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5160 if test "${ac_cv_header_stdc+set}" = set; then
5161   echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163   cat >conftest.$ac_ext <<_ACEOF
5164 /* confdefs.h.  */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h.  */
5169 #include <stdlib.h>
5170 #include <stdarg.h>
5171 #include <string.h>
5172 #include <float.h>
5173
5174 int
5175 main ()
5176 {
5177
5178   ;
5179   return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest.$ac_objext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184   (eval $ac_compile) 2>conftest.er1
5185   ac_status=$?
5186   grep -v '^ *+' conftest.er1 >conftest.err
5187   rm -f conftest.er1
5188   cat conftest.err >&5
5189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190   (exit $ac_status); } &&
5191          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193   (eval $ac_try) 2>&5
5194   ac_status=$?
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); }; } &&
5197          { ac_try='test -s conftest.$ac_objext'
5198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199   (eval $ac_try) 2>&5
5200   ac_status=$?
5201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202   (exit $ac_status); }; }; then
5203   ac_cv_header_stdc=yes
5204 else
5205   echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5207
5208 ac_cv_header_stdc=no
5209 fi
5210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5211
5212 if test $ac_cv_header_stdc = yes; then
5213   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5214   cat >conftest.$ac_ext <<_ACEOF
5215 /* confdefs.h.  */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h.  */
5220 #include <string.h>
5221
5222 _ACEOF
5223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5224   $EGREP "memchr" >/dev/null 2>&1; then
5225   :
5226 else
5227   ac_cv_header_stdc=no
5228 fi
5229 rm -f conftest*
5230
5231 fi
5232
5233 if test $ac_cv_header_stdc = yes; then
5234   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5235   cat >conftest.$ac_ext <<_ACEOF
5236 /* confdefs.h.  */
5237 _ACEOF
5238 cat confdefs.h >>conftest.$ac_ext
5239 cat >>conftest.$ac_ext <<_ACEOF
5240 /* end confdefs.h.  */
5241 #include <stdlib.h>
5242
5243 _ACEOF
5244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5245   $EGREP "free" >/dev/null 2>&1; then
5246   :
5247 else
5248   ac_cv_header_stdc=no
5249 fi
5250 rm -f conftest*
5251
5252 fi
5253
5254 if test $ac_cv_header_stdc = yes; then
5255   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5256   if test "$cross_compiling" = yes; then
5257   :
5258 else
5259   cat >conftest.$ac_ext <<_ACEOF
5260 /* confdefs.h.  */
5261 _ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h.  */
5265 #include <ctype.h>
5266 #if ((' ' & 0x0FF) == 0x020)
5267 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5268 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5269 #else
5270 # define ISLOWER(c) \
5271                    (('a' <= (c) && (c) <= 'i') \
5272                      || ('j' <= (c) && (c) <= 'r') \
5273                      || ('s' <= (c) && (c) <= 'z'))
5274 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5275 #endif
5276
5277 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5278 int
5279 main ()
5280 {
5281   int i;
5282   for (i = 0; i < 256; i++)
5283     if (XOR (islower (i), ISLOWER (i))
5284         || toupper (i) != TOUPPER (i))
5285       exit(2);
5286   exit (0);
5287 }
5288 _ACEOF
5289 rm -f conftest$ac_exeext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5291   (eval $ac_link) 2>&5
5292   ac_status=$?
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296   (eval $ac_try) 2>&5
5297   ac_status=$?
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); }; }; then
5300   :
5301 else
5302   echo "$as_me: program exited with status $ac_status" >&5
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5305
5306 ( exit $ac_status )
5307 ac_cv_header_stdc=no
5308 fi
5309 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5310 fi
5311 fi
5312 fi
5313 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5314 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5315 if test $ac_cv_header_stdc = yes; then
5316
5317 cat >>confdefs.h <<\_ACEOF
5318 #define STDC_HEADERS 1
5319 _ACEOF
5320
5321 fi
5322
5323 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5334                   inttypes.h stdint.h unistd.h
5335 do
5336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5337 echo "$as_me:$LINENO: checking for $ac_header" >&5
5338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342   cat >conftest.$ac_ext <<_ACEOF
5343 /* confdefs.h.  */
5344 _ACEOF
5345 cat confdefs.h >>conftest.$ac_ext
5346 cat >>conftest.$ac_ext <<_ACEOF
5347 /* end confdefs.h.  */
5348 $ac_includes_default
5349
5350 #include <$ac_header>
5351 _ACEOF
5352 rm -f conftest.$ac_objext
5353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5354   (eval $ac_compile) 2>conftest.er1
5355   ac_status=$?
5356   grep -v '^ *+' conftest.er1 >conftest.err
5357   rm -f conftest.er1
5358   cat conftest.err >&5
5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); } &&
5361          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363   (eval $ac_try) 2>&5
5364   ac_status=$?
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); }; } &&
5367          { ac_try='test -s conftest.$ac_objext'
5368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369   (eval $ac_try) 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); }; }; then
5373   eval "$as_ac_Header=yes"
5374 else
5375   echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5377
5378 eval "$as_ac_Header=no"
5379 fi
5380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5381 fi
5382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5385   cat >>confdefs.h <<_ACEOF
5386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5387 _ACEOF
5388
5389 fi
5390
5391 done
5392
5393
5394
5395
5396 for ac_header in stdlib.h unistd.h
5397 do
5398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5400   echo "$as_me:$LINENO: checking for $ac_header" >&5
5401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5403   echo $ECHO_N "(cached) $ECHO_C" >&6
5404 fi
5405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5407 else
5408   # Is the header compilable?
5409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5411 cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h.  */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h.  */
5417 $ac_includes_default
5418 #include <$ac_header>
5419 _ACEOF
5420 rm -f conftest.$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422   (eval $ac_compile) 2>conftest.er1
5423   ac_status=$?
5424   grep -v '^ *+' conftest.er1 >conftest.err
5425   rm -f conftest.er1
5426   cat conftest.err >&5
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); } &&
5429          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431   (eval $ac_try) 2>&5
5432   ac_status=$?
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); }; } &&
5435          { ac_try='test -s conftest.$ac_objext'
5436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437   (eval $ac_try) 2>&5
5438   ac_status=$?
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); }; }; then
5441   ac_header_compiler=yes
5442 else
5443   echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446 ac_header_compiler=no
5447 fi
5448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5450 echo "${ECHO_T}$ac_header_compiler" >&6
5451
5452 # Is the header present?
5453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h.  */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h.  */
5461 #include <$ac_header>
5462 _ACEOF
5463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5465   ac_status=$?
5466   grep -v '^ *+' conftest.er1 >conftest.err
5467   rm -f conftest.er1
5468   cat conftest.err >&5
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); } >/dev/null; then
5471   if test -s conftest.err; then
5472     ac_cpp_err=$ac_c_preproc_warn_flag
5473     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5474   else
5475     ac_cpp_err=
5476   fi
5477 else
5478   ac_cpp_err=yes
5479 fi
5480 if test -z "$ac_cpp_err"; then
5481   ac_header_preproc=yes
5482 else
5483   echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5485
5486   ac_header_preproc=no
5487 fi
5488 rm -f conftest.err conftest.$ac_ext
5489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5490 echo "${ECHO_T}$ac_header_preproc" >&6
5491
5492 # So?  What about this header?
5493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5494   yes:no: )
5495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5499     ac_header_preproc=yes
5500     ;;
5501   no:yes:* )
5502     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5504     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5505 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5506     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5508     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5509 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5512     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5514     (
5515       cat <<\_ASBOX
5516 ## ------------------------------------------------------ ##
5517 ## Report this to the GNU Fortran Runtime Library lists.  ##
5518 ## ------------------------------------------------------ ##
5519 _ASBOX
5520     ) |
5521       sed "s/^/$as_me: WARNING:     /" >&2
5522     ;;
5523 esac
5524 echo "$as_me:$LINENO: checking for $ac_header" >&5
5525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5527   echo $ECHO_N "(cached) $ECHO_C" >&6
5528 else
5529   eval "$as_ac_Header=\$ac_header_preproc"
5530 fi
5531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5533
5534 fi
5535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5536   cat >>confdefs.h <<_ACEOF
5537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5538 _ACEOF
5539
5540 fi
5541
5542 done
5543
5544
5545 for ac_func in getpagesize
5546 do
5547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5548 echo "$as_me:$LINENO: checking for $ac_func" >&5
5549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5550 if eval "test \"\${$as_ac_var+set}\" = set"; then
5551   echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553   cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h.  */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h.  */
5559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5561 #define $ac_func innocuous_$ac_func
5562
5563 /* System header to define __stub macros and hopefully few prototypes,
5564     which can conflict with char $ac_func (); below.
5565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5566     <limits.h> exists even on freestanding compilers.  */
5567
5568 #ifdef __STDC__
5569 # include <limits.h>
5570 #else
5571 # include <assert.h>
5572 #endif
5573
5574 #undef $ac_func
5575
5576 /* Override any gcc2 internal prototype to avoid an error.  */
5577 #ifdef __cplusplus
5578 extern "C"
5579 {
5580 #endif
5581 /* We use char because int might match the return type of a gcc2
5582    builtin and then its argument prototype would still apply.  */
5583 char $ac_func ();
5584 /* The GNU C library defines this for functions which it implements
5585     to always fail with ENOSYS.  Some functions are actually named
5586     something starting with __ and the normal name is an alias.  */
5587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5588 choke me
5589 #else
5590 char (*f) () = $ac_func;
5591 #endif
5592 #ifdef __cplusplus
5593 }
5594 #endif
5595
5596 int
5597 main ()
5598 {
5599 return f != $ac_func;
5600   ;
5601   return 0;
5602 }
5603 _ACEOF
5604 rm -f conftest.$ac_objext conftest$ac_exeext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606   (eval $ac_link) 2>conftest.er1
5607   ac_status=$?
5608   grep -v '^ *+' conftest.er1 >conftest.err
5609   rm -f conftest.er1
5610   cat conftest.err >&5
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); } &&
5613          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615   (eval $ac_try) 2>&5
5616   ac_status=$?
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); }; } &&
5619          { ac_try='test -s conftest$ac_exeext'
5620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621   (eval $ac_try) 2>&5
5622   ac_status=$?
5623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); }; }; then
5625   eval "$as_ac_var=yes"
5626 else
5627   echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5629
5630 eval "$as_ac_var=no"
5631 fi
5632 rm -f conftest.err conftest.$ac_objext \
5633       conftest$ac_exeext conftest.$ac_ext
5634 fi
5635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5637 if test `eval echo '${'$as_ac_var'}'` = yes; then
5638   cat >>confdefs.h <<_ACEOF
5639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5640 _ACEOF
5641
5642 fi
5643 done
5644
5645 echo "$as_me:$LINENO: checking for working mmap" >&5
5646 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5647 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5648   echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650   if test "$cross_compiling" = yes; then
5651   ac_cv_func_mmap_fixed_mapped=no
5652 else
5653   cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h.  */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h.  */
5659 $ac_includes_default
5660 /* malloc might have been renamed as rpl_malloc. */
5661 #undef malloc
5662
5663 /* Thanks to Mike Haertel and Jim Avera for this test.
5664    Here is a matrix of mmap possibilities:
5665         mmap private not fixed
5666         mmap private fixed at somewhere currently unmapped
5667         mmap private fixed at somewhere already mapped
5668         mmap shared not fixed
5669         mmap shared fixed at somewhere currently unmapped
5670         mmap shared fixed at somewhere already mapped
5671    For private mappings, we should verify that changes cannot be read()
5672    back from the file, nor mmap's back from the file at a different
5673    address.  (There have been systems where private was not correctly
5674    implemented like the infamous i386 svr4.0, and systems where the
5675    VM page cache was not coherent with the file system buffer cache
5676    like early versions of FreeBSD and possibly contemporary NetBSD.)
5677    For shared mappings, we should conversely verify that changes get
5678    propagated back to all the places they're supposed to be.
5679
5680    Grep wants private fixed already mapped.
5681    The main things grep needs to know about mmap are:
5682    * does it exist and is it safe to write into the mmap'd area
5683    * how to use it (BSD variants)  */
5684
5685 #include <fcntl.h>
5686 #include <sys/mman.h>
5687
5688 #if !STDC_HEADERS && !HAVE_STDLIB_H
5689 char *malloc ();
5690 #endif
5691
5692 /* This mess was copied from the GNU getpagesize.h.  */
5693 #if !HAVE_GETPAGESIZE
5694 /* Assume that all systems that can run configure have sys/param.h.  */
5695 # if !HAVE_SYS_PARAM_H
5696 #  define HAVE_SYS_PARAM_H 1
5697 # endif
5698
5699 # ifdef _SC_PAGESIZE
5700 #  define getpagesize() sysconf(_SC_PAGESIZE)
5701 # else /* no _SC_PAGESIZE */
5702 #  if HAVE_SYS_PARAM_H
5703 #   include <sys/param.h>
5704 #   ifdef EXEC_PAGESIZE
5705 #    define getpagesize() EXEC_PAGESIZE
5706 #   else /* no EXEC_PAGESIZE */
5707 #    ifdef NBPG
5708 #     define getpagesize() NBPG * CLSIZE
5709 #     ifndef CLSIZE
5710 #      define CLSIZE 1
5711 #     endif /* no CLSIZE */
5712 #    else /* no NBPG */
5713 #     ifdef NBPC
5714 #      define getpagesize() NBPC
5715 #     else /* no NBPC */
5716 #      ifdef PAGESIZE
5717 #       define getpagesize() PAGESIZE
5718 #      endif /* PAGESIZE */
5719 #     endif /* no NBPC */
5720 #    endif /* no NBPG */
5721 #   endif /* no EXEC_PAGESIZE */
5722 #  else /* no HAVE_SYS_PARAM_H */
5723 #   define getpagesize() 8192   /* punt totally */
5724 #  endif /* no HAVE_SYS_PARAM_H */
5725 # endif /* no _SC_PAGESIZE */
5726
5727 #endif /* no HAVE_GETPAGESIZE */
5728
5729 int
5730 main ()
5731 {
5732   char *data, *data2, *data3;
5733   int i, pagesize;
5734   int fd;
5735
5736   pagesize = getpagesize ();
5737
5738   /* First, make a file with some known garbage in it. */
5739   data = (char *) malloc (pagesize);
5740   if (!data)
5741     exit (1);
5742   for (i = 0; i < pagesize; ++i)
5743     *(data + i) = rand ();
5744   umask (0);
5745   fd = creat ("conftest.mmap", 0600);
5746   if (fd < 0)
5747     exit (1);
5748   if (write (fd, data, pagesize) != pagesize)
5749     exit (1);
5750   close (fd);
5751
5752   /* Next, try to mmap the file at a fixed address which already has
5753      something else allocated at it.  If we can, also make sure that
5754      we see the same garbage.  */
5755   fd = open ("conftest.mmap", O_RDWR);
5756   if (fd < 0)
5757     exit (1);
5758   data2 = (char *) malloc (2 * pagesize);
5759   if (!data2)
5760     exit (1);
5761   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5762   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5763                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
5764     exit (1);
5765   for (i = 0; i < pagesize; ++i)
5766     if (*(data + i) != *(data2 + i))
5767       exit (1);
5768
5769   /* Finally, make sure that changes to the mapped area do not
5770      percolate back to the file as seen by read().  (This is a bug on
5771      some variants of i386 svr4.0.)  */
5772   for (i = 0; i < pagesize; ++i)
5773     *(data2 + i) = *(data2 + i) + 1;
5774   data3 = (char *) malloc (pagesize);
5775   if (!data3)
5776     exit (1);
5777   if (read (fd, data3, pagesize) != pagesize)
5778     exit (1);
5779   for (i = 0; i < pagesize; ++i)
5780     if (*(data + i) != *(data3 + i))
5781       exit (1);
5782   close (fd);
5783   exit (0);
5784 }
5785 _ACEOF
5786 rm -f conftest$ac_exeext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5788   (eval $ac_link) 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793   (eval $ac_try) 2>&5
5794   ac_status=$?
5795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); }; }; then
5797   ac_cv_func_mmap_fixed_mapped=yes
5798 else
5799   echo "$as_me: program exited with status $ac_status" >&5
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5802
5803 ( exit $ac_status )
5804 ac_cv_func_mmap_fixed_mapped=no
5805 fi
5806 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5807 fi
5808 fi
5809 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5810 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5811 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5812
5813 cat >>confdefs.h <<\_ACEOF
5814 #define HAVE_MMAP 1
5815 _ACEOF
5816
5817 fi
5818 rm -f conftest.mmap
5819
5820 echo "$as_me:$LINENO: checking for off_t" >&5
5821 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5822 if test "${ac_cv_type_off_t+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h.  */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h.  */
5831 $ac_includes_default
5832 int
5833 main ()
5834 {
5835 if ((off_t *) 0)
5836   return 0;
5837 if (sizeof (off_t))
5838   return 0;
5839   ;
5840   return 0;
5841 }
5842 _ACEOF
5843 rm -f conftest.$ac_objext
5844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5845   (eval $ac_compile) 2>conftest.er1
5846   ac_status=$?
5847   grep -v '^ *+' conftest.er1 >conftest.err
5848   rm -f conftest.er1
5849   cat conftest.err >&5
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); } &&
5852          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854   (eval $ac_try) 2>&5
5855   ac_status=$?
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); }; } &&
5858          { ac_try='test -s conftest.$ac_objext'
5859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860   (eval $ac_try) 2>&5
5861   ac_status=$?
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); }; }; then
5864   ac_cv_type_off_t=yes
5865 else
5866   echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5868
5869 ac_cv_type_off_t=no
5870 fi
5871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5872 fi
5873 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5874 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5875 if test $ac_cv_type_off_t = yes; then
5876   :
5877 else
5878
5879 cat >>confdefs.h <<_ACEOF
5880 #define off_t long
5881 _ACEOF
5882
5883 fi
5884
5885
5886 # check header files
5887 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5888 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5889 if test "${ac_cv_header_stdc+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h.  */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h.  */
5898 #include <stdlib.h>
5899 #include <stdarg.h>
5900 #include <string.h>
5901 #include <float.h>
5902
5903 int
5904 main ()
5905 {
5906
5907   ;
5908   return 0;
5909 }
5910 _ACEOF
5911 rm -f conftest.$ac_objext
5912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5913   (eval $ac_compile) 2>conftest.er1
5914   ac_status=$?
5915   grep -v '^ *+' conftest.er1 >conftest.err
5916   rm -f conftest.er1
5917   cat conftest.err >&5
5918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919   (exit $ac_status); } &&
5920          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922   (eval $ac_try) 2>&5
5923   ac_status=$?
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); }; } &&
5926          { ac_try='test -s conftest.$ac_objext'
5927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928   (eval $ac_try) 2>&5
5929   ac_status=$?
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); }; }; then
5932   ac_cv_header_stdc=yes
5933 else
5934   echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 ac_cv_header_stdc=no
5938 fi
5939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940
5941 if test $ac_cv_header_stdc = yes; then
5942   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5943   cat >conftest.$ac_ext <<_ACEOF
5944 /* confdefs.h.  */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h.  */
5949 #include <string.h>
5950
5951 _ACEOF
5952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5953   $EGREP "memchr" >/dev/null 2>&1; then
5954   :
5955 else
5956   ac_cv_header_stdc=no
5957 fi
5958 rm -f conftest*
5959
5960 fi
5961
5962 if test $ac_cv_header_stdc = yes; then
5963   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5964   cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h.  */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h.  */
5970 #include <stdlib.h>
5971
5972 _ACEOF
5973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5974   $EGREP "free" >/dev/null 2>&1; then
5975   :
5976 else
5977   ac_cv_header_stdc=no
5978 fi
5979 rm -f conftest*
5980
5981 fi
5982
5983 if test $ac_cv_header_stdc = yes; then
5984   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5985   if test "$cross_compiling" = yes; then
5986   :
5987 else
5988   cat >conftest.$ac_ext <<_ACEOF
5989 /* confdefs.h.  */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h.  */
5994 #include <ctype.h>
5995 #if ((' ' & 0x0FF) == 0x020)
5996 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5997 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5998 #else
5999 # define ISLOWER(c) \
6000                    (('a' <= (c) && (c) <= 'i') \
6001                      || ('j' <= (c) && (c) <= 'r') \
6002                      || ('s' <= (c) && (c) <= 'z'))
6003 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6004 #endif
6005
6006 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6007 int
6008 main ()
6009 {
6010   int i;
6011   for (i = 0; i < 256; i++)
6012     if (XOR (islower (i), ISLOWER (i))
6013         || toupper (i) != TOUPPER (i))
6014       exit(2);
6015   exit (0);
6016 }
6017 _ACEOF
6018 rm -f conftest$ac_exeext
6019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6020   (eval $ac_link) 2>&5
6021   ac_status=$?
6022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025   (eval $ac_try) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }; }; then
6029   :
6030 else
6031   echo "$as_me: program exited with status $ac_status" >&5
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6034
6035 ( exit $ac_status )
6036 ac_cv_header_stdc=no
6037 fi
6038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6039 fi
6040 fi
6041 fi
6042 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6043 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6044 if test $ac_cv_header_stdc = yes; then
6045
6046 cat >>confdefs.h <<\_ACEOF
6047 #define STDC_HEADERS 1
6048 _ACEOF
6049
6050 fi
6051
6052
6053
6054
6055
6056
6057
6058
6059 for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h signal.h
6060 do
6061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6063   echo "$as_me:$LINENO: checking for $ac_header" >&5
6064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6066   echo $ECHO_N "(cached) $ECHO_C" >&6
6067 fi
6068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6070 else
6071   # Is the header compilable?
6072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6074 cat >conftest.$ac_ext <<_ACEOF
6075 /* confdefs.h.  */
6076 _ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h.  */
6080 $ac_includes_default
6081 #include <$ac_header>
6082 _ACEOF
6083 rm -f conftest.$ac_objext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085   (eval $ac_compile) 2>conftest.er1
6086   ac_status=$?
6087   grep -v '^ *+' conftest.er1 >conftest.err
6088   rm -f conftest.er1
6089   cat conftest.err >&5
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); } &&
6092          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094   (eval $ac_try) 2>&5
6095   ac_status=$?
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); }; } &&
6098          { ac_try='test -s conftest.$ac_objext'
6099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100   (eval $ac_try) 2>&5
6101   ac_status=$?
6102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103   (exit $ac_status); }; }; then
6104   ac_header_compiler=yes
6105 else
6106   echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6108
6109 ac_header_compiler=no
6110 fi
6111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6113 echo "${ECHO_T}$ac_header_compiler" >&6
6114
6115 # Is the header present?
6116 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6118 cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h.  */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h.  */
6124 #include <$ac_header>
6125 _ACEOF
6126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6128   ac_status=$?
6129   grep -v '^ *+' conftest.er1 >conftest.err
6130   rm -f conftest.er1
6131   cat conftest.err >&5
6132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); } >/dev/null; then
6134   if test -s conftest.err; then
6135     ac_cpp_err=$ac_c_preproc_warn_flag
6136     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6137   else
6138     ac_cpp_err=
6139   fi
6140 else
6141   ac_cpp_err=yes
6142 fi
6143 if test -z "$ac_cpp_err"; then
6144   ac_header_preproc=yes
6145 else
6146   echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6148
6149   ac_header_preproc=no
6150 fi
6151 rm -f conftest.err conftest.$ac_ext
6152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6153 echo "${ECHO_T}$ac_header_preproc" >&6
6154
6155 # So?  What about this header?
6156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6157   yes:no: )
6158     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6162     ac_header_preproc=yes
6163     ;;
6164   no:yes:* )
6165     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6167     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6168 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6169     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6171     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6172 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6175     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6177     (
6178       cat <<\_ASBOX
6179 ## ------------------------------------------------------ ##
6180 ## Report this to the GNU Fortran Runtime Library lists.  ##
6181 ## ------------------------------------------------------ ##
6182 _ASBOX
6183     ) |
6184       sed "s/^/$as_me: WARNING:     /" >&2
6185     ;;
6186 esac
6187 echo "$as_me:$LINENO: checking for $ac_header" >&5
6188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6190   echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192   eval "$as_ac_Header=\$ac_header_preproc"
6193 fi
6194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6196
6197 fi
6198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6199   cat >>confdefs.h <<_ACEOF
6200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6201 _ACEOF
6202
6203 fi
6204
6205 done
6206
6207
6208
6209
6210
6211
6212 for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
6213 do
6214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6216   echo "$as_me:$LINENO: checking for $ac_header" >&5
6217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 fi
6221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6223 else
6224   # Is the header compilable?
6225 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6227 cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233 $ac_includes_default
6234 #include <$ac_header>
6235 _ACEOF
6236 rm -f conftest.$ac_objext
6237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6238   (eval $ac_compile) 2>conftest.er1
6239   ac_status=$?
6240   grep -v '^ *+' conftest.er1 >conftest.err
6241   rm -f conftest.er1
6242   cat conftest.err >&5
6243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244   (exit $ac_status); } &&
6245          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247   (eval $ac_try) 2>&5
6248   ac_status=$?
6249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250   (exit $ac_status); }; } &&
6251          { ac_try='test -s conftest.$ac_objext'
6252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253   (eval $ac_try) 2>&5
6254   ac_status=$?
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); }; }; then
6257   ac_header_compiler=yes
6258 else
6259   echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6261
6262 ac_header_compiler=no
6263 fi
6264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6266 echo "${ECHO_T}$ac_header_compiler" >&6
6267
6268 # Is the header present?
6269 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6271 cat >conftest.$ac_ext <<_ACEOF
6272 /* confdefs.h.  */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h.  */
6277 #include <$ac_header>
6278 _ACEOF
6279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6281   ac_status=$?
6282   grep -v '^ *+' conftest.er1 >conftest.err
6283   rm -f conftest.er1
6284   cat conftest.err >&5
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } >/dev/null; then
6287   if test -s conftest.err; then
6288     ac_cpp_err=$ac_c_preproc_warn_flag
6289     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6290   else
6291     ac_cpp_err=
6292   fi
6293 else
6294   ac_cpp_err=yes
6295 fi
6296 if test -z "$ac_cpp_err"; then
6297   ac_header_preproc=yes
6298 else
6299   echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302   ac_header_preproc=no
6303 fi
6304 rm -f conftest.err conftest.$ac_ext
6305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6306 echo "${ECHO_T}$ac_header_preproc" >&6
6307
6308 # So?  What about this header?
6309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6310   yes:no: )
6311     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6315     ac_header_preproc=yes
6316     ;;
6317   no:yes:* )
6318     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6320     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6321 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6322     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6324     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6325 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6328     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6330     (
6331       cat <<\_ASBOX
6332 ## ------------------------------------------------------ ##
6333 ## Report this to the GNU Fortran Runtime Library lists.  ##
6334 ## ------------------------------------------------------ ##
6335 _ASBOX
6336     ) |
6337       sed "s/^/$as_me: WARNING:     /" >&2
6338     ;;
6339 esac
6340 echo "$as_me:$LINENO: checking for $ac_header" >&5
6341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6343   echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345   eval "$as_ac_Header=\$ac_header_preproc"
6346 fi
6347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6349
6350 fi
6351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6352   cat >>confdefs.h <<_ACEOF
6353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6354 _ACEOF
6355
6356 fi
6357
6358 done
6359
6360
6361
6362
6363
6364 for ac_header in sys/mman.h sys/types.h sys/stat.h ieeefp.h
6365 do
6366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6368   echo "$as_me:$LINENO: checking for $ac_header" >&5
6369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6371   echo $ECHO_N "(cached) $ECHO_C" >&6
6372 fi
6373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6375 else
6376   # Is the header compilable?
6377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6379 cat >conftest.$ac_ext <<_ACEOF
6380 /* confdefs.h.  */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h.  */
6385 $ac_includes_default
6386 #include <$ac_header>
6387 _ACEOF
6388 rm -f conftest.$ac_objext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6390   (eval $ac_compile) 2>conftest.er1
6391   ac_status=$?
6392   grep -v '^ *+' conftest.er1 >conftest.err
6393   rm -f conftest.er1
6394   cat conftest.err >&5
6395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396   (exit $ac_status); } &&
6397          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399   (eval $ac_try) 2>&5
6400   ac_status=$?
6401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402   (exit $ac_status); }; } &&
6403          { ac_try='test -s conftest.$ac_objext'
6404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405   (eval $ac_try) 2>&5
6406   ac_status=$?
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); }; }; then
6409   ac_header_compiler=yes
6410 else
6411   echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6413
6414 ac_header_compiler=no
6415 fi
6416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6418 echo "${ECHO_T}$ac_header_compiler" >&6
6419
6420 # Is the header present?
6421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6423 cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h.  */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h.  */
6429 #include <$ac_header>
6430 _ACEOF
6431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6432   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6433   ac_status=$?
6434   grep -v '^ *+' conftest.er1 >conftest.err
6435   rm -f conftest.er1
6436   cat conftest.err >&5
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); } >/dev/null; then
6439   if test -s conftest.err; then
6440     ac_cpp_err=$ac_c_preproc_warn_flag
6441     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6442   else
6443     ac_cpp_err=
6444   fi
6445 else
6446   ac_cpp_err=yes
6447 fi
6448 if test -z "$ac_cpp_err"; then
6449   ac_header_preproc=yes
6450 else
6451   echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6453
6454   ac_header_preproc=no
6455 fi
6456 rm -f conftest.err conftest.$ac_ext
6457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6458 echo "${ECHO_T}$ac_header_preproc" >&6
6459
6460 # So?  What about this header?
6461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6462   yes:no: )
6463     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6467     ac_header_preproc=yes
6468     ;;
6469   no:yes:* )
6470     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6472     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6473 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6474     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6476     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6477 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6480     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6482     (
6483       cat <<\_ASBOX
6484 ## ------------------------------------------------------ ##
6485 ## Report this to the GNU Fortran Runtime Library lists.  ##
6486 ## ------------------------------------------------------ ##
6487 _ASBOX
6488     ) |
6489       sed "s/^/$as_me: WARNING:     /" >&2
6490     ;;
6491 esac
6492 echo "$as_me:$LINENO: checking for $ac_header" >&5
6493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6495   echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497   eval "$as_ac_Header=\$ac_header_preproc"
6498 fi
6499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6501
6502 fi
6503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6504   cat >>confdefs.h <<_ACEOF
6505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6506 _ACEOF
6507
6508 fi
6509
6510 done
6511
6512 if test "${ac_cv_header_complex_h+set}" = set; then
6513   echo "$as_me:$LINENO: checking for complex.h" >&5
6514 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6515 if test "${ac_cv_header_complex_h+set}" = set; then
6516   echo $ECHO_N "(cached) $ECHO_C" >&6
6517 fi
6518 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6519 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6520 else
6521   # Is the header compilable?
6522 echo "$as_me:$LINENO: checking complex.h usability" >&5
6523 echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6524 cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h.  */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h.  */
6530 $ac_includes_default
6531 #include <complex.h>
6532 _ACEOF
6533 rm -f conftest.$ac_objext
6534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6535   (eval $ac_compile) 2>conftest.er1
6536   ac_status=$?
6537   grep -v '^ *+' conftest.er1 >conftest.err
6538   rm -f conftest.er1
6539   cat conftest.err >&5
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); } &&
6542          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544   (eval $ac_try) 2>&5
6545   ac_status=$?
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); }; } &&
6548          { ac_try='test -s conftest.$ac_objext'
6549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550   (eval $ac_try) 2>&5
6551   ac_status=$?
6552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553   (exit $ac_status); }; }; then
6554   ac_header_compiler=yes
6555 else
6556   echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6558
6559 ac_header_compiler=no
6560 fi
6561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6563 echo "${ECHO_T}$ac_header_compiler" >&6
6564
6565 # Is the header present?
6566 echo "$as_me:$LINENO: checking complex.h presence" >&5
6567 echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6568 cat >conftest.$ac_ext <<_ACEOF
6569 /* confdefs.h.  */
6570 _ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h.  */
6574 #include <complex.h>
6575 _ACEOF
6576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6577   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6578   ac_status=$?
6579   grep -v '^ *+' conftest.er1 >conftest.err
6580   rm -f conftest.er1
6581   cat conftest.err >&5
6582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583   (exit $ac_status); } >/dev/null; then
6584   if test -s conftest.err; then
6585     ac_cpp_err=$ac_c_preproc_warn_flag
6586     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6587   else
6588     ac_cpp_err=
6589   fi
6590 else
6591   ac_cpp_err=yes
6592 fi
6593 if test -z "$ac_cpp_err"; then
6594   ac_header_preproc=yes
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599   ac_header_preproc=no
6600 fi
6601 rm -f conftest.err conftest.$ac_ext
6602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6603 echo "${ECHO_T}$ac_header_preproc" >&6
6604
6605 # So?  What about this header?
6606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6607   yes:no: )
6608     { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6609 echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6610     { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6611 echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6612     ac_header_preproc=yes
6613     ;;
6614   no:yes:* )
6615     { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6616 echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6617     { echo "$as_me:$LINENO: WARNING: complex.h:     check for missing prerequisite headers?" >&5
6618 echo "$as_me: WARNING: complex.h:     check for missing prerequisite headers?" >&2;}
6619     { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6620 echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6621     { echo "$as_me:$LINENO: WARNING: complex.h:     section \"Present But Cannot Be Compiled\"" >&5
6622 echo "$as_me: WARNING: complex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6623     { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6624 echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6625     { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6626 echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6627     (
6628       cat <<\_ASBOX
6629 ## ------------------------------------------------------ ##
6630 ## Report this to the GNU Fortran Runtime Library lists.  ##
6631 ## ------------------------------------------------------ ##
6632 _ASBOX
6633     ) |
6634       sed "s/^/$as_me: WARNING:     /" >&2
6635     ;;
6636 esac
6637 echo "$as_me:$LINENO: checking for complex.h" >&5
6638 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6639 if test "${ac_cv_header_complex_h+set}" = set; then
6640   echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642   ac_cv_header_complex_h=$ac_header_preproc
6643 fi
6644 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6645 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6646
6647 fi
6648 if test $ac_cv_header_complex_h = yes; then
6649
6650 cat >>confdefs.h <<\_ACEOF
6651 #define HAVE_COMPLEX_H 1
6652 _ACEOF
6653
6654 fi
6655
6656
6657
6658 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6659 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6660 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6661   echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663   cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h.  */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h.  */
6669 $ac_includes_default
6670 int
6671 main ()
6672 {
6673 static struct stat ac_aggr;
6674 if (ac_aggr.st_blksize)
6675 return 0;
6676   ;
6677   return 0;
6678 }
6679 _ACEOF
6680 rm -f conftest.$ac_objext
6681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6682   (eval $ac_compile) 2>conftest.er1
6683   ac_status=$?
6684   grep -v '^ *+' conftest.er1 >conftest.err
6685   rm -f conftest.er1
6686   cat conftest.err >&5
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); } &&
6689          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691   (eval $ac_try) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); }; } &&
6695          { ac_try='test -s conftest.$ac_objext'
6696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697   (eval $ac_try) 2>&5
6698   ac_status=$?
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); }; }; then
6701   ac_cv_member_struct_stat_st_blksize=yes
6702 else
6703   echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6705
6706 cat >conftest.$ac_ext <<_ACEOF
6707 /* confdefs.h.  */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h.  */
6712 $ac_includes_default
6713 int
6714 main ()
6715 {
6716 static struct stat ac_aggr;
6717 if (sizeof ac_aggr.st_blksize)
6718 return 0;
6719   ;
6720   return 0;
6721 }
6722 _ACEOF
6723 rm -f conftest.$ac_objext
6724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6725   (eval $ac_compile) 2>conftest.er1
6726   ac_status=$?
6727   grep -v '^ *+' conftest.er1 >conftest.err
6728   rm -f conftest.er1
6729   cat conftest.err >&5
6730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731   (exit $ac_status); } &&
6732          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734   (eval $ac_try) 2>&5
6735   ac_status=$?
6736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737   (exit $ac_status); }; } &&
6738          { ac_try='test -s conftest.$ac_objext'
6739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740   (eval $ac_try) 2>&5
6741   ac_status=$?
6742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743   (exit $ac_status); }; }; then
6744   ac_cv_member_struct_stat_st_blksize=yes
6745 else
6746   echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6748
6749 ac_cv_member_struct_stat_st_blksize=no
6750 fi
6751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6752 fi
6753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6754 fi
6755 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6756 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
6757 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6758
6759 cat >>confdefs.h <<_ACEOF
6760 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6761 _ACEOF
6762
6763
6764 fi
6765
6766 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6767 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6768 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6769   echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771   cat >conftest.$ac_ext <<_ACEOF
6772 /* confdefs.h.  */
6773 _ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h.  */
6777 $ac_includes_default
6778 int
6779 main ()
6780 {
6781 static struct stat ac_aggr;
6782 if (ac_aggr.st_blocks)
6783 return 0;
6784   ;
6785   return 0;
6786 }
6787 _ACEOF
6788 rm -f conftest.$ac_objext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790   (eval $ac_compile) 2>conftest.er1
6791   ac_status=$?
6792   grep -v '^ *+' conftest.er1 >conftest.err
6793   rm -f conftest.er1
6794   cat conftest.err >&5
6795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796   (exit $ac_status); } &&
6797          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799   (eval $ac_try) 2>&5
6800   ac_status=$?
6801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802   (exit $ac_status); }; } &&
6803          { ac_try='test -s conftest.$ac_objext'
6804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805   (eval $ac_try) 2>&5
6806   ac_status=$?
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); }; }; then
6809   ac_cv_member_struct_stat_st_blocks=yes
6810 else
6811   echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6813
6814 cat >conftest.$ac_ext <<_ACEOF
6815 /* confdefs.h.  */
6816 _ACEOF
6817 cat confdefs.h >>conftest.$ac_ext
6818 cat >>conftest.$ac_ext <<_ACEOF
6819 /* end confdefs.h.  */
6820 $ac_includes_default
6821 int
6822 main ()
6823 {
6824 static struct stat ac_aggr;
6825 if (sizeof ac_aggr.st_blocks)
6826 return 0;
6827   ;
6828   return 0;
6829 }
6830 _ACEOF
6831 rm -f conftest.$ac_objext
6832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6833   (eval $ac_compile) 2>conftest.er1
6834   ac_status=$?
6835   grep -v '^ *+' conftest.er1 >conftest.err
6836   rm -f conftest.er1
6837   cat conftest.err >&5
6838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839   (exit $ac_status); } &&
6840          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842   (eval $ac_try) 2>&5
6843   ac_status=$?
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); }; } &&
6846          { ac_try='test -s conftest.$ac_objext'
6847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848   (eval $ac_try) 2>&5
6849   ac_status=$?
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); }; }; then
6852   ac_cv_member_struct_stat_st_blocks=yes
6853 else
6854   echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6856
6857 ac_cv_member_struct_stat_st_blocks=no
6858 fi
6859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6860 fi
6861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6862 fi
6863 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6864 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
6865 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6866
6867 cat >>confdefs.h <<_ACEOF
6868 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6869 _ACEOF
6870
6871
6872 fi
6873
6874 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6875 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
6876 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6877   echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879   cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h.  */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h.  */
6885 $ac_includes_default
6886 int
6887 main ()
6888 {
6889 static struct stat ac_aggr;
6890 if (ac_aggr.st_rdev)
6891 return 0;
6892   ;
6893   return 0;
6894 }
6895 _ACEOF
6896 rm -f conftest.$ac_objext
6897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6898   (eval $ac_compile) 2>conftest.er1
6899   ac_status=$?
6900   grep -v '^ *+' conftest.er1 >conftest.err
6901   rm -f conftest.er1
6902   cat conftest.err >&5
6903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904   (exit $ac_status); } &&
6905          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907   (eval $ac_try) 2>&5
6908   ac_status=$?
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); }; } &&
6911          { ac_try='test -s conftest.$ac_objext'
6912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913   (eval $ac_try) 2>&5
6914   ac_status=$?
6915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); }; }; then
6917   ac_cv_member_struct_stat_st_rdev=yes
6918 else
6919   echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6921
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 (sizeof ac_aggr.st_rdev)
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"                   || test ! -s conftest.err'
6949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950   (eval $ac_try) 2>&5
6951   ac_status=$?
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); }; } &&
6954          { ac_try='test -s conftest.$ac_objext'
6955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956   (eval $ac_try) 2>&5
6957   ac_status=$?
6958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959   (exit $ac_status); }; }; then
6960   ac_cv_member_struct_stat_st_rdev=yes
6961 else
6962   echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6964
6965 ac_cv_member_struct_stat_st_rdev=no
6966 fi
6967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6968 fi
6969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6970 fi
6971 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6972 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
6973 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6974
6975 cat >>confdefs.h <<_ACEOF
6976 #define HAVE_STRUCT_STAT_ST_RDEV 1
6977 _ACEOF
6978
6979
6980 fi
6981
6982
6983 # Check for complex math functions
6984 echo "$as_me:$LINENO: checking for csin in -lm" >&5
6985 echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
6986 if test "${ac_cv_lib_m_csin+set}" = set; then
6987   echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989   ac_check_lib_save_LIBS=$LIBS
6990 LIBS="-lm  $LIBS"
6991 cat >conftest.$ac_ext <<_ACEOF
6992 /* confdefs.h.  */
6993 _ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h.  */
6997
6998 /* Override any gcc2 internal prototype to avoid an error.  */
6999 #ifdef __cplusplus
7000 extern "C"
7001 #endif
7002 /* We use char because int might match the return type of a gcc2
7003    builtin and then its argument prototype would still apply.  */
7004 char csin ();
7005 int
7006 main ()
7007 {
7008 csin ();
7009   ;
7010   return 0;
7011 }
7012 _ACEOF
7013 rm -f conftest.$ac_objext conftest$ac_exeext
7014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7015   (eval $ac_link) 2>conftest.er1
7016   ac_status=$?
7017   grep -v '^ *+' conftest.er1 >conftest.err
7018   rm -f conftest.er1
7019   cat conftest.err >&5
7020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); } &&
7022          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024   (eval $ac_try) 2>&5
7025   ac_status=$?
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); }; } &&
7028          { ac_try='test -s conftest$ac_exeext'
7029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030   (eval $ac_try) 2>&5
7031   ac_status=$?
7032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033   (exit $ac_status); }; }; then
7034   ac_cv_lib_m_csin=yes
7035 else
7036   echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7038
7039 ac_cv_lib_m_csin=no
7040 fi
7041 rm -f conftest.err conftest.$ac_objext \
7042       conftest$ac_exeext conftest.$ac_ext
7043 LIBS=$ac_check_lib_save_LIBS
7044 fi
7045 echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
7046 echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
7047 if test $ac_cv_lib_m_csin = yes; then
7048   need_math="no"
7049 else
7050   need_math="yes"
7051 fi
7052
7053
7054 # Check for library functions.
7055
7056
7057
7058
7059
7060 for ac_func in getrusage times mkstemp strtof snprintf
7061 do
7062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7063 echo "$as_me:$LINENO: checking for $ac_func" >&5
7064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7065 if eval "test \"\${$as_ac_var+set}\" = set"; then
7066   echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068   cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h.  */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h.  */
7074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7075    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7076 #define $ac_func innocuous_$ac_func
7077
7078 /* System header to define __stub macros and hopefully few prototypes,
7079     which can conflict with char $ac_func (); below.
7080     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7081     <limits.h> exists even on freestanding compilers.  */
7082
7083 #ifdef __STDC__
7084 # include <limits.h>
7085 #else
7086 # include <assert.h>
7087 #endif
7088
7089 #undef $ac_func
7090
7091 /* Override any gcc2 internal prototype to avoid an error.  */
7092 #ifdef __cplusplus
7093 extern "C"
7094 {
7095 #endif
7096 /* We use char because int might match the return type of a gcc2
7097    builtin and then its argument prototype would still apply.  */
7098 char $ac_func ();
7099 /* The GNU C library defines this for functions which it implements
7100     to always fail with ENOSYS.  Some functions are actually named
7101     something starting with __ and the normal name is an alias.  */
7102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7103 choke me
7104 #else
7105 char (*f) () = $ac_func;
7106 #endif
7107 #ifdef __cplusplus
7108 }
7109 #endif
7110
7111 int
7112 main ()
7113 {
7114 return f != $ac_func;
7115   ;
7116   return 0;
7117 }
7118 _ACEOF
7119 rm -f conftest.$ac_objext conftest$ac_exeext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121   (eval $ac_link) 2>conftest.er1
7122   ac_status=$?
7123   grep -v '^ *+' conftest.er1 >conftest.err
7124   rm -f conftest.er1
7125   cat conftest.err >&5
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); } &&
7128          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130   (eval $ac_try) 2>&5
7131   ac_status=$?
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); }; } &&
7134          { ac_try='test -s conftest$ac_exeext'
7135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136   (eval $ac_try) 2>&5
7137   ac_status=$?
7138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139   (exit $ac_status); }; }; then
7140   eval "$as_ac_var=yes"
7141 else
7142   echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7144
7145 eval "$as_ac_var=no"
7146 fi
7147 rm -f conftest.err conftest.$ac_objext \
7148       conftest$ac_exeext conftest.$ac_ext
7149 fi
7150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7152 if test `eval echo '${'$as_ac_var'}'` = yes; then
7153   cat >>confdefs.h <<_ACEOF
7154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7155 _ACEOF
7156
7157 fi
7158 done
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168 for ac_func in chdir strerror getlogin gethostname kill link symlink perror
7169 do
7170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7171 echo "$as_me:$LINENO: checking for $ac_func" >&5
7172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7173 if eval "test \"\${$as_ac_var+set}\" = set"; then
7174   echo $ECHO_N "(cached) $ECHO_C" >&6
7175 else
7176   cat >conftest.$ac_ext <<_ACEOF
7177 /* confdefs.h.  */
7178 _ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h.  */
7182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7183    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7184 #define $ac_func innocuous_$ac_func
7185
7186 /* System header to define __stub macros and hopefully few prototypes,
7187     which can conflict with char $ac_func (); below.
7188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7189     <limits.h> exists even on freestanding compilers.  */
7190
7191 #ifdef __STDC__
7192 # include <limits.h>
7193 #else
7194 # include <assert.h>
7195 #endif
7196
7197 #undef $ac_func
7198
7199 /* Override any gcc2 internal prototype to avoid an error.  */
7200 #ifdef __cplusplus
7201 extern "C"
7202 {
7203 #endif
7204 /* We use char because int might match the return type of a gcc2
7205    builtin and then its argument prototype would still apply.  */
7206 char $ac_func ();
7207 /* The GNU C library defines this for functions which it implements
7208     to always fail with ENOSYS.  Some functions are actually named
7209     something starting with __ and the normal name is an alias.  */
7210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7211 choke me
7212 #else
7213 char (*f) () = $ac_func;
7214 #endif
7215 #ifdef __cplusplus
7216 }
7217 #endif
7218
7219 int
7220 main ()
7221 {
7222 return f != $ac_func;
7223   ;
7224   return 0;
7225 }
7226 _ACEOF
7227 rm -f conftest.$ac_objext conftest$ac_exeext
7228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7229   (eval $ac_link) 2>conftest.er1
7230   ac_status=$?
7231   grep -v '^ *+' conftest.er1 >conftest.err
7232   rm -f conftest.er1
7233   cat conftest.err >&5
7234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235   (exit $ac_status); } &&
7236          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238   (eval $ac_try) 2>&5
7239   ac_status=$?
7240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241   (exit $ac_status); }; } &&
7242          { ac_try='test -s conftest$ac_exeext'
7243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244   (eval $ac_try) 2>&5
7245   ac_status=$?
7246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247   (exit $ac_status); }; }; then
7248   eval "$as_ac_var=yes"
7249 else
7250   echo "$as_me: failed program was:" >&5
7251 sed 's/^/| /' conftest.$ac_ext >&5
7252
7253 eval "$as_ac_var=no"
7254 fi
7255 rm -f conftest.err conftest.$ac_objext \
7256       conftest$ac_exeext conftest.$ac_ext
7257 fi
7258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7260 if test `eval echo '${'$as_ac_var'}'` = yes; then
7261   cat >>confdefs.h <<_ACEOF
7262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7263 _ACEOF
7264
7265 fi
7266 done
7267
7268
7269
7270 for ac_func in sleep time
7271 do
7272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7273 echo "$as_me:$LINENO: checking for $ac_func" >&5
7274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7275 if eval "test \"\${$as_ac_var+set}\" = set"; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278   cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h.  */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h.  */
7284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7286 #define $ac_func innocuous_$ac_func
7287
7288 /* System header to define __stub macros and hopefully few prototypes,
7289     which can conflict with char $ac_func (); below.
7290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7291     <limits.h> exists even on freestanding compilers.  */
7292
7293 #ifdef __STDC__
7294 # include <limits.h>
7295 #else
7296 # include <assert.h>
7297 #endif
7298
7299 #undef $ac_func
7300
7301 /* Override any gcc2 internal prototype to avoid an error.  */
7302 #ifdef __cplusplus
7303 extern "C"
7304 {
7305 #endif
7306 /* We use char because int might match the return type of a gcc2
7307    builtin and then its argument prototype would still apply.  */
7308 char $ac_func ();
7309 /* The GNU C library defines this for functions which it implements
7310     to always fail with ENOSYS.  Some functions are actually named
7311     something starting with __ and the normal name is an alias.  */
7312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7313 choke me
7314 #else
7315 char (*f) () = $ac_func;
7316 #endif
7317 #ifdef __cplusplus
7318 }
7319 #endif
7320
7321 int
7322 main ()
7323 {
7324 return f != $ac_func;
7325   ;
7326   return 0;
7327 }
7328 _ACEOF
7329 rm -f conftest.$ac_objext conftest$ac_exeext
7330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7331   (eval $ac_link) 2>conftest.er1
7332   ac_status=$?
7333   grep -v '^ *+' conftest.er1 >conftest.err
7334   rm -f conftest.er1
7335   cat conftest.err >&5
7336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); } &&
7338          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340   (eval $ac_try) 2>&5
7341   ac_status=$?
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); }; } &&
7344          { ac_try='test -s conftest$ac_exeext'
7345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346   (eval $ac_try) 2>&5
7347   ac_status=$?
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); }; }; then
7350   eval "$as_ac_var=yes"
7351 else
7352   echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7354
7355 eval "$as_ac_var=no"
7356 fi
7357 rm -f conftest.err conftest.$ac_objext \
7358       conftest$ac_exeext conftest.$ac_ext
7359 fi
7360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7362 if test `eval echo '${'$as_ac_var'}'` = yes; then
7363   cat >>confdefs.h <<_ACEOF
7364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7365 _ACEOF
7366
7367 fi
7368 done
7369
7370
7371 # Check libc for getgid, getpid, getuid
7372 echo "$as_me:$LINENO: checking for getgid in -lc" >&5
7373 echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
7374 if test "${ac_cv_lib_c_getgid+set}" = set; then
7375   echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377   ac_check_lib_save_LIBS=$LIBS
7378 LIBS="-lc  $LIBS"
7379 cat >conftest.$ac_ext <<_ACEOF
7380 /* confdefs.h.  */
7381 _ACEOF
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h.  */
7385
7386 /* Override any gcc2 internal prototype to avoid an error.  */
7387 #ifdef __cplusplus
7388 extern "C"
7389 #endif
7390 /* We use char because int might match the return type of a gcc2
7391    builtin and then its argument prototype would still apply.  */
7392 char getgid ();
7393 int
7394 main ()
7395 {
7396 getgid ();
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"                   || test ! -s conftest.err'
7411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412   (eval $ac_try) 2>&5
7413   ac_status=$?
7414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415   (exit $ac_status); }; } &&
7416          { ac_try='test -s conftest$ac_exeext'
7417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418   (eval $ac_try) 2>&5
7419   ac_status=$?
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); }; }; then
7422   ac_cv_lib_c_getgid=yes
7423 else
7424   echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7426
7427 ac_cv_lib_c_getgid=no
7428 fi
7429 rm -f conftest.err conftest.$ac_objext \
7430       conftest$ac_exeext conftest.$ac_ext
7431 LIBS=$ac_check_lib_save_LIBS
7432 fi
7433 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
7434 echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
7435 if test $ac_cv_lib_c_getgid = yes; then
7436
7437 cat >>confdefs.h <<\_ACEOF
7438 #define HAVE_GETGID 1
7439 _ACEOF
7440
7441 fi
7442
7443 echo "$as_me:$LINENO: checking for getpid in -lc" >&5
7444 echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
7445 if test "${ac_cv_lib_c_getpid+set}" = set; then
7446   echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448   ac_check_lib_save_LIBS=$LIBS
7449 LIBS="-lc  $LIBS"
7450 cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h.  */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h.  */
7456
7457 /* Override any gcc2 internal prototype to avoid an error.  */
7458 #ifdef __cplusplus
7459 extern "C"
7460 #endif
7461 /* We use char because int might match the return type of a gcc2
7462    builtin and then its argument prototype would still apply.  */
7463 char getpid ();
7464 int
7465 main ()
7466 {
7467 getpid ();
7468   ;
7469   return 0;
7470 }
7471 _ACEOF
7472 rm -f conftest.$ac_objext conftest$ac_exeext
7473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7474   (eval $ac_link) 2>conftest.er1
7475   ac_status=$?
7476   grep -v '^ *+' conftest.er1 >conftest.err
7477   rm -f conftest.er1
7478   cat conftest.err >&5
7479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480   (exit $ac_status); } &&
7481          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483   (eval $ac_try) 2>&5
7484   ac_status=$?
7485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486   (exit $ac_status); }; } &&
7487          { ac_try='test -s conftest$ac_exeext'
7488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489   (eval $ac_try) 2>&5
7490   ac_status=$?
7491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492   (exit $ac_status); }; }; then
7493   ac_cv_lib_c_getpid=yes
7494 else
7495   echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.$ac_ext >&5
7497
7498 ac_cv_lib_c_getpid=no
7499 fi
7500 rm -f conftest.err conftest.$ac_objext \
7501       conftest$ac_exeext conftest.$ac_ext
7502 LIBS=$ac_check_lib_save_LIBS
7503 fi
7504 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
7505 echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
7506 if test $ac_cv_lib_c_getpid = yes; then
7507
7508 cat >>confdefs.h <<\_ACEOF
7509 #define HAVE_GETPID 1
7510 _ACEOF
7511
7512 fi
7513
7514 echo "$as_me:$LINENO: checking for getuid in -lc" >&5
7515 echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
7516 if test "${ac_cv_lib_c_getuid+set}" = set; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   ac_check_lib_save_LIBS=$LIBS
7520 LIBS="-lc  $LIBS"
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h.  */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h.  */
7527
7528 /* Override any gcc2 internal prototype to avoid an error.  */
7529 #ifdef __cplusplus
7530 extern "C"
7531 #endif
7532 /* We use char because int might match the return type of a gcc2
7533    builtin and then its argument prototype would still apply.  */
7534 char getuid ();
7535 int
7536 main ()
7537 {
7538 getuid ();
7539   ;
7540   return 0;
7541 }
7542 _ACEOF
7543 rm -f conftest.$ac_objext conftest$ac_exeext
7544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7545   (eval $ac_link) 2>conftest.er1
7546   ac_status=$?
7547   grep -v '^ *+' conftest.er1 >conftest.err
7548   rm -f conftest.er1
7549   cat conftest.err >&5
7550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551   (exit $ac_status); } &&
7552          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554   (eval $ac_try) 2>&5
7555   ac_status=$?
7556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557   (exit $ac_status); }; } &&
7558          { ac_try='test -s conftest$ac_exeext'
7559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560   (eval $ac_try) 2>&5
7561   ac_status=$?
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); }; }; then
7564   ac_cv_lib_c_getuid=yes
7565 else
7566   echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7568
7569 ac_cv_lib_c_getuid=no
7570 fi
7571 rm -f conftest.err conftest.$ac_objext \
7572       conftest$ac_exeext conftest.$ac_ext
7573 LIBS=$ac_check_lib_save_LIBS
7574 fi
7575 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
7576 echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
7577 if test $ac_cv_lib_c_getuid = yes; then
7578
7579 cat >>confdefs.h <<\_ACEOF
7580 #define HAVE_GETUID 1
7581 _ACEOF
7582
7583 fi
7584
7585
7586 # Check for C99 (and other IEEE) math functions
7587 # ??? This list seems awful long. Is there a better way to test for these?
7588 echo "$as_me:$LINENO: checking for acosf in -lm" >&5
7589 echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
7590 if test "${ac_cv_lib_m_acosf+set}" = set; then
7591   echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593   ac_check_lib_save_LIBS=$LIBS
7594 LIBS="-lm  $LIBS"
7595 cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h.  */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h.  */
7601
7602 /* Override any gcc2 internal prototype to avoid an error.  */
7603 #ifdef __cplusplus
7604 extern "C"
7605 #endif
7606 /* We use char because int might match the return type of a gcc2
7607    builtin and then its argument prototype would still apply.  */
7608 char acosf ();
7609 int
7610 main ()
7611 {
7612 acosf ();
7613   ;
7614   return 0;
7615 }
7616 _ACEOF
7617 rm -f conftest.$ac_objext conftest$ac_exeext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7619   (eval $ac_link) 2>conftest.er1
7620   ac_status=$?
7621   grep -v '^ *+' conftest.er1 >conftest.err
7622   rm -f conftest.er1
7623   cat conftest.err >&5
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); } &&
7626          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628   (eval $ac_try) 2>&5
7629   ac_status=$?
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); }; } &&
7632          { ac_try='test -s conftest$ac_exeext'
7633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634   (eval $ac_try) 2>&5
7635   ac_status=$?
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); }; }; then
7638   ac_cv_lib_m_acosf=yes
7639 else
7640   echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7642
7643 ac_cv_lib_m_acosf=no
7644 fi
7645 rm -f conftest.err conftest.$ac_objext \
7646       conftest$ac_exeext conftest.$ac_ext
7647 LIBS=$ac_check_lib_save_LIBS
7648 fi
7649 echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
7650 echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
7651 if test $ac_cv_lib_m_acosf = yes; then
7652
7653 cat >>confdefs.h <<\_ACEOF
7654 #define HAVE_ACOSF 1
7655 _ACEOF
7656
7657 fi
7658
7659 echo "$as_me:$LINENO: checking for asinf in -lm" >&5
7660 echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
7661 if test "${ac_cv_lib_m_asinf+set}" = set; then
7662   echo $ECHO_N "(cached) $ECHO_C" >&6
7663 else
7664   ac_check_lib_save_LIBS=$LIBS
7665 LIBS="-lm  $LIBS"
7666 cat >conftest.$ac_ext <<_ACEOF
7667 /* confdefs.h.  */
7668 _ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h.  */
7672
7673 /* Override any gcc2 internal prototype to avoid an error.  */
7674 #ifdef __cplusplus
7675 extern "C"
7676 #endif
7677 /* We use char because int might match the return type of a gcc2
7678    builtin and then its argument prototype would still apply.  */
7679 char asinf ();
7680 int
7681 main ()
7682 {
7683 asinf ();
7684   ;
7685   return 0;
7686 }
7687 _ACEOF
7688 rm -f conftest.$ac_objext conftest$ac_exeext
7689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7690   (eval $ac_link) 2>conftest.er1
7691   ac_status=$?
7692   grep -v '^ *+' conftest.er1 >conftest.err
7693   rm -f conftest.er1
7694   cat conftest.err >&5
7695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); } &&
7697          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699   (eval $ac_try) 2>&5
7700   ac_status=$?
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); }; } &&
7703          { ac_try='test -s conftest$ac_exeext'
7704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705   (eval $ac_try) 2>&5
7706   ac_status=$?
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); }; }; then
7709   ac_cv_lib_m_asinf=yes
7710 else
7711   echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7713
7714 ac_cv_lib_m_asinf=no
7715 fi
7716 rm -f conftest.err conftest.$ac_objext \
7717       conftest$ac_exeext conftest.$ac_ext
7718 LIBS=$ac_check_lib_save_LIBS
7719 fi
7720 echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
7721 echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
7722 if test $ac_cv_lib_m_asinf = yes; then
7723
7724 cat >>confdefs.h <<\_ACEOF
7725 #define HAVE_ASINF 1
7726 _ACEOF
7727
7728 fi
7729
7730 echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
7731 echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
7732 if test "${ac_cv_lib_m_atan2f+set}" = set; then
7733   echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735   ac_check_lib_save_LIBS=$LIBS
7736 LIBS="-lm  $LIBS"
7737 cat >conftest.$ac_ext <<_ACEOF
7738 /* confdefs.h.  */
7739 _ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h.  */
7743
7744 /* Override any gcc2 internal prototype to avoid an error.  */
7745 #ifdef __cplusplus
7746 extern "C"
7747 #endif
7748 /* We use char because int might match the return type of a gcc2
7749    builtin and then its argument prototype would still apply.  */
7750 char atan2f ();
7751 int
7752 main ()
7753 {
7754 atan2f ();
7755   ;
7756   return 0;
7757 }
7758 _ACEOF
7759 rm -f conftest.$ac_objext conftest$ac_exeext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7761   (eval $ac_link) 2>conftest.er1
7762   ac_status=$?
7763   grep -v '^ *+' conftest.er1 >conftest.err
7764   rm -f conftest.er1
7765   cat conftest.err >&5
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); } &&
7768          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770   (eval $ac_try) 2>&5
7771   ac_status=$?
7772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773   (exit $ac_status); }; } &&
7774          { ac_try='test -s conftest$ac_exeext'
7775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776   (eval $ac_try) 2>&5
7777   ac_status=$?
7778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779   (exit $ac_status); }; }; then
7780   ac_cv_lib_m_atan2f=yes
7781 else
7782   echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7784
7785 ac_cv_lib_m_atan2f=no
7786 fi
7787 rm -f conftest.err conftest.$ac_objext \
7788       conftest$ac_exeext conftest.$ac_ext
7789 LIBS=$ac_check_lib_save_LIBS
7790 fi
7791 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
7792 echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
7793 if test $ac_cv_lib_m_atan2f = yes; then
7794
7795 cat >>confdefs.h <<\_ACEOF
7796 #define HAVE_ATAN2F 1
7797 _ACEOF
7798
7799 fi
7800
7801 echo "$as_me:$LINENO: checking for atanf in -lm" >&5
7802 echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
7803 if test "${ac_cv_lib_m_atanf+set}" = set; then
7804   echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806   ac_check_lib_save_LIBS=$LIBS
7807 LIBS="-lm  $LIBS"
7808 cat >conftest.$ac_ext <<_ACEOF
7809 /* confdefs.h.  */
7810 _ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h.  */
7814
7815 /* Override any gcc2 internal prototype to avoid an error.  */
7816 #ifdef __cplusplus
7817 extern "C"
7818 #endif
7819 /* We use char because int might match the return type of a gcc2
7820    builtin and then its argument prototype would still apply.  */
7821 char atanf ();
7822 int
7823 main ()
7824 {
7825 atanf ();
7826   ;
7827   return 0;
7828 }
7829 _ACEOF
7830 rm -f conftest.$ac_objext conftest$ac_exeext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7832   (eval $ac_link) 2>conftest.er1
7833   ac_status=$?
7834   grep -v '^ *+' conftest.er1 >conftest.err
7835   rm -f conftest.er1
7836   cat conftest.err >&5
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); } &&
7839          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841   (eval $ac_try) 2>&5
7842   ac_status=$?
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); }; } &&
7845          { ac_try='test -s conftest$ac_exeext'
7846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847   (eval $ac_try) 2>&5
7848   ac_status=$?
7849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850   (exit $ac_status); }; }; then
7851   ac_cv_lib_m_atanf=yes
7852 else
7853   echo "$as_me: failed program was:" >&5
7854 sed 's/^/| /' conftest.$ac_ext >&5
7855
7856 ac_cv_lib_m_atanf=no
7857 fi
7858 rm -f conftest.err conftest.$ac_objext \
7859       conftest$ac_exeext conftest.$ac_ext
7860 LIBS=$ac_check_lib_save_LIBS
7861 fi
7862 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
7863 echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
7864 if test $ac_cv_lib_m_atanf = yes; then
7865
7866 cat >>confdefs.h <<\_ACEOF
7867 #define HAVE_ATANF 1
7868 _ACEOF
7869
7870 fi
7871
7872 echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
7873 echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
7874 if test "${ac_cv_lib_m_ceilf+set}" = set; then
7875   echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877   ac_check_lib_save_LIBS=$LIBS
7878 LIBS="-lm  $LIBS"
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h.  */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h.  */
7885
7886 /* Override any gcc2 internal prototype to avoid an error.  */
7887 #ifdef __cplusplus
7888 extern "C"
7889 #endif
7890 /* We use char because int might match the return type of a gcc2
7891    builtin and then its argument prototype would still apply.  */
7892 char ceilf ();
7893 int
7894 main ()
7895 {
7896 ceilf ();
7897   ;
7898   return 0;
7899 }
7900 _ACEOF
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903   (eval $ac_link) 2>conftest.er1
7904   ac_status=$?
7905   grep -v '^ *+' conftest.er1 >conftest.err
7906   rm -f conftest.er1
7907   cat conftest.err >&5
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); } &&
7910          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912   (eval $ac_try) 2>&5
7913   ac_status=$?
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); }; } &&
7916          { ac_try='test -s conftest$ac_exeext'
7917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918   (eval $ac_try) 2>&5
7919   ac_status=$?
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); }; }; then
7922   ac_cv_lib_m_ceilf=yes
7923 else
7924   echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7926
7927 ac_cv_lib_m_ceilf=no
7928 fi
7929 rm -f conftest.err conftest.$ac_objext \
7930       conftest$ac_exeext conftest.$ac_ext
7931 LIBS=$ac_check_lib_save_LIBS
7932 fi
7933 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
7934 echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
7935 if test $ac_cv_lib_m_ceilf = yes; then
7936
7937 cat >>confdefs.h <<\_ACEOF
7938 #define HAVE_CEILF 1
7939 _ACEOF
7940
7941 fi
7942
7943 echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
7944 echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
7945 if test "${ac_cv_lib_m_copysignf+set}" = set; then
7946   echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948   ac_check_lib_save_LIBS=$LIBS
7949 LIBS="-lm  $LIBS"
7950 cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h.  */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h.  */
7956
7957 /* Override any gcc2 internal prototype to avoid an error.  */
7958 #ifdef __cplusplus
7959 extern "C"
7960 #endif
7961 /* We use char because int might match the return type of a gcc2
7962    builtin and then its argument prototype would still apply.  */
7963 char copysignf ();
7964 int
7965 main ()
7966 {
7967 copysignf ();
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7974   (eval $ac_link) 2>conftest.er1
7975   ac_status=$?
7976   grep -v '^ *+' conftest.er1 >conftest.err
7977   rm -f conftest.er1
7978   cat conftest.err >&5
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); } &&
7981          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983   (eval $ac_try) 2>&5
7984   ac_status=$?
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); }; } &&
7987          { ac_try='test -s conftest$ac_exeext'
7988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989   (eval $ac_try) 2>&5
7990   ac_status=$?
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); }; }; then
7993   ac_cv_lib_m_copysignf=yes
7994 else
7995   echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7997
7998 ac_cv_lib_m_copysignf=no
7999 fi
8000 rm -f conftest.err conftest.$ac_objext \
8001       conftest$ac_exeext conftest.$ac_ext
8002 LIBS=$ac_check_lib_save_LIBS
8003 fi
8004 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
8005 echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
8006 if test $ac_cv_lib_m_copysignf = yes; then
8007
8008 cat >>confdefs.h <<\_ACEOF
8009 #define HAVE_COPYSIGNF 1
8010 _ACEOF
8011
8012 fi
8013
8014 echo "$as_me:$LINENO: checking for cosf in -lm" >&5
8015 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
8016 if test "${ac_cv_lib_m_cosf+set}" = set; then
8017   echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019   ac_check_lib_save_LIBS=$LIBS
8020 LIBS="-lm  $LIBS"
8021 cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h.  */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h.  */
8027
8028 /* Override any gcc2 internal prototype to avoid an error.  */
8029 #ifdef __cplusplus
8030 extern "C"
8031 #endif
8032 /* We use char because int might match the return type of a gcc2
8033    builtin and then its argument prototype would still apply.  */
8034 char cosf ();
8035 int
8036 main ()
8037 {
8038 cosf ();
8039   ;
8040   return 0;
8041 }
8042 _ACEOF
8043 rm -f conftest.$ac_objext conftest$ac_exeext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045   (eval $ac_link) 2>conftest.er1
8046   ac_status=$?
8047   grep -v '^ *+' conftest.er1 >conftest.err
8048   rm -f conftest.er1
8049   cat conftest.err >&5
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); } &&
8052          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054   (eval $ac_try) 2>&5
8055   ac_status=$?
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); }; } &&
8058          { ac_try='test -s conftest$ac_exeext'
8059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060   (eval $ac_try) 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); }; }; then
8064   ac_cv_lib_m_cosf=yes
8065 else
8066   echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8068
8069 ac_cv_lib_m_cosf=no
8070 fi
8071 rm -f conftest.err conftest.$ac_objext \
8072       conftest$ac_exeext conftest.$ac_ext
8073 LIBS=$ac_check_lib_save_LIBS
8074 fi
8075 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
8076 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
8077 if test $ac_cv_lib_m_cosf = yes; then
8078
8079 cat >>confdefs.h <<\_ACEOF
8080 #define HAVE_COSF 1
8081 _ACEOF
8082
8083 fi
8084
8085 echo "$as_me:$LINENO: checking for coshf in -lm" >&5
8086 echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
8087 if test "${ac_cv_lib_m_coshf+set}" = set; then
8088   echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090   ac_check_lib_save_LIBS=$LIBS
8091 LIBS="-lm  $LIBS"
8092 cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098
8099 /* Override any gcc2 internal prototype to avoid an error.  */
8100 #ifdef __cplusplus
8101 extern "C"
8102 #endif
8103 /* We use char because int might match the return type of a gcc2
8104    builtin and then its argument prototype would still apply.  */
8105 char coshf ();
8106 int
8107 main ()
8108 {
8109 coshf ();
8110   ;
8111   return 0;
8112 }
8113 _ACEOF
8114 rm -f conftest.$ac_objext conftest$ac_exeext
8115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8116   (eval $ac_link) 2>conftest.er1
8117   ac_status=$?
8118   grep -v '^ *+' conftest.er1 >conftest.err
8119   rm -f conftest.er1
8120   cat conftest.err >&5
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); } &&
8123          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125   (eval $ac_try) 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); }; } &&
8129          { ac_try='test -s conftest$ac_exeext'
8130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131   (eval $ac_try) 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; }; then
8135   ac_cv_lib_m_coshf=yes
8136 else
8137   echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8139
8140 ac_cv_lib_m_coshf=no
8141 fi
8142 rm -f conftest.err conftest.$ac_objext \
8143       conftest$ac_exeext conftest.$ac_ext
8144 LIBS=$ac_check_lib_save_LIBS
8145 fi
8146 echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
8147 echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
8148 if test $ac_cv_lib_m_coshf = yes; then
8149
8150 cat >>confdefs.h <<\_ACEOF
8151 #define HAVE_COSHF 1
8152 _ACEOF
8153
8154 fi
8155
8156 echo "$as_me:$LINENO: checking for expf in -lm" >&5
8157 echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
8158 if test "${ac_cv_lib_m_expf+set}" = set; then
8159   echo $ECHO_N "(cached) $ECHO_C" >&6
8160 else
8161   ac_check_lib_save_LIBS=$LIBS
8162 LIBS="-lm  $LIBS"
8163 cat >conftest.$ac_ext <<_ACEOF
8164 /* confdefs.h.  */
8165 _ACEOF
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
8168 /* end confdefs.h.  */
8169
8170 /* Override any gcc2 internal prototype to avoid an error.  */
8171 #ifdef __cplusplus
8172 extern "C"
8173 #endif
8174 /* We use char because int might match the return type of a gcc2
8175    builtin and then its argument prototype would still apply.  */
8176 char expf ();
8177 int
8178 main ()
8179 {
8180 expf ();
8181   ;
8182   return 0;
8183 }
8184 _ACEOF
8185 rm -f conftest.$ac_objext conftest$ac_exeext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8187   (eval $ac_link) 2>conftest.er1
8188   ac_status=$?
8189   grep -v '^ *+' conftest.er1 >conftest.err
8190   rm -f conftest.er1
8191   cat conftest.err >&5
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); } &&
8194          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196   (eval $ac_try) 2>&5
8197   ac_status=$?
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); }; } &&
8200          { ac_try='test -s conftest$ac_exeext'
8201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202   (eval $ac_try) 2>&5
8203   ac_status=$?
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); }; }; then
8206   ac_cv_lib_m_expf=yes
8207 else
8208   echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8210
8211 ac_cv_lib_m_expf=no
8212 fi
8213 rm -f conftest.err conftest.$ac_objext \
8214       conftest$ac_exeext conftest.$ac_ext
8215 LIBS=$ac_check_lib_save_LIBS
8216 fi
8217 echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
8218 echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
8219 if test $ac_cv_lib_m_expf = yes; then
8220
8221 cat >>confdefs.h <<\_ACEOF
8222 #define HAVE_EXPF 1
8223 _ACEOF
8224
8225 fi
8226
8227 echo "$as_me:$LINENO: checking for fabsf in -lm" >&5
8228 echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6
8229 if test "${ac_cv_lib_m_fabsf+set}" = set; then
8230   echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232   ac_check_lib_save_LIBS=$LIBS
8233 LIBS="-lm  $LIBS"
8234 cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h.  */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h.  */
8240
8241 /* Override any gcc2 internal prototype to avoid an error.  */
8242 #ifdef __cplusplus
8243 extern "C"
8244 #endif
8245 /* We use char because int might match the return type of a gcc2
8246    builtin and then its argument prototype would still apply.  */
8247 char fabsf ();
8248 int
8249 main ()
8250 {
8251 fabsf ();
8252   ;
8253   return 0;
8254 }
8255 _ACEOF
8256 rm -f conftest.$ac_objext conftest$ac_exeext
8257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8258   (eval $ac_link) 2>conftest.er1
8259   ac_status=$?
8260   grep -v '^ *+' conftest.er1 >conftest.err
8261   rm -f conftest.er1
8262   cat conftest.err >&5
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); } &&
8265          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267   (eval $ac_try) 2>&5
8268   ac_status=$?
8269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270   (exit $ac_status); }; } &&
8271          { ac_try='test -s conftest$ac_exeext'
8272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273   (eval $ac_try) 2>&5
8274   ac_status=$?
8275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276   (exit $ac_status); }; }; then
8277   ac_cv_lib_m_fabsf=yes
8278 else
8279   echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8281
8282 ac_cv_lib_m_fabsf=no
8283 fi
8284 rm -f conftest.err conftest.$ac_objext \
8285       conftest$ac_exeext conftest.$ac_ext
8286 LIBS=$ac_check_lib_save_LIBS
8287 fi
8288 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5
8289 echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6
8290 if test $ac_cv_lib_m_fabsf = yes; then
8291
8292 cat >>confdefs.h <<\_ACEOF
8293 #define HAVE_FABSF 1
8294 _ACEOF
8295
8296 fi
8297
8298 echo "$as_me:$LINENO: checking for floorf in -lm" >&5
8299 echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
8300 if test "${ac_cv_lib_m_floorf+set}" = set; then
8301   echo $ECHO_N "(cached) $ECHO_C" >&6
8302 else
8303   ac_check_lib_save_LIBS=$LIBS
8304 LIBS="-lm  $LIBS"
8305 cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h.  */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h.  */
8311
8312 /* Override any gcc2 internal prototype to avoid an error.  */
8313 #ifdef __cplusplus
8314 extern "C"
8315 #endif
8316 /* We use char because int might match the return type of a gcc2
8317    builtin and then its argument prototype would still apply.  */
8318 char floorf ();
8319 int
8320 main ()
8321 {
8322 floorf ();
8323   ;
8324   return 0;
8325 }
8326 _ACEOF
8327 rm -f conftest.$ac_objext conftest$ac_exeext
8328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8329   (eval $ac_link) 2>conftest.er1
8330   ac_status=$?
8331   grep -v '^ *+' conftest.er1 >conftest.err
8332   rm -f conftest.er1
8333   cat conftest.err >&5
8334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335   (exit $ac_status); } &&
8336          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338   (eval $ac_try) 2>&5
8339   ac_status=$?
8340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341   (exit $ac_status); }; } &&
8342          { ac_try='test -s conftest$ac_exeext'
8343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344   (eval $ac_try) 2>&5
8345   ac_status=$?
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); }; }; then
8348   ac_cv_lib_m_floorf=yes
8349 else
8350   echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8352
8353 ac_cv_lib_m_floorf=no
8354 fi
8355 rm -f conftest.err conftest.$ac_objext \
8356       conftest$ac_exeext conftest.$ac_ext
8357 LIBS=$ac_check_lib_save_LIBS
8358 fi
8359 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
8360 echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
8361 if test $ac_cv_lib_m_floorf = yes; then
8362
8363 cat >>confdefs.h <<\_ACEOF
8364 #define HAVE_FLOORF 1
8365 _ACEOF
8366
8367 fi
8368
8369 echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
8370 echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
8371 if test "${ac_cv_lib_m_frexpf+set}" = set; then
8372   echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374   ac_check_lib_save_LIBS=$LIBS
8375 LIBS="-lm  $LIBS"
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h.  */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h.  */
8382
8383 /* Override any gcc2 internal prototype to avoid an error.  */
8384 #ifdef __cplusplus
8385 extern "C"
8386 #endif
8387 /* We use char because int might match the return type of a gcc2
8388    builtin and then its argument prototype would still apply.  */
8389 char frexpf ();
8390 int
8391 main ()
8392 {
8393 frexpf ();
8394   ;
8395   return 0;
8396 }
8397 _ACEOF
8398 rm -f conftest.$ac_objext conftest$ac_exeext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400   (eval $ac_link) 2>conftest.er1
8401   ac_status=$?
8402   grep -v '^ *+' conftest.er1 >conftest.err
8403   rm -f conftest.er1
8404   cat conftest.err >&5
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); } &&
8407          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409   (eval $ac_try) 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }; } &&
8413          { ac_try='test -s conftest$ac_exeext'
8414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415   (eval $ac_try) 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; }; then
8419   ac_cv_lib_m_frexpf=yes
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424 ac_cv_lib_m_frexpf=no
8425 fi
8426 rm -f conftest.err conftest.$ac_objext \
8427       conftest$ac_exeext conftest.$ac_ext
8428 LIBS=$ac_check_lib_save_LIBS
8429 fi
8430 echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
8431 echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
8432 if test $ac_cv_lib_m_frexpf = yes; then
8433
8434 cat >>confdefs.h <<\_ACEOF
8435 #define HAVE_FREXPF 1
8436 _ACEOF
8437
8438 fi
8439
8440 echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
8441 echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
8442 if test "${ac_cv_lib_m_hypotf+set}" = set; then
8443   echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445   ac_check_lib_save_LIBS=$LIBS
8446 LIBS="-lm  $LIBS"
8447 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h.  */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h.  */
8453
8454 /* Override any gcc2 internal prototype to avoid an error.  */
8455 #ifdef __cplusplus
8456 extern "C"
8457 #endif
8458 /* We use char because int might match the return type of a gcc2
8459    builtin and then its argument prototype would still apply.  */
8460 char hypotf ();
8461 int
8462 main ()
8463 {
8464 hypotf ();
8465   ;
8466   return 0;
8467 }
8468 _ACEOF
8469 rm -f conftest.$ac_objext conftest$ac_exeext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8471   (eval $ac_link) 2>conftest.er1
8472   ac_status=$?
8473   grep -v '^ *+' conftest.er1 >conftest.err
8474   rm -f conftest.er1
8475   cat conftest.err >&5
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); } &&
8478          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480   (eval $ac_try) 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }; } &&
8484          { ac_try='test -s conftest$ac_exeext'
8485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486   (eval $ac_try) 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); }; }; then
8490   ac_cv_lib_m_hypotf=yes
8491 else
8492   echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8494
8495 ac_cv_lib_m_hypotf=no
8496 fi
8497 rm -f conftest.err conftest.$ac_objext \
8498       conftest$ac_exeext conftest.$ac_ext
8499 LIBS=$ac_check_lib_save_LIBS
8500 fi
8501 echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
8502 echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
8503 if test $ac_cv_lib_m_hypotf = yes; then
8504
8505 cat >>confdefs.h <<\_ACEOF
8506 #define HAVE_HYPOTF 1
8507 _ACEOF
8508
8509 fi
8510
8511 echo "$as_me:$LINENO: checking for logf in -lm" >&5
8512 echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
8513 if test "${ac_cv_lib_m_logf+set}" = set; then
8514   echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516   ac_check_lib_save_LIBS=$LIBS
8517 LIBS="-lm  $LIBS"
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h.  */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h.  */
8524
8525 /* Override any gcc2 internal prototype to avoid an error.  */
8526 #ifdef __cplusplus
8527 extern "C"
8528 #endif
8529 /* We use char because int might match the return type of a gcc2
8530    builtin and then its argument prototype would still apply.  */
8531 char logf ();
8532 int
8533 main ()
8534 {
8535 logf ();
8536   ;
8537   return 0;
8538 }
8539 _ACEOF
8540 rm -f conftest.$ac_objext conftest$ac_exeext
8541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8542   (eval $ac_link) 2>conftest.er1
8543   ac_status=$?
8544   grep -v '^ *+' conftest.er1 >conftest.err
8545   rm -f conftest.er1
8546   cat conftest.err >&5
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); } &&
8549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551   (eval $ac_try) 2>&5
8552   ac_status=$?
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); }; } &&
8555          { ac_try='test -s conftest$ac_exeext'
8556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557   (eval $ac_try) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }; }; then
8561   ac_cv_lib_m_logf=yes
8562 else
8563   echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566 ac_cv_lib_m_logf=no
8567 fi
8568 rm -f conftest.err conftest.$ac_objext \
8569       conftest$ac_exeext conftest.$ac_ext
8570 LIBS=$ac_check_lib_save_LIBS
8571 fi
8572 echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
8573 echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
8574 if test $ac_cv_lib_m_logf = yes; then
8575
8576 cat >>confdefs.h <<\_ACEOF
8577 #define HAVE_LOGF 1
8578 _ACEOF
8579
8580 fi
8581
8582 echo "$as_me:$LINENO: checking for log10f in -lm" >&5
8583 echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
8584 if test "${ac_cv_lib_m_log10f+set}" = set; then
8585   echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587   ac_check_lib_save_LIBS=$LIBS
8588 LIBS="-lm  $LIBS"
8589 cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h.  */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h.  */
8595
8596 /* Override any gcc2 internal prototype to avoid an error.  */
8597 #ifdef __cplusplus
8598 extern "C"
8599 #endif
8600 /* We use char because int might match the return type of a gcc2
8601    builtin and then its argument prototype would still apply.  */
8602 char log10f ();
8603 int
8604 main ()
8605 {
8606 log10f ();
8607   ;
8608   return 0;
8609 }
8610 _ACEOF
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8613   (eval $ac_link) 2>conftest.er1
8614   ac_status=$?
8615   grep -v '^ *+' conftest.er1 >conftest.err
8616   rm -f conftest.er1
8617   cat conftest.err >&5
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); } &&
8620          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622   (eval $ac_try) 2>&5
8623   ac_status=$?
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); }; } &&
8626          { ac_try='test -s conftest$ac_exeext'
8627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628   (eval $ac_try) 2>&5
8629   ac_status=$?
8630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); }; }; then
8632   ac_cv_lib_m_log10f=yes
8633 else
8634   echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8636
8637 ac_cv_lib_m_log10f=no
8638 fi
8639 rm -f conftest.err conftest.$ac_objext \
8640       conftest$ac_exeext conftest.$ac_ext
8641 LIBS=$ac_check_lib_save_LIBS
8642 fi
8643 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
8644 echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
8645 if test $ac_cv_lib_m_log10f = yes; then
8646
8647 cat >>confdefs.h <<\_ACEOF
8648 #define HAVE_LOG10F 1
8649 _ACEOF
8650
8651 fi
8652
8653 echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
8654 echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
8655 if test "${ac_cv_lib_m_nextafter+set}" = set; then
8656   echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658   ac_check_lib_save_LIBS=$LIBS
8659 LIBS="-lm  $LIBS"
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666
8667 /* Override any gcc2 internal prototype to avoid an error.  */
8668 #ifdef __cplusplus
8669 extern "C"
8670 #endif
8671 /* We use char because int might match the return type of a gcc2
8672    builtin and then its argument prototype would still apply.  */
8673 char nextafter ();
8674 int
8675 main ()
8676 {
8677 nextafter ();
8678   ;
8679   return 0;
8680 }
8681 _ACEOF
8682 rm -f conftest.$ac_objext conftest$ac_exeext
8683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8684   (eval $ac_link) 2>conftest.er1
8685   ac_status=$?
8686   grep -v '^ *+' conftest.er1 >conftest.err
8687   rm -f conftest.er1
8688   cat conftest.err >&5
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); } &&
8691          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693   (eval $ac_try) 2>&5
8694   ac_status=$?
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); }; } &&
8697          { ac_try='test -s conftest$ac_exeext'
8698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699   (eval $ac_try) 2>&5
8700   ac_status=$?
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); }; }; then
8703   ac_cv_lib_m_nextafter=yes
8704 else
8705   echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8707
8708 ac_cv_lib_m_nextafter=no
8709 fi
8710 rm -f conftest.err conftest.$ac_objext \
8711       conftest$ac_exeext conftest.$ac_ext
8712 LIBS=$ac_check_lib_save_LIBS
8713 fi
8714 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
8715 echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
8716 if test $ac_cv_lib_m_nextafter = yes; then
8717
8718 cat >>confdefs.h <<\_ACEOF
8719 #define HAVE_NEXTAFTER 1
8720 _ACEOF
8721
8722 fi
8723
8724 echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
8725 echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
8726 if test "${ac_cv_lib_m_nextafterf+set}" = set; then
8727   echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729   ac_check_lib_save_LIBS=$LIBS
8730 LIBS="-lm  $LIBS"
8731 cat >conftest.$ac_ext <<_ACEOF
8732 /* confdefs.h.  */
8733 _ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h.  */
8737
8738 /* Override any gcc2 internal prototype to avoid an error.  */
8739 #ifdef __cplusplus
8740 extern "C"
8741 #endif
8742 /* We use char because int might match the return type of a gcc2
8743    builtin and then its argument prototype would still apply.  */
8744 char nextafterf ();
8745 int
8746 main ()
8747 {
8748 nextafterf ();
8749   ;
8750   return 0;
8751 }
8752 _ACEOF
8753 rm -f conftest.$ac_objext conftest$ac_exeext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8755   (eval $ac_link) 2>conftest.er1
8756   ac_status=$?
8757   grep -v '^ *+' conftest.er1 >conftest.err
8758   rm -f conftest.er1
8759   cat conftest.err >&5
8760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761   (exit $ac_status); } &&
8762          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764   (eval $ac_try) 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); }; } &&
8768          { ac_try='test -s conftest$ac_exeext'
8769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770   (eval $ac_try) 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); }; }; then
8774   ac_cv_lib_m_nextafterf=yes
8775 else
8776   echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8778
8779 ac_cv_lib_m_nextafterf=no
8780 fi
8781 rm -f conftest.err conftest.$ac_objext \
8782       conftest$ac_exeext conftest.$ac_ext
8783 LIBS=$ac_check_lib_save_LIBS
8784 fi
8785 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
8786 echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
8787 if test $ac_cv_lib_m_nextafterf = yes; then
8788
8789 cat >>confdefs.h <<\_ACEOF
8790 #define HAVE_NEXTAFTERF 1
8791 _ACEOF
8792
8793 fi
8794
8795 echo "$as_me:$LINENO: checking for powf in -lm" >&5
8796 echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
8797 if test "${ac_cv_lib_m_powf+set}" = set; then
8798   echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8800   ac_check_lib_save_LIBS=$LIBS
8801 LIBS="-lm  $LIBS"
8802 cat >conftest.$ac_ext <<_ACEOF
8803 /* confdefs.h.  */
8804 _ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h.  */
8808
8809 /* Override any gcc2 internal prototype to avoid an error.  */
8810 #ifdef __cplusplus
8811 extern "C"
8812 #endif
8813 /* We use char because int might match the return type of a gcc2
8814    builtin and then its argument prototype would still apply.  */
8815 char powf ();
8816 int
8817 main ()
8818 {
8819 powf ();
8820   ;
8821   return 0;
8822 }
8823 _ACEOF
8824 rm -f conftest.$ac_objext conftest$ac_exeext
8825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8826   (eval $ac_link) 2>conftest.er1
8827   ac_status=$?
8828   grep -v '^ *+' conftest.er1 >conftest.err
8829   rm -f conftest.er1
8830   cat conftest.err >&5
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); } &&
8833          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835   (eval $ac_try) 2>&5
8836   ac_status=$?
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); }; } &&
8839          { ac_try='test -s conftest$ac_exeext'
8840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841   (eval $ac_try) 2>&5
8842   ac_status=$?
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); }; }; then
8845   ac_cv_lib_m_powf=yes
8846 else
8847   echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8849
8850 ac_cv_lib_m_powf=no
8851 fi
8852 rm -f conftest.err conftest.$ac_objext \
8853       conftest$ac_exeext conftest.$ac_ext
8854 LIBS=$ac_check_lib_save_LIBS
8855 fi
8856 echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
8857 echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
8858 if test $ac_cv_lib_m_powf = yes; then
8859
8860 cat >>confdefs.h <<\_ACEOF
8861 #define HAVE_POWF 1
8862 _ACEOF
8863
8864 fi
8865
8866 echo "$as_me:$LINENO: checking for round in -lm" >&5
8867 echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
8868 if test "${ac_cv_lib_m_round+set}" = set; then
8869   echo $ECHO_N "(cached) $ECHO_C" >&6
8870 else
8871   ac_check_lib_save_LIBS=$LIBS
8872 LIBS="-lm  $LIBS"
8873 cat >conftest.$ac_ext <<_ACEOF
8874 /* confdefs.h.  */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h.  */
8879
8880 /* Override any gcc2 internal prototype to avoid an error.  */
8881 #ifdef __cplusplus
8882 extern "C"
8883 #endif
8884 /* We use char because int might match the return type of a gcc2
8885    builtin and then its argument prototype would still apply.  */
8886 char round ();
8887 int
8888 main ()
8889 {
8890 round ();
8891   ;
8892   return 0;
8893 }
8894 _ACEOF
8895 rm -f conftest.$ac_objext conftest$ac_exeext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897   (eval $ac_link) 2>conftest.er1
8898   ac_status=$?
8899   grep -v '^ *+' conftest.er1 >conftest.err
8900   rm -f conftest.er1
8901   cat conftest.err >&5
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); } &&
8904          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906   (eval $ac_try) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); }; } &&
8910          { ac_try='test -s conftest$ac_exeext'
8911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912   (eval $ac_try) 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }; }; then
8916   ac_cv_lib_m_round=yes
8917 else
8918   echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 ac_cv_lib_m_round=no
8922 fi
8923 rm -f conftest.err conftest.$ac_objext \
8924       conftest$ac_exeext conftest.$ac_ext
8925 LIBS=$ac_check_lib_save_LIBS
8926 fi
8927 echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
8928 echo "${ECHO_T}$ac_cv_lib_m_round" >&6
8929 if test $ac_cv_lib_m_round = yes; then
8930
8931 cat >>confdefs.h <<\_ACEOF
8932 #define HAVE_ROUND 1
8933 _ACEOF
8934
8935 fi
8936
8937 echo "$as_me:$LINENO: checking for roundf in -lm" >&5
8938 echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
8939 if test "${ac_cv_lib_m_roundf+set}" = set; then
8940   echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942   ac_check_lib_save_LIBS=$LIBS
8943 LIBS="-lm  $LIBS"
8944 cat >conftest.$ac_ext <<_ACEOF
8945 /* confdefs.h.  */
8946 _ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h.  */
8950
8951 /* Override any gcc2 internal prototype to avoid an error.  */
8952 #ifdef __cplusplus
8953 extern "C"
8954 #endif
8955 /* We use char because int might match the return type of a gcc2
8956    builtin and then its argument prototype would still apply.  */
8957 char roundf ();
8958 int
8959 main ()
8960 {
8961 roundf ();
8962   ;
8963   return 0;
8964 }
8965 _ACEOF
8966 rm -f conftest.$ac_objext conftest$ac_exeext
8967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968   (eval $ac_link) 2>conftest.er1
8969   ac_status=$?
8970   grep -v '^ *+' conftest.er1 >conftest.err
8971   rm -f conftest.er1
8972   cat conftest.err >&5
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); } &&
8975          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977   (eval $ac_try) 2>&5
8978   ac_status=$?
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); }; } &&
8981          { ac_try='test -s conftest$ac_exeext'
8982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983   (eval $ac_try) 2>&5
8984   ac_status=$?
8985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986   (exit $ac_status); }; }; then
8987   ac_cv_lib_m_roundf=yes
8988 else
8989   echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8991
8992 ac_cv_lib_m_roundf=no
8993 fi
8994 rm -f conftest.err conftest.$ac_objext \
8995       conftest$ac_exeext conftest.$ac_ext
8996 LIBS=$ac_check_lib_save_LIBS
8997 fi
8998 echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
8999 echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
9000 if test $ac_cv_lib_m_roundf = yes; then
9001
9002 cat >>confdefs.h <<\_ACEOF
9003 #define HAVE_ROUNDF 1
9004 _ACEOF
9005
9006 fi
9007
9008 echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
9009 echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
9010 if test "${ac_cv_lib_m_scalbnf+set}" = set; then
9011   echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013   ac_check_lib_save_LIBS=$LIBS
9014 LIBS="-lm  $LIBS"
9015 cat >conftest.$ac_ext <<_ACEOF
9016 /* confdefs.h.  */
9017 _ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h.  */
9021
9022 /* Override any gcc2 internal prototype to avoid an error.  */
9023 #ifdef __cplusplus
9024 extern "C"
9025 #endif
9026 /* We use char because int might match the return type of a gcc2
9027    builtin and then its argument prototype would still apply.  */
9028 char scalbnf ();
9029 int
9030 main ()
9031 {
9032 scalbnf ();
9033   ;
9034   return 0;
9035 }
9036 _ACEOF
9037 rm -f conftest.$ac_objext conftest$ac_exeext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9039   (eval $ac_link) 2>conftest.er1
9040   ac_status=$?
9041   grep -v '^ *+' conftest.er1 >conftest.err
9042   rm -f conftest.er1
9043   cat conftest.err >&5
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); } &&
9046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048   (eval $ac_try) 2>&5
9049   ac_status=$?
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); }; } &&
9052          { ac_try='test -s conftest$ac_exeext'
9053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054   (eval $ac_try) 2>&5
9055   ac_status=$?
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); }; }; then
9058   ac_cv_lib_m_scalbnf=yes
9059 else
9060   echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9062
9063 ac_cv_lib_m_scalbnf=no
9064 fi
9065 rm -f conftest.err conftest.$ac_objext \
9066       conftest$ac_exeext conftest.$ac_ext
9067 LIBS=$ac_check_lib_save_LIBS
9068 fi
9069 echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
9070 echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
9071 if test $ac_cv_lib_m_scalbnf = yes; then
9072
9073 cat >>confdefs.h <<\_ACEOF
9074 #define HAVE_SCALBNF 1
9075 _ACEOF
9076
9077 fi
9078
9079 echo "$as_me:$LINENO: checking for sinf in -lm" >&5
9080 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
9081 if test "${ac_cv_lib_m_sinf+set}" = set; then
9082   echo $ECHO_N "(cached) $ECHO_C" >&6
9083 else
9084   ac_check_lib_save_LIBS=$LIBS
9085 LIBS="-lm  $LIBS"
9086 cat >conftest.$ac_ext <<_ACEOF
9087 /* confdefs.h.  */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h.  */
9092
9093 /* Override any gcc2 internal prototype to avoid an error.  */
9094 #ifdef __cplusplus
9095 extern "C"
9096 #endif
9097 /* We use char because int might match the return type of a gcc2
9098    builtin and then its argument prototype would still apply.  */
9099 char sinf ();
9100 int
9101 main ()
9102 {
9103 sinf ();
9104   ;
9105   return 0;
9106 }
9107 _ACEOF
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110   (eval $ac_link) 2>conftest.er1
9111   ac_status=$?
9112   grep -v '^ *+' conftest.er1 >conftest.err
9113   rm -f conftest.er1
9114   cat conftest.err >&5
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); } &&
9117          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119   (eval $ac_try) 2>&5
9120   ac_status=$?
9121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122   (exit $ac_status); }; } &&
9123          { ac_try='test -s conftest$ac_exeext'
9124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125   (eval $ac_try) 2>&5
9126   ac_status=$?
9127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128   (exit $ac_status); }; }; then
9129   ac_cv_lib_m_sinf=yes
9130 else
9131   echo "$as_me: failed program was:" >&5
9132 sed 's/^/| /' conftest.$ac_ext >&5
9133
9134 ac_cv_lib_m_sinf=no
9135 fi
9136 rm -f conftest.err conftest.$ac_objext \
9137       conftest$ac_exeext conftest.$ac_ext
9138 LIBS=$ac_check_lib_save_LIBS
9139 fi
9140 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
9141 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
9142 if test $ac_cv_lib_m_sinf = yes; then
9143
9144 cat >>confdefs.h <<\_ACEOF
9145 #define HAVE_SINF 1
9146 _ACEOF
9147
9148 fi
9149
9150 echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
9151 echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
9152 if test "${ac_cv_lib_m_sinhf+set}" = set; then
9153   echo $ECHO_N "(cached) $ECHO_C" >&6
9154 else
9155   ac_check_lib_save_LIBS=$LIBS
9156 LIBS="-lm  $LIBS"
9157 cat >conftest.$ac_ext <<_ACEOF
9158 /* confdefs.h.  */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h.  */
9163
9164 /* Override any gcc2 internal prototype to avoid an error.  */
9165 #ifdef __cplusplus
9166 extern "C"
9167 #endif
9168 /* We use char because int might match the return type of a gcc2
9169    builtin and then its argument prototype would still apply.  */
9170 char sinhf ();
9171 int
9172 main ()
9173 {
9174 sinhf ();
9175   ;
9176   return 0;
9177 }
9178 _ACEOF
9179 rm -f conftest.$ac_objext conftest$ac_exeext
9180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9181   (eval $ac_link) 2>conftest.er1
9182   ac_status=$?
9183   grep -v '^ *+' conftest.er1 >conftest.err
9184   rm -f conftest.er1
9185   cat conftest.err >&5
9186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187   (exit $ac_status); } &&
9188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190   (eval $ac_try) 2>&5
9191   ac_status=$?
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); }; } &&
9194          { ac_try='test -s conftest$ac_exeext'
9195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196   (eval $ac_try) 2>&5
9197   ac_status=$?
9198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199   (exit $ac_status); }; }; then
9200   ac_cv_lib_m_sinhf=yes
9201 else
9202   echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9204
9205 ac_cv_lib_m_sinhf=no
9206 fi
9207 rm -f conftest.err conftest.$ac_objext \
9208       conftest$ac_exeext conftest.$ac_ext
9209 LIBS=$ac_check_lib_save_LIBS
9210 fi
9211 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
9212 echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
9213 if test $ac_cv_lib_m_sinhf = yes; then
9214
9215 cat >>confdefs.h <<\_ACEOF
9216 #define HAVE_SINHF 1
9217 _ACEOF
9218
9219 fi
9220
9221 echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
9222 echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
9223 if test "${ac_cv_lib_m_sqrtf+set}" = set; then
9224   echo $ECHO_N "(cached) $ECHO_C" >&6
9225 else
9226   ac_check_lib_save_LIBS=$LIBS
9227 LIBS="-lm  $LIBS"
9228 cat >conftest.$ac_ext <<_ACEOF
9229 /* confdefs.h.  */
9230 _ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h.  */
9234
9235 /* Override any gcc2 internal prototype to avoid an error.  */
9236 #ifdef __cplusplus
9237 extern "C"
9238 #endif
9239 /* We use char because int might match the return type of a gcc2
9240    builtin and then its argument prototype would still apply.  */
9241 char sqrtf ();
9242 int
9243 main ()
9244 {
9245 sqrtf ();
9246   ;
9247   return 0;
9248 }
9249 _ACEOF
9250 rm -f conftest.$ac_objext conftest$ac_exeext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9252   (eval $ac_link) 2>conftest.er1
9253   ac_status=$?
9254   grep -v '^ *+' conftest.er1 >conftest.err
9255   rm -f conftest.er1
9256   cat conftest.err >&5
9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); } &&
9259          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261   (eval $ac_try) 2>&5
9262   ac_status=$?
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); }; } &&
9265          { ac_try='test -s conftest$ac_exeext'
9266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267   (eval $ac_try) 2>&5
9268   ac_status=$?
9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); }; }; then
9271   ac_cv_lib_m_sqrtf=yes
9272 else
9273   echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9275
9276 ac_cv_lib_m_sqrtf=no
9277 fi
9278 rm -f conftest.err conftest.$ac_objext \
9279       conftest$ac_exeext conftest.$ac_ext
9280 LIBS=$ac_check_lib_save_LIBS
9281 fi
9282 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
9283 echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
9284 if test $ac_cv_lib_m_sqrtf = yes; then
9285
9286 cat >>confdefs.h <<\_ACEOF
9287 #define HAVE_SQRTF 1
9288 _ACEOF
9289
9290 fi
9291
9292 echo "$as_me:$LINENO: checking for tanf in -lm" >&5
9293 echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
9294 if test "${ac_cv_lib_m_tanf+set}" = set; then
9295   echo $ECHO_N "(cached) $ECHO_C" >&6
9296 else
9297   ac_check_lib_save_LIBS=$LIBS
9298 LIBS="-lm  $LIBS"
9299 cat >conftest.$ac_ext <<_ACEOF
9300 /* confdefs.h.  */
9301 _ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h.  */
9305
9306 /* Override any gcc2 internal prototype to avoid an error.  */
9307 #ifdef __cplusplus
9308 extern "C"
9309 #endif
9310 /* We use char because int might match the return type of a gcc2
9311    builtin and then its argument prototype would still apply.  */
9312 char tanf ();
9313 int
9314 main ()
9315 {
9316 tanf ();
9317   ;
9318   return 0;
9319 }
9320 _ACEOF
9321 rm -f conftest.$ac_objext conftest$ac_exeext
9322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9323   (eval $ac_link) 2>conftest.er1
9324   ac_status=$?
9325   grep -v '^ *+' conftest.er1 >conftest.err
9326   rm -f conftest.er1
9327   cat conftest.err >&5
9328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329   (exit $ac_status); } &&
9330          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332   (eval $ac_try) 2>&5
9333   ac_status=$?
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); }; } &&
9336          { ac_try='test -s conftest$ac_exeext'
9337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338   (eval $ac_try) 2>&5
9339   ac_status=$?
9340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341   (exit $ac_status); }; }; then
9342   ac_cv_lib_m_tanf=yes
9343 else
9344   echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9346
9347 ac_cv_lib_m_tanf=no
9348 fi
9349 rm -f conftest.err conftest.$ac_objext \
9350       conftest$ac_exeext conftest.$ac_ext
9351 LIBS=$ac_check_lib_save_LIBS
9352 fi
9353 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
9354 echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
9355 if test $ac_cv_lib_m_tanf = yes; then
9356
9357 cat >>confdefs.h <<\_ACEOF
9358 #define HAVE_TANF 1
9359 _ACEOF
9360
9361 fi
9362
9363 echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
9364 echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
9365 if test "${ac_cv_lib_m_tanhf+set}" = set; then
9366   echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368   ac_check_lib_save_LIBS=$LIBS
9369 LIBS="-lm  $LIBS"
9370 cat >conftest.$ac_ext <<_ACEOF
9371 /* confdefs.h.  */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h.  */
9376
9377 /* Override any gcc2 internal prototype to avoid an error.  */
9378 #ifdef __cplusplus
9379 extern "C"
9380 #endif
9381 /* We use char because int might match the return type of a gcc2
9382    builtin and then its argument prototype would still apply.  */
9383 char tanhf ();
9384 int
9385 main ()
9386 {
9387 tanhf ();
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394   (eval $ac_link) 2>conftest.er1
9395   ac_status=$?
9396   grep -v '^ *+' conftest.er1 >conftest.err
9397   rm -f conftest.er1
9398   cat conftest.err >&5
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); } &&
9401          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403   (eval $ac_try) 2>&5
9404   ac_status=$?
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); }; } &&
9407          { ac_try='test -s conftest$ac_exeext'
9408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409   (eval $ac_try) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); }; }; then
9413   ac_cv_lib_m_tanhf=yes
9414 else
9415   echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9417
9418 ac_cv_lib_m_tanhf=no
9419 fi
9420 rm -f conftest.err conftest.$ac_objext \
9421       conftest$ac_exeext conftest.$ac_ext
9422 LIBS=$ac_check_lib_save_LIBS
9423 fi
9424 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
9425 echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
9426 if test $ac_cv_lib_m_tanhf = yes; then
9427
9428 cat >>confdefs.h <<\_ACEOF
9429 #define HAVE_TANHF 1
9430 _ACEOF
9431
9432 fi
9433
9434 echo "$as_me:$LINENO: checking for erf in -lm" >&5
9435 echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
9436 if test "${ac_cv_lib_m_erf+set}" = set; then
9437   echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439   ac_check_lib_save_LIBS=$LIBS
9440 LIBS="-lm  $LIBS"
9441 cat >conftest.$ac_ext <<_ACEOF
9442 /* confdefs.h.  */
9443 _ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h.  */
9447
9448 /* Override any gcc2 internal prototype to avoid an error.  */
9449 #ifdef __cplusplus
9450 extern "C"
9451 #endif
9452 /* We use char because int might match the return type of a gcc2
9453    builtin and then its argument prototype would still apply.  */
9454 char erf ();
9455 int
9456 main ()
9457 {
9458 erf ();
9459   ;
9460   return 0;
9461 }
9462 _ACEOF
9463 rm -f conftest.$ac_objext conftest$ac_exeext
9464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9465   (eval $ac_link) 2>conftest.er1
9466   ac_status=$?
9467   grep -v '^ *+' conftest.er1 >conftest.err
9468   rm -f conftest.er1
9469   cat conftest.err >&5
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); } &&
9472          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474   (eval $ac_try) 2>&5
9475   ac_status=$?
9476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477   (exit $ac_status); }; } &&
9478          { ac_try='test -s conftest$ac_exeext'
9479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480   (eval $ac_try) 2>&5
9481   ac_status=$?
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); }; }; then
9484   ac_cv_lib_m_erf=yes
9485 else
9486   echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9488
9489 ac_cv_lib_m_erf=no
9490 fi
9491 rm -f conftest.err conftest.$ac_objext \
9492       conftest$ac_exeext conftest.$ac_ext
9493 LIBS=$ac_check_lib_save_LIBS
9494 fi
9495 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
9496 echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
9497 if test $ac_cv_lib_m_erf = yes; then
9498
9499 cat >>confdefs.h <<\_ACEOF
9500 #define HAVE_ERF 1
9501 _ACEOF
9502
9503 fi
9504
9505 echo "$as_me:$LINENO: checking for erfc in -lm" >&5
9506 echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
9507 if test "${ac_cv_lib_m_erfc+set}" = set; then
9508   echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510   ac_check_lib_save_LIBS=$LIBS
9511 LIBS="-lm  $LIBS"
9512 cat >conftest.$ac_ext <<_ACEOF
9513 /* confdefs.h.  */
9514 _ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h.  */
9518
9519 /* Override any gcc2 internal prototype to avoid an error.  */
9520 #ifdef __cplusplus
9521 extern "C"
9522 #endif
9523 /* We use char because int might match the return type of a gcc2
9524    builtin and then its argument prototype would still apply.  */
9525 char erfc ();
9526 int
9527 main ()
9528 {
9529 erfc ();
9530   ;
9531   return 0;
9532 }
9533 _ACEOF
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536   (eval $ac_link) 2>conftest.er1
9537   ac_status=$?
9538   grep -v '^ *+' conftest.er1 >conftest.err
9539   rm -f conftest.er1
9540   cat conftest.err >&5
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); } &&
9543          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545   (eval $ac_try) 2>&5
9546   ac_status=$?
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); }; } &&
9549          { ac_try='test -s conftest$ac_exeext'
9550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551   (eval $ac_try) 2>&5
9552   ac_status=$?
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); }; }; then
9555   ac_cv_lib_m_erfc=yes
9556 else
9557   echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9559
9560 ac_cv_lib_m_erfc=no
9561 fi
9562 rm -f conftest.err conftest.$ac_objext \
9563       conftest$ac_exeext conftest.$ac_ext
9564 LIBS=$ac_check_lib_save_LIBS
9565 fi
9566 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
9567 echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
9568 if test $ac_cv_lib_m_erfc = yes; then
9569
9570 cat >>confdefs.h <<\_ACEOF
9571 #define HAVE_ERFC 1
9572 _ACEOF
9573
9574 fi
9575
9576 echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
9577 echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
9578 if test "${ac_cv_lib_m_erfcf+set}" = set; then
9579   echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581   ac_check_lib_save_LIBS=$LIBS
9582 LIBS="-lm  $LIBS"
9583 cat >conftest.$ac_ext <<_ACEOF
9584 /* confdefs.h.  */
9585 _ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h.  */
9589
9590 /* Override any gcc2 internal prototype to avoid an error.  */
9591 #ifdef __cplusplus
9592 extern "C"
9593 #endif
9594 /* We use char because int might match the return type of a gcc2
9595    builtin and then its argument prototype would still apply.  */
9596 char erfcf ();
9597 int
9598 main ()
9599 {
9600 erfcf ();
9601   ;
9602   return 0;
9603 }
9604 _ACEOF
9605 rm -f conftest.$ac_objext conftest$ac_exeext
9606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9607   (eval $ac_link) 2>conftest.er1
9608   ac_status=$?
9609   grep -v '^ *+' conftest.er1 >conftest.err
9610   rm -f conftest.er1
9611   cat conftest.err >&5
9612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613   (exit $ac_status); } &&
9614          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616   (eval $ac_try) 2>&5
9617   ac_status=$?
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); }; } &&
9620          { ac_try='test -s conftest$ac_exeext'
9621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622   (eval $ac_try) 2>&5
9623   ac_status=$?
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); }; }; then
9626   ac_cv_lib_m_erfcf=yes
9627 else
9628   echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9630
9631 ac_cv_lib_m_erfcf=no
9632 fi
9633 rm -f conftest.err conftest.$ac_objext \
9634       conftest$ac_exeext conftest.$ac_ext
9635 LIBS=$ac_check_lib_save_LIBS
9636 fi
9637 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
9638 echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
9639 if test $ac_cv_lib_m_erfcf = yes; then
9640
9641 cat >>confdefs.h <<\_ACEOF
9642 #define HAVE_ERFCF 1
9643 _ACEOF
9644
9645 fi
9646
9647 echo "$as_me:$LINENO: checking for erff in -lm" >&5
9648 echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
9649 if test "${ac_cv_lib_m_erff+set}" = set; then
9650   echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652   ac_check_lib_save_LIBS=$LIBS
9653 LIBS="-lm  $LIBS"
9654 cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h.  */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h.  */
9660
9661 /* Override any gcc2 internal prototype to avoid an error.  */
9662 #ifdef __cplusplus
9663 extern "C"
9664 #endif
9665 /* We use char because int might match the return type of a gcc2
9666    builtin and then its argument prototype would still apply.  */
9667 char erff ();
9668 int
9669 main ()
9670 {
9671 erff ();
9672   ;
9673   return 0;
9674 }
9675 _ACEOF
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678   (eval $ac_link) 2>conftest.er1
9679   ac_status=$?
9680   grep -v '^ *+' conftest.er1 >conftest.err
9681   rm -f conftest.er1
9682   cat conftest.err >&5
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); } &&
9685          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
9691          { ac_try='test -s conftest$ac_exeext'
9692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693   (eval $ac_try) 2>&5
9694   ac_status=$?
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); }; }; then
9697   ac_cv_lib_m_erff=yes
9698 else
9699   echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9701
9702 ac_cv_lib_m_erff=no
9703 fi
9704 rm -f conftest.err conftest.$ac_objext \
9705       conftest$ac_exeext conftest.$ac_ext
9706 LIBS=$ac_check_lib_save_LIBS
9707 fi
9708 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5
9709 echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
9710 if test $ac_cv_lib_m_erff = yes; then
9711
9712 cat >>confdefs.h <<\_ACEOF
9713 #define HAVE_ERFF 1
9714 _ACEOF
9715
9716 fi
9717
9718 echo "$as_me:$LINENO: checking for j0 in -lm" >&5
9719 echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
9720 if test "${ac_cv_lib_m_j0+set}" = set; then
9721   echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723   ac_check_lib_save_LIBS=$LIBS
9724 LIBS="-lm  $LIBS"
9725 cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h.  */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h.  */
9731
9732 /* Override any gcc2 internal prototype to avoid an error.  */
9733 #ifdef __cplusplus
9734 extern "C"
9735 #endif
9736 /* We use char because int might match the return type of a gcc2
9737    builtin and then its argument prototype would still apply.  */
9738 char j0 ();
9739 int
9740 main ()
9741 {
9742 j0 ();
9743   ;
9744   return 0;
9745 }
9746 _ACEOF
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9749   (eval $ac_link) 2>conftest.er1
9750   ac_status=$?
9751   grep -v '^ *+' conftest.er1 >conftest.err
9752   rm -f conftest.er1
9753   cat conftest.err >&5
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); } &&
9756          { ac_try='test -z "$ac_c_werror_flag"                   || 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_j0=yes
9769 else
9770   echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9772
9773 ac_cv_lib_m_j0=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_j0" >&5
9780 echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
9781 if test $ac_cv_lib_m_j0 = yes; then
9782
9783 cat >>confdefs.h <<\_ACEOF
9784 #define HAVE_J0 1
9785 _ACEOF
9786
9787 fi
9788
9789 echo "$as_me:$LINENO: checking for j0f in -lm" >&5
9790 echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
9791 if test "${ac_cv_lib_m_j0f+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 cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h.  */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h.  */
9802
9803 /* Override any gcc2 internal prototype to avoid an error.  */
9804 #ifdef __cplusplus
9805 extern "C"
9806 #endif
9807 /* We use char because int might match the return type of a gcc2
9808    builtin and then its argument prototype would still apply.  */
9809 char j0f ();
9810 int
9811 main ()
9812 {
9813 j0f ();
9814   ;
9815   return 0;
9816 }
9817 _ACEOF
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9820   (eval $ac_link) 2>conftest.er1
9821   ac_status=$?
9822   grep -v '^ *+' conftest.er1 >conftest.err
9823   rm -f conftest.er1
9824   cat conftest.err >&5
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); } &&
9827          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829   (eval $ac_try) 2>&5
9830   ac_status=$?
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); }; } &&
9833          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9839   ac_cv_lib_m_j0f=yes
9840 else
9841   echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9843
9844 ac_cv_lib_m_j0f=no
9845 fi
9846 rm -f conftest.err conftest.$ac_objext \
9847       conftest$ac_exeext conftest.$ac_ext
9848 LIBS=$ac_check_lib_save_LIBS
9849 fi
9850 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
9851 echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
9852 if test $ac_cv_lib_m_j0f = yes; then
9853
9854 cat >>confdefs.h <<\_ACEOF
9855 #define HAVE_J0F 1
9856 _ACEOF
9857
9858 fi
9859
9860 echo "$as_me:$LINENO: checking for j1 in -lm" >&5
9861 echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
9862 if test "${ac_cv_lib_m_j1+set}" = set; then
9863   echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865   ac_check_lib_save_LIBS=$LIBS
9866 LIBS="-lm  $LIBS"
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h.  */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h.  */
9873
9874 /* Override any gcc2 internal prototype to avoid an error.  */
9875 #ifdef __cplusplus
9876 extern "C"
9877 #endif
9878 /* We use char because int might match the return type of a gcc2
9879    builtin and then its argument prototype would still apply.  */
9880 char j1 ();
9881 int
9882 main ()
9883 {
9884 j1 ();
9885   ;
9886   return 0;
9887 }
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891   (eval $ac_link) 2>conftest.er1
9892   ac_status=$?
9893   grep -v '^ *+' conftest.er1 >conftest.err
9894   rm -f conftest.er1
9895   cat conftest.err >&5
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); } &&
9898          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900   (eval $ac_try) 2>&5
9901   ac_status=$?
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); }; } &&
9904          { ac_try='test -s conftest$ac_exeext'
9905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906   (eval $ac_try) 2>&5
9907   ac_status=$?
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); }; }; then
9910   ac_cv_lib_m_j1=yes
9911 else
9912   echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9914
9915 ac_cv_lib_m_j1=no
9916 fi
9917 rm -f conftest.err conftest.$ac_objext \
9918       conftest$ac_exeext conftest.$ac_ext
9919 LIBS=$ac_check_lib_save_LIBS
9920 fi
9921 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
9922 echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
9923 if test $ac_cv_lib_m_j1 = yes; then
9924
9925 cat >>confdefs.h <<\_ACEOF
9926 #define HAVE_J1 1
9927 _ACEOF
9928
9929 fi
9930
9931 echo "$as_me:$LINENO: checking for j1f in -lm" >&5
9932 echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
9933 if test "${ac_cv_lib_m_j1f+set}" = set; then
9934   echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936   ac_check_lib_save_LIBS=$LIBS
9937 LIBS="-lm  $LIBS"
9938 cat >conftest.$ac_ext <<_ACEOF
9939 /* confdefs.h.  */
9940 _ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h.  */
9944
9945 /* Override any gcc2 internal prototype to avoid an error.  */
9946 #ifdef __cplusplus
9947 extern "C"
9948 #endif
9949 /* We use char because int might match the return type of a gcc2
9950    builtin and then its argument prototype would still apply.  */
9951 char j1f ();
9952 int
9953 main ()
9954 {
9955 j1f ();
9956   ;
9957   return 0;
9958 }
9959 _ACEOF
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9962   (eval $ac_link) 2>conftest.er1
9963   ac_status=$?
9964   grep -v '^ *+' conftest.er1 >conftest.err
9965   rm -f conftest.er1
9966   cat conftest.err >&5
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); } &&
9969          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971   (eval $ac_try) 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); }; } &&
9975          { ac_try='test -s conftest$ac_exeext'
9976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977   (eval $ac_try) 2>&5
9978   ac_status=$?
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); }; }; then
9981   ac_cv_lib_m_j1f=yes
9982 else
9983   echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9985
9986 ac_cv_lib_m_j1f=no
9987 fi
9988 rm -f conftest.err conftest.$ac_objext \
9989       conftest$ac_exeext conftest.$ac_ext
9990 LIBS=$ac_check_lib_save_LIBS
9991 fi
9992 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
9993 echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
9994 if test $ac_cv_lib_m_j1f = yes; then
9995
9996 cat >>confdefs.h <<\_ACEOF
9997 #define HAVE_J1F 1
9998 _ACEOF
9999
10000 fi
10001
10002 echo "$as_me:$LINENO: checking for jn in -lm" >&5
10003 echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
10004 if test "${ac_cv_lib_m_jn+set}" = set; then
10005   echo $ECHO_N "(cached) $ECHO_C" >&6
10006 else
10007   ac_check_lib_save_LIBS=$LIBS
10008 LIBS="-lm  $LIBS"
10009 cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h.  */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h.  */
10015
10016 /* Override any gcc2 internal prototype to avoid an error.  */
10017 #ifdef __cplusplus
10018 extern "C"
10019 #endif
10020 /* We use char because int might match the return type of a gcc2
10021    builtin and then its argument prototype would still apply.  */
10022 char jn ();
10023 int
10024 main ()
10025 {
10026 jn ();
10027   ;
10028   return 0;
10029 }
10030 _ACEOF
10031 rm -f conftest.$ac_objext conftest$ac_exeext
10032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10033   (eval $ac_link) 2>conftest.er1
10034   ac_status=$?
10035   grep -v '^ *+' conftest.er1 >conftest.err
10036   rm -f conftest.er1
10037   cat conftest.err >&5
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); } &&
10040          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042   (eval $ac_try) 2>&5
10043   ac_status=$?
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); }; } &&
10046          { ac_try='test -s conftest$ac_exeext'
10047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048   (eval $ac_try) 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); }; }; then
10052   ac_cv_lib_m_jn=yes
10053 else
10054   echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.$ac_ext >&5
10056
10057 ac_cv_lib_m_jn=no
10058 fi
10059 rm -f conftest.err conftest.$ac_objext \
10060       conftest$ac_exeext conftest.$ac_ext
10061 LIBS=$ac_check_lib_save_LIBS
10062 fi
10063 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
10064 echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
10065 if test $ac_cv_lib_m_jn = yes; then
10066
10067 cat >>confdefs.h <<\_ACEOF
10068 #define HAVE_JN 1
10069 _ACEOF
10070
10071 fi
10072
10073 echo "$as_me:$LINENO: checking for jnf in -lm" >&5
10074 echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
10075 if test "${ac_cv_lib_m_jnf+set}" = set; then
10076   echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078   ac_check_lib_save_LIBS=$LIBS
10079 LIBS="-lm  $LIBS"
10080 cat >conftest.$ac_ext <<_ACEOF
10081 /* confdefs.h.  */
10082 _ACEOF
10083 cat confdefs.h >>conftest.$ac_ext
10084 cat >>conftest.$ac_ext <<_ACEOF
10085 /* end confdefs.h.  */
10086
10087 /* Override any gcc2 internal prototype to avoid an error.  */
10088 #ifdef __cplusplus
10089 extern "C"
10090 #endif
10091 /* We use char because int might match the return type of a gcc2
10092    builtin and then its argument prototype would still apply.  */
10093 char jnf ();
10094 int
10095 main ()
10096 {
10097 jnf ();
10098   ;
10099   return 0;
10100 }
10101 _ACEOF
10102 rm -f conftest.$ac_objext conftest$ac_exeext
10103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10104   (eval $ac_link) 2>conftest.er1
10105   ac_status=$?
10106   grep -v '^ *+' conftest.er1 >conftest.err
10107   rm -f conftest.er1
10108   cat conftest.err >&5
10109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110   (exit $ac_status); } &&
10111          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113   (eval $ac_try) 2>&5
10114   ac_status=$?
10115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116   (exit $ac_status); }; } &&
10117          { ac_try='test -s conftest$ac_exeext'
10118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119   (eval $ac_try) 2>&5
10120   ac_status=$?
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); }; }; then
10123   ac_cv_lib_m_jnf=yes
10124 else
10125   echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10127
10128 ac_cv_lib_m_jnf=no
10129 fi
10130 rm -f conftest.err conftest.$ac_objext \
10131       conftest$ac_exeext conftest.$ac_ext
10132 LIBS=$ac_check_lib_save_LIBS
10133 fi
10134 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
10135 echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
10136 if test $ac_cv_lib_m_jnf = yes; then
10137
10138 cat >>confdefs.h <<\_ACEOF
10139 #define HAVE_JNF 1
10140 _ACEOF
10141
10142 fi
10143
10144 echo "$as_me:$LINENO: checking for y0 in -lm" >&5
10145 echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
10146 if test "${ac_cv_lib_m_y0+set}" = set; then
10147   echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149   ac_check_lib_save_LIBS=$LIBS
10150 LIBS="-lm  $LIBS"
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h.  */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h.  */
10157
10158 /* Override any gcc2 internal prototype to avoid an error.  */
10159 #ifdef __cplusplus
10160 extern "C"
10161 #endif
10162 /* We use char because int might match the return type of a gcc2
10163    builtin and then its argument prototype would still apply.  */
10164 char y0 ();
10165 int
10166 main ()
10167 {
10168 y0 ();
10169   ;
10170   return 0;
10171 }
10172 _ACEOF
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175   (eval $ac_link) 2>conftest.er1
10176   ac_status=$?
10177   grep -v '^ *+' conftest.er1 >conftest.err
10178   rm -f conftest.er1
10179   cat conftest.err >&5
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); } &&
10182          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184   (eval $ac_try) 2>&5
10185   ac_status=$?
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); }; } &&
10188          { ac_try='test -s conftest$ac_exeext'
10189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190   (eval $ac_try) 2>&5
10191   ac_status=$?
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); }; }; then
10194   ac_cv_lib_m_y0=yes
10195 else
10196   echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10198
10199 ac_cv_lib_m_y0=no
10200 fi
10201 rm -f conftest.err conftest.$ac_objext \
10202       conftest$ac_exeext conftest.$ac_ext
10203 LIBS=$ac_check_lib_save_LIBS
10204 fi
10205 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
10206 echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
10207 if test $ac_cv_lib_m_y0 = yes; then
10208
10209 cat >>confdefs.h <<\_ACEOF
10210 #define HAVE_Y0 1
10211 _ACEOF
10212
10213 fi
10214
10215 echo "$as_me:$LINENO: checking for y0f in -lm" >&5
10216 echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
10217 if test "${ac_cv_lib_m_y0f+set}" = set; then
10218   echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220   ac_check_lib_save_LIBS=$LIBS
10221 LIBS="-lm  $LIBS"
10222 cat >conftest.$ac_ext <<_ACEOF
10223 /* confdefs.h.  */
10224 _ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h.  */
10228
10229 /* Override any gcc2 internal prototype to avoid an error.  */
10230 #ifdef __cplusplus
10231 extern "C"
10232 #endif
10233 /* We use char because int might match the return type of a gcc2
10234    builtin and then its argument prototype would still apply.  */
10235 char y0f ();
10236 int
10237 main ()
10238 {
10239 y0f ();
10240   ;
10241   return 0;
10242 }
10243 _ACEOF
10244 rm -f conftest.$ac_objext conftest$ac_exeext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10246   (eval $ac_link) 2>conftest.er1
10247   ac_status=$?
10248   grep -v '^ *+' conftest.er1 >conftest.err
10249   rm -f conftest.er1
10250   cat conftest.err >&5
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); } &&
10253          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255   (eval $ac_try) 2>&5
10256   ac_status=$?
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); }; } &&
10259          { ac_try='test -s conftest$ac_exeext'
10260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261   (eval $ac_try) 2>&5
10262   ac_status=$?
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); }; }; then
10265   ac_cv_lib_m_y0f=yes
10266 else
10267   echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10269
10270 ac_cv_lib_m_y0f=no
10271 fi
10272 rm -f conftest.err conftest.$ac_objext \
10273       conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10275 fi
10276 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
10277 echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
10278 if test $ac_cv_lib_m_y0f = yes; then
10279
10280 cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_Y0F 1
10282 _ACEOF
10283
10284 fi
10285
10286 echo "$as_me:$LINENO: checking for y1 in -lm" >&5
10287 echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
10288 if test "${ac_cv_lib_m_y1+set}" = set; then
10289   echo $ECHO_N "(cached) $ECHO_C" >&6
10290 else
10291   ac_check_lib_save_LIBS=$LIBS
10292 LIBS="-lm  $LIBS"
10293 cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h.  */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h.  */
10299
10300 /* Override any gcc2 internal prototype to avoid an error.  */
10301 #ifdef __cplusplus
10302 extern "C"
10303 #endif
10304 /* We use char because int might match the return type of a gcc2
10305    builtin and then its argument prototype would still apply.  */
10306 char y1 ();
10307 int
10308 main ()
10309 {
10310 y1 ();
10311   ;
10312   return 0;
10313 }
10314 _ACEOF
10315 rm -f conftest.$ac_objext conftest$ac_exeext
10316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10317   (eval $ac_link) 2>conftest.er1
10318   ac_status=$?
10319   grep -v '^ *+' conftest.er1 >conftest.err
10320   rm -f conftest.er1
10321   cat conftest.err >&5
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); } &&
10324          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326   (eval $ac_try) 2>&5
10327   ac_status=$?
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   (exit $ac_status); }; } &&
10330          { ac_try='test -s conftest$ac_exeext'
10331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332   (eval $ac_try) 2>&5
10333   ac_status=$?
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); }; }; then
10336   ac_cv_lib_m_y1=yes
10337 else
10338   echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10340
10341 ac_cv_lib_m_y1=no
10342 fi
10343 rm -f conftest.err conftest.$ac_objext \
10344       conftest$ac_exeext conftest.$ac_ext
10345 LIBS=$ac_check_lib_save_LIBS
10346 fi
10347 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
10348 echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
10349 if test $ac_cv_lib_m_y1 = yes; then
10350
10351 cat >>confdefs.h <<\_ACEOF
10352 #define HAVE_Y1 1
10353 _ACEOF
10354
10355 fi
10356
10357 echo "$as_me:$LINENO: checking for y1f in -lm" >&5
10358 echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
10359 if test "${ac_cv_lib_m_y1f+set}" = set; then
10360   echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362   ac_check_lib_save_LIBS=$LIBS
10363 LIBS="-lm  $LIBS"
10364 cat >conftest.$ac_ext <<_ACEOF
10365 /* confdefs.h.  */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h.  */
10370
10371 /* Override any gcc2 internal prototype to avoid an error.  */
10372 #ifdef __cplusplus
10373 extern "C"
10374 #endif
10375 /* We use char because int might match the return type of a gcc2
10376    builtin and then its argument prototype would still apply.  */
10377 char y1f ();
10378 int
10379 main ()
10380 {
10381 y1f ();
10382   ;
10383   return 0;
10384 }
10385 _ACEOF
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10388   (eval $ac_link) 2>conftest.er1
10389   ac_status=$?
10390   grep -v '^ *+' conftest.er1 >conftest.err
10391   rm -f conftest.er1
10392   cat conftest.err >&5
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); } &&
10395          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397   (eval $ac_try) 2>&5
10398   ac_status=$?
10399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400   (exit $ac_status); }; } &&
10401          { ac_try='test -s conftest$ac_exeext'
10402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403   (eval $ac_try) 2>&5
10404   ac_status=$?
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); }; }; then
10407   ac_cv_lib_m_y1f=yes
10408 else
10409   echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10411
10412 ac_cv_lib_m_y1f=no
10413 fi
10414 rm -f conftest.err conftest.$ac_objext \
10415       conftest$ac_exeext conftest.$ac_ext
10416 LIBS=$ac_check_lib_save_LIBS
10417 fi
10418 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
10419 echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
10420 if test $ac_cv_lib_m_y1f = yes; then
10421
10422 cat >>confdefs.h <<\_ACEOF
10423 #define HAVE_Y1F 1
10424 _ACEOF
10425
10426 fi
10427
10428 echo "$as_me:$LINENO: checking for yn in -lm" >&5
10429 echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
10430 if test "${ac_cv_lib_m_yn+set}" = set; then
10431   echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433   ac_check_lib_save_LIBS=$LIBS
10434 LIBS="-lm  $LIBS"
10435 cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h.  */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h.  */
10441
10442 /* Override any gcc2 internal prototype to avoid an error.  */
10443 #ifdef __cplusplus
10444 extern "C"
10445 #endif
10446 /* We use char because int might match the return type of a gcc2
10447    builtin and then its argument prototype would still apply.  */
10448 char yn ();
10449 int
10450 main ()
10451 {
10452 yn ();
10453   ;
10454   return 0;
10455 }
10456 _ACEOF
10457 rm -f conftest.$ac_objext conftest$ac_exeext
10458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10459   (eval $ac_link) 2>conftest.er1
10460   ac_status=$?
10461   grep -v '^ *+' conftest.er1 >conftest.err
10462   rm -f conftest.er1
10463   cat conftest.err >&5
10464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465   (exit $ac_status); } &&
10466          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468   (eval $ac_try) 2>&5
10469   ac_status=$?
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); }; } &&
10472          { ac_try='test -s conftest$ac_exeext'
10473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474   (eval $ac_try) 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); }; }; then
10478   ac_cv_lib_m_yn=yes
10479 else
10480   echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483 ac_cv_lib_m_yn=no
10484 fi
10485 rm -f conftest.err conftest.$ac_objext \
10486       conftest$ac_exeext conftest.$ac_ext
10487 LIBS=$ac_check_lib_save_LIBS
10488 fi
10489 echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
10490 echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
10491 if test $ac_cv_lib_m_yn = yes; then
10492
10493 cat >>confdefs.h <<\_ACEOF
10494 #define HAVE_YN 1
10495 _ACEOF
10496
10497 fi
10498
10499 echo "$as_me:$LINENO: checking for ynf in -lm" >&5
10500 echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
10501 if test "${ac_cv_lib_m_ynf+set}" = set; then
10502   echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504   ac_check_lib_save_LIBS=$LIBS
10505 LIBS="-lm  $LIBS"
10506 cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h.  */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h.  */
10512
10513 /* Override any gcc2 internal prototype to avoid an error.  */
10514 #ifdef __cplusplus
10515 extern "C"
10516 #endif
10517 /* We use char because int might match the return type of a gcc2
10518    builtin and then its argument prototype would still apply.  */
10519 char ynf ();
10520 int
10521 main ()
10522 {
10523 ynf ();
10524   ;
10525   return 0;
10526 }
10527 _ACEOF
10528 rm -f conftest.$ac_objext conftest$ac_exeext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10530   (eval $ac_link) 2>conftest.er1
10531   ac_status=$?
10532   grep -v '^ *+' conftest.er1 >conftest.err
10533   rm -f conftest.er1
10534   cat conftest.err >&5
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); } &&
10537          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539   (eval $ac_try) 2>&5
10540   ac_status=$?
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); }; } &&
10543          { ac_try='test -s conftest$ac_exeext'
10544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545   (eval $ac_try) 2>&5
10546   ac_status=$?
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); }; }; then
10549   ac_cv_lib_m_ynf=yes
10550 else
10551   echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10553
10554 ac_cv_lib_m_ynf=no
10555 fi
10556 rm -f conftest.err conftest.$ac_objext \
10557       conftest$ac_exeext conftest.$ac_ext
10558 LIBS=$ac_check_lib_save_LIBS
10559 fi
10560 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
10561 echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
10562 if test $ac_cv_lib_m_ynf = yes; then
10563
10564 cat >>confdefs.h <<\_ACEOF
10565 #define HAVE_YNF 1
10566 _ACEOF
10567
10568 fi
10569
10570
10571 # Fallback in case isfinite is not available.
10572 echo "$as_me:$LINENO: checking for finite in -lm" >&5
10573 echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6
10574 if test "${ac_cv_lib_m_finite+set}" = set; then
10575   echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577   ac_check_lib_save_LIBS=$LIBS
10578 LIBS="-lm  $LIBS"
10579 cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h.  */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h.  */
10585
10586 /* Override any gcc2 internal prototype to avoid an error.  */
10587 #ifdef __cplusplus
10588 extern "C"
10589 #endif
10590 /* We use char because int might match the return type of a gcc2
10591    builtin and then its argument prototype would still apply.  */
10592 char finite ();
10593 int
10594 main ()
10595 {
10596 finite ();
10597   ;
10598   return 0;
10599 }
10600 _ACEOF
10601 rm -f conftest.$ac_objext conftest$ac_exeext
10602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10603   (eval $ac_link) 2>conftest.er1
10604   ac_status=$?
10605   grep -v '^ *+' conftest.er1 >conftest.err
10606   rm -f conftest.er1
10607   cat conftest.err >&5
10608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609   (exit $ac_status); } &&
10610          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612   (eval $ac_try) 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); }; } &&
10616          { ac_try='test -s conftest$ac_exeext'
10617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618   (eval $ac_try) 2>&5
10619   ac_status=$?
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); }; }; then
10622   ac_cv_lib_m_finite=yes
10623 else
10624   echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10626
10627 ac_cv_lib_m_finite=no
10628 fi
10629 rm -f conftest.err conftest.$ac_objext \
10630       conftest$ac_exeext conftest.$ac_ext
10631 LIBS=$ac_check_lib_save_LIBS
10632 fi
10633 echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5
10634 echo "${ECHO_T}$ac_cv_lib_m_finite" >&6
10635 if test $ac_cv_lib_m_finite = yes; then
10636
10637 cat >>confdefs.h <<\_ACEOF
10638 #define HAVE_FINITE 1
10639 _ACEOF
10640
10641 fi
10642
10643
10644 # Let the user override this
10645 # Check whether --enable-cmath or --disable-cmath was given.
10646 if test "${enable_cmath+set}" = set; then
10647   enableval="$enable_cmath"
10648   need_math=$enableval
10649 fi;
10650 if test "$need_math" = "yes"; then
10651         { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
10652 echo "$as_me: Including complex math functions in libgfor" >&6;};
10653   extra_math_obj='$(gfor_cmath_obj)'
10654 fi
10655
10656 MATH_OBJ="$extra_math_obj"
10657
10658
10659 # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
10660 # for struct timezone, as you might think.  We also need to check how
10661 # to call gettimeofday if we have it.
10662 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10663 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10664 if test "${ac_cv_header_time+set}" = set; then
10665   echo $ECHO_N "(cached) $ECHO_C" >&6
10666 else
10667   cat >conftest.$ac_ext <<_ACEOF
10668 /* confdefs.h.  */
10669 _ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h.  */
10673 #include <sys/types.h>
10674 #include <sys/time.h>
10675 #include <time.h>
10676
10677 int
10678 main ()
10679 {
10680 if ((struct tm *) 0)
10681 return 0;
10682   ;
10683   return 0;
10684 }
10685 _ACEOF
10686 rm -f conftest.$ac_objext
10687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10688   (eval $ac_compile) 2>conftest.er1
10689   ac_status=$?
10690   grep -v '^ *+' conftest.er1 >conftest.err
10691   rm -f conftest.er1
10692   cat conftest.err >&5
10693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); } &&
10695          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697   (eval $ac_try) 2>&5
10698   ac_status=$?
10699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700   (exit $ac_status); }; } &&
10701          { ac_try='test -s conftest.$ac_objext'
10702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10703   (eval $ac_try) 2>&5
10704   ac_status=$?
10705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706   (exit $ac_status); }; }; then
10707   ac_cv_header_time=yes
10708 else
10709   echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10711
10712 ac_cv_header_time=no
10713 fi
10714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10715 fi
10716 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10717 echo "${ECHO_T}$ac_cv_header_time" >&6
10718 if test $ac_cv_header_time = yes; then
10719
10720 cat >>confdefs.h <<\_ACEOF
10721 #define TIME_WITH_SYS_TIME 1
10722 _ACEOF
10723
10724 fi
10725
10726
10727
10728 for ac_func in gettimeofday
10729 do
10730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10731 echo "$as_me:$LINENO: checking for $ac_func" >&5
10732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10733 if eval "test \"\${$as_ac_var+set}\" = set"; then
10734   echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736   cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h.  */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h.  */
10742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10744 #define $ac_func innocuous_$ac_func
10745
10746 /* System header to define __stub macros and hopefully few prototypes,
10747     which can conflict with char $ac_func (); below.
10748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10749     <limits.h> exists even on freestanding compilers.  */
10750
10751 #ifdef __STDC__
10752 # include <limits.h>
10753 #else
10754 # include <assert.h>
10755 #endif
10756
10757 #undef $ac_func
10758
10759 /* Override any gcc2 internal prototype to avoid an error.  */
10760 #ifdef __cplusplus
10761 extern "C"
10762 {
10763 #endif
10764 /* We use char because int might match the return type of a gcc2
10765    builtin and then its argument prototype would still apply.  */
10766 char $ac_func ();
10767 /* The GNU C library defines this for functions which it implements
10768     to always fail with ENOSYS.  Some functions are actually named
10769     something starting with __ and the normal name is an alias.  */
10770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10771 choke me
10772 #else
10773 char (*f) () = $ac_func;
10774 #endif
10775 #ifdef __cplusplus
10776 }
10777 #endif
10778
10779 int
10780 main ()
10781 {
10782 return f != $ac_func;
10783   ;
10784   return 0;
10785 }
10786 _ACEOF
10787 rm -f conftest.$ac_objext conftest$ac_exeext
10788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10789   (eval $ac_link) 2>conftest.er1
10790   ac_status=$?
10791   grep -v '^ *+' conftest.er1 >conftest.err
10792   rm -f conftest.er1
10793   cat conftest.err >&5
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); } &&
10796          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798   (eval $ac_try) 2>&5
10799   ac_status=$?
10800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801   (exit $ac_status); }; } &&
10802          { ac_try='test -s conftest$ac_exeext'
10803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804   (eval $ac_try) 2>&5
10805   ac_status=$?
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); }; }; then
10808   eval "$as_ac_var=yes"
10809 else
10810   echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10812
10813 eval "$as_ac_var=no"
10814 fi
10815 rm -f conftest.err conftest.$ac_objext \
10816       conftest$ac_exeext conftest.$ac_ext
10817 fi
10818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10820 if test `eval echo '${'$as_ac_var'}'` = yes; then
10821   cat >>confdefs.h <<_ACEOF
10822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10823 _ACEOF
10824
10825 fi
10826 done
10827
10828   if test "$ac_cv_func_gettimeofday" = yes; then
10829     echo "$as_me:$LINENO: checking for struct timezone" >&5
10830 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
10831 if test "${gfor_cv_struct_timezone+set}" = set; then
10832   echo $ECHO_N "(cached) $ECHO_C" >&6
10833 else
10834   cat >conftest.$ac_ext <<_ACEOF
10835 /* confdefs.h.  */
10836 _ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h.  */
10840 #include <sys/time.h>
10841 int
10842 main ()
10843 {
10844 struct timezone tz;
10845   ;
10846   return 0;
10847 }
10848 _ACEOF
10849 rm -f conftest.$ac_objext
10850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10851   (eval $ac_compile) 2>conftest.er1
10852   ac_status=$?
10853   grep -v '^ *+' conftest.er1 >conftest.err
10854   rm -f conftest.er1
10855   cat conftest.err >&5
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); } &&
10858          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860   (eval $ac_try) 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); }; } &&
10864          { ac_try='test -s conftest.$ac_objext'
10865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866   (eval $ac_try) 2>&5
10867   ac_status=$?
10868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869   (exit $ac_status); }; }; then
10870   gfor_cv_struct_timezone=yes
10871 else
10872   echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10874
10875 gfor_cv_struct_timezone=no
10876 fi
10877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10878 fi
10879 echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
10880 echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
10881     if test $gfor_cv_struct_timezone = yes; then
10882                   if test "$cross_compiling" = yes; then
10883   gfor_have_struct_timezone=yes
10884 else
10885   cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h.  */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h.  */
10891
10892 #ifdef TIME_WITH_SYS_TIME
10893 #include <sys/time.h>
10894 #include <time.h>
10895 #else
10896 #ifdef HAVE_SYS_TIME_H
10897 #include <sys/time.h>
10898 #else
10899 #include <time.h>
10900 #endif
10901 #endif
10902 main ()
10903 {
10904   struct timeval time;
10905   struct timezone dummy;
10906   if (gettimeofday (&time, &dummy))
10907     exit (1);
10908   else
10909     exit (0);
10910 }
10911 _ACEOF
10912 rm -f conftest$ac_exeext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10914   (eval $ac_link) 2>&5
10915   ac_status=$?
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); } && { ac_try='./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   gfor_have_struct_timezone=yes
10924 else
10925   echo "$as_me: program exited with status $ac_status" >&5
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10928
10929 ( exit $ac_status )
10930 gfor_have_struct_timezone=no
10931 fi
10932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10933 fi
10934       if test $gfor_have_struct_timezone = yes; then
10935
10936 cat >>confdefs.h <<\_ACEOF
10937 #define HAVE_TIMEZONE 1
10938 _ACEOF
10939
10940       fi
10941     fi
10942
10943     echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
10944 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
10945 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
10946   echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948   cat >conftest.$ac_ext <<_ACEOF
10949 /* confdefs.h.  */
10950 _ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h.  */
10954
10955 #ifdef TIME_WITH_SYS_TIME
10956 #include <sys/time.h>
10957 #include <time.h>
10958 #else
10959 #ifdef HAVE_SYS_TIME_H
10960 #include <sys/time.h>
10961 #else
10962 #include <time.h>
10963 #endif
10964 #endif
10965
10966 int
10967 main ()
10968 {
10969
10970       struct timeval time;
10971 #ifdef HAVE_TIMEZONE
10972       struct timezone dummy;
10973 #define DUMMY &dummy
10974 #else
10975 #define DUMMY NULL
10976 #endif
10977       gettimeofday (&time, DUMMY);
10978   ;
10979   return 0;
10980 }
10981 _ACEOF
10982 rm -f conftest.$ac_objext conftest$ac_exeext
10983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10984   (eval $ac_link) 2>conftest.er1
10985   ac_status=$?
10986   grep -v '^ *+' conftest.er1 >conftest.err
10987   rm -f conftest.er1
10988   cat conftest.err >&5
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); } &&
10991          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993   (eval $ac_try) 2>&5
10994   ac_status=$?
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); }; } &&
10997          { ac_try='test -s conftest$ac_exeext'
10998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999   (eval $ac_try) 2>&5
11000   ac_status=$?
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); }; }; then
11003   emacs_cv_gettimeofday_two_arguments=yes
11004 else
11005   echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11007
11008 emacs_cv_gettimeofday_two_arguments=no
11009 fi
11010 rm -f conftest.err conftest.$ac_objext \
11011       conftest$ac_exeext conftest.$ac_ext
11012 fi
11013 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
11014 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11015     if test $emacs_cv_gettimeofday_two_arguments = no; then
11016
11017 cat >>confdefs.h <<\_ACEOF
11018 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11019 _ACEOF
11020
11021     fi
11022   fi
11023
11024 # Attempt to assert that the target is of common type in case we don't
11025 # have C99 integer types at all.
11026
11027   echo "$as_me:$LINENO: checking whether the target is ILP32" >&5
11028 echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6
11029 if test "${target_ilp32+set}" = set; then
11030   echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032
11033   save_CFLAGS="$CFLAGS"
11034   CFLAGS="-O2"
11035   cat >conftest.$ac_ext <<_ACEOF
11036 /* confdefs.h.  */
11037 _ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h.  */
11041
11042 int
11043 main ()
11044 {
11045
11046 if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4)
11047   ;
11048 else
11049   undefined_function ();
11050
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"                   || test ! -s conftest.err'
11065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066   (eval $ac_try) 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); }; } &&
11070          { ac_try='test -s conftest$ac_exeext'
11071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072   (eval $ac_try) 2>&5
11073   ac_status=$?
11074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075   (exit $ac_status); }; }; then
11076   target_ilp32=yes
11077 else
11078   echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11080
11081 target_ilp32=no
11082 fi
11083 rm -f conftest.err conftest.$ac_objext \
11084       conftest$ac_exeext conftest.$ac_ext
11085   CFLAGS="$save_CFLAGS"
11086 fi
11087 echo "$as_me:$LINENO: result: $target_ilp32" >&5
11088 echo "${ECHO_T}$target_ilp32" >&6
11089   if test $target_ilp32 = yes; then
11090
11091 cat >>confdefs.h <<\_ACEOF
11092 #define TARGET_ILP32 1
11093 _ACEOF
11094
11095   fi
11096
11097
11098 # Check out attribute support.
11099
11100   echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
11101 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
11102 if test "${have_attribute_visibility+set}" = set; then
11103   echo $ECHO_N "(cached) $ECHO_C" >&6
11104 else
11105
11106   save_CFLAGS="$CFLAGS"
11107   CFLAGS="$CFLAGS -Werror"
11108   cat >conftest.$ac_ext <<_ACEOF
11109 /* confdefs.h.  */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h.  */
11114 void __attribute__((visibility("hidden"))) foo(void) { }
11115 int
11116 main ()
11117 {
11118
11119   ;
11120   return 0;
11121 }
11122 _ACEOF
11123 rm -f conftest.$ac_objext
11124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11125   (eval $ac_compile) 2>conftest.er1
11126   ac_status=$?
11127   grep -v '^ *+' conftest.er1 >conftest.err
11128   rm -f conftest.er1
11129   cat conftest.err >&5
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); } &&
11132          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134   (eval $ac_try) 2>&5
11135   ac_status=$?
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); }; } &&
11138          { ac_try='test -s conftest.$ac_objext'
11139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140   (eval $ac_try) 2>&5
11141   ac_status=$?
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); }; }; then
11144   have_attribute_visibility=yes
11145 else
11146   echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11148
11149 have_attribute_visibility=no
11150 fi
11151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11152   CFLAGS="$save_CFLAGS"
11153 fi
11154 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
11155 echo "${ECHO_T}$have_attribute_visibility" >&6
11156   if test $have_attribute_visibility = yes; then
11157
11158 cat >>confdefs.h <<\_ACEOF
11159 #define HAVE_ATTRIBUTE_VISIBILITY 1
11160 _ACEOF
11161
11162   fi
11163
11164   echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
11165 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
11166 if test "${have_attribute_dllexport+set}" = set; then
11167   echo $ECHO_N "(cached) $ECHO_C" >&6
11168 else
11169
11170   save_CFLAGS="$CFLAGS"
11171   CFLAGS="$CFLAGS -Werror"
11172   cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h.  */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h.  */
11178 void __attribute__((dllexport)) foo(void) { }
11179 int
11180 main ()
11181 {
11182
11183   ;
11184   return 0;
11185 }
11186 _ACEOF
11187 rm -f conftest.$ac_objext
11188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11189   (eval $ac_compile) 2>conftest.er1
11190   ac_status=$?
11191   grep -v '^ *+' conftest.er1 >conftest.err
11192   rm -f conftest.er1
11193   cat conftest.err >&5
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); } &&
11196          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198   (eval $ac_try) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); }; } &&
11202          { ac_try='test -s conftest.$ac_objext'
11203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204   (eval $ac_try) 2>&5
11205   ac_status=$?
11206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); }; }; then
11208   have_attribute_dllexport=yes
11209 else
11210   echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11212
11213 have_attribute_dllexport=no
11214 fi
11215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11216   CFLAGS="$save_CFLAGS"
11217 fi
11218 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
11219 echo "${ECHO_T}$have_attribute_dllexport" >&6
11220   if test $have_attribute_dllexport = yes; then
11221
11222 cat >>confdefs.h <<\_ACEOF
11223 #define HAVE_ATTRIBUTE_DLLEXPORT 1
11224 _ACEOF
11225
11226   fi
11227
11228   echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
11229 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
11230 if test "${have_attribute_alias+set}" = set; then
11231   echo $ECHO_N "(cached) $ECHO_C" >&6
11232 else
11233
11234   cat >conftest.$ac_ext <<_ACEOF
11235 /* confdefs.h.  */
11236 _ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h.  */
11240
11241 #define ULP     STR1(__USER_LABEL_PREFIX__)
11242 #define STR1(x) STR2(x)
11243 #define STR2(x) #x
11244 void foo(void) { }
11245 extern void bar(void) __attribute__((alias(ULP "foo")));
11246 int
11247 main ()
11248 {
11249 bar();
11250   ;
11251   return 0;
11252 }
11253 _ACEOF
11254 rm -f conftest.$ac_objext conftest$ac_exeext
11255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256   (eval $ac_link) 2>conftest.er1
11257   ac_status=$?
11258   grep -v '^ *+' conftest.er1 >conftest.err
11259   rm -f conftest.er1
11260   cat conftest.err >&5
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); } &&
11263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265   (eval $ac_try) 2>&5
11266   ac_status=$?
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); }; } &&
11269          { ac_try='test -s conftest$ac_exeext'
11270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271   (eval $ac_try) 2>&5
11272   ac_status=$?
11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274   (exit $ac_status); }; }; then
11275   have_attribute_alias=yes
11276 else
11277   echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11279
11280 have_attribute_alias=no
11281 fi
11282 rm -f conftest.err conftest.$ac_objext \
11283       conftest$ac_exeext conftest.$ac_ext
11284 fi
11285 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
11286 echo "${ECHO_T}$have_attribute_alias" >&6
11287   if test $have_attribute_alias = yes; then
11288
11289 cat >>confdefs.h <<\_ACEOF
11290 #define HAVE_ATTRIBUTE_ALIAS 1
11291 _ACEOF
11292
11293   fi
11294
11295 cat >confcache <<\_ACEOF
11296 # This file is a shell script that caches the results of configure
11297 # tests run on this system so they can be shared between configure
11298 # scripts and configure runs, see configure's option --config-cache.
11299 # It is not useful on other systems.  If it contains results you don't
11300 # want to keep, you may remove or edit it.
11301 #
11302 # config.status only pays attention to the cache file if you give it
11303 # the --recheck option to rerun configure.
11304 #
11305 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11306 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11307 # following values.
11308
11309 _ACEOF
11310
11311 # The following way of writing the cache mishandles newlines in values,
11312 # but we know of no workaround that is simple, portable, and efficient.
11313 # So, don't put newlines in cache variables' values.
11314 # Ultrix sh set writes to stderr and can't be redirected directly,
11315 # and sets the high bit in the cache file unless we assign to the vars.
11316 {
11317   (set) 2>&1 |
11318     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11319     *ac_space=\ *)
11320       # `set' does not quote correctly, so add quotes (double-quote
11321       # substitution turns \\\\ into \\, and sed turns \\ into \).
11322       sed -n \
11323         "s/'/'\\\\''/g;
11324           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11325       ;;
11326     *)
11327       # `set' quotes correctly as required by POSIX, so do not add quotes.
11328       sed -n \
11329         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11330       ;;
11331     esac;
11332 } |
11333   sed '
11334      t clear
11335      : clear
11336      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11337      t end
11338      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11339      : end' >>confcache
11340 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11341   if test -w $cache_file; then
11342     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11343     cat confcache >$cache_file
11344   else
11345     echo "not updating unwritable cache $cache_file"
11346   fi
11347 fi
11348 rm -f confcache
11349
11350 if test ${multilib} = yes; then
11351   multilib_arg="--enable-multilib"
11352 else
11353   multilib_arg=
11354 fi
11355
11356 # Write our Makefile.
11357           ac_config_files="$ac_config_files Makefile"
11358
11359 cat >confcache <<\_ACEOF
11360 # This file is a shell script that caches the results of configure
11361 # tests run on this system so they can be shared between configure
11362 # scripts and configure runs, see configure's option --config-cache.
11363 # It is not useful on other systems.  If it contains results you don't
11364 # want to keep, you may remove or edit it.
11365 #
11366 # config.status only pays attention to the cache file if you give it
11367 # the --recheck option to rerun configure.
11368 #
11369 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11370 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11371 # following values.
11372
11373 _ACEOF
11374
11375 # The following way of writing the cache mishandles newlines in values,
11376 # but we know of no workaround that is simple, portable, and efficient.
11377 # So, don't put newlines in cache variables' values.
11378 # Ultrix sh set writes to stderr and can't be redirected directly,
11379 # and sets the high bit in the cache file unless we assign to the vars.
11380 {
11381   (set) 2>&1 |
11382     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11383     *ac_space=\ *)
11384       # `set' does not quote correctly, so add quotes (double-quote
11385       # substitution turns \\\\ into \\, and sed turns \\ into \).
11386       sed -n \
11387         "s/'/'\\\\''/g;
11388           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11389       ;;
11390     *)
11391       # `set' quotes correctly as required by POSIX, so do not add quotes.
11392       sed -n \
11393         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11394       ;;
11395     esac;
11396 } |
11397   sed '
11398      t clear
11399      : clear
11400      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11401      t end
11402      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11403      : end' >>confcache
11404 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11405   if test -w $cache_file; then
11406     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11407     cat confcache >$cache_file
11408   else
11409     echo "not updating unwritable cache $cache_file"
11410   fi
11411 fi
11412 rm -f confcache
11413
11414 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11415 # Let make expand exec_prefix.
11416 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11417
11418 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11419 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11420 # trailing colons and then remove the whole line if VPATH becomes empty
11421 # (actually we leave an empty line to preserve line numbers).
11422 if test "x$srcdir" = x.; then
11423   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11424 s/:*\$(srcdir):*/:/;
11425 s/:*\${srcdir}:*/:/;
11426 s/:*@srcdir@:*/:/;
11427 s/^\([^=]*=[     ]*\):*/\1/;
11428 s/:*$//;
11429 s/^[^=]*=[       ]*$//;
11430 }'
11431 fi
11432
11433 DEFS=-DHAVE_CONFIG_H
11434
11435 ac_libobjs=
11436 ac_ltlibobjs=
11437 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11438   # 1. Remove the extension, and $U if already installed.
11439   ac_i=`echo "$ac_i" |
11440          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11441   # 2. Add them.
11442   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11443   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11444 done
11445 LIBOBJS=$ac_libobjs
11446
11447 LTLIBOBJS=$ac_ltlibobjs
11448
11449
11450 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11451   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11452 Usually this means the macro was only invoked conditionally." >&5
11453 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11454 Usually this means the macro was only invoked conditionally." >&2;}
11455    { (exit 1); exit 1; }; }
11456 fi
11457
11458 : ${CONFIG_STATUS=./config.status}
11459 ac_clean_files_save=$ac_clean_files
11460 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11461 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11462 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11463 cat >$CONFIG_STATUS <<_ACEOF
11464 #! $SHELL
11465 # Generated by $as_me.
11466 # Run this file to recreate the current configuration.
11467 # Compiler output produced by configure, useful for debugging
11468 # configure, is in config.log if it exists.
11469
11470 debug=false
11471 ac_cs_recheck=false
11472 ac_cs_silent=false
11473 SHELL=\${CONFIG_SHELL-$SHELL}
11474 _ACEOF
11475
11476 cat >>$CONFIG_STATUS <<\_ACEOF
11477 ## --------------------- ##
11478 ## M4sh Initialization.  ##
11479 ## --------------------- ##
11480
11481 # Be Bourne compatible
11482 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11483   emulate sh
11484   NULLCMD=:
11485   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11486   # is contrary to our usage.  Disable this feature.
11487   alias -g '${1+"$@"}'='"$@"'
11488 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11489   set -o posix
11490 fi
11491 DUALCASE=1; export DUALCASE # for MKS sh
11492
11493 # Support unset when possible.
11494 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11495   as_unset=unset
11496 else
11497   as_unset=false
11498 fi
11499
11500
11501 # Work around bugs in pre-3.0 UWIN ksh.
11502 $as_unset ENV MAIL MAILPATH
11503 PS1='$ '
11504 PS2='> '
11505 PS4='+ '
11506
11507 # NLS nuisances.
11508 for as_var in \
11509   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11510   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11511   LC_TELEPHONE LC_TIME
11512 do
11513   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11514     eval $as_var=C; export $as_var
11515   else
11516     $as_unset $as_var
11517   fi
11518 done
11519
11520 # Required to use basename.
11521 if expr a : '\(a\)' >/dev/null 2>&1; then
11522   as_expr=expr
11523 else
11524   as_expr=false
11525 fi
11526
11527 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11528   as_basename=basename
11529 else
11530   as_basename=false
11531 fi
11532
11533
11534 # Name of the executable.
11535 as_me=`$as_basename "$0" ||
11536 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11537          X"$0" : 'X\(//\)$' \| \
11538          X"$0" : 'X\(/\)$' \| \
11539          .     : '\(.\)' 2>/dev/null ||
11540 echo X/"$0" |
11541     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11542           /^X\/\(\/\/\)$/{ s//\1/; q; }
11543           /^X\/\(\/\).*/{ s//\1/; q; }
11544           s/.*/./; q'`
11545
11546
11547 # PATH needs CR, and LINENO needs CR and PATH.
11548 # Avoid depending upon Character Ranges.
11549 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11550 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11551 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11552 as_cr_digits='0123456789'
11553 as_cr_alnum=$as_cr_Letters$as_cr_digits
11554
11555 # The user is always right.
11556 if test "${PATH_SEPARATOR+set}" != set; then
11557   echo "#! /bin/sh" >conf$$.sh
11558   echo  "exit 0"   >>conf$$.sh
11559   chmod +x conf$$.sh
11560   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11561     PATH_SEPARATOR=';'
11562   else
11563     PATH_SEPARATOR=:
11564   fi
11565   rm -f conf$$.sh
11566 fi
11567
11568
11569   as_lineno_1=$LINENO
11570   as_lineno_2=$LINENO
11571   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11572   test "x$as_lineno_1" != "x$as_lineno_2" &&
11573   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11574   # Find who we are.  Look in the path if we contain no path at all
11575   # relative or not.
11576   case $0 in
11577     *[\\/]* ) as_myself=$0 ;;
11578     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579 for as_dir in $PATH
11580 do
11581   IFS=$as_save_IFS
11582   test -z "$as_dir" && as_dir=.
11583   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11584 done
11585
11586        ;;
11587   esac
11588   # We did not find ourselves, most probably we were run as `sh COMMAND'
11589   # in which case we are not to be found in the path.
11590   if test "x$as_myself" = x; then
11591     as_myself=$0
11592   fi
11593   if test ! -f "$as_myself"; then
11594     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11595 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11596    { (exit 1); exit 1; }; }
11597   fi
11598   case $CONFIG_SHELL in
11599   '')
11600     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11602 do
11603   IFS=$as_save_IFS
11604   test -z "$as_dir" && as_dir=.
11605   for as_base in sh bash ksh sh5; do
11606          case $as_dir in
11607          /*)
11608            if ("$as_dir/$as_base" -c '
11609   as_lineno_1=$LINENO
11610   as_lineno_2=$LINENO
11611   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11612   test "x$as_lineno_1" != "x$as_lineno_2" &&
11613   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11614              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11615              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11616              CONFIG_SHELL=$as_dir/$as_base
11617              export CONFIG_SHELL
11618              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11619            fi;;
11620          esac
11621        done
11622 done
11623 ;;
11624   esac
11625
11626   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11627   # uniformly replaced by the line number.  The first 'sed' inserts a
11628   # line-number line before each line; the second 'sed' does the real
11629   # work.  The second script uses 'N' to pair each line-number line
11630   # with the numbered line, and appends trailing '-' during
11631   # substitution so that $LINENO is not a special case at line end.
11632   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11633   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11634   sed '=' <$as_myself |
11635     sed '
11636       N
11637       s,$,-,
11638       : loop
11639       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11640       t loop
11641       s,-$,,
11642       s,^['$as_cr_digits']*\n,,
11643     ' >$as_me.lineno &&
11644   chmod +x $as_me.lineno ||
11645     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11646 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11647    { (exit 1); exit 1; }; }
11648
11649   # Don't try to exec as it changes $[0], causing all sort of problems
11650   # (the dirname of $[0] is not the place where we might find the
11651   # original and so on.  Autoconf is especially sensible to this).
11652   . ./$as_me.lineno
11653   # Exit status is that of the last command.
11654   exit
11655 }
11656
11657
11658 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11659   *c*,-n*) ECHO_N= ECHO_C='
11660 ' ECHO_T='      ' ;;
11661   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11662   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11663 esac
11664
11665 if expr a : '\(a\)' >/dev/null 2>&1; then
11666   as_expr=expr
11667 else
11668   as_expr=false
11669 fi
11670
11671 rm -f conf$$ conf$$.exe conf$$.file
11672 echo >conf$$.file
11673 if ln -s conf$$.file conf$$ 2>/dev/null; then
11674   # We could just check for DJGPP; but this test a) works b) is more generic
11675   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11676   if test -f conf$$.exe; then
11677     # Don't use ln at all; we don't have any links
11678     as_ln_s='cp -p'
11679   else
11680     as_ln_s='ln -s'
11681   fi
11682 elif ln conf$$.file conf$$ 2>/dev/null; then
11683   as_ln_s=ln
11684 else
11685   as_ln_s='cp -p'
11686 fi
11687 rm -f conf$$ conf$$.exe conf$$.file
11688
11689 if mkdir -p . 2>/dev/null; then
11690   as_mkdir_p=:
11691 else
11692   test -d ./-p && rmdir ./-p
11693   as_mkdir_p=false
11694 fi
11695
11696 as_executable_p="test -f"
11697
11698 # Sed expression to map a string onto a valid CPP name.
11699 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11700
11701 # Sed expression to map a string onto a valid variable name.
11702 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11703
11704
11705 # IFS
11706 # We need space, tab and new line, in precisely that order.
11707 as_nl='
11708 '
11709 IFS="   $as_nl"
11710
11711 # CDPATH.
11712 $as_unset CDPATH
11713
11714 exec 6>&1
11715
11716 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11717 # report actual input values of CONFIG_FILES etc. instead of their
11718 # values after options handling.  Logging --version etc. is OK.
11719 exec 5>>config.log
11720 {
11721   echo
11722   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11723 ## Running $as_me. ##
11724 _ASBOX
11725 } >&5
11726 cat >&5 <<_CSEOF
11727
11728 This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
11729 generated by GNU Autoconf 2.59.  Invocation command line was
11730
11731   CONFIG_FILES    = $CONFIG_FILES
11732   CONFIG_HEADERS  = $CONFIG_HEADERS
11733   CONFIG_LINKS    = $CONFIG_LINKS
11734   CONFIG_COMMANDS = $CONFIG_COMMANDS
11735   $ $0 $@
11736
11737 _CSEOF
11738 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11739 echo >&5
11740 _ACEOF
11741
11742 # Files that config.status was made for.
11743 if test -n "$ac_config_files"; then
11744   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11745 fi
11746
11747 if test -n "$ac_config_headers"; then
11748   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11749 fi
11750
11751 if test -n "$ac_config_links"; then
11752   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11753 fi
11754
11755 if test -n "$ac_config_commands"; then
11756   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11757 fi
11758
11759 cat >>$CONFIG_STATUS <<\_ACEOF
11760
11761 ac_cs_usage="\
11762 \`$as_me' instantiates files from templates according to the
11763 current configuration.
11764
11765 Usage: $0 [OPTIONS] [FILE]...
11766
11767   -h, --help       print this help, then exit
11768   -V, --version    print version number, then exit
11769   -q, --quiet      do not print progress messages
11770   -d, --debug      don't remove temporary files
11771       --recheck    update $as_me by reconfiguring in the same conditions
11772   --file=FILE[:TEMPLATE]
11773                    instantiate the configuration file FILE
11774   --header=FILE[:TEMPLATE]
11775                    instantiate the configuration header FILE
11776
11777 Configuration files:
11778 $config_files
11779
11780 Configuration headers:
11781 $config_headers
11782
11783 Configuration commands:
11784 $config_commands
11785
11786 Report bugs to <bug-autoconf@gnu.org>."
11787 _ACEOF
11788
11789 cat >>$CONFIG_STATUS <<_ACEOF
11790 ac_cs_version="\\
11791 GNU Fortran Runtime Library config.status 0.2
11792 configured by $0, generated by GNU Autoconf 2.59,
11793   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11794
11795 Copyright (C) 2003 Free Software Foundation, Inc.
11796 This config.status script is free software; the Free Software Foundation
11797 gives unlimited permission to copy, distribute and modify it."
11798 srcdir=$srcdir
11799 INSTALL="$INSTALL"
11800 _ACEOF
11801
11802 cat >>$CONFIG_STATUS <<\_ACEOF
11803 # If no file are specified by the user, then we need to provide default
11804 # value.  By we need to know if files were specified by the user.
11805 ac_need_defaults=:
11806 while test $# != 0
11807 do
11808   case $1 in
11809   --*=*)
11810     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11811     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11812     ac_shift=:
11813     ;;
11814   -*)
11815     ac_option=$1
11816     ac_optarg=$2
11817     ac_shift=shift
11818     ;;
11819   *) # This is not an option, so the user has probably given explicit
11820      # arguments.
11821      ac_option=$1
11822      ac_need_defaults=false;;
11823   esac
11824
11825   case $ac_option in
11826   # Handling of the options.
11827 _ACEOF
11828 cat >>$CONFIG_STATUS <<\_ACEOF
11829   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11830     ac_cs_recheck=: ;;
11831   --version | --vers* | -V )
11832     echo "$ac_cs_version"; exit 0 ;;
11833   --he | --h)
11834     # Conflict between --help and --header
11835     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11836 Try \`$0 --help' for more information." >&5
11837 echo "$as_me: error: ambiguous option: $1
11838 Try \`$0 --help' for more information." >&2;}
11839    { (exit 1); exit 1; }; };;
11840   --help | --hel | -h )
11841     echo "$ac_cs_usage"; exit 0 ;;
11842   --debug | --d* | -d )
11843     debug=: ;;
11844   --file | --fil | --fi | --f )
11845     $ac_shift
11846     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11847     ac_need_defaults=false;;
11848   --header | --heade | --head | --hea )
11849     $ac_shift
11850     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11851     ac_need_defaults=false;;
11852   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11853   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11854     ac_cs_silent=: ;;
11855
11856   # This is an error.
11857   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11858 Try \`$0 --help' for more information." >&5
11859 echo "$as_me: error: unrecognized option: $1
11860 Try \`$0 --help' for more information." >&2;}
11861    { (exit 1); exit 1; }; } ;;
11862
11863   *) ac_config_targets="$ac_config_targets $1" ;;
11864
11865   esac
11866   shift
11867 done
11868
11869 ac_configure_extra_args=
11870
11871 if $ac_cs_silent; then
11872   exec 6>/dev/null
11873   ac_configure_extra_args="$ac_configure_extra_args --silent"
11874 fi
11875
11876 _ACEOF
11877 cat >>$CONFIG_STATUS <<_ACEOF
11878 if \$ac_cs_recheck; then
11879   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11880   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11881 fi
11882
11883 _ACEOF
11884
11885 cat >>$CONFIG_STATUS <<_ACEOF
11886 #
11887 # INIT-COMMANDS section.
11888 #
11889
11890
11891 srcdir="$srcdir"
11892 host="$host"
11893 target="$target"
11894 with_multisubdir="$with_multisubdir"
11895 with_multisrctop="$with_multisrctop"
11896 with_target_subdir="$with_target_subdir"
11897 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11898 multi_basedir="$multi_basedir"
11899 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11900 CC="$CC"
11901
11902 _ACEOF
11903
11904
11905
11906 cat >>$CONFIG_STATUS <<\_ACEOF
11907 for ac_config_target in $ac_config_targets
11908 do
11909   case "$ac_config_target" in
11910   # Handling of arguments.
11911   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11912   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11913   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11914   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11915 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11916    { (exit 1); exit 1; }; };;
11917   esac
11918 done
11919
11920 # If the user did not use the arguments to specify the items to instantiate,
11921 # then the envvar interface is used.  Set only those that are not.
11922 # We use the long form for the default assignment because of an extremely
11923 # bizarre bug on SunOS 4.1.3.
11924 if $ac_need_defaults; then
11925   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11926   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11927   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11928 fi
11929
11930 # Have a temporary directory for convenience.  Make it in the build tree
11931 # simply because there is no reason to put it here, and in addition,
11932 # creating and moving files from /tmp can sometimes cause problems.
11933 # Create a temporary directory, and hook for its removal unless debugging.
11934 $debug ||
11935 {
11936   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11937   trap '{ (exit 1); exit 1; }' 1 2 13 15
11938 }
11939
11940 # Create a (secure) tmp directory for tmp files.
11941
11942 {
11943   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11944   test -n "$tmp" && test -d "$tmp"
11945 }  ||
11946 {
11947   tmp=./confstat$$-$RANDOM
11948   (umask 077 && mkdir $tmp)
11949 } ||
11950 {
11951    echo "$me: cannot create a temporary directory in ." >&2
11952    { (exit 1); exit 1; }
11953 }
11954
11955 _ACEOF
11956
11957 cat >>$CONFIG_STATUS <<_ACEOF
11958
11959 #
11960 # CONFIG_FILES section.
11961 #
11962
11963 # No need to generate the scripts if there are no CONFIG_FILES.
11964 # This happens for instance when ./config.status config.h
11965 if test -n "\$CONFIG_FILES"; then
11966   # Protect against being on the right side of a sed subst in config.status.
11967   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11968    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11969 s,@SHELL@,$SHELL,;t t
11970 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11971 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11972 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11973 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11974 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11975 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11976 s,@exec_prefix@,$exec_prefix,;t t
11977 s,@prefix@,$prefix,;t t
11978 s,@program_transform_name@,$program_transform_name,;t t
11979 s,@bindir@,$bindir,;t t
11980 s,@sbindir@,$sbindir,;t t
11981 s,@libexecdir@,$libexecdir,;t t
11982 s,@datadir@,$datadir,;t t
11983 s,@sysconfdir@,$sysconfdir,;t t
11984 s,@sharedstatedir@,$sharedstatedir,;t t
11985 s,@localstatedir@,$localstatedir,;t t
11986 s,@libdir@,$libdir,;t t
11987 s,@includedir@,$includedir,;t t
11988 s,@oldincludedir@,$oldincludedir,;t t
11989 s,@infodir@,$infodir,;t t
11990 s,@mandir@,$mandir,;t t
11991 s,@build_alias@,$build_alias,;t t
11992 s,@host_alias@,$host_alias,;t t
11993 s,@target_alias@,$target_alias,;t t
11994 s,@DEFS@,$DEFS,;t t
11995 s,@ECHO_C@,$ECHO_C,;t t
11996 s,@ECHO_N@,$ECHO_N,;t t
11997 s,@ECHO_T@,$ECHO_T,;t t
11998 s,@LIBS@,$LIBS,;t t
11999 s,@build@,$build,;t t
12000 s,@build_cpu@,$build_cpu,;t t
12001 s,@build_vendor@,$build_vendor,;t t
12002 s,@build_os@,$build_os,;t t
12003 s,@host@,$host,;t t
12004 s,@host_cpu@,$host_cpu,;t t
12005 s,@host_vendor@,$host_vendor,;t t
12006 s,@host_os@,$host_os,;t t
12007 s,@target@,$target,;t t
12008 s,@target_cpu@,$target_cpu,;t t
12009 s,@target_vendor@,$target_vendor,;t t
12010 s,@target_os@,$target_os,;t t
12011 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12012 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12013 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12014 s,@CYGPATH_W@,$CYGPATH_W,;t t
12015 s,@PACKAGE@,$PACKAGE,;t t
12016 s,@VERSION@,$VERSION,;t t
12017 s,@ACLOCAL@,$ACLOCAL,;t t
12018 s,@AUTOCONF@,$AUTOCONF,;t t
12019 s,@AUTOMAKE@,$AUTOMAKE,;t t
12020 s,@AUTOHEADER@,$AUTOHEADER,;t t
12021 s,@MAKEINFO@,$MAKEINFO,;t t
12022 s,@install_sh@,$install_sh,;t t
12023 s,@STRIP@,$STRIP,;t t
12024 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12025 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12026 s,@mkdir_p@,$mkdir_p,;t t
12027 s,@AWK@,$AWK,;t t
12028 s,@SET_MAKE@,$SET_MAKE,;t t
12029 s,@am__leading_dot@,$am__leading_dot,;t t
12030 s,@AMTAR@,$AMTAR,;t t
12031 s,@am__tar@,$am__tar,;t t
12032 s,@am__untar@,$am__untar,;t t
12033 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12034 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12035 s,@MAINT@,$MAINT,;t t
12036 s,@multi_basedir@,$multi_basedir,;t t
12037 s,@toolexecdir@,$toolexecdir,;t t
12038 s,@toolexeclibdir@,$toolexeclibdir,;t t
12039 s,@CC@,$CC,;t t
12040 s,@ac_ct_CC@,$ac_ct_CC,;t t
12041 s,@EXEEXT@,$EXEEXT,;t t
12042 s,@OBJEXT@,$OBJEXT,;t t
12043 s,@CFLAGS@,$CFLAGS,;t t
12044 s,@AS@,$AS,;t t
12045 s,@ac_ct_AS@,$ac_ct_AS,;t t
12046 s,@AR@,$AR,;t t
12047 s,@ac_ct_AR@,$ac_ct_AR,;t t
12048 s,@RANLIB@,$RANLIB,;t t
12049 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12050 s,@LN_S@,$LN_S,;t t
12051 s,@LIBTOOL@,$LIBTOOL,;t t
12052 s,@enable_shared@,$enable_shared,;t t
12053 s,@enable_static@,$enable_static,;t t
12054 s,@FC@,$FC,;t t
12055 s,@FCFLAGS@,$FCFLAGS,;t t
12056 s,@LDFLAGS@,$LDFLAGS,;t t
12057 s,@ac_ct_FC@,$ac_ct_FC,;t t
12058 s,@CPP@,$CPP,;t t
12059 s,@CPPFLAGS@,$CPPFLAGS,;t t
12060 s,@EGREP@,$EGREP,;t t
12061 s,@MATH_OBJ@,$MATH_OBJ,;t t
12062 s,@LIBOBJS@,$LIBOBJS,;t t
12063 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12064 CEOF
12065
12066 _ACEOF
12067
12068   cat >>$CONFIG_STATUS <<\_ACEOF
12069   # Split the substitutions into bite-sized pieces for seds with
12070   # small command number limits, like on Digital OSF/1 and HP-UX.
12071   ac_max_sed_lines=48
12072   ac_sed_frag=1 # Number of current file.
12073   ac_beg=1 # First line for current file.
12074   ac_end=$ac_max_sed_lines # Line after last line for current file.
12075   ac_more_lines=:
12076   ac_sed_cmds=
12077   while $ac_more_lines; do
12078     if test $ac_beg -gt 1; then
12079       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12080     else
12081       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12082     fi
12083     if test ! -s $tmp/subs.frag; then
12084       ac_more_lines=false
12085     else
12086       # The purpose of the label and of the branching condition is to
12087       # speed up the sed processing (if there are no `@' at all, there
12088       # is no need to browse any of the substitutions).
12089       # These are the two extra sed commands mentioned above.
12090       (echo ':t
12091   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12092       if test -z "$ac_sed_cmds"; then
12093         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12094       else
12095         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12096       fi
12097       ac_sed_frag=`expr $ac_sed_frag + 1`
12098       ac_beg=$ac_end
12099       ac_end=`expr $ac_end + $ac_max_sed_lines`
12100     fi
12101   done
12102   if test -z "$ac_sed_cmds"; then
12103     ac_sed_cmds=cat
12104   fi
12105 fi # test -n "$CONFIG_FILES"
12106
12107 _ACEOF
12108 cat >>$CONFIG_STATUS <<\_ACEOF
12109 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12110   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12111   case $ac_file in
12112   - | *:- | *:-:* ) # input from stdin
12113         cat >$tmp/stdin
12114         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12115         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12116   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12117         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12118   * )   ac_file_in=$ac_file.in ;;
12119   esac
12120
12121   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12122   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12123 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12124          X"$ac_file" : 'X\(//\)[^/]' \| \
12125          X"$ac_file" : 'X\(//\)$' \| \
12126          X"$ac_file" : 'X\(/\)' \| \
12127          .     : '\(.\)' 2>/dev/null ||
12128 echo X"$ac_file" |
12129     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12130           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12131           /^X\(\/\/\)$/{ s//\1/; q; }
12132           /^X\(\/\).*/{ s//\1/; q; }
12133           s/.*/./; q'`
12134   { if $as_mkdir_p; then
12135     mkdir -p "$ac_dir"
12136   else
12137     as_dir="$ac_dir"
12138     as_dirs=
12139     while test ! -d "$as_dir"; do
12140       as_dirs="$as_dir $as_dirs"
12141       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12143          X"$as_dir" : 'X\(//\)[^/]' \| \
12144          X"$as_dir" : 'X\(//\)$' \| \
12145          X"$as_dir" : 'X\(/\)' \| \
12146          .     : '\(.\)' 2>/dev/null ||
12147 echo X"$as_dir" |
12148     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12149           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12150           /^X\(\/\/\)$/{ s//\1/; q; }
12151           /^X\(\/\).*/{ s//\1/; q; }
12152           s/.*/./; q'`
12153     done
12154     test ! -n "$as_dirs" || mkdir $as_dirs
12155   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12156 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12157    { (exit 1); exit 1; }; }; }
12158
12159   ac_builddir=.
12160
12161 if test "$ac_dir" != .; then
12162   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12163   # A "../" for each directory in $ac_dir_suffix.
12164   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12165 else
12166   ac_dir_suffix= ac_top_builddir=
12167 fi
12168
12169 case $srcdir in
12170   .)  # No --srcdir option.  We are building in place.
12171     ac_srcdir=.
12172     if test -z "$ac_top_builddir"; then
12173        ac_top_srcdir=.
12174     else
12175        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12176     fi ;;
12177   [\\/]* | ?:[\\/]* )  # Absolute path.
12178     ac_srcdir=$srcdir$ac_dir_suffix;
12179     ac_top_srcdir=$srcdir ;;
12180   *) # Relative path.
12181     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12182     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12183 esac
12184
12185 # Do not use `cd foo && pwd` to compute absolute paths, because
12186 # the directories may not exist.
12187 case `pwd` in
12188 .) ac_abs_builddir="$ac_dir";;
12189 *)
12190   case "$ac_dir" in
12191   .) ac_abs_builddir=`pwd`;;
12192   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12193   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12194   esac;;
12195 esac
12196 case $ac_abs_builddir in
12197 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12198 *)
12199   case ${ac_top_builddir}. in
12200   .) ac_abs_top_builddir=$ac_abs_builddir;;
12201   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12202   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12203   esac;;
12204 esac
12205 case $ac_abs_builddir in
12206 .) ac_abs_srcdir=$ac_srcdir;;
12207 *)
12208   case $ac_srcdir in
12209   .) ac_abs_srcdir=$ac_abs_builddir;;
12210   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12211   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12212   esac;;
12213 esac
12214 case $ac_abs_builddir in
12215 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12216 *)
12217   case $ac_top_srcdir in
12218   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12219   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12220   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12221   esac;;
12222 esac
12223
12224
12225   case $INSTALL in
12226   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12227   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12228   esac
12229
12230   # Let's still pretend it is `configure' which instantiates (i.e., don't
12231   # use $as_me), people would be surprised to read:
12232   #    /* config.h.  Generated by config.status.  */
12233   if test x"$ac_file" = x-; then
12234     configure_input=
12235   else
12236     configure_input="$ac_file.  "
12237   fi
12238   configure_input=$configure_input"Generated from `echo $ac_file_in |
12239                                      sed 's,.*/,,'` by configure."
12240
12241   # First look for the input files in the build tree, otherwise in the
12242   # src tree.
12243   ac_file_inputs=`IFS=:
12244     for f in $ac_file_in; do
12245       case $f in
12246       -) echo $tmp/stdin ;;
12247       [\\/$]*)
12248          # Absolute (can't be DOS-style, as IFS=:)
12249          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12250 echo "$as_me: error: cannot find input file: $f" >&2;}
12251    { (exit 1); exit 1; }; }
12252          echo "$f";;
12253       *) # Relative
12254          if test -f "$f"; then
12255            # Build tree
12256            echo "$f"
12257          elif test -f "$srcdir/$f"; then
12258            # Source tree
12259            echo "$srcdir/$f"
12260          else
12261            # /dev/null tree
12262            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12263 echo "$as_me: error: cannot find input file: $f" >&2;}
12264    { (exit 1); exit 1; }; }
12265          fi;;
12266       esac
12267     done` || { (exit 1); exit 1; }
12268
12269   if test x"$ac_file" != x-; then
12270     { echo "$as_me:$LINENO: creating $ac_file" >&5
12271 echo "$as_me: creating $ac_file" >&6;}
12272     rm -f "$ac_file"
12273   fi
12274 _ACEOF
12275 cat >>$CONFIG_STATUS <<_ACEOF
12276   sed "$ac_vpsub
12277 $extrasub
12278 _ACEOF
12279 cat >>$CONFIG_STATUS <<\_ACEOF
12280 :t
12281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12282 s,@configure_input@,$configure_input,;t t
12283 s,@srcdir@,$ac_srcdir,;t t
12284 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12285 s,@top_srcdir@,$ac_top_srcdir,;t t
12286 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12287 s,@builddir@,$ac_builddir,;t t
12288 s,@abs_builddir@,$ac_abs_builddir,;t t
12289 s,@top_builddir@,$ac_top_builddir,;t t
12290 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12291 s,@INSTALL@,$ac_INSTALL,;t t
12292 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12293   rm -f $tmp/stdin
12294   if test x"$ac_file" != x-; then
12295     mv $tmp/out $ac_file
12296   else
12297     cat $tmp/out
12298     rm -f $tmp/out
12299   fi
12300
12301 done
12302 _ACEOF
12303 cat >>$CONFIG_STATUS <<\_ACEOF
12304
12305 #
12306 # CONFIG_HEADER section.
12307 #
12308
12309 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12310 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12311 #
12312 # ac_d sets the value in "#define NAME VALUE" lines.
12313 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12314 ac_dB='[         ].*$,\1#\2'
12315 ac_dC=' '
12316 ac_dD=',;t'
12317 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12318 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12319 ac_uB='$,\1#\2define\3'
12320 ac_uC=' '
12321 ac_uD=',;t'
12322
12323 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12324   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12325   case $ac_file in
12326   - | *:- | *:-:* ) # input from stdin
12327         cat >$tmp/stdin
12328         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12329         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12330   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12331         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12332   * )   ac_file_in=$ac_file.in ;;
12333   esac
12334
12335   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12336 echo "$as_me: creating $ac_file" >&6;}
12337
12338   # First look for the input files in the build tree, otherwise in the
12339   # src tree.
12340   ac_file_inputs=`IFS=:
12341     for f in $ac_file_in; do
12342       case $f in
12343       -) echo $tmp/stdin ;;
12344       [\\/$]*)
12345          # Absolute (can't be DOS-style, as IFS=:)
12346          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12347 echo "$as_me: error: cannot find input file: $f" >&2;}
12348    { (exit 1); exit 1; }; }
12349          # Do quote $f, to prevent DOS paths from being IFS'd.
12350          echo "$f";;
12351       *) # Relative
12352          if test -f "$f"; then
12353            # Build tree
12354            echo "$f"
12355          elif test -f "$srcdir/$f"; then
12356            # Source tree
12357            echo "$srcdir/$f"
12358          else
12359            # /dev/null tree
12360            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12361 echo "$as_me: error: cannot find input file: $f" >&2;}
12362    { (exit 1); exit 1; }; }
12363          fi;;
12364       esac
12365     done` || { (exit 1); exit 1; }
12366   # Remove the trailing spaces.
12367   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12368
12369 _ACEOF
12370
12371 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12372 # `conftest.undefs', that substitutes the proper values into
12373 # config.h.in to produce config.h.  The first handles `#define'
12374 # templates, and the second `#undef' templates.
12375 # And first: Protect against being on the right side of a sed subst in
12376 # config.status.  Protect against being in an unquoted here document
12377 # in config.status.
12378 rm -f conftest.defines conftest.undefs
12379 # Using a here document instead of a string reduces the quoting nightmare.
12380 # Putting comments in sed scripts is not portable.
12381 #
12382 # `end' is used to avoid that the second main sed command (meant for
12383 # 0-ary CPP macros) applies to n-ary macro definitions.
12384 # See the Autoconf documentation for `clear'.
12385 cat >confdef2sed.sed <<\_ACEOF
12386 s/[\\&,]/\\&/g
12387 s,[\\$`],\\&,g
12388 t clear
12389 : clear
12390 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12391 t end
12392 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12393 : end
12394 _ACEOF
12395 # If some macros were called several times there might be several times
12396 # the same #defines, which is useless.  Nevertheless, we may not want to
12397 # sort them, since we want the *last* AC-DEFINE to be honored.
12398 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12399 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12400 rm -f confdef2sed.sed
12401
12402 # This sed command replaces #undef with comments.  This is necessary, for
12403 # example, in the case of _POSIX_SOURCE, which is predefined and required
12404 # on some systems where configure will not decide to define it.
12405 cat >>conftest.undefs <<\_ACEOF
12406 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12407 _ACEOF
12408
12409 # Break up conftest.defines because some shells have a limit on the size
12410 # of here documents, and old seds have small limits too (100 cmds).
12411 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12412 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12413 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12414 echo '  :' >>$CONFIG_STATUS
12415 rm -f conftest.tail
12416 while grep . conftest.defines >/dev/null
12417 do
12418   # Write a limited-size here document to $tmp/defines.sed.
12419   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12420   # Speed up: don't consider the non `#define' lines.
12421   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12422   # Work around the forget-to-reset-the-flag bug.
12423   echo 't clr' >>$CONFIG_STATUS
12424   echo ': clr' >>$CONFIG_STATUS
12425   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12426   echo 'CEOF
12427   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12428   rm -f $tmp/in
12429   mv $tmp/out $tmp/in
12430 ' >>$CONFIG_STATUS
12431   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12432   rm -f conftest.defines
12433   mv conftest.tail conftest.defines
12434 done
12435 rm -f conftest.defines
12436 echo '  fi # grep' >>$CONFIG_STATUS
12437 echo >>$CONFIG_STATUS
12438
12439 # Break up conftest.undefs because some shells have a limit on the size
12440 # of here documents, and old seds have small limits too (100 cmds).
12441 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12442 rm -f conftest.tail
12443 while grep . conftest.undefs >/dev/null
12444 do
12445   # Write a limited-size here document to $tmp/undefs.sed.
12446   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12447   # Speed up: don't consider the non `#undef'
12448   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12449   # Work around the forget-to-reset-the-flag bug.
12450   echo 't clr' >>$CONFIG_STATUS
12451   echo ': clr' >>$CONFIG_STATUS
12452   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12453   echo 'CEOF
12454   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12455   rm -f $tmp/in
12456   mv $tmp/out $tmp/in
12457 ' >>$CONFIG_STATUS
12458   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12459   rm -f conftest.undefs
12460   mv conftest.tail conftest.undefs
12461 done
12462 rm -f conftest.undefs
12463
12464 cat >>$CONFIG_STATUS <<\_ACEOF
12465   # Let's still pretend it is `configure' which instantiates (i.e., don't
12466   # use $as_me), people would be surprised to read:
12467   #    /* config.h.  Generated by config.status.  */
12468   if test x"$ac_file" = x-; then
12469     echo "/* Generated by configure.  */" >$tmp/config.h
12470   else
12471     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12472   fi
12473   cat $tmp/in >>$tmp/config.h
12474   rm -f $tmp/in
12475   if test x"$ac_file" != x-; then
12476     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12477       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12478 echo "$as_me: $ac_file is unchanged" >&6;}
12479     else
12480       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12482          X"$ac_file" : 'X\(//\)[^/]' \| \
12483          X"$ac_file" : 'X\(//\)$' \| \
12484          X"$ac_file" : 'X\(/\)' \| \
12485          .     : '\(.\)' 2>/dev/null ||
12486 echo X"$ac_file" |
12487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12488           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12489           /^X\(\/\/\)$/{ s//\1/; q; }
12490           /^X\(\/\).*/{ s//\1/; q; }
12491           s/.*/./; q'`
12492       { if $as_mkdir_p; then
12493     mkdir -p "$ac_dir"
12494   else
12495     as_dir="$ac_dir"
12496     as_dirs=
12497     while test ! -d "$as_dir"; do
12498       as_dirs="$as_dir $as_dirs"
12499       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12501          X"$as_dir" : 'X\(//\)[^/]' \| \
12502          X"$as_dir" : 'X\(//\)$' \| \
12503          X"$as_dir" : 'X\(/\)' \| \
12504          .     : '\(.\)' 2>/dev/null ||
12505 echo X"$as_dir" |
12506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12507           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12508           /^X\(\/\/\)$/{ s//\1/; q; }
12509           /^X\(\/\).*/{ s//\1/; q; }
12510           s/.*/./; q'`
12511     done
12512     test ! -n "$as_dirs" || mkdir $as_dirs
12513   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12514 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12515    { (exit 1); exit 1; }; }; }
12516
12517       rm -f $ac_file
12518       mv $tmp/config.h $ac_file
12519     fi
12520   else
12521     cat $tmp/config.h
12522     rm -f $tmp/config.h
12523   fi
12524 # Compute $ac_file's index in $config_headers.
12525 _am_stamp_count=1
12526 for _am_header in $config_headers :; do
12527   case $_am_header in
12528     $ac_file | $ac_file:* )
12529       break ;;
12530     * )
12531       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12532   esac
12533 done
12534 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12535 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12536          X$ac_file : 'X\(//\)[^/]' \| \
12537          X$ac_file : 'X\(//\)$' \| \
12538          X$ac_file : 'X\(/\)' \| \
12539          .     : '\(.\)' 2>/dev/null ||
12540 echo X$ac_file |
12541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12542           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12543           /^X\(\/\/\)$/{ s//\1/; q; }
12544           /^X\(\/\).*/{ s//\1/; q; }
12545           s/.*/./; q'`/stamp-h$_am_stamp_count
12546 done
12547 _ACEOF
12548 cat >>$CONFIG_STATUS <<\_ACEOF
12549
12550 #
12551 # CONFIG_COMMANDS section.
12552 #
12553 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12554   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12555   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12556   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12557 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12558          X"$ac_dest" : 'X\(//\)[^/]' \| \
12559          X"$ac_dest" : 'X\(//\)$' \| \
12560          X"$ac_dest" : 'X\(/\)' \| \
12561          .     : '\(.\)' 2>/dev/null ||
12562 echo X"$ac_dest" |
12563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12564           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12565           /^X\(\/\/\)$/{ s//\1/; q; }
12566           /^X\(\/\).*/{ s//\1/; q; }
12567           s/.*/./; q'`
12568   { if $as_mkdir_p; then
12569     mkdir -p "$ac_dir"
12570   else
12571     as_dir="$ac_dir"
12572     as_dirs=
12573     while test ! -d "$as_dir"; do
12574       as_dirs="$as_dir $as_dirs"
12575       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12577          X"$as_dir" : 'X\(//\)[^/]' \| \
12578          X"$as_dir" : 'X\(//\)$' \| \
12579          X"$as_dir" : 'X\(/\)' \| \
12580          .     : '\(.\)' 2>/dev/null ||
12581 echo X"$as_dir" |
12582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12583           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12584           /^X\(\/\/\)$/{ s//\1/; q; }
12585           /^X\(\/\).*/{ s//\1/; q; }
12586           s/.*/./; q'`
12587     done
12588     test ! -n "$as_dirs" || mkdir $as_dirs
12589   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12590 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12591    { (exit 1); exit 1; }; }; }
12592
12593   ac_builddir=.
12594
12595 if test "$ac_dir" != .; then
12596   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12597   # A "../" for each directory in $ac_dir_suffix.
12598   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12599 else
12600   ac_dir_suffix= ac_top_builddir=
12601 fi
12602
12603 case $srcdir in
12604   .)  # No --srcdir option.  We are building in place.
12605     ac_srcdir=.
12606     if test -z "$ac_top_builddir"; then
12607        ac_top_srcdir=.
12608     else
12609        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12610     fi ;;
12611   [\\/]* | ?:[\\/]* )  # Absolute path.
12612     ac_srcdir=$srcdir$ac_dir_suffix;
12613     ac_top_srcdir=$srcdir ;;
12614   *) # Relative path.
12615     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12616     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12617 esac
12618
12619 # Do not use `cd foo && pwd` to compute absolute paths, because
12620 # the directories may not exist.
12621 case `pwd` in
12622 .) ac_abs_builddir="$ac_dir";;
12623 *)
12624   case "$ac_dir" in
12625   .) ac_abs_builddir=`pwd`;;
12626   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12627   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12628   esac;;
12629 esac
12630 case $ac_abs_builddir in
12631 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12632 *)
12633   case ${ac_top_builddir}. in
12634   .) ac_abs_top_builddir=$ac_abs_builddir;;
12635   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12636   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12637   esac;;
12638 esac
12639 case $ac_abs_builddir in
12640 .) ac_abs_srcdir=$ac_srcdir;;
12641 *)
12642   case $ac_srcdir in
12643   .) ac_abs_srcdir=$ac_abs_builddir;;
12644   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12645   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12646   esac;;
12647 esac
12648 case $ac_abs_builddir in
12649 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12650 *)
12651   case $ac_top_srcdir in
12652   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12653   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12654   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12655   esac;;
12656 esac
12657
12658
12659   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12660 echo "$as_me: executing $ac_dest commands" >&6;}
12661   case $ac_dest in
12662     default-1 )
12663 # Only add multilib support code if we just rebuilt the top-level
12664 # Makefile.
12665 case " $CONFIG_FILES " in
12666  *" Makefile "*)
12667    ac_file=Makefile . ${multi_basedir}/config-ml.in
12668    ;;
12669 esac ;;
12670   esac
12671 done
12672 _ACEOF
12673
12674 cat >>$CONFIG_STATUS <<\_ACEOF
12675
12676 { (exit 0); exit 0; }
12677 _ACEOF
12678 chmod +x $CONFIG_STATUS
12679 ac_clean_files=$ac_clean_files_save
12680
12681
12682 # configure is writing to config.log, and then calls config.status.
12683 # config.status does its own redirection, appending to config.log.
12684 # Unfortunately, on DOS this fails, as config.log is still kept open
12685 # by configure, so config.status won't be able to write to it; its
12686 # output is simply discarded.  So we exec the FD to /dev/null,
12687 # effectively closing config.log, so it can be properly (re)opened and
12688 # appended to by config.status.  When coming back to configure, we
12689 # need to make the FD available again.
12690 if test "$no_create" != yes; then
12691   ac_cs_success=:
12692   ac_config_status_args=
12693   test "$silent" = yes &&
12694     ac_config_status_args="$ac_config_status_args --quiet"
12695   exec 5>/dev/null
12696   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12697   exec 5>>config.log
12698   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12699   # would make configure fail if this is the last instruction.
12700   $ac_cs_success || { (exit 1); exit 1; }
12701 fi
12702