* tree-inline.c (estimate_num_insns_1): Correct increase of count.
[official-gcc.git] / libgfortran / configure
blob5e63b203b5f65cd6de7453c68842449e6d06ddde
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU Fortran Runtime Library 0.2.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='GNU Fortran Runtime Library'
269 PACKAGE_TARNAME='libgfortran'
270 PACKAGE_VERSION='0.2'
271 PACKAGE_STRING='GNU Fortran Runtime Library 0.2'
272 PACKAGE_BUGREPORT=''
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO 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 # -------
1333 # Options
1334 # -------
1336 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1337 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1338 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1339 if test "${enable_version_specific_runtime_libs+set}" = set; then
1340 enableval="$enable_version_specific_runtime_libs"
1341 case "$enableval" in
1342 yes) version_specific_libs=yes ;;
1343 no) version_specific_libs=no ;;
1344 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1345 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1346 { (exit 1); exit 1; }; };;
1347 esac
1348 else
1349 version_specific_libs=no
1351 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1352 echo "${ECHO_T}$version_specific_libs" >&6
1355 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1357 # You will slowly go insane if you do not grok the following fact: when
1358 # building this library, the top-level /target/ becomes the library's /host/.
1360 # configure then causes --target to default to --host, exactly like any
1361 # other package using autoconf. Therefore, 'target' and 'host' will
1362 # always be the same. This makes sense both for native and cross compilers
1363 # just think about it for a little while. :-)
1365 # Also, if this library is being configured as part of a cross compiler, the
1366 # top-level configure script will pass the "real" host as $with_cross_host.
1368 # Do not delete or change the following two lines. For why, see
1369 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1370 ac_aux_dir=
1371 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1372 if test -f $ac_dir/install-sh; then
1373 ac_aux_dir=$ac_dir
1374 ac_install_sh="$ac_aux_dir/install-sh -c"
1375 break
1376 elif 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/shtool; then
1381 ac_aux_dir=$ac_dir
1382 ac_install_sh="$ac_aux_dir/shtool install -c"
1383 break
1385 done
1386 if test -z "$ac_aux_dir"; then
1387 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1388 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1389 { (exit 1); exit 1; }; }
1391 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1392 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1393 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1395 # Make sure we can run config.sub.
1396 $ac_config_sub sun4 >/dev/null 2>&1 ||
1397 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1398 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1399 { (exit 1); exit 1; }; }
1401 echo "$as_me:$LINENO: checking build system type" >&5
1402 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1403 if test "${ac_cv_build+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406 ac_cv_build_alias=$build_alias
1407 test -z "$ac_cv_build_alias" &&
1408 ac_cv_build_alias=`$ac_config_guess`
1409 test -z "$ac_cv_build_alias" &&
1410 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1411 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1412 { (exit 1); exit 1; }; }
1413 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1420 echo "${ECHO_T}$ac_cv_build" >&6
1421 build=$ac_cv_build
1422 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1427 echo "$as_me:$LINENO: checking host system type" >&5
1428 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1429 if test "${ac_cv_host+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432 ac_cv_host_alias=$host_alias
1433 test -z "$ac_cv_host_alias" &&
1434 ac_cv_host_alias=$ac_cv_build_alias
1435 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1436 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1437 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1438 { (exit 1); exit 1; }; }
1441 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1442 echo "${ECHO_T}$ac_cv_host" >&6
1443 host=$ac_cv_host
1444 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1445 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1446 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1449 echo "$as_me:$LINENO: checking target system type" >&5
1450 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1451 if test "${ac_cv_target+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1453 else
1454 ac_cv_target_alias=$target_alias
1455 test "x$ac_cv_target_alias" = "x" &&
1456 ac_cv_target_alias=$ac_cv_host_alias
1457 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1458 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1459 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1460 { (exit 1); exit 1; }; }
1463 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1464 echo "${ECHO_T}$ac_cv_target" >&6
1465 target=$ac_cv_target
1466 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1467 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1468 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1471 # The aliases save the names the user supplied, while $host etc.
1472 # will get canonicalized.
1473 test -n "$target_alias" &&
1474 test "$program_prefix$program_suffix$program_transform_name" = \
1475 NONENONEs,x,x, &&
1476 program_prefix=${target_alias}-
1477 target_alias=${target_alias-$host_alias}
1479 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1480 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1481 # 1.8.2: minimum required version
1482 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1483 # of other PACKAGE_* variables will, however, and there's nothing
1484 # we can do about that; they come from AC_INIT).
1485 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1486 # file in the top srcdir, etc, etc), so stop complaining.
1487 # no-dependencies: turns off auto dependency generation (just for now)
1488 # -Wall: turns on all automake warnings...
1489 # -Wno-portability: ...except this one, since GNU make is required.
1490 am__api_version="1.8"
1491 # Find a good install program. We prefer a C program (faster),
1492 # so one script is as good as another. But avoid the broken or
1493 # incompatible versions:
1494 # SysV /etc/install, /usr/sbin/install
1495 # SunOS /usr/etc/install
1496 # IRIX /sbin/install
1497 # AIX /bin/install
1498 # AmigaOS /C/install, which installs bootblocks on floppy discs
1499 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1500 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1501 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1502 # OS/2's system install, which has a completely different semantic
1503 # ./install, which can be erroneously created by make from ./install.sh.
1504 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1505 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1506 if test -z "$INSTALL"; then
1507 if test "${ac_cv_path_install+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 for as_dir in $PATH
1513 IFS=$as_save_IFS
1514 test -z "$as_dir" && as_dir=.
1515 # Account for people who put trailing slashes in PATH elements.
1516 case $as_dir/ in
1517 ./ | .// | /cC/* | \
1518 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1519 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1520 /usr/ucb/* ) ;;
1522 # OSF1 and SCO ODT 3.0 have their own names for install.
1523 # Don't use installbsd from OSF since it installs stuff as root
1524 # by default.
1525 for ac_prog in ginstall scoinst install; do
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1528 if test $ac_prog = install &&
1529 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1530 # AIX install. It has an incompatible calling convention.
1532 elif test $ac_prog = install &&
1533 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1534 # program-specific install script used by HP pwplus--don't use.
1536 else
1537 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1538 break 3
1541 done
1542 done
1544 esac
1545 done
1549 if test "${ac_cv_path_install+set}" = set; then
1550 INSTALL=$ac_cv_path_install
1551 else
1552 # As a last resort, use the slow shell script. We don't cache a
1553 # path for INSTALL within a source directory, because that will
1554 # break other packages using the cache if that directory is
1555 # removed, or if the path is relative.
1556 INSTALL=$ac_install_sh
1559 echo "$as_me:$LINENO: result: $INSTALL" >&5
1560 echo "${ECHO_T}$INSTALL" >&6
1562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1563 # It thinks the first close brace ends the variable substitution.
1564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1570 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1571 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1572 # Just in case
1573 sleep 1
1574 echo timestamp > conftest.file
1575 # Do `set' in a subshell so we don't clobber the current shell's
1576 # arguments. Must try -L first in case configure is actually a
1577 # symlink; some systems play weird games with the mod time of symlinks
1578 # (eg FreeBSD returns the mod time of the symlink's containing
1579 # directory).
1580 if (
1581 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1582 if test "$*" = "X"; then
1583 # -L didn't work.
1584 set X `ls -t $srcdir/configure conftest.file`
1586 rm -f conftest.file
1587 if test "$*" != "X $srcdir/configure conftest.file" \
1588 && test "$*" != "X conftest.file $srcdir/configure"; then
1590 # If neither matched, then we have a broken ls. This can happen
1591 # if, for instance, CONFIG_SHELL is bash and it inherits a
1592 # broken ls alias from the environment. This has actually
1593 # happened. Such a system could not be considered "sane".
1594 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1595 alias in your environment" >&5
1596 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1597 alias in your environment" >&2;}
1598 { (exit 1); exit 1; }; }
1601 test "$2" = conftest.file
1603 then
1604 # Ok.
1606 else
1607 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1608 Check your system clock" >&5
1609 echo "$as_me: error: newly created file is older than distributed files!
1610 Check your system clock" >&2;}
1611 { (exit 1); exit 1; }; }
1613 echo "$as_me:$LINENO: result: yes" >&5
1614 echo "${ECHO_T}yes" >&6
1615 test "$program_prefix" != NONE &&
1616 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1617 # Use a double $ so make ignores it.
1618 test "$program_suffix" != NONE &&
1619 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1620 # Double any \ or $. echo might interpret backslashes.
1621 # By default was `s,x,x', remove it if useless.
1622 cat <<\_ACEOF >conftest.sed
1623 s/[\\$]/&&/g;s/;s,x,x,$//
1624 _ACEOF
1625 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1626 rm conftest.sed
1628 # expand $ac_aux_dir to an absolute path
1629 am_aux_dir=`cd $ac_aux_dir && pwd`
1631 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1632 # Use eval to expand $SHELL
1633 if eval "$MISSING --run true"; then
1634 am_missing_run="$MISSING --run "
1635 else
1636 am_missing_run=
1637 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1638 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1641 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1642 # Keeping the `.' argument allows $(mkdir_p) to be used without
1643 # argument. Indeed, we sometimes output rules like
1644 # $(mkdir_p) $(somedir)
1645 # where $(somedir) is conditionally defined.
1646 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1647 # expensive solution, as it forces Make to start a sub-shell.)
1648 mkdir_p='mkdir -p -- .'
1649 else
1650 # On NextStep and OpenStep, the `mkdir' command does not
1651 # recognize any option. It will interpret all options as
1652 # directories to create, and then abort because `.' already
1653 # exists.
1654 for d in ./-p ./--version;
1656 test -d $d && rmdir $d
1657 done
1658 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1659 if test -f "$ac_aux_dir/mkinstalldirs"; then
1660 mkdir_p='$(mkinstalldirs)'
1661 else
1662 mkdir_p='$(install_sh) -d'
1666 for ac_prog in gawk mawk nawk awk
1668 # Extract the first word of "$ac_prog", so it can be a program name with args.
1669 set dummy $ac_prog; ac_word=$2
1670 echo "$as_me:$LINENO: checking for $ac_word" >&5
1671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1672 if test "${ac_cv_prog_AWK+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675 if test -n "$AWK"; then
1676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1677 else
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 for as_dir in $PATH
1681 IFS=$as_save_IFS
1682 test -z "$as_dir" && as_dir=.
1683 for ac_exec_ext in '' $ac_executable_extensions; do
1684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1685 ac_cv_prog_AWK="$ac_prog"
1686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687 break 2
1689 done
1690 done
1694 AWK=$ac_cv_prog_AWK
1695 if test -n "$AWK"; then
1696 echo "$as_me:$LINENO: result: $AWK" >&5
1697 echo "${ECHO_T}$AWK" >&6
1698 else
1699 echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1703 test -n "$AWK" && break
1704 done
1706 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1707 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1708 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1709 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712 cat >conftest.make <<\_ACEOF
1713 all:
1714 @echo 'ac_maketemp="$(MAKE)"'
1715 _ACEOF
1716 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1717 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1718 if test -n "$ac_maketemp"; then
1719 eval ac_cv_prog_make_${ac_make}_set=yes
1720 else
1721 eval ac_cv_prog_make_${ac_make}_set=no
1723 rm -f conftest.make
1725 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1726 echo "$as_me:$LINENO: result: yes" >&5
1727 echo "${ECHO_T}yes" >&6
1728 SET_MAKE=
1729 else
1730 echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1732 SET_MAKE="MAKE=${MAKE-make}"
1735 rm -rf .tst 2>/dev/null
1736 mkdir .tst 2>/dev/null
1737 if test -d .tst; then
1738 am__leading_dot=.
1739 else
1740 am__leading_dot=_
1742 rmdir .tst 2>/dev/null
1744 # test to see if srcdir already configured
1745 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1746 test -f $srcdir/config.status; then
1747 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1748 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1749 { (exit 1); exit 1; }; }
1752 # test whether we have cygpath
1753 if test -z "$CYGPATH_W"; then
1754 if (cygpath --version) >/dev/null 2>/dev/null; then
1755 CYGPATH_W='cygpath -w'
1756 else
1757 CYGPATH_W=echo
1762 # Define the identity of the package.
1763 PACKAGE='libgfortran'
1764 VERSION='0.2'
1767 # Some tools Automake needs.
1769 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1772 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1775 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1778 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1781 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1784 AMTAR=${AMTAR-"${am_missing_run}tar"}
1786 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1788 # Installed binaries are usually stripped using `strip' when the user
1789 # run `make install-strip'. However `strip' might not be the right
1790 # tool to use in cross-compilation environments, therefore Automake
1791 # will honor the `STRIP' environment variable to overrule this program.
1792 if test "$cross_compiling" != no; then
1793 if test -n "$ac_tool_prefix"; then
1794 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1795 set dummy ${ac_tool_prefix}strip; ac_word=$2
1796 echo "$as_me:$LINENO: checking for $ac_word" >&5
1797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1798 if test "${ac_cv_prog_STRIP+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 else
1801 if test -n "$STRIP"; then
1802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1803 else
1804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 for as_dir in $PATH
1807 IFS=$as_save_IFS
1808 test -z "$as_dir" && as_dir=.
1809 for ac_exec_ext in '' $ac_executable_extensions; do
1810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813 break 2
1815 done
1816 done
1820 STRIP=$ac_cv_prog_STRIP
1821 if test -n "$STRIP"; then
1822 echo "$as_me:$LINENO: result: $STRIP" >&5
1823 echo "${ECHO_T}$STRIP" >&6
1824 else
1825 echo "$as_me:$LINENO: result: no" >&5
1826 echo "${ECHO_T}no" >&6
1830 if test -z "$ac_cv_prog_STRIP"; then
1831 ac_ct_STRIP=$STRIP
1832 # Extract the first word of "strip", so it can be a program name with args.
1833 set dummy strip; ac_word=$2
1834 echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 else
1839 if test -n "$ac_ct_STRIP"; then
1840 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1841 else
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 for as_dir in $PATH
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 ac_cv_prog_ac_ct_STRIP="strip"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 break 2
1853 done
1854 done
1856 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1859 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1860 if test -n "$ac_ct_STRIP"; then
1861 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1862 echo "${ECHO_T}$ac_ct_STRIP" >&6
1863 else
1864 echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1868 STRIP=$ac_ct_STRIP
1869 else
1870 STRIP="$ac_cv_prog_STRIP"
1874 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1876 # We need awk for the "check" target. The system "awk" is bad on
1877 # some platforms.
1882 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1883 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1884 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1885 if test "${enable_maintainer_mode+set}" = set; then
1886 enableval="$enable_maintainer_mode"
1887 USE_MAINTAINER_MODE=$enableval
1888 else
1889 USE_MAINTAINER_MODE=no
1891 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1892 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1895 if test $USE_MAINTAINER_MODE = yes; then
1896 MAINTAINER_MODE_TRUE=
1897 MAINTAINER_MODE_FALSE='#'
1898 else
1899 MAINTAINER_MODE_TRUE='#'
1900 MAINTAINER_MODE_FALSE=
1903 MAINT=$MAINTAINER_MODE_TRUE
1906 # Default to --enable-multilib
1907 # Check whether --enable-multilib or --disable-multilib was given.
1908 if test "${enable_multilib+set}" = set; then
1909 enableval="$enable_multilib"
1910 case "$enableval" in
1911 yes) multilib=yes ;;
1912 no) multilib=no ;;
1913 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1914 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1915 { (exit 1); exit 1; }; } ;;
1916 esac
1917 else
1918 multilib=yes
1921 # We may get other options which we leave undocumented:
1922 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1923 # See config-ml.in if you want the gory details.
1925 if test "$srcdir" = "."; then
1926 if test "$with_target_subdir" != "."; then
1927 multi_basedir="$srcdir/$with_multisrctop../.."
1928 else
1929 multi_basedir="$srcdir/$with_multisrctop.."
1931 else
1932 multi_basedir="$srcdir/.."
1936 ac_config_commands="$ac_config_commands default-1"
1939 # Handy for debugging:
1940 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1942 # Are we being configured with some form of cross compiler?
1943 # NB: We don't actually need to know this just now, but when, say, a test
1944 # suite is included, we'll have to know.
1945 if test "$build" != "$host"; then
1946 LIBGFOR_IS_NATIVE=false
1947 GCC_NO_EXECUTABLES
1948 else
1949 LIBGFOR_IS_NATIVE=true
1952 # Process the option "--enable-version-specific-runtime-libs"
1953 gcc_version_trigger=${srcdir}/../gcc/version.c
1954 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
1955 gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
1958 # Calculate toolexeclibdir
1959 # Also toolexecdir, though it's only used in toolexeclibdir
1960 case ${version_specific_libs} in
1961 yes)
1962 # Need the gcc compiler version to know where to install libraries
1963 # and header files if --enable-version-specific-runtime-libs option
1964 # is selected.
1965 toolexecdir='$(libdir)/gcc/$(target_alias)'
1966 toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1969 if test -n "$with_cross_host" &&
1970 test x"$with_cross_host" != x"no"; then
1971 # Install a library built with a cross compiler in tooldir, not libdir.
1972 toolexecdir='$(exec_prefix)/$(target_alias)'
1973 toolexeclibdir='$(toolexecdir)/lib'
1974 else
1975 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1976 toolexeclibdir='$(libdir)'
1978 multi_os_directory=`$CC -print-multi-os-directory`
1979 case $multi_os_directory in
1980 .) ;; # Avoid trailing /.
1981 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1982 esac
1984 esac
1988 # Check the compiler.
1989 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1990 # We must force CC to /not/ be precious variables; otherwise
1991 # the wrong, non-multilib-adjusted value will be used in multilibs.
1992 # As a side effect, we have to subst CFLAGS ourselves.
1996 ac_ext=c
1997 ac_cpp='$CPP $CPPFLAGS'
1998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001 if test -n "$ac_tool_prefix"; then
2002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009 if test -n "$CC"; then
2010 ac_cv_prog_CC="$CC" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2015 IFS=$as_save_IFS
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 break 2
2023 done
2024 done
2028 CC=$ac_cv_prog_CC
2029 if test -n "$CC"; then
2030 echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6
2032 else
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2038 if test -z "$ac_cv_prog_CC"; then
2039 ac_ct_CC=$CC
2040 # Extract the first word of "gcc", so it can be a program name with args.
2041 set dummy gcc; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047 if test -n "$ac_ct_CC"; then
2048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_ac_ct_CC="gcc"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059 break 2
2061 done
2062 done
2066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2067 if test -n "$ac_ct_CC"; then
2068 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2069 echo "${ECHO_T}$ac_ct_CC" >&6
2070 else
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2075 CC=$ac_ct_CC
2076 else
2077 CC="$ac_cv_prog_CC"
2080 if test -z "$CC"; then
2081 if test -n "$ac_tool_prefix"; then
2082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2083 set dummy ${ac_tool_prefix}cc; ac_word=$2
2084 echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2086 if test "${ac_cv_prog_CC+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 else
2089 if test -n "$CC"; then
2090 ac_cv_prog_CC="$CC" # Let the user override the test.
2091 else
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 for as_dir in $PATH
2095 IFS=$as_save_IFS
2096 test -z "$as_dir" && as_dir=.
2097 for ac_exec_ext in '' $ac_executable_extensions; do
2098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2099 ac_cv_prog_CC="${ac_tool_prefix}cc"
2100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 break 2
2103 done
2104 done
2108 CC=$ac_cv_prog_CC
2109 if test -n "$CC"; then
2110 echo "$as_me:$LINENO: result: $CC" >&5
2111 echo "${ECHO_T}$CC" >&6
2112 else
2113 echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2118 if test -z "$ac_cv_prog_CC"; then
2119 ac_ct_CC=$CC
2120 # Extract the first word of "cc", so it can be a program name with args.
2121 set dummy cc; ac_word=$2
2122 echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2124 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127 if test -n "$ac_ct_CC"; then
2128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2129 else
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2137 ac_cv_prog_ac_ct_CC="cc"
2138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 break 2
2141 done
2142 done
2146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2147 if test -n "$ac_ct_CC"; then
2148 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2149 echo "${ECHO_T}$ac_ct_CC" >&6
2150 else
2151 echo "$as_me:$LINENO: result: no" >&5
2152 echo "${ECHO_T}no" >&6
2155 CC=$ac_ct_CC
2156 else
2157 CC="$ac_cv_prog_CC"
2161 if test -z "$CC"; then
2162 # Extract the first word of "cc", so it can be a program name with args.
2163 set dummy cc; ac_word=$2
2164 echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2166 if test "${ac_cv_prog_CC+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 if test -n "$CC"; then
2170 ac_cv_prog_CC="$CC" # Let the user override the test.
2171 else
2172 ac_prog_rejected=no
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 for as_dir in $PATH
2176 IFS=$as_save_IFS
2177 test -z "$as_dir" && as_dir=.
2178 for ac_exec_ext in '' $ac_executable_extensions; do
2179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2180 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2181 ac_prog_rejected=yes
2182 continue
2184 ac_cv_prog_CC="cc"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186 break 2
2188 done
2189 done
2191 if test $ac_prog_rejected = yes; then
2192 # We found a bogon in the path, so make sure we never use it.
2193 set dummy $ac_cv_prog_CC
2194 shift
2195 if test $# != 0; then
2196 # We chose a different compiler from the bogus one.
2197 # However, it has the same basename, so the bogon will be chosen
2198 # first if we set CC to just the basename; use the full file name.
2199 shift
2200 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2205 CC=$ac_cv_prog_CC
2206 if test -n "$CC"; then
2207 echo "$as_me:$LINENO: result: $CC" >&5
2208 echo "${ECHO_T}$CC" >&6
2209 else
2210 echo "$as_me:$LINENO: result: no" >&5
2211 echo "${ECHO_T}no" >&6
2215 if test -z "$CC"; then
2216 if test -n "$ac_tool_prefix"; then
2217 for ac_prog in cl
2219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2221 echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223 if test "${ac_cv_prog_CC+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226 if test -n "$CC"; then
2227 ac_cv_prog_CC="$CC" # Let the user override the test.
2228 else
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2232 IFS=$as_save_IFS
2233 test -z "$as_dir" && as_dir=.
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 break 2
2240 done
2241 done
2245 CC=$ac_cv_prog_CC
2246 if test -n "$CC"; then
2247 echo "$as_me:$LINENO: result: $CC" >&5
2248 echo "${ECHO_T}$CC" >&6
2249 else
2250 echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6
2254 test -n "$CC" && break
2255 done
2257 if test -z "$CC"; then
2258 ac_ct_CC=$CC
2259 for ac_prog in cl
2261 # Extract the first word of "$ac_prog", so it can be a program name with args.
2262 set dummy $ac_prog; ac_word=$2
2263 echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2265 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268 if test -n "$ac_ct_CC"; then
2269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2270 else
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2278 ac_cv_prog_ac_ct_CC="$ac_prog"
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 break 2
2282 done
2283 done
2287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2288 if test -n "$ac_ct_CC"; then
2289 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2290 echo "${ECHO_T}$ac_ct_CC" >&6
2291 else
2292 echo "$as_me:$LINENO: result: no" >&5
2293 echo "${ECHO_T}no" >&6
2296 test -n "$ac_ct_CC" && break
2297 done
2299 CC=$ac_ct_CC
2305 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: no acceptable C compiler found in \$PATH
2308 See \`config.log' for more details." >&2;}
2309 { (exit 1); exit 1; }; }
2311 # Provide some information about the compiler.
2312 echo "$as_me:$LINENO:" \
2313 "checking for C compiler version" >&5
2314 ac_compiler=`set X $ac_compile; echo $2`
2315 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2316 (eval $ac_compiler --version </dev/null >&5) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }
2320 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2321 (eval $ac_compiler -v </dev/null >&5) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }
2325 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2326 (eval $ac_compiler -V </dev/null >&5) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }
2331 cat >conftest.$ac_ext <<_ACEOF
2332 /* confdefs.h. */
2333 _ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h. */
2339 main ()
2343 return 0;
2345 _ACEOF
2346 ac_clean_files_save=$ac_clean_files
2347 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2348 # Try to create an executable without -o first, disregard a.out.
2349 # It will help us diagnose broken compilers, and finding out an intuition
2350 # of exeext.
2351 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2352 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2353 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2354 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2355 (eval $ac_link_default) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; then
2359 # Find the output, starting from the most likely. This scheme is
2360 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2361 # resort.
2363 # Be careful to initialize this variable, since it used to be cached.
2364 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2365 ac_cv_exeext=
2366 # b.out is created by i960 compilers.
2367 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2369 test -f "$ac_file" || continue
2370 case $ac_file in
2371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2373 conftest.$ac_ext )
2374 # This is the source file.
2376 [ab].out )
2377 # We found the default executable, but exeext='' is most
2378 # certainly right.
2379 break;;
2380 *.* )
2381 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2382 # FIXME: I believe we export ac_cv_exeext for Libtool,
2383 # but it would be cool to find out if it's true. Does anybody
2384 # maintain Libtool? --akim.
2385 export ac_cv_exeext
2386 break;;
2388 break;;
2389 esac
2390 done
2391 else
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2395 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2396 See \`config.log' for more details." >&5
2397 echo "$as_me: error: C compiler cannot create executables
2398 See \`config.log' for more details." >&2;}
2399 { (exit 77); exit 77; }; }
2402 ac_exeext=$ac_cv_exeext
2403 echo "$as_me:$LINENO: result: $ac_file" >&5
2404 echo "${ECHO_T}$ac_file" >&6
2406 # Check the compiler produces executables we can run. If not, either
2407 # the compiler is broken, or we cross compile.
2408 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2409 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2410 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2411 # If not cross compiling, check that we can run a simple program.
2412 if test "$cross_compiling" != yes; then
2413 if { ac_try='./$ac_file'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 (eval $ac_try) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2419 cross_compiling=no
2420 else
2421 if test "$cross_compiling" = maybe; then
2422 cross_compiling=yes
2423 else
2424 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2425 If you meant to cross compile, use \`--host'.
2426 See \`config.log' for more details." >&5
2427 echo "$as_me: error: cannot run C compiled programs.
2428 If you meant to cross compile, use \`--host'.
2429 See \`config.log' for more details." >&2;}
2430 { (exit 1); exit 1; }; }
2434 echo "$as_me:$LINENO: result: yes" >&5
2435 echo "${ECHO_T}yes" >&6
2437 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2438 ac_clean_files=$ac_clean_files_save
2439 # Check the compiler produces executables we can run. If not, either
2440 # the compiler is broken, or we cross compile.
2441 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2442 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2443 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2444 echo "${ECHO_T}$cross_compiling" >&6
2446 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2447 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2449 (eval $ac_link) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; then
2453 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2454 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2455 # work properly (i.e., refer to `conftest.exe'), while it won't with
2456 # `rm'.
2457 for ac_file in conftest.exe conftest conftest.*; do
2458 test -f "$ac_file" || continue
2459 case $ac_file in
2460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2461 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2462 export ac_cv_exeext
2463 break;;
2464 * ) break;;
2465 esac
2466 done
2467 else
2468 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&5
2470 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2471 See \`config.log' for more details." >&2;}
2472 { (exit 1); exit 1; }; }
2475 rm -f conftest$ac_cv_exeext
2476 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2477 echo "${ECHO_T}$ac_cv_exeext" >&6
2479 rm -f conftest.$ac_ext
2480 EXEEXT=$ac_cv_exeext
2481 ac_exeext=$EXEEXT
2482 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2483 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2484 if test "${ac_cv_objext+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487 cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h. */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2495 main ()
2499 return 0;
2501 _ACEOF
2502 rm -f conftest.o conftest.obj
2503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504 (eval $ac_compile) 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; then
2508 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2509 case $ac_file in
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2512 break;;
2513 esac
2514 done
2515 else
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2519 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2520 See \`config.log' for more details." >&5
2521 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2522 See \`config.log' for more details." >&2;}
2523 { (exit 1); exit 1; }; }
2526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2528 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2529 echo "${ECHO_T}$ac_cv_objext" >&6
2530 OBJEXT=$ac_cv_objext
2531 ac_objext=$OBJEXT
2532 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2533 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2534 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537 cat >conftest.$ac_ext <<_ACEOF
2538 /* confdefs.h. */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2545 main ()
2547 #ifndef __GNUC__
2548 choke me
2549 #endif
2552 return 0;
2554 _ACEOF
2555 rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2558 ac_status=$?
2559 grep -v '^ *+' conftest.er1 >conftest.err
2560 rm -f conftest.er1
2561 cat conftest.err >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 (eval $ac_try) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; } &&
2570 { ac_try='test -s conftest.$ac_objext'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572 (eval $ac_try) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; }; then
2576 ac_compiler_gnu=yes
2577 else
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2581 ac_compiler_gnu=no
2583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2584 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2587 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2588 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2589 GCC=`test $ac_compiler_gnu = yes && echo yes`
2590 ac_test_CFLAGS=${CFLAGS+set}
2591 ac_save_CFLAGS=$CFLAGS
2592 CFLAGS="-g"
2593 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2594 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2595 if test "${ac_cv_prog_cc_g+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598 cat >conftest.$ac_ext <<_ACEOF
2599 /* confdefs.h. */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2606 main ()
2610 return 0;
2612 _ACEOF
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>conftest.er1
2616 ac_status=$?
2617 grep -v '^ *+' conftest.er1 >conftest.err
2618 rm -f conftest.er1
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; } &&
2628 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2634 ac_cv_prog_cc_g=yes
2635 else
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2639 ac_cv_prog_cc_g=no
2641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2643 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2645 if test "$ac_test_CFLAGS" = set; then
2646 CFLAGS=$ac_save_CFLAGS
2647 elif test $ac_cv_prog_cc_g = yes; then
2648 if test "$GCC" = yes; then
2649 CFLAGS="-g -O2"
2650 else
2651 CFLAGS="-g"
2653 else
2654 if test "$GCC" = yes; then
2655 CFLAGS="-O2"
2656 else
2657 CFLAGS=
2660 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2661 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2662 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665 ac_cv_prog_cc_stdc=no
2666 ac_save_CC=$CC
2667 cat >conftest.$ac_ext <<_ACEOF
2668 /* confdefs.h. */
2669 _ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h. */
2673 #include <stdarg.h>
2674 #include <stdio.h>
2675 #include <sys/types.h>
2676 #include <sys/stat.h>
2677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2678 struct buf { int x; };
2679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2680 static char *e (p, i)
2681 char **p;
2682 int i;
2684 return p[i];
2686 static char *f (char * (*g) (char **, int), char **p, ...)
2688 char *s;
2689 va_list v;
2690 va_start (v,p);
2691 s = g (p, va_arg (v,int));
2692 va_end (v);
2693 return s;
2696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2697 function prototypes and stuff, but not '\xHH' hex character constants.
2698 These don't provoke an error unfortunately, instead are silently treated
2699 as 'x'. The following induces an error, until -std1 is added to get
2700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2701 array size at least. It's necessary to write '\x00'==0 to get something
2702 that's true only with -std1. */
2703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2705 int test (int i, double x);
2706 struct s1 {int (*f) (int a);};
2707 struct s2 {int (*f) (double a);};
2708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2709 int argc;
2710 char **argv;
2712 main ()
2714 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2716 return 0;
2718 _ACEOF
2719 # Don't try gcc -ansi; that turns off useful extensions and
2720 # breaks some systems' header files.
2721 # AIX -qlanglvl=ansi
2722 # Ultrix and OSF/1 -std1
2723 # HP-UX 10.20 and later -Ae
2724 # HP-UX older versions -Aa -D_HPUX_SOURCE
2725 # SVR4 -Xc -D__EXTENSIONS__
2726 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728 CC="$ac_save_CC $ac_arg"
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>conftest.er1
2732 ac_status=$?
2733 grep -v '^ *+' conftest.er1 >conftest.err
2734 rm -f conftest.er1
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 (eval $ac_try) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; } &&
2744 { ac_try='test -s conftest.$ac_objext'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; }; then
2750 ac_cv_prog_cc_stdc=$ac_arg
2751 break
2752 else
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2757 rm -f conftest.err conftest.$ac_objext
2758 done
2759 rm -f conftest.$ac_ext conftest.$ac_objext
2760 CC=$ac_save_CC
2764 case "x$ac_cv_prog_cc_stdc" in
2765 x|xno)
2766 echo "$as_me:$LINENO: result: none needed" >&5
2767 echo "${ECHO_T}none needed" >&6 ;;
2769 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2771 CC="$CC $ac_cv_prog_cc_stdc" ;;
2772 esac
2774 # Some people use a C++ compiler to compile C. Since we use `exit',
2775 # in C++ we need to declare it. In case someone uses the same compiler
2776 # for both compiling C and C++ we need to have the C++ compiler decide
2777 # the declaration of exit, since it's the most demanding environment.
2778 cat >conftest.$ac_ext <<_ACEOF
2779 #ifndef __cplusplus
2780 choke me
2781 #endif
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>conftest.er1
2786 ac_status=$?
2787 grep -v '^ *+' conftest.er1 >conftest.err
2788 rm -f conftest.er1
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } &&
2798 { ac_try='test -s conftest.$ac_objext'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 (eval $ac_try) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2804 for ac_declaration in \
2805 '' \
2806 'extern "C" void std::exit (int) throw (); using std::exit;' \
2807 'extern "C" void std::exit (int); using std::exit;' \
2808 'extern "C" void exit (int) throw ();' \
2809 'extern "C" void exit (int);' \
2810 'void exit (int);'
2812 cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h. */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2818 $ac_declaration
2819 #include <stdlib.h>
2821 main ()
2823 exit (42);
2825 return 0;
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>conftest.er1
2831 ac_status=$?
2832 grep -v '^ *+' conftest.er1 >conftest.err
2833 rm -f conftest.er1
2834 cat conftest.err >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } &&
2837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; } &&
2843 { ac_try='test -s conftest.$ac_objext'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 (eval $ac_try) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2850 else
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2854 continue
2856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2857 cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h. */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2863 $ac_declaration
2865 main ()
2867 exit (42);
2869 return 0;
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>conftest.er1
2875 ac_status=$?
2876 grep -v '^ *+' conftest.er1 >conftest.err
2877 rm -f conftest.er1
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; } &&
2887 { ac_try='test -s conftest.$ac_objext'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 (eval $ac_try) 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2893 break
2894 else
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900 done
2901 rm -f conftest*
2902 if test -n "$ac_declaration"; then
2903 echo '#ifdef __cplusplus' >>confdefs.h
2904 echo $ac_declaration >>confdefs.h
2905 echo '#endif' >>confdefs.h
2908 else
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914 ac_ext=c
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924 # Add -Wall if we are using GCC.
2925 if test "x$GCC" = "xyes"; then
2926 CFLAGS="$CFLAGS -Wall"
2929 # Find other programs we need.
2930 if test -n "$ac_tool_prefix"; then
2931 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2932 set dummy ${ac_tool_prefix}as; ac_word=$2
2933 echo "$as_me:$LINENO: checking for $ac_word" >&5
2934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2935 if test "${ac_cv_prog_AS+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938 if test -n "$AS"; then
2939 ac_cv_prog_AS="$AS" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948 ac_cv_prog_AS="${ac_tool_prefix}as"
2949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2952 done
2953 done
2957 AS=$ac_cv_prog_AS
2958 if test -n "$AS"; then
2959 echo "$as_me:$LINENO: result: $AS" >&5
2960 echo "${ECHO_T}$AS" >&6
2961 else
2962 echo "$as_me:$LINENO: result: no" >&5
2963 echo "${ECHO_T}no" >&6
2967 if test -z "$ac_cv_prog_AS"; then
2968 ac_ct_AS=$AS
2969 # Extract the first word of "as", so it can be a program name with args.
2970 set dummy as; ac_word=$2
2971 echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2973 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976 if test -n "$ac_ct_AS"; then
2977 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986 ac_cv_prog_ac_ct_AS="as"
2987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2990 done
2991 done
2995 ac_ct_AS=$ac_cv_prog_ac_ct_AS
2996 if test -n "$ac_ct_AS"; then
2997 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2998 echo "${ECHO_T}$ac_ct_AS" >&6
2999 else
3000 echo "$as_me:$LINENO: result: no" >&5
3001 echo "${ECHO_T}no" >&6
3004 AS=$ac_ct_AS
3005 else
3006 AS="$ac_cv_prog_AS"
3009 if test -n "$ac_tool_prefix"; then
3010 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3011 set dummy ${ac_tool_prefix}ar; ac_word=$2
3012 echo "$as_me:$LINENO: checking for $ac_word" >&5
3013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3014 if test "${ac_cv_prog_AR+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017 if test -n "$AR"; then
3018 ac_cv_prog_AR="$AR" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027 ac_cv_prog_AR="${ac_tool_prefix}ar"
3028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3031 done
3032 done
3036 AR=$ac_cv_prog_AR
3037 if test -n "$AR"; then
3038 echo "$as_me:$LINENO: result: $AR" >&5
3039 echo "${ECHO_T}$AR" >&6
3040 else
3041 echo "$as_me:$LINENO: result: no" >&5
3042 echo "${ECHO_T}no" >&6
3046 if test -z "$ac_cv_prog_AR"; then
3047 ac_ct_AR=$AR
3048 # Extract the first word of "ar", so it can be a program name with args.
3049 set dummy ar; ac_word=$2
3050 echo "$as_me:$LINENO: checking for $ac_word" >&5
3051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3052 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055 if test -n "$ac_ct_AR"; then
3056 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_ac_ct_AR="ar"
3066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3069 done
3070 done
3074 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3075 if test -n "$ac_ct_AR"; then
3076 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3077 echo "${ECHO_T}$ac_ct_AR" >&6
3078 else
3079 echo "$as_me:$LINENO: result: no" >&5
3080 echo "${ECHO_T}no" >&6
3083 AR=$ac_ct_AR
3084 else
3085 AR="$ac_cv_prog_AR"
3088 if test -n "$ac_tool_prefix"; then
3089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3090 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3091 echo "$as_me:$LINENO: checking for $ac_word" >&5
3092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3093 if test "${ac_cv_prog_RANLIB+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096 if test -n "$RANLIB"; then
3097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3110 done
3111 done
3115 RANLIB=$ac_cv_prog_RANLIB
3116 if test -n "$RANLIB"; then
3117 echo "$as_me:$LINENO: result: $RANLIB" >&5
3118 echo "${ECHO_T}$RANLIB" >&6
3119 else
3120 echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6
3125 if test -z "$ac_cv_prog_RANLIB"; then
3126 ac_ct_RANLIB=$RANLIB
3127 # Extract the first word of "ranlib", so it can be a program name with args.
3128 set dummy ranlib; ac_word=$2
3129 echo "$as_me:$LINENO: checking for $ac_word" >&5
3130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3131 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134 if test -n "$ac_ct_RANLIB"; then
3135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 ac_cv_prog_ac_ct_RANLIB="ranlib"
3145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3148 done
3149 done
3151 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3154 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3155 if test -n "$ac_ct_RANLIB"; then
3156 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3157 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3158 else
3159 echo "$as_me:$LINENO: result: no" >&5
3160 echo "${ECHO_T}no" >&6
3163 RANLIB=$ac_ct_RANLIB
3164 else
3165 RANLIB="$ac_cv_prog_RANLIB"
3168 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3169 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3170 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3171 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 else
3174 cat >conftest.make <<\_ACEOF
3175 all:
3176 @echo 'ac_maketemp="$(MAKE)"'
3177 _ACEOF
3178 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3179 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3180 if test -n "$ac_maketemp"; then
3181 eval ac_cv_prog_make_${ac_make}_set=yes
3182 else
3183 eval ac_cv_prog_make_${ac_make}_set=no
3185 rm -f conftest.make
3187 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3188 echo "$as_me:$LINENO: result: yes" >&5
3189 echo "${ECHO_T}yes" >&6
3190 SET_MAKE=
3191 else
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3194 SET_MAKE="MAKE=${MAKE-make}"
3197 # Find a good install program. We prefer a C program (faster),
3198 # so one script is as good as another. But avoid the broken or
3199 # incompatible versions:
3200 # SysV /etc/install, /usr/sbin/install
3201 # SunOS /usr/etc/install
3202 # IRIX /sbin/install
3203 # AIX /bin/install
3204 # AmigaOS /C/install, which installs bootblocks on floppy discs
3205 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3206 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3207 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3208 # OS/2's system install, which has a completely different semantic
3209 # ./install, which can be erroneously created by make from ./install.sh.
3210 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3211 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3212 if test -z "$INSTALL"; then
3213 if test "${ac_cv_path_install+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 # Account for people who put trailing slashes in PATH elements.
3222 case $as_dir/ in
3223 ./ | .// | /cC/* | \
3224 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3225 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3226 /usr/ucb/* ) ;;
3228 # OSF1 and SCO ODT 3.0 have their own names for install.
3229 # Don't use installbsd from OSF since it installs stuff as root
3230 # by default.
3231 for ac_prog in ginstall scoinst install; do
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3234 if test $ac_prog = install &&
3235 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3236 # AIX install. It has an incompatible calling convention.
3238 elif test $ac_prog = install &&
3239 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3240 # program-specific install script used by HP pwplus--don't use.
3242 else
3243 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3244 break 3
3247 done
3248 done
3250 esac
3251 done
3255 if test "${ac_cv_path_install+set}" = set; then
3256 INSTALL=$ac_cv_path_install
3257 else
3258 # As a last resort, use the slow shell script. We don't cache a
3259 # path for INSTALL within a source directory, because that will
3260 # break other packages using the cache if that directory is
3261 # removed, or if the path is relative.
3262 INSTALL=$ac_install_sh
3265 echo "$as_me:$LINENO: result: $INSTALL" >&5
3266 echo "${ECHO_T}$INSTALL" >&6
3268 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3269 # It thinks the first close brace ends the variable substitution.
3270 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3272 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3274 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3277 # Configure libtool
3278 #AC_MSG_NOTICE([====== Starting libtool configuration])
3280 # Check whether --enable-shared or --disable-shared was given.
3281 if test "${enable_shared+set}" = set; then
3282 enableval="$enable_shared"
3283 p=${PACKAGE-default}
3284 case $enableval in
3285 yes) enable_shared=yes ;;
3286 no) enable_shared=no ;;
3288 enable_shared=no
3289 # Look at the argument we got. We use all the common list separators.
3290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3291 for pkg in $enableval; do
3292 if test "X$pkg" = "X$p"; then
3293 enable_shared=yes
3295 done
3296 IFS="$ac_save_ifs"
3298 esac
3299 else
3300 enable_shared=yes
3302 # Check whether --enable-static or --disable-static was given.
3303 if test "${enable_static+set}" = set; then
3304 enableval="$enable_static"
3305 p=${PACKAGE-default}
3306 case $enableval in
3307 yes) enable_static=yes ;;
3308 no) enable_static=no ;;
3310 enable_static=no
3311 # Look at the argument we got. We use all the common list separators.
3312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3313 for pkg in $enableval; do
3314 if test "X$pkg" = "X$p"; then
3315 enable_static=yes
3317 done
3318 IFS="$ac_save_ifs"
3320 esac
3321 else
3322 enable_static=yes
3324 # Check whether --enable-fast-install or --disable-fast-install was given.
3325 if test "${enable_fast_install+set}" = set; then
3326 enableval="$enable_fast_install"
3327 p=${PACKAGE-default}
3328 case $enableval in
3329 yes) enable_fast_install=yes ;;
3330 no) enable_fast_install=no ;;
3332 enable_fast_install=no
3333 # Look at the argument we got. We use all the common list separators.
3334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3335 for pkg in $enableval; do
3336 if test "X$pkg" = "X$p"; then
3337 enable_fast_install=yes
3339 done
3340 IFS="$ac_save_ifs"
3342 esac
3343 else
3344 enable_fast_install=yes
3347 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3348 if test "${with_gnu_ld+set}" = set; then
3349 withval="$with_gnu_ld"
3350 test "$withval" = no || with_gnu_ld=yes
3351 else
3352 with_gnu_ld=no
3354 ac_prog=ld
3355 if test "$GCC" = yes; then
3356 # Check if gcc -print-prog-name=ld gives a path.
3357 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3358 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3359 case $host in
3360 *-*-mingw*)
3361 # gcc leaves a trailing carriage return which upsets mingw
3362 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3364 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3365 esac
3366 case $ac_prog in
3367 # Accept absolute paths.
3368 [\\/]* | [A-Za-z]:[\\/]*)
3369 re_direlt='/[^/][^/]*/\.\./'
3370 # Canonicalize the path of ld
3371 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3372 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3373 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3374 done
3375 test -z "$LD" && LD="$ac_prog"
3378 # If it fails, then pretend we aren't using GCC.
3379 ac_prog=ld
3382 # If it is relative, then search for the first ld in PATH.
3383 with_gnu_ld=unknown
3385 esac
3386 elif test "$with_gnu_ld" = yes; then
3387 echo "$as_me:$LINENO: checking for GNU ld" >&5
3388 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3389 else
3390 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3391 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3393 if test "${lt_cv_path_LD+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396 if test -z "$LD"; then
3397 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3398 for ac_dir in $PATH; do
3399 test -z "$ac_dir" && ac_dir=.
3400 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3401 lt_cv_path_LD="$ac_dir/$ac_prog"
3402 # Check to see if the program is GNU ld. I'd rather use --version,
3403 # but apparently some GNU ld's only accept -v.
3404 # Break only if it was the GNU/non-GNU ld that we prefer.
3405 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3406 test "$with_gnu_ld" != no && break
3407 else
3408 test "$with_gnu_ld" != yes && break
3411 done
3412 IFS="$ac_save_ifs"
3413 else
3414 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3418 LD="$lt_cv_path_LD"
3419 if test -n "$LD"; then
3420 echo "$as_me:$LINENO: result: $LD" >&5
3421 echo "${ECHO_T}$LD" >&6
3422 else
3423 echo "$as_me:$LINENO: result: no" >&5
3424 echo "${ECHO_T}no" >&6
3426 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3427 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3428 { (exit 1); exit 1; }; }
3429 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3430 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3431 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 else
3434 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3435 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3436 lt_cv_prog_gnu_ld=yes
3437 else
3438 lt_cv_prog_gnu_ld=no
3441 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3442 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3443 with_gnu_ld=$lt_cv_prog_gnu_ld
3446 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3447 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3448 if test "${lt_cv_ld_reload_flag+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 else
3451 lt_cv_ld_reload_flag='-r'
3453 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3454 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3455 reload_flag=$lt_cv_ld_reload_flag
3456 test -n "$reload_flag" && reload_flag=" $reload_flag"
3458 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3459 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3460 if test "${lt_cv_path_NM+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463 if test -n "$NM"; then
3464 # Let the user override the test.
3465 lt_cv_path_NM="$NM"
3466 else
3467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3468 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3469 test -z "$ac_dir" && ac_dir=.
3470 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3471 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3472 # Check to see if the nm accepts a BSD-compat flag.
3473 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3474 # nm: unknown option "B" ignored
3475 # Tru64's nm complains that /dev/null is an invalid object file
3476 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3477 lt_cv_path_NM="$tmp_nm -B"
3478 break
3479 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3480 lt_cv_path_NM="$tmp_nm -p"
3481 break
3482 else
3483 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3484 continue # so that we can try to find one that supports BSD flags
3487 done
3488 IFS="$ac_save_ifs"
3489 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3493 NM="$lt_cv_path_NM"
3494 echo "$as_me:$LINENO: result: $NM" >&5
3495 echo "${ECHO_T}$NM" >&6
3497 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3498 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3499 LN_S=$as_ln_s
3500 if test "$LN_S" = "ln -s"; then
3501 echo "$as_me:$LINENO: result: yes" >&5
3502 echo "${ECHO_T}yes" >&6
3503 else
3504 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3505 echo "${ECHO_T}no, using $LN_S" >&6
3508 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3509 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3510 if test "${lt_cv_deplibs_check_method+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513 lt_cv_file_magic_cmd='$MAGIC_CMD'
3514 lt_cv_file_magic_test_file=
3515 lt_cv_deplibs_check_method='unknown'
3516 # Need to set the preceding variable on all platforms that support
3517 # interlibrary dependencies.
3518 # 'none' -- dependencies not supported.
3519 # `unknown' -- same as none, but documents that we really don't know.
3520 # 'pass_all' -- all dependencies passed with no checks.
3521 # 'test_compile' -- check by making test program.
3522 # 'file_magic [regex]' -- check by looking for files in library path
3523 # which responds to the $file_magic_cmd with a given egrep regex.
3524 # If you have `file' or equivalent on your system and you're not sure
3525 # whether `pass_all' will *always* work, you probably want this one.
3527 case $host_os in
3528 aix*)
3529 lt_cv_deplibs_check_method=pass_all
3532 beos*)
3533 lt_cv_deplibs_check_method=pass_all
3536 bsdi4*)
3537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3538 lt_cv_file_magic_cmd='/usr/bin/file -L'
3539 lt_cv_file_magic_test_file=/shlib/libc.so
3542 cygwin* | mingw* |pw32*)
3543 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3544 lt_cv_file_magic_cmd='$OBJDUMP -f'
3547 darwin* | rhapsody*)
3548 # this will be overwritten by pass_all, but leave it in just in case
3549 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3550 lt_cv_file_magic_cmd='/usr/bin/file -L'
3551 case "$host_os" in
3552 rhapsody* | darwin1.012)
3553 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3555 *) # Darwin 1.3 on
3556 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3558 esac
3559 lt_cv_deplibs_check_method=pass_all
3562 freebsd* | kfreebsd*-gnu)
3563 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3564 case $host_cpu in
3565 i*86 )
3566 # Not sure whether the presence of OpenBSD here was a mistake.
3567 # Let's accept both of them until this is cleared up.
3568 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3569 lt_cv_file_magic_cmd=/usr/bin/file
3570 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3572 esac
3573 else
3574 lt_cv_deplibs_check_method=pass_all
3578 gnu*)
3579 lt_cv_deplibs_check_method=pass_all
3582 hpux10.20*|hpux11*)
3583 case $host_cpu in
3584 hppa*)
3585 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3586 lt_cv_file_magic_cmd=/usr/bin/file
3587 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3589 ia64*)
3590 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3591 lt_cv_file_magic_cmd=/usr/bin/file
3592 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3594 esac
3597 irix5* | irix6*)
3598 case $host_os in
3599 irix5*)
3600 # this will be overridden with pass_all, but let us keep it just in case
3601 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3604 case $LD in
3605 *-32|*"-32 ") libmagic=32-bit;;
3606 *-n32|*"-n32 ") libmagic=N32;;
3607 *-64|*"-64 ") libmagic=64-bit;;
3608 *) libmagic=never-match;;
3609 esac
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 ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3613 esac
3614 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3615 lt_cv_deplibs_check_method=pass_all
3618 # This must be Linux ELF.
3619 linux-gnu*)
3620 case $host_cpu in
3621 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
3622 lt_cv_deplibs_check_method=pass_all ;;
3624 # glibc up to 2.1.1 does not perform some relocations on ARM
3625 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3626 esac
3627 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3630 netbsd* | knetbsd*-gnu)
3631 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3632 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3633 else
3634 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3638 newsos6)
3639 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3640 lt_cv_file_magic_cmd=/usr/bin/file
3641 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3644 osf3* | osf4* | osf5*)
3645 # this will be overridden with pass_all, but let us keep it just in case
3646 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3647 lt_cv_file_magic_test_file=/shlib/libc.so
3648 lt_cv_deplibs_check_method=pass_all
3651 sco3.2v5*)
3652 lt_cv_deplibs_check_method=pass_all
3655 solaris*)
3656 lt_cv_deplibs_check_method=pass_all
3657 lt_cv_file_magic_test_file=/lib/libc.so
3660 sysv5uw[78]* | sysv4*uw2*)
3661 lt_cv_deplibs_check_method=pass_all
3664 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3665 case $host_vendor in
3666 ncr)
3667 lt_cv_deplibs_check_method=pass_all
3669 motorola)
3670 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3671 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3673 esac
3675 esac
3678 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3679 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3680 file_magic_cmd=$lt_cv_file_magic_cmd
3681 deplibs_check_method=$lt_cv_deplibs_check_method
3687 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3689 # Only perform the check for file, if the check method requires it
3690 case $deplibs_check_method in
3691 file_magic*)
3692 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3693 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3694 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3695 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698 case $MAGIC_CMD in
3700 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3702 ?:/*)
3703 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3706 ac_save_MAGIC_CMD="$MAGIC_CMD"
3707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3708 ac_dummy="/usr/bin:$PATH"
3709 for ac_dir in $ac_dummy; do
3710 test -z "$ac_dir" && ac_dir=.
3711 if test -f $ac_dir/${ac_tool_prefix}file; then
3712 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3713 if test -n "$file_magic_test_file"; then
3714 case $deplibs_check_method in
3715 "file_magic "*)
3716 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3717 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3718 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3719 egrep "$file_magic_regex" > /dev/null; then
3721 else
3722 cat <<EOF 1>&2
3724 *** Warning: the command libtool uses to detect shared libraries,
3725 *** $file_magic_cmd, produces output that libtool cannot recognize.
3726 *** The result is that libtool may fail to recognize shared libraries
3727 *** as such. This will affect the creation of libtool libraries that
3728 *** depend on shared libraries, but programs linked with such libtool
3729 *** libraries will work regardless of this problem. Nevertheless, you
3730 *** may want to report the problem to your system manager and/or to
3731 *** bug-libtool@gnu.org
3734 fi ;;
3735 esac
3737 break
3739 done
3740 IFS="$ac_save_ifs"
3741 MAGIC_CMD="$ac_save_MAGIC_CMD"
3743 esac
3746 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3747 if test -n "$MAGIC_CMD"; then
3748 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3749 echo "${ECHO_T}$MAGIC_CMD" >&6
3750 else
3751 echo "$as_me:$LINENO: result: no" >&5
3752 echo "${ECHO_T}no" >&6
3755 if test -z "$lt_cv_path_MAGIC_CMD"; then
3756 if test -n "$ac_tool_prefix"; then
3757 echo "$as_me:$LINENO: checking for file" >&5
3758 echo $ECHO_N "checking for file... $ECHO_C" >&6
3759 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762 case $MAGIC_CMD in
3764 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3766 ?:/*)
3767 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3770 ac_save_MAGIC_CMD="$MAGIC_CMD"
3771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3772 ac_dummy="/usr/bin:$PATH"
3773 for ac_dir in $ac_dummy; do
3774 test -z "$ac_dir" && ac_dir=.
3775 if test -f $ac_dir/file; then
3776 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3777 if test -n "$file_magic_test_file"; then
3778 case $deplibs_check_method in
3779 "file_magic "*)
3780 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3781 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3782 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3783 egrep "$file_magic_regex" > /dev/null; then
3785 else
3786 cat <<EOF 1>&2
3788 *** Warning: the command libtool uses to detect shared libraries,
3789 *** $file_magic_cmd, produces output that libtool cannot recognize.
3790 *** The result is that libtool may fail to recognize shared libraries
3791 *** as such. This will affect the creation of libtool libraries that
3792 *** depend on shared libraries, but programs linked with such libtool
3793 *** libraries will work regardless of this problem. Nevertheless, you
3794 *** may want to report the problem to your system manager and/or to
3795 *** bug-libtool@gnu.org
3798 fi ;;
3799 esac
3801 break
3803 done
3804 IFS="$ac_save_ifs"
3805 MAGIC_CMD="$ac_save_MAGIC_CMD"
3807 esac
3810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3811 if test -n "$MAGIC_CMD"; then
3812 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3813 echo "${ECHO_T}$MAGIC_CMD" >&6
3814 else
3815 echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3819 else
3820 MAGIC_CMD=:
3826 esac
3828 if test -n "$ac_tool_prefix"; then
3829 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3830 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3831 echo "$as_me:$LINENO: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3833 if test "${ac_cv_prog_RANLIB+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836 if test -n "$RANLIB"; then
3837 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 break 2
3850 done
3851 done
3855 RANLIB=$ac_cv_prog_RANLIB
3856 if test -n "$RANLIB"; then
3857 echo "$as_me:$LINENO: result: $RANLIB" >&5
3858 echo "${ECHO_T}$RANLIB" >&6
3859 else
3860 echo "$as_me:$LINENO: result: no" >&5
3861 echo "${ECHO_T}no" >&6
3865 if test -z "$ac_cv_prog_RANLIB"; then
3866 ac_ct_RANLIB=$RANLIB
3867 # Extract the first word of "ranlib", so it can be a program name with args.
3868 set dummy ranlib; ac_word=$2
3869 echo "$as_me:$LINENO: checking for $ac_word" >&5
3870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3871 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874 if test -n "$ac_ct_RANLIB"; then
3875 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3876 else
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 for as_dir in $PATH
3880 IFS=$as_save_IFS
3881 test -z "$as_dir" && as_dir=.
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3884 ac_cv_prog_ac_ct_RANLIB="ranlib"
3885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3886 break 2
3888 done
3889 done
3891 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3894 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3895 if test -n "$ac_ct_RANLIB"; then
3896 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3897 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3898 else
3899 echo "$as_me:$LINENO: result: no" >&5
3900 echo "${ECHO_T}no" >&6
3903 RANLIB=$ac_ct_RANLIB
3904 else
3905 RANLIB="$ac_cv_prog_RANLIB"
3908 if test -n "$ac_tool_prefix"; then
3909 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3910 set dummy ${ac_tool_prefix}strip; ac_word=$2
3911 echo "$as_me:$LINENO: checking for $ac_word" >&5
3912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3913 if test "${ac_cv_prog_STRIP+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 if test -n "$STRIP"; then
3917 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3918 else
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 break 2
3930 done
3931 done
3935 STRIP=$ac_cv_prog_STRIP
3936 if test -n "$STRIP"; then
3937 echo "$as_me:$LINENO: result: $STRIP" >&5
3938 echo "${ECHO_T}$STRIP" >&6
3939 else
3940 echo "$as_me:$LINENO: result: no" >&5
3941 echo "${ECHO_T}no" >&6
3945 if test -z "$ac_cv_prog_STRIP"; then
3946 ac_ct_STRIP=$STRIP
3947 # Extract the first word of "strip", so it can be a program name with args.
3948 set dummy strip; ac_word=$2
3949 echo "$as_me:$LINENO: checking for $ac_word" >&5
3950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3951 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954 if test -n "$ac_ct_STRIP"; then
3955 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3956 else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3960 IFS=$as_save_IFS
3961 test -z "$as_dir" && as_dir=.
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3964 ac_cv_prog_ac_ct_STRIP="strip"
3965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 break 2
3968 done
3969 done
3971 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3974 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3975 if test -n "$ac_ct_STRIP"; then
3976 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3977 echo "${ECHO_T}$ac_ct_STRIP" >&6
3978 else
3979 echo "$as_me:$LINENO: result: no" >&5
3980 echo "${ECHO_T}no" >&6
3983 STRIP=$ac_ct_STRIP
3984 else
3985 STRIP="$ac_cv_prog_STRIP"
3989 # Check for any special flags to pass to ltconfig.
3990 libtool_flags="--cache-file=$cache_file"
3991 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3992 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3993 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3994 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3995 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3998 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3999 if test "${enable_libtool_lock+set}" = set; then
4000 enableval="$enable_libtool_lock"
4003 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4004 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4007 # Check whether --with-pic or --without-pic was given.
4008 if test "${with_pic+set}" = set; then
4009 withval="$with_pic"
4010 pic_mode="$withval"
4011 else
4012 pic_mode=default
4014 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4015 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4017 # Some flags need to be propagated to the compiler or linker for good
4018 # libtool support.
4019 case $host in
4020 *-*-irix6*)
4021 # Find out which ABI we are using.
4022 echo '#line 4022 "configure"' > conftest.$ac_ext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4024 (eval $ac_compile) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; then
4028 if test "$lt_cv_prog_gnu_ld" = yes; then
4029 case `/usr/bin/file conftest.$ac_objext` in
4030 *32-bit*)
4031 LD="${LD-ld} -melf32bsmip"
4033 *N32*)
4034 LD="${LD-ld} -melf32bmipn32"
4036 *64-bit*)
4037 LD="${LD-ld} -melf64bmip"
4039 esac
4040 else
4041 case `/usr/bin/file conftest.$ac_objext` in
4042 *32-bit*)
4043 LD="${LD-ld} -32"
4045 *N32*)
4046 LD="${LD-ld} -n32"
4048 *64-bit*)
4049 LD="${LD-ld} -64"
4051 esac
4054 rm -rf conftest*
4057 ia64-*-hpux*)
4058 # Find out which ABI we are using.
4059 echo 'int i;' > conftest.$ac_ext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; then
4065 case "`/usr/bin/file conftest.o`" in
4066 *ELF-32*)
4067 HPUX_IA64_MODE="32"
4069 *ELF-64*)
4070 HPUX_IA64_MODE="64"
4072 esac
4074 rm -rf conftest*
4077 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4078 # Find out which ABI we are using.
4079 echo 'int i;' > conftest.$ac_ext
4080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4081 (eval $ac_compile) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; then
4085 case "`/usr/bin/file conftest.o`" in
4086 *32-bit*)
4087 case $host in
4088 x86_64-*linux*)
4089 LD="${LD-ld} -m elf_i386"
4091 ppc64-*linux*|powerpc64-*linux*)
4092 LD="${LD-ld} -m elf32ppclinux"
4094 s390x-*linux*)
4095 LD="${LD-ld} -m elf_s390"
4097 sparc64-*linux*)
4098 LD="${LD-ld} -m elf32_sparc"
4100 esac
4102 *64-bit*)
4103 case $host in
4104 x86_64-*linux*)
4105 LD="${LD-ld} -m elf_x86_64"
4107 ppc*-*linux*|powerpc*-*linux*)
4108 LD="${LD-ld} -m elf64ppc"
4110 s390*-*linux*)
4111 LD="${LD-ld} -m elf64_s390"
4113 sparc*-*linux*)
4114 LD="${LD-ld} -m elf64_sparc"
4116 esac
4118 esac
4120 rm -rf conftest*
4123 *-*-sco3.2v5*)
4124 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4125 SAVE_CFLAGS="$CFLAGS"
4126 CFLAGS="$CFLAGS -belf"
4127 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4128 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4129 if test "${lt_cv_cc_needs_belf+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4134 ac_ext=c
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h. */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4148 main ()
4152 return 0;
4154 _ACEOF
4155 rm -f conftest.$ac_objext conftest$ac_exeext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4157 (eval $ac_link) 2>conftest.er1
4158 ac_status=$?
4159 grep -v '^ *+' conftest.er1 >conftest.err
4160 rm -f conftest.er1
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 (eval $ac_try) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; } &&
4170 { ac_try='test -s conftest$ac_exeext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 lt_cv_cc_needs_belf=yes
4177 else
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4181 lt_cv_cc_needs_belf=no
4183 rm -f conftest.err conftest.$ac_objext \
4184 conftest$ac_exeext conftest.$ac_ext
4185 ac_ext=c
4186 ac_cpp='$CPP $CPPFLAGS'
4187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4193 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4194 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4195 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4196 CFLAGS="$SAVE_CFLAGS"
4201 esac
4204 # Save cache, so that ltconfig can load it
4205 cat >confcache <<\_ACEOF
4206 # This file is a shell script that caches the results of configure
4207 # tests run on this system so they can be shared between configure
4208 # scripts and configure runs, see configure's option --config-cache.
4209 # It is not useful on other systems. If it contains results you don't
4210 # want to keep, you may remove or edit it.
4212 # config.status only pays attention to the cache file if you give it
4213 # the --recheck option to rerun configure.
4215 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4216 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4217 # following values.
4219 _ACEOF
4221 # The following way of writing the cache mishandles newlines in values,
4222 # but we know of no workaround that is simple, portable, and efficient.
4223 # So, don't put newlines in cache variables' values.
4224 # Ultrix sh set writes to stderr and can't be redirected directly,
4225 # and sets the high bit in the cache file unless we assign to the vars.
4227 (set) 2>&1 |
4228 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4229 *ac_space=\ *)
4230 # `set' does not quote correctly, so add quotes (double-quote
4231 # substitution turns \\\\ into \\, and sed turns \\ into \).
4232 sed -n \
4233 "s/'/'\\\\''/g;
4234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4237 # `set' quotes correctly as required by POSIX, so do not add quotes.
4238 sed -n \
4239 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4241 esac;
4243 sed '
4244 t clear
4245 : clear
4246 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4247 t end
4248 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4249 : end' >>confcache
4250 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4251 if test -w $cache_file; then
4252 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4253 cat confcache >$cache_file
4254 else
4255 echo "not updating unwritable cache $cache_file"
4258 rm -f confcache
4260 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4261 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4262 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4263 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4264 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4265 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4266 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4267 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4268 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4269 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4270 echo "$as_me: error: libtool configure failed" >&2;}
4271 { (exit 1); exit 1; }; }
4273 # Reload cache, that may have been modified by ltconfig
4274 if test -r "$cache_file"; then
4275 # Some versions of bash will fail to source /dev/null (special
4276 # files actually), so we avoid doing that.
4277 if test -f "$cache_file"; then
4278 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4279 echo "$as_me: loading cache $cache_file" >&6;}
4280 case $cache_file in
4281 [\\/]* | ?:[\\/]* ) . $cache_file;;
4282 *) . ./$cache_file;;
4283 esac
4285 else
4286 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4287 echo "$as_me: creating cache $cache_file" >&6;}
4288 >$cache_file
4292 # This can be used to rebuild libtool when needed
4293 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4295 # Always use our own libtool.
4296 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4298 # Redirect the config.log output again, so that the ltconfig log is not
4299 # clobbered by the next message.
4300 exec 5>>./config.log
4309 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4311 # We need gfortran to compile parts of the library
4312 # We can't use AC_PROG_F77 because it expects a fully working gfortran.
4313 #AC_PROG_F77(gfortran)
4314 F77="$GFORTRAN"
4315 ac_ext=f
4316 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4317 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4319 if test -n "$ac_tool_prefix"; then
4320 for ac_prog in gfortran
4322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4324 echo "$as_me:$LINENO: checking for $ac_word" >&5
4325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4326 if test "${ac_cv_prog_F77+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329 if test -n "$F77"; then
4330 ac_cv_prog_F77="$F77" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4339 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 break 2
4343 done
4344 done
4348 F77=$ac_cv_prog_F77
4349 if test -n "$F77"; then
4350 echo "$as_me:$LINENO: result: $F77" >&5
4351 echo "${ECHO_T}$F77" >&6
4352 else
4353 echo "$as_me:$LINENO: result: no" >&5
4354 echo "${ECHO_T}no" >&6
4357 test -n "$F77" && break
4358 done
4360 if test -z "$F77"; then
4361 ac_ct_F77=$F77
4362 for ac_prog in gfortran
4364 # Extract the first word of "$ac_prog", so it can be a program name with args.
4365 set dummy $ac_prog; ac_word=$2
4366 echo "$as_me:$LINENO: checking for $ac_word" >&5
4367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4368 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371 if test -n "$ac_ct_F77"; then
4372 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4373 else
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381 ac_cv_prog_ac_ct_F77="$ac_prog"
4382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 break 2
4385 done
4386 done
4390 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4391 if test -n "$ac_ct_F77"; then
4392 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4393 echo "${ECHO_T}$ac_ct_F77" >&6
4394 else
4395 echo "$as_me:$LINENO: result: no" >&5
4396 echo "${ECHO_T}no" >&6
4399 test -n "$ac_ct_F77" && break
4400 done
4402 F77=$ac_ct_F77
4406 # Provide some information about the compiler.
4407 echo "$as_me:4407:" \
4408 "checking for Fortran 77 compiler version" >&5
4409 ac_compiler=`set X $ac_compile; echo $2`
4410 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4411 (eval $ac_compiler --version </dev/null >&5) 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }
4415 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4416 (eval $ac_compiler -v </dev/null >&5) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }
4420 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4421 (eval $ac_compiler -V </dev/null >&5) 2>&5
4422 ac_status=$?
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }
4425 rm -f a.out
4427 # If we don't use `.F' as extension, the preprocessor is not run on the
4428 # input file. (Note that this only needs to work for GNU compilers.)
4429 ac_save_ext=$ac_ext
4430 ac_ext=F
4431 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4432 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4433 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436 cat >conftest.$ac_ext <<_ACEOF
4437 program main
4438 #ifndef __GNUC__
4439 choke me
4440 #endif
4443 _ACEOF
4444 rm -f conftest.$ac_objext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446 (eval $ac_compile) 2>conftest.er1
4447 ac_status=$?
4448 grep -v '^ *+' conftest.er1 >conftest.err
4449 rm -f conftest.er1
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 (eval $ac_try) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; } &&
4459 { ac_try='test -s conftest.$ac_objext'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 (eval $ac_try) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
4465 ac_compiler_gnu=yes
4466 else
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4470 ac_compiler_gnu=no
4472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4473 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4476 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4477 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4478 ac_ext=$ac_save_ext
4479 ac_test_FFLAGS=${FFLAGS+set}
4480 ac_save_FFLAGS=$FFLAGS
4481 FFLAGS=
4482 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4483 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4484 if test "${ac_cv_prog_f77_g+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 else
4487 FFLAGS=-g
4488 cat >conftest.$ac_ext <<_ACEOF
4489 program main
4492 _ACEOF
4493 rm -f conftest.$ac_objext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4495 (eval $ac_compile) 2>conftest.er1
4496 ac_status=$?
4497 grep -v '^ *+' conftest.er1 >conftest.err
4498 rm -f conftest.er1
4499 cat conftest.err >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } &&
4502 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 (eval $ac_try) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; } &&
4508 { ac_try='test -s conftest.$ac_objext'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 (eval $ac_try) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; }; then
4514 ac_cv_prog_f77_g=yes
4515 else
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4519 ac_cv_prog_f77_g=no
4521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4524 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4525 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4526 if test "$ac_test_FFLAGS" = set; then
4527 FFLAGS=$ac_save_FFLAGS
4528 elif test $ac_cv_prog_f77_g = yes; then
4529 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4530 FFLAGS="-g -O2"
4531 else
4532 FFLAGS="-g"
4534 else
4535 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4536 FFLAGS="-O2"
4537 else
4538 FFLAGS=
4542 G77=`test $ac_compiler_gnu = yes && echo yes`
4543 ac_ext=c
4544 ac_cpp='$CPP $CPPFLAGS'
4545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549 FFLAGS="$FFLAGS -Wall -fno-repack-arrays -fno-underscoring"
4551 ac_ext=c
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4557 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4558 # On Suns, sometimes $CPP names a directory.
4559 if test -n "$CPP" && test -d "$CPP"; then
4560 CPP=
4562 if test -z "$CPP"; then
4563 if test "${ac_cv_prog_CPP+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 else
4566 # Double quotes because CPP needs to be expanded
4567 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4569 ac_preproc_ok=false
4570 for ac_c_preproc_warn_flag in '' yes
4572 # Use a header file that comes with gcc, so configuring glibc
4573 # with a fresh cross-compiler works.
4574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4575 # <limits.h> exists even on freestanding compilers.
4576 # On the NeXT, cc -E runs the code through the compiler's parser,
4577 # not just through cpp. "Syntax error" is here to catch this case.
4578 cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h. */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584 #ifdef __STDC__
4585 # include <limits.h>
4586 #else
4587 # include <assert.h>
4588 #endif
4589 Syntax error
4590 _ACEOF
4591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4593 ac_status=$?
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } >/dev/null; then
4599 if test -s conftest.err; then
4600 ac_cpp_err=$ac_c_preproc_warn_flag
4601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4602 else
4603 ac_cpp_err=
4605 else
4606 ac_cpp_err=yes
4608 if test -z "$ac_cpp_err"; then
4610 else
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.$ac_ext >&5
4614 # Broken: fails on valid input.
4615 continue
4617 rm -f conftest.err conftest.$ac_ext
4619 # OK, works on sane cases. Now check whether non-existent headers
4620 # can be detected and how.
4621 cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h. */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h. */
4627 #include <ac_nonexistent.h>
4628 _ACEOF
4629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } >/dev/null; then
4637 if test -s conftest.err; then
4638 ac_cpp_err=$ac_c_preproc_warn_flag
4639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4640 else
4641 ac_cpp_err=
4643 else
4644 ac_cpp_err=yes
4646 if test -z "$ac_cpp_err"; then
4647 # Broken: success on invalid input.
4648 continue
4649 else
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 # Passes both tests.
4654 ac_preproc_ok=:
4655 break
4657 rm -f conftest.err conftest.$ac_ext
4659 done
4660 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4661 rm -f conftest.err conftest.$ac_ext
4662 if $ac_preproc_ok; then
4663 break
4666 done
4667 ac_cv_prog_CPP=$CPP
4670 CPP=$ac_cv_prog_CPP
4671 else
4672 ac_cv_prog_CPP=$CPP
4674 echo "$as_me:$LINENO: result: $CPP" >&5
4675 echo "${ECHO_T}$CPP" >&6
4676 ac_preproc_ok=false
4677 for ac_c_preproc_warn_flag in '' yes
4679 # Use a header file that comes with gcc, so configuring glibc
4680 # with a fresh cross-compiler works.
4681 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4682 # <limits.h> exists even on freestanding compilers.
4683 # On the NeXT, cc -E runs the code through the compiler's parser,
4684 # not just through cpp. "Syntax error" is here to catch this case.
4685 cat >conftest.$ac_ext <<_ACEOF
4686 /* confdefs.h. */
4687 _ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4691 #ifdef __STDC__
4692 # include <limits.h>
4693 #else
4694 # include <assert.h>
4695 #endif
4696 Syntax error
4697 _ACEOF
4698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4700 ac_status=$?
4701 grep -v '^ *+' conftest.er1 >conftest.err
4702 rm -f conftest.er1
4703 cat conftest.err >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } >/dev/null; then
4706 if test -s conftest.err; then
4707 ac_cpp_err=$ac_c_preproc_warn_flag
4708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4709 else
4710 ac_cpp_err=
4712 else
4713 ac_cpp_err=yes
4715 if test -z "$ac_cpp_err"; then
4717 else
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4721 # Broken: fails on valid input.
4722 continue
4724 rm -f conftest.err conftest.$ac_ext
4726 # OK, works on sane cases. Now check whether non-existent headers
4727 # can be detected and how.
4728 cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h. */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 #include <ac_nonexistent.h>
4735 _ACEOF
4736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4738 ac_status=$?
4739 grep -v '^ *+' conftest.er1 >conftest.err
4740 rm -f conftest.er1
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } >/dev/null; then
4744 if test -s conftest.err; then
4745 ac_cpp_err=$ac_c_preproc_warn_flag
4746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4747 else
4748 ac_cpp_err=
4750 else
4751 ac_cpp_err=yes
4753 if test -z "$ac_cpp_err"; then
4754 # Broken: success on invalid input.
4755 continue
4756 else
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4760 # Passes both tests.
4761 ac_preproc_ok=:
4762 break
4764 rm -f conftest.err conftest.$ac_ext
4766 done
4767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4768 rm -f conftest.err conftest.$ac_ext
4769 if $ac_preproc_ok; then
4771 else
4772 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4773 See \`config.log' for more details." >&5
4774 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4775 See \`config.log' for more details." >&2;}
4776 { (exit 1); exit 1; }; }
4779 ac_ext=c
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4786 echo "$as_me:$LINENO: checking for egrep" >&5
4787 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4788 if test "${ac_cv_prog_egrep+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4792 then ac_cv_prog_egrep='grep -E'
4793 else ac_cv_prog_egrep='egrep'
4796 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4797 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4798 EGREP=$ac_cv_prog_egrep
4801 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4802 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4803 if test "${ac_cv_header_stdc+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806 cat >conftest.$ac_ext <<_ACEOF
4807 /* confdefs.h. */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4812 #include <stdlib.h>
4813 #include <stdarg.h>
4814 #include <string.h>
4815 #include <float.h>
4818 main ()
4822 return 0;
4824 _ACEOF
4825 rm -f conftest.$ac_objext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827 (eval $ac_compile) 2>conftest.er1
4828 ac_status=$?
4829 grep -v '^ *+' conftest.er1 >conftest.err
4830 rm -f conftest.er1
4831 cat conftest.err >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } &&
4834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 (eval $ac_try) 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; } &&
4840 { ac_try='test -s conftest.$ac_objext'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 (eval $ac_try) 2>&5
4843 ac_status=$?
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; }; then
4846 ac_cv_header_stdc=yes
4847 else
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4851 ac_cv_header_stdc=no
4853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4855 if test $ac_cv_header_stdc = yes; then
4856 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4857 cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h. */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4863 #include <string.h>
4865 _ACEOF
4866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4867 $EGREP "memchr" >/dev/null 2>&1; then
4869 else
4870 ac_cv_header_stdc=no
4872 rm -f conftest*
4876 if test $ac_cv_header_stdc = yes; then
4877 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4878 cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h. */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 #include <stdlib.h>
4886 _ACEOF
4887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4888 $EGREP "free" >/dev/null 2>&1; then
4890 else
4891 ac_cv_header_stdc=no
4893 rm -f conftest*
4897 if test $ac_cv_header_stdc = yes; then
4898 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4899 if test "$cross_compiling" = yes; then
4901 else
4902 cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h. */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4908 #include <ctype.h>
4909 #if ((' ' & 0x0FF) == 0x020)
4910 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4911 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4912 #else
4913 # define ISLOWER(c) \
4914 (('a' <= (c) && (c) <= 'i') \
4915 || ('j' <= (c) && (c) <= 'r') \
4916 || ('s' <= (c) && (c) <= 'z'))
4917 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4918 #endif
4920 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4922 main ()
4924 int i;
4925 for (i = 0; i < 256; i++)
4926 if (XOR (islower (i), ISLOWER (i))
4927 || toupper (i) != TOUPPER (i))
4928 exit(2);
4929 exit (0);
4931 _ACEOF
4932 rm -f conftest$ac_exeext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4934 (eval $ac_link) 2>&5
4935 ac_status=$?
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 (eval $ac_try) 2>&5
4940 ac_status=$?
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4944 else
4945 echo "$as_me: program exited with status $ac_status" >&5
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4949 ( exit $ac_status )
4950 ac_cv_header_stdc=no
4952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4956 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4957 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4958 if test $ac_cv_header_stdc = yes; then
4960 cat >>confdefs.h <<\_ACEOF
4961 #define STDC_HEADERS 1
4962 _ACEOF
4966 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4976 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4977 inttypes.h stdint.h unistd.h
4979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4980 echo "$as_me:$LINENO: checking for $ac_header" >&5
4981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985 cat >conftest.$ac_ext <<_ACEOF
4986 /* confdefs.h. */
4987 _ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4991 $ac_includes_default
4993 #include <$ac_header>
4994 _ACEOF
4995 rm -f conftest.$ac_objext
4996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4997 (eval $ac_compile) 2>conftest.er1
4998 ac_status=$?
4999 grep -v '^ *+' conftest.er1 >conftest.err
5000 rm -f conftest.er1
5001 cat conftest.err >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } &&
5004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 (eval $ac_try) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; } &&
5010 { ac_try='test -s conftest.$ac_objext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 eval "$as_ac_Header=yes"
5017 else
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 eval "$as_ac_Header=no"
5023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5028 cat >>confdefs.h <<_ACEOF
5029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5030 _ACEOF
5034 done
5039 for ac_header in stdlib.h unistd.h
5041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5043 echo "$as_me:$LINENO: checking for $ac_header" >&5
5044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5050 else
5051 # Is the header compilable?
5052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5054 cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h. */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 $ac_includes_default
5061 #include <$ac_header>
5062 _ACEOF
5063 rm -f conftest.$ac_objext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5065 (eval $ac_compile) 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } &&
5072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 (eval $ac_try) 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; } &&
5078 { ac_try='test -s conftest.$ac_objext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080 (eval $ac_try) 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 ac_header_compiler=yes
5085 else
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5089 ac_header_compiler=no
5091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5093 echo "${ECHO_T}$ac_header_compiler" >&6
5095 # Is the header present?
5096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5098 cat >conftest.$ac_ext <<_ACEOF
5099 /* confdefs.h. */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5104 #include <$ac_header>
5105 _ACEOF
5106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5108 ac_status=$?
5109 grep -v '^ *+' conftest.er1 >conftest.err
5110 rm -f conftest.er1
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } >/dev/null; then
5114 if test -s conftest.err; then
5115 ac_cpp_err=$ac_c_preproc_warn_flag
5116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5117 else
5118 ac_cpp_err=
5120 else
5121 ac_cpp_err=yes
5123 if test -z "$ac_cpp_err"; then
5124 ac_header_preproc=yes
5125 else
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5129 ac_header_preproc=no
5131 rm -f conftest.err conftest.$ac_ext
5132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5133 echo "${ECHO_T}$ac_header_preproc" >&6
5135 # So? What about this header?
5136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5137 yes:no: )
5138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5142 ac_header_preproc=yes
5144 no:yes:* )
5145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5158 cat <<\_ASBOX
5159 ## ------------------------------------------------------ ##
5160 ## Report this to the GNU Fortran Runtime Library lists. ##
5161 ## ------------------------------------------------------ ##
5162 _ASBOX
5164 sed "s/^/$as_me: WARNING: /" >&2
5166 esac
5167 echo "$as_me:$LINENO: checking for $ac_header" >&5
5168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 eval "$as_ac_Header=\$ac_header_preproc"
5174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5179 cat >>confdefs.h <<_ACEOF
5180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5181 _ACEOF
5185 done
5188 for ac_func in getpagesize
5190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5191 echo "$as_me:$LINENO: checking for $ac_func" >&5
5192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5193 if eval "test \"\${$as_ac_var+set}\" = set"; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 else
5196 cat >conftest.$ac_ext <<_ACEOF
5197 /* confdefs.h. */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5204 #define $ac_func innocuous_$ac_func
5206 /* System header to define __stub macros and hopefully few prototypes,
5207 which can conflict with char $ac_func (); below.
5208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5209 <limits.h> exists even on freestanding compilers. */
5211 #ifdef __STDC__
5212 # include <limits.h>
5213 #else
5214 # include <assert.h>
5215 #endif
5217 #undef $ac_func
5219 /* Override any gcc2 internal prototype to avoid an error. */
5220 #ifdef __cplusplus
5221 extern "C"
5223 #endif
5224 /* We use char because int might match the return type of a gcc2
5225 builtin and then its argument prototype would still apply. */
5226 char $ac_func ();
5227 /* The GNU C library defines this for functions which it implements
5228 to always fail with ENOSYS. Some functions are actually named
5229 something starting with __ and the normal name is an alias. */
5230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5231 choke me
5232 #else
5233 char (*f) () = $ac_func;
5234 #endif
5235 #ifdef __cplusplus
5237 #endif
5240 main ()
5242 return f != $ac_func;
5244 return 0;
5246 _ACEOF
5247 rm -f conftest.$ac_objext conftest$ac_exeext
5248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5249 (eval $ac_link) 2>conftest.er1
5250 ac_status=$?
5251 grep -v '^ *+' conftest.er1 >conftest.err
5252 rm -f conftest.er1
5253 cat conftest.err >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } &&
5256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 (eval $ac_try) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; } &&
5262 { ac_try='test -s conftest$ac_exeext'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 (eval $ac_try) 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; }; then
5268 eval "$as_ac_var=yes"
5269 else
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 eval "$as_ac_var=no"
5275 rm -f conftest.err conftest.$ac_objext \
5276 conftest$ac_exeext conftest.$ac_ext
5278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5280 if test `eval echo '${'$as_ac_var'}'` = yes; then
5281 cat >>confdefs.h <<_ACEOF
5282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5283 _ACEOF
5286 done
5288 echo "$as_me:$LINENO: checking for working mmap" >&5
5289 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5290 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 if test "$cross_compiling" = yes; then
5294 ac_cv_func_mmap_fixed_mapped=no
5295 else
5296 cat >conftest.$ac_ext <<_ACEOF
5297 /* confdefs.h. */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302 $ac_includes_default
5303 /* malloc might have been renamed as rpl_malloc. */
5304 #undef malloc
5306 /* Thanks to Mike Haertel and Jim Avera for this test.
5307 Here is a matrix of mmap possibilities:
5308 mmap private not fixed
5309 mmap private fixed at somewhere currently unmapped
5310 mmap private fixed at somewhere already mapped
5311 mmap shared not fixed
5312 mmap shared fixed at somewhere currently unmapped
5313 mmap shared fixed at somewhere already mapped
5314 For private mappings, we should verify that changes cannot be read()
5315 back from the file, nor mmap's back from the file at a different
5316 address. (There have been systems where private was not correctly
5317 implemented like the infamous i386 svr4.0, and systems where the
5318 VM page cache was not coherent with the file system buffer cache
5319 like early versions of FreeBSD and possibly contemporary NetBSD.)
5320 For shared mappings, we should conversely verify that changes get
5321 propagated back to all the places they're supposed to be.
5323 Grep wants private fixed already mapped.
5324 The main things grep needs to know about mmap are:
5325 * does it exist and is it safe to write into the mmap'd area
5326 * how to use it (BSD variants) */
5328 #include <fcntl.h>
5329 #include <sys/mman.h>
5331 #if !STDC_HEADERS && !HAVE_STDLIB_H
5332 char *malloc ();
5333 #endif
5335 /* This mess was copied from the GNU getpagesize.h. */
5336 #if !HAVE_GETPAGESIZE
5337 /* Assume that all systems that can run configure have sys/param.h. */
5338 # if !HAVE_SYS_PARAM_H
5339 # define HAVE_SYS_PARAM_H 1
5340 # endif
5342 # ifdef _SC_PAGESIZE
5343 # define getpagesize() sysconf(_SC_PAGESIZE)
5344 # else /* no _SC_PAGESIZE */
5345 # if HAVE_SYS_PARAM_H
5346 # include <sys/param.h>
5347 # ifdef EXEC_PAGESIZE
5348 # define getpagesize() EXEC_PAGESIZE
5349 # else /* no EXEC_PAGESIZE */
5350 # ifdef NBPG
5351 # define getpagesize() NBPG * CLSIZE
5352 # ifndef CLSIZE
5353 # define CLSIZE 1
5354 # endif /* no CLSIZE */
5355 # else /* no NBPG */
5356 # ifdef NBPC
5357 # define getpagesize() NBPC
5358 # else /* no NBPC */
5359 # ifdef PAGESIZE
5360 # define getpagesize() PAGESIZE
5361 # endif /* PAGESIZE */
5362 # endif /* no NBPC */
5363 # endif /* no NBPG */
5364 # endif /* no EXEC_PAGESIZE */
5365 # else /* no HAVE_SYS_PARAM_H */
5366 # define getpagesize() 8192 /* punt totally */
5367 # endif /* no HAVE_SYS_PARAM_H */
5368 # endif /* no _SC_PAGESIZE */
5370 #endif /* no HAVE_GETPAGESIZE */
5373 main ()
5375 char *data, *data2, *data3;
5376 int i, pagesize;
5377 int fd;
5379 pagesize = getpagesize ();
5381 /* First, make a file with some known garbage in it. */
5382 data = (char *) malloc (pagesize);
5383 if (!data)
5384 exit (1);
5385 for (i = 0; i < pagesize; ++i)
5386 *(data + i) = rand ();
5387 umask (0);
5388 fd = creat ("conftest.mmap", 0600);
5389 if (fd < 0)
5390 exit (1);
5391 if (write (fd, data, pagesize) != pagesize)
5392 exit (1);
5393 close (fd);
5395 /* Next, try to mmap the file at a fixed address which already has
5396 something else allocated at it. If we can, also make sure that
5397 we see the same garbage. */
5398 fd = open ("conftest.mmap", O_RDWR);
5399 if (fd < 0)
5400 exit (1);
5401 data2 = (char *) malloc (2 * pagesize);
5402 if (!data2)
5403 exit (1);
5404 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5405 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5406 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5407 exit (1);
5408 for (i = 0; i < pagesize; ++i)
5409 if (*(data + i) != *(data2 + i))
5410 exit (1);
5412 /* Finally, make sure that changes to the mapped area do not
5413 percolate back to the file as seen by read(). (This is a bug on
5414 some variants of i386 svr4.0.) */
5415 for (i = 0; i < pagesize; ++i)
5416 *(data2 + i) = *(data2 + i) + 1;
5417 data3 = (char *) malloc (pagesize);
5418 if (!data3)
5419 exit (1);
5420 if (read (fd, data3, pagesize) != pagesize)
5421 exit (1);
5422 for (i = 0; i < pagesize; ++i)
5423 if (*(data + i) != *(data3 + i))
5424 exit (1);
5425 close (fd);
5426 exit (0);
5428 _ACEOF
5429 rm -f conftest$ac_exeext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5431 (eval $ac_link) 2>&5
5432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 ac_cv_func_mmap_fixed_mapped=yes
5441 else
5442 echo "$as_me: program exited with status $ac_status" >&5
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5446 ( exit $ac_status )
5447 ac_cv_func_mmap_fixed_mapped=no
5449 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5452 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5453 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5454 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5456 cat >>confdefs.h <<\_ACEOF
5457 #define HAVE_MMAP 1
5458 _ACEOF
5461 rm -f conftest.mmap
5463 echo "$as_me:$LINENO: checking for off_t" >&5
5464 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5465 if test "${ac_cv_type_off_t+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468 cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h. */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 $ac_includes_default
5476 main ()
5478 if ((off_t *) 0)
5479 return 0;
5480 if (sizeof (off_t))
5481 return 0;
5483 return 0;
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488 (eval $ac_compile) 2>conftest.er1
5489 ac_status=$?
5490 grep -v '^ *+' conftest.er1 >conftest.err
5491 rm -f conftest.er1
5492 cat conftest.err >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 (eval $ac_try) 2>&5
5498 ac_status=$?
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; } &&
5501 { ac_try='test -s conftest.$ac_objext'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 (eval $ac_try) 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }; then
5507 ac_cv_type_off_t=yes
5508 else
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 ac_cv_type_off_t=no
5514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5516 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5517 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5518 if test $ac_cv_type_off_t = yes; then
5520 else
5522 cat >>confdefs.h <<_ACEOF
5523 #define off_t long
5524 _ACEOF
5529 # check header files
5530 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5531 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5532 if test "${ac_cv_header_stdc+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 else
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 #include <stdlib.h>
5542 #include <stdarg.h>
5543 #include <string.h>
5544 #include <float.h>
5547 main ()
5551 return 0;
5553 _ACEOF
5554 rm -f conftest.$ac_objext
5555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5556 (eval $ac_compile) 2>conftest.er1
5557 ac_status=$?
5558 grep -v '^ *+' conftest.er1 >conftest.err
5559 rm -f conftest.er1
5560 cat conftest.err >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } &&
5563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565 (eval $ac_try) 2>&5
5566 ac_status=$?
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; } &&
5569 { ac_try='test -s conftest.$ac_objext'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571 (eval $ac_try) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; }; then
5575 ac_cv_header_stdc=yes
5576 else
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5580 ac_cv_header_stdc=no
5582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5584 if test $ac_cv_header_stdc = yes; then
5585 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5586 cat >conftest.$ac_ext <<_ACEOF
5587 /* confdefs.h. */
5588 _ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5592 #include <string.h>
5594 _ACEOF
5595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5596 $EGREP "memchr" >/dev/null 2>&1; then
5598 else
5599 ac_cv_header_stdc=no
5601 rm -f conftest*
5605 if test $ac_cv_header_stdc = yes; then
5606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5607 cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h. */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 #include <stdlib.h>
5615 _ACEOF
5616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5617 $EGREP "free" >/dev/null 2>&1; then
5619 else
5620 ac_cv_header_stdc=no
5622 rm -f conftest*
5626 if test $ac_cv_header_stdc = yes; then
5627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5628 if test "$cross_compiling" = yes; then
5630 else
5631 cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h. */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 #include <ctype.h>
5638 #if ((' ' & 0x0FF) == 0x020)
5639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5641 #else
5642 # define ISLOWER(c) \
5643 (('a' <= (c) && (c) <= 'i') \
5644 || ('j' <= (c) && (c) <= 'r') \
5645 || ('s' <= (c) && (c) <= 'z'))
5646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5647 #endif
5649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5651 main ()
5653 int i;
5654 for (i = 0; i < 256; i++)
5655 if (XOR (islower (i), ISLOWER (i))
5656 || toupper (i) != TOUPPER (i))
5657 exit(2);
5658 exit (0);
5660 _ACEOF
5661 rm -f conftest$ac_exeext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5663 (eval $ac_link) 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 (eval $ac_try) 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5673 else
5674 echo "$as_me: program exited with status $ac_status" >&5
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5678 ( exit $ac_status )
5679 ac_cv_header_stdc=no
5681 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5685 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5686 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5687 if test $ac_cv_header_stdc = yes; then
5689 cat >>confdefs.h <<\_ACEOF
5690 #define STDC_HEADERS 1
5691 _ACEOF
5701 for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h
5703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5705 echo "$as_me:$LINENO: checking for $ac_header" >&5
5706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5712 else
5713 # Is the header compilable?
5714 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5716 cat >conftest.$ac_ext <<_ACEOF
5717 /* confdefs.h. */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5722 $ac_includes_default
5723 #include <$ac_header>
5724 _ACEOF
5725 rm -f conftest.$ac_objext
5726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727 (eval $ac_compile) 2>conftest.er1
5728 ac_status=$?
5729 grep -v '^ *+' conftest.er1 >conftest.err
5730 rm -f conftest.er1
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } &&
5734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 (eval $ac_try) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; } &&
5740 { ac_try='test -s conftest.$ac_objext'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 ac_header_compiler=yes
5747 else
5748 echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5751 ac_header_compiler=no
5753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5755 echo "${ECHO_T}$ac_header_compiler" >&6
5757 # Is the header present?
5758 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h. */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 #include <$ac_header>
5767 _ACEOF
5768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } >/dev/null; then
5776 if test -s conftest.err; then
5777 ac_cpp_err=$ac_c_preproc_warn_flag
5778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5779 else
5780 ac_cpp_err=
5782 else
5783 ac_cpp_err=yes
5785 if test -z "$ac_cpp_err"; then
5786 ac_header_preproc=yes
5787 else
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 ac_header_preproc=no
5793 rm -f conftest.err conftest.$ac_ext
5794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5795 echo "${ECHO_T}$ac_header_preproc" >&6
5797 # So? What about this header?
5798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5799 yes:no: )
5800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5804 ac_header_preproc=yes
5806 no:yes:* )
5807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5820 cat <<\_ASBOX
5821 ## ------------------------------------------------------ ##
5822 ## Report this to the GNU Fortran Runtime Library lists. ##
5823 ## ------------------------------------------------------ ##
5824 _ASBOX
5826 sed "s/^/$as_me: WARNING: /" >&2
5828 esac
5829 echo "$as_me:$LINENO: checking for $ac_header" >&5
5830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834 eval "$as_ac_Header=\$ac_header_preproc"
5836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5841 cat >>confdefs.h <<_ACEOF
5842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5843 _ACEOF
5847 done
5854 for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
5856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5858 echo "$as_me:$LINENO: checking for $ac_header" >&5
5859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5865 else
5866 # Is the header compilable?
5867 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5869 cat >conftest.$ac_ext <<_ACEOF
5870 /* confdefs.h. */
5871 _ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 $ac_includes_default
5876 #include <$ac_header>
5877 _ACEOF
5878 rm -f conftest.$ac_objext
5879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5880 (eval $ac_compile) 2>conftest.er1
5881 ac_status=$?
5882 grep -v '^ *+' conftest.er1 >conftest.err
5883 rm -f conftest.er1
5884 cat conftest.err >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } &&
5887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 (eval $ac_try) 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; } &&
5893 { ac_try='test -s conftest.$ac_objext'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 (eval $ac_try) 2>&5
5896 ac_status=$?
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; }; then
5899 ac_header_compiler=yes
5900 else
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5904 ac_header_compiler=no
5906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5908 echo "${ECHO_T}$ac_header_compiler" >&6
5910 # Is the header present?
5911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5913 cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h. */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 #include <$ac_header>
5920 _ACEOF
5921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5923 ac_status=$?
5924 grep -v '^ *+' conftest.er1 >conftest.err
5925 rm -f conftest.er1
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } >/dev/null; then
5929 if test -s conftest.err; then
5930 ac_cpp_err=$ac_c_preproc_warn_flag
5931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5932 else
5933 ac_cpp_err=
5935 else
5936 ac_cpp_err=yes
5938 if test -z "$ac_cpp_err"; then
5939 ac_header_preproc=yes
5940 else
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5944 ac_header_preproc=no
5946 rm -f conftest.err conftest.$ac_ext
5947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5948 echo "${ECHO_T}$ac_header_preproc" >&6
5950 # So? What about this header?
5951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5952 yes:no: )
5953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5957 ac_header_preproc=yes
5959 no:yes:* )
5960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5973 cat <<\_ASBOX
5974 ## ------------------------------------------------------ ##
5975 ## Report this to the GNU Fortran Runtime Library lists. ##
5976 ## ------------------------------------------------------ ##
5977 _ASBOX
5979 sed "s/^/$as_me: WARNING: /" >&2
5981 esac
5982 echo "$as_me:$LINENO: checking for $ac_header" >&5
5983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 else
5987 eval "$as_ac_Header=\$ac_header_preproc"
5989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5994 cat >>confdefs.h <<_ACEOF
5995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5996 _ACEOF
6000 done
6002 if test "${ac_cv_header_complex_h+set}" = set; then
6003 echo "$as_me:$LINENO: checking for complex.h" >&5
6004 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6005 if test "${ac_cv_header_complex_h+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6009 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6010 else
6011 # Is the header compilable?
6012 echo "$as_me:$LINENO: checking complex.h usability" >&5
6013 echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6014 cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h. */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 $ac_includes_default
6021 #include <complex.h>
6022 _ACEOF
6023 rm -f conftest.$ac_objext
6024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6025 (eval $ac_compile) 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } &&
6032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034 (eval $ac_try) 2>&5
6035 ac_status=$?
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; } &&
6038 { ac_try='test -s conftest.$ac_objext'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 (eval $ac_try) 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; }; then
6044 ac_header_compiler=yes
6045 else
6046 echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6049 ac_header_compiler=no
6051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6053 echo "${ECHO_T}$ac_header_compiler" >&6
6055 # Is the header present?
6056 echo "$as_me:$LINENO: checking complex.h presence" >&5
6057 echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6058 cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h. */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6064 #include <complex.h>
6065 _ACEOF
6066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } >/dev/null; then
6074 if test -s conftest.err; then
6075 ac_cpp_err=$ac_c_preproc_warn_flag
6076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6077 else
6078 ac_cpp_err=
6080 else
6081 ac_cpp_err=yes
6083 if test -z "$ac_cpp_err"; then
6084 ac_header_preproc=yes
6085 else
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6089 ac_header_preproc=no
6091 rm -f conftest.err conftest.$ac_ext
6092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6093 echo "${ECHO_T}$ac_header_preproc" >&6
6095 # So? What about this header?
6096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6097 yes:no: )
6098 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6099 echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6100 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6101 echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6102 ac_header_preproc=yes
6104 no:yes:* )
6105 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6106 echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6107 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
6108 echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
6109 { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6110 echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6111 { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5
6112 echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;}
6113 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6114 echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6115 { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6116 echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6118 cat <<\_ASBOX
6119 ## ------------------------------------------------------ ##
6120 ## Report this to the GNU Fortran Runtime Library lists. ##
6121 ## ------------------------------------------------------ ##
6122 _ASBOX
6124 sed "s/^/$as_me: WARNING: /" >&2
6126 esac
6127 echo "$as_me:$LINENO: checking for complex.h" >&5
6128 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6129 if test "${ac_cv_header_complex_h+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132 ac_cv_header_complex_h=$ac_header_preproc
6134 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6135 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6138 if test $ac_cv_header_complex_h = yes; then
6140 cat >>confdefs.h <<\_ACEOF
6141 #define HAVE_COMPLEX_H 1
6142 _ACEOF
6148 # Check for complex math functions
6149 echo "$as_me:$LINENO: checking for csin in -lm" >&5
6150 echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
6151 if test "${ac_cv_lib_m_csin+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154 ac_check_lib_save_LIBS=$LIBS
6155 LIBS="-lm $LIBS"
6156 cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h. */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6163 /* Override any gcc2 internal prototype to avoid an error. */
6164 #ifdef __cplusplus
6165 extern "C"
6166 #endif
6167 /* We use char because int might match the return type of a gcc2
6168 builtin and then its argument prototype would still apply. */
6169 char csin ();
6171 main ()
6173 csin ();
6175 return 0;
6177 _ACEOF
6178 rm -f conftest.$ac_objext conftest$ac_exeext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6180 (eval $ac_link) 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; } &&
6193 { ac_try='test -s conftest$ac_exeext'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6199 ac_cv_lib_m_csin=yes
6200 else
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6204 ac_cv_lib_m_csin=no
6206 rm -f conftest.err conftest.$ac_objext \
6207 conftest$ac_exeext conftest.$ac_ext
6208 LIBS=$ac_check_lib_save_LIBS
6210 echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
6211 echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
6212 if test $ac_cv_lib_m_csin = yes; then
6213 need_math="no"
6214 else
6215 need_math="yes"
6219 # Check for library functions.
6222 for ac_func in getrusage times
6224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6225 echo "$as_me:$LINENO: checking for $ac_func" >&5
6226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6227 if eval "test \"\${$as_ac_var+set}\" = set"; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230 cat >conftest.$ac_ext <<_ACEOF
6231 /* confdefs.h. */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6238 #define $ac_func innocuous_$ac_func
6240 /* System header to define __stub macros and hopefully few prototypes,
6241 which can conflict with char $ac_func (); below.
6242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6243 <limits.h> exists even on freestanding compilers. */
6245 #ifdef __STDC__
6246 # include <limits.h>
6247 #else
6248 # include <assert.h>
6249 #endif
6251 #undef $ac_func
6253 /* Override any gcc2 internal prototype to avoid an error. */
6254 #ifdef __cplusplus
6255 extern "C"
6257 #endif
6258 /* We use char because int might match the return type of a gcc2
6259 builtin and then its argument prototype would still apply. */
6260 char $ac_func ();
6261 /* The GNU C library defines this for functions which it implements
6262 to always fail with ENOSYS. Some functions are actually named
6263 something starting with __ and the normal name is an alias. */
6264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6265 choke me
6266 #else
6267 char (*f) () = $ac_func;
6268 #endif
6269 #ifdef __cplusplus
6271 #endif
6274 main ()
6276 return f != $ac_func;
6278 return 0;
6280 _ACEOF
6281 rm -f conftest.$ac_objext conftest$ac_exeext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6283 (eval $ac_link) 2>conftest.er1
6284 ac_status=$?
6285 grep -v '^ *+' conftest.er1 >conftest.err
6286 rm -f conftest.er1
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 (eval $ac_try) 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; } &&
6296 { ac_try='test -s conftest$ac_exeext'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 (eval $ac_try) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 eval "$as_ac_var=yes"
6303 else
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6307 eval "$as_ac_var=no"
6309 rm -f conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext conftest.$ac_ext
6312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6314 if test `eval echo '${'$as_ac_var'}'` = yes; then
6315 cat >>confdefs.h <<_ACEOF
6316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6317 _ACEOF
6320 done
6323 # Check for some C99 functions
6324 echo "$as_me:$LINENO: checking for round in -lm" >&5
6325 echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
6326 if test "${ac_cv_lib_m_round+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329 ac_check_lib_save_LIBS=$LIBS
6330 LIBS="-lm $LIBS"
6331 cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h. */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6338 /* Override any gcc2 internal prototype to avoid an error. */
6339 #ifdef __cplusplus
6340 extern "C"
6341 #endif
6342 /* We use char because int might match the return type of a gcc2
6343 builtin and then its argument prototype would still apply. */
6344 char round ();
6346 main ()
6348 round ();
6350 return 0;
6352 _ACEOF
6353 rm -f conftest.$ac_objext conftest$ac_exeext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6355 (eval $ac_link) 2>conftest.er1
6356 ac_status=$?
6357 grep -v '^ *+' conftest.er1 >conftest.err
6358 rm -f conftest.er1
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } &&
6362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 (eval $ac_try) 2>&5
6365 ac_status=$?
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; } &&
6368 { ac_try='test -s conftest$ac_exeext'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 (eval $ac_try) 2>&5
6371 ac_status=$?
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }; then
6374 ac_cv_lib_m_round=yes
6375 else
6376 echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6379 ac_cv_lib_m_round=no
6381 rm -f conftest.err conftest.$ac_objext \
6382 conftest$ac_exeext conftest.$ac_ext
6383 LIBS=$ac_check_lib_save_LIBS
6385 echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
6386 echo "${ECHO_T}$ac_cv_lib_m_round" >&6
6387 if test $ac_cv_lib_m_round = yes; then
6389 cat >>confdefs.h <<\_ACEOF
6390 #define HAVE_ROUND 1
6391 _ACEOF
6395 echo "$as_me:$LINENO: checking for roundf in -lm" >&5
6396 echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
6397 if test "${ac_cv_lib_m_roundf+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400 ac_check_lib_save_LIBS=$LIBS
6401 LIBS="-lm $LIBS"
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6409 /* Override any gcc2 internal prototype to avoid an error. */
6410 #ifdef __cplusplus
6411 extern "C"
6412 #endif
6413 /* We use char because int might match the return type of a gcc2
6414 builtin and then its argument prototype would still apply. */
6415 char roundf ();
6417 main ()
6419 roundf ();
6421 return 0;
6423 _ACEOF
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; } &&
6439 { ac_try='test -s conftest$ac_exeext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 (eval $ac_try) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 ac_cv_lib_m_roundf=yes
6446 else
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 ac_cv_lib_m_roundf=no
6452 rm -f conftest.err conftest.$ac_objext \
6453 conftest$ac_exeext conftest.$ac_ext
6454 LIBS=$ac_check_lib_save_LIBS
6456 echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
6457 echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
6458 if test $ac_cv_lib_m_roundf = yes; then
6460 cat >>confdefs.h <<\_ACEOF
6461 #define HAVE_ROUNDF 1
6462 _ACEOF
6466 # And other IEEE math functions
6467 echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
6468 echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
6469 if test "${ac_cv_lib_m_nextafter+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472 ac_check_lib_save_LIBS=$LIBS
6473 LIBS="-lm $LIBS"
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h. */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6481 /* Override any gcc2 internal prototype to avoid an error. */
6482 #ifdef __cplusplus
6483 extern "C"
6484 #endif
6485 /* We use char because int might match the return type of a gcc2
6486 builtin and then its argument prototype would still apply. */
6487 char nextafter ();
6489 main ()
6491 nextafter ();
6493 return 0;
6495 _ACEOF
6496 rm -f conftest.$ac_objext conftest$ac_exeext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6498 (eval $ac_link) 2>conftest.er1
6499 ac_status=$?
6500 grep -v '^ *+' conftest.er1 >conftest.err
6501 rm -f conftest.er1
6502 cat conftest.err >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } &&
6505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; } &&
6511 { ac_try='test -s conftest$ac_exeext'
6512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 (eval $ac_try) 2>&5
6514 ac_status=$?
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; }; then
6517 ac_cv_lib_m_nextafter=yes
6518 else
6519 echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6522 ac_cv_lib_m_nextafter=no
6524 rm -f conftest.err conftest.$ac_objext \
6525 conftest$ac_exeext conftest.$ac_ext
6526 LIBS=$ac_check_lib_save_LIBS
6528 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
6529 echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
6530 if test $ac_cv_lib_m_nextafter = yes; then
6532 cat >>confdefs.h <<\_ACEOF
6533 #define HAVE_NEXTAFTER 1
6534 _ACEOF
6538 echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
6539 echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
6540 if test "${ac_cv_lib_m_nextafterf+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543 ac_check_lib_save_LIBS=$LIBS
6544 LIBS="-lm $LIBS"
6545 cat >conftest.$ac_ext <<_ACEOF
6546 /* confdefs.h. */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6552 /* Override any gcc2 internal prototype to avoid an error. */
6553 #ifdef __cplusplus
6554 extern "C"
6555 #endif
6556 /* We use char because int might match the return type of a gcc2
6557 builtin and then its argument prototype would still apply. */
6558 char nextafterf ();
6560 main ()
6562 nextafterf ();
6564 return 0;
6566 _ACEOF
6567 rm -f conftest.$ac_objext conftest$ac_exeext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6569 (eval $ac_link) 2>conftest.er1
6570 ac_status=$?
6571 grep -v '^ *+' conftest.er1 >conftest.err
6572 rm -f conftest.er1
6573 cat conftest.err >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } &&
6576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 (eval $ac_try) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; } &&
6582 { ac_try='test -s conftest$ac_exeext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 ac_cv_lib_m_nextafterf=yes
6589 else
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6593 ac_cv_lib_m_nextafterf=no
6595 rm -f conftest.err conftest.$ac_objext \
6596 conftest$ac_exeext conftest.$ac_ext
6597 LIBS=$ac_check_lib_save_LIBS
6599 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
6600 echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
6601 if test $ac_cv_lib_m_nextafterf = yes; then
6603 cat >>confdefs.h <<\_ACEOF
6604 #define HAVE_NEXTAFTERF 1
6605 _ACEOF
6610 # Let the user override this
6611 # Check whether --enable-cmath or --disable-cmath was given.
6612 if test "${enable_cmath+set}" = set; then
6613 enableval="$enable_cmath"
6614 need_math=$enableval
6616 if test "$need_math" = "yes"; then
6617 { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
6618 echo "$as_me: Including complex math functions in libgfor" >&6;};
6619 extra_math_obj='$(gfor_cmath_obj)'
6622 MATH_OBJ="$extra_math_obj"
6625 # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
6626 # for struct timezone, as you might think. We also need to check how
6627 # to call gettimeofday if we have it.
6628 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6629 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6630 if test "${ac_cv_header_time+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h. */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 #include <sys/types.h>
6640 #include <sys/time.h>
6641 #include <time.h>
6644 main ()
6646 if ((struct tm *) 0)
6647 return 0;
6649 return 0;
6651 _ACEOF
6652 rm -f conftest.$ac_objext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6654 (eval $ac_compile) 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } &&
6661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 (eval $ac_try) 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try='test -s conftest.$ac_objext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 (eval $ac_try) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 ac_cv_header_time=yes
6674 else
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6678 ac_cv_header_time=no
6680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6682 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6683 echo "${ECHO_T}$ac_cv_header_time" >&6
6684 if test $ac_cv_header_time = yes; then
6686 cat >>confdefs.h <<\_ACEOF
6687 #define TIME_WITH_SYS_TIME 1
6688 _ACEOF
6694 for ac_func in gettimeofday
6696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6697 echo "$as_me:$LINENO: checking for $ac_func" >&5
6698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6699 if eval "test \"\${$as_ac_var+set}\" = set"; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702 cat >conftest.$ac_ext <<_ACEOF
6703 /* confdefs.h. */
6704 _ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h. */
6708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6710 #define $ac_func innocuous_$ac_func
6712 /* System header to define __stub macros and hopefully few prototypes,
6713 which can conflict with char $ac_func (); below.
6714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6715 <limits.h> exists even on freestanding compilers. */
6717 #ifdef __STDC__
6718 # include <limits.h>
6719 #else
6720 # include <assert.h>
6721 #endif
6723 #undef $ac_func
6725 /* Override any gcc2 internal prototype to avoid an error. */
6726 #ifdef __cplusplus
6727 extern "C"
6729 #endif
6730 /* We use char because int might match the return type of a gcc2
6731 builtin and then its argument prototype would still apply. */
6732 char $ac_func ();
6733 /* The GNU C library defines this for functions which it implements
6734 to always fail with ENOSYS. Some functions are actually named
6735 something starting with __ and the normal name is an alias. */
6736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6737 choke me
6738 #else
6739 char (*f) () = $ac_func;
6740 #endif
6741 #ifdef __cplusplus
6743 #endif
6746 main ()
6748 return f != $ac_func;
6750 return 0;
6752 _ACEOF
6753 rm -f conftest.$ac_objext conftest$ac_exeext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6755 (eval $ac_link) 2>conftest.er1
6756 ac_status=$?
6757 grep -v '^ *+' conftest.er1 >conftest.err
6758 rm -f conftest.er1
6759 cat conftest.err >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } &&
6762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764 (eval $ac_try) 2>&5
6765 ac_status=$?
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; } &&
6768 { ac_try='test -s conftest$ac_exeext'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 (eval $ac_try) 2>&5
6771 ac_status=$?
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; }; then
6774 eval "$as_ac_var=yes"
6775 else
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6779 eval "$as_ac_var=no"
6781 rm -f conftest.err conftest.$ac_objext \
6782 conftest$ac_exeext conftest.$ac_ext
6784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6786 if test `eval echo '${'$as_ac_var'}'` = yes; then
6787 cat >>confdefs.h <<_ACEOF
6788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6789 _ACEOF
6792 done
6794 if test "$ac_cv_func_gettimeofday" = yes; then
6795 echo "$as_me:$LINENO: checking for struct timezone" >&5
6796 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
6797 if test "${gfor_cv_struct_timezone+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800 cat >conftest.$ac_ext <<_ACEOF
6801 /* confdefs.h. */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806 #include <sys/time.h>
6808 main ()
6810 struct timezone tz;
6812 return 0;
6814 _ACEOF
6815 rm -f conftest.$ac_objext
6816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817 (eval $ac_compile) 2>conftest.er1
6818 ac_status=$?
6819 grep -v '^ *+' conftest.er1 >conftest.err
6820 rm -f conftest.er1
6821 cat conftest.err >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
6824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 (eval $ac_try) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; } &&
6830 { ac_try='test -s conftest.$ac_objext'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 (eval $ac_try) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; }; then
6836 gfor_cv_struct_timezone=yes
6837 else
6838 echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6841 gfor_cv_struct_timezone=no
6843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6845 echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
6846 echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
6847 if test $gfor_cv_struct_timezone = yes; then
6848 if test "$cross_compiling" = yes; then
6849 gfor_have_struct_timezone=yes
6850 else
6851 cat >conftest.$ac_ext <<_ACEOF
6852 /* confdefs.h. */
6853 _ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6858 #ifdef TIME_WITH_SYS_TIME
6859 #include <sys/time.h>
6860 #include <time.h>
6861 #else
6862 #ifdef HAVE_SYS_TIME_H
6863 #include <sys/time.h>
6864 #else
6865 #include <time.h>
6866 #endif
6867 #endif
6868 main ()
6870 struct timeval time;
6871 struct timezone dummy;
6872 if (gettimeofday (&time, &dummy))
6873 exit (1);
6874 else
6875 exit (0);
6877 _ACEOF
6878 rm -f conftest$ac_exeext
6879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6880 (eval $ac_link) 2>&5
6881 ac_status=$?
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 (eval $ac_try) 2>&5
6886 ac_status=$?
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; }; then
6889 gfor_have_struct_timezone=yes
6890 else
6891 echo "$as_me: program exited with status $ac_status" >&5
6892 echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6895 ( exit $ac_status )
6896 gfor_have_struct_timezone=no
6898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6900 if test $gfor_have_struct_timezone = yes; then
6902 cat >>confdefs.h <<\_ACEOF
6903 #define HAVE_TIMEZONE 1
6904 _ACEOF
6909 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
6910 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
6911 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h. */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6921 #ifdef TIME_WITH_SYS_TIME
6922 #include <sys/time.h>
6923 #include <time.h>
6924 #else
6925 #ifdef HAVE_SYS_TIME_H
6926 #include <sys/time.h>
6927 #else
6928 #include <time.h>
6929 #endif
6930 #endif
6933 main ()
6936 struct timeval time;
6937 #ifdef HAVE_TIMEZONE
6938 struct timezone dummy;
6939 #define DUMMY &dummy
6940 #else
6941 #define DUMMY NULL
6942 #endif
6943 gettimeofday (&time, DUMMY);
6945 return 0;
6947 _ACEOF
6948 rm -f conftest.$ac_objext conftest$ac_exeext
6949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6950 (eval $ac_link) 2>conftest.er1
6951 ac_status=$?
6952 grep -v '^ *+' conftest.er1 >conftest.err
6953 rm -f conftest.er1
6954 cat conftest.err >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } &&
6957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 (eval $ac_try) 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; } &&
6963 { ac_try='test -s conftest$ac_exeext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 (eval $ac_try) 2>&5
6966 ac_status=$?
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6969 emacs_cv_gettimeofday_two_arguments=yes
6970 else
6971 echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6974 emacs_cv_gettimeofday_two_arguments=no
6976 rm -f conftest.err conftest.$ac_objext \
6977 conftest$ac_exeext conftest.$ac_ext
6979 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
6980 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
6981 if test $emacs_cv_gettimeofday_two_arguments = no; then
6983 cat >>confdefs.h <<\_ACEOF
6984 #define GETTIMEOFDAY_ONE_ARGUMENT 1
6985 _ACEOF
6990 cat >confcache <<\_ACEOF
6991 # This file is a shell script that caches the results of configure
6992 # tests run on this system so they can be shared between configure
6993 # scripts and configure runs, see configure's option --config-cache.
6994 # It is not useful on other systems. If it contains results you don't
6995 # want to keep, you may remove or edit it.
6997 # config.status only pays attention to the cache file if you give it
6998 # the --recheck option to rerun configure.
7000 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7001 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7002 # following values.
7004 _ACEOF
7006 # The following way of writing the cache mishandles newlines in values,
7007 # but we know of no workaround that is simple, portable, and efficient.
7008 # So, don't put newlines in cache variables' values.
7009 # Ultrix sh set writes to stderr and can't be redirected directly,
7010 # and sets the high bit in the cache file unless we assign to the vars.
7012 (set) 2>&1 |
7013 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7014 *ac_space=\ *)
7015 # `set' does not quote correctly, so add quotes (double-quote
7016 # substitution turns \\\\ into \\, and sed turns \\ into \).
7017 sed -n \
7018 "s/'/'\\\\''/g;
7019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7022 # `set' quotes correctly as required by POSIX, so do not add quotes.
7023 sed -n \
7024 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7026 esac;
7028 sed '
7029 t clear
7030 : clear
7031 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7032 t end
7033 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7034 : end' >>confcache
7035 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7036 if test -w $cache_file; then
7037 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7038 cat confcache >$cache_file
7039 else
7040 echo "not updating unwritable cache $cache_file"
7043 rm -f confcache
7045 if test ${multilib} = yes; then
7046 multilib_arg="--enable-multilib"
7047 else
7048 multilib_arg=
7051 # Write our Makefile.
7052 ac_config_files="$ac_config_files Makefile"
7054 cat >confcache <<\_ACEOF
7055 # This file is a shell script that caches the results of configure
7056 # tests run on this system so they can be shared between configure
7057 # scripts and configure runs, see configure's option --config-cache.
7058 # It is not useful on other systems. If it contains results you don't
7059 # want to keep, you may remove or edit it.
7061 # config.status only pays attention to the cache file if you give it
7062 # the --recheck option to rerun configure.
7064 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7065 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7066 # following values.
7068 _ACEOF
7070 # The following way of writing the cache mishandles newlines in values,
7071 # but we know of no workaround that is simple, portable, and efficient.
7072 # So, don't put newlines in cache variables' values.
7073 # Ultrix sh set writes to stderr and can't be redirected directly,
7074 # and sets the high bit in the cache file unless we assign to the vars.
7076 (set) 2>&1 |
7077 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7078 *ac_space=\ *)
7079 # `set' does not quote correctly, so add quotes (double-quote
7080 # substitution turns \\\\ into \\, and sed turns \\ into \).
7081 sed -n \
7082 "s/'/'\\\\''/g;
7083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7086 # `set' quotes correctly as required by POSIX, so do not add quotes.
7087 sed -n \
7088 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7090 esac;
7092 sed '
7093 t clear
7094 : clear
7095 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7096 t end
7097 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7098 : end' >>confcache
7099 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7100 if test -w $cache_file; then
7101 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7102 cat confcache >$cache_file
7103 else
7104 echo "not updating unwritable cache $cache_file"
7107 rm -f confcache
7109 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7110 # Let make expand exec_prefix.
7111 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7113 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7114 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7115 # trailing colons and then remove the whole line if VPATH becomes empty
7116 # (actually we leave an empty line to preserve line numbers).
7117 if test "x$srcdir" = x.; then
7118 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7119 s/:*\$(srcdir):*/:/;
7120 s/:*\${srcdir}:*/:/;
7121 s/:*@srcdir@:*/:/;
7122 s/^\([^=]*=[ ]*\):*/\1/;
7123 s/:*$//;
7124 s/^[^=]*=[ ]*$//;
7128 DEFS=-DHAVE_CONFIG_H
7130 ac_libobjs=
7131 ac_ltlibobjs=
7132 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7133 # 1. Remove the extension, and $U if already installed.
7134 ac_i=`echo "$ac_i" |
7135 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7136 # 2. Add them.
7137 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7138 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7139 done
7140 LIBOBJS=$ac_libobjs
7142 LTLIBOBJS=$ac_ltlibobjs
7145 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7146 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7147 Usually this means the macro was only invoked conditionally." >&5
7148 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7149 Usually this means the macro was only invoked conditionally." >&2;}
7150 { (exit 1); exit 1; }; }
7153 : ${CONFIG_STATUS=./config.status}
7154 ac_clean_files_save=$ac_clean_files
7155 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7156 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7157 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7158 cat >$CONFIG_STATUS <<_ACEOF
7159 #! $SHELL
7160 # Generated by $as_me.
7161 # Run this file to recreate the current configuration.
7162 # Compiler output produced by configure, useful for debugging
7163 # configure, is in config.log if it exists.
7165 debug=false
7166 ac_cs_recheck=false
7167 ac_cs_silent=false
7168 SHELL=\${CONFIG_SHELL-$SHELL}
7169 _ACEOF
7171 cat >>$CONFIG_STATUS <<\_ACEOF
7172 ## --------------------- ##
7173 ## M4sh Initialization. ##
7174 ## --------------------- ##
7176 # Be Bourne compatible
7177 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7178 emulate sh
7179 NULLCMD=:
7180 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7181 # is contrary to our usage. Disable this feature.
7182 alias -g '${1+"$@"}'='"$@"'
7183 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7184 set -o posix
7186 DUALCASE=1; export DUALCASE # for MKS sh
7188 # Support unset when possible.
7189 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7190 as_unset=unset
7191 else
7192 as_unset=false
7196 # Work around bugs in pre-3.0 UWIN ksh.
7197 $as_unset ENV MAIL MAILPATH
7198 PS1='$ '
7199 PS2='> '
7200 PS4='+ '
7202 # NLS nuisances.
7203 for as_var in \
7204 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7205 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7206 LC_TELEPHONE LC_TIME
7208 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7209 eval $as_var=C; export $as_var
7210 else
7211 $as_unset $as_var
7213 done
7215 # Required to use basename.
7216 if expr a : '\(a\)' >/dev/null 2>&1; then
7217 as_expr=expr
7218 else
7219 as_expr=false
7222 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7223 as_basename=basename
7224 else
7225 as_basename=false
7229 # Name of the executable.
7230 as_me=`$as_basename "$0" ||
7231 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7232 X"$0" : 'X\(//\)$' \| \
7233 X"$0" : 'X\(/\)$' \| \
7234 . : '\(.\)' 2>/dev/null ||
7235 echo X/"$0" |
7236 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7237 /^X\/\(\/\/\)$/{ s//\1/; q; }
7238 /^X\/\(\/\).*/{ s//\1/; q; }
7239 s/.*/./; q'`
7242 # PATH needs CR, and LINENO needs CR and PATH.
7243 # Avoid depending upon Character Ranges.
7244 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7245 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7246 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7247 as_cr_digits='0123456789'
7248 as_cr_alnum=$as_cr_Letters$as_cr_digits
7250 # The user is always right.
7251 if test "${PATH_SEPARATOR+set}" != set; then
7252 echo "#! /bin/sh" >conf$$.sh
7253 echo "exit 0" >>conf$$.sh
7254 chmod +x conf$$.sh
7255 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7256 PATH_SEPARATOR=';'
7257 else
7258 PATH_SEPARATOR=:
7260 rm -f conf$$.sh
7264 as_lineno_1=$LINENO
7265 as_lineno_2=$LINENO
7266 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7267 test "x$as_lineno_1" != "x$as_lineno_2" &&
7268 test "x$as_lineno_3" = "x$as_lineno_2" || {
7269 # Find who we are. Look in the path if we contain no path at all
7270 # relative or not.
7271 case $0 in
7272 *[\\/]* ) as_myself=$0 ;;
7273 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7279 done
7282 esac
7283 # We did not find ourselves, most probably we were run as `sh COMMAND'
7284 # in which case we are not to be found in the path.
7285 if test "x$as_myself" = x; then
7286 as_myself=$0
7288 if test ! -f "$as_myself"; then
7289 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7290 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7291 { (exit 1); exit 1; }; }
7293 case $CONFIG_SHELL in
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for as_base in sh bash ksh sh5; do
7301 case $as_dir in
7303 if ("$as_dir/$as_base" -c '
7304 as_lineno_1=$LINENO
7305 as_lineno_2=$LINENO
7306 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7307 test "x$as_lineno_1" != "x$as_lineno_2" &&
7308 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7309 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7310 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7311 CONFIG_SHELL=$as_dir/$as_base
7312 export CONFIG_SHELL
7313 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7314 fi;;
7315 esac
7316 done
7317 done
7319 esac
7321 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7322 # uniformly replaced by the line number. The first 'sed' inserts a
7323 # line-number line before each line; the second 'sed' does the real
7324 # work. The second script uses 'N' to pair each line-number line
7325 # with the numbered line, and appends trailing '-' during
7326 # substitution so that $LINENO is not a special case at line end.
7327 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7328 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7329 sed '=' <$as_myself |
7330 sed '
7332 s,$,-,
7333 : loop
7334 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7335 t loop
7336 s,-$,,
7337 s,^['$as_cr_digits']*\n,,
7338 ' >$as_me.lineno &&
7339 chmod +x $as_me.lineno ||
7340 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7341 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7342 { (exit 1); exit 1; }; }
7344 # Don't try to exec as it changes $[0], causing all sort of problems
7345 # (the dirname of $[0] is not the place where we might find the
7346 # original and so on. Autoconf is especially sensible to this).
7347 . ./$as_me.lineno
7348 # Exit status is that of the last command.
7349 exit
7353 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7354 *c*,-n*) ECHO_N= ECHO_C='
7355 ' ECHO_T=' ' ;;
7356 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7357 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7358 esac
7360 if expr a : '\(a\)' >/dev/null 2>&1; then
7361 as_expr=expr
7362 else
7363 as_expr=false
7366 rm -f conf$$ conf$$.exe conf$$.file
7367 echo >conf$$.file
7368 if ln -s conf$$.file conf$$ 2>/dev/null; then
7369 # We could just check for DJGPP; but this test a) works b) is more generic
7370 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7371 if test -f conf$$.exe; then
7372 # Don't use ln at all; we don't have any links
7373 as_ln_s='cp -p'
7374 else
7375 as_ln_s='ln -s'
7377 elif ln conf$$.file conf$$ 2>/dev/null; then
7378 as_ln_s=ln
7379 else
7380 as_ln_s='cp -p'
7382 rm -f conf$$ conf$$.exe conf$$.file
7384 if mkdir -p . 2>/dev/null; then
7385 as_mkdir_p=:
7386 else
7387 test -d ./-p && rmdir ./-p
7388 as_mkdir_p=false
7391 as_executable_p="test -f"
7393 # Sed expression to map a string onto a valid CPP name.
7394 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7396 # Sed expression to map a string onto a valid variable name.
7397 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7400 # IFS
7401 # We need space, tab and new line, in precisely that order.
7402 as_nl='
7404 IFS=" $as_nl"
7406 # CDPATH.
7407 $as_unset CDPATH
7409 exec 6>&1
7411 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7412 # report actual input values of CONFIG_FILES etc. instead of their
7413 # values after options handling. Logging --version etc. is OK.
7414 exec 5>>config.log
7416 echo
7417 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7418 ## Running $as_me. ##
7419 _ASBOX
7420 } >&5
7421 cat >&5 <<_CSEOF
7423 This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
7424 generated by GNU Autoconf 2.59. Invocation command line was
7426 CONFIG_FILES = $CONFIG_FILES
7427 CONFIG_HEADERS = $CONFIG_HEADERS
7428 CONFIG_LINKS = $CONFIG_LINKS
7429 CONFIG_COMMANDS = $CONFIG_COMMANDS
7430 $ $0 $@
7432 _CSEOF
7433 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7434 echo >&5
7435 _ACEOF
7437 # Files that config.status was made for.
7438 if test -n "$ac_config_files"; then
7439 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7442 if test -n "$ac_config_headers"; then
7443 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7446 if test -n "$ac_config_links"; then
7447 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7450 if test -n "$ac_config_commands"; then
7451 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7454 cat >>$CONFIG_STATUS <<\_ACEOF
7456 ac_cs_usage="\
7457 \`$as_me' instantiates files from templates according to the
7458 current configuration.
7460 Usage: $0 [OPTIONS] [FILE]...
7462 -h, --help print this help, then exit
7463 -V, --version print version number, then exit
7464 -q, --quiet do not print progress messages
7465 -d, --debug don't remove temporary files
7466 --recheck update $as_me by reconfiguring in the same conditions
7467 --file=FILE[:TEMPLATE]
7468 instantiate the configuration file FILE
7469 --header=FILE[:TEMPLATE]
7470 instantiate the configuration header FILE
7472 Configuration files:
7473 $config_files
7475 Configuration headers:
7476 $config_headers
7478 Configuration commands:
7479 $config_commands
7481 Report bugs to <bug-autoconf@gnu.org>."
7482 _ACEOF
7484 cat >>$CONFIG_STATUS <<_ACEOF
7485 ac_cs_version="\\
7486 GNU Fortran Runtime Library config.status 0.2
7487 configured by $0, generated by GNU Autoconf 2.59,
7488 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7490 Copyright (C) 2003 Free Software Foundation, Inc.
7491 This config.status script is free software; the Free Software Foundation
7492 gives unlimited permission to copy, distribute and modify it."
7493 srcdir=$srcdir
7494 INSTALL="$INSTALL"
7495 _ACEOF
7497 cat >>$CONFIG_STATUS <<\_ACEOF
7498 # If no file are specified by the user, then we need to provide default
7499 # value. By we need to know if files were specified by the user.
7500 ac_need_defaults=:
7501 while test $# != 0
7503 case $1 in
7504 --*=*)
7505 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7506 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7507 ac_shift=:
7510 ac_option=$1
7511 ac_optarg=$2
7512 ac_shift=shift
7514 *) # This is not an option, so the user has probably given explicit
7515 # arguments.
7516 ac_option=$1
7517 ac_need_defaults=false;;
7518 esac
7520 case $ac_option in
7521 # Handling of the options.
7522 _ACEOF
7523 cat >>$CONFIG_STATUS <<\_ACEOF
7524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7525 ac_cs_recheck=: ;;
7526 --version | --vers* | -V )
7527 echo "$ac_cs_version"; exit 0 ;;
7528 --he | --h)
7529 # Conflict between --help and --header
7530 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7531 Try \`$0 --help' for more information." >&5
7532 echo "$as_me: error: ambiguous option: $1
7533 Try \`$0 --help' for more information." >&2;}
7534 { (exit 1); exit 1; }; };;
7535 --help | --hel | -h )
7536 echo "$ac_cs_usage"; exit 0 ;;
7537 --debug | --d* | -d )
7538 debug=: ;;
7539 --file | --fil | --fi | --f )
7540 $ac_shift
7541 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7542 ac_need_defaults=false;;
7543 --header | --heade | --head | --hea )
7544 $ac_shift
7545 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7546 ac_need_defaults=false;;
7547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7548 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7549 ac_cs_silent=: ;;
7551 # This is an error.
7552 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7553 Try \`$0 --help' for more information." >&5
7554 echo "$as_me: error: unrecognized option: $1
7555 Try \`$0 --help' for more information." >&2;}
7556 { (exit 1); exit 1; }; } ;;
7558 *) ac_config_targets="$ac_config_targets $1" ;;
7560 esac
7561 shift
7562 done
7564 ac_configure_extra_args=
7566 if $ac_cs_silent; then
7567 exec 6>/dev/null
7568 ac_configure_extra_args="$ac_configure_extra_args --silent"
7571 _ACEOF
7572 cat >>$CONFIG_STATUS <<_ACEOF
7573 if \$ac_cs_recheck; then
7574 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7575 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7578 _ACEOF
7580 cat >>$CONFIG_STATUS <<_ACEOF
7582 # INIT-COMMANDS section.
7586 srcdir="$srcdir"
7587 host="$host"
7588 target="$target"
7589 with_multisubdir="$with_multisubdir"
7590 with_multisrctop="$with_multisrctop"
7591 with_target_subdir="$with_target_subdir"
7592 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7593 multi_basedir="$multi_basedir"
7594 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7595 CC="$CC"
7597 _ACEOF
7601 cat >>$CONFIG_STATUS <<\_ACEOF
7602 for ac_config_target in $ac_config_targets
7604 case "$ac_config_target" in
7605 # Handling of arguments.
7606 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7607 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7608 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7609 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7610 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7611 { (exit 1); exit 1; }; };;
7612 esac
7613 done
7615 # If the user did not use the arguments to specify the items to instantiate,
7616 # then the envvar interface is used. Set only those that are not.
7617 # We use the long form for the default assignment because of an extremely
7618 # bizarre bug on SunOS 4.1.3.
7619 if $ac_need_defaults; then
7620 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7621 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7622 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7625 # Have a temporary directory for convenience. Make it in the build tree
7626 # simply because there is no reason to put it here, and in addition,
7627 # creating and moving files from /tmp can sometimes cause problems.
7628 # Create a temporary directory, and hook for its removal unless debugging.
7629 $debug ||
7631 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7632 trap '{ (exit 1); exit 1; }' 1 2 13 15
7635 # Create a (secure) tmp directory for tmp files.
7638 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7639 test -n "$tmp" && test -d "$tmp"
7640 } ||
7642 tmp=./confstat$$-$RANDOM
7643 (umask 077 && mkdir $tmp)
7644 } ||
7646 echo "$me: cannot create a temporary directory in ." >&2
7647 { (exit 1); exit 1; }
7650 _ACEOF
7652 cat >>$CONFIG_STATUS <<_ACEOF
7655 # CONFIG_FILES section.
7658 # No need to generate the scripts if there are no CONFIG_FILES.
7659 # This happens for instance when ./config.status config.h
7660 if test -n "\$CONFIG_FILES"; then
7661 # Protect against being on the right side of a sed subst in config.status.
7662 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7663 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7664 s,@SHELL@,$SHELL,;t t
7665 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7666 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7667 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7668 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7669 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7670 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7671 s,@exec_prefix@,$exec_prefix,;t t
7672 s,@prefix@,$prefix,;t t
7673 s,@program_transform_name@,$program_transform_name,;t t
7674 s,@bindir@,$bindir,;t t
7675 s,@sbindir@,$sbindir,;t t
7676 s,@libexecdir@,$libexecdir,;t t
7677 s,@datadir@,$datadir,;t t
7678 s,@sysconfdir@,$sysconfdir,;t t
7679 s,@sharedstatedir@,$sharedstatedir,;t t
7680 s,@localstatedir@,$localstatedir,;t t
7681 s,@libdir@,$libdir,;t t
7682 s,@includedir@,$includedir,;t t
7683 s,@oldincludedir@,$oldincludedir,;t t
7684 s,@infodir@,$infodir,;t t
7685 s,@mandir@,$mandir,;t t
7686 s,@build_alias@,$build_alias,;t t
7687 s,@host_alias@,$host_alias,;t t
7688 s,@target_alias@,$target_alias,;t t
7689 s,@DEFS@,$DEFS,;t t
7690 s,@ECHO_C@,$ECHO_C,;t t
7691 s,@ECHO_N@,$ECHO_N,;t t
7692 s,@ECHO_T@,$ECHO_T,;t t
7693 s,@LIBS@,$LIBS,;t t
7694 s,@build@,$build,;t t
7695 s,@build_cpu@,$build_cpu,;t t
7696 s,@build_vendor@,$build_vendor,;t t
7697 s,@build_os@,$build_os,;t t
7698 s,@host@,$host,;t t
7699 s,@host_cpu@,$host_cpu,;t t
7700 s,@host_vendor@,$host_vendor,;t t
7701 s,@host_os@,$host_os,;t t
7702 s,@target@,$target,;t t
7703 s,@target_cpu@,$target_cpu,;t t
7704 s,@target_vendor@,$target_vendor,;t t
7705 s,@target_os@,$target_os,;t t
7706 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7707 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7708 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7709 s,@CYGPATH_W@,$CYGPATH_W,;t t
7710 s,@PACKAGE@,$PACKAGE,;t t
7711 s,@VERSION@,$VERSION,;t t
7712 s,@ACLOCAL@,$ACLOCAL,;t t
7713 s,@AUTOCONF@,$AUTOCONF,;t t
7714 s,@AUTOMAKE@,$AUTOMAKE,;t t
7715 s,@AUTOHEADER@,$AUTOHEADER,;t t
7716 s,@MAKEINFO@,$MAKEINFO,;t t
7717 s,@AMTAR@,$AMTAR,;t t
7718 s,@install_sh@,$install_sh,;t t
7719 s,@STRIP@,$STRIP,;t t
7720 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7721 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7722 s,@mkdir_p@,$mkdir_p,;t t
7723 s,@AWK@,$AWK,;t t
7724 s,@SET_MAKE@,$SET_MAKE,;t t
7725 s,@am__leading_dot@,$am__leading_dot,;t t
7726 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7727 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7728 s,@MAINT@,$MAINT,;t t
7729 s,@multi_basedir@,$multi_basedir,;t t
7730 s,@gcc_version@,$gcc_version,;t t
7731 s,@toolexecdir@,$toolexecdir,;t t
7732 s,@toolexeclibdir@,$toolexeclibdir,;t t
7733 s,@CC@,$CC,;t t
7734 s,@ac_ct_CC@,$ac_ct_CC,;t t
7735 s,@EXEEXT@,$EXEEXT,;t t
7736 s,@OBJEXT@,$OBJEXT,;t t
7737 s,@CFLAGS@,$CFLAGS,;t t
7738 s,@AS@,$AS,;t t
7739 s,@ac_ct_AS@,$ac_ct_AS,;t t
7740 s,@AR@,$AR,;t t
7741 s,@ac_ct_AR@,$ac_ct_AR,;t t
7742 s,@RANLIB@,$RANLIB,;t t
7743 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7744 s,@LN_S@,$LN_S,;t t
7745 s,@LIBTOOL@,$LIBTOOL,;t t
7746 s,@enable_shared@,$enable_shared,;t t
7747 s,@enable_static@,$enable_static,;t t
7748 s,@F77@,$F77,;t t
7749 s,@FFLAGS@,$FFLAGS,;t t
7750 s,@LDFLAGS@,$LDFLAGS,;t t
7751 s,@ac_ct_F77@,$ac_ct_F77,;t t
7752 s,@CPP@,$CPP,;t t
7753 s,@CPPFLAGS@,$CPPFLAGS,;t t
7754 s,@EGREP@,$EGREP,;t t
7755 s,@MATH_OBJ@,$MATH_OBJ,;t t
7756 s,@LIBOBJS@,$LIBOBJS,;t t
7757 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7758 CEOF
7760 _ACEOF
7762 cat >>$CONFIG_STATUS <<\_ACEOF
7763 # Split the substitutions into bite-sized pieces for seds with
7764 # small command number limits, like on Digital OSF/1 and HP-UX.
7765 ac_max_sed_lines=48
7766 ac_sed_frag=1 # Number of current file.
7767 ac_beg=1 # First line for current file.
7768 ac_end=$ac_max_sed_lines # Line after last line for current file.
7769 ac_more_lines=:
7770 ac_sed_cmds=
7771 while $ac_more_lines; do
7772 if test $ac_beg -gt 1; then
7773 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7774 else
7775 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7777 if test ! -s $tmp/subs.frag; then
7778 ac_more_lines=false
7779 else
7780 # The purpose of the label and of the branching condition is to
7781 # speed up the sed processing (if there are no `@' at all, there
7782 # is no need to browse any of the substitutions).
7783 # These are the two extra sed commands mentioned above.
7784 (echo ':t
7785 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7786 if test -z "$ac_sed_cmds"; then
7787 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7788 else
7789 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7791 ac_sed_frag=`expr $ac_sed_frag + 1`
7792 ac_beg=$ac_end
7793 ac_end=`expr $ac_end + $ac_max_sed_lines`
7795 done
7796 if test -z "$ac_sed_cmds"; then
7797 ac_sed_cmds=cat
7799 fi # test -n "$CONFIG_FILES"
7801 _ACEOF
7802 cat >>$CONFIG_STATUS <<\_ACEOF
7803 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7804 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7805 case $ac_file in
7806 - | *:- | *:-:* ) # input from stdin
7807 cat >$tmp/stdin
7808 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7809 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7810 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7811 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7812 * ) ac_file_in=$ac_file.in ;;
7813 esac
7815 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7816 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7817 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7818 X"$ac_file" : 'X\(//\)[^/]' \| \
7819 X"$ac_file" : 'X\(//\)$' \| \
7820 X"$ac_file" : 'X\(/\)' \| \
7821 . : '\(.\)' 2>/dev/null ||
7822 echo X"$ac_file" |
7823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7824 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7825 /^X\(\/\/\)$/{ s//\1/; q; }
7826 /^X\(\/\).*/{ s//\1/; q; }
7827 s/.*/./; q'`
7828 { if $as_mkdir_p; then
7829 mkdir -p "$ac_dir"
7830 else
7831 as_dir="$ac_dir"
7832 as_dirs=
7833 while test ! -d "$as_dir"; do
7834 as_dirs="$as_dir $as_dirs"
7835 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7836 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7837 X"$as_dir" : 'X\(//\)[^/]' \| \
7838 X"$as_dir" : 'X\(//\)$' \| \
7839 X"$as_dir" : 'X\(/\)' \| \
7840 . : '\(.\)' 2>/dev/null ||
7841 echo X"$as_dir" |
7842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7843 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7844 /^X\(\/\/\)$/{ s//\1/; q; }
7845 /^X\(\/\).*/{ s//\1/; q; }
7846 s/.*/./; q'`
7847 done
7848 test ! -n "$as_dirs" || mkdir $as_dirs
7849 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7850 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7851 { (exit 1); exit 1; }; }; }
7853 ac_builddir=.
7855 if test "$ac_dir" != .; then
7856 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7857 # A "../" for each directory in $ac_dir_suffix.
7858 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7859 else
7860 ac_dir_suffix= ac_top_builddir=
7863 case $srcdir in
7864 .) # No --srcdir option. We are building in place.
7865 ac_srcdir=.
7866 if test -z "$ac_top_builddir"; then
7867 ac_top_srcdir=.
7868 else
7869 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7870 fi ;;
7871 [\\/]* | ?:[\\/]* ) # Absolute path.
7872 ac_srcdir=$srcdir$ac_dir_suffix;
7873 ac_top_srcdir=$srcdir ;;
7874 *) # Relative path.
7875 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7876 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7877 esac
7879 # Do not use `cd foo && pwd` to compute absolute paths, because
7880 # the directories may not exist.
7881 case `pwd` in
7882 .) ac_abs_builddir="$ac_dir";;
7884 case "$ac_dir" in
7885 .) ac_abs_builddir=`pwd`;;
7886 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7887 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7888 esac;;
7889 esac
7890 case $ac_abs_builddir in
7891 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7893 case ${ac_top_builddir}. in
7894 .) ac_abs_top_builddir=$ac_abs_builddir;;
7895 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7896 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7897 esac;;
7898 esac
7899 case $ac_abs_builddir in
7900 .) ac_abs_srcdir=$ac_srcdir;;
7902 case $ac_srcdir in
7903 .) ac_abs_srcdir=$ac_abs_builddir;;
7904 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7905 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7906 esac;;
7907 esac
7908 case $ac_abs_builddir in
7909 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7911 case $ac_top_srcdir in
7912 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7913 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7914 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7915 esac;;
7916 esac
7919 case $INSTALL in
7920 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7921 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7922 esac
7924 # Let's still pretend it is `configure' which instantiates (i.e., don't
7925 # use $as_me), people would be surprised to read:
7926 # /* config.h. Generated by config.status. */
7927 if test x"$ac_file" = x-; then
7928 configure_input=
7929 else
7930 configure_input="$ac_file. "
7932 configure_input=$configure_input"Generated from `echo $ac_file_in |
7933 sed 's,.*/,,'` by configure."
7935 # First look for the input files in the build tree, otherwise in the
7936 # src tree.
7937 ac_file_inputs=`IFS=:
7938 for f in $ac_file_in; do
7939 case $f in
7940 -) echo $tmp/stdin ;;
7941 [\\/$]*)
7942 # Absolute (can't be DOS-style, as IFS=:)
7943 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7944 echo "$as_me: error: cannot find input file: $f" >&2;}
7945 { (exit 1); exit 1; }; }
7946 echo "$f";;
7947 *) # Relative
7948 if test -f "$f"; then
7949 # Build tree
7950 echo "$f"
7951 elif test -f "$srcdir/$f"; then
7952 # Source tree
7953 echo "$srcdir/$f"
7954 else
7955 # /dev/null tree
7956 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7957 echo "$as_me: error: cannot find input file: $f" >&2;}
7958 { (exit 1); exit 1; }; }
7959 fi;;
7960 esac
7961 done` || { (exit 1); exit 1; }
7963 if test x"$ac_file" != x-; then
7964 { echo "$as_me:$LINENO: creating $ac_file" >&5
7965 echo "$as_me: creating $ac_file" >&6;}
7966 rm -f "$ac_file"
7968 _ACEOF
7969 cat >>$CONFIG_STATUS <<_ACEOF
7970 sed "$ac_vpsub
7971 $extrasub
7972 _ACEOF
7973 cat >>$CONFIG_STATUS <<\_ACEOF
7975 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7976 s,@configure_input@,$configure_input,;t t
7977 s,@srcdir@,$ac_srcdir,;t t
7978 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7979 s,@top_srcdir@,$ac_top_srcdir,;t t
7980 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7981 s,@builddir@,$ac_builddir,;t t
7982 s,@abs_builddir@,$ac_abs_builddir,;t t
7983 s,@top_builddir@,$ac_top_builddir,;t t
7984 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7985 s,@INSTALL@,$ac_INSTALL,;t t
7986 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7987 rm -f $tmp/stdin
7988 if test x"$ac_file" != x-; then
7989 mv $tmp/out $ac_file
7990 else
7991 cat $tmp/out
7992 rm -f $tmp/out
7995 done
7996 _ACEOF
7997 cat >>$CONFIG_STATUS <<\_ACEOF
8000 # CONFIG_HEADER section.
8003 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8004 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8006 # ac_d sets the value in "#define NAME VALUE" lines.
8007 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8008 ac_dB='[ ].*$,\1#\2'
8009 ac_dC=' '
8010 ac_dD=',;t'
8011 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8012 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8013 ac_uB='$,\1#\2define\3'
8014 ac_uC=' '
8015 ac_uD=',;t'
8017 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8018 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8019 case $ac_file in
8020 - | *:- | *:-:* ) # input from stdin
8021 cat >$tmp/stdin
8022 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8023 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8024 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8025 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8026 * ) ac_file_in=$ac_file.in ;;
8027 esac
8029 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8030 echo "$as_me: creating $ac_file" >&6;}
8032 # First look for the input files in the build tree, otherwise in the
8033 # src tree.
8034 ac_file_inputs=`IFS=:
8035 for f in $ac_file_in; do
8036 case $f in
8037 -) echo $tmp/stdin ;;
8038 [\\/$]*)
8039 # Absolute (can't be DOS-style, as IFS=:)
8040 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8041 echo "$as_me: error: cannot find input file: $f" >&2;}
8042 { (exit 1); exit 1; }; }
8043 # Do quote $f, to prevent DOS paths from being IFS'd.
8044 echo "$f";;
8045 *) # Relative
8046 if test -f "$f"; then
8047 # Build tree
8048 echo "$f"
8049 elif test -f "$srcdir/$f"; then
8050 # Source tree
8051 echo "$srcdir/$f"
8052 else
8053 # /dev/null tree
8054 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8055 echo "$as_me: error: cannot find input file: $f" >&2;}
8056 { (exit 1); exit 1; }; }
8057 fi;;
8058 esac
8059 done` || { (exit 1); exit 1; }
8060 # Remove the trailing spaces.
8061 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8063 _ACEOF
8065 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8066 # `conftest.undefs', that substitutes the proper values into
8067 # config.h.in to produce config.h. The first handles `#define'
8068 # templates, and the second `#undef' templates.
8069 # And first: Protect against being on the right side of a sed subst in
8070 # config.status. Protect against being in an unquoted here document
8071 # in config.status.
8072 rm -f conftest.defines conftest.undefs
8073 # Using a here document instead of a string reduces the quoting nightmare.
8074 # Putting comments in sed scripts is not portable.
8076 # `end' is used to avoid that the second main sed command (meant for
8077 # 0-ary CPP macros) applies to n-ary macro definitions.
8078 # See the Autoconf documentation for `clear'.
8079 cat >confdef2sed.sed <<\_ACEOF
8080 s/[\\&,]/\\&/g
8081 s,[\\$`],\\&,g
8082 t clear
8083 : clear
8084 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8085 t end
8086 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8087 : end
8088 _ACEOF
8089 # If some macros were called several times there might be several times
8090 # the same #defines, which is useless. Nevertheless, we may not want to
8091 # sort them, since we want the *last* AC-DEFINE to be honored.
8092 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8093 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8094 rm -f confdef2sed.sed
8096 # This sed command replaces #undef with comments. This is necessary, for
8097 # example, in the case of _POSIX_SOURCE, which is predefined and required
8098 # on some systems where configure will not decide to define it.
8099 cat >>conftest.undefs <<\_ACEOF
8100 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8101 _ACEOF
8103 # Break up conftest.defines because some shells have a limit on the size
8104 # of here documents, and old seds have small limits too (100 cmds).
8105 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8106 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8107 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8108 echo ' :' >>$CONFIG_STATUS
8109 rm -f conftest.tail
8110 while grep . conftest.defines >/dev/null
8112 # Write a limited-size here document to $tmp/defines.sed.
8113 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8114 # Speed up: don't consider the non `#define' lines.
8115 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8116 # Work around the forget-to-reset-the-flag bug.
8117 echo 't clr' >>$CONFIG_STATUS
8118 echo ': clr' >>$CONFIG_STATUS
8119 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8120 echo 'CEOF
8121 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8122 rm -f $tmp/in
8123 mv $tmp/out $tmp/in
8124 ' >>$CONFIG_STATUS
8125 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8126 rm -f conftest.defines
8127 mv conftest.tail conftest.defines
8128 done
8129 rm -f conftest.defines
8130 echo ' fi # grep' >>$CONFIG_STATUS
8131 echo >>$CONFIG_STATUS
8133 # Break up conftest.undefs because some shells have a limit on the size
8134 # of here documents, and old seds have small limits too (100 cmds).
8135 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8136 rm -f conftest.tail
8137 while grep . conftest.undefs >/dev/null
8139 # Write a limited-size here document to $tmp/undefs.sed.
8140 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8141 # Speed up: don't consider the non `#undef'
8142 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8143 # Work around the forget-to-reset-the-flag bug.
8144 echo 't clr' >>$CONFIG_STATUS
8145 echo ': clr' >>$CONFIG_STATUS
8146 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8147 echo 'CEOF
8148 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8149 rm -f $tmp/in
8150 mv $tmp/out $tmp/in
8151 ' >>$CONFIG_STATUS
8152 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8153 rm -f conftest.undefs
8154 mv conftest.tail conftest.undefs
8155 done
8156 rm -f conftest.undefs
8158 cat >>$CONFIG_STATUS <<\_ACEOF
8159 # Let's still pretend it is `configure' which instantiates (i.e., don't
8160 # use $as_me), people would be surprised to read:
8161 # /* config.h. Generated by config.status. */
8162 if test x"$ac_file" = x-; then
8163 echo "/* Generated by configure. */" >$tmp/config.h
8164 else
8165 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8167 cat $tmp/in >>$tmp/config.h
8168 rm -f $tmp/in
8169 if test x"$ac_file" != x-; then
8170 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8171 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8172 echo "$as_me: $ac_file is unchanged" >&6;}
8173 else
8174 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8175 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8176 X"$ac_file" : 'X\(//\)[^/]' \| \
8177 X"$ac_file" : 'X\(//\)$' \| \
8178 X"$ac_file" : 'X\(/\)' \| \
8179 . : '\(.\)' 2>/dev/null ||
8180 echo X"$ac_file" |
8181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8182 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8183 /^X\(\/\/\)$/{ s//\1/; q; }
8184 /^X\(\/\).*/{ s//\1/; q; }
8185 s/.*/./; q'`
8186 { if $as_mkdir_p; then
8187 mkdir -p "$ac_dir"
8188 else
8189 as_dir="$ac_dir"
8190 as_dirs=
8191 while test ! -d "$as_dir"; do
8192 as_dirs="$as_dir $as_dirs"
8193 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8194 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8195 X"$as_dir" : 'X\(//\)[^/]' \| \
8196 X"$as_dir" : 'X\(//\)$' \| \
8197 X"$as_dir" : 'X\(/\)' \| \
8198 . : '\(.\)' 2>/dev/null ||
8199 echo X"$as_dir" |
8200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8202 /^X\(\/\/\)$/{ s//\1/; q; }
8203 /^X\(\/\).*/{ s//\1/; q; }
8204 s/.*/./; q'`
8205 done
8206 test ! -n "$as_dirs" || mkdir $as_dirs
8207 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8208 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8209 { (exit 1); exit 1; }; }; }
8211 rm -f $ac_file
8212 mv $tmp/config.h $ac_file
8214 else
8215 cat $tmp/config.h
8216 rm -f $tmp/config.h
8218 # Compute $ac_file's index in $config_headers.
8219 _am_stamp_count=1
8220 for _am_header in $config_headers :; do
8221 case $_am_header in
8222 $ac_file | $ac_file:* )
8223 break ;;
8225 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8226 esac
8227 done
8228 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8229 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8230 X$ac_file : 'X\(//\)[^/]' \| \
8231 X$ac_file : 'X\(//\)$' \| \
8232 X$ac_file : 'X\(/\)' \| \
8233 . : '\(.\)' 2>/dev/null ||
8234 echo X$ac_file |
8235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8237 /^X\(\/\/\)$/{ s//\1/; q; }
8238 /^X\(\/\).*/{ s//\1/; q; }
8239 s/.*/./; q'`/stamp-h$_am_stamp_count
8240 done
8241 _ACEOF
8242 cat >>$CONFIG_STATUS <<\_ACEOF
8245 # CONFIG_COMMANDS section.
8247 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8248 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8249 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8250 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8251 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8252 X"$ac_dest" : 'X\(//\)[^/]' \| \
8253 X"$ac_dest" : 'X\(//\)$' \| \
8254 X"$ac_dest" : 'X\(/\)' \| \
8255 . : '\(.\)' 2>/dev/null ||
8256 echo X"$ac_dest" |
8257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8259 /^X\(\/\/\)$/{ s//\1/; q; }
8260 /^X\(\/\).*/{ s//\1/; q; }
8261 s/.*/./; q'`
8262 { if $as_mkdir_p; then
8263 mkdir -p "$ac_dir"
8264 else
8265 as_dir="$ac_dir"
8266 as_dirs=
8267 while test ! -d "$as_dir"; do
8268 as_dirs="$as_dir $as_dirs"
8269 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8270 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8271 X"$as_dir" : 'X\(//\)[^/]' \| \
8272 X"$as_dir" : 'X\(//\)$' \| \
8273 X"$as_dir" : 'X\(/\)' \| \
8274 . : '\(.\)' 2>/dev/null ||
8275 echo X"$as_dir" |
8276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8277 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8278 /^X\(\/\/\)$/{ s//\1/; q; }
8279 /^X\(\/\).*/{ s//\1/; q; }
8280 s/.*/./; q'`
8281 done
8282 test ! -n "$as_dirs" || mkdir $as_dirs
8283 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8284 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8285 { (exit 1); exit 1; }; }; }
8287 ac_builddir=.
8289 if test "$ac_dir" != .; then
8290 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8291 # A "../" for each directory in $ac_dir_suffix.
8292 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8293 else
8294 ac_dir_suffix= ac_top_builddir=
8297 case $srcdir in
8298 .) # No --srcdir option. We are building in place.
8299 ac_srcdir=.
8300 if test -z "$ac_top_builddir"; then
8301 ac_top_srcdir=.
8302 else
8303 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8304 fi ;;
8305 [\\/]* | ?:[\\/]* ) # Absolute path.
8306 ac_srcdir=$srcdir$ac_dir_suffix;
8307 ac_top_srcdir=$srcdir ;;
8308 *) # Relative path.
8309 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8310 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8311 esac
8313 # Do not use `cd foo && pwd` to compute absolute paths, because
8314 # the directories may not exist.
8315 case `pwd` in
8316 .) ac_abs_builddir="$ac_dir";;
8318 case "$ac_dir" in
8319 .) ac_abs_builddir=`pwd`;;
8320 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8321 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8322 esac;;
8323 esac
8324 case $ac_abs_builddir in
8325 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8327 case ${ac_top_builddir}. in
8328 .) ac_abs_top_builddir=$ac_abs_builddir;;
8329 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8330 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8331 esac;;
8332 esac
8333 case $ac_abs_builddir in
8334 .) ac_abs_srcdir=$ac_srcdir;;
8336 case $ac_srcdir in
8337 .) ac_abs_srcdir=$ac_abs_builddir;;
8338 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8339 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8340 esac;;
8341 esac
8342 case $ac_abs_builddir in
8343 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8345 case $ac_top_srcdir in
8346 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8347 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8348 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8349 esac;;
8350 esac
8353 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8354 echo "$as_me: executing $ac_dest commands" >&6;}
8355 case $ac_dest in
8356 default-1 )
8357 # Only add multilib support code if we just rebuilt the top-level
8358 # Makefile.
8359 case " $CONFIG_FILES " in
8360 *" Makefile "*)
8361 ac_file=Makefile . ${multi_basedir}/config-ml.in
8363 esac ;;
8364 esac
8365 done
8366 _ACEOF
8368 cat >>$CONFIG_STATUS <<\_ACEOF
8370 { (exit 0); exit 0; }
8371 _ACEOF
8372 chmod +x $CONFIG_STATUS
8373 ac_clean_files=$ac_clean_files_save
8376 # configure is writing to config.log, and then calls config.status.
8377 # config.status does its own redirection, appending to config.log.
8378 # Unfortunately, on DOS this fails, as config.log is still kept open
8379 # by configure, so config.status won't be able to write to it; its
8380 # output is simply discarded. So we exec the FD to /dev/null,
8381 # effectively closing config.log, so it can be properly (re)opened and
8382 # appended to by config.status. When coming back to configure, we
8383 # need to make the FD available again.
8384 if test "$no_create" != yes; then
8385 ac_cs_success=:
8386 ac_config_status_args=
8387 test "$silent" = yes &&
8388 ac_config_status_args="$ac_config_status_args --quiet"
8389 exec 5>/dev/null
8390 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8391 exec 5>>config.log
8392 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8393 # would make configure fail if this is the last instruction.
8394 $ac_cs_success || { (exit 1); exit 1; }