Document failure.
[official-gcc.git] / libgfortran / configure
blob42dbbd9a665945945a830e7794919cedb4525cc9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU Fortran Runtime Library 0.2.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='GNU Fortran Runtime Library'
269 PACKAGE_TARNAME='libgfortran'
270 PACKAGE_VERSION='0.2'
271 PACKAGE_STRING='GNU Fortran Runtime Library 0.2'
272 PACKAGE_BUGREPORT=''
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libtool_VERSION 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir gcc_version toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL enable_shared enable_static F77 FFLAGS LDFLAGS ac_ct_F77 CPP CPPFLAGS EGREP MATH_OBJ LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
724 else
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_F77_set=${F77+set}
753 ac_env_F77_value=$F77
754 ac_cv_env_F77_set=${F77+set}
755 ac_cv_env_F77_value=$F77
756 ac_env_FFLAGS_set=${FFLAGS+set}
757 ac_env_FFLAGS_value=$FFLAGS
758 ac_cv_env_FFLAGS_set=${FFLAGS+set}
759 ac_cv_env_FFLAGS_value=$FFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPP_set=${CPP+set}
765 ac_env_CPP_value=$CPP
766 ac_cv_env_CPP_set=${CPP+set}
767 ac_cv_env_CPP_value=$CPP
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures GNU Fortran Runtime Library 0.2 to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800 _ACEOF
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
831 cat <<\_ACEOF
833 Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838 System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 --target=TARGET configure for building compilers for TARGET [HOST]
842 _ACEOF
845 if test -n "$ac_init_help"; then
846 case $ac_init_help in
847 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.2:";;
848 esac
849 cat <<\_ACEOF
851 Optional Features:
852 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
853 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
854 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
855 --enable-maintainer-mode enable make rules and dependencies not useful
856 (and sometimes confusing) to the casual installer
857 --enable-multilib build many library versions (default)
858 --enable-shared=PKGS build shared libraries default=yes
859 --enable-static=PKGS build static libraries default=yes
860 --enable-fast-install=PKGS optimize for fast installation default=yes
861 --disable-libtool-lock avoid locking (might break parallel builds)
862 --enable-cmath Include complex math functions
864 Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-gnu-ld assume the C compiler uses GNU ld default=no
868 --with-pic try to use only PIC/non-PIC objects default=use both
870 Some influential environment variables:
871 CC C compiler command
872 CFLAGS C compiler flags
873 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
874 nonstandard directory <lib dir>
875 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
876 headers in a nonstandard directory <include dir>
877 F77 Fortran 77 compiler command
878 FFLAGS Fortran 77 compiler flags
879 CPP C preprocessor
881 Use these variables to override the choices made by `configure' or to help
882 it to find libraries and programs with nonstandard names/locations.
884 _ACEOF
887 if test "$ac_init_help" = "recursive"; then
888 # If there are subdirs, report their specific --help.
889 ac_popdir=`pwd`
890 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
891 test -d $ac_dir || continue
892 ac_builddir=.
894 if test "$ac_dir" != .; then
895 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
896 # A "../" for each directory in $ac_dir_suffix.
897 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
898 else
899 ac_dir_suffix= ac_top_builddir=
902 case $srcdir in
903 .) # No --srcdir option. We are building in place.
904 ac_srcdir=.
905 if test -z "$ac_top_builddir"; then
906 ac_top_srcdir=.
907 else
908 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
909 fi ;;
910 [\\/]* | ?:[\\/]* ) # Absolute path.
911 ac_srcdir=$srcdir$ac_dir_suffix;
912 ac_top_srcdir=$srcdir ;;
913 *) # Relative path.
914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
915 ac_top_srcdir=$ac_top_builddir$srcdir ;;
916 esac
918 # Do not use `cd foo && pwd` to compute absolute paths, because
919 # the directories may not exist.
920 case `pwd` in
921 .) ac_abs_builddir="$ac_dir";;
923 case "$ac_dir" in
924 .) ac_abs_builddir=`pwd`;;
925 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
926 *) ac_abs_builddir=`pwd`/"$ac_dir";;
927 esac;;
928 esac
929 case $ac_abs_builddir in
930 .) ac_abs_top_builddir=${ac_top_builddir}.;;
932 case ${ac_top_builddir}. in
933 .) ac_abs_top_builddir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
935 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
936 esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_srcdir=$ac_srcdir;;
941 case $ac_srcdir in
942 .) ac_abs_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
944 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
945 esac;;
946 esac
947 case $ac_abs_builddir in
948 .) ac_abs_top_srcdir=$ac_top_srcdir;;
950 case $ac_top_srcdir in
951 .) ac_abs_top_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
953 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
954 esac;;
955 esac
957 cd $ac_dir
958 # Check for guested configure; otherwise get Cygnus style configure.
959 if test -f $ac_srcdir/configure.gnu; then
960 echo
961 $SHELL $ac_srcdir/configure.gnu --help=recursive
962 elif test -f $ac_srcdir/configure; then
963 echo
964 $SHELL $ac_srcdir/configure --help=recursive
965 elif test -f $ac_srcdir/configure.ac ||
966 test -f $ac_srcdir/configure.in; then
967 echo
968 $ac_configure --help
969 else
970 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 cd $ac_popdir
973 done
976 test -n "$ac_init_help" && exit 0
977 if $ac_init_version; then
978 cat <<\_ACEOF
979 GNU Fortran Runtime Library configure 0.2
980 generated by GNU Autoconf 2.59
982 Copyright (C) 2003 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
985 _ACEOF
986 exit 0
988 exec 5>config.log
989 cat >&5 <<_ACEOF
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
993 It was created by GNU Fortran Runtime Library $as_me 0.2, which was
994 generated by GNU Autoconf 2.59. Invocation command line was
996 $ $0 $@
998 _ACEOF
1000 cat <<_ASUNAME
1001 ## --------- ##
1002 ## Platform. ##
1003 ## --------- ##
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1022 _ASUNAME
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025 for as_dir in $PATH
1027 IFS=$as_save_IFS
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1030 done
1032 } >&5
1034 cat >&5 <<_ACEOF
1037 ## ----------- ##
1038 ## Core tests. ##
1039 ## ----------- ##
1041 _ACEOF
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1049 ac_configure_args=
1050 ac_configure_args0=
1051 ac_configure_args1=
1052 ac_sep=
1053 ac_must_keep_next=false
1054 for ac_pass in 1 2
1056 for ac_arg
1058 case $ac_arg in
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 continue ;;
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065 esac
1066 case $ac_pass in
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
1071 ac_must_keep_next=false # Got value, back to normal.
1072 else
1073 case $ac_arg in
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080 esac
1082 -* ) ac_must_keep_next=true ;;
1083 esac
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1087 ac_sep=" "
1089 esac
1090 done
1091 done
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log. We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101 # Save into config.log some information that might help in debugging.
1103 echo
1105 cat <<\_ASBOX
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1109 _ASBOX
1110 echo
1111 # The following way of writing the cache mishandles newlines in values,
1113 (set) 2>&1 |
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115 *ac_space=\ *)
1116 sed -n \
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 sed -n \
1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 esac;
1126 echo
1128 cat <<\_ASBOX
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1132 _ASBOX
1133 echo
1134 for ac_var in $ac_subst_vars
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1138 done | sort
1139 echo
1141 if test -n "$ac_subst_files"; then
1142 cat <<\_ASBOX
1143 ## ------------- ##
1144 ## Output files. ##
1145 ## ------------- ##
1146 _ASBOX
1147 echo
1148 for ac_var in $ac_subst_files
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1156 if test -s confdefs.h; then
1157 cat <<\_ASBOX
1158 ## ----------- ##
1159 ## confdefs.h. ##
1160 ## ----------- ##
1161 _ASBOX
1162 echo
1163 sed "/^$/d" confdefs.h | sort
1164 echo
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1169 } >&5
1170 rm -f core *.core &&
1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172 exit $exit_status
1174 for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176 done
1177 ac_signal=0
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182 echo >confdefs.h
1184 # Predefined preprocessor variables.
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1188 _ACEOF
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193 _ACEOF
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208 _ACEOF
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216 else
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's/^/| /' "$ac_site_file" >&5
1225 . "$ac_site_file"
1227 done
1229 if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1235 case $cache_file in
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1238 esac
1240 else
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1243 >$cache_file
1246 # Check that the precious variables saved in the cache have kept the same
1247 # value.
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1256 set,)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,set)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,);;
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270 echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272 echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1274 fi;;
1275 esac
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1278 case $ac_new_val in
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1282 esac
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286 esac
1288 done
1289 if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1329 ac_config_headers="$ac_config_headers config.h"
1332 # For libtool versioning info, format is CURRENT:REVISION:AGE
1333 libtool_VERSION=6:0:0
1336 # -------
1337 # Options
1338 # -------
1340 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1341 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1342 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1343 if test "${enable_version_specific_runtime_libs+set}" = set; then
1344 enableval="$enable_version_specific_runtime_libs"
1345 case "$enableval" in
1346 yes) version_specific_libs=yes ;;
1347 no) version_specific_libs=no ;;
1348 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1349 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1350 { (exit 1); exit 1; }; };;
1351 esac
1352 else
1353 version_specific_libs=no
1355 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1356 echo "${ECHO_T}$version_specific_libs" >&6
1359 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1361 # You will slowly go insane if you do not grok the following fact: when
1362 # building this library, the top-level /target/ becomes the library's /host/.
1364 # configure then causes --target to default to --host, exactly like any
1365 # other package using autoconf. Therefore, 'target' and 'host' will
1366 # always be the same. This makes sense both for native and cross compilers
1367 # just think about it for a little while. :-)
1369 # Also, if this library is being configured as part of a cross compiler, the
1370 # top-level configure script will pass the "real" host as $with_cross_host.
1372 # Do not delete or change the following two lines. For why, see
1373 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1374 ac_aux_dir=
1375 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1376 if test -f $ac_dir/install-sh; then
1377 ac_aux_dir=$ac_dir
1378 ac_install_sh="$ac_aux_dir/install-sh -c"
1379 break
1380 elif test -f $ac_dir/install.sh; then
1381 ac_aux_dir=$ac_dir
1382 ac_install_sh="$ac_aux_dir/install.sh -c"
1383 break
1384 elif test -f $ac_dir/shtool; then
1385 ac_aux_dir=$ac_dir
1386 ac_install_sh="$ac_aux_dir/shtool install -c"
1387 break
1389 done
1390 if test -z "$ac_aux_dir"; then
1391 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1392 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1393 { (exit 1); exit 1; }; }
1395 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1396 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1397 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1399 # Make sure we can run config.sub.
1400 $ac_config_sub sun4 >/dev/null 2>&1 ||
1401 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1402 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1403 { (exit 1); exit 1; }; }
1405 echo "$as_me:$LINENO: checking build system type" >&5
1406 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1407 if test "${ac_cv_build+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 ac_cv_build_alias=$build_alias
1411 test -z "$ac_cv_build_alias" &&
1412 ac_cv_build_alias=`$ac_config_guess`
1413 test -z "$ac_cv_build_alias" &&
1414 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1415 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1416 { (exit 1); exit 1; }; }
1417 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1419 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1420 { (exit 1); exit 1; }; }
1423 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1424 echo "${ECHO_T}$ac_cv_build" >&6
1425 build=$ac_cv_build
1426 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431 echo "$as_me:$LINENO: checking host system type" >&5
1432 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1433 if test "${ac_cv_host+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436 ac_cv_host_alias=$host_alias
1437 test -z "$ac_cv_host_alias" &&
1438 ac_cv_host_alias=$ac_cv_build_alias
1439 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1445 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1446 echo "${ECHO_T}$ac_cv_host" >&6
1447 host=$ac_cv_host
1448 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453 echo "$as_me:$LINENO: checking target system type" >&5
1454 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1455 if test "${ac_cv_target+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 else
1458 ac_cv_target_alias=$target_alias
1459 test "x$ac_cv_target_alias" = "x" &&
1460 ac_cv_target_alias=$ac_cv_host_alias
1461 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1462 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1463 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1464 { (exit 1); exit 1; }; }
1467 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1468 echo "${ECHO_T}$ac_cv_target" >&6
1469 target=$ac_cv_target
1470 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1471 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1472 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1475 # The aliases save the names the user supplied, while $host etc.
1476 # will get canonicalized.
1477 test -n "$target_alias" &&
1478 test "$program_prefix$program_suffix$program_transform_name" = \
1479 NONENONEs,x,x, &&
1480 program_prefix=${target_alias}-
1481 target_alias=${target_alias-$host_alias}
1483 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1484 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1485 # 1.8.2: minimum required version
1486 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1487 # of other PACKAGE_* variables will, however, and there's nothing
1488 # we can do about that; they come from AC_INIT).
1489 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1490 # file in the top srcdir, etc, etc), so stop complaining.
1491 # no-dependencies: turns off auto dependency generation (just for now)
1492 # -Wall: turns on all automake warnings...
1493 # -Wno-portability: ...except this one, since GNU make is required.
1494 am__api_version="1.8"
1495 # Find a good install program. We prefer a C program (faster),
1496 # so one script is as good as another. But avoid the broken or
1497 # incompatible versions:
1498 # SysV /etc/install, /usr/sbin/install
1499 # SunOS /usr/etc/install
1500 # IRIX /sbin/install
1501 # AIX /bin/install
1502 # AmigaOS /C/install, which installs bootblocks on floppy discs
1503 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1504 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1505 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1506 # OS/2's system install, which has a completely different semantic
1507 # ./install, which can be erroneously created by make from ./install.sh.
1508 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1509 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1510 if test -z "$INSTALL"; then
1511 if test "${ac_cv_path_install+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1513 else
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 for as_dir in $PATH
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 # Account for people who put trailing slashes in PATH elements.
1520 case $as_dir/ in
1521 ./ | .// | /cC/* | \
1522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1523 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1524 /usr/ucb/* ) ;;
1526 # OSF1 and SCO ODT 3.0 have their own names for install.
1527 # Don't use installbsd from OSF since it installs stuff as root
1528 # by default.
1529 for ac_prog in ginstall scoinst install; do
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1532 if test $ac_prog = install &&
1533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1534 # AIX install. It has an incompatible calling convention.
1536 elif test $ac_prog = install &&
1537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1538 # program-specific install script used by HP pwplus--don't use.
1540 else
1541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1542 break 3
1545 done
1546 done
1548 esac
1549 done
1553 if test "${ac_cv_path_install+set}" = set; then
1554 INSTALL=$ac_cv_path_install
1555 else
1556 # As a last resort, use the slow shell script. We don't cache a
1557 # path for INSTALL within a source directory, because that will
1558 # break other packages using the cache if that directory is
1559 # removed, or if the path is relative.
1560 INSTALL=$ac_install_sh
1563 echo "$as_me:$LINENO: result: $INSTALL" >&5
1564 echo "${ECHO_T}$INSTALL" >&6
1566 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1567 # It thinks the first close brace ends the variable substitution.
1568 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1570 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1572 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1574 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1575 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1576 # Just in case
1577 sleep 1
1578 echo timestamp > conftest.file
1579 # Do `set' in a subshell so we don't clobber the current shell's
1580 # arguments. Must try -L first in case configure is actually a
1581 # symlink; some systems play weird games with the mod time of symlinks
1582 # (eg FreeBSD returns the mod time of the symlink's containing
1583 # directory).
1584 if (
1585 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1586 if test "$*" = "X"; then
1587 # -L didn't work.
1588 set X `ls -t $srcdir/configure conftest.file`
1590 rm -f conftest.file
1591 if test "$*" != "X $srcdir/configure conftest.file" \
1592 && test "$*" != "X conftest.file $srcdir/configure"; then
1594 # If neither matched, then we have a broken ls. This can happen
1595 # if, for instance, CONFIG_SHELL is bash and it inherits a
1596 # broken ls alias from the environment. This has actually
1597 # happened. Such a system could not be considered "sane".
1598 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1599 alias in your environment" >&5
1600 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1601 alias in your environment" >&2;}
1602 { (exit 1); exit 1; }; }
1605 test "$2" = conftest.file
1607 then
1608 # Ok.
1610 else
1611 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1612 Check your system clock" >&5
1613 echo "$as_me: error: newly created file is older than distributed files!
1614 Check your system clock" >&2;}
1615 { (exit 1); exit 1; }; }
1617 echo "$as_me:$LINENO: result: yes" >&5
1618 echo "${ECHO_T}yes" >&6
1619 test "$program_prefix" != NONE &&
1620 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1621 # Use a double $ so make ignores it.
1622 test "$program_suffix" != NONE &&
1623 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1624 # Double any \ or $. echo might interpret backslashes.
1625 # By default was `s,x,x', remove it if useless.
1626 cat <<\_ACEOF >conftest.sed
1627 s/[\\$]/&&/g;s/;s,x,x,$//
1628 _ACEOF
1629 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1630 rm conftest.sed
1632 # expand $ac_aux_dir to an absolute path
1633 am_aux_dir=`cd $ac_aux_dir && pwd`
1635 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1636 # Use eval to expand $SHELL
1637 if eval "$MISSING --run true"; then
1638 am_missing_run="$MISSING --run "
1639 else
1640 am_missing_run=
1641 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1642 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1645 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1646 # Keeping the `.' argument allows $(mkdir_p) to be used without
1647 # argument. Indeed, we sometimes output rules like
1648 # $(mkdir_p) $(somedir)
1649 # where $(somedir) is conditionally defined.
1650 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1651 # expensive solution, as it forces Make to start a sub-shell.)
1652 mkdir_p='mkdir -p -- .'
1653 else
1654 # On NextStep and OpenStep, the `mkdir' command does not
1655 # recognize any option. It will interpret all options as
1656 # directories to create, and then abort because `.' already
1657 # exists.
1658 for d in ./-p ./--version;
1660 test -d $d && rmdir $d
1661 done
1662 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1663 if test -f "$ac_aux_dir/mkinstalldirs"; then
1664 mkdir_p='$(mkinstalldirs)'
1665 else
1666 mkdir_p='$(install_sh) -d'
1670 for ac_prog in gawk mawk nawk awk
1672 # Extract the first word of "$ac_prog", so it can be a program name with args.
1673 set dummy $ac_prog; ac_word=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_AWK+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 else
1679 if test -n "$AWK"; then
1680 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1681 else
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 for as_dir in $PATH
1685 IFS=$as_save_IFS
1686 test -z "$as_dir" && as_dir=.
1687 for ac_exec_ext in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 ac_cv_prog_AWK="$ac_prog"
1690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 break 2
1693 done
1694 done
1698 AWK=$ac_cv_prog_AWK
1699 if test -n "$AWK"; then
1700 echo "$as_me:$LINENO: result: $AWK" >&5
1701 echo "${ECHO_T}$AWK" >&6
1702 else
1703 echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1707 test -n "$AWK" && break
1708 done
1710 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1711 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1712 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1713 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716 cat >conftest.make <<\_ACEOF
1717 all:
1718 @echo 'ac_maketemp="$(MAKE)"'
1719 _ACEOF
1720 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1721 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1722 if test -n "$ac_maketemp"; then
1723 eval ac_cv_prog_make_${ac_make}_set=yes
1724 else
1725 eval ac_cv_prog_make_${ac_make}_set=no
1727 rm -f conftest.make
1729 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1730 echo "$as_me:$LINENO: result: yes" >&5
1731 echo "${ECHO_T}yes" >&6
1732 SET_MAKE=
1733 else
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1736 SET_MAKE="MAKE=${MAKE-make}"
1739 rm -rf .tst 2>/dev/null
1740 mkdir .tst 2>/dev/null
1741 if test -d .tst; then
1742 am__leading_dot=.
1743 else
1744 am__leading_dot=_
1746 rmdir .tst 2>/dev/null
1748 # test to see if srcdir already configured
1749 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1750 test -f $srcdir/config.status; then
1751 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1752 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1753 { (exit 1); exit 1; }; }
1756 # test whether we have cygpath
1757 if test -z "$CYGPATH_W"; then
1758 if (cygpath --version) >/dev/null 2>/dev/null; then
1759 CYGPATH_W='cygpath -w'
1760 else
1761 CYGPATH_W=echo
1766 # Define the identity of the package.
1767 PACKAGE='libgfortran'
1768 VERSION='0.2'
1771 # Some tools Automake needs.
1773 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1776 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1779 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1782 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1785 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1788 AMTAR=${AMTAR-"${am_missing_run}tar"}
1790 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1792 # Installed binaries are usually stripped using `strip' when the user
1793 # run `make install-strip'. However `strip' might not be the right
1794 # tool to use in cross-compilation environments, therefore Automake
1795 # will honor the `STRIP' environment variable to overrule this program.
1796 if test "$cross_compiling" != no; then
1797 if test -n "$ac_tool_prefix"; then
1798 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1799 set dummy ${ac_tool_prefix}strip; ac_word=$2
1800 echo "$as_me:$LINENO: checking for $ac_word" >&5
1801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802 if test "${ac_cv_prog_STRIP+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 else
1805 if test -n "$STRIP"; then
1806 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1807 else
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 for as_dir in $PATH
1811 IFS=$as_save_IFS
1812 test -z "$as_dir" && as_dir=.
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 break 2
1819 done
1820 done
1824 STRIP=$ac_cv_prog_STRIP
1825 if test -n "$STRIP"; then
1826 echo "$as_me:$LINENO: result: $STRIP" >&5
1827 echo "${ECHO_T}$STRIP" >&6
1828 else
1829 echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1834 if test -z "$ac_cv_prog_STRIP"; then
1835 ac_ct_STRIP=$STRIP
1836 # Extract the first word of "strip", so it can be a program name with args.
1837 set dummy strip; ac_word=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843 if test -n "$ac_ct_STRIP"; then
1844 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1845 else
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 for as_dir in $PATH
1849 IFS=$as_save_IFS
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853 ac_cv_prog_ac_ct_STRIP="strip"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 break 2
1857 done
1858 done
1860 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1863 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1864 if test -n "$ac_ct_STRIP"; then
1865 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1866 echo "${ECHO_T}$ac_ct_STRIP" >&6
1867 else
1868 echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6
1872 STRIP=$ac_ct_STRIP
1873 else
1874 STRIP="$ac_cv_prog_STRIP"
1878 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1880 # We need awk for the "check" target. The system "awk" is bad on
1881 # some platforms.
1886 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1887 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1888 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1889 if test "${enable_maintainer_mode+set}" = set; then
1890 enableval="$enable_maintainer_mode"
1891 USE_MAINTAINER_MODE=$enableval
1892 else
1893 USE_MAINTAINER_MODE=no
1895 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1896 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1899 if test $USE_MAINTAINER_MODE = yes; then
1900 MAINTAINER_MODE_TRUE=
1901 MAINTAINER_MODE_FALSE='#'
1902 else
1903 MAINTAINER_MODE_TRUE='#'
1904 MAINTAINER_MODE_FALSE=
1907 MAINT=$MAINTAINER_MODE_TRUE
1910 # Default to --enable-multilib
1911 # Check whether --enable-multilib or --disable-multilib was given.
1912 if test "${enable_multilib+set}" = set; then
1913 enableval="$enable_multilib"
1914 case "$enableval" in
1915 yes) multilib=yes ;;
1916 no) multilib=no ;;
1917 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1918 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1919 { (exit 1); exit 1; }; } ;;
1920 esac
1921 else
1922 multilib=yes
1925 # We may get other options which we leave undocumented:
1926 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1927 # See config-ml.in if you want the gory details.
1929 if test "$srcdir" = "."; then
1930 if test "$with_target_subdir" != "."; then
1931 multi_basedir="$srcdir/$with_multisrctop../.."
1932 else
1933 multi_basedir="$srcdir/$with_multisrctop.."
1935 else
1936 multi_basedir="$srcdir/.."
1940 ac_config_commands="$ac_config_commands default-1"
1943 # Handy for debugging:
1944 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1946 # Are we being configured with some form of cross compiler?
1947 # NB: We don't actually need to know this just now, but when, say, a test
1948 # suite is included, we'll have to know.
1949 if test "$build" != "$host"; then
1950 LIBGFOR_IS_NATIVE=false
1951 GCC_NO_EXECUTABLES
1952 else
1953 LIBGFOR_IS_NATIVE=true
1956 # Process the option "--enable-version-specific-runtime-libs"
1957 gcc_version_trigger=${srcdir}/../gcc/version.c
1958 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
1959 gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
1962 # Calculate toolexeclibdir
1963 # Also toolexecdir, though it's only used in toolexeclibdir
1964 case ${version_specific_libs} in
1965 yes)
1966 # Need the gcc compiler version to know where to install libraries
1967 # and header files if --enable-version-specific-runtime-libs option
1968 # is selected.
1969 toolexecdir='$(libdir)/gcc/$(target_alias)'
1970 toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1973 if test -n "$with_cross_host" &&
1974 test x"$with_cross_host" != x"no"; then
1975 # Install a library built with a cross compiler in tooldir, not libdir.
1976 toolexecdir='$(exec_prefix)/$(target_alias)'
1977 toolexeclibdir='$(toolexecdir)/lib'
1978 else
1979 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1980 toolexeclibdir='$(libdir)'
1982 multi_os_directory=`$CC -print-multi-os-directory`
1983 case $multi_os_directory in
1984 .) ;; # Avoid trailing /.
1985 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1986 esac
1988 esac
1992 # Check the compiler.
1993 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1994 # We must force CC to /not/ be precious variables; otherwise
1995 # the wrong, non-multilib-adjusted value will be used in multilibs.
1996 # As a side effect, we have to subst CFLAGS ourselves.
2000 ac_ext=c
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 if test -n "$ac_tool_prefix"; then
2006 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 break 2
2027 done
2028 done
2032 CC=$ac_cv_prog_CC
2033 if test -n "$CC"; then
2034 echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6
2036 else
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2042 if test -z "$ac_cv_prog_CC"; then
2043 ac_ct_CC=$CC
2044 # Extract the first word of "gcc", so it can be a program name with args.
2045 set dummy gcc; ac_word=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 if test -n "$ac_ct_CC"; then
2052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061 ac_cv_prog_ac_ct_CC="gcc"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 break 2
2065 done
2066 done
2070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2071 if test -n "$ac_ct_CC"; then
2072 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2073 echo "${ECHO_T}$ac_ct_CC" >&6
2074 else
2075 echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6
2079 CC=$ac_ct_CC
2080 else
2081 CC="$ac_cv_prog_CC"
2084 if test -z "$CC"; then
2085 if test -n "$ac_tool_prefix"; then
2086 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2087 set dummy ${ac_tool_prefix}cc; ac_word=$2
2088 echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090 if test "${ac_cv_prog_CC+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093 if test -n "$CC"; then
2094 ac_cv_prog_CC="$CC" # Let the user override the test.
2095 else
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 for ac_exec_ext in '' $ac_executable_extensions; do
2102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103 ac_cv_prog_CC="${ac_tool_prefix}cc"
2104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 break 2
2107 done
2108 done
2112 CC=$ac_cv_prog_CC
2113 if test -n "$CC"; then
2114 echo "$as_me:$LINENO: result: $CC" >&5
2115 echo "${ECHO_T}$CC" >&6
2116 else
2117 echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2122 if test -z "$ac_cv_prog_CC"; then
2123 ac_ct_CC=$CC
2124 # Extract the first word of "cc", so it can be a program name with args.
2125 set dummy cc; ac_word=$2
2126 echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131 if test -n "$ac_ct_CC"; then
2132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2133 else
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141 ac_cv_prog_ac_ct_CC="cc"
2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 break 2
2145 done
2146 done
2150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2151 if test -n "$ac_ct_CC"; then
2152 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2153 echo "${ECHO_T}$ac_ct_CC" >&6
2154 else
2155 echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6
2159 CC=$ac_ct_CC
2160 else
2161 CC="$ac_cv_prog_CC"
2165 if test -z "$CC"; then
2166 # Extract the first word of "cc", so it can be a program name with args.
2167 set dummy cc; ac_word=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176 ac_prog_rejected=no
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2185 ac_prog_rejected=yes
2186 continue
2188 ac_cv_prog_CC="cc"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2192 done
2193 done
2195 if test $ac_prog_rejected = yes; then
2196 # We found a bogon in the path, so make sure we never use it.
2197 set dummy $ac_cv_prog_CC
2198 shift
2199 if test $# != 0; then
2200 # We chose a different compiler from the bogus one.
2201 # However, it has the same basename, so the bogon will be chosen
2202 # first if we set CC to just the basename; use the full file name.
2203 shift
2204 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2209 CC=$ac_cv_prog_CC
2210 if test -n "$CC"; then
2211 echo "$as_me:$LINENO: result: $CC" >&5
2212 echo "${ECHO_T}$CC" >&6
2213 else
2214 echo "$as_me:$LINENO: result: no" >&5
2215 echo "${ECHO_T}no" >&6
2219 if test -z "$CC"; then
2220 if test -n "$ac_tool_prefix"; then
2221 for ac_prog in cl
2223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2225 echo "$as_me:$LINENO: checking for $ac_word" >&5
2226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2227 if test "${ac_cv_prog_CC+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 if test -n "$CC"; then
2231 ac_cv_prog_CC="$CC" # Let the user override the test.
2232 else
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 for as_dir in $PATH
2236 IFS=$as_save_IFS
2237 test -z "$as_dir" && as_dir=.
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2240 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 break 2
2244 done
2245 done
2249 CC=$ac_cv_prog_CC
2250 if test -n "$CC"; then
2251 echo "$as_me:$LINENO: result: $CC" >&5
2252 echo "${ECHO_T}$CC" >&6
2253 else
2254 echo "$as_me:$LINENO: result: no" >&5
2255 echo "${ECHO_T}no" >&6
2258 test -n "$CC" && break
2259 done
2261 if test -z "$CC"; then
2262 ac_ct_CC=$CC
2263 for ac_prog in cl
2265 # Extract the first word of "$ac_prog", so it can be a program name with args.
2266 set dummy $ac_prog; ac_word=$2
2267 echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272 if test -n "$ac_ct_CC"; then
2273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282 ac_cv_prog_ac_ct_CC="$ac_prog"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2286 done
2287 done
2291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2292 if test -n "$ac_ct_CC"; then
2293 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2294 echo "${ECHO_T}$ac_ct_CC" >&6
2295 else
2296 echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2300 test -n "$ac_ct_CC" && break
2301 done
2303 CC=$ac_ct_CC
2309 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2310 See \`config.log' for more details." >&5
2311 echo "$as_me: error: no acceptable C compiler found in \$PATH
2312 See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }
2315 # Provide some information about the compiler.
2316 echo "$as_me:$LINENO:" \
2317 "checking for C compiler version" >&5
2318 ac_compiler=`set X $ac_compile; echo $2`
2319 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2320 (eval $ac_compiler --version </dev/null >&5) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }
2324 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2325 (eval $ac_compiler -v </dev/null >&5) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }
2329 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2330 (eval $ac_compiler -V </dev/null >&5) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }
2335 cat >conftest.$ac_ext <<_ACEOF
2336 /* confdefs.h. */
2337 _ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h. */
2343 main ()
2347 return 0;
2349 _ACEOF
2350 ac_clean_files_save=$ac_clean_files
2351 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2352 # Try to create an executable without -o first, disregard a.out.
2353 # It will help us diagnose broken compilers, and finding out an intuition
2354 # of exeext.
2355 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2356 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2357 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2358 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2359 (eval $ac_link_default) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; then
2363 # Find the output, starting from the most likely. This scheme is
2364 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2365 # resort.
2367 # Be careful to initialize this variable, since it used to be cached.
2368 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2369 ac_cv_exeext=
2370 # b.out is created by i960 compilers.
2371 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2373 test -f "$ac_file" || continue
2374 case $ac_file in
2375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2377 conftest.$ac_ext )
2378 # This is the source file.
2380 [ab].out )
2381 # We found the default executable, but exeext='' is most
2382 # certainly right.
2383 break;;
2384 *.* )
2385 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2386 # FIXME: I believe we export ac_cv_exeext for Libtool,
2387 # but it would be cool to find out if it's true. Does anybody
2388 # maintain Libtool? --akim.
2389 export ac_cv_exeext
2390 break;;
2392 break;;
2393 esac
2394 done
2395 else
2396 echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.$ac_ext >&5
2399 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2400 See \`config.log' for more details." >&5
2401 echo "$as_me: error: C compiler cannot create executables
2402 See \`config.log' for more details." >&2;}
2403 { (exit 77); exit 77; }; }
2406 ac_exeext=$ac_cv_exeext
2407 echo "$as_me:$LINENO: result: $ac_file" >&5
2408 echo "${ECHO_T}$ac_file" >&6
2410 # Check the compiler produces executables we can run. If not, either
2411 # the compiler is broken, or we cross compile.
2412 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2413 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2414 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2415 # If not cross compiling, check that we can run a simple program.
2416 if test "$cross_compiling" != yes; then
2417 if { ac_try='./$ac_file'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2423 cross_compiling=no
2424 else
2425 if test "$cross_compiling" = maybe; then
2426 cross_compiling=yes
2427 else
2428 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2429 If you meant to cross compile, use \`--host'.
2430 See \`config.log' for more details." >&5
2431 echo "$as_me: error: cannot run C compiled programs.
2432 If you meant to cross compile, use \`--host'.
2433 See \`config.log' for more details." >&2;}
2434 { (exit 1); exit 1; }; }
2438 echo "$as_me:$LINENO: result: yes" >&5
2439 echo "${ECHO_T}yes" >&6
2441 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2442 ac_clean_files=$ac_clean_files_save
2443 # Check the compiler produces executables we can run. If not, either
2444 # the compiler is broken, or we cross compile.
2445 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2446 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2447 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2448 echo "${ECHO_T}$cross_compiling" >&6
2450 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2451 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2453 (eval $ac_link) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; then
2457 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2458 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2459 # work properly (i.e., refer to `conftest.exe'), while it won't with
2460 # `rm'.
2461 for ac_file in conftest.exe conftest conftest.*; do
2462 test -f "$ac_file" || continue
2463 case $ac_file in
2464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2465 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2466 export ac_cv_exeext
2467 break;;
2468 * ) break;;
2469 esac
2470 done
2471 else
2472 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2473 See \`config.log' for more details." >&5
2474 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2475 See \`config.log' for more details." >&2;}
2476 { (exit 1); exit 1; }; }
2479 rm -f conftest$ac_cv_exeext
2480 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2481 echo "${ECHO_T}$ac_cv_exeext" >&6
2483 rm -f conftest.$ac_ext
2484 EXEEXT=$ac_cv_exeext
2485 ac_exeext=$EXEEXT
2486 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2487 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2488 if test "${ac_cv_objext+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491 cat >conftest.$ac_ext <<_ACEOF
2492 /* confdefs.h. */
2493 _ACEOF
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h. */
2499 main ()
2503 return 0;
2505 _ACEOF
2506 rm -f conftest.o conftest.obj
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; then
2512 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2513 case $ac_file in
2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2515 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2516 break;;
2517 esac
2518 done
2519 else
2520 echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2523 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2524 See \`config.log' for more details." >&5
2525 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2526 See \`config.log' for more details." >&2;}
2527 { (exit 1); exit 1; }; }
2530 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2532 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2533 echo "${ECHO_T}$ac_cv_objext" >&6
2534 OBJEXT=$ac_cv_objext
2535 ac_objext=$OBJEXT
2536 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2537 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2538 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541 cat >conftest.$ac_ext <<_ACEOF
2542 /* confdefs.h. */
2543 _ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2549 main ()
2551 #ifndef __GNUC__
2552 choke me
2553 #endif
2556 return 0;
2558 _ACEOF
2559 rm -f conftest.$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>conftest.er1
2562 ac_status=$?
2563 grep -v '^ *+' conftest.er1 >conftest.err
2564 rm -f conftest.er1
2565 cat conftest.err >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
2568 { ac_try='test -z "$ac_c_werror_flag"
2569 || test ! -s conftest.err'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 ac_compiler_gnu=yes
2582 else
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2586 ac_compiler_gnu=no
2588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2589 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2592 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2593 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2594 GCC=`test $ac_compiler_gnu = yes && echo yes`
2595 ac_test_CFLAGS=${CFLAGS+set}
2596 ac_save_CFLAGS=$CFLAGS
2597 CFLAGS="-g"
2598 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2599 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2600 if test "${ac_cv_prog_cc_g+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603 cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h. */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2611 main ()
2615 return 0;
2617 _ACEOF
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620 (eval $ac_compile) 2>conftest.er1
2621 ac_status=$?
2622 grep -v '^ *+' conftest.er1 >conftest.err
2623 rm -f conftest.er1
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 { ac_try='test -z "$ac_c_werror_flag"
2628 || test ! -s conftest.err'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 (eval $ac_try) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; } &&
2634 { ac_try='test -s conftest.$ac_objext'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; }; then
2640 ac_cv_prog_cc_g=yes
2641 else
2642 echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2645 ac_cv_prog_cc_g=no
2647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2650 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2651 if test "$ac_test_CFLAGS" = set; then
2652 CFLAGS=$ac_save_CFLAGS
2653 elif test $ac_cv_prog_cc_g = yes; then
2654 if test "$GCC" = yes; then
2655 CFLAGS="-g -O2"
2656 else
2657 CFLAGS="-g"
2659 else
2660 if test "$GCC" = yes; then
2661 CFLAGS="-O2"
2662 else
2663 CFLAGS=
2666 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2667 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2668 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 else
2671 ac_cv_prog_cc_stdc=no
2672 ac_save_CC=$CC
2673 cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h. */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2679 #include <stdarg.h>
2680 #include <stdio.h>
2681 #include <sys/types.h>
2682 #include <sys/stat.h>
2683 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2684 struct buf { int x; };
2685 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2686 static char *e (p, i)
2687 char **p;
2688 int i;
2690 return p[i];
2692 static char *f (char * (*g) (char **, int), char **p, ...)
2694 char *s;
2695 va_list v;
2696 va_start (v,p);
2697 s = g (p, va_arg (v,int));
2698 va_end (v);
2699 return s;
2702 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2703 function prototypes and stuff, but not '\xHH' hex character constants.
2704 These don't provoke an error unfortunately, instead are silently treated
2705 as 'x'. The following induces an error, until -std1 is added to get
2706 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2707 array size at least. It's necessary to write '\x00'==0 to get something
2708 that's true only with -std1. */
2709 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2711 int test (int i, double x);
2712 struct s1 {int (*f) (int a);};
2713 struct s2 {int (*f) (double a);};
2714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2715 int argc;
2716 char **argv;
2718 main ()
2720 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2722 return 0;
2724 _ACEOF
2725 # Don't try gcc -ansi; that turns off useful extensions and
2726 # breaks some systems' header files.
2727 # AIX -qlanglvl=ansi
2728 # Ultrix and OSF/1 -std1
2729 # HP-UX 10.20 and later -Ae
2730 # HP-UX older versions -Aa -D_HPUX_SOURCE
2731 # SVR4 -Xc -D__EXTENSIONS__
2732 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2734 CC="$ac_save_CC $ac_arg"
2735 rm -f conftest.$ac_objext
2736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737 (eval $ac_compile) 2>conftest.er1
2738 ac_status=$?
2739 grep -v '^ *+' conftest.er1 >conftest.err
2740 rm -f conftest.er1
2741 cat conftest.err >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 { ac_try='test -z "$ac_c_werror_flag"
2745 || 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
2764 rm -f conftest.err conftest.$ac_objext
2765 done
2766 rm -f conftest.$ac_ext conftest.$ac_objext
2767 CC=$ac_save_CC
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 ;;
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
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"
2800 || test ! -s conftest.err'
2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 (eval $ac_try) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; } &&
2806 { ac_try='test -s conftest.$ac_objext'
2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 (eval $ac_try) 2>&5
2809 ac_status=$?
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2812 for ac_declaration in \
2813 '' \
2814 'extern "C" void std::exit (int) throw (); using std::exit;' \
2815 'extern "C" void std::exit (int); using std::exit;' \
2816 'extern "C" void exit (int) throw ();' \
2817 'extern "C" void exit (int);' \
2818 'void exit (int);'
2820 cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h. */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2826 $ac_declaration
2827 #include <stdlib.h>
2829 main ()
2831 exit (42);
2833 return 0;
2835 _ACEOF
2836 rm -f conftest.$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838 (eval $ac_compile) 2>conftest.er1
2839 ac_status=$?
2840 grep -v '^ *+' conftest.er1 >conftest.err
2841 rm -f conftest.er1
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try='test -z "$ac_c_werror_flag"
2846 || test ! -s conftest.err'
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 (eval $ac_try) 2>&5
2849 ac_status=$?
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; } &&
2852 { ac_try='test -s conftest.$ac_objext'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 (eval $ac_try) 2>&5
2855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; }; then
2859 else
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 continue
2865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2866 cat >conftest.$ac_ext <<_ACEOF
2867 /* confdefs.h. */
2868 _ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2872 $ac_declaration
2874 main ()
2876 exit (42);
2878 return 0;
2880 _ACEOF
2881 rm -f conftest.$ac_objext
2882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2883 (eval $ac_compile) 2>conftest.er1
2884 ac_status=$?
2885 grep -v '^ *+' conftest.er1 >conftest.err
2886 rm -f conftest.er1
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } &&
2890 { ac_try='test -z "$ac_c_werror_flag"
2891 || test ! -s conftest.err'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 (eval $ac_try) 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; } &&
2897 { ac_try='test -s conftest.$ac_objext'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 (eval $ac_try) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; }; then
2903 break
2904 else
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2910 done
2911 rm -f conftest*
2912 if test -n "$ac_declaration"; then
2913 echo '#ifdef __cplusplus' >>confdefs.h
2914 echo $ac_declaration >>confdefs.h
2915 echo '#endif' >>confdefs.h
2918 else
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2924 ac_ext=c
2925 ac_cpp='$CPP $CPPFLAGS'
2926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934 # Add -Wall if we are using GCC.
2935 if test "x$GCC" = "xyes"; then
2936 CFLAGS="$CFLAGS -Wall"
2939 # Find other programs we need.
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2942 set dummy ${ac_tool_prefix}as; ac_word=$2
2943 echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2945 if test "${ac_cv_prog_AS+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948 if test -n "$AS"; then
2949 ac_cv_prog_AS="$AS" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_AS="${ac_tool_prefix}as"
2959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2962 done
2963 done
2967 AS=$ac_cv_prog_AS
2968 if test -n "$AS"; then
2969 echo "$as_me:$LINENO: result: $AS" >&5
2970 echo "${ECHO_T}$AS" >&6
2971 else
2972 echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6
2977 if test -z "$ac_cv_prog_AS"; then
2978 ac_ct_AS=$AS
2979 # Extract the first word of "as", so it can be a program name with args.
2980 set dummy as; ac_word=$2
2981 echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2983 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 if test -n "$ac_ct_AS"; then
2987 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_ac_ct_AS="as"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
3000 done
3001 done
3005 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3006 if test -n "$ac_ct_AS"; then
3007 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3008 echo "${ECHO_T}$ac_ct_AS" >&6
3009 else
3010 echo "$as_me:$LINENO: result: no" >&5
3011 echo "${ECHO_T}no" >&6
3014 AS=$ac_ct_AS
3015 else
3016 AS="$ac_cv_prog_AS"
3019 if test -n "$ac_tool_prefix"; then
3020 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3021 set dummy ${ac_tool_prefix}ar; ac_word=$2
3022 echo "$as_me:$LINENO: checking for $ac_word" >&5
3023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3024 if test "${ac_cv_prog_AR+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027 if test -n "$AR"; then
3028 ac_cv_prog_AR="$AR" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037 ac_cv_prog_AR="${ac_tool_prefix}ar"
3038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3041 done
3042 done
3046 AR=$ac_cv_prog_AR
3047 if test -n "$AR"; then
3048 echo "$as_me:$LINENO: result: $AR" >&5
3049 echo "${ECHO_T}$AR" >&6
3050 else
3051 echo "$as_me:$LINENO: result: no" >&5
3052 echo "${ECHO_T}no" >&6
3056 if test -z "$ac_cv_prog_AR"; then
3057 ac_ct_AR=$AR
3058 # Extract the first word of "ar", so it can be a program name with args.
3059 set dummy ar; ac_word=$2
3060 echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3062 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065 if test -n "$ac_ct_AR"; then
3066 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 ac_cv_prog_ac_ct_AR="ar"
3076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3079 done
3080 done
3084 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3085 if test -n "$ac_ct_AR"; then
3086 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3087 echo "${ECHO_T}$ac_ct_AR" >&6
3088 else
3089 echo "$as_me:$LINENO: result: no" >&5
3090 echo "${ECHO_T}no" >&6
3093 AR=$ac_ct_AR
3094 else
3095 AR="$ac_cv_prog_AR"
3098 if test -n "$ac_tool_prefix"; then
3099 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3100 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3101 echo "$as_me:$LINENO: checking for $ac_word" >&5
3102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3103 if test "${ac_cv_prog_RANLIB+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106 if test -n "$RANLIB"; then
3107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3112 IFS=$as_save_IFS
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 break 2
3120 done
3121 done
3125 RANLIB=$ac_cv_prog_RANLIB
3126 if test -n "$RANLIB"; then
3127 echo "$as_me:$LINENO: result: $RANLIB" >&5
3128 echo "${ECHO_T}$RANLIB" >&6
3129 else
3130 echo "$as_me:$LINENO: result: no" >&5
3131 echo "${ECHO_T}no" >&6
3135 if test -z "$ac_cv_prog_RANLIB"; then
3136 ac_ct_RANLIB=$RANLIB
3137 # Extract the first word of "ranlib", so it can be a program name with args.
3138 set dummy ranlib; ac_word=$2
3139 echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3141 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 else
3144 if test -n "$ac_ct_RANLIB"; then
3145 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_ac_ct_RANLIB="ranlib"
3155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3158 done
3159 done
3161 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3164 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3165 if test -n "$ac_ct_RANLIB"; then
3166 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3167 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3168 else
3169 echo "$as_me:$LINENO: result: no" >&5
3170 echo "${ECHO_T}no" >&6
3173 RANLIB=$ac_ct_RANLIB
3174 else
3175 RANLIB="$ac_cv_prog_RANLIB"
3178 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3179 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3180 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3181 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 cat >conftest.make <<\_ACEOF
3185 all:
3186 @echo 'ac_maketemp="$(MAKE)"'
3187 _ACEOF
3188 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3189 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3190 if test -n "$ac_maketemp"; then
3191 eval ac_cv_prog_make_${ac_make}_set=yes
3192 else
3193 eval ac_cv_prog_make_${ac_make}_set=no
3195 rm -f conftest.make
3197 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3198 echo "$as_me:$LINENO: result: yes" >&5
3199 echo "${ECHO_T}yes" >&6
3200 SET_MAKE=
3201 else
3202 echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3204 SET_MAKE="MAKE=${MAKE-make}"
3207 # Find a good install program. We prefer a C program (faster),
3208 # so one script is as good as another. But avoid the broken or
3209 # incompatible versions:
3210 # SysV /etc/install, /usr/sbin/install
3211 # SunOS /usr/etc/install
3212 # IRIX /sbin/install
3213 # AIX /bin/install
3214 # AmigaOS /C/install, which installs bootblocks on floppy discs
3215 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3216 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3217 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3218 # OS/2's system install, which has a completely different semantic
3219 # ./install, which can be erroneously created by make from ./install.sh.
3220 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3221 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3222 if test -z "$INSTALL"; then
3223 if test "${ac_cv_path_install+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 # Account for people who put trailing slashes in PATH elements.
3232 case $as_dir/ in
3233 ./ | .// | /cC/* | \
3234 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3235 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3236 /usr/ucb/* ) ;;
3238 # OSF1 and SCO ODT 3.0 have their own names for install.
3239 # Don't use installbsd from OSF since it installs stuff as root
3240 # by default.
3241 for ac_prog in ginstall scoinst install; do
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3244 if test $ac_prog = install &&
3245 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3246 # AIX install. It has an incompatible calling convention.
3248 elif test $ac_prog = install &&
3249 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3250 # program-specific install script used by HP pwplus--don't use.
3252 else
3253 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3254 break 3
3257 done
3258 done
3260 esac
3261 done
3265 if test "${ac_cv_path_install+set}" = set; then
3266 INSTALL=$ac_cv_path_install
3267 else
3268 # As a last resort, use the slow shell script. We don't cache a
3269 # path for INSTALL within a source directory, because that will
3270 # break other packages using the cache if that directory is
3271 # removed, or if the path is relative.
3272 INSTALL=$ac_install_sh
3275 echo "$as_me:$LINENO: result: $INSTALL" >&5
3276 echo "${ECHO_T}$INSTALL" >&6
3278 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3279 # It thinks the first close brace ends the variable substitution.
3280 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3282 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3284 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3287 # Configure libtool
3288 #AC_MSG_NOTICE([====== Starting libtool configuration])
3290 # Check whether --enable-shared or --disable-shared was given.
3291 if test "${enable_shared+set}" = set; then
3292 enableval="$enable_shared"
3293 p=${PACKAGE-default}
3294 case $enableval in
3295 yes) enable_shared=yes ;;
3296 no) enable_shared=no ;;
3298 enable_shared=no
3299 # Look at the argument we got. We use all the common list separators.
3300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3301 for pkg in $enableval; do
3302 if test "X$pkg" = "X$p"; then
3303 enable_shared=yes
3305 done
3306 IFS="$ac_save_ifs"
3308 esac
3309 else
3310 enable_shared=yes
3312 # Check whether --enable-static or --disable-static was given.
3313 if test "${enable_static+set}" = set; then
3314 enableval="$enable_static"
3315 p=${PACKAGE-default}
3316 case $enableval in
3317 yes) enable_static=yes ;;
3318 no) enable_static=no ;;
3320 enable_static=no
3321 # Look at the argument we got. We use all the common list separators.
3322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3323 for pkg in $enableval; do
3324 if test "X$pkg" = "X$p"; then
3325 enable_static=yes
3327 done
3328 IFS="$ac_save_ifs"
3330 esac
3331 else
3332 enable_static=yes
3334 # Check whether --enable-fast-install or --disable-fast-install was given.
3335 if test "${enable_fast_install+set}" = set; then
3336 enableval="$enable_fast_install"
3337 p=${PACKAGE-default}
3338 case $enableval in
3339 yes) enable_fast_install=yes ;;
3340 no) enable_fast_install=no ;;
3342 enable_fast_install=no
3343 # Look at the argument we got. We use all the common list separators.
3344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3345 for pkg in $enableval; do
3346 if test "X$pkg" = "X$p"; then
3347 enable_fast_install=yes
3349 done
3350 IFS="$ac_save_ifs"
3352 esac
3353 else
3354 enable_fast_install=yes
3357 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3358 if test "${with_gnu_ld+set}" = set; then
3359 withval="$with_gnu_ld"
3360 test "$withval" = no || with_gnu_ld=yes
3361 else
3362 with_gnu_ld=no
3364 ac_prog=ld
3365 if test "$GCC" = yes; then
3366 # Check if gcc -print-prog-name=ld gives a path.
3367 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3368 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3369 case $host in
3370 *-*-mingw*)
3371 # gcc leaves a trailing carriage return which upsets mingw
3372 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3374 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3375 esac
3376 case $ac_prog in
3377 # Accept absolute paths.
3378 [\\/]* | [A-Za-z]:[\\/]*)
3379 re_direlt='/[^/][^/]*/\.\./'
3380 # Canonicalize the path of ld
3381 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3382 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3383 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3384 done
3385 test -z "$LD" && LD="$ac_prog"
3388 # If it fails, then pretend we aren't using GCC.
3389 ac_prog=ld
3392 # If it is relative, then search for the first ld in PATH.
3393 with_gnu_ld=unknown
3395 esac
3396 elif test "$with_gnu_ld" = yes; then
3397 echo "$as_me:$LINENO: checking for GNU ld" >&5
3398 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3399 else
3400 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3401 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3403 if test "${lt_cv_path_LD+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 else
3406 if test -z "$LD"; then
3407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3408 for ac_dir in $PATH; do
3409 test -z "$ac_dir" && ac_dir=.
3410 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3411 lt_cv_path_LD="$ac_dir/$ac_prog"
3412 # Check to see if the program is GNU ld. I'd rather use --version,
3413 # but apparently some GNU ld's only accept -v.
3414 # Break only if it was the GNU/non-GNU ld that we prefer.
3415 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3416 test "$with_gnu_ld" != no && break
3417 else
3418 test "$with_gnu_ld" != yes && break
3421 done
3422 IFS="$ac_save_ifs"
3423 else
3424 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3428 LD="$lt_cv_path_LD"
3429 if test -n "$LD"; then
3430 echo "$as_me:$LINENO: result: $LD" >&5
3431 echo "${ECHO_T}$LD" >&6
3432 else
3433 echo "$as_me:$LINENO: result: no" >&5
3434 echo "${ECHO_T}no" >&6
3436 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3437 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3438 { (exit 1); exit 1; }; }
3439 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3440 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3441 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3445 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3446 lt_cv_prog_gnu_ld=yes
3447 else
3448 lt_cv_prog_gnu_ld=no
3451 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3452 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3453 with_gnu_ld=$lt_cv_prog_gnu_ld
3456 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3457 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3458 if test "${lt_cv_ld_reload_flag+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461 lt_cv_ld_reload_flag='-r'
3463 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3464 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3465 reload_flag=$lt_cv_ld_reload_flag
3466 test -n "$reload_flag" && reload_flag=" $reload_flag"
3468 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3469 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3470 if test "${lt_cv_path_NM+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473 if test -n "$NM"; then
3474 # Let the user override the test.
3475 lt_cv_path_NM="$NM"
3476 else
3477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3478 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3479 test -z "$ac_dir" && ac_dir=.
3480 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3481 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3482 # Check to see if the nm accepts a BSD-compat flag.
3483 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3484 # nm: unknown option "B" ignored
3485 # Tru64's nm complains that /dev/null is an invalid object file
3486 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3487 lt_cv_path_NM="$tmp_nm -B"
3488 break
3489 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3490 lt_cv_path_NM="$tmp_nm -p"
3491 break
3492 else
3493 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3494 continue # so that we can try to find one that supports BSD flags
3497 done
3498 IFS="$ac_save_ifs"
3499 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3503 NM="$lt_cv_path_NM"
3504 echo "$as_me:$LINENO: result: $NM" >&5
3505 echo "${ECHO_T}$NM" >&6
3507 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3508 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3509 LN_S=$as_ln_s
3510 if test "$LN_S" = "ln -s"; then
3511 echo "$as_me:$LINENO: result: yes" >&5
3512 echo "${ECHO_T}yes" >&6
3513 else
3514 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3515 echo "${ECHO_T}no, using $LN_S" >&6
3518 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3519 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3520 if test "${lt_cv_deplibs_check_method+set}" = set; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 else
3523 lt_cv_file_magic_cmd='$MAGIC_CMD'
3524 lt_cv_file_magic_test_file=
3525 lt_cv_deplibs_check_method='unknown'
3526 # Need to set the preceding variable on all platforms that support
3527 # interlibrary dependencies.
3528 # 'none' -- dependencies not supported.
3529 # `unknown' -- same as none, but documents that we really don't know.
3530 # 'pass_all' -- all dependencies passed with no checks.
3531 # 'test_compile' -- check by making test program.
3532 # 'file_magic [regex]' -- check by looking for files in library path
3533 # which responds to the $file_magic_cmd with a given egrep regex.
3534 # If you have `file' or equivalent on your system and you're not sure
3535 # whether `pass_all' will *always* work, you probably want this one.
3537 case $host_os in
3538 aix*)
3539 lt_cv_deplibs_check_method=pass_all
3542 beos*)
3543 lt_cv_deplibs_check_method=pass_all
3546 bsdi4*)
3547 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3548 lt_cv_file_magic_cmd='/usr/bin/file -L'
3549 lt_cv_file_magic_test_file=/shlib/libc.so
3552 cygwin* | mingw* |pw32*)
3553 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3554 lt_cv_file_magic_cmd='$OBJDUMP -f'
3557 darwin* | rhapsody*)
3558 # this will be overwritten by pass_all, but leave it in just in case
3559 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3560 lt_cv_file_magic_cmd='/usr/bin/file -L'
3561 case "$host_os" in
3562 rhapsody* | darwin1.012)
3563 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3565 *) # Darwin 1.3 on
3566 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3568 esac
3569 lt_cv_deplibs_check_method=pass_all
3572 freebsd* | kfreebsd*-gnu)
3573 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3574 case $host_cpu in
3575 i*86 )
3576 # Not sure whether the presence of OpenBSD here was a mistake.
3577 # Let's accept both of them until this is cleared up.
3578 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3579 lt_cv_file_magic_cmd=/usr/bin/file
3580 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3582 esac
3583 else
3584 lt_cv_deplibs_check_method=pass_all
3588 gnu*)
3589 lt_cv_deplibs_check_method=pass_all
3592 hpux10.20*|hpux11*)
3593 case $host_cpu in
3594 hppa*)
3595 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3596 lt_cv_file_magic_cmd=/usr/bin/file
3597 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3599 ia64*)
3600 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3601 lt_cv_file_magic_cmd=/usr/bin/file
3602 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3604 esac
3607 irix5* | irix6*)
3608 case $host_os in
3609 irix5*)
3610 # this will be overridden with pass_all, but let us keep it just in case
3611 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3614 case $LD in
3615 *-32|*"-32 ") libmagic=32-bit;;
3616 *-n32|*"-n32 ") libmagic=N32;;
3617 *-64|*"-64 ") libmagic=64-bit;;
3618 *) libmagic=never-match;;
3619 esac
3620 # this will be overridden with pass_all, but let us keep it just in case
3621 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3623 esac
3624 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3625 lt_cv_deplibs_check_method=pass_all
3628 # This must be Linux ELF.
3629 linux-gnu*)
3630 case $host_cpu in
3631 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
3632 lt_cv_deplibs_check_method=pass_all ;;
3634 # glibc up to 2.1.1 does not perform some relocations on ARM
3635 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3636 esac
3637 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3640 netbsd* | knetbsd*-gnu)
3641 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3642 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3643 else
3644 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3648 newsos6)
3649 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3650 lt_cv_file_magic_cmd=/usr/bin/file
3651 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3654 osf3* | osf4* | osf5*)
3655 # this will be overridden with pass_all, but let us keep it just in case
3656 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3657 lt_cv_file_magic_test_file=/shlib/libc.so
3658 lt_cv_deplibs_check_method=pass_all
3661 sco3.2v5*)
3662 lt_cv_deplibs_check_method=pass_all
3665 solaris*)
3666 lt_cv_deplibs_check_method=pass_all
3667 lt_cv_file_magic_test_file=/lib/libc.so
3670 sysv5uw[78]* | sysv4*uw2*)
3671 lt_cv_deplibs_check_method=pass_all
3674 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3675 case $host_vendor in
3676 ncr)
3677 lt_cv_deplibs_check_method=pass_all
3679 motorola)
3680 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]'
3681 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3683 esac
3685 esac
3688 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3689 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3690 file_magic_cmd=$lt_cv_file_magic_cmd
3691 deplibs_check_method=$lt_cv_deplibs_check_method
3697 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3699 # Only perform the check for file, if the check method requires it
3700 case $deplibs_check_method in
3701 file_magic*)
3702 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3703 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3704 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3705 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708 case $MAGIC_CMD in
3710 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3712 ?:/*)
3713 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3716 ac_save_MAGIC_CMD="$MAGIC_CMD"
3717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3718 ac_dummy="/usr/bin:$PATH"
3719 for ac_dir in $ac_dummy; do
3720 test -z "$ac_dir" && ac_dir=.
3721 if test -f $ac_dir/${ac_tool_prefix}file; then
3722 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3723 if test -n "$file_magic_test_file"; then
3724 case $deplibs_check_method in
3725 "file_magic "*)
3726 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3727 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3728 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3729 egrep "$file_magic_regex" > /dev/null; then
3731 else
3732 cat <<EOF 1>&2
3734 *** Warning: the command libtool uses to detect shared libraries,
3735 *** $file_magic_cmd, produces output that libtool cannot recognize.
3736 *** The result is that libtool may fail to recognize shared libraries
3737 *** as such. This will affect the creation of libtool libraries that
3738 *** depend on shared libraries, but programs linked with such libtool
3739 *** libraries will work regardless of this problem. Nevertheless, you
3740 *** may want to report the problem to your system manager and/or to
3741 *** bug-libtool@gnu.org
3744 fi ;;
3745 esac
3747 break
3749 done
3750 IFS="$ac_save_ifs"
3751 MAGIC_CMD="$ac_save_MAGIC_CMD"
3753 esac
3756 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3757 if test -n "$MAGIC_CMD"; then
3758 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3759 echo "${ECHO_T}$MAGIC_CMD" >&6
3760 else
3761 echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3765 if test -z "$lt_cv_path_MAGIC_CMD"; then
3766 if test -n "$ac_tool_prefix"; then
3767 echo "$as_me:$LINENO: checking for file" >&5
3768 echo $ECHO_N "checking for file... $ECHO_C" >&6
3769 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 case $MAGIC_CMD in
3774 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3776 ?:/*)
3777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3780 ac_save_MAGIC_CMD="$MAGIC_CMD"
3781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3782 ac_dummy="/usr/bin:$PATH"
3783 for ac_dir in $ac_dummy; do
3784 test -z "$ac_dir" && ac_dir=.
3785 if test -f $ac_dir/file; then
3786 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3787 if test -n "$file_magic_test_file"; then
3788 case $deplibs_check_method in
3789 "file_magic "*)
3790 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3791 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3792 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3793 egrep "$file_magic_regex" > /dev/null; then
3795 else
3796 cat <<EOF 1>&2
3798 *** Warning: the command libtool uses to detect shared libraries,
3799 *** $file_magic_cmd, produces output that libtool cannot recognize.
3800 *** The result is that libtool may fail to recognize shared libraries
3801 *** as such. This will affect the creation of libtool libraries that
3802 *** depend on shared libraries, but programs linked with such libtool
3803 *** libraries will work regardless of this problem. Nevertheless, you
3804 *** may want to report the problem to your system manager and/or to
3805 *** bug-libtool@gnu.org
3808 fi ;;
3809 esac
3811 break
3813 done
3814 IFS="$ac_save_ifs"
3815 MAGIC_CMD="$ac_save_MAGIC_CMD"
3817 esac
3820 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3821 if test -n "$MAGIC_CMD"; then
3822 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3823 echo "${ECHO_T}$MAGIC_CMD" >&6
3824 else
3825 echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3829 else
3830 MAGIC_CMD=:
3836 esac
3838 if test -n "$ac_tool_prefix"; then
3839 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3840 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3841 echo "$as_me:$LINENO: checking for $ac_word" >&5
3842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3843 if test "${ac_cv_prog_RANLIB+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846 if test -n "$RANLIB"; then
3847 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3848 else
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3856 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 break 2
3860 done
3861 done
3865 RANLIB=$ac_cv_prog_RANLIB
3866 if test -n "$RANLIB"; then
3867 echo "$as_me:$LINENO: result: $RANLIB" >&5
3868 echo "${ECHO_T}$RANLIB" >&6
3869 else
3870 echo "$as_me:$LINENO: result: no" >&5
3871 echo "${ECHO_T}no" >&6
3875 if test -z "$ac_cv_prog_RANLIB"; then
3876 ac_ct_RANLIB=$RANLIB
3877 # Extract the first word of "ranlib", so it can be a program name with args.
3878 set dummy ranlib; ac_word=$2
3879 echo "$as_me:$LINENO: checking for $ac_word" >&5
3880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3881 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884 if test -n "$ac_ct_RANLIB"; then
3885 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3886 else
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3894 ac_cv_prog_ac_ct_RANLIB="ranlib"
3895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 break 2
3898 done
3899 done
3901 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3904 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3905 if test -n "$ac_ct_RANLIB"; then
3906 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3907 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3908 else
3909 echo "$as_me:$LINENO: result: no" >&5
3910 echo "${ECHO_T}no" >&6
3913 RANLIB=$ac_ct_RANLIB
3914 else
3915 RANLIB="$ac_cv_prog_RANLIB"
3918 if test -n "$ac_tool_prefix"; then
3919 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3920 set dummy ${ac_tool_prefix}strip; ac_word=$2
3921 echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_prog_STRIP+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926 if test -n "$STRIP"; then
3927 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3940 done
3941 done
3945 STRIP=$ac_cv_prog_STRIP
3946 if test -n "$STRIP"; then
3947 echo "$as_me:$LINENO: result: $STRIP" >&5
3948 echo "${ECHO_T}$STRIP" >&6
3949 else
3950 echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3955 if test -z "$ac_cv_prog_STRIP"; then
3956 ac_ct_STRIP=$STRIP
3957 # Extract the first word of "strip", so it can be a program name with args.
3958 set dummy strip; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964 if test -n "$ac_ct_STRIP"; then
3965 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_STRIP="strip"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
3978 done
3979 done
3981 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3984 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3985 if test -n "$ac_ct_STRIP"; then
3986 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3987 echo "${ECHO_T}$ac_ct_STRIP" >&6
3988 else
3989 echo "$as_me:$LINENO: result: no" >&5
3990 echo "${ECHO_T}no" >&6
3993 STRIP=$ac_ct_STRIP
3994 else
3995 STRIP="$ac_cv_prog_STRIP"
3999 # Check for any special flags to pass to ltconfig.
4000 libtool_flags="--cache-file=$cache_file"
4001 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4002 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4003 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4004 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4005 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4008 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4009 if test "${enable_libtool_lock+set}" = set; then
4010 enableval="$enable_libtool_lock"
4013 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4014 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4017 # Check whether --with-pic or --without-pic was given.
4018 if test "${with_pic+set}" = set; then
4019 withval="$with_pic"
4020 pic_mode="$withval"
4021 else
4022 pic_mode=default
4024 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4025 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4027 # Some flags need to be propagated to the compiler or linker for good
4028 # libtool support.
4029 case $host in
4030 *-*-irix6*)
4031 # Find out which ABI we are using.
4032 echo '#line 4032 "configure"' > conftest.$ac_ext
4033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>&5
4035 ac_status=$?
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; then
4038 if test "$lt_cv_prog_gnu_ld" = yes; then
4039 case `/usr/bin/file conftest.$ac_objext` in
4040 *32-bit*)
4041 LD="${LD-ld} -melf32bsmip"
4043 *N32*)
4044 LD="${LD-ld} -melf32bmipn32"
4046 *64-bit*)
4047 LD="${LD-ld} -melf64bmip"
4049 esac
4050 else
4051 case `/usr/bin/file conftest.$ac_objext` in
4052 *32-bit*)
4053 LD="${LD-ld} -32"
4055 *N32*)
4056 LD="${LD-ld} -n32"
4058 *64-bit*)
4059 LD="${LD-ld} -64"
4061 esac
4064 rm -rf conftest*
4067 ia64-*-hpux*)
4068 # Find out which ABI we are using.
4069 echo 'int i;' > conftest.$ac_ext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071 (eval $ac_compile) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; then
4075 case "`/usr/bin/file conftest.o`" in
4076 *ELF-32*)
4077 HPUX_IA64_MODE="32"
4079 *ELF-64*)
4080 HPUX_IA64_MODE="64"
4082 esac
4084 rm -rf conftest*
4087 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4088 # Find out which ABI we are using.
4089 echo 'int i;' > conftest.$ac_ext
4090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; then
4095 case "`/usr/bin/file conftest.o`" in
4096 *32-bit*)
4097 case $host in
4098 x86_64-*linux*)
4099 LD="${LD-ld} -m elf_i386"
4101 ppc64-*linux*|powerpc64-*linux*)
4102 LD="${LD-ld} -m elf32ppclinux"
4104 s390x-*linux*)
4105 LD="${LD-ld} -m elf_s390"
4107 sparc64-*linux*)
4108 LD="${LD-ld} -m elf32_sparc"
4110 esac
4112 *64-bit*)
4113 case $host in
4114 x86_64-*linux*)
4115 LD="${LD-ld} -m elf_x86_64"
4117 ppc*-*linux*|powerpc*-*linux*)
4118 LD="${LD-ld} -m elf64ppc"
4120 s390*-*linux*)
4121 LD="${LD-ld} -m elf64_s390"
4123 sparc*-*linux*)
4124 LD="${LD-ld} -m elf64_sparc"
4126 esac
4128 esac
4130 rm -rf conftest*
4133 *-*-sco3.2v5*)
4134 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4135 SAVE_CFLAGS="$CFLAGS"
4136 CFLAGS="$CFLAGS -belf"
4137 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4138 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4139 if test "${lt_cv_cc_needs_belf+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4144 ac_ext=c
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150 cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h. */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4158 main ()
4162 return 0;
4164 _ACEOF
4165 rm -f conftest.$ac_objext conftest$ac_exeext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4167 (eval $ac_link) 2>conftest.er1
4168 ac_status=$?
4169 grep -v '^ *+' conftest.er1 >conftest.err
4170 rm -f conftest.er1
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try='test -z "$ac_c_werror_flag"
4175 || test ! -s conftest.err'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 (eval $ac_try) 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; } &&
4181 { ac_try='test -s conftest$ac_exeext'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183 (eval $ac_try) 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4187 lt_cv_cc_needs_belf=yes
4188 else
4189 echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4192 lt_cv_cc_needs_belf=no
4194 rm -f conftest.err conftest.$ac_objext \
4195 conftest$ac_exeext conftest.$ac_ext
4196 ac_ext=c
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4204 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4205 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4206 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4207 CFLAGS="$SAVE_CFLAGS"
4212 esac
4215 # Save cache, so that ltconfig can load it
4216 cat >confcache <<\_ACEOF
4217 # This file is a shell script that caches the results of configure
4218 # tests run on this system so they can be shared between configure
4219 # scripts and configure runs, see configure's option --config-cache.
4220 # It is not useful on other systems. If it contains results you don't
4221 # want to keep, you may remove or edit it.
4223 # config.status only pays attention to the cache file if you give it
4224 # the --recheck option to rerun configure.
4226 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4227 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4228 # following values.
4230 _ACEOF
4232 # The following way of writing the cache mishandles newlines in values,
4233 # but we know of no workaround that is simple, portable, and efficient.
4234 # So, don't put newlines in cache variables' values.
4235 # Ultrix sh set writes to stderr and can't be redirected directly,
4236 # and sets the high bit in the cache file unless we assign to the vars.
4238 (set) 2>&1 |
4239 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4240 *ac_space=\ *)
4241 # `set' does not quote correctly, so add quotes (double-quote
4242 # substitution turns \\\\ into \\, and sed turns \\ into \).
4243 sed -n \
4244 "s/'/'\\\\''/g;
4245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4248 # `set' quotes correctly as required by POSIX, so do not add quotes.
4249 sed -n \
4250 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4252 esac;
4254 sed '
4255 t clear
4256 : clear
4257 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4258 t end
4259 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4260 : end' >>confcache
4261 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4262 if test -w $cache_file; then
4263 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4264 cat confcache >$cache_file
4265 else
4266 echo "not updating unwritable cache $cache_file"
4269 rm -f confcache
4271 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4272 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4273 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4274 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4275 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4276 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4277 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4278 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4279 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4280 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4281 echo "$as_me: error: libtool configure failed" >&2;}
4282 { (exit 1); exit 1; }; }
4284 # Reload cache, that may have been modified by ltconfig
4285 if test -r "$cache_file"; then
4286 # Some versions of bash will fail to source /dev/null (special
4287 # files actually), so we avoid doing that.
4288 if test -f "$cache_file"; then
4289 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4290 echo "$as_me: loading cache $cache_file" >&6;}
4291 case $cache_file in
4292 [\\/]* | ?:[\\/]* ) . $cache_file;;
4293 *) . ./$cache_file;;
4294 esac
4296 else
4297 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4298 echo "$as_me: creating cache $cache_file" >&6;}
4299 >$cache_file
4303 # This can be used to rebuild libtool when needed
4304 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4306 # Always use our own libtool.
4307 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4309 # Redirect the config.log output again, so that the ltconfig log is not
4310 # clobbered by the next message.
4311 exec 5>>./config.log
4320 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4322 # We need gfortran to compile parts of the library
4323 # We can't use AC_PROG_F77 because it expects a fully working gfortran.
4324 #AC_PROG_F77(gfortran)
4325 F77="$GFORTRAN"
4326 ac_ext=f
4327 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4328 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4330 if test -n "$ac_tool_prefix"; then
4331 for ac_prog in gfortran
4333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4335 echo "$as_me:$LINENO: checking for $ac_word" >&5
4336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4337 if test "${ac_cv_prog_F77+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340 if test -n "$F77"; then
4341 ac_cv_prog_F77="$F77" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4354 done
4355 done
4359 F77=$ac_cv_prog_F77
4360 if test -n "$F77"; then
4361 echo "$as_me:$LINENO: result: $F77" >&5
4362 echo "${ECHO_T}$F77" >&6
4363 else
4364 echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6
4368 test -n "$F77" && break
4369 done
4371 if test -z "$F77"; then
4372 ac_ct_F77=$F77
4373 for ac_prog in gfortran
4375 # Extract the first word of "$ac_prog", so it can be a program name with args.
4376 set dummy $ac_prog; ac_word=$2
4377 echo "$as_me:$LINENO: checking for $ac_word" >&5
4378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4379 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382 if test -n "$ac_ct_F77"; then
4383 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4384 else
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH
4388 IFS=$as_save_IFS
4389 test -z "$as_dir" && as_dir=.
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4392 ac_cv_prog_ac_ct_F77="$ac_prog"
4393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 break 2
4396 done
4397 done
4401 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4402 if test -n "$ac_ct_F77"; then
4403 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4404 echo "${ECHO_T}$ac_ct_F77" >&6
4405 else
4406 echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6
4410 test -n "$ac_ct_F77" && break
4411 done
4413 F77=$ac_ct_F77
4417 # Provide some information about the compiler.
4418 echo "$as_me:4418:" \
4419 "checking for Fortran 77 compiler version" >&5
4420 ac_compiler=`set X $ac_compile; echo $2`
4421 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4422 (eval $ac_compiler --version </dev/null >&5) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }
4426 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4427 (eval $ac_compiler -v </dev/null >&5) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }
4431 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4432 (eval $ac_compiler -V </dev/null >&5) 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }
4436 rm -f a.out
4438 # If we don't use `.F' as extension, the preprocessor is not run on the
4439 # input file. (Note that this only needs to work for GNU compilers.)
4440 ac_save_ext=$ac_ext
4441 ac_ext=F
4442 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4443 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4444 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447 cat >conftest.$ac_ext <<_ACEOF
4448 program main
4449 #ifndef __GNUC__
4450 choke me
4451 #endif
4454 _ACEOF
4455 rm -f conftest.$ac_objext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457 (eval $ac_compile) 2>conftest.er1
4458 ac_status=$?
4459 grep -v '^ *+' conftest.er1 >conftest.err
4460 rm -f conftest.er1
4461 cat conftest.err >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } &&
4464 { ac_try='test -z "$ac_f77_werror_flag"
4465 || test ! -s conftest.err'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 (eval $ac_try) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; } &&
4471 { ac_try='test -s conftest.$ac_objext'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 ac_compiler_gnu=yes
4478 else
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 ac_compiler_gnu=no
4484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4485 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4488 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4489 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4490 ac_ext=$ac_save_ext
4491 ac_test_FFLAGS=${FFLAGS+set}
4492 ac_save_FFLAGS=$FFLAGS
4493 FFLAGS=
4494 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4495 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4496 if test "${ac_cv_prog_f77_g+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499 FFLAGS=-g
4500 cat >conftest.$ac_ext <<_ACEOF
4501 program main
4504 _ACEOF
4505 rm -f conftest.$ac_objext
4506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4507 (eval $ac_compile) 2>conftest.er1
4508 ac_status=$?
4509 grep -v '^ *+' conftest.er1 >conftest.err
4510 rm -f conftest.er1
4511 cat conftest.err >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } &&
4514 { ac_try='test -z "$ac_f77_werror_flag"
4515 || test ! -s conftest.err'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 (eval $ac_try) 2>&5
4518 ac_status=$?
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; } &&
4521 { ac_try='test -s conftest.$ac_objext'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 (eval $ac_try) 2>&5
4524 ac_status=$?
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; }; then
4527 ac_cv_prog_f77_g=yes
4528 else
4529 echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4532 ac_cv_prog_f77_g=no
4534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4537 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4538 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4539 if test "$ac_test_FFLAGS" = set; then
4540 FFLAGS=$ac_save_FFLAGS
4541 elif test $ac_cv_prog_f77_g = yes; then
4542 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4543 FFLAGS="-g -O2"
4544 else
4545 FFLAGS="-g"
4547 else
4548 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4549 FFLAGS="-O2"
4550 else
4551 FFLAGS=
4555 G77=`test $ac_compiler_gnu = yes && echo yes`
4556 ac_ext=c
4557 ac_cpp='$CPP $CPPFLAGS'
4558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562 FFLAGS="$FFLAGS -Wall -fno-repack-arrays -fno-underscoring"
4564 ac_ext=c
4565 ac_cpp='$CPP $CPPFLAGS'
4566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4569 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4570 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4571 # On Suns, sometimes $CPP names a directory.
4572 if test -n "$CPP" && test -d "$CPP"; then
4573 CPP=
4575 if test -z "$CPP"; then
4576 if test "${ac_cv_prog_CPP+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579 # Double quotes because CPP needs to be expanded
4580 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4582 ac_preproc_ok=false
4583 for ac_c_preproc_warn_flag in '' yes
4585 # Use a header file that comes with gcc, so configuring glibc
4586 # with a fresh cross-compiler works.
4587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4588 # <limits.h> exists even on freestanding compilers.
4589 # On the NeXT, cc -E runs the code through the compiler's parser,
4590 # not just through cpp. "Syntax error" is here to catch this case.
4591 cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h. */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597 #ifdef __STDC__
4598 # include <limits.h>
4599 #else
4600 # include <assert.h>
4601 #endif
4602 Syntax error
4603 _ACEOF
4604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4606 ac_status=$?
4607 grep -v '^ *+' conftest.er1 >conftest.err
4608 rm -f conftest.er1
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } >/dev/null; then
4612 if test -s conftest.err; then
4613 ac_cpp_err=$ac_c_preproc_warn_flag
4614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4615 else
4616 ac_cpp_err=
4618 else
4619 ac_cpp_err=yes
4621 if test -z "$ac_cpp_err"; then
4623 else
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 # Broken: fails on valid input.
4628 continue
4630 rm -f conftest.err conftest.$ac_ext
4632 # OK, works on sane cases. Now check whether non-existent headers
4633 # can be detected and how.
4634 cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h. */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4640 #include <ac_nonexistent.h>
4641 _ACEOF
4642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } >/dev/null; then
4650 if test -s conftest.err; then
4651 ac_cpp_err=$ac_c_preproc_warn_flag
4652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4653 else
4654 ac_cpp_err=
4656 else
4657 ac_cpp_err=yes
4659 if test -z "$ac_cpp_err"; then
4660 # Broken: success on invalid input.
4661 continue
4662 else
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 # Passes both tests.
4667 ac_preproc_ok=:
4668 break
4670 rm -f conftest.err conftest.$ac_ext
4672 done
4673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4674 rm -f conftest.err conftest.$ac_ext
4675 if $ac_preproc_ok; then
4676 break
4679 done
4680 ac_cv_prog_CPP=$CPP
4683 CPP=$ac_cv_prog_CPP
4684 else
4685 ac_cv_prog_CPP=$CPP
4687 echo "$as_me:$LINENO: result: $CPP" >&5
4688 echo "${ECHO_T}$CPP" >&6
4689 ac_preproc_ok=false
4690 for ac_c_preproc_warn_flag in '' yes
4692 # Use a header file that comes with gcc, so configuring glibc
4693 # with a fresh cross-compiler works.
4694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4695 # <limits.h> exists even on freestanding compilers.
4696 # On the NeXT, cc -E runs the code through the compiler's parser,
4697 # not just through cpp. "Syntax error" is here to catch this case.
4698 cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h. */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 #ifdef __STDC__
4705 # include <limits.h>
4706 #else
4707 # include <assert.h>
4708 #endif
4709 Syntax error
4710 _ACEOF
4711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } >/dev/null; then
4719 if test -s conftest.err; then
4720 ac_cpp_err=$ac_c_preproc_warn_flag
4721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4722 else
4723 ac_cpp_err=
4725 else
4726 ac_cpp_err=yes
4728 if test -z "$ac_cpp_err"; then
4730 else
4731 echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4734 # Broken: fails on valid input.
4735 continue
4737 rm -f conftest.err conftest.$ac_ext
4739 # OK, works on sane cases. Now check whether non-existent headers
4740 # can be detected and how.
4741 cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h. */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4747 #include <ac_nonexistent.h>
4748 _ACEOF
4749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4751 ac_status=$?
4752 grep -v '^ *+' conftest.er1 >conftest.err
4753 rm -f conftest.er1
4754 cat conftest.err >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } >/dev/null; then
4757 if test -s conftest.err; then
4758 ac_cpp_err=$ac_c_preproc_warn_flag
4759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4760 else
4761 ac_cpp_err=
4763 else
4764 ac_cpp_err=yes
4766 if test -z "$ac_cpp_err"; then
4767 # Broken: success on invalid input.
4768 continue
4769 else
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4773 # Passes both tests.
4774 ac_preproc_ok=:
4775 break
4777 rm -f conftest.err conftest.$ac_ext
4779 done
4780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4781 rm -f conftest.err conftest.$ac_ext
4782 if $ac_preproc_ok; then
4784 else
4785 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4786 See \`config.log' for more details." >&5
4787 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4788 See \`config.log' for more details." >&2;}
4789 { (exit 1); exit 1; }; }
4792 ac_ext=c
4793 ac_cpp='$CPP $CPPFLAGS'
4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799 echo "$as_me:$LINENO: checking for egrep" >&5
4800 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4801 if test "${ac_cv_prog_egrep+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4805 then ac_cv_prog_egrep='grep -E'
4806 else ac_cv_prog_egrep='egrep'
4809 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4810 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4811 EGREP=$ac_cv_prog_egrep
4814 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4815 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4816 if test "${ac_cv_header_stdc+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819 cat >conftest.$ac_ext <<_ACEOF
4820 /* confdefs.h. */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4825 #include <stdlib.h>
4826 #include <stdarg.h>
4827 #include <string.h>
4828 #include <float.h>
4831 main ()
4835 return 0;
4837 _ACEOF
4838 rm -f conftest.$ac_objext
4839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4840 (eval $ac_compile) 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } &&
4847 { ac_try='test -z "$ac_c_werror_flag"
4848 || test ! -s conftest.err'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 (eval $ac_try) 2>&5
4851 ac_status=$?
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; } &&
4854 { ac_try='test -s conftest.$ac_objext'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; }; then
4860 ac_cv_header_stdc=yes
4861 else
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4865 ac_cv_header_stdc=no
4867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4869 if test $ac_cv_header_stdc = yes; then
4870 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4871 cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h. */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 #include <string.h>
4879 _ACEOF
4880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4881 $EGREP "memchr" >/dev/null 2>&1; then
4883 else
4884 ac_cv_header_stdc=no
4886 rm -f conftest*
4890 if test $ac_cv_header_stdc = yes; then
4891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4892 cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h. */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 #include <stdlib.h>
4900 _ACEOF
4901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4902 $EGREP "free" >/dev/null 2>&1; then
4904 else
4905 ac_cv_header_stdc=no
4907 rm -f conftest*
4911 if test $ac_cv_header_stdc = yes; then
4912 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4913 if test "$cross_compiling" = yes; then
4915 else
4916 cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h. */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922 #include <ctype.h>
4923 #if ((' ' & 0x0FF) == 0x020)
4924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4926 #else
4927 # define ISLOWER(c) \
4928 (('a' <= (c) && (c) <= 'i') \
4929 || ('j' <= (c) && (c) <= 'r') \
4930 || ('s' <= (c) && (c) <= 'z'))
4931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4932 #endif
4934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4936 main ()
4938 int i;
4939 for (i = 0; i < 256; i++)
4940 if (XOR (islower (i), ISLOWER (i))
4941 || toupper (i) != TOUPPER (i))
4942 exit(2);
4943 exit (0);
4945 _ACEOF
4946 rm -f conftest$ac_exeext
4947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4948 (eval $ac_link) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 (eval $ac_try) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4958 else
4959 echo "$as_me: program exited with status $ac_status" >&5
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4963 ( exit $ac_status )
4964 ac_cv_header_stdc=no
4966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4970 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4971 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4972 if test $ac_cv_header_stdc = yes; then
4974 cat >>confdefs.h <<\_ACEOF
4975 #define STDC_HEADERS 1
4976 _ACEOF
4980 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4990 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4991 inttypes.h stdint.h unistd.h
4993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4994 echo "$as_me:$LINENO: checking for $ac_header" >&5
4995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999 cat >conftest.$ac_ext <<_ACEOF
5000 /* confdefs.h. */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5005 $ac_includes_default
5007 #include <$ac_header>
5008 _ACEOF
5009 rm -f conftest.$ac_objext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5011 (eval $ac_compile) 2>conftest.er1
5012 ac_status=$?
5013 grep -v '^ *+' conftest.er1 >conftest.err
5014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -z "$ac_c_werror_flag"
5019 || test ! -s conftest.err'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 (eval $ac_try) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; } &&
5025 { ac_try='test -s conftest.$ac_objext'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 (eval $ac_try) 2>&5
5028 ac_status=$?
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; }; then
5031 eval "$as_ac_Header=yes"
5032 else
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5036 eval "$as_ac_Header=no"
5038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5043 cat >>confdefs.h <<_ACEOF
5044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5045 _ACEOF
5049 done
5054 for ac_header in stdlib.h unistd.h
5056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5058 echo "$as_me:$LINENO: checking for $ac_header" >&5
5059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5065 else
5066 # Is the header compilable?
5067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5069 cat >conftest.$ac_ext <<_ACEOF
5070 /* confdefs.h. */
5071 _ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5075 $ac_includes_default
5076 #include <$ac_header>
5077 _ACEOF
5078 rm -f conftest.$ac_objext
5079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5080 (eval $ac_compile) 2>conftest.er1
5081 ac_status=$?
5082 grep -v '^ *+' conftest.er1 >conftest.err
5083 rm -f conftest.er1
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } &&
5087 { ac_try='test -z "$ac_c_werror_flag"
5088 || test ! -s conftest.err'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 (eval $ac_try) 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; } &&
5094 { ac_try='test -s conftest.$ac_objext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 (eval $ac_try) 2>&5
5097 ac_status=$?
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5100 ac_header_compiler=yes
5101 else
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5105 ac_header_compiler=no
5107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5109 echo "${ECHO_T}$ac_header_compiler" >&6
5111 # Is the header present?
5112 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5114 cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h. */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5120 #include <$ac_header>
5121 _ACEOF
5122 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } >/dev/null; then
5130 if test -s conftest.err; then
5131 ac_cpp_err=$ac_c_preproc_warn_flag
5132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5133 else
5134 ac_cpp_err=
5136 else
5137 ac_cpp_err=yes
5139 if test -z "$ac_cpp_err"; then
5140 ac_header_preproc=yes
5141 else
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5145 ac_header_preproc=no
5147 rm -f conftest.err conftest.$ac_ext
5148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5149 echo "${ECHO_T}$ac_header_preproc" >&6
5151 # So? What about this header?
5152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5153 yes:no: )
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5158 ac_header_preproc=yes
5160 no:yes:* )
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5174 cat <<\_ASBOX
5175 ## ------------------------------------------------------ ##
5176 ## Report this to the GNU Fortran Runtime Library lists. ##
5177 ## ------------------------------------------------------ ##
5178 _ASBOX
5180 sed "s/^/$as_me: WARNING: /" >&2
5182 esac
5183 echo "$as_me:$LINENO: checking for $ac_header" >&5
5184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188 eval "$as_ac_Header=\$ac_header_preproc"
5190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5195 cat >>confdefs.h <<_ACEOF
5196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5197 _ACEOF
5201 done
5204 for ac_func in getpagesize
5206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5207 echo "$as_me:$LINENO: checking for $ac_func" >&5
5208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5209 if eval "test \"\${$as_ac_var+set}\" = set"; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 cat >conftest.$ac_ext <<_ACEOF
5213 /* confdefs.h. */
5214 _ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5220 #define $ac_func innocuous_$ac_func
5222 /* System header to define __stub macros and hopefully few prototypes,
5223 which can conflict with char $ac_func (); below.
5224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5225 <limits.h> exists even on freestanding compilers. */
5227 #ifdef __STDC__
5228 # include <limits.h>
5229 #else
5230 # include <assert.h>
5231 #endif
5233 #undef $ac_func
5235 /* Override any gcc2 internal prototype to avoid an error. */
5236 #ifdef __cplusplus
5237 extern "C"
5239 #endif
5240 /* We use char because int might match the return type of a gcc2
5241 builtin and then its argument prototype would still apply. */
5242 char $ac_func ();
5243 /* The GNU C library defines this for functions which it implements
5244 to always fail with ENOSYS. Some functions are actually named
5245 something starting with __ and the normal name is an alias. */
5246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5247 choke me
5248 #else
5249 char (*f) () = $ac_func;
5250 #endif
5251 #ifdef __cplusplus
5253 #endif
5256 main ()
5258 return f != $ac_func;
5260 return 0;
5262 _ACEOF
5263 rm -f conftest.$ac_objext conftest$ac_exeext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5265 (eval $ac_link) 2>conftest.er1
5266 ac_status=$?
5267 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } &&
5272 { ac_try='test -z "$ac_c_werror_flag"
5273 || test ! -s conftest.err'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 (eval $ac_try) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; } &&
5279 { ac_try='test -s conftest$ac_exeext'
5280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 (eval $ac_try) 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
5285 eval "$as_ac_var=yes"
5286 else
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5290 eval "$as_ac_var=no"
5292 rm -f conftest.err conftest.$ac_objext \
5293 conftest$ac_exeext conftest.$ac_ext
5295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5297 if test `eval echo '${'$as_ac_var'}'` = yes; then
5298 cat >>confdefs.h <<_ACEOF
5299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5300 _ACEOF
5303 done
5305 echo "$as_me:$LINENO: checking for working mmap" >&5
5306 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5307 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310 if test "$cross_compiling" = yes; then
5311 ac_cv_func_mmap_fixed_mapped=no
5312 else
5313 cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h. */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 $ac_includes_default
5320 /* malloc might have been renamed as rpl_malloc. */
5321 #undef malloc
5323 /* Thanks to Mike Haertel and Jim Avera for this test.
5324 Here is a matrix of mmap possibilities:
5325 mmap private not fixed
5326 mmap private fixed at somewhere currently unmapped
5327 mmap private fixed at somewhere already mapped
5328 mmap shared not fixed
5329 mmap shared fixed at somewhere currently unmapped
5330 mmap shared fixed at somewhere already mapped
5331 For private mappings, we should verify that changes cannot be read()
5332 back from the file, nor mmap's back from the file at a different
5333 address. (There have been systems where private was not correctly
5334 implemented like the infamous i386 svr4.0, and systems where the
5335 VM page cache was not coherent with the file system buffer cache
5336 like early versions of FreeBSD and possibly contemporary NetBSD.)
5337 For shared mappings, we should conversely verify that changes get
5338 propagated back to all the places they're supposed to be.
5340 Grep wants private fixed already mapped.
5341 The main things grep needs to know about mmap are:
5342 * does it exist and is it safe to write into the mmap'd area
5343 * how to use it (BSD variants) */
5345 #include <fcntl.h>
5346 #include <sys/mman.h>
5348 #if !STDC_HEADERS && !HAVE_STDLIB_H
5349 char *malloc ();
5350 #endif
5352 /* This mess was copied from the GNU getpagesize.h. */
5353 #if !HAVE_GETPAGESIZE
5354 /* Assume that all systems that can run configure have sys/param.h. */
5355 # if !HAVE_SYS_PARAM_H
5356 # define HAVE_SYS_PARAM_H 1
5357 # endif
5359 # ifdef _SC_PAGESIZE
5360 # define getpagesize() sysconf(_SC_PAGESIZE)
5361 # else /* no _SC_PAGESIZE */
5362 # if HAVE_SYS_PARAM_H
5363 # include <sys/param.h>
5364 # ifdef EXEC_PAGESIZE
5365 # define getpagesize() EXEC_PAGESIZE
5366 # else /* no EXEC_PAGESIZE */
5367 # ifdef NBPG
5368 # define getpagesize() NBPG * CLSIZE
5369 # ifndef CLSIZE
5370 # define CLSIZE 1
5371 # endif /* no CLSIZE */
5372 # else /* no NBPG */
5373 # ifdef NBPC
5374 # define getpagesize() NBPC
5375 # else /* no NBPC */
5376 # ifdef PAGESIZE
5377 # define getpagesize() PAGESIZE
5378 # endif /* PAGESIZE */
5379 # endif /* no NBPC */
5380 # endif /* no NBPG */
5381 # endif /* no EXEC_PAGESIZE */
5382 # else /* no HAVE_SYS_PARAM_H */
5383 # define getpagesize() 8192 /* punt totally */
5384 # endif /* no HAVE_SYS_PARAM_H */
5385 # endif /* no _SC_PAGESIZE */
5387 #endif /* no HAVE_GETPAGESIZE */
5390 main ()
5392 char *data, *data2, *data3;
5393 int i, pagesize;
5394 int fd;
5396 pagesize = getpagesize ();
5398 /* First, make a file with some known garbage in it. */
5399 data = (char *) malloc (pagesize);
5400 if (!data)
5401 exit (1);
5402 for (i = 0; i < pagesize; ++i)
5403 *(data + i) = rand ();
5404 umask (0);
5405 fd = creat ("conftest.mmap", 0600);
5406 if (fd < 0)
5407 exit (1);
5408 if (write (fd, data, pagesize) != pagesize)
5409 exit (1);
5410 close (fd);
5412 /* Next, try to mmap the file at a fixed address which already has
5413 something else allocated at it. If we can, also make sure that
5414 we see the same garbage. */
5415 fd = open ("conftest.mmap", O_RDWR);
5416 if (fd < 0)
5417 exit (1);
5418 data2 = (char *) malloc (2 * pagesize);
5419 if (!data2)
5420 exit (1);
5421 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5422 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5423 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5424 exit (1);
5425 for (i = 0; i < pagesize; ++i)
5426 if (*(data + i) != *(data2 + i))
5427 exit (1);
5429 /* Finally, make sure that changes to the mapped area do not
5430 percolate back to the file as seen by read(). (This is a bug on
5431 some variants of i386 svr4.0.) */
5432 for (i = 0; i < pagesize; ++i)
5433 *(data2 + i) = *(data2 + i) + 1;
5434 data3 = (char *) malloc (pagesize);
5435 if (!data3)
5436 exit (1);
5437 if (read (fd, data3, pagesize) != pagesize)
5438 exit (1);
5439 for (i = 0; i < pagesize; ++i)
5440 if (*(data + i) != *(data3 + i))
5441 exit (1);
5442 close (fd);
5443 exit (0);
5445 _ACEOF
5446 rm -f conftest$ac_exeext
5447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5448 (eval $ac_link) 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5457 ac_cv_func_mmap_fixed_mapped=yes
5458 else
5459 echo "$as_me: program exited with status $ac_status" >&5
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5463 ( exit $ac_status )
5464 ac_cv_func_mmap_fixed_mapped=no
5466 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5469 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5470 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5471 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5473 cat >>confdefs.h <<\_ACEOF
5474 #define HAVE_MMAP 1
5475 _ACEOF
5478 rm -f conftest.mmap
5480 echo "$as_me:$LINENO: checking for off_t" >&5
5481 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5482 if test "${ac_cv_type_off_t+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 else
5485 cat >conftest.$ac_ext <<_ACEOF
5486 /* confdefs.h. */
5487 _ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491 $ac_includes_default
5493 main ()
5495 if ((off_t *) 0)
5496 return 0;
5497 if (sizeof (off_t))
5498 return 0;
5500 return 0;
5502 _ACEOF
5503 rm -f conftest.$ac_objext
5504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505 (eval $ac_compile) 2>conftest.er1
5506 ac_status=$?
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try='test -z "$ac_c_werror_flag"
5513 || test ! -s conftest.err'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 (eval $ac_try) 2>&5
5516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; } &&
5519 { ac_try='test -s conftest.$ac_objext'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; }; then
5525 ac_cv_type_off_t=yes
5526 else
5527 echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5530 ac_cv_type_off_t=no
5532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5534 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5535 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5536 if test $ac_cv_type_off_t = yes; then
5538 else
5540 cat >>confdefs.h <<_ACEOF
5541 #define off_t long
5542 _ACEOF
5547 # check header files
5548 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5549 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5550 if test "${ac_cv_header_stdc+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 #include <stdlib.h>
5560 #include <stdarg.h>
5561 #include <string.h>
5562 #include <float.h>
5565 main ()
5569 return 0;
5571 _ACEOF
5572 rm -f conftest.$ac_objext
5573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5574 (eval $ac_compile) 2>conftest.er1
5575 ac_status=$?
5576 grep -v '^ *+' conftest.er1 >conftest.err
5577 rm -f conftest.er1
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } &&
5581 { ac_try='test -z "$ac_c_werror_flag"
5582 || test ! -s conftest.err'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584 (eval $ac_try) 2>&5
5585 ac_status=$?
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; } &&
5588 { ac_try='test -s conftest.$ac_objext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 (eval $ac_try) 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5594 ac_cv_header_stdc=yes
5595 else
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5599 ac_cv_header_stdc=no
5601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5603 if test $ac_cv_header_stdc = yes; then
5604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5605 cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h. */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5611 #include <string.h>
5613 _ACEOF
5614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5615 $EGREP "memchr" >/dev/null 2>&1; then
5617 else
5618 ac_cv_header_stdc=no
5620 rm -f conftest*
5624 if test $ac_cv_header_stdc = yes; then
5625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5626 cat >conftest.$ac_ext <<_ACEOF
5627 /* confdefs.h. */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 #include <stdlib.h>
5634 _ACEOF
5635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5636 $EGREP "free" >/dev/null 2>&1; then
5638 else
5639 ac_cv_header_stdc=no
5641 rm -f conftest*
5645 if test $ac_cv_header_stdc = yes; then
5646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5647 if test "$cross_compiling" = yes; then
5649 else
5650 cat >conftest.$ac_ext <<_ACEOF
5651 /* confdefs.h. */
5652 _ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5656 #include <ctype.h>
5657 #if ((' ' & 0x0FF) == 0x020)
5658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5660 #else
5661 # define ISLOWER(c) \
5662 (('a' <= (c) && (c) <= 'i') \
5663 || ('j' <= (c) && (c) <= 'r') \
5664 || ('s' <= (c) && (c) <= 'z'))
5665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5666 #endif
5668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5670 main ()
5672 int i;
5673 for (i = 0; i < 256; i++)
5674 if (XOR (islower (i), ISLOWER (i))
5675 || toupper (i) != TOUPPER (i))
5676 exit(2);
5677 exit (0);
5679 _ACEOF
5680 rm -f conftest$ac_exeext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5682 (eval $ac_link) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 (eval $ac_try) 2>&5
5688 ac_status=$?
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; }; then
5692 else
5693 echo "$as_me: program exited with status $ac_status" >&5
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 ( exit $ac_status )
5698 ac_cv_header_stdc=no
5700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5704 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5705 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5706 if test $ac_cv_header_stdc = yes; then
5708 cat >>confdefs.h <<\_ACEOF
5709 #define STDC_HEADERS 1
5710 _ACEOF
5720 for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h
5722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5724 echo "$as_me:$LINENO: checking for $ac_header" >&5
5725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5731 else
5732 # Is the header compilable?
5733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5735 cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h. */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5741 $ac_includes_default
5742 #include <$ac_header>
5743 _ACEOF
5744 rm -f conftest.$ac_objext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746 (eval $ac_compile) 2>conftest.er1
5747 ac_status=$?
5748 grep -v '^ *+' conftest.er1 >conftest.err
5749 rm -f conftest.er1
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } &&
5753 { ac_try='test -z "$ac_c_werror_flag"
5754 || test ! -s conftest.err'
5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 (eval $ac_try) 2>&5
5757 ac_status=$?
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; } &&
5760 { ac_try='test -s conftest.$ac_objext'
5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 (eval $ac_try) 2>&5
5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; }; then
5766 ac_header_compiler=yes
5767 else
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5771 ac_header_compiler=no
5773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5775 echo "${ECHO_T}$ac_header_compiler" >&6
5777 # Is the header present?
5778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h. */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 #include <$ac_header>
5787 _ACEOF
5788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5790 ac_status=$?
5791 grep -v '^ *+' conftest.er1 >conftest.err
5792 rm -f conftest.er1
5793 cat conftest.err >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } >/dev/null; then
5796 if test -s conftest.err; then
5797 ac_cpp_err=$ac_c_preproc_warn_flag
5798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5799 else
5800 ac_cpp_err=
5802 else
5803 ac_cpp_err=yes
5805 if test -z "$ac_cpp_err"; then
5806 ac_header_preproc=yes
5807 else
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 ac_header_preproc=no
5813 rm -f conftest.err conftest.$ac_ext
5814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5815 echo "${ECHO_T}$ac_header_preproc" >&6
5817 # So? What about this header?
5818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5819 yes:no: )
5820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5824 ac_header_preproc=yes
5826 no:yes:* )
5827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5840 cat <<\_ASBOX
5841 ## ------------------------------------------------------ ##
5842 ## Report this to the GNU Fortran Runtime Library lists. ##
5843 ## ------------------------------------------------------ ##
5844 _ASBOX
5846 sed "s/^/$as_me: WARNING: /" >&2
5848 esac
5849 echo "$as_me:$LINENO: checking for $ac_header" >&5
5850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854 eval "$as_ac_Header=\$ac_header_preproc"
5856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5861 cat >>confdefs.h <<_ACEOF
5862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5863 _ACEOF
5867 done
5874 for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
5876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5878 echo "$as_me:$LINENO: checking for $ac_header" >&5
5879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5885 else
5886 # Is the header compilable?
5887 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5889 cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h. */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 $ac_includes_default
5896 #include <$ac_header>
5897 _ACEOF
5898 rm -f conftest.$ac_objext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5900 (eval $ac_compile) 2>conftest.er1
5901 ac_status=$?
5902 grep -v '^ *+' conftest.er1 >conftest.err
5903 rm -f conftest.er1
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -z "$ac_c_werror_flag"
5908 || test ! -s conftest.err'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 (eval $ac_try) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; } &&
5914 { ac_try='test -s conftest.$ac_objext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 (eval $ac_try) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 ac_header_compiler=yes
5921 else
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5925 ac_header_compiler=no
5927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5929 echo "${ECHO_T}$ac_header_compiler" >&6
5931 # Is the header present?
5932 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #include <$ac_header>
5941 _ACEOF
5942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5944 ac_status=$?
5945 grep -v '^ *+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } >/dev/null; then
5950 if test -s conftest.err; then
5951 ac_cpp_err=$ac_c_preproc_warn_flag
5952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5953 else
5954 ac_cpp_err=
5956 else
5957 ac_cpp_err=yes
5959 if test -z "$ac_cpp_err"; then
5960 ac_header_preproc=yes
5961 else
5962 echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5965 ac_header_preproc=no
5967 rm -f conftest.err conftest.$ac_ext
5968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5969 echo "${ECHO_T}$ac_header_preproc" >&6
5971 # So? What about this header?
5972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5973 yes:no: )
5974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5978 ac_header_preproc=yes
5980 no:yes:* )
5981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5988 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5994 cat <<\_ASBOX
5995 ## ------------------------------------------------------ ##
5996 ## Report this to the GNU Fortran Runtime Library lists. ##
5997 ## ------------------------------------------------------ ##
5998 _ASBOX
6000 sed "s/^/$as_me: WARNING: /" >&2
6002 esac
6003 echo "$as_me:$LINENO: checking for $ac_header" >&5
6004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008 eval "$as_ac_Header=\$ac_header_preproc"
6010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6015 cat >>confdefs.h <<_ACEOF
6016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6017 _ACEOF
6021 done
6023 if test "${ac_cv_header_complex_h+set}" = set; then
6024 echo "$as_me:$LINENO: checking for complex.h" >&5
6025 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6026 if test "${ac_cv_header_complex_h+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6030 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6031 else
6032 # Is the header compilable?
6033 echo "$as_me:$LINENO: checking complex.h usability" >&5
6034 echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6035 cat >conftest.$ac_ext <<_ACEOF
6036 /* confdefs.h. */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 $ac_includes_default
6042 #include <complex.h>
6043 _ACEOF
6044 rm -f conftest.$ac_objext
6045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046 (eval $ac_compile) 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } &&
6053 { ac_try='test -z "$ac_c_werror_flag"
6054 || test ! -s conftest.err'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 (eval $ac_try) 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; } &&
6060 { ac_try='test -s conftest.$ac_objext'
6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 (eval $ac_try) 2>&5
6063 ac_status=$?
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; }; then
6066 ac_header_compiler=yes
6067 else
6068 echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6071 ac_header_compiler=no
6073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6075 echo "${ECHO_T}$ac_header_compiler" >&6
6077 # Is the header present?
6078 echo "$as_me:$LINENO: checking complex.h presence" >&5
6079 echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6080 cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 #include <complex.h>
6087 _ACEOF
6088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6090 ac_status=$?
6091 grep -v '^ *+' conftest.er1 >conftest.err
6092 rm -f conftest.er1
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } >/dev/null; then
6096 if test -s conftest.err; then
6097 ac_cpp_err=$ac_c_preproc_warn_flag
6098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6099 else
6100 ac_cpp_err=
6102 else
6103 ac_cpp_err=yes
6105 if test -z "$ac_cpp_err"; then
6106 ac_header_preproc=yes
6107 else
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6111 ac_header_preproc=no
6113 rm -f conftest.err conftest.$ac_ext
6114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6115 echo "${ECHO_T}$ac_header_preproc" >&6
6117 # So? What about this header?
6118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6119 yes:no: )
6120 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6121 echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6122 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6123 echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6124 ac_header_preproc=yes
6126 no:yes:* )
6127 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6128 echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6129 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
6130 echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
6131 { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6132 echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6133 { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5
6134 echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;}
6135 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6136 echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6137 { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6138 echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6140 cat <<\_ASBOX
6141 ## ------------------------------------------------------ ##
6142 ## Report this to the GNU Fortran Runtime Library lists. ##
6143 ## ------------------------------------------------------ ##
6144 _ASBOX
6146 sed "s/^/$as_me: WARNING: /" >&2
6148 esac
6149 echo "$as_me:$LINENO: checking for complex.h" >&5
6150 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6151 if test "${ac_cv_header_complex_h+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154 ac_cv_header_complex_h=$ac_header_preproc
6156 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6157 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6160 if test $ac_cv_header_complex_h = yes; then
6162 cat >>confdefs.h <<\_ACEOF
6163 #define HAVE_COMPLEX_H 1
6164 _ACEOF
6170 # Check for complex math functions
6171 echo "$as_me:$LINENO: checking for csin in -lm" >&5
6172 echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
6173 if test "${ac_cv_lib_m_csin+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176 ac_check_lib_save_LIBS=$LIBS
6177 LIBS="-lm $LIBS"
6178 cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h. */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6185 /* Override any gcc2 internal prototype to avoid an error. */
6186 #ifdef __cplusplus
6187 extern "C"
6188 #endif
6189 /* We use char because int might match the return type of a gcc2
6190 builtin and then its argument prototype would still apply. */
6191 char csin ();
6193 main ()
6195 csin ();
6197 return 0;
6199 _ACEOF
6200 rm -f conftest.$ac_objext conftest$ac_exeext
6201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6202 (eval $ac_link) 2>conftest.er1
6203 ac_status=$?
6204 grep -v '^ *+' conftest.er1 >conftest.err
6205 rm -f conftest.er1
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } &&
6209 { ac_try='test -z "$ac_c_werror_flag"
6210 || test ! -s conftest.err'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 (eval $ac_try) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; } &&
6216 { ac_try='test -s conftest$ac_exeext'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 (eval $ac_try) 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; }; then
6222 ac_cv_lib_m_csin=yes
6223 else
6224 echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 ac_cv_lib_m_csin=no
6229 rm -f conftest.err conftest.$ac_objext \
6230 conftest$ac_exeext conftest.$ac_ext
6231 LIBS=$ac_check_lib_save_LIBS
6233 echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
6234 echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
6235 if test $ac_cv_lib_m_csin = yes; then
6236 need_math="no"
6237 else
6238 need_math="yes"
6242 # Check for library functions.
6245 for ac_func in getrusage times
6247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6248 echo "$as_me:$LINENO: checking for $ac_func" >&5
6249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6250 if eval "test \"\${$as_ac_var+set}\" = set"; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253 cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h. */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6261 #define $ac_func innocuous_$ac_func
6263 /* System header to define __stub macros and hopefully few prototypes,
6264 which can conflict with char $ac_func (); below.
6265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6266 <limits.h> exists even on freestanding compilers. */
6268 #ifdef __STDC__
6269 # include <limits.h>
6270 #else
6271 # include <assert.h>
6272 #endif
6274 #undef $ac_func
6276 /* Override any gcc2 internal prototype to avoid an error. */
6277 #ifdef __cplusplus
6278 extern "C"
6280 #endif
6281 /* We use char because int might match the return type of a gcc2
6282 builtin and then its argument prototype would still apply. */
6283 char $ac_func ();
6284 /* The GNU C library defines this for functions which it implements
6285 to always fail with ENOSYS. Some functions are actually named
6286 something starting with __ and the normal name is an alias. */
6287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6288 choke me
6289 #else
6290 char (*f) () = $ac_func;
6291 #endif
6292 #ifdef __cplusplus
6294 #endif
6297 main ()
6299 return f != $ac_func;
6301 return 0;
6303 _ACEOF
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306 (eval $ac_link) 2>conftest.er1
6307 ac_status=$?
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } &&
6313 { ac_try='test -z "$ac_c_werror_flag"
6314 || test ! -s conftest.err'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 (eval $ac_try) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; } &&
6320 { ac_try='test -s conftest$ac_exeext'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 (eval $ac_try) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; }; then
6326 eval "$as_ac_var=yes"
6327 else
6328 echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6331 eval "$as_ac_var=no"
6333 rm -f conftest.err conftest.$ac_objext \
6334 conftest$ac_exeext conftest.$ac_ext
6336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6338 if test `eval echo '${'$as_ac_var'}'` = yes; then
6339 cat >>confdefs.h <<_ACEOF
6340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6341 _ACEOF
6344 done
6347 # Check for some C99 functions
6348 echo "$as_me:$LINENO: checking for round in -lm" >&5
6349 echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
6350 if test "${ac_cv_lib_m_round+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353 ac_check_lib_save_LIBS=$LIBS
6354 LIBS="-lm $LIBS"
6355 cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h. */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6362 /* Override any gcc2 internal prototype to avoid an error. */
6363 #ifdef __cplusplus
6364 extern "C"
6365 #endif
6366 /* We use char because int might match the return type of a gcc2
6367 builtin and then its argument prototype would still apply. */
6368 char round ();
6370 main ()
6372 round ();
6374 return 0;
6376 _ACEOF
6377 rm -f conftest.$ac_objext conftest$ac_exeext
6378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6379 (eval $ac_link) 2>conftest.er1
6380 ac_status=$?
6381 grep -v '^ *+' conftest.er1 >conftest.err
6382 rm -f conftest.er1
6383 cat conftest.err >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } &&
6386 { ac_try='test -z "$ac_c_werror_flag"
6387 || test ! -s conftest.err'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 (eval $ac_try) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; } &&
6393 { ac_try='test -s conftest$ac_exeext'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; }; then
6399 ac_cv_lib_m_round=yes
6400 else
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6404 ac_cv_lib_m_round=no
6406 rm -f conftest.err conftest.$ac_objext \
6407 conftest$ac_exeext conftest.$ac_ext
6408 LIBS=$ac_check_lib_save_LIBS
6410 echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
6411 echo "${ECHO_T}$ac_cv_lib_m_round" >&6
6412 if test $ac_cv_lib_m_round = yes; then
6414 cat >>confdefs.h <<\_ACEOF
6415 #define HAVE_ROUND 1
6416 _ACEOF
6420 echo "$as_me:$LINENO: checking for roundf in -lm" >&5
6421 echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
6422 if test "${ac_cv_lib_m_roundf+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425 ac_check_lib_save_LIBS=$LIBS
6426 LIBS="-lm $LIBS"
6427 cat >conftest.$ac_ext <<_ACEOF
6428 /* confdefs.h. */
6429 _ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h. */
6434 /* Override any gcc2 internal prototype to avoid an error. */
6435 #ifdef __cplusplus
6436 extern "C"
6437 #endif
6438 /* We use char because int might match the return type of a gcc2
6439 builtin and then its argument prototype would still apply. */
6440 char roundf ();
6442 main ()
6444 roundf ();
6446 return 0;
6448 _ACEOF
6449 rm -f conftest.$ac_objext conftest$ac_exeext
6450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451 (eval $ac_link) 2>conftest.er1
6452 ac_status=$?
6453 grep -v '^ *+' conftest.er1 >conftest.err
6454 rm -f conftest.er1
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try='test -z "$ac_c_werror_flag"
6459 || test ! -s conftest.err'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 (eval $ac_try) 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; } &&
6465 { ac_try='test -s conftest$ac_exeext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 (eval $ac_try) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6471 ac_cv_lib_m_roundf=yes
6472 else
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6476 ac_cv_lib_m_roundf=no
6478 rm -f conftest.err conftest.$ac_objext \
6479 conftest$ac_exeext conftest.$ac_ext
6480 LIBS=$ac_check_lib_save_LIBS
6482 echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
6483 echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
6484 if test $ac_cv_lib_m_roundf = yes; then
6486 cat >>confdefs.h <<\_ACEOF
6487 #define HAVE_ROUNDF 1
6488 _ACEOF
6492 # And other IEEE math functions
6493 echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
6494 echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
6495 if test "${ac_cv_lib_m_nextafter+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498 ac_check_lib_save_LIBS=$LIBS
6499 LIBS="-lm $LIBS"
6500 cat >conftest.$ac_ext <<_ACEOF
6501 /* confdefs.h. */
6502 _ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6507 /* Override any gcc2 internal prototype to avoid an error. */
6508 #ifdef __cplusplus
6509 extern "C"
6510 #endif
6511 /* We use char because int might match the return type of a gcc2
6512 builtin and then its argument prototype would still apply. */
6513 char nextafter ();
6515 main ()
6517 nextafter ();
6519 return 0;
6521 _ACEOF
6522 rm -f conftest.$ac_objext conftest$ac_exeext
6523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6524 (eval $ac_link) 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } &&
6531 { ac_try='test -z "$ac_c_werror_flag"
6532 || test ! -s conftest.err'
6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 (eval $ac_try) 2>&5
6535 ac_status=$?
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; } &&
6538 { ac_try='test -s conftest$ac_exeext'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 (eval $ac_try) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
6544 ac_cv_lib_m_nextafter=yes
6545 else
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6549 ac_cv_lib_m_nextafter=no
6551 rm -f conftest.err conftest.$ac_objext \
6552 conftest$ac_exeext conftest.$ac_ext
6553 LIBS=$ac_check_lib_save_LIBS
6555 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
6556 echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
6557 if test $ac_cv_lib_m_nextafter = yes; then
6559 cat >>confdefs.h <<\_ACEOF
6560 #define HAVE_NEXTAFTER 1
6561 _ACEOF
6565 echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
6566 echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
6567 if test "${ac_cv_lib_m_nextafterf+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570 ac_check_lib_save_LIBS=$LIBS
6571 LIBS="-lm $LIBS"
6572 cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h. */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6579 /* Override any gcc2 internal prototype to avoid an error. */
6580 #ifdef __cplusplus
6581 extern "C"
6582 #endif
6583 /* We use char because int might match the return type of a gcc2
6584 builtin and then its argument prototype would still apply. */
6585 char nextafterf ();
6587 main ()
6589 nextafterf ();
6591 return 0;
6593 _ACEOF
6594 rm -f conftest.$ac_objext conftest$ac_exeext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6596 (eval $ac_link) 2>conftest.er1
6597 ac_status=$?
6598 grep -v '^ *+' conftest.er1 >conftest.err
6599 rm -f conftest.er1
6600 cat conftest.err >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try='test -z "$ac_c_werror_flag"
6604 || test ! -s conftest.err'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 (eval $ac_try) 2>&5
6607 ac_status=$?
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; } &&
6610 { ac_try='test -s conftest$ac_exeext'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612 (eval $ac_try) 2>&5
6613 ac_status=$?
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_cv_lib_m_nextafterf=yes
6617 else
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6621 ac_cv_lib_m_nextafterf=no
6623 rm -f conftest.err conftest.$ac_objext \
6624 conftest$ac_exeext conftest.$ac_ext
6625 LIBS=$ac_check_lib_save_LIBS
6627 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
6628 echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
6629 if test $ac_cv_lib_m_nextafterf = yes; then
6631 cat >>confdefs.h <<\_ACEOF
6632 #define HAVE_NEXTAFTERF 1
6633 _ACEOF
6638 # Let the user override this
6639 # Check whether --enable-cmath or --disable-cmath was given.
6640 if test "${enable_cmath+set}" = set; then
6641 enableval="$enable_cmath"
6642 need_math=$enableval
6644 if test "$need_math" = "yes"; then
6645 { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
6646 echo "$as_me: Including complex math functions in libgfor" >&6;};
6647 extra_math_obj='$(gfor_cmath_obj)'
6650 MATH_OBJ="$extra_math_obj"
6653 # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
6654 # for struct timezone, as you might think. We also need to check how
6655 # to call gettimeofday if we have it.
6656 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6657 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6658 if test "${ac_cv_header_time+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661 cat >conftest.$ac_ext <<_ACEOF
6662 /* confdefs.h. */
6663 _ACEOF
6664 cat confdefs.h >>conftest.$ac_ext
6665 cat >>conftest.$ac_ext <<_ACEOF
6666 /* end confdefs.h. */
6667 #include <sys/types.h>
6668 #include <sys/time.h>
6669 #include <time.h>
6672 main ()
6674 if ((struct tm *) 0)
6675 return 0;
6677 return 0;
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"
6690 || test ! -s conftest.err'
6691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 (eval $ac_try) 2>&5
6693 ac_status=$?
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; } &&
6696 { ac_try='test -s conftest.$ac_objext'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 (eval $ac_try) 2>&5
6699 ac_status=$?
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; }; then
6702 ac_cv_header_time=yes
6703 else
6704 echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.$ac_ext >&5
6707 ac_cv_header_time=no
6709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6711 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6712 echo "${ECHO_T}$ac_cv_header_time" >&6
6713 if test $ac_cv_header_time = yes; then
6715 cat >>confdefs.h <<\_ACEOF
6716 #define TIME_WITH_SYS_TIME 1
6717 _ACEOF
6723 for ac_func in gettimeofday
6725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6726 echo "$as_me:$LINENO: checking for $ac_func" >&5
6727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6728 if eval "test \"\${$as_ac_var+set}\" = set"; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 else
6731 cat >conftest.$ac_ext <<_ACEOF
6732 /* confdefs.h. */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6739 #define $ac_func innocuous_$ac_func
6741 /* System header to define __stub macros and hopefully few prototypes,
6742 which can conflict with char $ac_func (); below.
6743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6744 <limits.h> exists even on freestanding compilers. */
6746 #ifdef __STDC__
6747 # include <limits.h>
6748 #else
6749 # include <assert.h>
6750 #endif
6752 #undef $ac_func
6754 /* Override any gcc2 internal prototype to avoid an error. */
6755 #ifdef __cplusplus
6756 extern "C"
6758 #endif
6759 /* We use char because int might match the return type of a gcc2
6760 builtin and then its argument prototype would still apply. */
6761 char $ac_func ();
6762 /* The GNU C library defines this for functions which it implements
6763 to always fail with ENOSYS. Some functions are actually named
6764 something starting with __ and the normal name is an alias. */
6765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6766 choke me
6767 #else
6768 char (*f) () = $ac_func;
6769 #endif
6770 #ifdef __cplusplus
6772 #endif
6775 main ()
6777 return f != $ac_func;
6779 return 0;
6781 _ACEOF
6782 rm -f conftest.$ac_objext conftest$ac_exeext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6784 (eval $ac_link) 2>conftest.er1
6785 ac_status=$?
6786 grep -v '^ *+' conftest.er1 >conftest.err
6787 rm -f conftest.er1
6788 cat conftest.err >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try='test -z "$ac_c_werror_flag"
6792 || test ! -s conftest.err'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 (eval $ac_try) 2>&5
6795 ac_status=$?
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; } &&
6798 { ac_try='test -s conftest$ac_exeext'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 (eval $ac_try) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; }; then
6804 eval "$as_ac_var=yes"
6805 else
6806 echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.$ac_ext >&5
6809 eval "$as_ac_var=no"
6811 rm -f conftest.err conftest.$ac_objext \
6812 conftest$ac_exeext conftest.$ac_ext
6814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6816 if test `eval echo '${'$as_ac_var'}'` = yes; then
6817 cat >>confdefs.h <<_ACEOF
6818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6819 _ACEOF
6822 done
6824 if test "$ac_cv_func_gettimeofday" = yes; then
6825 echo "$as_me:$LINENO: checking for struct timezone" >&5
6826 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
6827 if test "${gfor_cv_struct_timezone+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830 cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h. */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 #include <sys/time.h>
6838 main ()
6840 struct timezone tz;
6842 return 0;
6844 _ACEOF
6845 rm -f conftest.$ac_objext
6846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6847 (eval $ac_compile) 2>conftest.er1
6848 ac_status=$?
6849 grep -v '^ *+' conftest.er1 >conftest.err
6850 rm -f conftest.er1
6851 cat conftest.err >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } &&
6854 { ac_try='test -z "$ac_c_werror_flag"
6855 || test ! -s conftest.err'
6856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857 (eval $ac_try) 2>&5
6858 ac_status=$?
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; } &&
6861 { ac_try='test -s conftest.$ac_objext'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 (eval $ac_try) 2>&5
6864 ac_status=$?
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; }; then
6867 gfor_cv_struct_timezone=yes
6868 else
6869 echo "$as_me: failed program was:" >&5
6870 sed 's/^/| /' conftest.$ac_ext >&5
6872 gfor_cv_struct_timezone=no
6874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6876 echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
6877 echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
6878 if test $gfor_cv_struct_timezone = yes; then
6879 if test "$cross_compiling" = yes; then
6880 gfor_have_struct_timezone=yes
6881 else
6882 cat >conftest.$ac_ext <<_ACEOF
6883 /* confdefs.h. */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6889 #ifdef TIME_WITH_SYS_TIME
6890 #include <sys/time.h>
6891 #include <time.h>
6892 #else
6893 #ifdef HAVE_SYS_TIME_H
6894 #include <sys/time.h>
6895 #else
6896 #include <time.h>
6897 #endif
6898 #endif
6899 main ()
6901 struct timeval time;
6902 struct timezone dummy;
6903 if (gettimeofday (&time, &dummy))
6904 exit (1);
6905 else
6906 exit (0);
6908 _ACEOF
6909 rm -f conftest$ac_exeext
6910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6911 (eval $ac_link) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 (eval $ac_try) 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then
6920 gfor_have_struct_timezone=yes
6921 else
6922 echo "$as_me: program exited with status $ac_status" >&5
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6926 ( exit $ac_status )
6927 gfor_have_struct_timezone=no
6929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6931 if test $gfor_have_struct_timezone = yes; then
6933 cat >>confdefs.h <<\_ACEOF
6934 #define HAVE_TIMEZONE 1
6935 _ACEOF
6940 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
6941 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
6942 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945 cat >conftest.$ac_ext <<_ACEOF
6946 /* confdefs.h. */
6947 _ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6952 #ifdef TIME_WITH_SYS_TIME
6953 #include <sys/time.h>
6954 #include <time.h>
6955 #else
6956 #ifdef HAVE_SYS_TIME_H
6957 #include <sys/time.h>
6958 #else
6959 #include <time.h>
6960 #endif
6961 #endif
6964 main ()
6967 struct timeval time;
6968 #ifdef HAVE_TIMEZONE
6969 struct timezone dummy;
6970 #define DUMMY &dummy
6971 #else
6972 #define DUMMY NULL
6973 #endif
6974 gettimeofday (&time, DUMMY);
6976 return 0;
6978 _ACEOF
6979 rm -f conftest.$ac_objext conftest$ac_exeext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6981 (eval $ac_link) 2>conftest.er1
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } &&
6988 { ac_try='test -z "$ac_c_werror_flag"
6989 || test ! -s conftest.err'
6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 (eval $ac_try) 2>&5
6992 ac_status=$?
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; } &&
6995 { ac_try='test -s conftest$ac_exeext'
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 (eval $ac_try) 2>&5
6998 ac_status=$?
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; }; then
7001 emacs_cv_gettimeofday_two_arguments=yes
7002 else
7003 echo "$as_me: failed program was:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7006 emacs_cv_gettimeofday_two_arguments=no
7008 rm -f conftest.err conftest.$ac_objext \
7009 conftest$ac_exeext conftest.$ac_ext
7011 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
7012 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
7013 if test $emacs_cv_gettimeofday_two_arguments = no; then
7015 cat >>confdefs.h <<\_ACEOF
7016 #define GETTIMEOFDAY_ONE_ARGUMENT 1
7017 _ACEOF
7022 cat >confcache <<\_ACEOF
7023 # This file is a shell script that caches the results of configure
7024 # tests run on this system so they can be shared between configure
7025 # scripts and configure runs, see configure's option --config-cache.
7026 # It is not useful on other systems. If it contains results you don't
7027 # want to keep, you may remove or edit it.
7029 # config.status only pays attention to the cache file if you give it
7030 # the --recheck option to rerun configure.
7032 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7033 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7034 # following values.
7036 _ACEOF
7038 # The following way of writing the cache mishandles newlines in values,
7039 # but we know of no workaround that is simple, portable, and efficient.
7040 # So, don't put newlines in cache variables' values.
7041 # Ultrix sh set writes to stderr and can't be redirected directly,
7042 # and sets the high bit in the cache file unless we assign to the vars.
7044 (set) 2>&1 |
7045 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7046 *ac_space=\ *)
7047 # `set' does not quote correctly, so add quotes (double-quote
7048 # substitution turns \\\\ into \\, and sed turns \\ into \).
7049 sed -n \
7050 "s/'/'\\\\''/g;
7051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7054 # `set' quotes correctly as required by POSIX, so do not add quotes.
7055 sed -n \
7056 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7058 esac;
7060 sed '
7061 t clear
7062 : clear
7063 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7064 t end
7065 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7066 : end' >>confcache
7067 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7068 if test -w $cache_file; then
7069 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7070 cat confcache >$cache_file
7071 else
7072 echo "not updating unwritable cache $cache_file"
7075 rm -f confcache
7077 if test ${multilib} = yes; then
7078 multilib_arg="--enable-multilib"
7079 else
7080 multilib_arg=
7083 # Write our Makefile.
7084 ac_config_files="$ac_config_files Makefile"
7086 cat >confcache <<\_ACEOF
7087 # This file is a shell script that caches the results of configure
7088 # tests run on this system so they can be shared between configure
7089 # scripts and configure runs, see configure's option --config-cache.
7090 # It is not useful on other systems. If it contains results you don't
7091 # want to keep, you may remove or edit it.
7093 # config.status only pays attention to the cache file if you give it
7094 # the --recheck option to rerun configure.
7096 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7097 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7098 # following values.
7100 _ACEOF
7102 # The following way of writing the cache mishandles newlines in values,
7103 # but we know of no workaround that is simple, portable, and efficient.
7104 # So, don't put newlines in cache variables' values.
7105 # Ultrix sh set writes to stderr and can't be redirected directly,
7106 # and sets the high bit in the cache file unless we assign to the vars.
7108 (set) 2>&1 |
7109 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7110 *ac_space=\ *)
7111 # `set' does not quote correctly, so add quotes (double-quote
7112 # substitution turns \\\\ into \\, and sed turns \\ into \).
7113 sed -n \
7114 "s/'/'\\\\''/g;
7115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7118 # `set' quotes correctly as required by POSIX, so do not add quotes.
7119 sed -n \
7120 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7122 esac;
7124 sed '
7125 t clear
7126 : clear
7127 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7128 t end
7129 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7130 : end' >>confcache
7131 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7132 if test -w $cache_file; then
7133 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7134 cat confcache >$cache_file
7135 else
7136 echo "not updating unwritable cache $cache_file"
7139 rm -f confcache
7141 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7142 # Let make expand exec_prefix.
7143 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7145 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7146 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7147 # trailing colons and then remove the whole line if VPATH becomes empty
7148 # (actually we leave an empty line to preserve line numbers).
7149 if test "x$srcdir" = x.; then
7150 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7151 s/:*\$(srcdir):*/:/;
7152 s/:*\${srcdir}:*/:/;
7153 s/:*@srcdir@:*/:/;
7154 s/^\([^=]*=[ ]*\):*/\1/;
7155 s/:*$//;
7156 s/^[^=]*=[ ]*$//;
7160 DEFS=-DHAVE_CONFIG_H
7162 ac_libobjs=
7163 ac_ltlibobjs=
7164 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7165 # 1. Remove the extension, and $U if already installed.
7166 ac_i=`echo "$ac_i" |
7167 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7168 # 2. Add them.
7169 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7170 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7171 done
7172 LIBOBJS=$ac_libobjs
7174 LTLIBOBJS=$ac_ltlibobjs
7177 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7178 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7179 Usually this means the macro was only invoked conditionally." >&5
7180 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7181 Usually this means the macro was only invoked conditionally." >&2;}
7182 { (exit 1); exit 1; }; }
7185 : ${CONFIG_STATUS=./config.status}
7186 ac_clean_files_save=$ac_clean_files
7187 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7188 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7189 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7190 cat >$CONFIG_STATUS <<_ACEOF
7191 #! $SHELL
7192 # Generated by $as_me.
7193 # Run this file to recreate the current configuration.
7194 # Compiler output produced by configure, useful for debugging
7195 # configure, is in config.log if it exists.
7197 debug=false
7198 ac_cs_recheck=false
7199 ac_cs_silent=false
7200 SHELL=\${CONFIG_SHELL-$SHELL}
7201 _ACEOF
7203 cat >>$CONFIG_STATUS <<\_ACEOF
7204 ## --------------------- ##
7205 ## M4sh Initialization. ##
7206 ## --------------------- ##
7208 # Be Bourne compatible
7209 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7210 emulate sh
7211 NULLCMD=:
7212 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7213 # is contrary to our usage. Disable this feature.
7214 alias -g '${1+"$@"}'='"$@"'
7215 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7216 set -o posix
7218 DUALCASE=1; export DUALCASE # for MKS sh
7220 # Support unset when possible.
7221 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7222 as_unset=unset
7223 else
7224 as_unset=false
7228 # Work around bugs in pre-3.0 UWIN ksh.
7229 $as_unset ENV MAIL MAILPATH
7230 PS1='$ '
7231 PS2='> '
7232 PS4='+ '
7234 # NLS nuisances.
7235 for as_var in \
7236 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7237 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7238 LC_TELEPHONE LC_TIME
7240 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7241 eval $as_var=C; export $as_var
7242 else
7243 $as_unset $as_var
7245 done
7247 # Required to use basename.
7248 if expr a : '\(a\)' >/dev/null 2>&1; then
7249 as_expr=expr
7250 else
7251 as_expr=false
7254 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7255 as_basename=basename
7256 else
7257 as_basename=false
7261 # Name of the executable.
7262 as_me=`$as_basename "$0" ||
7263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7264 X"$0" : 'X\(//\)$' \| \
7265 X"$0" : 'X\(/\)$' \| \
7266 . : '\(.\)' 2>/dev/null ||
7267 echo X/"$0" |
7268 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7269 /^X\/\(\/\/\)$/{ s//\1/; q; }
7270 /^X\/\(\/\).*/{ s//\1/; q; }
7271 s/.*/./; q'`
7274 # PATH needs CR, and LINENO needs CR and PATH.
7275 # Avoid depending upon Character Ranges.
7276 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7277 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7278 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7279 as_cr_digits='0123456789'
7280 as_cr_alnum=$as_cr_Letters$as_cr_digits
7282 # The user is always right.
7283 if test "${PATH_SEPARATOR+set}" != set; then
7284 echo "#! /bin/sh" >conf$$.sh
7285 echo "exit 0" >>conf$$.sh
7286 chmod +x conf$$.sh
7287 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7288 PATH_SEPARATOR=';'
7289 else
7290 PATH_SEPARATOR=:
7292 rm -f conf$$.sh
7296 as_lineno_1=$LINENO
7297 as_lineno_2=$LINENO
7298 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7299 test "x$as_lineno_1" != "x$as_lineno_2" &&
7300 test "x$as_lineno_3" = "x$as_lineno_2" || {
7301 # Find who we are. Look in the path if we contain no path at all
7302 # relative or not.
7303 case $0 in
7304 *[\\/]* ) as_myself=$0 ;;
7305 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7308 IFS=$as_save_IFS
7309 test -z "$as_dir" && as_dir=.
7310 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7311 done
7314 esac
7315 # We did not find ourselves, most probably we were run as `sh COMMAND'
7316 # in which case we are not to be found in the path.
7317 if test "x$as_myself" = x; then
7318 as_myself=$0
7320 if test ! -f "$as_myself"; then
7321 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7322 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7323 { (exit 1); exit 1; }; }
7325 case $CONFIG_SHELL in
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7330 IFS=$as_save_IFS
7331 test -z "$as_dir" && as_dir=.
7332 for as_base in sh bash ksh sh5; do
7333 case $as_dir in
7335 if ("$as_dir/$as_base" -c '
7336 as_lineno_1=$LINENO
7337 as_lineno_2=$LINENO
7338 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7339 test "x$as_lineno_1" != "x$as_lineno_2" &&
7340 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7341 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7342 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7343 CONFIG_SHELL=$as_dir/$as_base
7344 export CONFIG_SHELL
7345 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7346 fi;;
7347 esac
7348 done
7349 done
7351 esac
7353 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7354 # uniformly replaced by the line number. The first 'sed' inserts a
7355 # line-number line before each line; the second 'sed' does the real
7356 # work. The second script uses 'N' to pair each line-number line
7357 # with the numbered line, and appends trailing '-' during
7358 # substitution so that $LINENO is not a special case at line end.
7359 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7360 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7361 sed '=' <$as_myself |
7362 sed '
7364 s,$,-,
7365 : loop
7366 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7367 t loop
7368 s,-$,,
7369 s,^['$as_cr_digits']*\n,,
7370 ' >$as_me.lineno &&
7371 chmod +x $as_me.lineno ||
7372 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7373 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7374 { (exit 1); exit 1; }; }
7376 # Don't try to exec as it changes $[0], causing all sort of problems
7377 # (the dirname of $[0] is not the place where we might find the
7378 # original and so on. Autoconf is especially sensible to this).
7379 . ./$as_me.lineno
7380 # Exit status is that of the last command.
7381 exit
7385 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7386 *c*,-n*) ECHO_N= ECHO_C='
7387 ' ECHO_T=' ' ;;
7388 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7389 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7390 esac
7392 if expr a : '\(a\)' >/dev/null 2>&1; then
7393 as_expr=expr
7394 else
7395 as_expr=false
7398 rm -f conf$$ conf$$.exe conf$$.file
7399 echo >conf$$.file
7400 if ln -s conf$$.file conf$$ 2>/dev/null; then
7401 # We could just check for DJGPP; but this test a) works b) is more generic
7402 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7403 if test -f conf$$.exe; then
7404 # Don't use ln at all; we don't have any links
7405 as_ln_s='cp -p'
7406 else
7407 as_ln_s='ln -s'
7409 elif ln conf$$.file conf$$ 2>/dev/null; then
7410 as_ln_s=ln
7411 else
7412 as_ln_s='cp -p'
7414 rm -f conf$$ conf$$.exe conf$$.file
7416 if mkdir -p . 2>/dev/null; then
7417 as_mkdir_p=:
7418 else
7419 test -d ./-p && rmdir ./-p
7420 as_mkdir_p=false
7423 as_executable_p="test -f"
7425 # Sed expression to map a string onto a valid CPP name.
7426 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7428 # Sed expression to map a string onto a valid variable name.
7429 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7432 # IFS
7433 # We need space, tab and new line, in precisely that order.
7434 as_nl='
7436 IFS=" $as_nl"
7438 # CDPATH.
7439 $as_unset CDPATH
7441 exec 6>&1
7443 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7444 # report actual input values of CONFIG_FILES etc. instead of their
7445 # values after options handling. Logging --version etc. is OK.
7446 exec 5>>config.log
7448 echo
7449 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7450 ## Running $as_me. ##
7451 _ASBOX
7452 } >&5
7453 cat >&5 <<_CSEOF
7455 This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
7456 generated by GNU Autoconf 2.59. Invocation command line was
7458 CONFIG_FILES = $CONFIG_FILES
7459 CONFIG_HEADERS = $CONFIG_HEADERS
7460 CONFIG_LINKS = $CONFIG_LINKS
7461 CONFIG_COMMANDS = $CONFIG_COMMANDS
7462 $ $0 $@
7464 _CSEOF
7465 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7466 echo >&5
7467 _ACEOF
7469 # Files that config.status was made for.
7470 if test -n "$ac_config_files"; then
7471 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7474 if test -n "$ac_config_headers"; then
7475 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7478 if test -n "$ac_config_links"; then
7479 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7482 if test -n "$ac_config_commands"; then
7483 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7486 cat >>$CONFIG_STATUS <<\_ACEOF
7488 ac_cs_usage="\
7489 \`$as_me' instantiates files from templates according to the
7490 current configuration.
7492 Usage: $0 [OPTIONS] [FILE]...
7494 -h, --help print this help, then exit
7495 -V, --version print version number, then exit
7496 -q, --quiet do not print progress messages
7497 -d, --debug don't remove temporary files
7498 --recheck update $as_me by reconfiguring in the same conditions
7499 --file=FILE[:TEMPLATE]
7500 instantiate the configuration file FILE
7501 --header=FILE[:TEMPLATE]
7502 instantiate the configuration header FILE
7504 Configuration files:
7505 $config_files
7507 Configuration headers:
7508 $config_headers
7510 Configuration commands:
7511 $config_commands
7513 Report bugs to <bug-autoconf@gnu.org>."
7514 _ACEOF
7516 cat >>$CONFIG_STATUS <<_ACEOF
7517 ac_cs_version="\\
7518 GNU Fortran Runtime Library config.status 0.2
7519 configured by $0, generated by GNU Autoconf 2.59,
7520 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7522 Copyright (C) 2003 Free Software Foundation, Inc.
7523 This config.status script is free software; the Free Software Foundation
7524 gives unlimited permission to copy, distribute and modify it."
7525 srcdir=$srcdir
7526 INSTALL="$INSTALL"
7527 _ACEOF
7529 cat >>$CONFIG_STATUS <<\_ACEOF
7530 # If no file are specified by the user, then we need to provide default
7531 # value. By we need to know if files were specified by the user.
7532 ac_need_defaults=:
7533 while test $# != 0
7535 case $1 in
7536 --*=*)
7537 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7538 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7539 ac_shift=:
7542 ac_option=$1
7543 ac_optarg=$2
7544 ac_shift=shift
7546 *) # This is not an option, so the user has probably given explicit
7547 # arguments.
7548 ac_option=$1
7549 ac_need_defaults=false;;
7550 esac
7552 case $ac_option in
7553 # Handling of the options.
7554 _ACEOF
7555 cat >>$CONFIG_STATUS <<\_ACEOF
7556 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7557 ac_cs_recheck=: ;;
7558 --version | --vers* | -V )
7559 echo "$ac_cs_version"; exit 0 ;;
7560 --he | --h)
7561 # Conflict between --help and --header
7562 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7563 Try \`$0 --help' for more information." >&5
7564 echo "$as_me: error: ambiguous option: $1
7565 Try \`$0 --help' for more information." >&2;}
7566 { (exit 1); exit 1; }; };;
7567 --help | --hel | -h )
7568 echo "$ac_cs_usage"; exit 0 ;;
7569 --debug | --d* | -d )
7570 debug=: ;;
7571 --file | --fil | --fi | --f )
7572 $ac_shift
7573 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7574 ac_need_defaults=false;;
7575 --header | --heade | --head | --hea )
7576 $ac_shift
7577 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7578 ac_need_defaults=false;;
7579 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7580 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7581 ac_cs_silent=: ;;
7583 # This is an error.
7584 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7585 Try \`$0 --help' for more information." >&5
7586 echo "$as_me: error: unrecognized option: $1
7587 Try \`$0 --help' for more information." >&2;}
7588 { (exit 1); exit 1; }; } ;;
7590 *) ac_config_targets="$ac_config_targets $1" ;;
7592 esac
7593 shift
7594 done
7596 ac_configure_extra_args=
7598 if $ac_cs_silent; then
7599 exec 6>/dev/null
7600 ac_configure_extra_args="$ac_configure_extra_args --silent"
7603 _ACEOF
7604 cat >>$CONFIG_STATUS <<_ACEOF
7605 if \$ac_cs_recheck; then
7606 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7607 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7610 _ACEOF
7612 cat >>$CONFIG_STATUS <<_ACEOF
7614 # INIT-COMMANDS section.
7618 srcdir="$srcdir"
7619 host="$host"
7620 target="$target"
7621 with_multisubdir="$with_multisubdir"
7622 with_multisrctop="$with_multisrctop"
7623 with_target_subdir="$with_target_subdir"
7624 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7625 multi_basedir="$multi_basedir"
7626 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7627 CC="$CC"
7629 _ACEOF
7633 cat >>$CONFIG_STATUS <<\_ACEOF
7634 for ac_config_target in $ac_config_targets
7636 case "$ac_config_target" in
7637 # Handling of arguments.
7638 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7639 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7640 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7641 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7642 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7643 { (exit 1); exit 1; }; };;
7644 esac
7645 done
7647 # If the user did not use the arguments to specify the items to instantiate,
7648 # then the envvar interface is used. Set only those that are not.
7649 # We use the long form for the default assignment because of an extremely
7650 # bizarre bug on SunOS 4.1.3.
7651 if $ac_need_defaults; then
7652 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7653 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7657 # Have a temporary directory for convenience. Make it in the build tree
7658 # simply because there is no reason to put it here, and in addition,
7659 # creating and moving files from /tmp can sometimes cause problems.
7660 # Create a temporary directory, and hook for its removal unless debugging.
7661 $debug ||
7663 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7664 trap '{ (exit 1); exit 1; }' 1 2 13 15
7667 # Create a (secure) tmp directory for tmp files.
7670 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7671 test -n "$tmp" && test -d "$tmp"
7672 } ||
7674 tmp=./confstat$$-$RANDOM
7675 (umask 077 && mkdir $tmp)
7676 } ||
7678 echo "$me: cannot create a temporary directory in ." >&2
7679 { (exit 1); exit 1; }
7682 _ACEOF
7684 cat >>$CONFIG_STATUS <<_ACEOF
7687 # CONFIG_FILES section.
7690 # No need to generate the scripts if there are no CONFIG_FILES.
7691 # This happens for instance when ./config.status config.h
7692 if test -n "\$CONFIG_FILES"; then
7693 # Protect against being on the right side of a sed subst in config.status.
7694 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7695 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7696 s,@SHELL@,$SHELL,;t t
7697 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7698 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7699 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7700 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7701 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7702 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7703 s,@exec_prefix@,$exec_prefix,;t t
7704 s,@prefix@,$prefix,;t t
7705 s,@program_transform_name@,$program_transform_name,;t t
7706 s,@bindir@,$bindir,;t t
7707 s,@sbindir@,$sbindir,;t t
7708 s,@libexecdir@,$libexecdir,;t t
7709 s,@datadir@,$datadir,;t t
7710 s,@sysconfdir@,$sysconfdir,;t t
7711 s,@sharedstatedir@,$sharedstatedir,;t t
7712 s,@localstatedir@,$localstatedir,;t t
7713 s,@libdir@,$libdir,;t t
7714 s,@includedir@,$includedir,;t t
7715 s,@oldincludedir@,$oldincludedir,;t t
7716 s,@infodir@,$infodir,;t t
7717 s,@mandir@,$mandir,;t t
7718 s,@build_alias@,$build_alias,;t t
7719 s,@host_alias@,$host_alias,;t t
7720 s,@target_alias@,$target_alias,;t t
7721 s,@DEFS@,$DEFS,;t t
7722 s,@ECHO_C@,$ECHO_C,;t t
7723 s,@ECHO_N@,$ECHO_N,;t t
7724 s,@ECHO_T@,$ECHO_T,;t t
7725 s,@LIBS@,$LIBS,;t t
7726 s,@libtool_VERSION@,$libtool_VERSION,;t t
7727 s,@build@,$build,;t t
7728 s,@build_cpu@,$build_cpu,;t t
7729 s,@build_vendor@,$build_vendor,;t t
7730 s,@build_os@,$build_os,;t t
7731 s,@host@,$host,;t t
7732 s,@host_cpu@,$host_cpu,;t t
7733 s,@host_vendor@,$host_vendor,;t t
7734 s,@host_os@,$host_os,;t t
7735 s,@target@,$target,;t t
7736 s,@target_cpu@,$target_cpu,;t t
7737 s,@target_vendor@,$target_vendor,;t t
7738 s,@target_os@,$target_os,;t t
7739 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7740 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7741 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7742 s,@CYGPATH_W@,$CYGPATH_W,;t t
7743 s,@PACKAGE@,$PACKAGE,;t t
7744 s,@VERSION@,$VERSION,;t t
7745 s,@ACLOCAL@,$ACLOCAL,;t t
7746 s,@AUTOCONF@,$AUTOCONF,;t t
7747 s,@AUTOMAKE@,$AUTOMAKE,;t t
7748 s,@AUTOHEADER@,$AUTOHEADER,;t t
7749 s,@MAKEINFO@,$MAKEINFO,;t t
7750 s,@AMTAR@,$AMTAR,;t t
7751 s,@install_sh@,$install_sh,;t t
7752 s,@STRIP@,$STRIP,;t t
7753 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7754 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7755 s,@mkdir_p@,$mkdir_p,;t t
7756 s,@AWK@,$AWK,;t t
7757 s,@SET_MAKE@,$SET_MAKE,;t t
7758 s,@am__leading_dot@,$am__leading_dot,;t t
7759 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7760 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7761 s,@MAINT@,$MAINT,;t t
7762 s,@multi_basedir@,$multi_basedir,;t t
7763 s,@gcc_version@,$gcc_version,;t t
7764 s,@toolexecdir@,$toolexecdir,;t t
7765 s,@toolexeclibdir@,$toolexeclibdir,;t t
7766 s,@CC@,$CC,;t t
7767 s,@ac_ct_CC@,$ac_ct_CC,;t t
7768 s,@EXEEXT@,$EXEEXT,;t t
7769 s,@OBJEXT@,$OBJEXT,;t t
7770 s,@CFLAGS@,$CFLAGS,;t t
7771 s,@AS@,$AS,;t t
7772 s,@ac_ct_AS@,$ac_ct_AS,;t t
7773 s,@AR@,$AR,;t t
7774 s,@ac_ct_AR@,$ac_ct_AR,;t t
7775 s,@RANLIB@,$RANLIB,;t t
7776 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7777 s,@LN_S@,$LN_S,;t t
7778 s,@LIBTOOL@,$LIBTOOL,;t t
7779 s,@enable_shared@,$enable_shared,;t t
7780 s,@enable_static@,$enable_static,;t t
7781 s,@F77@,$F77,;t t
7782 s,@FFLAGS@,$FFLAGS,;t t
7783 s,@LDFLAGS@,$LDFLAGS,;t t
7784 s,@ac_ct_F77@,$ac_ct_F77,;t t
7785 s,@CPP@,$CPP,;t t
7786 s,@CPPFLAGS@,$CPPFLAGS,;t t
7787 s,@EGREP@,$EGREP,;t t
7788 s,@MATH_OBJ@,$MATH_OBJ,;t t
7789 s,@LIBOBJS@,$LIBOBJS,;t t
7790 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7791 CEOF
7793 _ACEOF
7795 cat >>$CONFIG_STATUS <<\_ACEOF
7796 # Split the substitutions into bite-sized pieces for seds with
7797 # small command number limits, like on Digital OSF/1 and HP-UX.
7798 ac_max_sed_lines=48
7799 ac_sed_frag=1 # Number of current file.
7800 ac_beg=1 # First line for current file.
7801 ac_end=$ac_max_sed_lines # Line after last line for current file.
7802 ac_more_lines=:
7803 ac_sed_cmds=
7804 while $ac_more_lines; do
7805 if test $ac_beg -gt 1; then
7806 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7807 else
7808 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7810 if test ! -s $tmp/subs.frag; then
7811 ac_more_lines=false
7812 else
7813 # The purpose of the label and of the branching condition is to
7814 # speed up the sed processing (if there are no `@' at all, there
7815 # is no need to browse any of the substitutions).
7816 # These are the two extra sed commands mentioned above.
7817 (echo ':t
7818 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7819 if test -z "$ac_sed_cmds"; then
7820 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7821 else
7822 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7824 ac_sed_frag=`expr $ac_sed_frag + 1`
7825 ac_beg=$ac_end
7826 ac_end=`expr $ac_end + $ac_max_sed_lines`
7828 done
7829 if test -z "$ac_sed_cmds"; then
7830 ac_sed_cmds=cat
7832 fi # test -n "$CONFIG_FILES"
7834 _ACEOF
7835 cat >>$CONFIG_STATUS <<\_ACEOF
7836 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7837 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7838 case $ac_file in
7839 - | *:- | *:-:* ) # input from stdin
7840 cat >$tmp/stdin
7841 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7842 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7843 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7844 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7845 * ) ac_file_in=$ac_file.in ;;
7846 esac
7848 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7849 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7850 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7851 X"$ac_file" : 'X\(//\)[^/]' \| \
7852 X"$ac_file" : 'X\(//\)$' \| \
7853 X"$ac_file" : 'X\(/\)' \| \
7854 . : '\(.\)' 2>/dev/null ||
7855 echo X"$ac_file" |
7856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7857 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7858 /^X\(\/\/\)$/{ s//\1/; q; }
7859 /^X\(\/\).*/{ s//\1/; q; }
7860 s/.*/./; q'`
7861 { if $as_mkdir_p; then
7862 mkdir -p "$ac_dir"
7863 else
7864 as_dir="$ac_dir"
7865 as_dirs=
7866 while test ! -d "$as_dir"; do
7867 as_dirs="$as_dir $as_dirs"
7868 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7870 X"$as_dir" : 'X\(//\)[^/]' \| \
7871 X"$as_dir" : 'X\(//\)$' \| \
7872 X"$as_dir" : 'X\(/\)' \| \
7873 . : '\(.\)' 2>/dev/null ||
7874 echo X"$as_dir" |
7875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7877 /^X\(\/\/\)$/{ s//\1/; q; }
7878 /^X\(\/\).*/{ s//\1/; q; }
7879 s/.*/./; q'`
7880 done
7881 test ! -n "$as_dirs" || mkdir $as_dirs
7882 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7883 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7884 { (exit 1); exit 1; }; }; }
7886 ac_builddir=.
7888 if test "$ac_dir" != .; then
7889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7890 # A "../" for each directory in $ac_dir_suffix.
7891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7892 else
7893 ac_dir_suffix= ac_top_builddir=
7896 case $srcdir in
7897 .) # No --srcdir option. We are building in place.
7898 ac_srcdir=.
7899 if test -z "$ac_top_builddir"; then
7900 ac_top_srcdir=.
7901 else
7902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7903 fi ;;
7904 [\\/]* | ?:[\\/]* ) # Absolute path.
7905 ac_srcdir=$srcdir$ac_dir_suffix;
7906 ac_top_srcdir=$srcdir ;;
7907 *) # Relative path.
7908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7910 esac
7912 # Do not use `cd foo && pwd` to compute absolute paths, because
7913 # the directories may not exist.
7914 case `pwd` in
7915 .) ac_abs_builddir="$ac_dir";;
7917 case "$ac_dir" in
7918 .) ac_abs_builddir=`pwd`;;
7919 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7920 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7921 esac;;
7922 esac
7923 case $ac_abs_builddir in
7924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7926 case ${ac_top_builddir}. in
7927 .) ac_abs_top_builddir=$ac_abs_builddir;;
7928 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7929 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7930 esac;;
7931 esac
7932 case $ac_abs_builddir in
7933 .) ac_abs_srcdir=$ac_srcdir;;
7935 case $ac_srcdir in
7936 .) ac_abs_srcdir=$ac_abs_builddir;;
7937 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7938 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7939 esac;;
7940 esac
7941 case $ac_abs_builddir in
7942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7944 case $ac_top_srcdir in
7945 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7946 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7947 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7948 esac;;
7949 esac
7952 case $INSTALL in
7953 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7954 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7955 esac
7957 if test x"$ac_file" != x-; then
7958 { echo "$as_me:$LINENO: creating $ac_file" >&5
7959 echo "$as_me: creating $ac_file" >&6;}
7960 rm -f "$ac_file"
7962 # Let's still pretend it is `configure' which instantiates (i.e., don't
7963 # use $as_me), people would be surprised to read:
7964 # /* config.h. Generated by config.status. */
7965 if test x"$ac_file" = x-; then
7966 configure_input=
7967 else
7968 configure_input="$ac_file. "
7970 configure_input=$configure_input"Generated from `echo $ac_file_in |
7971 sed 's,.*/,,'` by configure."
7973 # First look for the input files in the build tree, otherwise in the
7974 # src tree.
7975 ac_file_inputs=`IFS=:
7976 for f in $ac_file_in; do
7977 case $f in
7978 -) echo $tmp/stdin ;;
7979 [\\/$]*)
7980 # Absolute (can't be DOS-style, as IFS=:)
7981 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7982 echo "$as_me: error: cannot find input file: $f" >&2;}
7983 { (exit 1); exit 1; }; }
7984 echo "$f";;
7985 *) # Relative
7986 if test -f "$f"; then
7987 # Build tree
7988 echo "$f"
7989 elif test -f "$srcdir/$f"; then
7990 # Source tree
7991 echo "$srcdir/$f"
7992 else
7993 # /dev/null tree
7994 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7995 echo "$as_me: error: cannot find input file: $f" >&2;}
7996 { (exit 1); exit 1; }; }
7997 fi;;
7998 esac
7999 done` || { (exit 1); exit 1; }
8000 _ACEOF
8001 cat >>$CONFIG_STATUS <<_ACEOF
8002 sed "$ac_vpsub
8003 $extrasub
8004 _ACEOF
8005 cat >>$CONFIG_STATUS <<\_ACEOF
8007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8008 s,@configure_input@,$configure_input,;t t
8009 s,@srcdir@,$ac_srcdir,;t t
8010 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8011 s,@top_srcdir@,$ac_top_srcdir,;t t
8012 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8013 s,@builddir@,$ac_builddir,;t t
8014 s,@abs_builddir@,$ac_abs_builddir,;t t
8015 s,@top_builddir@,$ac_top_builddir,;t t
8016 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8017 s,@INSTALL@,$ac_INSTALL,;t t
8018 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8019 rm -f $tmp/stdin
8020 if test x"$ac_file" != x-; then
8021 mv $tmp/out $ac_file
8022 else
8023 cat $tmp/out
8024 rm -f $tmp/out
8027 done
8028 _ACEOF
8029 cat >>$CONFIG_STATUS <<\_ACEOF
8032 # CONFIG_HEADER section.
8035 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8036 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8038 # ac_d sets the value in "#define NAME VALUE" lines.
8039 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8040 ac_dB='[ ].*$,\1#\2'
8041 ac_dC=' '
8042 ac_dD=',;t'
8043 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8044 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8045 ac_uB='$,\1#\2define\3'
8046 ac_uC=' '
8047 ac_uD=',;t'
8049 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8050 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8051 case $ac_file in
8052 - | *:- | *:-:* ) # input from stdin
8053 cat >$tmp/stdin
8054 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8055 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8056 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8057 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8058 * ) ac_file_in=$ac_file.in ;;
8059 esac
8061 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8062 echo "$as_me: creating $ac_file" >&6;}
8064 # First look for the input files in the build tree, otherwise in the
8065 # src tree.
8066 ac_file_inputs=`IFS=:
8067 for f in $ac_file_in; do
8068 case $f in
8069 -) echo $tmp/stdin ;;
8070 [\\/$]*)
8071 # Absolute (can't be DOS-style, as IFS=:)
8072 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8073 echo "$as_me: error: cannot find input file: $f" >&2;}
8074 { (exit 1); exit 1; }; }
8075 # Do quote $f, to prevent DOS paths from being IFS'd.
8076 echo "$f";;
8077 *) # Relative
8078 if test -f "$f"; then
8079 # Build tree
8080 echo "$f"
8081 elif test -f "$srcdir/$f"; then
8082 # Source tree
8083 echo "$srcdir/$f"
8084 else
8085 # /dev/null tree
8086 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8087 echo "$as_me: error: cannot find input file: $f" >&2;}
8088 { (exit 1); exit 1; }; }
8089 fi;;
8090 esac
8091 done` || { (exit 1); exit 1; }
8092 # Remove the trailing spaces.
8093 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8095 _ACEOF
8097 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8098 # `conftest.undefs', that substitutes the proper values into
8099 # config.h.in to produce config.h. The first handles `#define'
8100 # templates, and the second `#undef' templates.
8101 # And first: Protect against being on the right side of a sed subst in
8102 # config.status. Protect against being in an unquoted here document
8103 # in config.status.
8104 rm -f conftest.defines conftest.undefs
8105 # Using a here document instead of a string reduces the quoting nightmare.
8106 # Putting comments in sed scripts is not portable.
8108 # `end' is used to avoid that the second main sed command (meant for
8109 # 0-ary CPP macros) applies to n-ary macro definitions.
8110 # See the Autoconf documentation for `clear'.
8111 cat >confdef2sed.sed <<\_ACEOF
8112 s/[\\&,]/\\&/g
8113 s,[\\$`],\\&,g
8114 t clear
8115 : clear
8116 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8117 t end
8118 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8119 : end
8120 _ACEOF
8121 # If some macros were called several times there might be several times
8122 # the same #defines, which is useless. Nevertheless, we may not want to
8123 # sort them, since we want the *last* AC-DEFINE to be honored.
8124 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8125 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8126 rm -f confdef2sed.sed
8128 # This sed command replaces #undef with comments. This is necessary, for
8129 # example, in the case of _POSIX_SOURCE, which is predefined and required
8130 # on some systems where configure will not decide to define it.
8131 cat >>conftest.undefs <<\_ACEOF
8132 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8133 _ACEOF
8135 # Break up conftest.defines because some shells have a limit on the size
8136 # of here documents, and old seds have small limits too (100 cmds).
8137 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8138 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8139 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8140 echo ' :' >>$CONFIG_STATUS
8141 rm -f conftest.tail
8142 while grep . conftest.defines >/dev/null
8144 # Write a limited-size here document to $tmp/defines.sed.
8145 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8146 # Speed up: don't consider the non `#define' lines.
8147 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8148 # Work around the forget-to-reset-the-flag bug.
8149 echo 't clr' >>$CONFIG_STATUS
8150 echo ': clr' >>$CONFIG_STATUS
8151 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8152 echo 'CEOF
8153 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8154 rm -f $tmp/in
8155 mv $tmp/out $tmp/in
8156 ' >>$CONFIG_STATUS
8157 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8158 rm -f conftest.defines
8159 mv conftest.tail conftest.defines
8160 done
8161 rm -f conftest.defines
8162 echo ' fi # grep' >>$CONFIG_STATUS
8163 echo >>$CONFIG_STATUS
8165 # Break up conftest.undefs because some shells have a limit on the size
8166 # of here documents, and old seds have small limits too (100 cmds).
8167 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8168 rm -f conftest.tail
8169 while grep . conftest.undefs >/dev/null
8171 # Write a limited-size here document to $tmp/undefs.sed.
8172 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8173 # Speed up: don't consider the non `#undef'
8174 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8175 # Work around the forget-to-reset-the-flag bug.
8176 echo 't clr' >>$CONFIG_STATUS
8177 echo ': clr' >>$CONFIG_STATUS
8178 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8179 echo 'CEOF
8180 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8181 rm -f $tmp/in
8182 mv $tmp/out $tmp/in
8183 ' >>$CONFIG_STATUS
8184 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8185 rm -f conftest.undefs
8186 mv conftest.tail conftest.undefs
8187 done
8188 rm -f conftest.undefs
8190 cat >>$CONFIG_STATUS <<\_ACEOF
8191 # Let's still pretend it is `configure' which instantiates (i.e., don't
8192 # use $as_me), people would be surprised to read:
8193 # /* config.h. Generated by config.status. */
8194 if test x"$ac_file" = x-; then
8195 echo "/* Generated by configure. */" >$tmp/config.h
8196 else
8197 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8199 cat $tmp/in >>$tmp/config.h
8200 rm -f $tmp/in
8201 if test x"$ac_file" != x-; then
8202 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8203 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8204 echo "$as_me: $ac_file is unchanged" >&6;}
8205 else
8206 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8208 X"$ac_file" : 'X\(//\)[^/]' \| \
8209 X"$ac_file" : 'X\(//\)$' \| \
8210 X"$ac_file" : 'X\(/\)' \| \
8211 . : '\(.\)' 2>/dev/null ||
8212 echo X"$ac_file" |
8213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8215 /^X\(\/\/\)$/{ s//\1/; q; }
8216 /^X\(\/\).*/{ s//\1/; q; }
8217 s/.*/./; q'`
8218 { if $as_mkdir_p; then
8219 mkdir -p "$ac_dir"
8220 else
8221 as_dir="$ac_dir"
8222 as_dirs=
8223 while test ! -d "$as_dir"; do
8224 as_dirs="$as_dir $as_dirs"
8225 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8227 X"$as_dir" : 'X\(//\)[^/]' \| \
8228 X"$as_dir" : 'X\(//\)$' \| \
8229 X"$as_dir" : 'X\(/\)' \| \
8230 . : '\(.\)' 2>/dev/null ||
8231 echo X"$as_dir" |
8232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8233 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8234 /^X\(\/\/\)$/{ s//\1/; q; }
8235 /^X\(\/\).*/{ s//\1/; q; }
8236 s/.*/./; q'`
8237 done
8238 test ! -n "$as_dirs" || mkdir $as_dirs
8239 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8240 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8241 { (exit 1); exit 1; }; }; }
8243 rm -f $ac_file
8244 mv $tmp/config.h $ac_file
8246 else
8247 cat $tmp/config.h
8248 rm -f $tmp/config.h
8250 # Compute $ac_file's index in $config_headers.
8251 _am_stamp_count=1
8252 for _am_header in $config_headers :; do
8253 case $_am_header in
8254 $ac_file | $ac_file:* )
8255 break ;;
8257 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8258 esac
8259 done
8260 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8261 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8262 X$ac_file : 'X\(//\)[^/]' \| \
8263 X$ac_file : 'X\(//\)$' \| \
8264 X$ac_file : 'X\(/\)' \| \
8265 . : '\(.\)' 2>/dev/null ||
8266 echo X$ac_file |
8267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8269 /^X\(\/\/\)$/{ s//\1/; q; }
8270 /^X\(\/\).*/{ s//\1/; q; }
8271 s/.*/./; q'`/stamp-h$_am_stamp_count
8272 done
8273 _ACEOF
8274 cat >>$CONFIG_STATUS <<\_ACEOF
8277 # CONFIG_COMMANDS section.
8279 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8280 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8281 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8282 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8283 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8284 X"$ac_dest" : 'X\(//\)[^/]' \| \
8285 X"$ac_dest" : 'X\(//\)$' \| \
8286 X"$ac_dest" : 'X\(/\)' \| \
8287 . : '\(.\)' 2>/dev/null ||
8288 echo X"$ac_dest" |
8289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8290 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8291 /^X\(\/\/\)$/{ s//\1/; q; }
8292 /^X\(\/\).*/{ s//\1/; q; }
8293 s/.*/./; q'`
8294 { if $as_mkdir_p; then
8295 mkdir -p "$ac_dir"
8296 else
8297 as_dir="$ac_dir"
8298 as_dirs=
8299 while test ! -d "$as_dir"; do
8300 as_dirs="$as_dir $as_dirs"
8301 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8303 X"$as_dir" : 'X\(//\)[^/]' \| \
8304 X"$as_dir" : 'X\(//\)$' \| \
8305 X"$as_dir" : 'X\(/\)' \| \
8306 . : '\(.\)' 2>/dev/null ||
8307 echo X"$as_dir" |
8308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8310 /^X\(\/\/\)$/{ s//\1/; q; }
8311 /^X\(\/\).*/{ s//\1/; q; }
8312 s/.*/./; q'`
8313 done
8314 test ! -n "$as_dirs" || mkdir $as_dirs
8315 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8316 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8317 { (exit 1); exit 1; }; }; }
8319 ac_builddir=.
8321 if test "$ac_dir" != .; then
8322 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8323 # A "../" for each directory in $ac_dir_suffix.
8324 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8325 else
8326 ac_dir_suffix= ac_top_builddir=
8329 case $srcdir in
8330 .) # No --srcdir option. We are building in place.
8331 ac_srcdir=.
8332 if test -z "$ac_top_builddir"; then
8333 ac_top_srcdir=.
8334 else
8335 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8336 fi ;;
8337 [\\/]* | ?:[\\/]* ) # Absolute path.
8338 ac_srcdir=$srcdir$ac_dir_suffix;
8339 ac_top_srcdir=$srcdir ;;
8340 *) # Relative path.
8341 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8342 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8343 esac
8345 # Do not use `cd foo && pwd` to compute absolute paths, because
8346 # the directories may not exist.
8347 case `pwd` in
8348 .) ac_abs_builddir="$ac_dir";;
8350 case "$ac_dir" in
8351 .) ac_abs_builddir=`pwd`;;
8352 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8353 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8354 esac;;
8355 esac
8356 case $ac_abs_builddir in
8357 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8359 case ${ac_top_builddir}. in
8360 .) ac_abs_top_builddir=$ac_abs_builddir;;
8361 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8362 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8363 esac;;
8364 esac
8365 case $ac_abs_builddir in
8366 .) ac_abs_srcdir=$ac_srcdir;;
8368 case $ac_srcdir in
8369 .) ac_abs_srcdir=$ac_abs_builddir;;
8370 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8371 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8372 esac;;
8373 esac
8374 case $ac_abs_builddir in
8375 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8377 case $ac_top_srcdir in
8378 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8379 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8380 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8381 esac;;
8382 esac
8385 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8386 echo "$as_me: executing $ac_dest commands" >&6;}
8387 case $ac_dest in
8388 default-1 )
8389 # Only add multilib support code if we just rebuilt the top-level
8390 # Makefile.
8391 case " $CONFIG_FILES " in
8392 *" Makefile "*)
8393 ac_file=Makefile . ${multi_basedir}/config-ml.in
8395 esac ;;
8396 esac
8397 done
8398 _ACEOF
8400 cat >>$CONFIG_STATUS <<\_ACEOF
8402 { (exit 0); exit 0; }
8403 _ACEOF
8404 chmod +x $CONFIG_STATUS
8405 ac_clean_files=$ac_clean_files_save
8408 # configure is writing to config.log, and then calls config.status.
8409 # config.status does its own redirection, appending to config.log.
8410 # Unfortunately, on DOS this fails, as config.log is still kept open
8411 # by configure, so config.status won't be able to write to it; its
8412 # output is simply discarded. So we exec the FD to /dev/null,
8413 # effectively closing config.log, so it can be properly (re)opened and
8414 # appended to by config.status. When coming back to configure, we
8415 # need to make the FD available again.
8416 if test "$no_create" != yes; then
8417 ac_cs_success=:
8418 ac_config_status_args=
8419 test "$silent" = yes &&
8420 ac_config_status_args="$ac_config_status_args --quiet"
8421 exec 5>/dev/null
8422 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8423 exec 5>>config.log
8424 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8425 # would make configure fail if this is the last instruction.
8426 $ac_cs_success || { (exit 1); exit 1; }