Add a directory forgotten in merge.
[official-gcc.git] / libgfortran / configure
blob933d7338a50a45090f93dc81f1fea250efe2f20b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for GNU Fortran Runtime Library 0.2.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME='GNU Fortran Runtime Library'
268 PACKAGE_TARNAME='libgfortran'
269 PACKAGE_VERSION='0.2'
270 PACKAGE_STRING='GNU Fortran Runtime Library 0.2'
271 PACKAGE_BUGREPORT=''
273 # Factoring default headers for most tests.
274 ac_includes_default="\
275 #include <stdio.h>
276 #if HAVE_SYS_TYPES_H
277 # include <sys/types.h>
278 #endif
279 #if HAVE_SYS_STAT_H
280 # include <sys/stat.h>
281 #endif
282 #if STDC_HEADERS
283 # include <stdlib.h>
284 # include <stddef.h>
285 #else
286 # if HAVE_STDLIB_H
287 # include <stdlib.h>
288 # endif
289 #endif
290 #if HAVE_STRING_H
291 # if !STDC_HEADERS && HAVE_MEMORY_H
292 # include <memory.h>
293 # endif
294 # include <string.h>
295 #endif
296 #if HAVE_STRINGS_H
297 # include <strings.h>
298 #endif
299 #if HAVE_INTTYPES_H
300 # include <inttypes.h>
301 #else
302 # if HAVE_STDINT_H
303 # include <stdint.h>
304 # endif
305 #endif
306 #if HAVE_UNISTD_H
307 # include <unistd.h>
308 #endif"
310 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 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 AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT enable_shared enable_static CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE F77 FFLAGS ac_ct_F77 CPP EGREP MATH_OBJ AR RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S LIBTOOL LIBOBJS LTLIBOBJS'
311 ac_subst_files=''
313 # Initialize some variables set by options.
314 ac_init_help=
315 ac_init_version=false
316 # The variables have the same names as the options, with
317 # dashes changed to underlines.
318 cache_file=/dev/null
319 exec_prefix=NONE
320 no_create=
321 no_recursion=
322 prefix=NONE
323 program_prefix=NONE
324 program_suffix=NONE
325 program_transform_name=s,x,x,
326 silent=
327 site=
328 srcdir=
329 verbose=
330 x_includes=NONE
331 x_libraries=NONE
333 # Installation directory options.
334 # These are left unexpanded so users can "make install exec_prefix=/foo"
335 # and all the variables that are supposed to be based on exec_prefix
336 # by default will actually change.
337 # Use braces instead of parens because sh, perl, etc. also accept them.
338 bindir='${exec_prefix}/bin'
339 sbindir='${exec_prefix}/sbin'
340 libexecdir='${exec_prefix}/libexec'
341 datadir='${prefix}/share'
342 sysconfdir='${prefix}/etc'
343 sharedstatedir='${prefix}/com'
344 localstatedir='${prefix}/var'
345 libdir='${exec_prefix}/lib'
346 includedir='${prefix}/include'
347 oldincludedir='/usr/include'
348 infodir='${prefix}/info'
349 mandir='${prefix}/man'
351 ac_prev=
352 for ac_option
354 # If the previous option needs an argument, assign it.
355 if test -n "$ac_prev"; then
356 eval "$ac_prev=\$ac_option"
357 ac_prev=
358 continue
361 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363 # Accept the important Cygnus configure options, so we can diagnose typos.
365 case $ac_option in
367 -bindir | --bindir | --bindi | --bind | --bin | --bi)
368 ac_prev=bindir ;;
369 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
370 bindir=$ac_optarg ;;
372 -build | --build | --buil | --bui | --bu)
373 ac_prev=build_alias ;;
374 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
375 build_alias=$ac_optarg ;;
377 -cache-file | --cache-file | --cache-fil | --cache-fi \
378 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
379 ac_prev=cache_file ;;
380 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
381 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
382 cache_file=$ac_optarg ;;
384 --config-cache | -C)
385 cache_file=config.cache ;;
387 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
388 ac_prev=datadir ;;
389 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
390 | --da=*)
391 datadir=$ac_optarg ;;
393 -disable-* | --disable-*)
394 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
395 # Reject names that are not valid shell variable names.
396 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
397 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
398 { (exit 1); exit 1; }; }
399 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
400 eval "enable_$ac_feature=no" ;;
402 -enable-* | --enable-*)
403 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
404 # Reject names that are not valid shell variable names.
405 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
406 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
407 { (exit 1); exit 1; }; }
408 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
409 case $ac_option in
410 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
411 *) ac_optarg=yes ;;
412 esac
413 eval "enable_$ac_feature='$ac_optarg'" ;;
415 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
416 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
417 | --exec | --exe | --ex)
418 ac_prev=exec_prefix ;;
419 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
420 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
421 | --exec=* | --exe=* | --ex=*)
422 exec_prefix=$ac_optarg ;;
424 -gas | --gas | --ga | --g)
425 # Obsolete; use --with-gas.
426 with_gas=yes ;;
428 -help | --help | --hel | --he | -h)
429 ac_init_help=long ;;
430 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
431 ac_init_help=recursive ;;
432 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
433 ac_init_help=short ;;
435 -host | --host | --hos | --ho)
436 ac_prev=host_alias ;;
437 -host=* | --host=* | --hos=* | --ho=*)
438 host_alias=$ac_optarg ;;
440 -includedir | --includedir | --includedi | --included | --include \
441 | --includ | --inclu | --incl | --inc)
442 ac_prev=includedir ;;
443 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
444 | --includ=* | --inclu=* | --incl=* | --inc=*)
445 includedir=$ac_optarg ;;
447 -infodir | --infodir | --infodi | --infod | --info | --inf)
448 ac_prev=infodir ;;
449 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
450 infodir=$ac_optarg ;;
452 -libdir | --libdir | --libdi | --libd)
453 ac_prev=libdir ;;
454 -libdir=* | --libdir=* | --libdi=* | --libd=*)
455 libdir=$ac_optarg ;;
457 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
458 | --libexe | --libex | --libe)
459 ac_prev=libexecdir ;;
460 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
461 | --libexe=* | --libex=* | --libe=*)
462 libexecdir=$ac_optarg ;;
464 -localstatedir | --localstatedir | --localstatedi | --localstated \
465 | --localstate | --localstat | --localsta | --localst \
466 | --locals | --local | --loca | --loc | --lo)
467 ac_prev=localstatedir ;;
468 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
469 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
470 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
471 localstatedir=$ac_optarg ;;
473 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
474 ac_prev=mandir ;;
475 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
476 mandir=$ac_optarg ;;
478 -nfp | --nfp | --nf)
479 # Obsolete; use --without-fp.
480 with_fp=no ;;
482 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
483 | --no-cr | --no-c | -n)
484 no_create=yes ;;
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
488 no_recursion=yes ;;
490 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
491 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
492 | --oldin | --oldi | --old | --ol | --o)
493 ac_prev=oldincludedir ;;
494 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
495 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
496 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
497 oldincludedir=$ac_optarg ;;
499 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
500 ac_prev=prefix ;;
501 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
502 prefix=$ac_optarg ;;
504 -program-prefix | --program-prefix | --program-prefi | --program-pref \
505 | --program-pre | --program-pr | --program-p)
506 ac_prev=program_prefix ;;
507 -program-prefix=* | --program-prefix=* | --program-prefi=* \
508 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
509 program_prefix=$ac_optarg ;;
511 -program-suffix | --program-suffix | --program-suffi | --program-suff \
512 | --program-suf | --program-su | --program-s)
513 ac_prev=program_suffix ;;
514 -program-suffix=* | --program-suffix=* | --program-suffi=* \
515 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
516 program_suffix=$ac_optarg ;;
518 -program-transform-name | --program-transform-name \
519 | --program-transform-nam | --program-transform-na \
520 | --program-transform-n | --program-transform- \
521 | --program-transform | --program-transfor \
522 | --program-transfo | --program-transf \
523 | --program-trans | --program-tran \
524 | --progr-tra | --program-tr | --program-t)
525 ac_prev=program_transform_name ;;
526 -program-transform-name=* | --program-transform-name=* \
527 | --program-transform-nam=* | --program-transform-na=* \
528 | --program-transform-n=* | --program-transform-=* \
529 | --program-transform=* | --program-transfor=* \
530 | --program-transfo=* | --program-transf=* \
531 | --program-trans=* | --program-tran=* \
532 | --progr-tra=* | --program-tr=* | --program-t=*)
533 program_transform_name=$ac_optarg ;;
535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
536 | -silent | --silent | --silen | --sile | --sil)
537 silent=yes ;;
539 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
540 ac_prev=sbindir ;;
541 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
542 | --sbi=* | --sb=*)
543 sbindir=$ac_optarg ;;
545 -sharedstatedir | --sharedstatedir | --sharedstatedi \
546 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
547 | --sharedst | --shareds | --shared | --share | --shar \
548 | --sha | --sh)
549 ac_prev=sharedstatedir ;;
550 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
551 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
552 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
553 | --sha=* | --sh=*)
554 sharedstatedir=$ac_optarg ;;
556 -site | --site | --sit)
557 ac_prev=site ;;
558 -site=* | --site=* | --sit=*)
559 site=$ac_optarg ;;
561 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
562 ac_prev=srcdir ;;
563 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
564 srcdir=$ac_optarg ;;
566 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
567 | --syscon | --sysco | --sysc | --sys | --sy)
568 ac_prev=sysconfdir ;;
569 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
570 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
571 sysconfdir=$ac_optarg ;;
573 -target | --target | --targe | --targ | --tar | --ta | --t)
574 ac_prev=target_alias ;;
575 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
576 target_alias=$ac_optarg ;;
578 -v | -verbose | --verbose | --verbos | --verbo | --verb)
579 verbose=yes ;;
581 -version | --version | --versio | --versi | --vers | -V)
582 ac_init_version=: ;;
584 -with-* | --with-*)
585 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package| sed 's/-/_/g'`
591 case $ac_option in
592 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
593 *) ac_optarg=yes ;;
594 esac
595 eval "with_$ac_package='$ac_optarg'" ;;
597 -without-* | --without-*)
598 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
599 # Reject names that are not valid shell variable names.
600 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
601 { echo "$as_me: error: invalid package name: $ac_package" >&2
602 { (exit 1); exit 1; }; }
603 ac_package=`echo $ac_package | sed 's/-/_/g'`
604 eval "with_$ac_package=no" ;;
606 --x)
607 # Obsolete; use --with-x.
608 with_x=yes ;;
610 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
611 | --x-incl | --x-inc | --x-in | --x-i)
612 ac_prev=x_includes ;;
613 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
614 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
615 x_includes=$ac_optarg ;;
617 -x-libraries | --x-libraries | --x-librarie | --x-librari \
618 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
619 ac_prev=x_libraries ;;
620 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
621 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
622 x_libraries=$ac_optarg ;;
624 -*) { echo "$as_me: error: unrecognized option: $ac_option
625 Try \`$0 --help' for more information." >&2
626 { (exit 1); exit 1; }; }
629 *=*)
630 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
631 # Reject names that are not valid shell variable names.
632 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
633 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
634 { (exit 1); exit 1; }; }
635 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
636 eval "$ac_envvar='$ac_optarg'"
637 export $ac_envvar ;;
640 # FIXME: should be removed in autoconf 3.0.
641 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
642 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
643 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
644 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 esac
648 done
650 if test -n "$ac_prev"; then
651 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
652 { echo "$as_me: error: missing argument to $ac_option" >&2
653 { (exit 1); exit 1; }; }
656 # Be sure to have absolute paths.
657 for ac_var in exec_prefix prefix
659 eval ac_val=$`echo $ac_var`
660 case $ac_val in
661 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
662 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663 { (exit 1); exit 1; }; };;
664 esac
665 done
667 # Be sure to have absolute paths.
668 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
669 localstatedir libdir includedir oldincludedir infodir mandir
671 eval ac_val=$`echo $ac_var`
672 case $ac_val in
673 [\\/$]* | ?:[\\/]* ) ;;
674 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
675 { (exit 1); exit 1; }; };;
676 esac
677 done
679 # There might be people who depend on the old broken behavior: `$host'
680 # used to hold the argument of --host etc.
681 # FIXME: To remove some day.
682 build=$build_alias
683 host=$host_alias
684 target=$target_alias
686 # FIXME: To remove some day.
687 if test "x$host_alias" != x; then
688 if test "x$build_alias" = x; then
689 cross_compiling=maybe
690 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
691 If a cross compiler is detected then cross compile mode will be used." >&2
692 elif test "x$build_alias" != "x$host_alias"; then
693 cross_compiling=yes
697 ac_tool_prefix=
698 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700 test "$silent" = yes && exec 6>/dev/null
703 # Find the source files, if location was not specified.
704 if test -z "$srcdir"; then
705 ac_srcdir_defaulted=yes
706 # Try the directory containing this script, then its parent.
707 ac_confdir=`(dirname "$0") 2>/dev/null ||
708 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
709 X"$0" : 'X\(//\)[^/]' \| \
710 X"$0" : 'X\(//\)$' \| \
711 X"$0" : 'X\(/\)' \| \
712 . : '\(.\)' 2>/dev/null ||
713 echo X"$0" |
714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
716 /^X\(\/\/\)$/{ s//\1/; q; }
717 /^X\(\/\).*/{ s//\1/; q; }
718 s/.*/./; q'`
719 srcdir=$ac_confdir
720 if test ! -r $srcdir/$ac_unique_file; then
721 srcdir=..
723 else
724 ac_srcdir_defaulted=no
726 if test ! -r $srcdir/$ac_unique_file; then
727 if test "$ac_srcdir_defaulted" = yes; then
728 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
729 { (exit 1); exit 1; }; }
730 else
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
732 { (exit 1); exit 1; }; }
735 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
736 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
737 { (exit 1); exit 1; }; }
738 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
739 ac_env_build_alias_set=${build_alias+set}
740 ac_env_build_alias_value=$build_alias
741 ac_cv_env_build_alias_set=${build_alias+set}
742 ac_cv_env_build_alias_value=$build_alias
743 ac_env_host_alias_set=${host_alias+set}
744 ac_env_host_alias_value=$host_alias
745 ac_cv_env_host_alias_set=${host_alias+set}
746 ac_cv_env_host_alias_value=$host_alias
747 ac_env_target_alias_set=${target_alias+set}
748 ac_env_target_alias_value=$target_alias
749 ac_cv_env_target_alias_set=${target_alias+set}
750 ac_cv_env_target_alias_value=$target_alias
751 ac_env_CC_set=${CC+set}
752 ac_env_CC_value=$CC
753 ac_cv_env_CC_set=${CC+set}
754 ac_cv_env_CC_value=$CC
755 ac_env_CFLAGS_set=${CFLAGS+set}
756 ac_env_CFLAGS_value=$CFLAGS
757 ac_cv_env_CFLAGS_set=${CFLAGS+set}
758 ac_cv_env_CFLAGS_value=$CFLAGS
759 ac_env_LDFLAGS_set=${LDFLAGS+set}
760 ac_env_LDFLAGS_value=$LDFLAGS
761 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_cv_env_LDFLAGS_value=$LDFLAGS
763 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
764 ac_env_CPPFLAGS_value=$CPPFLAGS
765 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
767 ac_env_F77_set=${F77+set}
768 ac_env_F77_value=$F77
769 ac_cv_env_F77_set=${F77+set}
770 ac_cv_env_F77_value=$F77
771 ac_env_FFLAGS_set=${FFLAGS+set}
772 ac_env_FFLAGS_value=$FFLAGS
773 ac_cv_env_FFLAGS_set=${FFLAGS+set}
774 ac_cv_env_FFLAGS_value=$FFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
781 # Report the --help message.
783 if test "$ac_init_help" = "long"; then
784 # Omit some internal or obsolete options to make the list less imposing.
785 # This message is too long to be a string in the A/UX 3.1 sh.
786 cat <<_ACEOF
787 \`configure' configures GNU Fortran Runtime Library 0.2 to adapt to many kinds of systems.
789 Usage: $0 [OPTION]... [VAR=VALUE]...
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE. See below for descriptions of some of the useful variables.
794 Defaults for the options are specified in brackets.
796 Configuration:
797 -h, --help display this help and exit
798 --help=short display options specific to this package
799 --help=recursive display the short help of all the included packages
800 -V, --version display version information and exit
801 -q, --quiet, --silent do not print \`checking...' messages
802 --cache-file=FILE cache test results in FILE [disabled]
803 -C, --config-cache alias for \`--cache-file=config.cache'
804 -n, --no-create do not create output files
805 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 _ACEOF
809 cat <<_ACEOF
810 Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
812 [$ac_default_prefix]
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
814 [PREFIX]
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
821 For better control, use the options below.
823 Fine tuning of the installation directories:
824 --bindir=DIR user executables [EPREFIX/bin]
825 --sbindir=DIR system admin executables [EPREFIX/sbin]
826 --libexecdir=DIR program executables [EPREFIX/libexec]
827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
828 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
829 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
830 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
831 --libdir=DIR object code libraries [EPREFIX/lib]
832 --includedir=DIR C header files [PREFIX/include]
833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
836 _ACEOF
838 cat <<\_ACEOF
840 Program names:
841 --program-prefix=PREFIX prepend PREFIX to installed program names
842 --program-suffix=SUFFIX append SUFFIX to installed program names
843 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
845 System types:
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
851 if test -n "$ac_init_help"; then
852 case $ac_init_help in
853 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.2:";;
854 esac
855 cat <<\_ACEOF
857 Optional Features:
858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --disable-dependency-tracking Speeds up one-time builds
863 --enable-dependency-tracking Do not reject slow dependency extractors
864 --enable-cmath Include complex math functions
865 --enable-shared=PKGS build shared libraries default=yes
866 --enable-static=PKGS build static libraries default=yes
867 --enable-fast-install=PKGS optimize for fast installation default=yes
868 --disable-libtool-lock avoid locking (might break parallel builds)
870 Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
874 --with-pic try to use only PIC/non-PIC objects default=use both
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 F77 Fortran 77 compiler command
884 FFLAGS Fortran 77 compiler flags
885 CPP C preprocessor
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
890 _ACEOF
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
895 ac_popdir=`pwd`
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
898 ac_builddir=.
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905 ac_dir_suffix= ac_top_builddir=
908 case $srcdir in
909 .) # No --srcdir option. We are building in place.
910 ac_srcdir=.
911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
923 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
924 # absolute.
925 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
927 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
930 cd $ac_dir
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
933 echo
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
936 echo
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
940 echo
941 $ac_configure --help
942 else
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
945 cd "$ac_popdir"
946 done
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
951 cat <<\_ACEOF
952 GNU Fortran Runtime Library configure 0.2
953 generated by GNU Autoconf 2.57
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
959 _ACEOF
960 exit 0
962 exec 5>config.log
963 cat >&5 <<_ACEOF
964 This file contains any messages produced by compilers while
965 running configure, to aid debugging if configure makes a mistake.
967 It was created by GNU Fortran Runtime Library $as_me 0.2, which was
968 generated by GNU Autoconf 2.57. Invocation command line was
970 $ $0 $@
972 _ACEOF
974 cat <<_ASUNAME
975 ## --------- ##
976 ## Platform. ##
977 ## --------- ##
979 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
980 uname -m = `(uname -m) 2>/dev/null || echo unknown`
981 uname -r = `(uname -r) 2>/dev/null || echo unknown`
982 uname -s = `(uname -s) 2>/dev/null || echo unknown`
983 uname -v = `(uname -v) 2>/dev/null || echo unknown`
985 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
986 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
988 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
989 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
990 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
991 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
992 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
993 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
994 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
996 _ASUNAME
998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
999 for as_dir in $PATH
1001 IFS=$as_save_IFS
1002 test -z "$as_dir" && as_dir=.
1003 echo "PATH: $as_dir"
1004 done
1006 } >&5
1008 cat >&5 <<_ACEOF
1011 ## ----------- ##
1012 ## Core tests. ##
1013 ## ----------- ##
1015 _ACEOF
1018 # Keep a trace of the command line.
1019 # Strip out --no-create and --no-recursion so they do not pile up.
1020 # Strip out --silent because we don't want to record it for future runs.
1021 # Also quote any args containing shell meta-characters.
1022 # Make two passes to allow for proper duplicate-argument suppression.
1023 ac_configure_args=
1024 ac_configure_args0=
1025 ac_configure_args1=
1026 ac_sep=
1027 ac_must_keep_next=false
1028 for ac_pass in 1 2
1030 for ac_arg
1032 case $ac_arg in
1033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035 | -silent | --silent | --silen | --sile | --sil)
1036 continue ;;
1037 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1038 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1039 esac
1040 case $ac_pass in
1041 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1043 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1044 if test $ac_must_keep_next = true; then
1045 ac_must_keep_next=false # Got value, back to normal.
1046 else
1047 case $ac_arg in
1048 *=* | --config-cache | -C | -disable-* | --disable-* \
1049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1051 | -with-* | --with-* | -without-* | --without-* | --x)
1052 case "$ac_configure_args0 " in
1053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1054 esac
1056 -* ) ac_must_keep_next=true ;;
1057 esac
1059 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1060 # Get rid of the leading space.
1061 ac_sep=" "
1063 esac
1064 done
1065 done
1066 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1067 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1069 # When interrupted or exit'd, cleanup temporary files, and complete
1070 # config.log. We remove comments because anyway the quotes in there
1071 # would cause problems or look ugly.
1072 # WARNING: Be sure not to use single quotes in there, as some shells,
1073 # such as our DU 5.0 friend, will then `close' the trap.
1074 trap 'exit_status=$?
1075 # Save into config.log some information that might help in debugging.
1077 echo
1079 cat <<\_ASBOX
1080 ## ---------------- ##
1081 ## Cache variables. ##
1082 ## ---------------- ##
1083 _ASBOX
1084 echo
1085 # The following way of writing the cache mishandles newlines in values,
1087 (set) 2>&1 |
1088 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1089 *ac_space=\ *)
1090 sed -n \
1091 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1095 sed -n \
1096 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1098 esac;
1100 echo
1102 cat <<\_ASBOX
1103 ## ----------------- ##
1104 ## Output variables. ##
1105 ## ----------------- ##
1106 _ASBOX
1107 echo
1108 for ac_var in $ac_subst_vars
1110 eval ac_val=$`echo $ac_var`
1111 echo "$ac_var='"'"'$ac_val'"'"'"
1112 done | sort
1113 echo
1115 if test -n "$ac_subst_files"; then
1116 cat <<\_ASBOX
1117 ## ------------- ##
1118 ## Output files. ##
1119 ## ------------- ##
1120 _ASBOX
1121 echo
1122 for ac_var in $ac_subst_files
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1126 done | sort
1127 echo
1130 if test -s confdefs.h; then
1131 cat <<\_ASBOX
1132 ## ----------- ##
1133 ## confdefs.h. ##
1134 ## ----------- ##
1135 _ASBOX
1136 echo
1137 sed "/^$/d" confdefs.h | sort
1138 echo
1140 test "$ac_signal" != 0 &&
1141 echo "$as_me: caught signal $ac_signal"
1142 echo "$as_me: exit $exit_status"
1143 } >&5
1144 rm -f core *.core &&
1145 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1146 exit $exit_status
1148 for ac_signal in 1 2 13 15; do
1149 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1150 done
1151 ac_signal=0
1153 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1154 rm -rf conftest* confdefs.h
1155 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1156 echo >confdefs.h
1158 # Predefined preprocessor variables.
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_NAME "$PACKAGE_NAME"
1162 _ACEOF
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1167 _ACEOF
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1172 _ACEOF
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_STRING "$PACKAGE_STRING"
1177 _ACEOF
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1182 _ACEOF
1185 # Let the site file select an alternate cache file if it wants to.
1186 # Prefer explicitly selected file to automatically selected ones.
1187 if test -z "$CONFIG_SITE"; then
1188 if test "x$prefix" != xNONE; then
1189 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1190 else
1191 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1194 for ac_site_file in $CONFIG_SITE; do
1195 if test -r "$ac_site_file"; then
1196 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1197 echo "$as_me: loading site script $ac_site_file" >&6;}
1198 sed 's/^/| /' "$ac_site_file" >&5
1199 . "$ac_site_file"
1201 done
1203 if test -r "$cache_file"; then
1204 # Some versions of bash will fail to source /dev/null (special
1205 # files actually), so we avoid doing that.
1206 if test -f "$cache_file"; then
1207 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1208 echo "$as_me: loading cache $cache_file" >&6;}
1209 case $cache_file in
1210 [\\/]* | ?:[\\/]* ) . $cache_file;;
1211 *) . ./$cache_file;;
1212 esac
1214 else
1215 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1216 echo "$as_me: creating cache $cache_file" >&6;}
1217 >$cache_file
1220 # Check that the precious variables saved in the cache have kept the same
1221 # value.
1222 ac_cache_corrupted=false
1223 for ac_var in `(set) 2>&1 |
1224 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1225 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1226 eval ac_new_set=\$ac_env_${ac_var}_set
1227 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1228 eval ac_new_val="\$ac_env_${ac_var}_value"
1229 case $ac_old_set,$ac_new_set in
1230 set,)
1231 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1232 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1233 ac_cache_corrupted=: ;;
1234 ,set)
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1237 ac_cache_corrupted=: ;;
1238 ,);;
1240 if test "x$ac_old_val" != "x$ac_new_val"; then
1241 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1242 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1243 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1244 echo "$as_me: former value: $ac_old_val" >&2;}
1245 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1246 echo "$as_me: current value: $ac_new_val" >&2;}
1247 ac_cache_corrupted=:
1248 fi;;
1249 esac
1250 # Pass precious variables to config.status.
1251 if test "$ac_new_set" = set; then
1252 case $ac_new_val in
1253 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1255 *) ac_arg=$ac_var=$ac_new_val ;;
1256 esac
1257 case " $ac_configure_args " in
1258 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1259 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1260 esac
1262 done
1263 if $ac_cache_corrupted; then
1264 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1265 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1266 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1267 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1268 { (exit 1); exit 1; }; }
1271 ac_ext=c
1272 ac_cpp='$CPP $CPPFLAGS'
1273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303 am__api_version="1.7"
1304 ac_aux_dir=
1305 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1306 if test -f $ac_dir/install-sh; then
1307 ac_aux_dir=$ac_dir
1308 ac_install_sh="$ac_aux_dir/install-sh -c"
1309 break
1310 elif test -f $ac_dir/install.sh; then
1311 ac_aux_dir=$ac_dir
1312 ac_install_sh="$ac_aux_dir/install.sh -c"
1313 break
1314 elif test -f $ac_dir/shtool; then
1315 ac_aux_dir=$ac_dir
1316 ac_install_sh="$ac_aux_dir/shtool install -c"
1317 break
1319 done
1320 if test -z "$ac_aux_dir"; then
1321 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1322 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1323 { (exit 1); exit 1; }; }
1325 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1326 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1327 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1329 # Find a good install program. We prefer a C program (faster),
1330 # so one script is as good as another. But avoid the broken or
1331 # incompatible versions:
1332 # SysV /etc/install, /usr/sbin/install
1333 # SunOS /usr/etc/install
1334 # IRIX /sbin/install
1335 # AIX /bin/install
1336 # AmigaOS /C/install, which installs bootblocks on floppy discs
1337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1340 # ./install, which can be erroneously created by make from ./install.sh.
1341 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1342 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1343 if test -z "$INSTALL"; then
1344 if test "${ac_cv_path_install+set}" = set; then
1345 echo $ECHO_N "(cached) $ECHO_C" >&6
1346 else
1347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1348 for as_dir in $PATH
1350 IFS=$as_save_IFS
1351 test -z "$as_dir" && as_dir=.
1352 # Account for people who put trailing slashes in PATH elements.
1353 case $as_dir/ in
1354 ./ | .// | /cC/* | \
1355 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1356 /usr/ucb/* ) ;;
1358 # OSF1 and SCO ODT 3.0 have their own names for install.
1359 # Don't use installbsd from OSF since it installs stuff as root
1360 # by default.
1361 for ac_prog in ginstall scoinst install; do
1362 for ac_exec_ext in '' $ac_executable_extensions; do
1363 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1364 if test $ac_prog = install &&
1365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1366 # AIX install. It has an incompatible calling convention.
1368 elif test $ac_prog = install &&
1369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1370 # program-specific install script used by HP pwplus--don't use.
1372 else
1373 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1374 break 3
1377 done
1378 done
1380 esac
1381 done
1385 if test "${ac_cv_path_install+set}" = set; then
1386 INSTALL=$ac_cv_path_install
1387 else
1388 # As a last resort, use the slow shell script. We don't cache a
1389 # path for INSTALL within a source directory, because that will
1390 # break other packages using the cache if that directory is
1391 # removed, or if the path is relative.
1392 INSTALL=$ac_install_sh
1395 echo "$as_me:$LINENO: result: $INSTALL" >&5
1396 echo "${ECHO_T}$INSTALL" >&6
1398 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1399 # It thinks the first close brace ends the variable substitution.
1400 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1402 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1404 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1406 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1407 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1408 # Just in case
1409 sleep 1
1410 echo timestamp > conftest.file
1411 # Do `set' in a subshell so we don't clobber the current shell's
1412 # arguments. Must try -L first in case configure is actually a
1413 # symlink; some systems play weird games with the mod time of symlinks
1414 # (eg FreeBSD returns the mod time of the symlink's containing
1415 # directory).
1416 if (
1417 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1418 if test "$*" = "X"; then
1419 # -L didn't work.
1420 set X `ls -t $srcdir/configure conftest.file`
1422 rm -f conftest.file
1423 if test "$*" != "X $srcdir/configure conftest.file" \
1424 && test "$*" != "X conftest.file $srcdir/configure"; then
1426 # If neither matched, then we have a broken ls. This can happen
1427 # if, for instance, CONFIG_SHELL is bash and it inherits a
1428 # broken ls alias from the environment. This has actually
1429 # happened. Such a system could not be considered "sane".
1430 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1431 alias in your environment" >&5
1432 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1433 alias in your environment" >&2;}
1434 { (exit 1); exit 1; }; }
1437 test "$2" = conftest.file
1439 then
1440 # Ok.
1442 else
1443 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1444 Check your system clock" >&5
1445 echo "$as_me: error: newly created file is older than distributed files!
1446 Check your system clock" >&2;}
1447 { (exit 1); exit 1; }; }
1449 echo "$as_me:$LINENO: result: yes" >&5
1450 echo "${ECHO_T}yes" >&6
1451 test "$program_prefix" != NONE &&
1452 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1453 # Use a double $ so make ignores it.
1454 test "$program_suffix" != NONE &&
1455 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1456 # Double any \ or $. echo might interpret backslashes.
1457 # By default was `s,x,x', remove it if useless.
1458 cat <<\_ACEOF >conftest.sed
1459 s/[\\$]/&&/g;s/;s,x,x,$//
1460 _ACEOF
1461 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1462 rm conftest.sed
1465 # expand $ac_aux_dir to an absolute path
1466 am_aux_dir=`cd $ac_aux_dir && pwd`
1468 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1469 # Use eval to expand $SHELL
1470 if eval "$MISSING --run true"; then
1471 am_missing_run="$MISSING --run "
1472 else
1473 am_missing_run=
1474 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1475 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1478 for ac_prog in gawk mawk nawk awk
1480 # Extract the first word of "$ac_prog", so it can be a program name with args.
1481 set dummy $ac_prog; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_AWK+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 if test -n "$AWK"; then
1488 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1489 else
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_AWK="$ac_prog"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1501 done
1502 done
1506 AWK=$ac_cv_prog_AWK
1507 if test -n "$AWK"; then
1508 echo "$as_me:$LINENO: result: $AWK" >&5
1509 echo "${ECHO_T}$AWK" >&6
1510 else
1511 echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1515 test -n "$AWK" && break
1516 done
1518 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1519 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1520 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1521 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 else
1524 cat >conftest.make <<\_ACEOF
1525 all:
1526 @echo 'ac_maketemp="$(MAKE)"'
1527 _ACEOF
1528 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1529 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1530 if test -n "$ac_maketemp"; then
1531 eval ac_cv_prog_make_${ac_make}_set=yes
1532 else
1533 eval ac_cv_prog_make_${ac_make}_set=no
1535 rm -f conftest.make
1537 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1538 echo "$as_me:$LINENO: result: yes" >&5
1539 echo "${ECHO_T}yes" >&6
1540 SET_MAKE=
1541 else
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1544 SET_MAKE="MAKE=${MAKE-make}"
1547 rm -rf .tst 2>/dev/null
1548 mkdir .tst 2>/dev/null
1549 if test -d .tst; then
1550 am__leading_dot=.
1551 else
1552 am__leading_dot=_
1554 rmdir .tst 2>/dev/null
1556 # test to see if srcdir already configured
1557 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1558 test -f $srcdir/config.status; then
1559 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1560 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1561 { (exit 1); exit 1; }; }
1564 # test whether we have cygpath
1565 if test -z "$CYGPATH_W"; then
1566 if (cygpath --version) >/dev/null 2>/dev/null; then
1567 CYGPATH_W='cygpath -w'
1568 else
1569 CYGPATH_W=echo
1574 # Define the identity of the package.
1575 PACKAGE='libgfortran'
1576 VERSION='0.2'
1579 cat >>confdefs.h <<_ACEOF
1580 #define PACKAGE "$PACKAGE"
1581 _ACEOF
1584 cat >>confdefs.h <<_ACEOF
1585 #define VERSION "$VERSION"
1586 _ACEOF
1588 # Some tools Automake needs.
1590 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1593 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1596 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1599 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1602 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1605 AMTAR=${AMTAR-"${am_missing_run}tar"}
1607 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1609 # Installed binaries are usually stripped using `strip' when the user
1610 # run `make install-strip'. However `strip' might not be the right
1611 # tool to use in cross-compilation environments, therefore Automake
1612 # will honor the `STRIP' environment variable to overrule this program.
1613 if test "$cross_compiling" != no; then
1614 if test -n "$ac_tool_prefix"; then
1615 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1616 set dummy ${ac_tool_prefix}strip; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_STRIP+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 else
1622 if test -n "$STRIP"; then
1623 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1624 else
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 for as_dir in $PATH
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 for ac_exec_ext in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 break 2
1636 done
1637 done
1641 STRIP=$ac_cv_prog_STRIP
1642 if test -n "$STRIP"; then
1643 echo "$as_me:$LINENO: result: $STRIP" >&5
1644 echo "${ECHO_T}$STRIP" >&6
1645 else
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1651 if test -z "$ac_cv_prog_STRIP"; then
1652 ac_ct_STRIP=$STRIP
1653 # Extract the first word of "strip", so it can be a program name with args.
1654 set dummy strip; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660 if test -n "$ac_ct_STRIP"; then
1661 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_ac_ct_STRIP="strip"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1674 done
1675 done
1677 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1680 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1681 if test -n "$ac_ct_STRIP"; then
1682 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1683 echo "${ECHO_T}$ac_ct_STRIP" >&6
1684 else
1685 echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1689 STRIP=$ac_ct_STRIP
1690 else
1691 STRIP="$ac_cv_prog_STRIP"
1695 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1697 # We need awk for the "check" target. The system "awk" is bad on
1698 # some platforms.
1702 ac_config_headers="$ac_config_headers config.h"
1704 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1705 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1706 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1707 if test "${enable_maintainer_mode+set}" = set; then
1708 enableval="$enable_maintainer_mode"
1709 USE_MAINTAINER_MODE=$enableval
1710 else
1711 USE_MAINTAINER_MODE=no
1713 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1714 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1717 if test $USE_MAINTAINER_MODE = yes; then
1718 MAINTAINER_MODE_TRUE=
1719 MAINTAINER_MODE_FALSE='#'
1720 else
1721 MAINTAINER_MODE_TRUE='#'
1722 MAINTAINER_MODE_FALSE=
1725 MAINT=$MAINTAINER_MODE_TRUE
1732 # check for compiler
1733 ac_ext=c
1734 ac_cpp='$CPP $CPPFLAGS'
1735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1738 if test -n "$ac_tool_prefix"; then
1739 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1740 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1741 echo "$as_me:$LINENO: checking for $ac_word" >&5
1742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1743 if test "${ac_cv_prog_CC+set}" = set; then
1744 echo $ECHO_N "(cached) $ECHO_C" >&6
1745 else
1746 if test -n "$CC"; then
1747 ac_cv_prog_CC="$CC" # Let the user override the test.
1748 else
1749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750 for as_dir in $PATH
1752 IFS=$as_save_IFS
1753 test -z "$as_dir" && as_dir=.
1754 for ac_exec_ext in '' $ac_executable_extensions; do
1755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1756 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758 break 2
1760 done
1761 done
1765 CC=$ac_cv_prog_CC
1766 if test -n "$CC"; then
1767 echo "$as_me:$LINENO: result: $CC" >&5
1768 echo "${ECHO_T}$CC" >&6
1769 else
1770 echo "$as_me:$LINENO: result: no" >&5
1771 echo "${ECHO_T}no" >&6
1775 if test -z "$ac_cv_prog_CC"; then
1776 ac_ct_CC=$CC
1777 # Extract the first word of "gcc", so it can be a program name with args.
1778 set dummy gcc; ac_word=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784 if test -n "$ac_ct_CC"; then
1785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1786 else
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 for as_dir in $PATH
1790 IFS=$as_save_IFS
1791 test -z "$as_dir" && as_dir=.
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_ac_ct_CC="gcc"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 break 2
1798 done
1799 done
1803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1804 if test -n "$ac_ct_CC"; then
1805 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1806 echo "${ECHO_T}$ac_ct_CC" >&6
1807 else
1808 echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1812 CC=$ac_ct_CC
1813 else
1814 CC="$ac_cv_prog_CC"
1817 if test -z "$CC"; then
1818 if test -n "$ac_tool_prefix"; then
1819 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1820 set dummy ${ac_tool_prefix}cc; ac_word=$2
1821 echo "$as_me:$LINENO: checking for $ac_word" >&5
1822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1823 if test "${ac_cv_prog_CC+set}" = set; then
1824 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 else
1826 if test -n "$CC"; then
1827 ac_cv_prog_CC="$CC" # Let the user override the test.
1828 else
1829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830 for as_dir in $PATH
1832 IFS=$as_save_IFS
1833 test -z "$as_dir" && as_dir=.
1834 for ac_exec_ext in '' $ac_executable_extensions; do
1835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1836 ac_cv_prog_CC="${ac_tool_prefix}cc"
1837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1838 break 2
1840 done
1841 done
1845 CC=$ac_cv_prog_CC
1846 if test -n "$CC"; then
1847 echo "$as_me:$LINENO: result: $CC" >&5
1848 echo "${ECHO_T}$CC" >&6
1849 else
1850 echo "$as_me:$LINENO: result: no" >&5
1851 echo "${ECHO_T}no" >&6
1855 if test -z "$ac_cv_prog_CC"; then
1856 ac_ct_CC=$CC
1857 # Extract the first word of "cc", so it can be a program name with args.
1858 set dummy cc; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864 if test -n "$ac_ct_CC"; then
1865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1870 IFS=$as_save_IFS
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_ac_ct_CC="cc"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876 break 2
1878 done
1879 done
1883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1884 if test -n "$ac_ct_CC"; then
1885 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1886 echo "${ECHO_T}$ac_ct_CC" >&6
1887 else
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1892 CC=$ac_ct_CC
1893 else
1894 CC="$ac_cv_prog_CC"
1898 if test -z "$CC"; then
1899 # Extract the first word of "cc", so it can be a program name with args.
1900 set dummy cc; ac_word=$2
1901 echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903 if test "${ac_cv_prog_CC+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906 if test -n "$CC"; then
1907 ac_cv_prog_CC="$CC" # Let the user override the test.
1908 else
1909 ac_prog_rejected=no
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1918 ac_prog_rejected=yes
1919 continue
1921 ac_cv_prog_CC="cc"
1922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 break 2
1925 done
1926 done
1928 if test $ac_prog_rejected = yes; then
1929 # We found a bogon in the path, so make sure we never use it.
1930 set dummy $ac_cv_prog_CC
1931 shift
1932 if test $# != 0; then
1933 # We chose a different compiler from the bogus one.
1934 # However, it has the same basename, so the bogon will be chosen
1935 # first if we set CC to just the basename; use the full file name.
1936 shift
1937 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1942 CC=$ac_cv_prog_CC
1943 if test -n "$CC"; then
1944 echo "$as_me:$LINENO: result: $CC" >&5
1945 echo "${ECHO_T}$CC" >&6
1946 else
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1952 if test -z "$CC"; then
1953 if test -n "$ac_tool_prefix"; then
1954 for ac_prog in cl
1956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1958 echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960 if test "${ac_cv_prog_CC+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 else
1963 if test -n "$CC"; then
1964 ac_cv_prog_CC="$CC" # Let the user override the test.
1965 else
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1969 IFS=$as_save_IFS
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975 break 2
1977 done
1978 done
1982 CC=$ac_cv_prog_CC
1983 if test -n "$CC"; then
1984 echo "$as_me:$LINENO: result: $CC" >&5
1985 echo "${ECHO_T}$CC" >&6
1986 else
1987 echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6
1991 test -n "$CC" && break
1992 done
1994 if test -z "$CC"; then
1995 ac_ct_CC=$CC
1996 for ac_prog in cl
1998 # Extract the first word of "$ac_prog", so it can be a program name with args.
1999 set dummy $ac_prog; ac_word=$2
2000 echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005 if test -n "$ac_ct_CC"; then
2006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2007 else
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015 ac_cv_prog_ac_ct_CC="$ac_prog"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 break 2
2019 done
2020 done
2024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2025 if test -n "$ac_ct_CC"; then
2026 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2027 echo "${ECHO_T}$ac_ct_CC" >&6
2028 else
2029 echo "$as_me:$LINENO: result: no" >&5
2030 echo "${ECHO_T}no" >&6
2033 test -n "$ac_ct_CC" && break
2034 done
2036 CC=$ac_ct_CC
2042 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: no acceptable C compiler found in \$PATH
2045 See \`config.log' for more details." >&2;}
2046 { (exit 1); exit 1; }; }
2048 # Provide some information about the compiler.
2049 echo "$as_me:$LINENO:" \
2050 "checking for C compiler version" >&5
2051 ac_compiler=`set X $ac_compile; echo $2`
2052 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2053 (eval $ac_compiler --version </dev/null >&5) 2>&5
2054 ac_status=$?
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }
2057 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2058 (eval $ac_compiler -v </dev/null >&5) 2>&5
2059 ac_status=$?
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }
2062 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2063 (eval $ac_compiler -V </dev/null >&5) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }
2068 cat >conftest.$ac_ext <<_ACEOF
2069 #line $LINENO "configure"
2070 /* confdefs.h. */
2071 _ACEOF
2072 cat confdefs.h >>conftest.$ac_ext
2073 cat >>conftest.$ac_ext <<_ACEOF
2074 /* end confdefs.h. */
2077 main ()
2081 return 0;
2083 _ACEOF
2084 ac_clean_files_save=$ac_clean_files
2085 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2086 # Try to create an executable without -o first, disregard a.out.
2087 # It will help us diagnose broken compilers, and finding out an intuition
2088 # of exeext.
2089 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2090 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2091 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2092 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2093 (eval $ac_link_default) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; then
2097 # Find the output, starting from the most likely. This scheme is
2098 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2099 # resort.
2101 # Be careful to initialize this variable, since it used to be cached.
2102 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2103 ac_cv_exeext=
2104 # b.out is created by i960 compilers.
2105 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2107 test -f "$ac_file" || continue
2108 case $ac_file in
2109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2111 conftest.$ac_ext )
2112 # This is the source file.
2114 [ab].out )
2115 # We found the default executable, but exeext='' is most
2116 # certainly right.
2117 break;;
2118 *.* )
2119 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2120 # FIXME: I believe we export ac_cv_exeext for Libtool,
2121 # but it would be cool to find out if it's true. Does anybody
2122 # maintain Libtool? --akim.
2123 export ac_cv_exeext
2124 break;;
2126 break;;
2127 esac
2128 done
2129 else
2130 echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2133 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: C compiler cannot create executables
2136 See \`config.log' for more details." >&2;}
2137 { (exit 77); exit 77; }; }
2140 ac_exeext=$ac_cv_exeext
2141 echo "$as_me:$LINENO: result: $ac_file" >&5
2142 echo "${ECHO_T}$ac_file" >&6
2144 # Check the compiler produces executables we can run. If not, either
2145 # the compiler is broken, or we cross compile.
2146 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2147 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2148 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2149 # If not cross compiling, check that we can run a simple program.
2150 if test "$cross_compiling" != yes; then
2151 if { ac_try='./$ac_file'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 (eval $ac_try) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; }; then
2157 cross_compiling=no
2158 else
2159 if test "$cross_compiling" = maybe; then
2160 cross_compiling=yes
2161 else
2162 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2163 If you meant to cross compile, use \`--host'.
2164 See \`config.log' for more details." >&5
2165 echo "$as_me: error: cannot run C compiled programs.
2166 If you meant to cross compile, use \`--host'.
2167 See \`config.log' for more details." >&2;}
2168 { (exit 1); exit 1; }; }
2172 echo "$as_me:$LINENO: result: yes" >&5
2173 echo "${ECHO_T}yes" >&6
2175 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2176 ac_clean_files=$ac_clean_files_save
2177 # Check the compiler produces executables we can run. If not, either
2178 # the compiler is broken, or we cross compile.
2179 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2180 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2181 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2182 echo "${ECHO_T}$cross_compiling" >&6
2184 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2185 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2187 (eval $ac_link) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; then
2191 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2192 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2193 # work properly (i.e., refer to `conftest.exe'), while it won't with
2194 # `rm'.
2195 for ac_file in conftest.exe conftest conftest.*; do
2196 test -f "$ac_file" || continue
2197 case $ac_file in
2198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2199 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 export ac_cv_exeext
2201 break;;
2202 * ) break;;
2203 esac
2204 done
2205 else
2206 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2209 See \`config.log' for more details." >&2;}
2210 { (exit 1); exit 1; }; }
2213 rm -f conftest$ac_cv_exeext
2214 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2215 echo "${ECHO_T}$ac_cv_exeext" >&6
2217 rm -f conftest.$ac_ext
2218 EXEEXT=$ac_cv_exeext
2219 ac_exeext=$EXEEXT
2220 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2221 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2222 if test "${ac_cv_objext+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225 cat >conftest.$ac_ext <<_ACEOF
2226 #line $LINENO "configure"
2227 /* confdefs.h. */
2228 _ACEOF
2229 cat confdefs.h >>conftest.$ac_ext
2230 cat >>conftest.$ac_ext <<_ACEOF
2231 /* end confdefs.h. */
2234 main ()
2238 return 0;
2240 _ACEOF
2241 rm -f conftest.o conftest.obj
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243 (eval $ac_compile) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; then
2247 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2248 case $ac_file in
2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2250 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2251 break;;
2252 esac
2253 done
2254 else
2255 echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2258 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2261 See \`config.log' for more details." >&2;}
2262 { (exit 1); exit 1; }; }
2265 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2267 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2268 echo "${ECHO_T}$ac_cv_objext" >&6
2269 OBJEXT=$ac_cv_objext
2270 ac_objext=$OBJEXT
2271 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2272 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2273 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276 cat >conftest.$ac_ext <<_ACEOF
2277 #line $LINENO "configure"
2278 /* confdefs.h. */
2279 _ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h. */
2285 main ()
2287 #ifndef __GNUC__
2288 choke me
2289 #endif
2292 return 0;
2294 _ACEOF
2295 rm -f conftest.$ac_objext
2296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297 (eval $ac_compile) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); } &&
2301 { ac_try='test -s conftest.$ac_objext'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 (eval $ac_try) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; }; then
2307 ac_compiler_gnu=yes
2308 else
2309 echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2312 ac_compiler_gnu=no
2314 rm -f conftest.$ac_objext conftest.$ac_ext
2315 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2318 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2319 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2320 GCC=`test $ac_compiler_gnu = yes && echo yes`
2321 ac_test_CFLAGS=${CFLAGS+set}
2322 ac_save_CFLAGS=$CFLAGS
2323 CFLAGS="-g"
2324 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2325 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2326 if test "${ac_cv_prog_cc_g+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329 cat >conftest.$ac_ext <<_ACEOF
2330 #line $LINENO "configure"
2331 /* confdefs.h. */
2332 _ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h. */
2338 main ()
2342 return 0;
2344 _ACEOF
2345 rm -f conftest.$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -s conftest.$ac_objext'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; }; then
2357 ac_cv_prog_cc_g=yes
2358 else
2359 echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2362 ac_cv_prog_cc_g=no
2364 rm -f conftest.$ac_objext conftest.$ac_ext
2366 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2367 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2368 if test "$ac_test_CFLAGS" = set; then
2369 CFLAGS=$ac_save_CFLAGS
2370 elif test $ac_cv_prog_cc_g = yes; then
2371 if test "$GCC" = yes; then
2372 CFLAGS="-g -O2"
2373 else
2374 CFLAGS="-g"
2376 else
2377 if test "$GCC" = yes; then
2378 CFLAGS="-O2"
2379 else
2380 CFLAGS=
2383 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2384 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2385 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388 ac_cv_prog_cc_stdc=no
2389 ac_save_CC=$CC
2390 cat >conftest.$ac_ext <<_ACEOF
2391 #line $LINENO "configure"
2392 /* confdefs.h. */
2393 _ACEOF
2394 cat confdefs.h >>conftest.$ac_ext
2395 cat >>conftest.$ac_ext <<_ACEOF
2396 /* end confdefs.h. */
2397 #include <stdarg.h>
2398 #include <stdio.h>
2399 #include <sys/types.h>
2400 #include <sys/stat.h>
2401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2402 struct buf { int x; };
2403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2404 static char *e (p, i)
2405 char **p;
2406 int i;
2408 return p[i];
2410 static char *f (char * (*g) (char **, int), char **p, ...)
2412 char *s;
2413 va_list v;
2414 va_start (v,p);
2415 s = g (p, va_arg (v,int));
2416 va_end (v);
2417 return s;
2419 int test (int i, double x);
2420 struct s1 {int (*f) (int a);};
2421 struct s2 {int (*f) (double a);};
2422 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2423 int argc;
2424 char **argv;
2426 main ()
2428 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2430 return 0;
2432 _ACEOF
2433 # Don't try gcc -ansi; that turns off useful extensions and
2434 # breaks some systems' header files.
2435 # AIX -qlanglvl=ansi
2436 # Ultrix and OSF/1 -std1
2437 # HP-UX 10.20 and later -Ae
2438 # HP-UX older versions -Aa -D_HPUX_SOURCE
2439 # SVR4 -Xc -D__EXTENSIONS__
2440 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2442 CC="$ac_save_CC $ac_arg"
2443 rm -f conftest.$ac_objext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445 (eval $ac_compile) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
2449 { ac_try='test -s conftest.$ac_objext'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 (eval $ac_try) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; }; then
2455 ac_cv_prog_cc_stdc=$ac_arg
2456 break
2457 else
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2462 rm -f conftest.$ac_objext
2463 done
2464 rm -f conftest.$ac_ext conftest.$ac_objext
2465 CC=$ac_save_CC
2469 case "x$ac_cv_prog_cc_stdc" in
2470 x|xno)
2471 echo "$as_me:$LINENO: result: none needed" >&5
2472 echo "${ECHO_T}none needed" >&6 ;;
2474 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2475 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2476 CC="$CC $ac_cv_prog_cc_stdc" ;;
2477 esac
2479 # Some people use a C++ compiler to compile C. Since we use `exit',
2480 # in C++ we need to declare it. In case someone uses the same compiler
2481 # for both compiling C and C++ we need to have the C++ compiler decide
2482 # the declaration of exit, since it's the most demanding environment.
2483 cat >conftest.$ac_ext <<_ACEOF
2484 #ifndef __cplusplus
2485 choke me
2486 #endif
2487 _ACEOF
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490 (eval $ac_compile) 2>&5
2491 ac_status=$?
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } &&
2494 { ac_try='test -s conftest.$ac_objext'
2495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496 (eval $ac_try) 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; }; then
2500 for ac_declaration in \
2501 '' \
2502 'extern "C" void std::exit (int) throw (); using std::exit;' \
2503 'extern "C" void std::exit (int); using std::exit;' \
2504 'extern "C" void exit (int) throw ();' \
2505 'extern "C" void exit (int);' \
2506 'void exit (int);'
2508 cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2510 /* confdefs.h. */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2515 $ac_declaration
2516 #include <stdlib.h>
2518 main ()
2520 exit (42);
2522 return 0;
2524 _ACEOF
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 (eval $ac_try) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2538 else
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2542 continue
2544 rm -f conftest.$ac_objext conftest.$ac_ext
2545 cat >conftest.$ac_ext <<_ACEOF
2546 #line $LINENO "configure"
2547 /* confdefs.h. */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2552 $ac_declaration
2554 main ()
2556 exit (42);
2558 return 0;
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 break
2574 else
2575 echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2579 rm -f conftest.$ac_objext conftest.$ac_ext
2580 done
2581 rm -f conftest*
2582 if test -n "$ac_declaration"; then
2583 echo '#ifdef __cplusplus' >>confdefs.h
2584 echo $ac_declaration >>confdefs.h
2585 echo '#endif' >>confdefs.h
2588 else
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2593 rm -f conftest.$ac_objext conftest.$ac_ext
2594 ac_ext=c
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2599 DEPDIR="${am__leading_dot}deps"
2601 ac_config_commands="$ac_config_commands depfiles"
2604 am_make=${MAKE-make}
2605 cat > confinc << 'END'
2606 am__doit:
2607 @echo done
2608 .PHONY: am__doit
2610 # If we don't find an include directive, just comment out the code.
2611 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2612 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2613 am__include="#"
2614 am__quote=
2615 _am_result=none
2616 # First try GNU make style include.
2617 echo "include confinc" > confmf
2618 # We grep out `Entering directory' and `Leaving directory'
2619 # messages which can occur if `w' ends up in MAKEFLAGS.
2620 # In particular we don't look at `^make:' because GNU make might
2621 # be invoked under some other name (usually "gmake"), in which
2622 # case it prints its new name instead of `make'.
2623 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2624 am__include=include
2625 am__quote=
2626 _am_result=GNU
2628 # Now try BSD make style include.
2629 if test "$am__include" = "#"; then
2630 echo '.include "confinc"' > confmf
2631 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2632 am__include=.include
2633 am__quote="\""
2634 _am_result=BSD
2639 echo "$as_me:$LINENO: result: $_am_result" >&5
2640 echo "${ECHO_T}$_am_result" >&6
2641 rm -f confinc confmf
2643 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2644 if test "${enable_dependency_tracking+set}" = set; then
2645 enableval="$enable_dependency_tracking"
2648 if test "x$enable_dependency_tracking" != xno; then
2649 am_depcomp="$ac_aux_dir/depcomp"
2650 AMDEPBACKSLASH='\'
2654 if test "x$enable_dependency_tracking" != xno; then
2655 AMDEP_TRUE=
2656 AMDEP_FALSE='#'
2657 else
2658 AMDEP_TRUE='#'
2659 AMDEP_FALSE=
2665 depcc="$CC" am_compiler_list=
2667 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2668 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2669 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2673 # We make a subdir and do the tests there. Otherwise we can end up
2674 # making bogus files that we don't know about and never remove. For
2675 # instance it was reported that on HP-UX the gcc test will end up
2676 # making a dummy file named `D' -- because `-MD' means `put the output
2677 # in D'.
2678 mkdir conftest.dir
2679 # Copy depcomp to subdir because otherwise we won't find it if we're
2680 # using a relative directory.
2681 cp "$am_depcomp" conftest.dir
2682 cd conftest.dir
2683 # We will build objects and dependencies in a subdirectory because
2684 # it helps to detect inapplicable dependency modes. For instance
2685 # both Tru64's cc and ICC support -MD to output dependencies as a
2686 # side effect of compilation, but ICC will put the dependencies in
2687 # the current directory while Tru64 will put them in the object
2688 # directory.
2689 mkdir sub
2691 am_cv_CC_dependencies_compiler_type=none
2692 if test "$am_compiler_list" = ""; then
2693 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2695 for depmode in $am_compiler_list; do
2696 # Setup a source with many dependencies, because some compilers
2697 # like to wrap large dependency lists on column 80 (with \), and
2698 # we should not choose a depcomp mode which is confused by this.
2700 # We need to recreate these files for each test, as the compiler may
2701 # overwrite some of them when testing with obscure command lines.
2702 # This happens at least with the AIX C compiler.
2703 : > sub/conftest.c
2704 for i in 1 2 3 4 5 6; do
2705 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2706 : > sub/conftst$i.h
2707 done
2708 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2710 case $depmode in
2711 nosideeffect)
2712 # after this tag, mechanisms are not by side-effect, so they'll
2713 # only be used when explicitly requested
2714 if test "x$enable_dependency_tracking" = xyes; then
2715 continue
2716 else
2717 break
2720 none) break ;;
2721 esac
2722 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2723 # mode. It turns out that the SunPro C++ compiler does not properly
2724 # handle `-M -o', and we need to detect this.
2725 if depmode=$depmode \
2726 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2727 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2728 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2729 >/dev/null 2>conftest.err &&
2730 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2731 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2732 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2733 # icc doesn't choke on unknown options, it will just issue warnings
2734 # (even with -Werror). So we grep stderr for any message
2735 # that says an option was ignored.
2736 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2737 am_cv_CC_dependencies_compiler_type=$depmode
2738 break
2741 done
2743 cd ..
2744 rm -rf conftest.dir
2745 else
2746 am_cv_CC_dependencies_compiler_type=none
2750 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2751 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2752 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2757 test "x$enable_dependency_tracking" != xno \
2758 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2759 am__fastdepCC_TRUE=
2760 am__fastdepCC_FALSE='#'
2761 else
2762 am__fastdepCC_TRUE='#'
2763 am__fastdepCC_FALSE=
2767 if test "x$GCC" = "xyes"; then
2768 CFLAGS="$CFLAGS -Wall"
2771 # We need gfortran to compile parts of the library
2772 # We can't use AC_PROG_F77 because it expects a fully working gfortran.
2773 #AC_PROG_F77(gfortran)
2774 F77="$GFORTRAN"
2775 ac_ext=f
2776 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2777 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2779 if test -n "$ac_tool_prefix"; then
2780 for ac_prog in gfortran
2782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2784 echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2786 if test "${ac_cv_prog_F77+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 else
2789 if test -n "$F77"; then
2790 ac_cv_prog_F77="$F77" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2803 done
2804 done
2808 F77=$ac_cv_prog_F77
2809 if test -n "$F77"; then
2810 echo "$as_me:$LINENO: result: $F77" >&5
2811 echo "${ECHO_T}$F77" >&6
2812 else
2813 echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6
2817 test -n "$F77" && break
2818 done
2820 if test -z "$F77"; then
2821 ac_ct_F77=$F77
2822 for ac_prog in gfortran
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825 set dummy $ac_prog; ac_word=$2
2826 echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2828 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831 if test -n "$ac_ct_F77"; then
2832 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_ac_ct_F77="$ac_prog"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2845 done
2846 done
2850 ac_ct_F77=$ac_cv_prog_ac_ct_F77
2851 if test -n "$ac_ct_F77"; then
2852 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
2853 echo "${ECHO_T}$ac_ct_F77" >&6
2854 else
2855 echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6
2859 test -n "$ac_ct_F77" && break
2860 done
2862 F77=$ac_ct_F77
2866 # Provide some information about the compiler.
2867 echo "$as_me:2867:" \
2868 "checking for Fortran 77 compiler version" >&5
2869 ac_compiler=`set X $ac_compile; echo $2`
2870 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2871 (eval $ac_compiler --version </dev/null >&5) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }
2875 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2876 (eval $ac_compiler -v </dev/null >&5) 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }
2880 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2881 (eval $ac_compiler -V </dev/null >&5) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }
2886 # If we don't use `.F' as extension, the preprocessor is not run on the
2887 # input file.
2888 ac_save_ext=$ac_ext
2889 ac_ext=F
2890 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
2891 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
2892 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895 cat >conftest.$ac_ext <<_ACEOF
2896 program main
2897 #ifndef __GNUC__
2898 choke me
2899 #endif
2902 _ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); } &&
2909 { ac_try='test -s conftest.$ac_objext'
2910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911 (eval $ac_try) 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; }; then
2915 ac_compiler_gnu=yes
2916 else
2917 echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2920 ac_compiler_gnu=no
2922 rm -f conftest.$ac_objext conftest.$ac_ext
2923 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
2926 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
2927 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
2928 ac_ext=$ac_save_ext
2929 G77=`test $ac_compiler_gnu = yes && echo yes`
2930 ac_test_FFLAGS=${FFLAGS+set}
2931 ac_save_FFLAGS=$FFLAGS
2932 FFLAGS=
2933 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
2934 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
2935 if test "${ac_cv_prog_f77_g+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938 FFLAGS=-g
2939 cat >conftest.$ac_ext <<_ACEOF
2940 program main
2943 _ACEOF
2944 rm -f conftest.$ac_objext
2945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2946 (eval $ac_compile) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 ac_cv_prog_f77_g=yes
2957 else
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 ac_cv_prog_f77_g=no
2963 rm -f conftest.$ac_objext conftest.$ac_ext
2966 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
2967 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
2968 if test "$ac_test_FFLAGS" = set; then
2969 FFLAGS=$ac_save_FFLAGS
2970 elif test $ac_cv_prog_f77_g = yes; then
2971 if test "$G77" = yes; then
2972 FFLAGS="-g -O2"
2973 else
2974 FFLAGS="-g"
2976 else
2977 if test "$G77" = yes; then
2978 FFLAGS="-O2"
2979 else
2980 FFLAGS=
2983 ac_ext=c
2984 ac_cpp='$CPP $CPPFLAGS'
2985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989 FFLAGS="$FFLAGS -Wall -fno-repack-arrays -fno-underscoring"
2992 ac_ext=c
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2997 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2998 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2999 # On Suns, sometimes $CPP names a directory.
3000 if test -n "$CPP" && test -d "$CPP"; then
3001 CPP=
3003 if test -z "$CPP"; then
3004 if test "${ac_cv_prog_CPP+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007 # Double quotes because CPP needs to be expanded
3008 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3010 ac_preproc_ok=false
3011 for ac_c_preproc_warn_flag in '' yes
3013 # Use a header file that comes with gcc, so configuring glibc
3014 # with a fresh cross-compiler works.
3015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3016 # <limits.h> exists even on freestanding compilers.
3017 # On the NeXT, cc -E runs the code through the compiler's parser,
3018 # not just through cpp. "Syntax error" is here to catch this case.
3019 cat >conftest.$ac_ext <<_ACEOF
3020 #line $LINENO "configure"
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3026 #ifdef __STDC__
3027 # include <limits.h>
3028 #else
3029 # include <assert.h>
3030 #endif
3031 Syntax error
3032 _ACEOF
3033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3035 ac_status=$?
3036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } >/dev/null; then
3041 if test -s conftest.err; then
3042 ac_cpp_err=$ac_c_preproc_warn_flag
3043 else
3044 ac_cpp_err=
3046 else
3047 ac_cpp_err=yes
3049 if test -z "$ac_cpp_err"; then
3051 else
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3055 # Broken: fails on valid input.
3056 continue
3058 rm -f conftest.err conftest.$ac_ext
3060 # OK, works on sane cases. Now check whether non-existent headers
3061 # can be detected and how.
3062 cat >conftest.$ac_ext <<_ACEOF
3063 #line $LINENO "configure"
3064 /* confdefs.h. */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3069 #include <ac_nonexistent.h>
3070 _ACEOF
3071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3073 ac_status=$?
3074 grep -v '^ *+' conftest.er1 >conftest.err
3075 rm -f conftest.er1
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } >/dev/null; then
3079 if test -s conftest.err; then
3080 ac_cpp_err=$ac_c_preproc_warn_flag
3081 else
3082 ac_cpp_err=
3084 else
3085 ac_cpp_err=yes
3087 if test -z "$ac_cpp_err"; then
3088 # Broken: success on invalid input.
3089 continue
3090 else
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3094 # Passes both tests.
3095 ac_preproc_ok=:
3096 break
3098 rm -f conftest.err conftest.$ac_ext
3100 done
3101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3102 rm -f conftest.err conftest.$ac_ext
3103 if $ac_preproc_ok; then
3104 break
3107 done
3108 ac_cv_prog_CPP=$CPP
3111 CPP=$ac_cv_prog_CPP
3112 else
3113 ac_cv_prog_CPP=$CPP
3115 echo "$as_me:$LINENO: result: $CPP" >&5
3116 echo "${ECHO_T}$CPP" >&6
3117 ac_preproc_ok=false
3118 for ac_c_preproc_warn_flag in '' yes
3120 # Use a header file that comes with gcc, so configuring glibc
3121 # with a fresh cross-compiler works.
3122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3123 # <limits.h> exists even on freestanding compilers.
3124 # On the NeXT, cc -E runs the code through the compiler's parser,
3125 # not just through cpp. "Syntax error" is here to catch this case.
3126 cat >conftest.$ac_ext <<_ACEOF
3127 #line $LINENO "configure"
3128 /* confdefs.h. */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3133 #ifdef __STDC__
3134 # include <limits.h>
3135 #else
3136 # include <assert.h>
3137 #endif
3138 Syntax error
3139 _ACEOF
3140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3142 ac_status=$?
3143 grep -v '^ *+' conftest.er1 >conftest.err
3144 rm -f conftest.er1
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } >/dev/null; then
3148 if test -s conftest.err; then
3149 ac_cpp_err=$ac_c_preproc_warn_flag
3150 else
3151 ac_cpp_err=
3153 else
3154 ac_cpp_err=yes
3156 if test -z "$ac_cpp_err"; then
3158 else
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 # Broken: fails on valid input.
3163 continue
3165 rm -f conftest.err conftest.$ac_ext
3167 # OK, works on sane cases. Now check whether non-existent headers
3168 # can be detected and how.
3169 cat >conftest.$ac_ext <<_ACEOF
3170 #line $LINENO "configure"
3171 /* confdefs.h. */
3172 _ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3176 #include <ac_nonexistent.h>
3177 _ACEOF
3178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3179 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3180 ac_status=$?
3181 grep -v '^ *+' conftest.er1 >conftest.err
3182 rm -f conftest.er1
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } >/dev/null; then
3186 if test -s conftest.err; then
3187 ac_cpp_err=$ac_c_preproc_warn_flag
3188 else
3189 ac_cpp_err=
3191 else
3192 ac_cpp_err=yes
3194 if test -z "$ac_cpp_err"; then
3195 # Broken: success on invalid input.
3196 continue
3197 else
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3201 # Passes both tests.
3202 ac_preproc_ok=:
3203 break
3205 rm -f conftest.err conftest.$ac_ext
3207 done
3208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3209 rm -f conftest.err conftest.$ac_ext
3210 if $ac_preproc_ok; then
3212 else
3213 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3214 See \`config.log' for more details." >&5
3215 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3216 See \`config.log' for more details." >&2;}
3217 { (exit 1); exit 1; }; }
3220 ac_ext=c
3221 ac_cpp='$CPP $CPPFLAGS'
3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227 echo "$as_me:$LINENO: checking for egrep" >&5
3228 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3229 if test "${ac_cv_prog_egrep+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3233 then ac_cv_prog_egrep='grep -E'
3234 else ac_cv_prog_egrep='egrep'
3237 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3238 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3239 EGREP=$ac_cv_prog_egrep
3242 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3243 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3244 if test "${ac_cv_header_stdc+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 cat >conftest.$ac_ext <<_ACEOF
3248 #line $LINENO "configure"
3249 /* confdefs.h. */
3250 _ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h. */
3254 #include <stdlib.h>
3255 #include <stdarg.h>
3256 #include <string.h>
3257 #include <float.h>
3260 main ()
3264 return 0;
3266 _ACEOF
3267 rm -f conftest.$ac_objext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3269 (eval $ac_compile) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 ac_cv_header_stdc=yes
3280 else
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3284 ac_cv_header_stdc=no
3286 rm -f conftest.$ac_objext conftest.$ac_ext
3288 if test $ac_cv_header_stdc = yes; then
3289 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3290 cat >conftest.$ac_ext <<_ACEOF
3291 #line $LINENO "configure"
3292 /* confdefs.h. */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3297 #include <string.h>
3299 _ACEOF
3300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3301 $EGREP "memchr" >/dev/null 2>&1; then
3303 else
3304 ac_cv_header_stdc=no
3306 rm -f conftest*
3310 if test $ac_cv_header_stdc = yes; then
3311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3312 cat >conftest.$ac_ext <<_ACEOF
3313 #line $LINENO "configure"
3314 /* confdefs.h. */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3319 #include <stdlib.h>
3321 _ACEOF
3322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3323 $EGREP "free" >/dev/null 2>&1; then
3325 else
3326 ac_cv_header_stdc=no
3328 rm -f conftest*
3332 if test $ac_cv_header_stdc = yes; then
3333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3334 if test "$cross_compiling" = yes; then
3336 else
3337 cat >conftest.$ac_ext <<_ACEOF
3338 #line $LINENO "configure"
3339 /* confdefs.h. */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3344 #include <ctype.h>
3345 #if ((' ' & 0x0FF) == 0x020)
3346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3348 #else
3349 # define ISLOWER(c) \
3350 (('a' <= (c) && (c) <= 'i') \
3351 || ('j' <= (c) && (c) <= 'r') \
3352 || ('s' <= (c) && (c) <= 'z'))
3353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3354 #endif
3356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3358 main ()
3360 int i;
3361 for (i = 0; i < 256; i++)
3362 if (XOR (islower (i), ISLOWER (i))
3363 || toupper (i) != TOUPPER (i))
3364 exit(2);
3365 exit (0);
3367 _ACEOF
3368 rm -f conftest$ac_exeext
3369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3370 (eval $ac_link) 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 (eval $ac_try) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3380 else
3381 echo "$as_me: program exited with status $ac_status" >&5
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3385 ( exit $ac_status )
3386 ac_cv_header_stdc=no
3388 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3392 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3393 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3394 if test $ac_cv_header_stdc = yes; then
3396 cat >>confdefs.h <<\_ACEOF
3397 #define STDC_HEADERS 1
3398 _ACEOF
3402 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3412 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3413 inttypes.h stdint.h unistd.h
3415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3416 echo "$as_me:$LINENO: checking for $ac_header" >&5
3417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421 cat >conftest.$ac_ext <<_ACEOF
3422 #line $LINENO "configure"
3423 /* confdefs.h. */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 $ac_includes_default
3430 #include <$ac_header>
3431 _ACEOF
3432 rm -f conftest.$ac_objext
3433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
3438 { ac_try='test -s conftest.$ac_objext'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 (eval $ac_try) 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; }; then
3444 eval "$as_ac_Header=yes"
3445 else
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 eval "$as_ac_Header=no"
3451 rm -f conftest.$ac_objext conftest.$ac_ext
3453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3456 cat >>confdefs.h <<_ACEOF
3457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3458 _ACEOF
3462 done
3467 for ac_header in stdlib.h unistd.h
3469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3471 echo "$as_me:$LINENO: checking for $ac_header" >&5
3472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3478 else
3479 # Is the header compilable?
3480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3482 cat >conftest.$ac_ext <<_ACEOF
3483 #line $LINENO "configure"
3484 /* confdefs.h. */
3485 _ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3489 $ac_includes_default
3490 #include <$ac_header>
3491 _ACEOF
3492 rm -f conftest.$ac_objext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494 (eval $ac_compile) 2>&5
3495 ac_status=$?
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } &&
3498 { ac_try='test -s conftest.$ac_objext'
3499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 (eval $ac_try) 2>&5
3501 ac_status=$?
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; }; then
3504 ac_header_compiler=yes
3505 else
3506 echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3509 ac_header_compiler=no
3511 rm -f conftest.$ac_objext conftest.$ac_ext
3512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3513 echo "${ECHO_T}$ac_header_compiler" >&6
3515 # Is the header present?
3516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3518 cat >conftest.$ac_ext <<_ACEOF
3519 #line $LINENO "configure"
3520 /* confdefs.h. */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3525 #include <$ac_header>
3526 _ACEOF
3527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } >/dev/null; then
3535 if test -s conftest.err; then
3536 ac_cpp_err=$ac_c_preproc_warn_flag
3537 else
3538 ac_cpp_err=
3540 else
3541 ac_cpp_err=yes
3543 if test -z "$ac_cpp_err"; then
3544 ac_header_preproc=yes
3545 else
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3549 ac_header_preproc=no
3551 rm -f conftest.err conftest.$ac_ext
3552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3553 echo "${ECHO_T}$ac_header_preproc" >&6
3555 # So? What about this header?
3556 case $ac_header_compiler:$ac_header_preproc in
3557 yes:no )
3558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3563 cat <<\_ASBOX
3564 ## ------------------------------------ ##
3565 ## Report this to bug-autoconf@gnu.org. ##
3566 ## ------------------------------------ ##
3567 _ASBOX
3569 sed "s/^/$as_me: WARNING: /" >&2
3571 no:yes )
3572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3579 cat <<\_ASBOX
3580 ## ------------------------------------ ##
3581 ## Report this to bug-autoconf@gnu.org. ##
3582 ## ------------------------------------ ##
3583 _ASBOX
3585 sed "s/^/$as_me: WARNING: /" >&2
3587 esac
3588 echo "$as_me:$LINENO: checking for $ac_header" >&5
3589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593 eval "$as_ac_Header=$ac_header_preproc"
3595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3600 cat >>confdefs.h <<_ACEOF
3601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3602 _ACEOF
3606 done
3609 for ac_func in getpagesize
3611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3612 echo "$as_me:$LINENO: checking for $ac_func" >&5
3613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3614 if eval "test \"\${$as_ac_var+set}\" = set"; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617 cat >conftest.$ac_ext <<_ACEOF
3618 #line $LINENO "configure"
3619 /* confdefs.h. */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3624 /* System header to define __stub macros and hopefully few prototypes,
3625 which can conflict with char $ac_func (); below.
3626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3627 <limits.h> exists even on freestanding compilers. */
3628 #ifdef __STDC__
3629 # include <limits.h>
3630 #else
3631 # include <assert.h>
3632 #endif
3633 /* Override any gcc2 internal prototype to avoid an error. */
3634 #ifdef __cplusplus
3635 extern "C"
3637 #endif
3638 /* We use char because int might match the return type of a gcc2
3639 builtin and then its argument prototype would still apply. */
3640 char $ac_func ();
3641 /* The GNU C library defines this for functions which it implements
3642 to always fail with ENOSYS. Some functions are actually named
3643 something starting with __ and the normal name is an alias. */
3644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3645 choke me
3646 #else
3647 char (*f) () = $ac_func;
3648 #endif
3649 #ifdef __cplusplus
3651 #endif
3654 main ()
3656 return f != $ac_func;
3658 return 0;
3660 _ACEOF
3661 rm -f conftest.$ac_objext conftest$ac_exeext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3663 (eval $ac_link) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try='test -s conftest$ac_exeext'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3673 eval "$as_ac_var=yes"
3674 else
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3678 eval "$as_ac_var=no"
3680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3684 if test `eval echo '${'$as_ac_var'}'` = yes; then
3685 cat >>confdefs.h <<_ACEOF
3686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3687 _ACEOF
3690 done
3692 echo "$as_me:$LINENO: checking for working mmap" >&5
3693 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3694 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697 if test "$cross_compiling" = yes; then
3698 ac_cv_func_mmap_fixed_mapped=no
3699 else
3700 cat >conftest.$ac_ext <<_ACEOF
3701 #line $LINENO "configure"
3702 /* confdefs.h. */
3703 _ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3707 $ac_includes_default
3708 /* malloc might have been renamed as rpl_malloc. */
3709 #undef malloc
3711 /* Thanks to Mike Haertel and Jim Avera for this test.
3712 Here is a matrix of mmap possibilities:
3713 mmap private not fixed
3714 mmap private fixed at somewhere currently unmapped
3715 mmap private fixed at somewhere already mapped
3716 mmap shared not fixed
3717 mmap shared fixed at somewhere currently unmapped
3718 mmap shared fixed at somewhere already mapped
3719 For private mappings, we should verify that changes cannot be read()
3720 back from the file, nor mmap's back from the file at a different
3721 address. (There have been systems where private was not correctly
3722 implemented like the infamous i386 svr4.0, and systems where the
3723 VM page cache was not coherent with the file system buffer cache
3724 like early versions of FreeBSD and possibly contemporary NetBSD.)
3725 For shared mappings, we should conversely verify that changes get
3726 propagated back to all the places they're supposed to be.
3728 Grep wants private fixed already mapped.
3729 The main things grep needs to know about mmap are:
3730 * does it exist and is it safe to write into the mmap'd area
3731 * how to use it (BSD variants) */
3733 #include <fcntl.h>
3734 #include <sys/mman.h>
3736 #if !STDC_HEADERS && !HAVE_STDLIB_H
3737 char *malloc ();
3738 #endif
3740 /* This mess was copied from the GNU getpagesize.h. */
3741 #if !HAVE_GETPAGESIZE
3742 /* Assume that all systems that can run configure have sys/param.h. */
3743 # if !HAVE_SYS_PARAM_H
3744 # define HAVE_SYS_PARAM_H 1
3745 # endif
3747 # ifdef _SC_PAGESIZE
3748 # define getpagesize() sysconf(_SC_PAGESIZE)
3749 # else /* no _SC_PAGESIZE */
3750 # if HAVE_SYS_PARAM_H
3751 # include <sys/param.h>
3752 # ifdef EXEC_PAGESIZE
3753 # define getpagesize() EXEC_PAGESIZE
3754 # else /* no EXEC_PAGESIZE */
3755 # ifdef NBPG
3756 # define getpagesize() NBPG * CLSIZE
3757 # ifndef CLSIZE
3758 # define CLSIZE 1
3759 # endif /* no CLSIZE */
3760 # else /* no NBPG */
3761 # ifdef NBPC
3762 # define getpagesize() NBPC
3763 # else /* no NBPC */
3764 # ifdef PAGESIZE
3765 # define getpagesize() PAGESIZE
3766 # endif /* PAGESIZE */
3767 # endif /* no NBPC */
3768 # endif /* no NBPG */
3769 # endif /* no EXEC_PAGESIZE */
3770 # else /* no HAVE_SYS_PARAM_H */
3771 # define getpagesize() 8192 /* punt totally */
3772 # endif /* no HAVE_SYS_PARAM_H */
3773 # endif /* no _SC_PAGESIZE */
3775 #endif /* no HAVE_GETPAGESIZE */
3778 main ()
3780 char *data, *data2, *data3;
3781 int i, pagesize;
3782 int fd;
3784 pagesize = getpagesize ();
3786 /* First, make a file with some known garbage in it. */
3787 data = (char *) malloc (pagesize);
3788 if (!data)
3789 exit (1);
3790 for (i = 0; i < pagesize; ++i)
3791 *(data + i) = rand ();
3792 umask (0);
3793 fd = creat ("conftest.mmap", 0600);
3794 if (fd < 0)
3795 exit (1);
3796 if (write (fd, data, pagesize) != pagesize)
3797 exit (1);
3798 close (fd);
3800 /* Next, try to mmap the file at a fixed address which already has
3801 something else allocated at it. If we can, also make sure that
3802 we see the same garbage. */
3803 fd = open ("conftest.mmap", O_RDWR);
3804 if (fd < 0)
3805 exit (1);
3806 data2 = (char *) malloc (2 * pagesize);
3807 if (!data2)
3808 exit (1);
3809 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3810 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3811 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3812 exit (1);
3813 for (i = 0; i < pagesize; ++i)
3814 if (*(data + i) != *(data2 + i))
3815 exit (1);
3817 /* Finally, make sure that changes to the mapped area do not
3818 percolate back to the file as seen by read(). (This is a bug on
3819 some variants of i386 svr4.0.) */
3820 for (i = 0; i < pagesize; ++i)
3821 *(data2 + i) = *(data2 + i) + 1;
3822 data3 = (char *) malloc (pagesize);
3823 if (!data3)
3824 exit (1);
3825 if (read (fd, data3, pagesize) != pagesize)
3826 exit (1);
3827 for (i = 0; i < pagesize; ++i)
3828 if (*(data + i) != *(data3 + i))
3829 exit (1);
3830 close (fd);
3831 exit (0);
3833 _ACEOF
3834 rm -f conftest$ac_exeext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3836 (eval $ac_link) 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; }; then
3845 ac_cv_func_mmap_fixed_mapped=yes
3846 else
3847 echo "$as_me: program exited with status $ac_status" >&5
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3851 ( exit $ac_status )
3852 ac_cv_func_mmap_fixed_mapped=no
3854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3857 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3858 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3859 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3861 cat >>confdefs.h <<\_ACEOF
3862 #define HAVE_MMAP 1
3863 _ACEOF
3866 rm -f conftest.mmap
3868 echo "$as_me:$LINENO: checking for off_t" >&5
3869 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3870 if test "${ac_cv_type_off_t+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873 cat >conftest.$ac_ext <<_ACEOF
3874 #line $LINENO "configure"
3875 /* confdefs.h. */
3876 _ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h. */
3880 $ac_includes_default
3882 main ()
3884 if ((off_t *) 0)
3885 return 0;
3886 if (sizeof (off_t))
3887 return 0;
3889 return 0;
3891 _ACEOF
3892 rm -f conftest.$ac_objext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3894 (eval $ac_compile) 2>&5
3895 ac_status=$?
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } &&
3898 { ac_try='test -s conftest.$ac_objext'
3899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900 (eval $ac_try) 2>&5
3901 ac_status=$?
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; }; then
3904 ac_cv_type_off_t=yes
3905 else
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3909 ac_cv_type_off_t=no
3911 rm -f conftest.$ac_objext conftest.$ac_ext
3913 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3914 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3915 if test $ac_cv_type_off_t = yes; then
3917 else
3919 cat >>confdefs.h <<_ACEOF
3920 #define off_t long
3921 _ACEOF
3926 # Check for install
3927 # Find a good install program. We prefer a C program (faster),
3928 # so one script is as good as another. But avoid the broken or
3929 # incompatible versions:
3930 # SysV /etc/install, /usr/sbin/install
3931 # SunOS /usr/etc/install
3932 # IRIX /sbin/install
3933 # AIX /bin/install
3934 # AmigaOS /C/install, which installs bootblocks on floppy discs
3935 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3936 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3937 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3938 # ./install, which can be erroneously created by make from ./install.sh.
3939 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3940 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3941 if test -z "$INSTALL"; then
3942 if test "${ac_cv_path_install+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 # Account for people who put trailing slashes in PATH elements.
3951 case $as_dir/ in
3952 ./ | .// | /cC/* | \
3953 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3954 /usr/ucb/* ) ;;
3956 # OSF1 and SCO ODT 3.0 have their own names for install.
3957 # Don't use installbsd from OSF since it installs stuff as root
3958 # by default.
3959 for ac_prog in ginstall scoinst install; do
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3962 if test $ac_prog = install &&
3963 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3964 # AIX install. It has an incompatible calling convention.
3966 elif test $ac_prog = install &&
3967 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3968 # program-specific install script used by HP pwplus--don't use.
3970 else
3971 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3972 break 3
3975 done
3976 done
3978 esac
3979 done
3983 if test "${ac_cv_path_install+set}" = set; then
3984 INSTALL=$ac_cv_path_install
3985 else
3986 # As a last resort, use the slow shell script. We don't cache a
3987 # path for INSTALL within a source directory, because that will
3988 # break other packages using the cache if that directory is
3989 # removed, or if the path is relative.
3990 INSTALL=$ac_install_sh
3993 echo "$as_me:$LINENO: result: $INSTALL" >&5
3994 echo "${ECHO_T}$INSTALL" >&6
3996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3997 # It thinks the first close brace ends the variable substitution.
3998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4002 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4005 # check header files
4006 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4007 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4008 if test "${ac_cv_header_stdc+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011 cat >conftest.$ac_ext <<_ACEOF
4012 #line $LINENO "configure"
4013 /* confdefs.h. */
4014 _ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4018 #include <stdlib.h>
4019 #include <stdarg.h>
4020 #include <string.h>
4021 #include <float.h>
4024 main ()
4028 return 0;
4030 _ACEOF
4031 rm -f conftest.$ac_objext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033 (eval $ac_compile) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } &&
4037 { ac_try='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 ac_cv_header_stdc=yes
4044 else
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4048 ac_cv_header_stdc=no
4050 rm -f conftest.$ac_objext conftest.$ac_ext
4052 if test $ac_cv_header_stdc = yes; then
4053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4054 cat >conftest.$ac_ext <<_ACEOF
4055 #line $LINENO "configure"
4056 /* confdefs.h. */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 #include <string.h>
4063 _ACEOF
4064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4065 $EGREP "memchr" >/dev/null 2>&1; then
4067 else
4068 ac_cv_header_stdc=no
4070 rm -f conftest*
4074 if test $ac_cv_header_stdc = yes; then
4075 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4076 cat >conftest.$ac_ext <<_ACEOF
4077 #line $LINENO "configure"
4078 /* confdefs.h. */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 #include <stdlib.h>
4085 _ACEOF
4086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4087 $EGREP "free" >/dev/null 2>&1; then
4089 else
4090 ac_cv_header_stdc=no
4092 rm -f conftest*
4096 if test $ac_cv_header_stdc = yes; then
4097 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4098 if test "$cross_compiling" = yes; then
4100 else
4101 cat >conftest.$ac_ext <<_ACEOF
4102 #line $LINENO "configure"
4103 /* confdefs.h. */
4104 _ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4108 #include <ctype.h>
4109 #if ((' ' & 0x0FF) == 0x020)
4110 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4111 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4112 #else
4113 # define ISLOWER(c) \
4114 (('a' <= (c) && (c) <= 'i') \
4115 || ('j' <= (c) && (c) <= 'r') \
4116 || ('s' <= (c) && (c) <= 'z'))
4117 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4118 #endif
4120 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4122 main ()
4124 int i;
4125 for (i = 0; i < 256; i++)
4126 if (XOR (islower (i), ISLOWER (i))
4127 || toupper (i) != TOUPPER (i))
4128 exit(2);
4129 exit (0);
4131 _ACEOF
4132 rm -f conftest$ac_exeext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4134 (eval $ac_link) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; }; then
4144 else
4145 echo "$as_me: program exited with status $ac_status" >&5
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4149 ( exit $ac_status )
4150 ac_cv_header_stdc=no
4152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4156 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4157 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4158 if test $ac_cv_header_stdc = yes; then
4160 cat >>confdefs.h <<\_ACEOF
4161 #define STDC_HEADERS 1
4162 _ACEOF
4172 for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h
4174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4176 echo "$as_me:$LINENO: checking for $ac_header" >&5
4177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4183 else
4184 # Is the header compilable?
4185 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4187 cat >conftest.$ac_ext <<_ACEOF
4188 #line $LINENO "configure"
4189 /* confdefs.h. */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4194 $ac_includes_default
4195 #include <$ac_header>
4196 _ACEOF
4197 rm -f conftest.$ac_objext
4198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4199 (eval $ac_compile) 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } &&
4203 { ac_try='test -s conftest.$ac_objext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 ac_header_compiler=yes
4210 else
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 ac_header_compiler=no
4216 rm -f conftest.$ac_objext conftest.$ac_ext
4217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4218 echo "${ECHO_T}$ac_header_compiler" >&6
4220 # Is the header present?
4221 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4223 cat >conftest.$ac_ext <<_ACEOF
4224 #line $LINENO "configure"
4225 /* confdefs.h. */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 #include <$ac_header>
4231 _ACEOF
4232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4234 ac_status=$?
4235 grep -v '^ *+' conftest.er1 >conftest.err
4236 rm -f conftest.er1
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } >/dev/null; then
4240 if test -s conftest.err; then
4241 ac_cpp_err=$ac_c_preproc_warn_flag
4242 else
4243 ac_cpp_err=
4245 else
4246 ac_cpp_err=yes
4248 if test -z "$ac_cpp_err"; then
4249 ac_header_preproc=yes
4250 else
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 ac_header_preproc=no
4256 rm -f conftest.err conftest.$ac_ext
4257 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4258 echo "${ECHO_T}$ac_header_preproc" >&6
4260 # So? What about this header?
4261 case $ac_header_compiler:$ac_header_preproc in
4262 yes:no )
4263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4268 cat <<\_ASBOX
4269 ## ------------------------------------ ##
4270 ## Report this to bug-autoconf@gnu.org. ##
4271 ## ------------------------------------ ##
4272 _ASBOX
4274 sed "s/^/$as_me: WARNING: /" >&2
4276 no:yes )
4277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4284 cat <<\_ASBOX
4285 ## ------------------------------------ ##
4286 ## Report this to bug-autoconf@gnu.org. ##
4287 ## ------------------------------------ ##
4288 _ASBOX
4290 sed "s/^/$as_me: WARNING: /" >&2
4292 esac
4293 echo "$as_me:$LINENO: checking for $ac_header" >&5
4294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298 eval "$as_ac_Header=$ac_header_preproc"
4300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4305 cat >>confdefs.h <<_ACEOF
4306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4307 _ACEOF
4311 done
4318 for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
4320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4322 echo "$as_me:$LINENO: checking for $ac_header" >&5
4323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4329 else
4330 # Is the header compilable?
4331 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4333 cat >conftest.$ac_ext <<_ACEOF
4334 #line $LINENO "configure"
4335 /* confdefs.h. */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 $ac_includes_default
4341 #include <$ac_header>
4342 _ACEOF
4343 rm -f conftest.$ac_objext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345 (eval $ac_compile) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try='test -s conftest.$ac_objext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 (eval $ac_try) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4355 ac_header_compiler=yes
4356 else
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4360 ac_header_compiler=no
4362 rm -f conftest.$ac_objext conftest.$ac_ext
4363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4364 echo "${ECHO_T}$ac_header_compiler" >&6
4366 # Is the header present?
4367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4369 cat >conftest.$ac_ext <<_ACEOF
4370 #line $LINENO "configure"
4371 /* confdefs.h. */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4376 #include <$ac_header>
4377 _ACEOF
4378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4380 ac_status=$?
4381 grep -v '^ *+' conftest.er1 >conftest.err
4382 rm -f conftest.er1
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } >/dev/null; then
4386 if test -s conftest.err; then
4387 ac_cpp_err=$ac_c_preproc_warn_flag
4388 else
4389 ac_cpp_err=
4391 else
4392 ac_cpp_err=yes
4394 if test -z "$ac_cpp_err"; then
4395 ac_header_preproc=yes
4396 else
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4400 ac_header_preproc=no
4402 rm -f conftest.err conftest.$ac_ext
4403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4404 echo "${ECHO_T}$ac_header_preproc" >&6
4406 # So? What about this header?
4407 case $ac_header_compiler:$ac_header_preproc in
4408 yes:no )
4409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4414 cat <<\_ASBOX
4415 ## ------------------------------------ ##
4416 ## Report this to bug-autoconf@gnu.org. ##
4417 ## ------------------------------------ ##
4418 _ASBOX
4420 sed "s/^/$as_me: WARNING: /" >&2
4422 no:yes )
4423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4430 cat <<\_ASBOX
4431 ## ------------------------------------ ##
4432 ## Report this to bug-autoconf@gnu.org. ##
4433 ## ------------------------------------ ##
4434 _ASBOX
4436 sed "s/^/$as_me: WARNING: /" >&2
4438 esac
4439 echo "$as_me:$LINENO: checking for $ac_header" >&5
4440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 eval "$as_ac_Header=$ac_header_preproc"
4446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4451 cat >>confdefs.h <<_ACEOF
4452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4453 _ACEOF
4457 done
4459 if test "${ac_cv_header_complex_h+set}" = set; then
4460 echo "$as_me:$LINENO: checking for complex.h" >&5
4461 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
4462 if test "${ac_cv_header_complex_h+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
4466 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
4467 else
4468 # Is the header compilable?
4469 echo "$as_me:$LINENO: checking complex.h usability" >&5
4470 echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
4471 cat >conftest.$ac_ext <<_ACEOF
4472 #line $LINENO "configure"
4473 /* confdefs.h. */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4478 $ac_includes_default
4479 #include <complex.h>
4480 _ACEOF
4481 rm -f conftest.$ac_objext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>&5
4484 ac_status=$?
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } &&
4487 { ac_try='test -s conftest.$ac_objext'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 (eval $ac_try) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; }; then
4493 ac_header_compiler=yes
4494 else
4495 echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4498 ac_header_compiler=no
4500 rm -f conftest.$ac_objext conftest.$ac_ext
4501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4502 echo "${ECHO_T}$ac_header_compiler" >&6
4504 # Is the header present?
4505 echo "$as_me:$LINENO: checking complex.h presence" >&5
4506 echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
4507 cat >conftest.$ac_ext <<_ACEOF
4508 #line $LINENO "configure"
4509 /* confdefs.h. */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514 #include <complex.h>
4515 _ACEOF
4516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4518 ac_status=$?
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } >/dev/null; then
4524 if test -s conftest.err; then
4525 ac_cpp_err=$ac_c_preproc_warn_flag
4526 else
4527 ac_cpp_err=
4529 else
4530 ac_cpp_err=yes
4532 if test -z "$ac_cpp_err"; then
4533 ac_header_preproc=yes
4534 else
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4538 ac_header_preproc=no
4540 rm -f conftest.err conftest.$ac_ext
4541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4542 echo "${ECHO_T}$ac_header_preproc" >&6
4544 # So? What about this header?
4545 case $ac_header_compiler:$ac_header_preproc in
4546 yes:no )
4547 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
4548 echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4549 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
4550 echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
4552 cat <<\_ASBOX
4553 ## ------------------------------------ ##
4554 ## Report this to bug-autoconf@gnu.org. ##
4555 ## ------------------------------------ ##
4556 _ASBOX
4558 sed "s/^/$as_me: WARNING: /" >&2
4560 no:yes )
4561 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
4562 echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
4563 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
4564 echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
4565 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
4566 echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
4568 cat <<\_ASBOX
4569 ## ------------------------------------ ##
4570 ## Report this to bug-autoconf@gnu.org. ##
4571 ## ------------------------------------ ##
4572 _ASBOX
4574 sed "s/^/$as_me: WARNING: /" >&2
4576 esac
4577 echo "$as_me:$LINENO: checking for complex.h" >&5
4578 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
4579 if test "${ac_cv_header_complex_h+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582 ac_cv_header_complex_h=$ac_header_preproc
4584 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
4585 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
4588 if test $ac_cv_header_complex_h = yes; then
4590 cat >>confdefs.h <<\_ACEOF
4591 #define HAVE_COMPLEX_H 1
4592 _ACEOF
4597 # Check for complex math functions
4598 echo "$as_me:$LINENO: checking for csin in -lm" >&5
4599 echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
4600 if test "${ac_cv_lib_m_csin+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603 ac_check_lib_save_LIBS=$LIBS
4604 LIBS="-lm $LIBS"
4605 cat >conftest.$ac_ext <<_ACEOF
4606 #line $LINENO "configure"
4607 /* confdefs.h. */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4613 /* Override any gcc2 internal prototype to avoid an error. */
4614 #ifdef __cplusplus
4615 extern "C"
4616 #endif
4617 /* We use char because int might match the return type of a gcc2
4618 builtin and then its argument prototype would still apply. */
4619 char csin ();
4621 main ()
4623 csin ();
4625 return 0;
4627 _ACEOF
4628 rm -f conftest.$ac_objext conftest$ac_exeext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4630 (eval $ac_link) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } &&
4634 { ac_try='test -s conftest$ac_exeext'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 (eval $ac_try) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 ac_cv_lib_m_csin=yes
4641 else
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4645 ac_cv_lib_m_csin=no
4647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4648 LIBS=$ac_check_lib_save_LIBS
4650 echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
4651 echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
4652 if test $ac_cv_lib_m_csin = yes; then
4653 need_math="no"
4654 else
4655 need_math="yes"
4661 for ac_func in getrusage times
4663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4664 echo "$as_me:$LINENO: checking for $ac_func" >&5
4665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4666 if eval "test \"\${$as_ac_var+set}\" = set"; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669 cat >conftest.$ac_ext <<_ACEOF
4670 #line $LINENO "configure"
4671 /* confdefs.h. */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 /* System header to define __stub macros and hopefully few prototypes,
4677 which can conflict with char $ac_func (); below.
4678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4679 <limits.h> exists even on freestanding compilers. */
4680 #ifdef __STDC__
4681 # include <limits.h>
4682 #else
4683 # include <assert.h>
4684 #endif
4685 /* Override any gcc2 internal prototype to avoid an error. */
4686 #ifdef __cplusplus
4687 extern "C"
4689 #endif
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4692 char $ac_func ();
4693 /* The GNU C library defines this for functions which it implements
4694 to always fail with ENOSYS. Some functions are actually named
4695 something starting with __ and the normal name is an alias. */
4696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4697 choke me
4698 #else
4699 char (*f) () = $ac_func;
4700 #endif
4701 #ifdef __cplusplus
4703 #endif
4706 main ()
4708 return f != $ac_func;
4710 return 0;
4712 _ACEOF
4713 rm -f conftest.$ac_objext conftest$ac_exeext
4714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4715 (eval $ac_link) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -s conftest$ac_exeext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 eval "$as_ac_var=yes"
4726 else
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4730 eval "$as_ac_var=no"
4732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4736 if test `eval echo '${'$as_ac_var'}'` = yes; then
4737 cat >>confdefs.h <<_ACEOF
4738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4739 _ACEOF
4742 done
4745 # Let the user override this
4746 # Check whether --enable-cmath or --disable-cmath was given.
4747 if test "${enable_cmath+set}" = set; then
4748 enableval="$enable_cmath"
4749 need_math=$enableval
4751 if test "$need_math" = "yes"; then
4752 { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
4753 echo "$as_me: Including complex math functions in libgfor" >&6;};
4754 extra_math_obj='$(gfor_cmath_obj)'
4757 MATH_OBJ="$extra_math_obj"
4760 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4761 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4762 if test "${ac_cv_header_time+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765 cat >conftest.$ac_ext <<_ACEOF
4766 #line $LINENO "configure"
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 #include <sys/types.h>
4773 #include <sys/time.h>
4774 #include <time.h>
4777 main ()
4779 if ((struct tm *) 0)
4780 return 0;
4782 return 0;
4784 _ACEOF
4785 rm -f conftest.$ac_objext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4787 (eval $ac_compile) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } &&
4791 { ac_try='test -s conftest.$ac_objext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 ac_cv_header_time=yes
4798 else
4799 echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4802 ac_cv_header_time=no
4804 rm -f conftest.$ac_objext conftest.$ac_ext
4806 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4807 echo "${ECHO_T}$ac_cv_header_time" >&6
4808 if test $ac_cv_header_time = yes; then
4810 cat >>confdefs.h <<\_ACEOF
4811 #define TIME_WITH_SYS_TIME 1
4812 _ACEOF
4818 for ac_func in gettimeofday
4820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4821 echo "$as_me:$LINENO: checking for $ac_func" >&5
4822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4823 if eval "test \"\${$as_ac_var+set}\" = set"; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826 cat >conftest.$ac_ext <<_ACEOF
4827 #line $LINENO "configure"
4828 /* confdefs.h. */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 /* System header to define __stub macros and hopefully few prototypes,
4834 which can conflict with char $ac_func (); below.
4835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4836 <limits.h> exists even on freestanding compilers. */
4837 #ifdef __STDC__
4838 # include <limits.h>
4839 #else
4840 # include <assert.h>
4841 #endif
4842 /* Override any gcc2 internal prototype to avoid an error. */
4843 #ifdef __cplusplus
4844 extern "C"
4846 #endif
4847 /* We use char because int might match the return type of a gcc2
4848 builtin and then its argument prototype would still apply. */
4849 char $ac_func ();
4850 /* The GNU C library defines this for functions which it implements
4851 to always fail with ENOSYS. Some functions are actually named
4852 something starting with __ and the normal name is an alias. */
4853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4854 choke me
4855 #else
4856 char (*f) () = $ac_func;
4857 #endif
4858 #ifdef __cplusplus
4860 #endif
4863 main ()
4865 return f != $ac_func;
4867 return 0;
4869 _ACEOF
4870 rm -f conftest.$ac_objext conftest$ac_exeext
4871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4872 (eval $ac_link) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try='test -s conftest$ac_exeext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 eval "$as_ac_var=yes"
4883 else
4884 echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4887 eval "$as_ac_var=no"
4889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4893 if test `eval echo '${'$as_ac_var'}'` = yes; then
4894 cat >>confdefs.h <<_ACEOF
4895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4896 _ACEOF
4899 done
4901 if test "$ac_cv_func_gettimeofday" = yes; then
4902 echo "$as_me:$LINENO: checking for struct timezone" >&5
4903 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
4904 if test "${gfor_cv_struct_timezone+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907 cat >conftest.$ac_ext <<_ACEOF
4908 #line $LINENO "configure"
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 #include <sys/time.h>
4916 main ()
4918 struct timezone tz;
4920 return 0;
4922 _ACEOF
4923 rm -f conftest.$ac_objext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925 (eval $ac_compile) 2>&5
4926 ac_status=$?
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } &&
4929 { ac_try='test -s conftest.$ac_objext'
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 (eval $ac_try) 2>&5
4932 ac_status=$?
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; }; then
4935 gfor_cv_struct_timezone=yes
4936 else
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 gfor_cv_struct_timezone=no
4942 rm -f conftest.$ac_objext conftest.$ac_ext
4944 echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
4945 echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
4946 if test $gfor_cv_struct_timezone = yes; then
4947 if test "$cross_compiling" = yes; then
4948 gfor_have_struct_timezone=yes
4949 else
4950 cat >conftest.$ac_ext <<_ACEOF
4951 #line $LINENO "configure"
4952 /* confdefs.h. */
4953 _ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4958 #ifdef TIME_WITH_SYS_TIME
4959 #include <sys/time.h>
4960 #include <time.h>
4961 #else
4962 #ifdef HAVE_SYS_TIME_H
4963 #include <sys/time.h>
4964 #else
4965 #include <time.h>
4966 #endif
4967 #endif
4968 main ()
4970 struct timeval time;
4971 struct timezone dummy;
4972 if (gettimeofday (&time, &dummy))
4973 exit (1);
4974 else
4975 exit (0);
4977 _ACEOF
4978 rm -f conftest$ac_exeext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4980 (eval $ac_link) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 (eval $ac_try) 2>&5
4986 ac_status=$?
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4989 gfor_have_struct_timezone=yes
4990 else
4991 echo "$as_me: program exited with status $ac_status" >&5
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4995 ( exit $ac_status )
4996 gfor_have_struct_timezone=no
4998 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5000 if test $gfor_have_struct_timezone = yes; then
5002 cat >>confdefs.h <<\_ACEOF
5003 #define HAVE_TIMEZONE 1
5004 _ACEOF
5009 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
5010 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
5011 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 else
5014 cat >conftest.$ac_ext <<_ACEOF
5015 #line $LINENO "configure"
5016 /* confdefs.h. */
5017 _ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5022 #ifdef TIME_WITH_SYS_TIME
5023 #include <sys/time.h>
5024 #include <time.h>
5025 #else
5026 #ifdef HAVE_SYS_TIME_H
5027 #include <sys/time.h>
5028 #else
5029 #include <time.h>
5030 #endif
5031 #endif
5034 main ()
5037 struct timeval time;
5038 #ifdef HAVE_TIMEZONE
5039 struct timezone dummy;
5040 #define DUMMY &dummy
5041 #else
5042 #define DUMMY NULL
5043 #endif
5044 gettimeofday (&time, DUMMY);
5046 return 0;
5048 _ACEOF
5049 rm -f conftest.$ac_objext conftest$ac_exeext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5051 (eval $ac_link) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
5055 { ac_try='test -s conftest$ac_exeext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 (eval $ac_try) 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 emacs_cv_gettimeofday_two_arguments=yes
5062 else
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5066 emacs_cv_gettimeofday_two_arguments=no
5068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5070 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
5071 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
5072 if test $emacs_cv_gettimeofday_two_arguments = no; then
5074 cat >>confdefs.h <<\_ACEOF
5075 #define GETTIMEOFDAY_ONE_ARGUMENT 1
5076 _ACEOF
5081 test "$AR" || AR=ar
5083 if test "$RANLIB"; then :
5085 else
5086 if test -n "$ac_tool_prefix"; then
5087 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5088 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5089 echo "$as_me:$LINENO: checking for $ac_word" >&5
5090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5091 if test "${ac_cv_prog_RANLIB+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094 if test -n "$RANLIB"; then
5095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5108 done
5109 done
5113 RANLIB=$ac_cv_prog_RANLIB
5114 if test -n "$RANLIB"; then
5115 echo "$as_me:$LINENO: result: $RANLIB" >&5
5116 echo "${ECHO_T}$RANLIB" >&6
5117 else
5118 echo "$as_me:$LINENO: result: no" >&5
5119 echo "${ECHO_T}no" >&6
5123 if test -z "$ac_cv_prog_RANLIB"; then
5124 ac_ct_RANLIB=$RANLIB
5125 # Extract the first word of "ranlib", so it can be a program name with args.
5126 set dummy ranlib; ac_word=$2
5127 echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5129 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 if test -n "$ac_ct_RANLIB"; then
5133 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_ac_ct_RANLIB="ranlib"
5143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5146 done
5147 done
5149 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5152 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5153 if test -n "$ac_ct_RANLIB"; then
5154 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5155 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5156 else
5157 echo "$as_me:$LINENO: result: no" >&5
5158 echo "${ECHO_T}no" >&6
5161 RANLIB=$ac_ct_RANLIB
5162 else
5163 RANLIB="$ac_cv_prog_RANLIB"
5168 # Check whether --enable-shared or --disable-shared was given.
5169 if test "${enable_shared+set}" = set; then
5170 enableval="$enable_shared"
5171 p=${PACKAGE-default}
5172 case $enableval in
5173 yes) enable_shared=yes ;;
5174 no) enable_shared=no ;;
5176 enable_shared=no
5177 # Look at the argument we got. We use all the common list separators.
5178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5179 for pkg in $enableval; do
5180 if test "X$pkg" = "X$p"; then
5181 enable_shared=yes
5183 done
5184 IFS="$ac_save_ifs"
5186 esac
5187 else
5188 enable_shared=yes
5190 # Check whether --enable-static or --disable-static was given.
5191 if test "${enable_static+set}" = set; then
5192 enableval="$enable_static"
5193 p=${PACKAGE-default}
5194 case $enableval in
5195 yes) enable_static=yes ;;
5196 no) enable_static=no ;;
5198 enable_static=no
5199 # Look at the argument we got. We use all the common list separators.
5200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5201 for pkg in $enableval; do
5202 if test "X$pkg" = "X$p"; then
5203 enable_static=yes
5205 done
5206 IFS="$ac_save_ifs"
5208 esac
5209 else
5210 enable_static=yes
5212 # Check whether --enable-fast-install or --disable-fast-install was given.
5213 if test "${enable_fast_install+set}" = set; then
5214 enableval="$enable_fast_install"
5215 p=${PACKAGE-default}
5216 case $enableval in
5217 yes) enable_fast_install=yes ;;
5218 no) enable_fast_install=no ;;
5220 enable_fast_install=no
5221 # Look at the argument we got. We use all the common list separators.
5222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5223 for pkg in $enableval; do
5224 if test "X$pkg" = "X$p"; then
5225 enable_fast_install=yes
5227 done
5228 IFS="$ac_save_ifs"
5230 esac
5231 else
5232 enable_fast_install=yes
5234 # Make sure we can run config.sub.
5235 $ac_config_sub sun4 >/dev/null 2>&1 ||
5236 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5237 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5238 { (exit 1); exit 1; }; }
5240 echo "$as_me:$LINENO: checking build system type" >&5
5241 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5242 if test "${ac_cv_build+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245 ac_cv_build_alias=$build_alias
5246 test -z "$ac_cv_build_alias" &&
5247 ac_cv_build_alias=`$ac_config_guess`
5248 test -z "$ac_cv_build_alias" &&
5249 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5250 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5251 { (exit 1); exit 1; }; }
5252 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5253 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5254 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5255 { (exit 1); exit 1; }; }
5258 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5259 echo "${ECHO_T}$ac_cv_build" >&6
5260 build=$ac_cv_build
5261 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5262 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5263 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5266 echo "$as_me:$LINENO: checking host system type" >&5
5267 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5268 if test "${ac_cv_host+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271 ac_cv_host_alias=$host_alias
5272 test -z "$ac_cv_host_alias" &&
5273 ac_cv_host_alias=$ac_cv_build_alias
5274 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5275 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5276 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5277 { (exit 1); exit 1; }; }
5280 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5281 echo "${ECHO_T}$ac_cv_host" >&6
5282 host=$ac_cv_host
5283 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5284 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5285 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5289 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5290 if test "${with_gnu_ld+set}" = set; then
5291 withval="$with_gnu_ld"
5292 test "$withval" = no || with_gnu_ld=yes
5293 else
5294 with_gnu_ld=no
5296 ac_prog=ld
5297 if test "$GCC" = yes; then
5298 # Check if gcc -print-prog-name=ld gives a path.
5299 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5300 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5301 case $host in
5302 *-*-mingw*)
5303 # gcc leaves a trailing carriage return which upsets mingw
5304 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5306 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5307 esac
5308 case $ac_prog in
5309 # Accept absolute paths.
5310 [\\/]* | [A-Za-z]:[\\/]*)
5311 re_direlt='/[^/][^/]*/\.\./'
5312 # Canonicalize the path of ld
5313 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5314 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5315 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5316 done
5317 test -z "$LD" && LD="$ac_prog"
5320 # If it fails, then pretend we aren't using GCC.
5321 ac_prog=ld
5324 # If it is relative, then search for the first ld in PATH.
5325 with_gnu_ld=unknown
5327 esac
5328 elif test "$with_gnu_ld" = yes; then
5329 echo "$as_me:$LINENO: checking for GNU ld" >&5
5330 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5331 else
5332 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5333 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5335 if test "${lt_cv_path_LD+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338 if test -z "$LD"; then
5339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5340 for ac_dir in $PATH; do
5341 test -z "$ac_dir" && ac_dir=.
5342 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5343 lt_cv_path_LD="$ac_dir/$ac_prog"
5344 # Check to see if the program is GNU ld. I'd rather use --version,
5345 # but apparently some GNU ld's only accept -v.
5346 # Break only if it was the GNU/non-GNU ld that we prefer.
5347 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5348 test "$with_gnu_ld" != no && break
5349 else
5350 test "$with_gnu_ld" != yes && break
5353 done
5354 IFS="$ac_save_ifs"
5355 else
5356 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5360 LD="$lt_cv_path_LD"
5361 if test -n "$LD"; then
5362 echo "$as_me:$LINENO: result: $LD" >&5
5363 echo "${ECHO_T}$LD" >&6
5364 else
5365 echo "$as_me:$LINENO: result: no" >&5
5366 echo "${ECHO_T}no" >&6
5368 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5369 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5370 { (exit 1); exit 1; }; }
5371 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5372 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5373 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5377 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5378 lt_cv_prog_gnu_ld=yes
5379 else
5380 lt_cv_prog_gnu_ld=no
5383 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5384 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5385 with_gnu_ld=$lt_cv_prog_gnu_ld
5388 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5389 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5390 if test "${lt_cv_ld_reload_flag+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393 lt_cv_ld_reload_flag='-r'
5395 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5396 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5397 reload_flag=$lt_cv_ld_reload_flag
5398 test -n "$reload_flag" && reload_flag=" $reload_flag"
5400 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5401 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5402 if test "${lt_cv_path_NM+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405 if test -n "$NM"; then
5406 # Let the user override the test.
5407 lt_cv_path_NM="$NM"
5408 else
5409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5410 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5411 test -z "$ac_dir" && ac_dir=.
5412 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5413 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5414 # Check to see if the nm accepts a BSD-compat flag.
5415 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5416 # nm: unknown option "B" ignored
5417 # Tru64's nm complains that /dev/null is an invalid object file
5418 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5419 lt_cv_path_NM="$tmp_nm -B"
5420 break
5421 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5422 lt_cv_path_NM="$tmp_nm -p"
5423 break
5424 else
5425 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5426 continue # so that we can try to find one that supports BSD flags
5429 done
5430 IFS="$ac_save_ifs"
5431 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5435 NM="$lt_cv_path_NM"
5436 echo "$as_me:$LINENO: result: $NM" >&5
5437 echo "${ECHO_T}$NM" >&6
5439 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5440 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5441 LN_S=$as_ln_s
5442 if test "$LN_S" = "ln -s"; then
5443 echo "$as_me:$LINENO: result: yes" >&5
5444 echo "${ECHO_T}yes" >&6
5445 else
5446 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5447 echo "${ECHO_T}no, using $LN_S" >&6
5450 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5451 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5452 if test "${lt_cv_deplibs_check_method+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455 lt_cv_file_magic_cmd='$MAGIC_CMD'
5456 lt_cv_file_magic_test_file=
5457 lt_cv_deplibs_check_method='unknown'
5458 # Need to set the preceding variable on all platforms that support
5459 # interlibrary dependencies.
5460 # 'none' -- dependencies not supported.
5461 # `unknown' -- same as none, but documents that we really don't know.
5462 # 'pass_all' -- all dependencies passed with no checks.
5463 # 'test_compile' -- check by making test program.
5464 # 'file_magic [regex]' -- check by looking for files in library path
5465 # which responds to the $file_magic_cmd with a given egrep regex.
5466 # If you have `file' or equivalent on your system and you're not sure
5467 # whether `pass_all' will *always* work, you probably want this one.
5469 case $host_os in
5470 aix*)
5471 lt_cv_deplibs_check_method=pass_all
5474 beos*)
5475 lt_cv_deplibs_check_method=pass_all
5478 bsdi4*)
5479 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5480 lt_cv_file_magic_cmd='/usr/bin/file -L'
5481 lt_cv_file_magic_test_file=/shlib/libc.so
5484 cygwin* | mingw* |pw32*)
5485 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5486 lt_cv_file_magic_cmd='$OBJDUMP -f'
5489 darwin* | rhapsody*)
5490 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5491 lt_cv_file_magic_cmd='/usr/bin/file -L'
5492 case "$host_os" in
5493 rhapsody* | darwin1.012)
5494 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5496 *) # Darwin 1.3 on
5497 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5499 esac
5502 freebsd* )
5503 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5504 case $host_cpu in
5505 i*86 )
5506 # Not sure whether the presence of OpenBSD here was a mistake.
5507 # Let's accept both of them until this is cleared up.
5508 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5509 lt_cv_file_magic_cmd=/usr/bin/file
5510 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5512 esac
5513 else
5514 lt_cv_deplibs_check_method=pass_all
5518 gnu*)
5519 lt_cv_deplibs_check_method=pass_all
5522 hpux10.20*|hpux11*)
5523 case $host_cpu in
5524 hppa*)
5525 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5526 lt_cv_file_magic_cmd=/usr/bin/file
5527 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5529 ia64*)
5530 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5531 lt_cv_file_magic_cmd=/usr/bin/file
5532 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5534 esac
5537 irix5* | irix6*)
5538 case $host_os in
5539 irix5*)
5540 # this will be overridden with pass_all, but let us keep it just in case
5541 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5544 case $LD in
5545 *-32|*"-32 ") libmagic=32-bit;;
5546 *-n32|*"-n32 ") libmagic=N32;;
5547 *-64|*"-64 ") libmagic=64-bit;;
5548 *) libmagic=never-match;;
5549 esac
5550 # this will be overridden with pass_all, but let us keep it just in case
5551 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5553 esac
5554 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5555 lt_cv_deplibs_check_method=pass_all
5558 # This must be Linux ELF.
5559 linux-gnu*)
5560 case $host_cpu in
5561 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
5562 lt_cv_deplibs_check_method=pass_all ;;
5564 # glibc up to 2.1.1 does not perform some relocations on ARM
5565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5566 esac
5567 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5570 netbsd*)
5571 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5572 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5573 else
5574 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5578 newsos6)
5579 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5580 lt_cv_file_magic_cmd=/usr/bin/file
5581 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5584 osf3* | osf4* | osf5*)
5585 # this will be overridden with pass_all, but let us keep it just in case
5586 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5587 lt_cv_file_magic_test_file=/shlib/libc.so
5588 lt_cv_deplibs_check_method=pass_all
5591 sco3.2v5*)
5592 lt_cv_deplibs_check_method=pass_all
5595 solaris*)
5596 lt_cv_deplibs_check_method=pass_all
5597 lt_cv_file_magic_test_file=/lib/libc.so
5600 sysv5uw[78]* | sysv4*uw2*)
5601 lt_cv_deplibs_check_method=pass_all
5604 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5605 case $host_vendor in
5606 ncr)
5607 lt_cv_deplibs_check_method=pass_all
5609 motorola)
5610 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]'
5611 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5613 esac
5615 esac
5618 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5619 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5620 file_magic_cmd=$lt_cv_file_magic_cmd
5621 deplibs_check_method=$lt_cv_deplibs_check_method
5626 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5628 # Only perform the check for file, if the check method requires it
5629 case $deplibs_check_method in
5630 file_magic*)
5631 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5632 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5633 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5634 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637 case $MAGIC_CMD in
5639 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5641 ?:/*)
5642 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5645 ac_save_MAGIC_CMD="$MAGIC_CMD"
5646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5647 ac_dummy="/usr/bin:$PATH"
5648 for ac_dir in $ac_dummy; do
5649 test -z "$ac_dir" && ac_dir=.
5650 if test -f $ac_dir/${ac_tool_prefix}file; then
5651 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5652 if test -n "$file_magic_test_file"; then
5653 case $deplibs_check_method in
5654 "file_magic "*)
5655 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5657 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5658 egrep "$file_magic_regex" > /dev/null; then
5660 else
5661 cat <<EOF 1>&2
5663 *** Warning: the command libtool uses to detect shared libraries,
5664 *** $file_magic_cmd, produces output that libtool cannot recognize.
5665 *** The result is that libtool may fail to recognize shared libraries
5666 *** as such. This will affect the creation of libtool libraries that
5667 *** depend on shared libraries, but programs linked with such libtool
5668 *** libraries will work regardless of this problem. Nevertheless, you
5669 *** may want to report the problem to your system manager and/or to
5670 *** bug-libtool@gnu.org
5673 fi ;;
5674 esac
5676 break
5678 done
5679 IFS="$ac_save_ifs"
5680 MAGIC_CMD="$ac_save_MAGIC_CMD"
5682 esac
5685 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5686 if test -n "$MAGIC_CMD"; then
5687 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5688 echo "${ECHO_T}$MAGIC_CMD" >&6
5689 else
5690 echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6
5694 if test -z "$lt_cv_path_MAGIC_CMD"; then
5695 if test -n "$ac_tool_prefix"; then
5696 echo "$as_me:$LINENO: checking for file" >&5
5697 echo $ECHO_N "checking for file... $ECHO_C" >&6
5698 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701 case $MAGIC_CMD in
5703 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5705 ?:/*)
5706 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5709 ac_save_MAGIC_CMD="$MAGIC_CMD"
5710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5711 ac_dummy="/usr/bin:$PATH"
5712 for ac_dir in $ac_dummy; do
5713 test -z "$ac_dir" && ac_dir=.
5714 if test -f $ac_dir/file; then
5715 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5716 if test -n "$file_magic_test_file"; then
5717 case $deplibs_check_method in
5718 "file_magic "*)
5719 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5720 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5721 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5722 egrep "$file_magic_regex" > /dev/null; then
5724 else
5725 cat <<EOF 1>&2
5727 *** Warning: the command libtool uses to detect shared libraries,
5728 *** $file_magic_cmd, produces output that libtool cannot recognize.
5729 *** The result is that libtool may fail to recognize shared libraries
5730 *** as such. This will affect the creation of libtool libraries that
5731 *** depend on shared libraries, but programs linked with such libtool
5732 *** libraries will work regardless of this problem. Nevertheless, you
5733 *** may want to report the problem to your system manager and/or to
5734 *** bug-libtool@gnu.org
5737 fi ;;
5738 esac
5740 break
5742 done
5743 IFS="$ac_save_ifs"
5744 MAGIC_CMD="$ac_save_MAGIC_CMD"
5746 esac
5749 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5750 if test -n "$MAGIC_CMD"; then
5751 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5752 echo "${ECHO_T}$MAGIC_CMD" >&6
5753 else
5754 echo "$as_me:$LINENO: result: no" >&5
5755 echo "${ECHO_T}no" >&6
5758 else
5759 MAGIC_CMD=:
5765 esac
5767 if test -n "$ac_tool_prefix"; then
5768 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5769 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5770 echo "$as_me:$LINENO: checking for $ac_word" >&5
5771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5772 if test "${ac_cv_prog_RANLIB+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775 if test -n "$RANLIB"; then
5776 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5777 else
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5781 IFS=$as_save_IFS
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 break 2
5789 done
5790 done
5794 RANLIB=$ac_cv_prog_RANLIB
5795 if test -n "$RANLIB"; then
5796 echo "$as_me:$LINENO: result: $RANLIB" >&5
5797 echo "${ECHO_T}$RANLIB" >&6
5798 else
5799 echo "$as_me:$LINENO: result: no" >&5
5800 echo "${ECHO_T}no" >&6
5804 if test -z "$ac_cv_prog_RANLIB"; then
5805 ac_ct_RANLIB=$RANLIB
5806 # Extract the first word of "ranlib", so it can be a program name with args.
5807 set dummy ranlib; ac_word=$2
5808 echo "$as_me:$LINENO: checking for $ac_word" >&5
5809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5810 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813 if test -n "$ac_ct_RANLIB"; then
5814 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5815 else
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5823 ac_cv_prog_ac_ct_RANLIB="ranlib"
5824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5827 done
5828 done
5830 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5833 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5834 if test -n "$ac_ct_RANLIB"; then
5835 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5836 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5837 else
5838 echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6
5842 RANLIB=$ac_ct_RANLIB
5843 else
5844 RANLIB="$ac_cv_prog_RANLIB"
5847 if test -n "$ac_tool_prefix"; then
5848 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5849 set dummy ${ac_tool_prefix}strip; ac_word=$2
5850 echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5852 if test "${ac_cv_prog_STRIP+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855 if test -n "$STRIP"; then
5856 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 2
5869 done
5870 done
5874 STRIP=$ac_cv_prog_STRIP
5875 if test -n "$STRIP"; then
5876 echo "$as_me:$LINENO: result: $STRIP" >&5
5877 echo "${ECHO_T}$STRIP" >&6
5878 else
5879 echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6
5884 if test -z "$ac_cv_prog_STRIP"; then
5885 ac_ct_STRIP=$STRIP
5886 # Extract the first word of "strip", so it can be a program name with args.
5887 set dummy strip; ac_word=$2
5888 echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5890 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 if test -n "$ac_ct_STRIP"; then
5894 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_ac_ct_STRIP="strip"
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5907 done
5908 done
5910 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5913 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5914 if test -n "$ac_ct_STRIP"; then
5915 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5916 echo "${ECHO_T}$ac_ct_STRIP" >&6
5917 else
5918 echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6
5922 STRIP=$ac_ct_STRIP
5923 else
5924 STRIP="$ac_cv_prog_STRIP"
5928 # Check for any special flags to pass to ltconfig.
5929 libtool_flags="--cache-file=$cache_file"
5930 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5931 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5932 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5933 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5934 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5937 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5938 if test "${enable_libtool_lock+set}" = set; then
5939 enableval="$enable_libtool_lock"
5942 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5943 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5946 # Check whether --with-pic or --without-pic was given.
5947 if test "${with_pic+set}" = set; then
5948 withval="$with_pic"
5949 pic_mode="$withval"
5950 else
5951 pic_mode=default
5953 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5954 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5956 # Some flags need to be propagated to the compiler or linker for good
5957 # libtool support.
5958 case $host in
5959 *-*-irix6*)
5960 # Find out which ABI we are using.
5961 echo '#line 5961 "configure"' > conftest.$ac_ext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963 (eval $ac_compile) 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; then
5967 if test "$lt_cv_prog_gnu_ld" = yes; then
5968 case `/usr/bin/file conftest.$ac_objext` in
5969 *32-bit*)
5970 LD="${LD-ld} -melf32bsmip"
5972 *N32*)
5973 LD="${LD-ld} -melf32bmipn32"
5975 *64-bit*)
5976 LD="${LD-ld} -melf64bmip"
5978 esac
5979 else
5980 case `/usr/bin/file conftest.$ac_objext` in
5981 *32-bit*)
5982 LD="${LD-ld} -32"
5984 *N32*)
5985 LD="${LD-ld} -n32"
5987 *64-bit*)
5988 LD="${LD-ld} -64"
5990 esac
5993 rm -rf conftest*
5996 ia64-*-hpux*)
5997 # Find out which ABI we are using.
5998 echo 'int i;' > conftest.$ac_ext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000 (eval $ac_compile) 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; then
6004 case "`/usr/bin/file conftest.o`" in
6005 *ELF-32*)
6006 HPUX_IA64_MODE="32"
6008 *ELF-64*)
6009 HPUX_IA64_MODE="64"
6011 esac
6013 rm -rf conftest*
6016 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6017 # Find out which ABI we are using.
6018 echo 'int i;' > conftest.$ac_ext
6019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6020 (eval $ac_compile) 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; then
6024 case "`/usr/bin/file conftest.o`" in
6025 *32-bit*)
6026 case $host in
6027 x86_64-*linux*)
6028 LD="${LD-ld} -m elf_i386"
6030 ppc64-*linux*)
6031 LD="${LD-ld} -m elf32ppclinux"
6033 s390x-*linux*)
6034 LD="${LD-ld} -m elf_s390"
6036 sparc64-*linux*)
6037 LD="${LD-ld} -m elf32_sparc"
6039 esac
6041 *64-bit*)
6042 case $host in
6043 x86_64-*linux*)
6044 LD="${LD-ld} -m elf_x86_64"
6046 ppc*-*linux*|powerpc*-*linux*)
6047 LD="${LD-ld} -m elf64ppc"
6049 s390*-*linux*)
6050 LD="${LD-ld} -m elf64_s390"
6052 sparc*-*linux*)
6053 LD="${LD-ld} -m elf64_sparc"
6055 esac
6057 esac
6059 rm -rf conftest*
6062 *-*-sco3.2v5*)
6063 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6064 SAVE_CFLAGS="$CFLAGS"
6065 CFLAGS="$CFLAGS -belf"
6066 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6067 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6068 if test "${lt_cv_cc_needs_belf+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6073 ac_ext=c
6074 ac_cpp='$CPP $CPPFLAGS'
6075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6079 cat >conftest.$ac_ext <<_ACEOF
6080 #line $LINENO "configure"
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6088 main ()
6092 return 0;
6094 _ACEOF
6095 rm -f conftest.$ac_objext conftest$ac_exeext
6096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6097 (eval $ac_link) 2>&5
6098 ac_status=$?
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } &&
6101 { ac_try='test -s conftest$ac_exeext'
6102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103 (eval $ac_try) 2>&5
6104 ac_status=$?
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; }; then
6107 lt_cv_cc_needs_belf=yes
6108 else
6109 echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6112 lt_cv_cc_needs_belf=no
6114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6115 ac_ext=c
6116 ac_cpp='$CPP $CPPFLAGS'
6117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6122 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6123 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6124 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6125 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6126 CFLAGS="$SAVE_CFLAGS"
6131 esac
6134 # Save cache, so that ltconfig can load it
6135 cat >confcache <<\_ACEOF
6136 # This file is a shell script that caches the results of configure
6137 # tests run on this system so they can be shared between configure
6138 # scripts and configure runs, see configure's option --config-cache.
6139 # It is not useful on other systems. If it contains results you don't
6140 # want to keep, you may remove or edit it.
6142 # config.status only pays attention to the cache file if you give it
6143 # the --recheck option to rerun configure.
6145 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6146 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6147 # following values.
6149 _ACEOF
6151 # The following way of writing the cache mishandles newlines in values,
6152 # but we know of no workaround that is simple, portable, and efficient.
6153 # So, don't put newlines in cache variables' values.
6154 # Ultrix sh set writes to stderr and can't be redirected directly,
6155 # and sets the high bit in the cache file unless we assign to the vars.
6157 (set) 2>&1 |
6158 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6159 *ac_space=\ *)
6160 # `set' does not quote correctly, so add quotes (double-quote
6161 # substitution turns \\\\ into \\, and sed turns \\ into \).
6162 sed -n \
6163 "s/'/'\\\\''/g;
6164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6167 # `set' quotes correctly as required by POSIX, so do not add quotes.
6168 sed -n \
6169 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6171 esac;
6173 sed '
6174 t clear
6175 : clear
6176 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6177 t end
6178 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6179 : end' >>confcache
6180 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6181 if test -w $cache_file; then
6182 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6183 cat confcache >$cache_file
6184 else
6185 echo "not updating unwritable cache $cache_file"
6188 rm -f confcache
6190 # Actually configure libtool. ac_aux_dir is where install-sh is found.
6191 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6192 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6193 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6194 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6195 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6196 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6197 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6198 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6199 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6200 echo "$as_me: error: libtool configure failed" >&2;}
6201 { (exit 1); exit 1; }; }
6203 # Reload cache, that may have been modified by ltconfig
6204 if test -r "$cache_file"; then
6205 # Some versions of bash will fail to source /dev/null (special
6206 # files actually), so we avoid doing that.
6207 if test -f "$cache_file"; then
6208 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6209 echo "$as_me: loading cache $cache_file" >&6;}
6210 case $cache_file in
6211 [\\/]* | ?:[\\/]* ) . $cache_file;;
6212 *) . ./$cache_file;;
6213 esac
6215 else
6216 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6217 echo "$as_me: creating cache $cache_file" >&6;}
6218 >$cache_file
6222 # This can be used to rebuild libtool when needed
6223 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6225 # Always use our own libtool.
6226 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6228 # Redirect the config.log output again, so that the ltconfig log is not
6229 # clobbered by the next message.
6230 exec 5>>./config.log
6238 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6239 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6240 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6241 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244 cat >conftest.make <<\_ACEOF
6245 all:
6246 @echo 'ac_maketemp="$(MAKE)"'
6247 _ACEOF
6248 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6249 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6250 if test -n "$ac_maketemp"; then
6251 eval ac_cv_prog_make_${ac_make}_set=yes
6252 else
6253 eval ac_cv_prog_make_${ac_make}_set=no
6255 rm -f conftest.make
6257 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6258 echo "$as_me:$LINENO: result: yes" >&5
6259 echo "${ECHO_T}yes" >&6
6260 SET_MAKE=
6261 else
6262 echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6
6264 SET_MAKE="MAKE=${MAKE-make}"
6267 # Find a good install program. We prefer a C program (faster),
6268 # so one script is as good as another. But avoid the broken or
6269 # incompatible versions:
6270 # SysV /etc/install, /usr/sbin/install
6271 # SunOS /usr/etc/install
6272 # IRIX /sbin/install
6273 # AIX /bin/install
6274 # AmigaOS /C/install, which installs bootblocks on floppy discs
6275 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6276 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6277 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6278 # ./install, which can be erroneously created by make from ./install.sh.
6279 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6280 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6281 if test -z "$INSTALL"; then
6282 if test "${ac_cv_path_install+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 # Account for people who put trailing slashes in PATH elements.
6291 case $as_dir/ in
6292 ./ | .// | /cC/* | \
6293 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6294 /usr/ucb/* ) ;;
6296 # OSF1 and SCO ODT 3.0 have their own names for install.
6297 # Don't use installbsd from OSF since it installs stuff as root
6298 # by default.
6299 for ac_prog in ginstall scoinst install; do
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6302 if test $ac_prog = install &&
6303 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6304 # AIX install. It has an incompatible calling convention.
6306 elif test $ac_prog = install &&
6307 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6308 # program-specific install script used by HP pwplus--don't use.
6310 else
6311 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6312 break 3
6315 done
6316 done
6318 esac
6319 done
6323 if test "${ac_cv_path_install+set}" = set; then
6324 INSTALL=$ac_cv_path_install
6325 else
6326 # As a last resort, use the slow shell script. We don't cache a
6327 # path for INSTALL within a source directory, because that will
6328 # break other packages using the cache if that directory is
6329 # removed, or if the path is relative.
6330 INSTALL=$ac_install_sh
6333 echo "$as_me:$LINENO: result: $INSTALL" >&5
6334 echo "${ECHO_T}$INSTALL" >&6
6336 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6337 # It thinks the first close brace ends the variable substitution.
6338 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6340 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6342 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6345 ac_config_files="$ac_config_files Makefile"
6346 cat >confcache <<\_ACEOF
6347 # This file is a shell script that caches the results of configure
6348 # tests run on this system so they can be shared between configure
6349 # scripts and configure runs, see configure's option --config-cache.
6350 # It is not useful on other systems. If it contains results you don't
6351 # want to keep, you may remove or edit it.
6353 # config.status only pays attention to the cache file if you give it
6354 # the --recheck option to rerun configure.
6356 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6357 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6358 # following values.
6360 _ACEOF
6362 # The following way of writing the cache mishandles newlines in values,
6363 # but we know of no workaround that is simple, portable, and efficient.
6364 # So, don't put newlines in cache variables' values.
6365 # Ultrix sh set writes to stderr and can't be redirected directly,
6366 # and sets the high bit in the cache file unless we assign to the vars.
6368 (set) 2>&1 |
6369 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6370 *ac_space=\ *)
6371 # `set' does not quote correctly, so add quotes (double-quote
6372 # substitution turns \\\\ into \\, and sed turns \\ into \).
6373 sed -n \
6374 "s/'/'\\\\''/g;
6375 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6378 # `set' quotes correctly as required by POSIX, so do not add quotes.
6379 sed -n \
6380 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6382 esac;
6384 sed '
6385 t clear
6386 : clear
6387 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6388 t end
6389 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6390 : end' >>confcache
6391 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6392 if test -w $cache_file; then
6393 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6394 cat confcache >$cache_file
6395 else
6396 echo "not updating unwritable cache $cache_file"
6399 rm -f confcache
6401 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6402 # Let make expand exec_prefix.
6403 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6405 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6406 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6407 # trailing colons and then remove the whole line if VPATH becomes empty
6408 # (actually we leave an empty line to preserve line numbers).
6409 if test "x$srcdir" = x.; then
6410 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6411 s/:*\$(srcdir):*/:/;
6412 s/:*\${srcdir}:*/:/;
6413 s/:*@srcdir@:*/:/;
6414 s/^\([^=]*=[ ]*\):*/\1/;
6415 s/:*$//;
6416 s/^[^=]*=[ ]*$//;
6420 DEFS=-DHAVE_CONFIG_H
6422 ac_libobjs=
6423 ac_ltlibobjs=
6424 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6425 # 1. Remove the extension, and $U if already installed.
6426 ac_i=`echo "$ac_i" |
6427 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6428 # 2. Add them.
6429 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6430 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6431 done
6432 LIBOBJS=$ac_libobjs
6434 LTLIBOBJS=$ac_ltlibobjs
6437 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6438 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6439 Usually this means the macro was only invoked conditionally." >&5
6440 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6441 Usually this means the macro was only invoked conditionally." >&2;}
6442 { (exit 1); exit 1; }; }
6444 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6445 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6446 Usually this means the macro was only invoked conditionally." >&5
6447 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6448 Usually this means the macro was only invoked conditionally." >&2;}
6449 { (exit 1); exit 1; }; }
6451 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6452 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6453 Usually this means the macro was only invoked conditionally." >&5
6454 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6455 Usually this means the macro was only invoked conditionally." >&2;}
6456 { (exit 1); exit 1; }; }
6459 : ${CONFIG_STATUS=./config.status}
6460 ac_clean_files_save=$ac_clean_files
6461 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6462 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6463 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6464 cat >$CONFIG_STATUS <<_ACEOF
6465 #! $SHELL
6466 # Generated by $as_me.
6467 # Run this file to recreate the current configuration.
6468 # Compiler output produced by configure, useful for debugging
6469 # configure, is in config.log if it exists.
6471 debug=false
6472 ac_cs_recheck=false
6473 ac_cs_silent=false
6474 SHELL=\${CONFIG_SHELL-$SHELL}
6475 _ACEOF
6477 cat >>$CONFIG_STATUS <<\_ACEOF
6478 ## --------------------- ##
6479 ## M4sh Initialization. ##
6480 ## --------------------- ##
6482 # Be Bourne compatible
6483 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6484 emulate sh
6485 NULLCMD=:
6486 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6487 # is contrary to our usage. Disable this feature.
6488 alias -g '${1+"$@"}'='"$@"'
6489 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6490 set -o posix
6493 # Support unset when possible.
6494 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6495 as_unset=unset
6496 else
6497 as_unset=false
6501 # Work around bugs in pre-3.0 UWIN ksh.
6502 $as_unset ENV MAIL MAILPATH
6503 PS1='$ '
6504 PS2='> '
6505 PS4='+ '
6507 # NLS nuisances.
6508 for as_var in \
6509 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6510 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6511 LC_TELEPHONE LC_TIME
6513 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6514 eval $as_var=C; export $as_var
6515 else
6516 $as_unset $as_var
6518 done
6520 # Required to use basename.
6521 if expr a : '\(a\)' >/dev/null 2>&1; then
6522 as_expr=expr
6523 else
6524 as_expr=false
6527 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6528 as_basename=basename
6529 else
6530 as_basename=false
6534 # Name of the executable.
6535 as_me=`$as_basename "$0" ||
6536 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6537 X"$0" : 'X\(//\)$' \| \
6538 X"$0" : 'X\(/\)$' \| \
6539 . : '\(.\)' 2>/dev/null ||
6540 echo X/"$0" |
6541 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6542 /^X\/\(\/\/\)$/{ s//\1/; q; }
6543 /^X\/\(\/\).*/{ s//\1/; q; }
6544 s/.*/./; q'`
6547 # PATH needs CR, and LINENO needs CR and PATH.
6548 # Avoid depending upon Character Ranges.
6549 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6550 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6551 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6552 as_cr_digits='0123456789'
6553 as_cr_alnum=$as_cr_Letters$as_cr_digits
6555 # The user is always right.
6556 if test "${PATH_SEPARATOR+set}" != set; then
6557 echo "#! /bin/sh" >conf$$.sh
6558 echo "exit 0" >>conf$$.sh
6559 chmod +x conf$$.sh
6560 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6561 PATH_SEPARATOR=';'
6562 else
6563 PATH_SEPARATOR=:
6565 rm -f conf$$.sh
6569 as_lineno_1=$LINENO
6570 as_lineno_2=$LINENO
6571 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6572 test "x$as_lineno_1" != "x$as_lineno_2" &&
6573 test "x$as_lineno_3" = "x$as_lineno_2" || {
6574 # Find who we are. Look in the path if we contain no path at all
6575 # relative or not.
6576 case $0 in
6577 *[\\/]* ) as_myself=$0 ;;
6578 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
6583 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6584 done
6587 esac
6588 # We did not find ourselves, most probably we were run as `sh COMMAND'
6589 # in which case we are not to be found in the path.
6590 if test "x$as_myself" = x; then
6591 as_myself=$0
6593 if test ! -f "$as_myself"; then
6594 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6595 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6596 { (exit 1); exit 1; }; }
6598 case $CONFIG_SHELL in
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for as_base in sh bash ksh sh5; do
6606 case $as_dir in
6608 if ("$as_dir/$as_base" -c '
6609 as_lineno_1=$LINENO
6610 as_lineno_2=$LINENO
6611 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6612 test "x$as_lineno_1" != "x$as_lineno_2" &&
6613 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6614 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6615 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6616 CONFIG_SHELL=$as_dir/$as_base
6617 export CONFIG_SHELL
6618 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6619 fi;;
6620 esac
6621 done
6622 done
6624 esac
6626 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6627 # uniformly replaced by the line number. The first 'sed' inserts a
6628 # line-number line before each line; the second 'sed' does the real
6629 # work. The second script uses 'N' to pair each line-number line
6630 # with the numbered line, and appends trailing '-' during
6631 # substitution so that $LINENO is not a special case at line end.
6632 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6633 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6634 sed '=' <$as_myself |
6635 sed '
6637 s,$,-,
6638 : loop
6639 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6640 t loop
6641 s,-$,,
6642 s,^['$as_cr_digits']*\n,,
6643 ' >$as_me.lineno &&
6644 chmod +x $as_me.lineno ||
6645 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6646 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6647 { (exit 1); exit 1; }; }
6649 # Don't try to exec as it changes $[0], causing all sort of problems
6650 # (the dirname of $[0] is not the place where we might find the
6651 # original and so on. Autoconf is especially sensible to this).
6652 . ./$as_me.lineno
6653 # Exit status is that of the last command.
6654 exit
6658 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6659 *c*,-n*) ECHO_N= ECHO_C='
6660 ' ECHO_T=' ' ;;
6661 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6662 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6663 esac
6665 if expr a : '\(a\)' >/dev/null 2>&1; then
6666 as_expr=expr
6667 else
6668 as_expr=false
6671 rm -f conf$$ conf$$.exe conf$$.file
6672 echo >conf$$.file
6673 if ln -s conf$$.file conf$$ 2>/dev/null; then
6674 # We could just check for DJGPP; but this test a) works b) is more generic
6675 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6676 if test -f conf$$.exe; then
6677 # Don't use ln at all; we don't have any links
6678 as_ln_s='cp -p'
6679 else
6680 as_ln_s='ln -s'
6682 elif ln conf$$.file conf$$ 2>/dev/null; then
6683 as_ln_s=ln
6684 else
6685 as_ln_s='cp -p'
6687 rm -f conf$$ conf$$.exe conf$$.file
6689 if mkdir -p . 2>/dev/null; then
6690 as_mkdir_p=:
6691 else
6692 as_mkdir_p=false
6695 as_executable_p="test -f"
6697 # Sed expression to map a string onto a valid CPP name.
6698 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6700 # Sed expression to map a string onto a valid variable name.
6701 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6704 # IFS
6705 # We need space, tab and new line, in precisely that order.
6706 as_nl='
6708 IFS=" $as_nl"
6710 # CDPATH.
6711 $as_unset CDPATH
6713 exec 6>&1
6715 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6716 # report actual input values of CONFIG_FILES etc. instead of their
6717 # values after options handling. Logging --version etc. is OK.
6718 exec 5>>config.log
6720 echo
6721 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6722 ## Running $as_me. ##
6723 _ASBOX
6724 } >&5
6725 cat >&5 <<_CSEOF
6727 This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
6728 generated by GNU Autoconf 2.57. Invocation command line was
6730 CONFIG_FILES = $CONFIG_FILES
6731 CONFIG_HEADERS = $CONFIG_HEADERS
6732 CONFIG_LINKS = $CONFIG_LINKS
6733 CONFIG_COMMANDS = $CONFIG_COMMANDS
6734 $ $0 $@
6736 _CSEOF
6737 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6738 echo >&5
6739 _ACEOF
6741 # Files that config.status was made for.
6742 if test -n "$ac_config_files"; then
6743 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6746 if test -n "$ac_config_headers"; then
6747 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6750 if test -n "$ac_config_links"; then
6751 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6754 if test -n "$ac_config_commands"; then
6755 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6758 cat >>$CONFIG_STATUS <<\_ACEOF
6760 ac_cs_usage="\
6761 \`$as_me' instantiates files from templates according to the
6762 current configuration.
6764 Usage: $0 [OPTIONS] [FILE]...
6766 -h, --help print this help, then exit
6767 -V, --version print version number, then exit
6768 -q, --quiet do not print progress messages
6769 -d, --debug don't remove temporary files
6770 --recheck update $as_me by reconfiguring in the same conditions
6771 --file=FILE[:TEMPLATE]
6772 instantiate the configuration file FILE
6773 --header=FILE[:TEMPLATE]
6774 instantiate the configuration header FILE
6776 Configuration files:
6777 $config_files
6779 Configuration headers:
6780 $config_headers
6782 Configuration commands:
6783 $config_commands
6785 Report bugs to <bug-autoconf@gnu.org>."
6786 _ACEOF
6788 cat >>$CONFIG_STATUS <<_ACEOF
6789 ac_cs_version="\\
6790 GNU Fortran Runtime Library config.status 0.2
6791 configured by $0, generated by GNU Autoconf 2.57,
6792 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6794 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6795 Free Software Foundation, Inc.
6796 This config.status script is free software; the Free Software Foundation
6797 gives unlimited permission to copy, distribute and modify it."
6798 srcdir=$srcdir
6799 INSTALL="$INSTALL"
6800 _ACEOF
6802 cat >>$CONFIG_STATUS <<\_ACEOF
6803 # If no file are specified by the user, then we need to provide default
6804 # value. By we need to know if files were specified by the user.
6805 ac_need_defaults=:
6806 while test $# != 0
6808 case $1 in
6809 --*=*)
6810 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6811 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6812 ac_shift=:
6815 ac_option=$1
6816 ac_optarg=$2
6817 ac_shift=shift
6819 *) # This is not an option, so the user has probably given explicit
6820 # arguments.
6821 ac_option=$1
6822 ac_need_defaults=false;;
6823 esac
6825 case $ac_option in
6826 # Handling of the options.
6827 _ACEOF
6828 cat >>$CONFIG_STATUS <<\_ACEOF
6829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6830 ac_cs_recheck=: ;;
6831 --version | --vers* | -V )
6832 echo "$ac_cs_version"; exit 0 ;;
6833 --he | --h)
6834 # Conflict between --help and --header
6835 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6836 Try \`$0 --help' for more information." >&5
6837 echo "$as_me: error: ambiguous option: $1
6838 Try \`$0 --help' for more information." >&2;}
6839 { (exit 1); exit 1; }; };;
6840 --help | --hel | -h )
6841 echo "$ac_cs_usage"; exit 0 ;;
6842 --debug | --d* | -d )
6843 debug=: ;;
6844 --file | --fil | --fi | --f )
6845 $ac_shift
6846 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6847 ac_need_defaults=false;;
6848 --header | --heade | --head | --hea )
6849 $ac_shift
6850 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6851 ac_need_defaults=false;;
6852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6853 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6854 ac_cs_silent=: ;;
6856 # This is an error.
6857 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6858 Try \`$0 --help' for more information." >&5
6859 echo "$as_me: error: unrecognized option: $1
6860 Try \`$0 --help' for more information." >&2;}
6861 { (exit 1); exit 1; }; } ;;
6863 *) ac_config_targets="$ac_config_targets $1" ;;
6865 esac
6866 shift
6867 done
6869 ac_configure_extra_args=
6871 if $ac_cs_silent; then
6872 exec 6>/dev/null
6873 ac_configure_extra_args="$ac_configure_extra_args --silent"
6876 _ACEOF
6877 cat >>$CONFIG_STATUS <<_ACEOF
6878 if \$ac_cs_recheck; then
6879 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6880 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6883 _ACEOF
6885 cat >>$CONFIG_STATUS <<_ACEOF
6887 # INIT-COMMANDS section.
6890 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6892 _ACEOF
6896 cat >>$CONFIG_STATUS <<\_ACEOF
6897 for ac_config_target in $ac_config_targets
6899 case "$ac_config_target" in
6900 # Handling of arguments.
6901 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6902 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6903 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6904 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6905 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6906 { (exit 1); exit 1; }; };;
6907 esac
6908 done
6910 # If the user did not use the arguments to specify the items to instantiate,
6911 # then the envvar interface is used. Set only those that are not.
6912 # We use the long form for the default assignment because of an extremely
6913 # bizarre bug on SunOS 4.1.3.
6914 if $ac_need_defaults; then
6915 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6916 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6917 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6920 # Have a temporary directory for convenience. Make it in the build tree
6921 # simply because there is no reason to put it here, and in addition,
6922 # creating and moving files from /tmp can sometimes cause problems.
6923 # Create a temporary directory, and hook for its removal unless debugging.
6924 $debug ||
6926 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6927 trap '{ (exit 1); exit 1; }' 1 2 13 15
6930 # Create a (secure) tmp directory for tmp files.
6933 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6934 test -n "$tmp" && test -d "$tmp"
6935 } ||
6937 tmp=./confstat$$-$RANDOM
6938 (umask 077 && mkdir $tmp)
6939 } ||
6941 echo "$me: cannot create a temporary directory in ." >&2
6942 { (exit 1); exit 1; }
6945 _ACEOF
6947 cat >>$CONFIG_STATUS <<_ACEOF
6950 # CONFIG_FILES section.
6953 # No need to generate the scripts if there are no CONFIG_FILES.
6954 # This happens for instance when ./config.status config.h
6955 if test -n "\$CONFIG_FILES"; then
6956 # Protect against being on the right side of a sed subst in config.status.
6957 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6958 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6959 s,@SHELL@,$SHELL,;t t
6960 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6961 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6962 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6963 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6964 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6965 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6966 s,@exec_prefix@,$exec_prefix,;t t
6967 s,@prefix@,$prefix,;t t
6968 s,@program_transform_name@,$program_transform_name,;t t
6969 s,@bindir@,$bindir,;t t
6970 s,@sbindir@,$sbindir,;t t
6971 s,@libexecdir@,$libexecdir,;t t
6972 s,@datadir@,$datadir,;t t
6973 s,@sysconfdir@,$sysconfdir,;t t
6974 s,@sharedstatedir@,$sharedstatedir,;t t
6975 s,@localstatedir@,$localstatedir,;t t
6976 s,@libdir@,$libdir,;t t
6977 s,@includedir@,$includedir,;t t
6978 s,@oldincludedir@,$oldincludedir,;t t
6979 s,@infodir@,$infodir,;t t
6980 s,@mandir@,$mandir,;t t
6981 s,@build_alias@,$build_alias,;t t
6982 s,@host_alias@,$host_alias,;t t
6983 s,@target_alias@,$target_alias,;t t
6984 s,@DEFS@,$DEFS,;t t
6985 s,@ECHO_C@,$ECHO_C,;t t
6986 s,@ECHO_N@,$ECHO_N,;t t
6987 s,@ECHO_T@,$ECHO_T,;t t
6988 s,@LIBS@,$LIBS,;t t
6989 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6990 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6991 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6992 s,@CYGPATH_W@,$CYGPATH_W,;t t
6993 s,@PACKAGE@,$PACKAGE,;t t
6994 s,@VERSION@,$VERSION,;t t
6995 s,@ACLOCAL@,$ACLOCAL,;t t
6996 s,@AUTOCONF@,$AUTOCONF,;t t
6997 s,@AUTOMAKE@,$AUTOMAKE,;t t
6998 s,@AUTOHEADER@,$AUTOHEADER,;t t
6999 s,@MAKEINFO@,$MAKEINFO,;t t
7000 s,@AMTAR@,$AMTAR,;t t
7001 s,@install_sh@,$install_sh,;t t
7002 s,@STRIP@,$STRIP,;t t
7003 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7004 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7005 s,@AWK@,$AWK,;t t
7006 s,@SET_MAKE@,$SET_MAKE,;t t
7007 s,@am__leading_dot@,$am__leading_dot,;t t
7008 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7009 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7010 s,@MAINT@,$MAINT,;t t
7011 s,@enable_shared@,$enable_shared,;t t
7012 s,@enable_static@,$enable_static,;t t
7013 s,@CC@,$CC,;t t
7014 s,@CFLAGS@,$CFLAGS,;t t
7015 s,@LDFLAGS@,$LDFLAGS,;t t
7016 s,@CPPFLAGS@,$CPPFLAGS,;t t
7017 s,@ac_ct_CC@,$ac_ct_CC,;t t
7018 s,@EXEEXT@,$EXEEXT,;t t
7019 s,@OBJEXT@,$OBJEXT,;t t
7020 s,@DEPDIR@,$DEPDIR,;t t
7021 s,@am__include@,$am__include,;t t
7022 s,@am__quote@,$am__quote,;t t
7023 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7024 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7025 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7026 s,@CCDEPMODE@,$CCDEPMODE,;t t
7027 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7028 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7029 s,@F77@,$F77,;t t
7030 s,@FFLAGS@,$FFLAGS,;t t
7031 s,@ac_ct_F77@,$ac_ct_F77,;t t
7032 s,@CPP@,$CPP,;t t
7033 s,@EGREP@,$EGREP,;t t
7034 s,@MATH_OBJ@,$MATH_OBJ,;t t
7035 s,@AR@,$AR,;t t
7036 s,@RANLIB@,$RANLIB,;t t
7037 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7038 s,@build@,$build,;t t
7039 s,@build_cpu@,$build_cpu,;t t
7040 s,@build_vendor@,$build_vendor,;t t
7041 s,@build_os@,$build_os,;t t
7042 s,@host@,$host,;t t
7043 s,@host_cpu@,$host_cpu,;t t
7044 s,@host_vendor@,$host_vendor,;t t
7045 s,@host_os@,$host_os,;t t
7046 s,@LN_S@,$LN_S,;t t
7047 s,@LIBTOOL@,$LIBTOOL,;t t
7048 s,@LIBOBJS@,$LIBOBJS,;t t
7049 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7050 CEOF
7052 _ACEOF
7054 cat >>$CONFIG_STATUS <<\_ACEOF
7055 # Split the substitutions into bite-sized pieces for seds with
7056 # small command number limits, like on Digital OSF/1 and HP-UX.
7057 ac_max_sed_lines=48
7058 ac_sed_frag=1 # Number of current file.
7059 ac_beg=1 # First line for current file.
7060 ac_end=$ac_max_sed_lines # Line after last line for current file.
7061 ac_more_lines=:
7062 ac_sed_cmds=
7063 while $ac_more_lines; do
7064 if test $ac_beg -gt 1; then
7065 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7066 else
7067 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7069 if test ! -s $tmp/subs.frag; then
7070 ac_more_lines=false
7071 else
7072 # The purpose of the label and of the branching condition is to
7073 # speed up the sed processing (if there are no `@' at all, there
7074 # is no need to browse any of the substitutions).
7075 # These are the two extra sed commands mentioned above.
7076 (echo ':t
7077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7078 if test -z "$ac_sed_cmds"; then
7079 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7080 else
7081 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7083 ac_sed_frag=`expr $ac_sed_frag + 1`
7084 ac_beg=$ac_end
7085 ac_end=`expr $ac_end + $ac_max_sed_lines`
7087 done
7088 if test -z "$ac_sed_cmds"; then
7089 ac_sed_cmds=cat
7091 fi # test -n "$CONFIG_FILES"
7093 _ACEOF
7094 cat >>$CONFIG_STATUS <<\_ACEOF
7095 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7096 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7097 case $ac_file in
7098 - | *:- | *:-:* ) # input from stdin
7099 cat >$tmp/stdin
7100 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7101 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7102 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7103 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7104 * ) ac_file_in=$ac_file.in ;;
7105 esac
7107 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7108 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7110 X"$ac_file" : 'X\(//\)[^/]' \| \
7111 X"$ac_file" : 'X\(//\)$' \| \
7112 X"$ac_file" : 'X\(/\)' \| \
7113 . : '\(.\)' 2>/dev/null ||
7114 echo X"$ac_file" |
7115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7117 /^X\(\/\/\)$/{ s//\1/; q; }
7118 /^X\(\/\).*/{ s//\1/; q; }
7119 s/.*/./; q'`
7120 { if $as_mkdir_p; then
7121 mkdir -p "$ac_dir"
7122 else
7123 as_dir="$ac_dir"
7124 as_dirs=
7125 while test ! -d "$as_dir"; do
7126 as_dirs="$as_dir $as_dirs"
7127 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7129 X"$as_dir" : 'X\(//\)[^/]' \| \
7130 X"$as_dir" : 'X\(//\)$' \| \
7131 X"$as_dir" : 'X\(/\)' \| \
7132 . : '\(.\)' 2>/dev/null ||
7133 echo X"$as_dir" |
7134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7136 /^X\(\/\/\)$/{ s//\1/; q; }
7137 /^X\(\/\).*/{ s//\1/; q; }
7138 s/.*/./; q'`
7139 done
7140 test ! -n "$as_dirs" || mkdir $as_dirs
7141 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7142 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7143 { (exit 1); exit 1; }; }; }
7145 ac_builddir=.
7147 if test "$ac_dir" != .; then
7148 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7149 # A "../" for each directory in $ac_dir_suffix.
7150 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7151 else
7152 ac_dir_suffix= ac_top_builddir=
7155 case $srcdir in
7156 .) # No --srcdir option. We are building in place.
7157 ac_srcdir=.
7158 if test -z "$ac_top_builddir"; then
7159 ac_top_srcdir=.
7160 else
7161 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7162 fi ;;
7163 [\\/]* | ?:[\\/]* ) # Absolute path.
7164 ac_srcdir=$srcdir$ac_dir_suffix;
7165 ac_top_srcdir=$srcdir ;;
7166 *) # Relative path.
7167 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7168 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7169 esac
7170 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7171 # absolute.
7172 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7173 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7174 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7175 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7178 case $INSTALL in
7179 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7180 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7181 esac
7183 if test x"$ac_file" != x-; then
7184 { echo "$as_me:$LINENO: creating $ac_file" >&5
7185 echo "$as_me: creating $ac_file" >&6;}
7186 rm -f "$ac_file"
7188 # Let's still pretend it is `configure' which instantiates (i.e., don't
7189 # use $as_me), people would be surprised to read:
7190 # /* config.h. Generated by config.status. */
7191 if test x"$ac_file" = x-; then
7192 configure_input=
7193 else
7194 configure_input="$ac_file. "
7196 configure_input=$configure_input"Generated from `echo $ac_file_in |
7197 sed 's,.*/,,'` by configure."
7199 # First look for the input files in the build tree, otherwise in the
7200 # src tree.
7201 ac_file_inputs=`IFS=:
7202 for f in $ac_file_in; do
7203 case $f in
7204 -) echo $tmp/stdin ;;
7205 [\\/$]*)
7206 # Absolute (can't be DOS-style, as IFS=:)
7207 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7208 echo "$as_me: error: cannot find input file: $f" >&2;}
7209 { (exit 1); exit 1; }; }
7210 echo $f;;
7211 *) # Relative
7212 if test -f "$f"; then
7213 # Build tree
7214 echo $f
7215 elif test -f "$srcdir/$f"; then
7216 # Source tree
7217 echo $srcdir/$f
7218 else
7219 # /dev/null tree
7220 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7221 echo "$as_me: error: cannot find input file: $f" >&2;}
7222 { (exit 1); exit 1; }; }
7223 fi;;
7224 esac
7225 done` || { (exit 1); exit 1; }
7226 _ACEOF
7227 cat >>$CONFIG_STATUS <<_ACEOF
7228 sed "$ac_vpsub
7229 $extrasub
7230 _ACEOF
7231 cat >>$CONFIG_STATUS <<\_ACEOF
7233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7234 s,@configure_input@,$configure_input,;t t
7235 s,@srcdir@,$ac_srcdir,;t t
7236 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7237 s,@top_srcdir@,$ac_top_srcdir,;t t
7238 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7239 s,@builddir@,$ac_builddir,;t t
7240 s,@abs_builddir@,$ac_abs_builddir,;t t
7241 s,@top_builddir@,$ac_top_builddir,;t t
7242 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7243 s,@INSTALL@,$ac_INSTALL,;t t
7244 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7245 rm -f $tmp/stdin
7246 if test x"$ac_file" != x-; then
7247 mv $tmp/out $ac_file
7248 else
7249 cat $tmp/out
7250 rm -f $tmp/out
7253 done
7254 _ACEOF
7255 cat >>$CONFIG_STATUS <<\_ACEOF
7258 # CONFIG_HEADER section.
7261 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7262 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7264 # ac_d sets the value in "#define NAME VALUE" lines.
7265 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7266 ac_dB='[ ].*$,\1#\2'
7267 ac_dC=' '
7268 ac_dD=',;t'
7269 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7270 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7271 ac_uB='$,\1#\2define\3'
7272 ac_uC=' '
7273 ac_uD=',;t'
7275 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7276 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7277 case $ac_file in
7278 - | *:- | *:-:* ) # input from stdin
7279 cat >$tmp/stdin
7280 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7281 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7282 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7283 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7284 * ) ac_file_in=$ac_file.in ;;
7285 esac
7287 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7288 echo "$as_me: creating $ac_file" >&6;}
7290 # First look for the input files in the build tree, otherwise in the
7291 # src tree.
7292 ac_file_inputs=`IFS=:
7293 for f in $ac_file_in; do
7294 case $f in
7295 -) echo $tmp/stdin ;;
7296 [\\/$]*)
7297 # Absolute (can't be DOS-style, as IFS=:)
7298 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7299 echo "$as_me: error: cannot find input file: $f" >&2;}
7300 { (exit 1); exit 1; }; }
7301 echo $f;;
7302 *) # Relative
7303 if test -f "$f"; then
7304 # Build tree
7305 echo $f
7306 elif test -f "$srcdir/$f"; then
7307 # Source tree
7308 echo $srcdir/$f
7309 else
7310 # /dev/null tree
7311 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7312 echo "$as_me: error: cannot find input file: $f" >&2;}
7313 { (exit 1); exit 1; }; }
7314 fi;;
7315 esac
7316 done` || { (exit 1); exit 1; }
7317 # Remove the trailing spaces.
7318 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7320 _ACEOF
7322 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7323 # `conftest.undefs', that substitutes the proper values into
7324 # config.h.in to produce config.h. The first handles `#define'
7325 # templates, and the second `#undef' templates.
7326 # And first: Protect against being on the right side of a sed subst in
7327 # config.status. Protect against being in an unquoted here document
7328 # in config.status.
7329 rm -f conftest.defines conftest.undefs
7330 # Using a here document instead of a string reduces the quoting nightmare.
7331 # Putting comments in sed scripts is not portable.
7333 # `end' is used to avoid that the second main sed command (meant for
7334 # 0-ary CPP macros) applies to n-ary macro definitions.
7335 # See the Autoconf documentation for `clear'.
7336 cat >confdef2sed.sed <<\_ACEOF
7337 s/[\\&,]/\\&/g
7338 s,[\\$`],\\&,g
7339 t clear
7340 : clear
7341 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7342 t end
7343 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7344 : end
7345 _ACEOF
7346 # If some macros were called several times there might be several times
7347 # the same #defines, which is useless. Nevertheless, we may not want to
7348 # sort them, since we want the *last* AC-DEFINE to be honored.
7349 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7350 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7351 rm -f confdef2sed.sed
7353 # This sed command replaces #undef with comments. This is necessary, for
7354 # example, in the case of _POSIX_SOURCE, which is predefined and required
7355 # on some systems where configure will not decide to define it.
7356 cat >>conftest.undefs <<\_ACEOF
7357 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7358 _ACEOF
7360 # Break up conftest.defines because some shells have a limit on the size
7361 # of here documents, and old seds have small limits too (100 cmds).
7362 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7363 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7364 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7365 echo ' :' >>$CONFIG_STATUS
7366 rm -f conftest.tail
7367 while grep . conftest.defines >/dev/null
7369 # Write a limited-size here document to $tmp/defines.sed.
7370 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7371 # Speed up: don't consider the non `#define' lines.
7372 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7373 # Work around the forget-to-reset-the-flag bug.
7374 echo 't clr' >>$CONFIG_STATUS
7375 echo ': clr' >>$CONFIG_STATUS
7376 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7377 echo 'CEOF
7378 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7379 rm -f $tmp/in
7380 mv $tmp/out $tmp/in
7381 ' >>$CONFIG_STATUS
7382 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7383 rm -f conftest.defines
7384 mv conftest.tail conftest.defines
7385 done
7386 rm -f conftest.defines
7387 echo ' fi # grep' >>$CONFIG_STATUS
7388 echo >>$CONFIG_STATUS
7390 # Break up conftest.undefs because some shells have a limit on the size
7391 # of here documents, and old seds have small limits too (100 cmds).
7392 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7393 rm -f conftest.tail
7394 while grep . conftest.undefs >/dev/null
7396 # Write a limited-size here document to $tmp/undefs.sed.
7397 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7398 # Speed up: don't consider the non `#undef'
7399 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7400 # Work around the forget-to-reset-the-flag bug.
7401 echo 't clr' >>$CONFIG_STATUS
7402 echo ': clr' >>$CONFIG_STATUS
7403 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7404 echo 'CEOF
7405 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7406 rm -f $tmp/in
7407 mv $tmp/out $tmp/in
7408 ' >>$CONFIG_STATUS
7409 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7410 rm -f conftest.undefs
7411 mv conftest.tail conftest.undefs
7412 done
7413 rm -f conftest.undefs
7415 cat >>$CONFIG_STATUS <<\_ACEOF
7416 # Let's still pretend it is `configure' which instantiates (i.e., don't
7417 # use $as_me), people would be surprised to read:
7418 # /* config.h. Generated by config.status. */
7419 if test x"$ac_file" = x-; then
7420 echo "/* Generated by configure. */" >$tmp/config.h
7421 else
7422 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7424 cat $tmp/in >>$tmp/config.h
7425 rm -f $tmp/in
7426 if test x"$ac_file" != x-; then
7427 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7428 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7429 echo "$as_me: $ac_file is unchanged" >&6;}
7430 else
7431 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7432 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7433 X"$ac_file" : 'X\(//\)[^/]' \| \
7434 X"$ac_file" : 'X\(//\)$' \| \
7435 X"$ac_file" : 'X\(/\)' \| \
7436 . : '\(.\)' 2>/dev/null ||
7437 echo X"$ac_file" |
7438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7440 /^X\(\/\/\)$/{ s//\1/; q; }
7441 /^X\(\/\).*/{ s//\1/; q; }
7442 s/.*/./; q'`
7443 { if $as_mkdir_p; then
7444 mkdir -p "$ac_dir"
7445 else
7446 as_dir="$ac_dir"
7447 as_dirs=
7448 while test ! -d "$as_dir"; do
7449 as_dirs="$as_dir $as_dirs"
7450 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7452 X"$as_dir" : 'X\(//\)[^/]' \| \
7453 X"$as_dir" : 'X\(//\)$' \| \
7454 X"$as_dir" : 'X\(/\)' \| \
7455 . : '\(.\)' 2>/dev/null ||
7456 echo X"$as_dir" |
7457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7459 /^X\(\/\/\)$/{ s//\1/; q; }
7460 /^X\(\/\).*/{ s//\1/; q; }
7461 s/.*/./; q'`
7462 done
7463 test ! -n "$as_dirs" || mkdir $as_dirs
7464 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7465 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7466 { (exit 1); exit 1; }; }; }
7468 rm -f $ac_file
7469 mv $tmp/config.h $ac_file
7471 else
7472 cat $tmp/config.h
7473 rm -f $tmp/config.h
7475 # Compute $ac_file's index in $config_headers.
7476 _am_stamp_count=1
7477 for _am_header in $config_headers :; do
7478 case $_am_header in
7479 $ac_file | $ac_file:* )
7480 break ;;
7482 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7483 esac
7484 done
7485 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7486 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7487 X$ac_file : 'X\(//\)[^/]' \| \
7488 X$ac_file : 'X\(//\)$' \| \
7489 X$ac_file : 'X\(/\)' \| \
7490 . : '\(.\)' 2>/dev/null ||
7491 echo X$ac_file |
7492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7493 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7494 /^X\(\/\/\)$/{ s//\1/; q; }
7495 /^X\(\/\).*/{ s//\1/; q; }
7496 s/.*/./; q'`/stamp-h$_am_stamp_count
7497 done
7498 _ACEOF
7499 cat >>$CONFIG_STATUS <<\_ACEOF
7502 # CONFIG_COMMANDS section.
7504 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7505 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7506 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7507 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7508 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7509 X"$ac_dest" : 'X\(//\)[^/]' \| \
7510 X"$ac_dest" : 'X\(//\)$' \| \
7511 X"$ac_dest" : 'X\(/\)' \| \
7512 . : '\(.\)' 2>/dev/null ||
7513 echo X"$ac_dest" |
7514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7516 /^X\(\/\/\)$/{ s//\1/; q; }
7517 /^X\(\/\).*/{ s//\1/; q; }
7518 s/.*/./; q'`
7519 ac_builddir=.
7521 if test "$ac_dir" != .; then
7522 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7523 # A "../" for each directory in $ac_dir_suffix.
7524 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7525 else
7526 ac_dir_suffix= ac_top_builddir=
7529 case $srcdir in
7530 .) # No --srcdir option. We are building in place.
7531 ac_srcdir=.
7532 if test -z "$ac_top_builddir"; then
7533 ac_top_srcdir=.
7534 else
7535 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7536 fi ;;
7537 [\\/]* | ?:[\\/]* ) # Absolute path.
7538 ac_srcdir=$srcdir$ac_dir_suffix;
7539 ac_top_srcdir=$srcdir ;;
7540 *) # Relative path.
7541 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7542 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7543 esac
7544 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7545 # absolute.
7546 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7547 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7548 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7549 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7552 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7553 echo "$as_me: executing $ac_dest commands" >&6;}
7554 case $ac_dest in
7555 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7556 # Strip MF so we end up with the name of the file.
7557 mf=`echo "$mf" | sed -e 's/:.*$//'`
7558 # Check whether this is an Automake generated Makefile or not.
7559 # We used to match only the files named `Makefile.in', but
7560 # some people rename them; so instead we look at the file content.
7561 # Grep'ing the first line is not enough: some people post-process
7562 # each Makefile.in and add a new line on top of each file to say so.
7563 # So let's grep whole file.
7564 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7565 dirpart=`(dirname "$mf") 2>/dev/null ||
7566 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7567 X"$mf" : 'X\(//\)[^/]' \| \
7568 X"$mf" : 'X\(//\)$' \| \
7569 X"$mf" : 'X\(/\)' \| \
7570 . : '\(.\)' 2>/dev/null ||
7571 echo X"$mf" |
7572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7574 /^X\(\/\/\)$/{ s//\1/; q; }
7575 /^X\(\/\).*/{ s//\1/; q; }
7576 s/.*/./; q'`
7577 else
7578 continue
7580 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7581 # Extract the definition of DEP_FILES from the Makefile without
7582 # running `make'.
7583 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7584 test -z "$DEPDIR" && continue
7585 # When using ansi2knr, U may be empty or an underscore; expand it
7586 U=`sed -n -e '/^U = / s///p' < "$mf"`
7587 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7588 # We invoke sed twice because it is the simplest approach to
7589 # changing $(DEPDIR) to its actual value in the expansion.
7590 for file in `sed -n -e '
7591 /^DEP_FILES = .*\\\\$/ {
7592 s/^DEP_FILES = //
7593 :loop
7594 s/\\\\$//
7597 /\\\\$/ b loop
7600 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7601 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7602 # Make sure the directory exists.
7603 test -f "$dirpart/$file" && continue
7604 fdir=`(dirname "$file") 2>/dev/null ||
7605 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7606 X"$file" : 'X\(//\)[^/]' \| \
7607 X"$file" : 'X\(//\)$' \| \
7608 X"$file" : 'X\(/\)' \| \
7609 . : '\(.\)' 2>/dev/null ||
7610 echo X"$file" |
7611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7613 /^X\(\/\/\)$/{ s//\1/; q; }
7614 /^X\(\/\).*/{ s//\1/; q; }
7615 s/.*/./; q'`
7616 { if $as_mkdir_p; then
7617 mkdir -p $dirpart/$fdir
7618 else
7619 as_dir=$dirpart/$fdir
7620 as_dirs=
7621 while test ! -d "$as_dir"; do
7622 as_dirs="$as_dir $as_dirs"
7623 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7624 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7625 X"$as_dir" : 'X\(//\)[^/]' \| \
7626 X"$as_dir" : 'X\(//\)$' \| \
7627 X"$as_dir" : 'X\(/\)' \| \
7628 . : '\(.\)' 2>/dev/null ||
7629 echo X"$as_dir" |
7630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7632 /^X\(\/\/\)$/{ s//\1/; q; }
7633 /^X\(\/\).*/{ s//\1/; q; }
7634 s/.*/./; q'`
7635 done
7636 test ! -n "$as_dirs" || mkdir $as_dirs
7637 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7638 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7639 { (exit 1); exit 1; }; }; }
7641 # echo "creating $dirpart/$file"
7642 echo '# dummy' > "$dirpart/$file"
7643 done
7644 done
7646 esac
7647 done
7648 _ACEOF
7650 cat >>$CONFIG_STATUS <<\_ACEOF
7652 { (exit 0); exit 0; }
7653 _ACEOF
7654 chmod +x $CONFIG_STATUS
7655 ac_clean_files=$ac_clean_files_save
7658 # configure is writing to config.log, and then calls config.status.
7659 # config.status does its own redirection, appending to config.log.
7660 # Unfortunately, on DOS this fails, as config.log is still kept open
7661 # by configure, so config.status won't be able to write to it; its
7662 # output is simply discarded. So we exec the FD to /dev/null,
7663 # effectively closing config.log, so it can be properly (re)opened and
7664 # appended to by config.status. When coming back to configure, we
7665 # need to make the FD available again.
7666 if test "$no_create" != yes; then
7667 ac_cs_success=:
7668 ac_config_status_args=
7669 test "$silent" = yes &&
7670 ac_config_status_args="$ac_config_status_args --quiet"
7671 exec 5>/dev/null
7672 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7673 exec 5>>config.log
7674 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7675 # would make configure fail if this is the last instruction.
7676 $ac_cs_success || { (exit 1); exit 1; }