* gcc.dg/c90-const-expr-3.c: xfail all the ASSERT_NOT_NPC tests.
[official-gcc.git] / libffi / configure
blobdf27631d32ebf7eabaf25850fcaf148ce4a6fae2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libffi 2.1.
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='libffi'
271 PACKAGE_TARNAME='libffi'
272 PACKAGE_VERSION='2.1'
273 PACKAGE_STRING='libffi 2.1'
274 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 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 multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CCAS CCASFLAGS LN_S RANLIB ac_ct_RANLIB LIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CPP CPPFLAGS EGREP TESTSUBDIR_TRUE TESTSUBDIR_FALSE AM_RUNTESTFLAGS MIPS_IRIX_TRUE MIPS_IRIX_FALSE MIPS_LINUX_TRUE MIPS_LINUX_FALSE SPARC_TRUE SPARC_FALSE X86_TRUE X86_FALSE X86_WIN32_TRUE X86_WIN32_FALSE ALPHA_TRUE ALPHA_FALSE IA64_TRUE IA64_FALSE M32R_TRUE M32R_FALSE M68K_TRUE M68K_FALSE POWERPC_TRUE POWERPC_FALSE POWERPC_AIX_TRUE POWERPC_AIX_FALSE POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE ARM_TRUE ARM_FALSE FRV_TRUE FRV_FALSE S390_TRUE S390_FALSE X86_64_TRUE X86_64_FALSE SH_TRUE SH_FALSE SH64_TRUE SH64_FALSE PA_TRUE PA_FALSE ALLOCA HAVE_LONG_DOUBLE TARGET TARGETDIR toolexecdir toolexeclibdir tool_include_dir gcc_version LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CCAS_set=${CCAS+set}
755 ac_env_CCAS_value=$CCAS
756 ac_cv_env_CCAS_set=${CCAS+set}
757 ac_cv_env_CCAS_value=$CCAS
758 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
759 ac_env_CCASFLAGS_value=$CCASFLAGS
760 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
761 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 # Report the --help message.
774 if test "$ac_init_help" = "long"; then
775 # Omit some internal or obsolete options to make the list less imposing.
776 # This message is too long to be a string in the A/UX 3.1 sh.
777 cat <<_ACEOF
778 \`configure' configures libffi 2.1 to adapt to many kinds of systems.
780 Usage: $0 [OPTION]... [VAR=VALUE]...
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE. See below for descriptions of some of the useful variables.
785 Defaults for the options are specified in brackets.
787 Configuration:
788 -h, --help display this help and exit
789 --help=short display options specific to this package
790 --help=recursive display the short help of all the included packages
791 -V, --version display version information and exit
792 -q, --quiet, --silent do not print \`checking...' messages
793 --cache-file=FILE cache test results in FILE [disabled]
794 -C, --config-cache alias for \`--cache-file=config.cache'
795 -n, --no-create do not create output files
796 --srcdir=DIR find the sources in DIR [configure dir or \`..']
798 _ACEOF
800 cat <<_ACEOF
801 Installation directories:
802 --prefix=PREFIX install architecture-independent files in PREFIX
803 [$ac_default_prefix]
804 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
805 [PREFIX]
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
812 For better control, use the options below.
814 Fine tuning of the installation directories:
815 --bindir=DIR user executables [EPREFIX/bin]
816 --sbindir=DIR system admin executables [EPREFIX/sbin]
817 --libexecdir=DIR program executables [EPREFIX/libexec]
818 --datadir=DIR read-only architecture-independent data [PREFIX/share]
819 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
820 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
821 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
822 --libdir=DIR object code libraries [EPREFIX/lib]
823 --includedir=DIR C header files [PREFIX/include]
824 --oldincludedir=DIR C header files for non-gcc [/usr/include]
825 --infodir=DIR info documentation [PREFIX/info]
826 --mandir=DIR man documentation [PREFIX/man]
827 _ACEOF
829 cat <<\_ACEOF
831 Program names:
832 --program-prefix=PREFIX prepend PREFIX to installed program names
833 --program-suffix=SUFFIX append SUFFIX to installed program names
834 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
836 System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libffi 2.1:";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-multilib build many library versions (default)
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --enable-debug debugging mode
862 --disable-structs omit code for struct support
863 --disable-raw-api make the raw api unavailable
864 --enable-purify-safety purify-safe mode
866 Optional Packages:
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-pic try to use only PIC/non-PIC objects default=use both
872 Some influential environment variables:
873 CC C compiler command
874 CFLAGS C compiler flags
875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
876 nonstandard directory <lib dir>
877 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
878 headers in a nonstandard directory <include dir>
879 CCAS assembler compiler command (defaults to CC)
880 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
881 CPP C preprocessor
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
886 Report bugs to <http://gcc.gnu.org/bugs.html>.
887 _ACEOF
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
892 ac_popdir=`pwd`
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
895 ac_builddir=.
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901 else
902 ac_dir_suffix= ac_top_builddir=
905 case $srcdir in
906 .) # No --srcdir option. We are building in place.
907 ac_srcdir=.
908 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=.
910 else
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 fi ;;
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
916 *) # Relative path.
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 esac
921 # Do not use `cd foo && pwd` to compute absolute paths, because
922 # the directories may not exist.
923 case `pwd` in
924 .) ac_abs_builddir="$ac_dir";;
926 case "$ac_dir" in
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
944 case $ac_srcdir in
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957 esac;;
958 esac
960 cd $ac_dir
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
963 echo
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
966 echo
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
970 echo
971 $ac_configure --help
972 else
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 cd $ac_popdir
976 done
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
981 cat <<\_ACEOF
982 libffi configure 2.1
983 generated by GNU Autoconf 2.59
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
988 _ACEOF
989 exit 0
991 exec 5>config.log
992 cat >&5 <<_ACEOF
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
996 It was created by libffi $as_me 2.1, which was
997 generated by GNU Autoconf 2.59. Invocation command line was
999 $ $0 $@
1001 _ACEOF
1003 cat <<_ASUNAME
1004 ## --------- ##
1005 ## Platform. ##
1006 ## --------- ##
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025 _ASUNAME
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 for as_dir in $PATH
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033 done
1035 } >&5
1037 cat >&5 <<_ACEOF
1040 ## ----------- ##
1041 ## Core tests. ##
1042 ## ----------- ##
1044 _ACEOF
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_configure_args=
1053 ac_configure_args0=
1054 ac_configure_args1=
1055 ac_sep=
1056 ac_must_keep_next=false
1057 for ac_pass in 1 2
1059 for ac_arg
1061 case $ac_arg in
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1075 else
1076 case $ac_arg in
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 esac
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1092 esac
1093 done
1094 done
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log. We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1106 echo
1108 cat <<\_ASBOX
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1112 _ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 sed -n \
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1127 esac;
1129 echo
1131 cat <<\_ASBOX
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146 ## ------------- ##
1147 ## Output files. ##
1148 ## ------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161 ## ----------- ##
1162 ## confdefs.h. ##
1163 ## ----------- ##
1164 _ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 exit $exit_status
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1187 # Predefined preprocessor variables.
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1230 done
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1243 else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 esac
1291 done
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1332 ac_config_headers="$ac_config_headers fficonfig.h"
1335 # Default to --enable-multilib
1336 # Check whether --enable-multilib or --disable-multilib was given.
1337 if test "${enable_multilib+set}" = set; then
1338 enableval="$enable_multilib"
1339 case "$enableval" in
1340 yes) multilib=yes ;;
1341 no) multilib=no ;;
1342 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1343 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1344 { (exit 1); exit 1; }; } ;;
1345 esac
1346 else
1347 multilib=yes
1350 # We may get other options which we leave undocumented:
1351 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1352 # See config-ml.in if you want the gory details.
1354 if test "$srcdir" = "."; then
1355 if test "$with_target_subdir" != "."; then
1356 multi_basedir="$srcdir/$with_multisrctop../.."
1357 else
1358 multi_basedir="$srcdir/$with_multisrctop.."
1360 else
1361 multi_basedir="$srcdir/.."
1365 ac_config_commands="$ac_config_commands default-1"
1368 ac_aux_dir=
1369 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1370 if test -f $ac_dir/install-sh; then
1371 ac_aux_dir=$ac_dir
1372 ac_install_sh="$ac_aux_dir/install-sh -c"
1373 break
1374 elif test -f $ac_dir/install.sh; then
1375 ac_aux_dir=$ac_dir
1376 ac_install_sh="$ac_aux_dir/install.sh -c"
1377 break
1378 elif test -f $ac_dir/shtool; then
1379 ac_aux_dir=$ac_dir
1380 ac_install_sh="$ac_aux_dir/shtool install -c"
1381 break
1383 done
1384 if test -z "$ac_aux_dir"; then
1385 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1386 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1387 { (exit 1); exit 1; }; }
1389 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1390 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1391 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1393 # Make sure we can run config.sub.
1394 $ac_config_sub sun4 >/dev/null 2>&1 ||
1395 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1396 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1397 { (exit 1); exit 1; }; }
1399 echo "$as_me:$LINENO: checking build system type" >&5
1400 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1401 if test "${ac_cv_build+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1403 else
1404 ac_cv_build_alias=$build_alias
1405 test -z "$ac_cv_build_alias" &&
1406 ac_cv_build_alias=`$ac_config_guess`
1407 test -z "$ac_cv_build_alias" &&
1408 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1409 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1410 { (exit 1); exit 1; }; }
1411 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1412 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1413 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1414 { (exit 1); exit 1; }; }
1417 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1418 echo "${ECHO_T}$ac_cv_build" >&6
1419 build=$ac_cv_build
1420 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1421 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1422 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425 echo "$as_me:$LINENO: checking host system type" >&5
1426 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1427 if test "${ac_cv_host+set}" = set; then
1428 echo $ECHO_N "(cached) $ECHO_C" >&6
1429 else
1430 ac_cv_host_alias=$host_alias
1431 test -z "$ac_cv_host_alias" &&
1432 ac_cv_host_alias=$ac_cv_build_alias
1433 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1434 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1435 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1436 { (exit 1); exit 1; }; }
1439 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1440 echo "${ECHO_T}$ac_cv_host" >&6
1441 host=$ac_cv_host
1442 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1443 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1444 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1447 echo "$as_me:$LINENO: checking target system type" >&5
1448 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1449 if test "${ac_cv_target+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1451 else
1452 ac_cv_target_alias=$target_alias
1453 test "x$ac_cv_target_alias" = "x" &&
1454 ac_cv_target_alias=$ac_cv_host_alias
1455 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1456 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1457 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1458 { (exit 1); exit 1; }; }
1461 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1462 echo "${ECHO_T}$ac_cv_target" >&6
1463 target=$ac_cv_target
1464 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1465 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1466 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1469 # The aliases save the names the user supplied, while $host etc.
1470 # will get canonicalized.
1471 test -n "$target_alias" &&
1472 test "$program_prefix$program_suffix$program_transform_name" = \
1473 NONENONEs,x,x, &&
1474 program_prefix=${target_alias}-
1475 target_alias=${target_alias-$host_alias}
1477 . ${srcdir}/configure.host
1479 am__api_version="1.8"
1480 # Find a good install program. We prefer a C program (faster),
1481 # so one script is as good as another. But avoid the broken or
1482 # incompatible versions:
1483 # SysV /etc/install, /usr/sbin/install
1484 # SunOS /usr/etc/install
1485 # IRIX /sbin/install
1486 # AIX /bin/install
1487 # AmigaOS /C/install, which installs bootblocks on floppy discs
1488 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1489 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1490 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1491 # OS/2's system install, which has a completely different semantic
1492 # ./install, which can be erroneously created by make from ./install.sh.
1493 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1494 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1495 if test -z "$INSTALL"; then
1496 if test "${ac_cv_path_install+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1498 else
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500 for as_dir in $PATH
1502 IFS=$as_save_IFS
1503 test -z "$as_dir" && as_dir=.
1504 # Account for people who put trailing slashes in PATH elements.
1505 case $as_dir/ in
1506 ./ | .// | /cC/* | \
1507 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1508 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1509 /usr/ucb/* ) ;;
1511 # OSF1 and SCO ODT 3.0 have their own names for install.
1512 # Don't use installbsd from OSF since it installs stuff as root
1513 # by default.
1514 for ac_prog in ginstall scoinst install; do
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1517 if test $ac_prog = install &&
1518 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1519 # AIX install. It has an incompatible calling convention.
1521 elif test $ac_prog = install &&
1522 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1523 # program-specific install script used by HP pwplus--don't use.
1525 else
1526 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1527 break 3
1530 done
1531 done
1533 esac
1534 done
1538 if test "${ac_cv_path_install+set}" = set; then
1539 INSTALL=$ac_cv_path_install
1540 else
1541 # As a last resort, use the slow shell script. We don't cache a
1542 # path for INSTALL within a source directory, because that will
1543 # break other packages using the cache if that directory is
1544 # removed, or if the path is relative.
1545 INSTALL=$ac_install_sh
1548 echo "$as_me:$LINENO: result: $INSTALL" >&5
1549 echo "${ECHO_T}$INSTALL" >&6
1551 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1552 # It thinks the first close brace ends the variable substitution.
1553 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1555 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1557 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1559 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1560 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1561 # Just in case
1562 sleep 1
1563 echo timestamp > conftest.file
1564 # Do `set' in a subshell so we don't clobber the current shell's
1565 # arguments. Must try -L first in case configure is actually a
1566 # symlink; some systems play weird games with the mod time of symlinks
1567 # (eg FreeBSD returns the mod time of the symlink's containing
1568 # directory).
1569 if (
1570 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1571 if test "$*" = "X"; then
1572 # -L didn't work.
1573 set X `ls -t $srcdir/configure conftest.file`
1575 rm -f conftest.file
1576 if test "$*" != "X $srcdir/configure conftest.file" \
1577 && test "$*" != "X conftest.file $srcdir/configure"; then
1579 # If neither matched, then we have a broken ls. This can happen
1580 # if, for instance, CONFIG_SHELL is bash and it inherits a
1581 # broken ls alias from the environment. This has actually
1582 # happened. Such a system could not be considered "sane".
1583 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1584 alias in your environment" >&5
1585 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1586 alias in your environment" >&2;}
1587 { (exit 1); exit 1; }; }
1590 test "$2" = conftest.file
1592 then
1593 # Ok.
1595 else
1596 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1597 Check your system clock" >&5
1598 echo "$as_me: error: newly created file is older than distributed files!
1599 Check your system clock" >&2;}
1600 { (exit 1); exit 1; }; }
1602 echo "$as_me:$LINENO: result: yes" >&5
1603 echo "${ECHO_T}yes" >&6
1604 test "$program_prefix" != NONE &&
1605 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1606 # Use a double $ so make ignores it.
1607 test "$program_suffix" != NONE &&
1608 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1609 # Double any \ or $. echo might interpret backslashes.
1610 # By default was `s,x,x', remove it if useless.
1611 cat <<\_ACEOF >conftest.sed
1612 s/[\\$]/&&/g;s/;s,x,x,$//
1613 _ACEOF
1614 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1615 rm conftest.sed
1617 # expand $ac_aux_dir to an absolute path
1618 am_aux_dir=`cd $ac_aux_dir && pwd`
1620 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1621 # Use eval to expand $SHELL
1622 if eval "$MISSING --run true"; then
1623 am_missing_run="$MISSING --run "
1624 else
1625 am_missing_run=
1626 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1627 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1630 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1631 # Keeping the `.' argument allows $(mkdir_p) to be used without
1632 # argument. Indeed, we sometimes output rules like
1633 # $(mkdir_p) $(somedir)
1634 # where $(somedir) is conditionally defined.
1635 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1636 # expensive solution, as it forces Make to start a sub-shell.)
1637 mkdir_p='mkdir -p -- .'
1638 else
1639 # On NextStep and OpenStep, the `mkdir' command does not
1640 # recognize any option. It will interpret all options as
1641 # directories to create, and then abort because `.' already
1642 # exists.
1643 for d in ./-p ./--version;
1645 test -d $d && rmdir $d
1646 done
1647 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1648 if test -f "$ac_aux_dir/mkinstalldirs"; then
1649 mkdir_p='$(mkinstalldirs)'
1650 else
1651 mkdir_p='$(install_sh) -d'
1655 for ac_prog in gawk mawk nawk awk
1657 # Extract the first word of "$ac_prog", so it can be a program name with args.
1658 set dummy $ac_prog; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_AWK+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664 if test -n "$AWK"; then
1665 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1666 else
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 for as_dir in $PATH
1670 IFS=$as_save_IFS
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_AWK="$ac_prog"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 break 2
1678 done
1679 done
1683 AWK=$ac_cv_prog_AWK
1684 if test -n "$AWK"; then
1685 echo "$as_me:$LINENO: result: $AWK" >&5
1686 echo "${ECHO_T}$AWK" >&6
1687 else
1688 echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1692 test -n "$AWK" && break
1693 done
1695 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1696 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1697 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1698 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701 cat >conftest.make <<\_ACEOF
1702 all:
1703 @echo 'ac_maketemp="$(MAKE)"'
1704 _ACEOF
1705 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1706 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1707 if test -n "$ac_maketemp"; then
1708 eval ac_cv_prog_make_${ac_make}_set=yes
1709 else
1710 eval ac_cv_prog_make_${ac_make}_set=no
1712 rm -f conftest.make
1714 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1715 echo "$as_me:$LINENO: result: yes" >&5
1716 echo "${ECHO_T}yes" >&6
1717 SET_MAKE=
1718 else
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 SET_MAKE="MAKE=${MAKE-make}"
1724 rm -rf .tst 2>/dev/null
1725 mkdir .tst 2>/dev/null
1726 if test -d .tst; then
1727 am__leading_dot=.
1728 else
1729 am__leading_dot=_
1731 rmdir .tst 2>/dev/null
1733 # test to see if srcdir already configured
1734 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1735 test -f $srcdir/config.status; then
1736 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1737 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1738 { (exit 1); exit 1; }; }
1741 # test whether we have cygpath
1742 if test -z "$CYGPATH_W"; then
1743 if (cygpath --version) >/dev/null 2>/dev/null; then
1744 CYGPATH_W='cygpath -w'
1745 else
1746 CYGPATH_W=echo
1751 # Define the identity of the package.
1752 PACKAGE='libffi'
1753 VERSION='2.1'
1756 cat >>confdefs.h <<_ACEOF
1757 #define PACKAGE "$PACKAGE"
1758 _ACEOF
1761 cat >>confdefs.h <<_ACEOF
1762 #define VERSION "$VERSION"
1763 _ACEOF
1765 # Some tools Automake needs.
1767 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1770 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1773 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1776 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1779 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1782 AMTAR=${AMTAR-"${am_missing_run}tar"}
1784 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1786 # Installed binaries are usually stripped using `strip' when the user
1787 # run `make install-strip'. However `strip' might not be the right
1788 # tool to use in cross-compilation environments, therefore Automake
1789 # will honor the `STRIP' environment variable to overrule this program.
1790 if test "$cross_compiling" != no; then
1791 if test -n "$ac_tool_prefix"; then
1792 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1793 set dummy ${ac_tool_prefix}strip; ac_word=$2
1794 echo "$as_me:$LINENO: checking for $ac_word" >&5
1795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1796 if test "${ac_cv_prog_STRIP+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1798 else
1799 if test -n "$STRIP"; then
1800 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1801 else
1802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803 for as_dir in $PATH
1805 IFS=$as_save_IFS
1806 test -z "$as_dir" && as_dir=.
1807 for ac_exec_ext in '' $ac_executable_extensions; do
1808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 break 2
1813 done
1814 done
1818 STRIP=$ac_cv_prog_STRIP
1819 if test -n "$STRIP"; then
1820 echo "$as_me:$LINENO: result: $STRIP" >&5
1821 echo "${ECHO_T}$STRIP" >&6
1822 else
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1828 if test -z "$ac_cv_prog_STRIP"; then
1829 ac_ct_STRIP=$STRIP
1830 # Extract the first word of "strip", so it can be a program name with args.
1831 set dummy strip; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 else
1837 if test -n "$ac_ct_STRIP"; then
1838 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1839 else
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1843 IFS=$as_save_IFS
1844 test -z "$as_dir" && as_dir=.
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 ac_cv_prog_ac_ct_STRIP="strip"
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849 break 2
1851 done
1852 done
1854 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1857 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1858 if test -n "$ac_ct_STRIP"; then
1859 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1860 echo "${ECHO_T}$ac_ct_STRIP" >&6
1861 else
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1866 STRIP=$ac_ct_STRIP
1867 else
1868 STRIP="$ac_cv_prog_STRIP"
1872 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1874 # We need awk for the "check" target. The system "awk" is bad on
1875 # some platforms.
1880 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1881 # We must force CC to /not/ be precious variables; otherwise
1882 # the wrong, non-multilib-adjusted value will be used in multilibs.
1883 # As a side effect, we have to subst CFLAGS ourselves.
1887 ac_ext=c
1888 ac_cpp='$CPP $CPPFLAGS'
1889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1892 if test -n "$ac_tool_prefix"; then
1893 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1894 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1895 echo "$as_me:$LINENO: checking for $ac_word" >&5
1896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897 if test "${ac_cv_prog_CC+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 else
1900 if test -n "$CC"; then
1901 ac_cv_prog_CC="$CC" # Let the user override the test.
1902 else
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 for ac_exec_ext in '' $ac_executable_extensions; do
1909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 break 2
1914 done
1915 done
1919 CC=$ac_cv_prog_CC
1920 if test -n "$CC"; then
1921 echo "$as_me:$LINENO: result: $CC" >&5
1922 echo "${ECHO_T}$CC" >&6
1923 else
1924 echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6
1929 if test -z "$ac_cv_prog_CC"; then
1930 ac_ct_CC=$CC
1931 # Extract the first word of "gcc", so it can be a program name with args.
1932 set dummy gcc; ac_word=$2
1933 echo "$as_me:$LINENO: checking for $ac_word" >&5
1934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1935 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 else
1938 if test -n "$ac_ct_CC"; then
1939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1940 else
1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 for as_dir in $PATH
1944 IFS=$as_save_IFS
1945 test -z "$as_dir" && as_dir=.
1946 for ac_exec_ext in '' $ac_executable_extensions; do
1947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948 ac_cv_prog_ac_ct_CC="gcc"
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 break 2
1952 done
1953 done
1957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1958 if test -n "$ac_ct_CC"; then
1959 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1960 echo "${ECHO_T}$ac_ct_CC" >&6
1961 else
1962 echo "$as_me:$LINENO: result: no" >&5
1963 echo "${ECHO_T}no" >&6
1966 CC=$ac_ct_CC
1967 else
1968 CC="$ac_cv_prog_CC"
1971 if test -z "$CC"; then
1972 if test -n "$ac_tool_prefix"; then
1973 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1974 set dummy ${ac_tool_prefix}cc; ac_word=$2
1975 echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1977 if test "${ac_cv_prog_CC+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 else
1980 if test -n "$CC"; then
1981 ac_cv_prog_CC="$CC" # Let the user override the test.
1982 else
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1986 IFS=$as_save_IFS
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990 ac_cv_prog_CC="${ac_tool_prefix}cc"
1991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 break 2
1994 done
1995 done
1999 CC=$ac_cv_prog_CC
2000 if test -n "$CC"; then
2001 echo "$as_me:$LINENO: result: $CC" >&5
2002 echo "${ECHO_T}$CC" >&6
2003 else
2004 echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6
2009 if test -z "$ac_cv_prog_CC"; then
2010 ac_ct_CC=$CC
2011 # Extract the first word of "cc", so it can be a program name with args.
2012 set dummy cc; ac_word=$2
2013 echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018 if test -n "$ac_ct_CC"; then
2019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2028 ac_cv_prog_ac_ct_CC="cc"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 break 2
2032 done
2033 done
2037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2038 if test -n "$ac_ct_CC"; then
2039 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2040 echo "${ECHO_T}$ac_ct_CC" >&6
2041 else
2042 echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6
2046 CC=$ac_ct_CC
2047 else
2048 CC="$ac_cv_prog_CC"
2052 if test -z "$CC"; then
2053 # Extract the first word of "cc", so it can be a program name with args.
2054 set dummy cc; ac_word=$2
2055 echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060 if test -n "$CC"; then
2061 ac_cv_prog_CC="$CC" # Let the user override the test.
2062 else
2063 ac_prog_rejected=no
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2067 IFS=$as_save_IFS
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2072 ac_prog_rejected=yes
2073 continue
2075 ac_cv_prog_CC="cc"
2076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 break 2
2079 done
2080 done
2082 if test $ac_prog_rejected = yes; then
2083 # We found a bogon in the path, so make sure we never use it.
2084 set dummy $ac_cv_prog_CC
2085 shift
2086 if test $# != 0; then
2087 # We chose a different compiler from the bogus one.
2088 # However, it has the same basename, so the bogon will be chosen
2089 # first if we set CC to just the basename; use the full file name.
2090 shift
2091 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2096 CC=$ac_cv_prog_CC
2097 if test -n "$CC"; then
2098 echo "$as_me:$LINENO: result: $CC" >&5
2099 echo "${ECHO_T}$CC" >&6
2100 else
2101 echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6
2106 if test -z "$CC"; then
2107 if test -n "$ac_tool_prefix"; then
2108 for ac_prog in cl
2110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2112 echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2114 if test "${ac_cv_prog_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2131 done
2132 done
2136 CC=$ac_cv_prog_CC
2137 if test -n "$CC"; then
2138 echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6
2140 else
2141 echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6
2145 test -n "$CC" && break
2146 done
2148 if test -z "$CC"; then
2149 ac_ct_CC=$CC
2150 for ac_prog in cl
2152 # Extract the first word of "$ac_prog", so it can be a program name with args.
2153 set dummy $ac_prog; ac_word=$2
2154 echo "$as_me:$LINENO: checking for $ac_word" >&5
2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159 if test -n "$ac_ct_CC"; then
2160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2161 else
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH
2165 IFS=$as_save_IFS
2166 test -z "$as_dir" && as_dir=.
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2169 ac_cv_prog_ac_ct_CC="$ac_prog"
2170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171 break 2
2173 done
2174 done
2178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2179 if test -n "$ac_ct_CC"; then
2180 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2181 echo "${ECHO_T}$ac_ct_CC" >&6
2182 else
2183 echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6
2187 test -n "$ac_ct_CC" && break
2188 done
2190 CC=$ac_ct_CC
2196 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: no acceptable C compiler found in \$PATH
2199 See \`config.log' for more details." >&2;}
2200 { (exit 1); exit 1; }; }
2202 # Provide some information about the compiler.
2203 echo "$as_me:$LINENO:" \
2204 "checking for C compiler version" >&5
2205 ac_compiler=`set X $ac_compile; echo $2`
2206 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2207 (eval $ac_compiler --version </dev/null >&5) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }
2211 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2212 (eval $ac_compiler -v </dev/null >&5) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }
2216 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2217 (eval $ac_compiler -V </dev/null >&5) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }
2222 cat >conftest.$ac_ext <<_ACEOF
2223 /* confdefs.h. */
2224 _ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2230 main ()
2234 return 0;
2236 _ACEOF
2237 ac_clean_files_save=$ac_clean_files
2238 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2239 # Try to create an executable without -o first, disregard a.out.
2240 # It will help us diagnose broken compilers, and finding out an intuition
2241 # of exeext.
2242 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2243 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2244 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2245 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2246 (eval $ac_link_default) 2>&5
2247 ac_status=$?
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; then
2250 # Find the output, starting from the most likely. This scheme is
2251 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2252 # resort.
2254 # Be careful to initialize this variable, since it used to be cached.
2255 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2256 ac_cv_exeext=
2257 # b.out is created by i960 compilers.
2258 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2260 test -f "$ac_file" || continue
2261 case $ac_file in
2262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2264 conftest.$ac_ext )
2265 # This is the source file.
2267 [ab].out )
2268 # We found the default executable, but exeext='' is most
2269 # certainly right.
2270 break;;
2271 *.* )
2272 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273 # FIXME: I believe we export ac_cv_exeext for Libtool,
2274 # but it would be cool to find out if it's true. Does anybody
2275 # maintain Libtool? --akim.
2276 export ac_cv_exeext
2277 break;;
2279 break;;
2280 esac
2281 done
2282 else
2283 echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2286 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: C compiler cannot create executables
2289 See \`config.log' for more details." >&2;}
2290 { (exit 77); exit 77; }; }
2293 ac_exeext=$ac_cv_exeext
2294 echo "$as_me:$LINENO: result: $ac_file" >&5
2295 echo "${ECHO_T}$ac_file" >&6
2297 # Check the compiler produces executables we can run. If not, either
2298 # the compiler is broken, or we cross compile.
2299 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2300 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2301 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2302 # If not cross compiling, check that we can run a simple program.
2303 if test "$cross_compiling" != yes; then
2304 if { ac_try='./$ac_file'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 (eval $ac_try) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2310 cross_compiling=no
2311 else
2312 if test "$cross_compiling" = maybe; then
2313 cross_compiling=yes
2314 else
2315 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2316 If you meant to cross compile, use \`--host'.
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: cannot run C compiled programs.
2319 If you meant to cross compile, use \`--host'.
2320 See \`config.log' for more details." >&2;}
2321 { (exit 1); exit 1; }; }
2325 echo "$as_me:$LINENO: result: yes" >&5
2326 echo "${ECHO_T}yes" >&6
2328 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2329 ac_clean_files=$ac_clean_files_save
2330 # Check the compiler produces executables we can run. If not, either
2331 # the compiler is broken, or we cross compile.
2332 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2333 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2334 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2335 echo "${ECHO_T}$cross_compiling" >&6
2337 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2338 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2340 (eval $ac_link) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; then
2344 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2345 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2346 # work properly (i.e., refer to `conftest.exe'), while it won't with
2347 # `rm'.
2348 for ac_file in conftest.exe conftest conftest.*; do
2349 test -f "$ac_file" || continue
2350 case $ac_file in
2351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2352 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2353 export ac_cv_exeext
2354 break;;
2355 * ) break;;
2356 esac
2357 done
2358 else
2359 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2362 See \`config.log' for more details." >&2;}
2363 { (exit 1); exit 1; }; }
2366 rm -f conftest$ac_cv_exeext
2367 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2368 echo "${ECHO_T}$ac_cv_exeext" >&6
2370 rm -f conftest.$ac_ext
2371 EXEEXT=$ac_cv_exeext
2372 ac_exeext=$EXEEXT
2373 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2374 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2375 if test "${ac_cv_objext+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378 cat >conftest.$ac_ext <<_ACEOF
2379 /* confdefs.h. */
2380 _ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h. */
2386 main ()
2390 return 0;
2392 _ACEOF
2393 rm -f conftest.o conftest.obj
2394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395 (eval $ac_compile) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; then
2399 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2400 case $ac_file in
2401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2402 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2403 break;;
2404 esac
2405 done
2406 else
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2410 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2411 See \`config.log' for more details." >&5
2412 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2413 See \`config.log' for more details." >&2;}
2414 { (exit 1); exit 1; }; }
2417 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2419 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2420 echo "${ECHO_T}$ac_cv_objext" >&6
2421 OBJEXT=$ac_cv_objext
2422 ac_objext=$OBJEXT
2423 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2424 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2425 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428 cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h. */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2436 main ()
2438 #ifndef __GNUC__
2439 choke me
2440 #endif
2443 return 0;
2445 _ACEOF
2446 rm -f conftest.$ac_objext
2447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448 (eval $ac_compile) 2>conftest.er1
2449 ac_status=$?
2450 grep -v '^ *+' conftest.er1 >conftest.err
2451 rm -f conftest.er1
2452 cat conftest.err >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } &&
2455 { ac_try='test -z "$ac_c_werror_flag"
2456 || test ! -s conftest.err'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2468 ac_compiler_gnu=yes
2469 else
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2473 ac_compiler_gnu=no
2475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2476 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2479 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2480 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2481 GCC=`test $ac_compiler_gnu = yes && echo yes`
2482 ac_test_CFLAGS=${CFLAGS+set}
2483 ac_save_CFLAGS=$CFLAGS
2484 CFLAGS="-g"
2485 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2486 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2487 if test "${ac_cv_prog_cc_g+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490 cat >conftest.$ac_ext <<_ACEOF
2491 /* confdefs.h. */
2492 _ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h. */
2498 main ()
2502 return 0;
2504 _ACEOF
2505 rm -f conftest.$ac_objext
2506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2507 (eval $ac_compile) 2>conftest.er1
2508 ac_status=$?
2509 grep -v '^ *+' conftest.er1 >conftest.err
2510 rm -f conftest.er1
2511 cat conftest.err >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); } &&
2514 { ac_try='test -z "$ac_c_werror_flag"
2515 || test ! -s conftest.err'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; } &&
2521 { ac_try='test -s conftest.$ac_objext'
2522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523 (eval $ac_try) 2>&5
2524 ac_status=$?
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; }; then
2527 ac_cv_prog_cc_g=yes
2528 else
2529 echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2532 ac_cv_prog_cc_g=no
2534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2536 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2537 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2538 if test "$ac_test_CFLAGS" = set; then
2539 CFLAGS=$ac_save_CFLAGS
2540 elif test $ac_cv_prog_cc_g = yes; then
2541 if test "$GCC" = yes; then
2542 CFLAGS="-g -O2"
2543 else
2544 CFLAGS="-g"
2546 else
2547 if test "$GCC" = yes; then
2548 CFLAGS="-O2"
2549 else
2550 CFLAGS=
2553 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2554 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2555 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558 ac_cv_prog_cc_stdc=no
2559 ac_save_CC=$CC
2560 cat >conftest.$ac_ext <<_ACEOF
2561 /* confdefs.h. */
2562 _ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h. */
2566 #include <stdarg.h>
2567 #include <stdio.h>
2568 #include <sys/types.h>
2569 #include <sys/stat.h>
2570 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2571 struct buf { int x; };
2572 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2573 static char *e (p, i)
2574 char **p;
2575 int i;
2577 return p[i];
2579 static char *f (char * (*g) (char **, int), char **p, ...)
2581 char *s;
2582 va_list v;
2583 va_start (v,p);
2584 s = g (p, va_arg (v,int));
2585 va_end (v);
2586 return s;
2589 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2590 function prototypes and stuff, but not '\xHH' hex character constants.
2591 These don't provoke an error unfortunately, instead are silently treated
2592 as 'x'. The following induces an error, until -std1 is added to get
2593 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2594 array size at least. It's necessary to write '\x00'==0 to get something
2595 that's true only with -std1. */
2596 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2598 int test (int i, double x);
2599 struct s1 {int (*f) (int a);};
2600 struct s2 {int (*f) (double a);};
2601 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2602 int argc;
2603 char **argv;
2605 main ()
2607 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2609 return 0;
2611 _ACEOF
2612 # Don't try gcc -ansi; that turns off useful extensions and
2613 # breaks some systems' header files.
2614 # AIX -qlanglvl=ansi
2615 # Ultrix and OSF/1 -std1
2616 # HP-UX 10.20 and later -Ae
2617 # HP-UX older versions -Aa -D_HPUX_SOURCE
2618 # SVR4 -Xc -D__EXTENSIONS__
2619 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2621 CC="$ac_save_CC $ac_arg"
2622 rm -f conftest.$ac_objext
2623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624 (eval $ac_compile) 2>conftest.er1
2625 ac_status=$?
2626 grep -v '^ *+' conftest.er1 >conftest.err
2627 rm -f conftest.er1
2628 cat conftest.err >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } &&
2631 { ac_try='test -z "$ac_c_werror_flag"
2632 || test ! -s conftest.err'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; } &&
2638 { ac_try='test -s conftest.$ac_objext'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2644 ac_cv_prog_cc_stdc=$ac_arg
2645 break
2646 else
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2651 rm -f conftest.err conftest.$ac_objext
2652 done
2653 rm -f conftest.$ac_ext conftest.$ac_objext
2654 CC=$ac_save_CC
2658 case "x$ac_cv_prog_cc_stdc" in
2659 x|xno)
2660 echo "$as_me:$LINENO: result: none needed" >&5
2661 echo "${ECHO_T}none needed" >&6 ;;
2663 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2664 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2665 CC="$CC $ac_cv_prog_cc_stdc" ;;
2666 esac
2668 # Some people use a C++ compiler to compile C. Since we use `exit',
2669 # in C++ we need to declare it. In case someone uses the same compiler
2670 # for both compiling C and C++ we need to have the C++ compiler decide
2671 # the declaration of exit, since it's the most demanding environment.
2672 cat >conftest.$ac_ext <<_ACEOF
2673 #ifndef __cplusplus
2674 choke me
2675 #endif
2676 _ACEOF
2677 rm -f conftest.$ac_objext
2678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679 (eval $ac_compile) 2>conftest.er1
2680 ac_status=$?
2681 grep -v '^ *+' conftest.er1 >conftest.err
2682 rm -f conftest.er1
2683 cat conftest.err >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } &&
2686 { ac_try='test -z "$ac_c_werror_flag"
2687 || test ! -s conftest.err'
2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 (eval $ac_try) 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; } &&
2693 { ac_try='test -s conftest.$ac_objext'
2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 (eval $ac_try) 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; }; then
2699 for ac_declaration in \
2700 '' \
2701 'extern "C" void std::exit (int) throw (); using std::exit;' \
2702 'extern "C" void std::exit (int); using std::exit;' \
2703 'extern "C" void exit (int) throw ();' \
2704 'extern "C" void exit (int);' \
2705 'void exit (int);'
2707 cat >conftest.$ac_ext <<_ACEOF
2708 /* confdefs.h. */
2709 _ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h. */
2713 $ac_declaration
2714 #include <stdlib.h>
2716 main ()
2718 exit (42);
2720 return 0;
2722 _ACEOF
2723 rm -f conftest.$ac_objext
2724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2725 (eval $ac_compile) 2>conftest.er1
2726 ac_status=$?
2727 grep -v '^ *+' conftest.er1 >conftest.err
2728 rm -f conftest.er1
2729 cat conftest.err >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } &&
2732 { ac_try='test -z "$ac_c_werror_flag"
2733 || test ! -s conftest.err'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 (eval $ac_try) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; } &&
2739 { ac_try='test -s conftest.$ac_objext'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 (eval $ac_try) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; }; then
2746 else
2747 echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2750 continue
2752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h. */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2759 $ac_declaration
2761 main ()
2763 exit (42);
2765 return 0;
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2771 ac_status=$?
2772 grep -v '^ *+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -z "$ac_c_werror_flag"
2778 || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2790 break
2791 else
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2797 done
2798 rm -f conftest*
2799 if test -n "$ac_declaration"; then
2800 echo '#ifdef __cplusplus' >>confdefs.h
2801 echo $ac_declaration >>confdefs.h
2802 echo '#endif' >>confdefs.h
2805 else
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811 ac_ext=c
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816 DEPDIR="${am__leading_dot}deps"
2818 ac_config_commands="$ac_config_commands depfiles"
2821 am_make=${MAKE-make}
2822 cat > confinc << 'END'
2823 am__doit:
2824 @echo done
2825 .PHONY: am__doit
2827 # If we don't find an include directive, just comment out the code.
2828 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2829 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2830 am__include="#"
2831 am__quote=
2832 _am_result=none
2833 # First try GNU make style include.
2834 echo "include confinc" > confmf
2835 # We grep out `Entering directory' and `Leaving directory'
2836 # messages which can occur if `w' ends up in MAKEFLAGS.
2837 # In particular we don't look at `^make:' because GNU make might
2838 # be invoked under some other name (usually "gmake"), in which
2839 # case it prints its new name instead of `make'.
2840 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2841 am__include=include
2842 am__quote=
2843 _am_result=GNU
2845 # Now try BSD make style include.
2846 if test "$am__include" = "#"; then
2847 echo '.include "confinc"' > confmf
2848 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2849 am__include=.include
2850 am__quote="\""
2851 _am_result=BSD
2856 echo "$as_me:$LINENO: result: $_am_result" >&5
2857 echo "${ECHO_T}$_am_result" >&6
2858 rm -f confinc confmf
2860 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2861 if test "${enable_dependency_tracking+set}" = set; then
2862 enableval="$enable_dependency_tracking"
2865 if test "x$enable_dependency_tracking" != xno; then
2866 am_depcomp="$ac_aux_dir/depcomp"
2867 AMDEPBACKSLASH='\'
2871 if test "x$enable_dependency_tracking" != xno; then
2872 AMDEP_TRUE=
2873 AMDEP_FALSE='#'
2874 else
2875 AMDEP_TRUE='#'
2876 AMDEP_FALSE=
2882 depcc="$CC" am_compiler_list=
2884 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2885 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2886 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2890 # We make a subdir and do the tests there. Otherwise we can end up
2891 # making bogus files that we don't know about and never remove. For
2892 # instance it was reported that on HP-UX the gcc test will end up
2893 # making a dummy file named `D' -- because `-MD' means `put the output
2894 # in D'.
2895 mkdir conftest.dir
2896 # Copy depcomp to subdir because otherwise we won't find it if we're
2897 # using a relative directory.
2898 cp "$am_depcomp" conftest.dir
2899 cd conftest.dir
2900 # We will build objects and dependencies in a subdirectory because
2901 # it helps to detect inapplicable dependency modes. For instance
2902 # both Tru64's cc and ICC support -MD to output dependencies as a
2903 # side effect of compilation, but ICC will put the dependencies in
2904 # the current directory while Tru64 will put them in the object
2905 # directory.
2906 mkdir sub
2908 am_cv_CC_dependencies_compiler_type=none
2909 if test "$am_compiler_list" = ""; then
2910 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2912 for depmode in $am_compiler_list; do
2913 # Setup a source with many dependencies, because some compilers
2914 # like to wrap large dependency lists on column 80 (with \), and
2915 # we should not choose a depcomp mode which is confused by this.
2917 # We need to recreate these files for each test, as the compiler may
2918 # overwrite some of them when testing with obscure command lines.
2919 # This happens at least with the AIX C compiler.
2920 : > sub/conftest.c
2921 for i in 1 2 3 4 5 6; do
2922 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2923 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2924 # Solaris 8's {/usr,}/bin/sh.
2925 touch sub/conftst$i.h
2926 done
2927 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2929 case $depmode in
2930 nosideeffect)
2931 # after this tag, mechanisms are not by side-effect, so they'll
2932 # only be used when explicitly requested
2933 if test "x$enable_dependency_tracking" = xyes; then
2934 continue
2935 else
2936 break
2939 none) break ;;
2940 esac
2941 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2942 # mode. It turns out that the SunPro C++ compiler does not properly
2943 # handle `-M -o', and we need to detect this.
2944 if depmode=$depmode \
2945 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2946 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2947 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2948 >/dev/null 2>conftest.err &&
2949 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2950 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2951 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2952 # icc doesn't choke on unknown options, it will just issue warnings
2953 # (even with -Werror). So we grep stderr for any message
2954 # that says an option was ignored.
2955 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2956 am_cv_CC_dependencies_compiler_type=$depmode
2957 break
2960 done
2962 cd ..
2963 rm -rf conftest.dir
2964 else
2965 am_cv_CC_dependencies_compiler_type=none
2969 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2970 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2971 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2976 test "x$enable_dependency_tracking" != xno \
2977 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2978 am__fastdepCC_TRUE=
2979 am__fastdepCC_FALSE='#'
2980 else
2981 am__fastdepCC_TRUE='#'
2982 am__fastdepCC_FALSE=
2990 # By default we simply use the C compiler to build assembly code.
2992 test "${CCAS+set}" = set || CCAS=$CC
2993 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2997 if test "x$CC" != xcc; then
2998 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2999 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3000 else
3001 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3002 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3004 set dummy $CC; ac_cc=`echo $2 |
3005 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3006 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009 cat >conftest.$ac_ext <<_ACEOF
3010 /* confdefs.h. */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3017 main ()
3021 return 0;
3023 _ACEOF
3024 # Make sure it works both with $CC and with simple cc.
3025 # We do the test twice because some compilers refuse to overwrite an
3026 # existing .o file with -o, though they will create one.
3027 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3028 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } &&
3033 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 (eval $ac_try) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); };
3038 then
3039 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3040 if test "x$CC" != xcc; then
3041 # Test first that cc exists at all.
3042 if { ac_try='cc -c conftest.$ac_ext >&5'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044 (eval $ac_try) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3049 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 (eval $ac_try) 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } &&
3054 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 (eval $ac_try) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); };
3059 then
3060 # cc works too.
3062 else
3063 # cc exists but doesn't like -o.
3064 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3068 else
3069 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3071 rm -f conftest*
3074 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3075 echo "$as_me:$LINENO: result: yes" >&5
3076 echo "${ECHO_T}yes" >&6
3077 else
3078 echo "$as_me:$LINENO: result: no" >&5
3079 echo "${ECHO_T}no" >&6
3081 cat >>confdefs.h <<\_ACEOF
3082 #define NO_MINUS_C_MINUS_O 1
3083 _ACEOF
3087 # FIXME: we rely on the cache variable name because
3088 # there is no other way.
3089 set dummy $CC
3090 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3091 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3092 # Losing compiler, so override with the script.
3093 # FIXME: It is wrong to rewrite CC.
3094 # But if we don't then we get into trouble of one sort or another.
3095 # A longer-term fix would be to have automake use am__CC in this case,
3096 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3097 CC="$am_aux_dir/compile $CC"
3100 # Check whether --enable-shared or --disable-shared was given.
3101 if test "${enable_shared+set}" = set; then
3102 enableval="$enable_shared"
3103 p=${PACKAGE-default}
3104 case $enableval in
3105 yes) enable_shared=yes ;;
3106 no) enable_shared=no ;;
3108 enable_shared=no
3109 # Look at the argument we got. We use all the common list separators.
3110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3111 for pkg in $enableval; do
3112 if test "X$pkg" = "X$p"; then
3113 enable_shared=yes
3115 done
3116 IFS="$ac_save_ifs"
3118 esac
3119 else
3120 enable_shared=yes
3122 # Check whether --enable-static or --disable-static was given.
3123 if test "${enable_static+set}" = set; then
3124 enableval="$enable_static"
3125 p=${PACKAGE-default}
3126 case $enableval in
3127 yes) enable_static=yes ;;
3128 no) enable_static=no ;;
3130 enable_static=no
3131 # Look at the argument we got. We use all the common list separators.
3132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3133 for pkg in $enableval; do
3134 if test "X$pkg" = "X$p"; then
3135 enable_static=yes
3137 done
3138 IFS="$ac_save_ifs"
3140 esac
3141 else
3142 enable_static=yes
3144 # Check whether --enable-fast-install or --disable-fast-install was given.
3145 if test "${enable_fast_install+set}" = set; then
3146 enableval="$enable_fast_install"
3147 p=${PACKAGE-default}
3148 case $enableval in
3149 yes) enable_fast_install=yes ;;
3150 no) enable_fast_install=no ;;
3152 enable_fast_install=no
3153 # Look at the argument we got. We use all the common list separators.
3154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3155 for pkg in $enableval; do
3156 if test "X$pkg" = "X$p"; then
3157 enable_fast_install=yes
3159 done
3160 IFS="$ac_save_ifs"
3162 esac
3163 else
3164 enable_fast_install=yes
3167 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3168 if test "${with_gnu_ld+set}" = set; then
3169 withval="$with_gnu_ld"
3170 test "$withval" = no || with_gnu_ld=yes
3171 else
3172 with_gnu_ld=no
3174 ac_prog=ld
3175 if test "$GCC" = yes; then
3176 # Check if gcc -print-prog-name=ld gives a path.
3177 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3178 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3179 case $host in
3180 *-*-mingw*)
3181 # gcc leaves a trailing carriage return which upsets mingw
3182 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3184 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3185 esac
3186 case $ac_prog in
3187 # Accept absolute paths.
3188 [\\/]* | [A-Za-z]:[\\/]*)
3189 re_direlt='/[^/][^/]*/\.\./'
3190 # Canonicalize the path of ld
3191 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3192 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3193 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3194 done
3195 test -z "$LD" && LD="$ac_prog"
3198 # If it fails, then pretend we aren't using GCC.
3199 ac_prog=ld
3202 # If it is relative, then search for the first ld in PATH.
3203 with_gnu_ld=unknown
3205 esac
3206 elif test "$with_gnu_ld" = yes; then
3207 echo "$as_me:$LINENO: checking for GNU ld" >&5
3208 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3209 else
3210 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3211 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3213 if test "${lt_cv_path_LD+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216 if test -z "$LD"; then
3217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3218 for ac_dir in $PATH; do
3219 test -z "$ac_dir" && ac_dir=.
3220 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3221 lt_cv_path_LD="$ac_dir/$ac_prog"
3222 # Check to see if the program is GNU ld. I'd rather use --version,
3223 # but apparently some GNU ld's only accept -v.
3224 # Break only if it was the GNU/non-GNU ld that we prefer.
3225 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3226 test "$with_gnu_ld" != no && break
3227 else
3228 test "$with_gnu_ld" != yes && break
3231 done
3232 IFS="$ac_save_ifs"
3233 else
3234 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3238 LD="$lt_cv_path_LD"
3239 if test -n "$LD"; then
3240 echo "$as_me:$LINENO: result: $LD" >&5
3241 echo "${ECHO_T}$LD" >&6
3242 else
3243 echo "$as_me:$LINENO: result: no" >&5
3244 echo "${ECHO_T}no" >&6
3246 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3247 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3248 { (exit 1); exit 1; }; }
3249 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3250 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3251 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3255 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3256 lt_cv_prog_gnu_ld=yes
3257 else
3258 lt_cv_prog_gnu_ld=no
3261 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3262 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3263 with_gnu_ld=$lt_cv_prog_gnu_ld
3266 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3267 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3268 if test "${lt_cv_ld_reload_flag+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271 lt_cv_ld_reload_flag='-r'
3273 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3274 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3275 reload_flag=$lt_cv_ld_reload_flag
3276 test -n "$reload_flag" && reload_flag=" $reload_flag"
3278 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3279 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3280 if test "${lt_cv_path_NM+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 if test -n "$NM"; then
3284 # Let the user override the test.
3285 lt_cv_path_NM="$NM"
3286 else
3287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3288 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3289 test -z "$ac_dir" && ac_dir=.
3290 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3291 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3292 # Check to see if the nm accepts a BSD-compat flag.
3293 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3294 # nm: unknown option "B" ignored
3295 # Tru64's nm complains that /dev/null is an invalid object file
3296 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3297 lt_cv_path_NM="$tmp_nm -B"
3298 break
3299 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3300 lt_cv_path_NM="$tmp_nm -p"
3301 break
3302 else
3303 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3304 continue # so that we can try to find one that supports BSD flags
3307 done
3308 IFS="$ac_save_ifs"
3309 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3313 NM="$lt_cv_path_NM"
3314 echo "$as_me:$LINENO: result: $NM" >&5
3315 echo "${ECHO_T}$NM" >&6
3317 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3318 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3319 LN_S=$as_ln_s
3320 if test "$LN_S" = "ln -s"; then
3321 echo "$as_me:$LINENO: result: yes" >&5
3322 echo "${ECHO_T}yes" >&6
3323 else
3324 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3325 echo "${ECHO_T}no, using $LN_S" >&6
3328 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3329 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3330 if test "${lt_cv_deplibs_check_method+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333 lt_cv_file_magic_cmd='$MAGIC_CMD'
3334 lt_cv_file_magic_test_file=
3335 lt_cv_deplibs_check_method='unknown'
3336 # Need to set the preceding variable on all platforms that support
3337 # interlibrary dependencies.
3338 # 'none' -- dependencies not supported.
3339 # `unknown' -- same as none, but documents that we really don't know.
3340 # 'pass_all' -- all dependencies passed with no checks.
3341 # 'test_compile' -- check by making test program.
3342 # 'file_magic [regex]' -- check by looking for files in library path
3343 # which responds to the $file_magic_cmd with a given egrep regex.
3344 # If you have `file' or equivalent on your system and you're not sure
3345 # whether `pass_all' will *always* work, you probably want this one.
3347 case $host_os in
3348 aix*)
3349 lt_cv_deplibs_check_method=pass_all
3352 beos*)
3353 lt_cv_deplibs_check_method=pass_all
3356 bsdi4*)
3357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3358 lt_cv_file_magic_cmd='/usr/bin/file -L'
3359 lt_cv_file_magic_test_file=/shlib/libc.so
3362 cygwin* | mingw* |pw32*)
3363 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3364 lt_cv_file_magic_cmd='$OBJDUMP -f'
3367 darwin* | rhapsody*)
3368 # this will be overwritten by pass_all, but leave it in just in case
3369 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3370 lt_cv_file_magic_cmd='/usr/bin/file -L'
3371 case "$host_os" in
3372 rhapsody* | darwin1.012)
3373 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3375 *) # Darwin 1.3 on
3376 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3378 esac
3379 lt_cv_deplibs_check_method=pass_all
3382 freebsd* | kfreebsd*-gnu)
3383 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3384 case $host_cpu in
3385 i*86 )
3386 # Not sure whether the presence of OpenBSD here was a mistake.
3387 # Let's accept both of them until this is cleared up.
3388 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3389 lt_cv_file_magic_cmd=/usr/bin/file
3390 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3392 esac
3393 else
3394 lt_cv_deplibs_check_method=pass_all
3398 gnu*)
3399 lt_cv_deplibs_check_method=pass_all
3402 hpux10.20*|hpux11*)
3403 case $host_cpu in
3404 hppa*)
3405 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3406 lt_cv_file_magic_cmd=/usr/bin/file
3407 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3409 ia64*)
3410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3411 lt_cv_file_magic_cmd=/usr/bin/file
3412 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3414 esac
3417 irix5* | irix6*)
3418 case $host_os in
3419 irix5*)
3420 # this will be overridden with pass_all, but let us keep it just in case
3421 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3424 case $LD in
3425 *-32|*"-32 ") libmagic=32-bit;;
3426 *-n32|*"-n32 ") libmagic=N32;;
3427 *-64|*"-64 ") libmagic=64-bit;;
3428 *) libmagic=never-match;;
3429 esac
3430 # this will be overridden with pass_all, but let us keep it just in case
3431 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3433 esac
3434 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3435 lt_cv_deplibs_check_method=pass_all
3438 # This must be Linux ELF.
3439 linux-gnu*)
3440 case $host_cpu in
3441 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
3442 lt_cv_deplibs_check_method=pass_all ;;
3444 # glibc up to 2.1.1 does not perform some relocations on ARM
3445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3446 esac
3447 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3450 netbsd* | knetbsd*-gnu)
3451 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3452 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3453 else
3454 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3458 newsos6)
3459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3460 lt_cv_file_magic_cmd=/usr/bin/file
3461 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3464 osf3* | osf4* | osf5*)
3465 # this will be overridden with pass_all, but let us keep it just in case
3466 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3467 lt_cv_file_magic_test_file=/shlib/libc.so
3468 lt_cv_deplibs_check_method=pass_all
3471 sco3.2v5*)
3472 lt_cv_deplibs_check_method=pass_all
3475 solaris*)
3476 lt_cv_deplibs_check_method=pass_all
3477 lt_cv_file_magic_test_file=/lib/libc.so
3480 sysv5uw[78]* | sysv4*uw2*)
3481 lt_cv_deplibs_check_method=pass_all
3484 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3485 case $host_vendor in
3486 ncr)
3487 lt_cv_deplibs_check_method=pass_all
3489 motorola)
3490 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]'
3491 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3493 esac
3495 esac
3498 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3499 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3500 file_magic_cmd=$lt_cv_file_magic_cmd
3501 deplibs_check_method=$lt_cv_deplibs_check_method
3507 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3509 # Only perform the check for file, if the check method requires it
3510 case $deplibs_check_method in
3511 file_magic*)
3512 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3513 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3514 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3515 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518 case $MAGIC_CMD in
3520 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3522 ?:/*)
3523 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3526 ac_save_MAGIC_CMD="$MAGIC_CMD"
3527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3528 ac_dummy="/usr/bin:$PATH"
3529 for ac_dir in $ac_dummy; do
3530 test -z "$ac_dir" && ac_dir=.
3531 if test -f $ac_dir/${ac_tool_prefix}file; then
3532 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3533 if test -n "$file_magic_test_file"; then
3534 case $deplibs_check_method in
3535 "file_magic "*)
3536 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3538 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3539 egrep "$file_magic_regex" > /dev/null; then
3541 else
3542 cat <<EOF 1>&2
3544 *** Warning: the command libtool uses to detect shared libraries,
3545 *** $file_magic_cmd, produces output that libtool cannot recognize.
3546 *** The result is that libtool may fail to recognize shared libraries
3547 *** as such. This will affect the creation of libtool libraries that
3548 *** depend on shared libraries, but programs linked with such libtool
3549 *** libraries will work regardless of this problem. Nevertheless, you
3550 *** may want to report the problem to your system manager and/or to
3551 *** bug-libtool@gnu.org
3554 fi ;;
3555 esac
3557 break
3559 done
3560 IFS="$ac_save_ifs"
3561 MAGIC_CMD="$ac_save_MAGIC_CMD"
3563 esac
3566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3567 if test -n "$MAGIC_CMD"; then
3568 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3569 echo "${ECHO_T}$MAGIC_CMD" >&6
3570 else
3571 echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3575 if test -z "$lt_cv_path_MAGIC_CMD"; then
3576 if test -n "$ac_tool_prefix"; then
3577 echo "$as_me:$LINENO: checking for file" >&5
3578 echo $ECHO_N "checking for file... $ECHO_C" >&6
3579 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582 case $MAGIC_CMD in
3584 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3586 ?:/*)
3587 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3590 ac_save_MAGIC_CMD="$MAGIC_CMD"
3591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3592 ac_dummy="/usr/bin:$PATH"
3593 for ac_dir in $ac_dummy; do
3594 test -z "$ac_dir" && ac_dir=.
3595 if test -f $ac_dir/file; then
3596 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3597 if test -n "$file_magic_test_file"; then
3598 case $deplibs_check_method in
3599 "file_magic "*)
3600 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3602 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3603 egrep "$file_magic_regex" > /dev/null; then
3605 else
3606 cat <<EOF 1>&2
3608 *** Warning: the command libtool uses to detect shared libraries,
3609 *** $file_magic_cmd, produces output that libtool cannot recognize.
3610 *** The result is that libtool may fail to recognize shared libraries
3611 *** as such. This will affect the creation of libtool libraries that
3612 *** depend on shared libraries, but programs linked with such libtool
3613 *** libraries will work regardless of this problem. Nevertheless, you
3614 *** may want to report the problem to your system manager and/or to
3615 *** bug-libtool@gnu.org
3618 fi ;;
3619 esac
3621 break
3623 done
3624 IFS="$ac_save_ifs"
3625 MAGIC_CMD="$ac_save_MAGIC_CMD"
3627 esac
3630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3631 if test -n "$MAGIC_CMD"; then
3632 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3633 echo "${ECHO_T}$MAGIC_CMD" >&6
3634 else
3635 echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6
3639 else
3640 MAGIC_CMD=:
3646 esac
3648 if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3650 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_prog_RANLIB+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656 if test -n "$RANLIB"; then
3657 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3670 done
3671 done
3675 RANLIB=$ac_cv_prog_RANLIB
3676 if test -n "$RANLIB"; then
3677 echo "$as_me:$LINENO: result: $RANLIB" >&5
3678 echo "${ECHO_T}$RANLIB" >&6
3679 else
3680 echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6
3685 if test -z "$ac_cv_prog_RANLIB"; then
3686 ac_ct_RANLIB=$RANLIB
3687 # Extract the first word of "ranlib", so it can be a program name with args.
3688 set dummy ranlib; ac_word=$2
3689 echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3691 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694 if test -n "$ac_ct_RANLIB"; then
3695 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_ac_ct_RANLIB="ranlib"
3705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3708 done
3709 done
3711 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3714 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3715 if test -n "$ac_ct_RANLIB"; then
3716 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3717 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3718 else
3719 echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6
3723 RANLIB=$ac_ct_RANLIB
3724 else
3725 RANLIB="$ac_cv_prog_RANLIB"
3728 if test -n "$ac_tool_prefix"; then
3729 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3730 set dummy ${ac_tool_prefix}strip; ac_word=$2
3731 echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3733 if test "${ac_cv_prog_STRIP+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 if test -n "$STRIP"; then
3737 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3738 else
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3746 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 break 2
3750 done
3751 done
3755 STRIP=$ac_cv_prog_STRIP
3756 if test -n "$STRIP"; then
3757 echo "$as_me:$LINENO: result: $STRIP" >&5
3758 echo "${ECHO_T}$STRIP" >&6
3759 else
3760 echo "$as_me:$LINENO: result: no" >&5
3761 echo "${ECHO_T}no" >&6
3765 if test -z "$ac_cv_prog_STRIP"; then
3766 ac_ct_STRIP=$STRIP
3767 # Extract the first word of "strip", so it can be a program name with args.
3768 set dummy strip; ac_word=$2
3769 echo "$as_me:$LINENO: checking for $ac_word" >&5
3770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3771 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 if test -n "$ac_ct_STRIP"; then
3775 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3776 else
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_ac_ct_STRIP="strip"
3785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3786 break 2
3788 done
3789 done
3791 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3794 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3795 if test -n "$ac_ct_STRIP"; then
3796 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3797 echo "${ECHO_T}$ac_ct_STRIP" >&6
3798 else
3799 echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3803 STRIP=$ac_ct_STRIP
3804 else
3805 STRIP="$ac_cv_prog_STRIP"
3809 # Check for any special flags to pass to ltconfig.
3810 libtool_flags="--cache-file=$cache_file"
3811 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3812 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3813 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3814 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3815 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3818 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3819 if test "${enable_libtool_lock+set}" = set; then
3820 enableval="$enable_libtool_lock"
3823 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3824 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3827 # Check whether --with-pic or --without-pic was given.
3828 if test "${with_pic+set}" = set; then
3829 withval="$with_pic"
3830 pic_mode="$withval"
3831 else
3832 pic_mode=default
3834 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3835 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3837 # Some flags need to be propagated to the compiler or linker for good
3838 # libtool support.
3839 case $host in
3840 *-*-irix6*)
3841 # Find out which ABI we are using.
3842 echo '#line 3842 "configure"' > conftest.$ac_ext
3843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3844 (eval $ac_compile) 2>&5
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; then
3848 if test "$lt_cv_prog_gnu_ld" = yes; then
3849 case `/usr/bin/file conftest.$ac_objext` in
3850 *32-bit*)
3851 LD="${LD-ld} -melf32bsmip"
3853 *N32*)
3854 LD="${LD-ld} -melf32bmipn32"
3856 *64-bit*)
3857 LD="${LD-ld} -melf64bmip"
3859 esac
3860 else
3861 case `/usr/bin/file conftest.$ac_objext` in
3862 *32-bit*)
3863 LD="${LD-ld} -32"
3865 *N32*)
3866 LD="${LD-ld} -n32"
3868 *64-bit*)
3869 LD="${LD-ld} -64"
3871 esac
3874 rm -rf conftest*
3877 ia64-*-hpux*)
3878 # Find out which ABI we are using.
3879 echo 'int i;' > conftest.$ac_ext
3880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3881 (eval $ac_compile) 2>&5
3882 ac_status=$?
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; then
3885 case "`/usr/bin/file conftest.o`" in
3886 *ELF-32*)
3887 HPUX_IA64_MODE="32"
3889 *ELF-64*)
3890 HPUX_IA64_MODE="64"
3892 esac
3894 rm -rf conftest*
3897 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3898 # Find out which ABI we are using.
3899 echo 'int i;' > conftest.$ac_ext
3900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3901 (eval $ac_compile) 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; then
3905 case "`/usr/bin/file conftest.o`" in
3906 *32-bit*)
3907 case $host in
3908 x86_64-*linux*)
3909 LD="${LD-ld} -m elf_i386"
3911 ppc64-*linux*|powerpc64-*linux*)
3912 LD="${LD-ld} -m elf32ppclinux"
3914 s390x-*linux*)
3915 LD="${LD-ld} -m elf_s390"
3917 sparc64-*linux*)
3918 LD="${LD-ld} -m elf32_sparc"
3920 esac
3922 *64-bit*)
3923 case $host in
3924 x86_64-*linux*)
3925 LD="${LD-ld} -m elf_x86_64"
3927 ppc*-*linux*|powerpc*-*linux*)
3928 LD="${LD-ld} -m elf64ppc"
3930 s390*-*linux*)
3931 LD="${LD-ld} -m elf64_s390"
3933 sparc*-*linux*)
3934 LD="${LD-ld} -m elf64_sparc"
3936 esac
3938 esac
3940 rm -rf conftest*
3943 *-*-sco3.2v5*)
3944 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3945 SAVE_CFLAGS="$CFLAGS"
3946 CFLAGS="$CFLAGS -belf"
3947 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3948 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3949 if test "${lt_cv_cc_needs_belf+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3954 ac_ext=c
3955 ac_cpp='$CPP $CPPFLAGS'
3956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960 cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h. */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3968 main ()
3972 return 0;
3974 _ACEOF
3975 rm -f conftest.$ac_objext conftest$ac_exeext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3977 (eval $ac_link) 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -z "$ac_c_werror_flag"
3985 || test ! -s conftest.err'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987 (eval $ac_try) 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; } &&
3991 { ac_try='test -s conftest$ac_exeext'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 (eval $ac_try) 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; }; then
3997 lt_cv_cc_needs_belf=yes
3998 else
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 lt_cv_cc_needs_belf=no
4004 rm -f conftest.err conftest.$ac_objext \
4005 conftest$ac_exeext conftest.$ac_ext
4006 ac_ext=c
4007 ac_cpp='$CPP $CPPFLAGS'
4008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4014 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4015 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4016 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4017 CFLAGS="$SAVE_CFLAGS"
4022 esac
4025 # Save cache, so that ltconfig can load it
4026 cat >confcache <<\_ACEOF
4027 # This file is a shell script that caches the results of configure
4028 # tests run on this system so they can be shared between configure
4029 # scripts and configure runs, see configure's option --config-cache.
4030 # It is not useful on other systems. If it contains results you don't
4031 # want to keep, you may remove or edit it.
4033 # config.status only pays attention to the cache file if you give it
4034 # the --recheck option to rerun configure.
4036 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4037 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4038 # following values.
4040 _ACEOF
4042 # The following way of writing the cache mishandles newlines in values,
4043 # but we know of no workaround that is simple, portable, and efficient.
4044 # So, don't put newlines in cache variables' values.
4045 # Ultrix sh set writes to stderr and can't be redirected directly,
4046 # and sets the high bit in the cache file unless we assign to the vars.
4048 (set) 2>&1 |
4049 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4050 *ac_space=\ *)
4051 # `set' does not quote correctly, so add quotes (double-quote
4052 # substitution turns \\\\ into \\, and sed turns \\ into \).
4053 sed -n \
4054 "s/'/'\\\\''/g;
4055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4058 # `set' quotes correctly as required by POSIX, so do not add quotes.
4059 sed -n \
4060 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4062 esac;
4064 sed '
4065 t clear
4066 : clear
4067 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4068 t end
4069 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4070 : end' >>confcache
4071 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4072 if test -w $cache_file; then
4073 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4074 cat confcache >$cache_file
4075 else
4076 echo "not updating unwritable cache $cache_file"
4079 rm -f confcache
4081 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4082 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4083 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4084 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4085 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4086 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4087 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4088 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4089 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4090 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4091 echo "$as_me: error: libtool configure failed" >&2;}
4092 { (exit 1); exit 1; }; }
4094 # Reload cache, that may have been modified by ltconfig
4095 if test -r "$cache_file"; then
4096 # Some versions of bash will fail to source /dev/null (special
4097 # files actually), so we avoid doing that.
4098 if test -f "$cache_file"; then
4099 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4100 echo "$as_me: loading cache $cache_file" >&6;}
4101 case $cache_file in
4102 [\\/]* | ?:[\\/]* ) . $cache_file;;
4103 *) . ./$cache_file;;
4104 esac
4106 else
4107 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4108 echo "$as_me: creating cache $cache_file" >&6;}
4109 >$cache_file
4113 # This can be used to rebuild libtool when needed
4114 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4116 # Always use our own libtool.
4117 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4119 # Redirect the config.log output again, so that the ltconfig log is not
4120 # clobbered by the next message.
4121 exec 5>>./config.log
4129 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4130 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4131 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4132 if test "${enable_maintainer_mode+set}" = set; then
4133 enableval="$enable_maintainer_mode"
4134 USE_MAINTAINER_MODE=$enableval
4135 else
4136 USE_MAINTAINER_MODE=no
4138 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4139 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4142 if test $USE_MAINTAINER_MODE = yes; then
4143 MAINTAINER_MODE_TRUE=
4144 MAINTAINER_MODE_FALSE='#'
4145 else
4146 MAINTAINER_MODE_TRUE='#'
4147 MAINTAINER_MODE_FALSE=
4150 MAINT=$MAINTAINER_MODE_TRUE
4154 ac_ext=c
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4160 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4161 # On Suns, sometimes $CPP names a directory.
4162 if test -n "$CPP" && test -d "$CPP"; then
4163 CPP=
4165 if test -z "$CPP"; then
4166 if test "${ac_cv_prog_CPP+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169 # Double quotes because CPP needs to be expanded
4170 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4172 ac_preproc_ok=false
4173 for ac_c_preproc_warn_flag in '' yes
4175 # Use a header file that comes with gcc, so configuring glibc
4176 # with a fresh cross-compiler works.
4177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4178 # <limits.h> exists even on freestanding compilers.
4179 # On the NeXT, cc -E runs the code through the compiler's parser,
4180 # not just through cpp. "Syntax error" is here to catch this case.
4181 cat >conftest.$ac_ext <<_ACEOF
4182 /* confdefs.h. */
4183 _ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4187 #ifdef __STDC__
4188 # include <limits.h>
4189 #else
4190 # include <assert.h>
4191 #endif
4192 Syntax error
4193 _ACEOF
4194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4196 ac_status=$?
4197 grep -v '^ *+' conftest.er1 >conftest.err
4198 rm -f conftest.er1
4199 cat conftest.err >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } >/dev/null; then
4202 if test -s conftest.err; then
4203 ac_cpp_err=$ac_c_preproc_warn_flag
4204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4205 else
4206 ac_cpp_err=
4208 else
4209 ac_cpp_err=yes
4211 if test -z "$ac_cpp_err"; then
4213 else
4214 echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4217 # Broken: fails on valid input.
4218 continue
4220 rm -f conftest.err conftest.$ac_ext
4222 # OK, works on sane cases. Now check whether non-existent headers
4223 # can be detected and how.
4224 cat >conftest.$ac_ext <<_ACEOF
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_nonexistent.h>
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 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4243 else
4244 ac_cpp_err=
4246 else
4247 ac_cpp_err=yes
4249 if test -z "$ac_cpp_err"; then
4250 # Broken: success on invalid input.
4251 continue
4252 else
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4256 # Passes both tests.
4257 ac_preproc_ok=:
4258 break
4260 rm -f conftest.err conftest.$ac_ext
4262 done
4263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4264 rm -f conftest.err conftest.$ac_ext
4265 if $ac_preproc_ok; then
4266 break
4269 done
4270 ac_cv_prog_CPP=$CPP
4273 CPP=$ac_cv_prog_CPP
4274 else
4275 ac_cv_prog_CPP=$CPP
4277 echo "$as_me:$LINENO: result: $CPP" >&5
4278 echo "${ECHO_T}$CPP" >&6
4279 ac_preproc_ok=false
4280 for ac_c_preproc_warn_flag in '' yes
4282 # Use a header file that comes with gcc, so configuring glibc
4283 # with a fresh cross-compiler works.
4284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285 # <limits.h> exists even on freestanding compilers.
4286 # On the NeXT, cc -E runs the code through the compiler's parser,
4287 # not just through cpp. "Syntax error" is here to catch this case.
4288 cat >conftest.$ac_ext <<_ACEOF
4289 /* confdefs.h. */
4290 _ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h. */
4294 #ifdef __STDC__
4295 # include <limits.h>
4296 #else
4297 # include <assert.h>
4298 #endif
4299 Syntax error
4300 _ACEOF
4301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4303 ac_status=$?
4304 grep -v '^ *+' conftest.er1 >conftest.err
4305 rm -f conftest.er1
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } >/dev/null; then
4309 if test -s conftest.err; then
4310 ac_cpp_err=$ac_c_preproc_warn_flag
4311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4312 else
4313 ac_cpp_err=
4315 else
4316 ac_cpp_err=yes
4318 if test -z "$ac_cpp_err"; then
4320 else
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4324 # Broken: fails on valid input.
4325 continue
4327 rm -f conftest.err conftest.$ac_ext
4329 # OK, works on sane cases. Now check whether non-existent headers
4330 # can be detected and how.
4331 cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h. */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4337 #include <ac_nonexistent.h>
4338 _ACEOF
4339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4341 ac_status=$?
4342 grep -v '^ *+' conftest.er1 >conftest.err
4343 rm -f conftest.er1
4344 cat conftest.err >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } >/dev/null; then
4347 if test -s conftest.err; then
4348 ac_cpp_err=$ac_c_preproc_warn_flag
4349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4350 else
4351 ac_cpp_err=
4353 else
4354 ac_cpp_err=yes
4356 if test -z "$ac_cpp_err"; then
4357 # Broken: success on invalid input.
4358 continue
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 # Passes both tests.
4364 ac_preproc_ok=:
4365 break
4367 rm -f conftest.err conftest.$ac_ext
4369 done
4370 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4371 rm -f conftest.err conftest.$ac_ext
4372 if $ac_preproc_ok; then
4374 else
4375 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4376 See \`config.log' for more details." >&5
4377 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4378 See \`config.log' for more details." >&2;}
4379 { (exit 1); exit 1; }; }
4382 ac_ext=c
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389 echo "$as_me:$LINENO: checking for egrep" >&5
4390 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4391 if test "${ac_cv_prog_egrep+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4395 then ac_cv_prog_egrep='grep -E'
4396 else ac_cv_prog_egrep='egrep'
4399 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4400 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4401 EGREP=$ac_cv_prog_egrep
4404 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4405 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4406 if test "${ac_cv_header_stdc+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 else
4409 cat >conftest.$ac_ext <<_ACEOF
4410 /* confdefs.h. */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 #include <stdlib.h>
4416 #include <stdarg.h>
4417 #include <string.h>
4418 #include <float.h>
4421 main ()
4425 return 0;
4427 _ACEOF
4428 rm -f conftest.$ac_objext
4429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>conftest.er1
4431 ac_status=$?
4432 grep -v '^ *+' conftest.er1 >conftest.err
4433 rm -f conftest.er1
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } &&
4437 { ac_try='test -z "$ac_c_werror_flag"
4438 || test ! -s conftest.err'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 (eval $ac_try) 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; } &&
4444 { ac_try='test -s conftest.$ac_objext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 (eval $ac_try) 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_cv_header_stdc=yes
4451 else
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4455 ac_cv_header_stdc=no
4457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4459 if test $ac_cv_header_stdc = yes; then
4460 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h. */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 #include <string.h>
4469 _ACEOF
4470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4471 $EGREP "memchr" >/dev/null 2>&1; then
4473 else
4474 ac_cv_header_stdc=no
4476 rm -f conftest*
4480 if test $ac_cv_header_stdc = yes; then
4481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4482 cat >conftest.$ac_ext <<_ACEOF
4483 /* confdefs.h. */
4484 _ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4488 #include <stdlib.h>
4490 _ACEOF
4491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4492 $EGREP "free" >/dev/null 2>&1; then
4494 else
4495 ac_cv_header_stdc=no
4497 rm -f conftest*
4501 if test $ac_cv_header_stdc = yes; then
4502 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4503 if test "$cross_compiling" = yes; then
4505 else
4506 cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h. */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 #include <ctype.h>
4513 #if ((' ' & 0x0FF) == 0x020)
4514 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4515 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4516 #else
4517 # define ISLOWER(c) \
4518 (('a' <= (c) && (c) <= 'i') \
4519 || ('j' <= (c) && (c) <= 'r') \
4520 || ('s' <= (c) && (c) <= 'z'))
4521 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4522 #endif
4524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4526 main ()
4528 int i;
4529 for (i = 0; i < 256; i++)
4530 if (XOR (islower (i), ISLOWER (i))
4531 || toupper (i) != TOUPPER (i))
4532 exit(2);
4533 exit (0);
4535 _ACEOF
4536 rm -f conftest$ac_exeext
4537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4538 (eval $ac_link) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4548 else
4549 echo "$as_me: program exited with status $ac_status" >&5
4550 echo "$as_me: failed program was:" >&5
4551 sed 's/^/| /' conftest.$ac_ext >&5
4553 ( exit $ac_status )
4554 ac_cv_header_stdc=no
4556 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4560 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4561 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4562 if test $ac_cv_header_stdc = yes; then
4564 cat >>confdefs.h <<\_ACEOF
4565 #define STDC_HEADERS 1
4566 _ACEOF
4570 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4580 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4581 inttypes.h stdint.h unistd.h
4583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4584 echo "$as_me:$LINENO: checking for $ac_header" >&5
4585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589 cat >conftest.$ac_ext <<_ACEOF
4590 /* confdefs.h. */
4591 _ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h. */
4595 $ac_includes_default
4597 #include <$ac_header>
4598 _ACEOF
4599 rm -f conftest.$ac_objext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>conftest.er1
4602 ac_status=$?
4603 grep -v '^ *+' conftest.er1 >conftest.err
4604 rm -f conftest.er1
4605 cat conftest.err >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } &&
4608 { ac_try='test -z "$ac_c_werror_flag"
4609 || test ! -s conftest.err'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; } &&
4615 { ac_try='test -s conftest.$ac_objext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 eval "$as_ac_Header=yes"
4622 else
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4626 eval "$as_ac_Header=no"
4628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4633 cat >>confdefs.h <<_ACEOF
4634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4635 _ACEOF
4639 done
4643 for ac_header in sys/mman.h
4645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4647 echo "$as_me:$LINENO: checking for $ac_header" >&5
4648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4654 else
4655 # Is the header compilable?
4656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4658 cat >conftest.$ac_ext <<_ACEOF
4659 /* confdefs.h. */
4660 _ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h. */
4664 $ac_includes_default
4665 #include <$ac_header>
4666 _ACEOF
4667 rm -f conftest.$ac_objext
4668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669 (eval $ac_compile) 2>conftest.er1
4670 ac_status=$?
4671 grep -v '^ *+' conftest.er1 >conftest.err
4672 rm -f conftest.er1
4673 cat conftest.err >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -z "$ac_c_werror_flag"
4677 || test ! -s conftest.err'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 (eval $ac_try) 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; } &&
4683 { ac_try='test -s conftest.$ac_objext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 (eval $ac_try) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4689 ac_header_compiler=yes
4690 else
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4694 ac_header_compiler=no
4696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4698 echo "${ECHO_T}$ac_header_compiler" >&6
4700 # Is the header present?
4701 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4703 cat >conftest.$ac_ext <<_ACEOF
4704 /* confdefs.h. */
4705 _ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4709 #include <$ac_header>
4710 _ACEOF
4711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } >/dev/null; then
4719 if test -s conftest.err; then
4720 ac_cpp_err=$ac_c_preproc_warn_flag
4721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4722 else
4723 ac_cpp_err=
4725 else
4726 ac_cpp_err=yes
4728 if test -z "$ac_cpp_err"; then
4729 ac_header_preproc=yes
4730 else
4731 echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4734 ac_header_preproc=no
4736 rm -f conftest.err conftest.$ac_ext
4737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4738 echo "${ECHO_T}$ac_header_preproc" >&6
4740 # So? What about this header?
4741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4742 yes:no: )
4743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4747 ac_header_preproc=yes
4749 no:yes:* )
4750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4763 cat <<\_ASBOX
4764 ## ------------------------------------------- ##
4765 ## Report this to http://gcc.gnu.org/bugs.html ##
4766 ## ------------------------------------------- ##
4767 _ASBOX
4769 sed "s/^/$as_me: WARNING: /" >&2
4771 esac
4772 echo "$as_me:$LINENO: checking for $ac_header" >&5
4773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777 eval "$as_ac_Header=\$ac_header_preproc"
4779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4784 cat >>confdefs.h <<_ACEOF
4785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4786 _ACEOF
4790 done
4793 for ac_func in mmap
4795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4796 echo "$as_me:$LINENO: checking for $ac_func" >&5
4797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4798 if eval "test \"\${$as_ac_var+set}\" = set"; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801 cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h. */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4809 #define $ac_func innocuous_$ac_func
4811 /* System header to define __stub macros and hopefully few prototypes,
4812 which can conflict with char $ac_func (); below.
4813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4814 <limits.h> exists even on freestanding compilers. */
4816 #ifdef __STDC__
4817 # include <limits.h>
4818 #else
4819 # include <assert.h>
4820 #endif
4822 #undef $ac_func
4824 /* Override any gcc2 internal prototype to avoid an error. */
4825 #ifdef __cplusplus
4826 extern "C"
4828 #endif
4829 /* We use char because int might match the return type of a gcc2
4830 builtin and then its argument prototype would still apply. */
4831 char $ac_func ();
4832 /* The GNU C library defines this for functions which it implements
4833 to always fail with ENOSYS. Some functions are actually named
4834 something starting with __ and the normal name is an alias. */
4835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4836 choke me
4837 #else
4838 char (*f) () = $ac_func;
4839 #endif
4840 #ifdef __cplusplus
4842 #endif
4845 main ()
4847 return f != $ac_func;
4849 return 0;
4851 _ACEOF
4852 rm -f conftest.$ac_objext conftest$ac_exeext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4854 (eval $ac_link) 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } &&
4861 { ac_try='test -z "$ac_c_werror_flag"
4862 || test ! -s conftest.err'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 (eval $ac_try) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; } &&
4868 { ac_try='test -s conftest$ac_exeext'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 (eval $ac_try) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; }; then
4874 eval "$as_ac_var=yes"
4875 else
4876 echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.$ac_ext >&5
4879 eval "$as_ac_var=no"
4881 rm -f conftest.err conftest.$ac_objext \
4882 conftest$ac_exeext conftest.$ac_ext
4884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4886 if test `eval echo '${'$as_ac_var'}'` = yes; then
4887 cat >>confdefs.h <<_ACEOF
4888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4889 _ACEOF
4892 done
4895 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4896 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
4897 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
4898 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
4902 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
4903 else
4904 # Is the header compilable?
4905 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
4906 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h. */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 $ac_includes_default
4914 #include <sys/mman.h>
4915 _ACEOF
4916 rm -f conftest.$ac_objext
4917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4918 (eval $ac_compile) 2>conftest.er1
4919 ac_status=$?
4920 grep -v '^ *+' conftest.er1 >conftest.err
4921 rm -f conftest.er1
4922 cat conftest.err >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } &&
4925 { ac_try='test -z "$ac_c_werror_flag"
4926 || test ! -s conftest.err'
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928 (eval $ac_try) 2>&5
4929 ac_status=$?
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; } &&
4932 { ac_try='test -s conftest.$ac_objext'
4933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934 (eval $ac_try) 2>&5
4935 ac_status=$?
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); }; }; then
4938 ac_header_compiler=yes
4939 else
4940 echo "$as_me: failed program was:" >&5
4941 sed 's/^/| /' conftest.$ac_ext >&5
4943 ac_header_compiler=no
4945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4947 echo "${ECHO_T}$ac_header_compiler" >&6
4949 # Is the header present?
4950 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
4951 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
4952 cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h. */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4958 #include <sys/mman.h>
4959 _ACEOF
4960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } >/dev/null; then
4968 if test -s conftest.err; then
4969 ac_cpp_err=$ac_c_preproc_warn_flag
4970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4971 else
4972 ac_cpp_err=
4974 else
4975 ac_cpp_err=yes
4977 if test -z "$ac_cpp_err"; then
4978 ac_header_preproc=yes
4979 else
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 ac_header_preproc=no
4985 rm -f conftest.err conftest.$ac_ext
4986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4987 echo "${ECHO_T}$ac_header_preproc" >&6
4989 # So? What about this header?
4990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4991 yes:no: )
4992 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
4993 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4994 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
4995 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
4996 ac_header_preproc=yes
4998 no:yes:* )
4999 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
5000 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
5001 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
5002 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
5003 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
5004 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
5005 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
5006 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
5007 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
5008 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
5009 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
5010 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
5012 cat <<\_ASBOX
5013 ## ------------------------------------------- ##
5014 ## Report this to http://gcc.gnu.org/bugs.html ##
5015 ## ------------------------------------------- ##
5016 _ASBOX
5018 sed "s/^/$as_me: WARNING: /" >&2
5020 esac
5021 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
5022 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
5023 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026 ac_cv_header_sys_mman_h=$ac_header_preproc
5028 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
5029 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
5032 if test $ac_cv_header_sys_mman_h = yes; then
5033 libffi_header_sys_mman_h=yes
5034 else
5035 libffi_header_sys_mman_h=no
5039 echo "$as_me:$LINENO: checking for mmap" >&5
5040 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
5041 if test "${ac_cv_func_mmap+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044 cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h. */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
5051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5052 #define mmap innocuous_mmap
5054 /* System header to define __stub macros and hopefully few prototypes,
5055 which can conflict with char mmap (); below.
5056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057 <limits.h> exists even on freestanding compilers. */
5059 #ifdef __STDC__
5060 # include <limits.h>
5061 #else
5062 # include <assert.h>
5063 #endif
5065 #undef mmap
5067 /* Override any gcc2 internal prototype to avoid an error. */
5068 #ifdef __cplusplus
5069 extern "C"
5071 #endif
5072 /* We use char because int might match the return type of a gcc2
5073 builtin and then its argument prototype would still apply. */
5074 char mmap ();
5075 /* The GNU C library defines this for functions which it implements
5076 to always fail with ENOSYS. Some functions are actually named
5077 something starting with __ and the normal name is an alias. */
5078 #if defined (__stub_mmap) || defined (__stub___mmap)
5079 choke me
5080 #else
5081 char (*f) () = mmap;
5082 #endif
5083 #ifdef __cplusplus
5085 #endif
5088 main ()
5090 return f != mmap;
5092 return 0;
5094 _ACEOF
5095 rm -f conftest.$ac_objext conftest$ac_exeext
5096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5097 (eval $ac_link) 2>conftest.er1
5098 ac_status=$?
5099 grep -v '^ *+' conftest.er1 >conftest.err
5100 rm -f conftest.er1
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } &&
5104 { ac_try='test -z "$ac_c_werror_flag"
5105 || test ! -s conftest.err'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 (eval $ac_try) 2>&5
5108 ac_status=$?
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; } &&
5111 { ac_try='test -s conftest$ac_exeext'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 (eval $ac_try) 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5117 ac_cv_func_mmap=yes
5118 else
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5122 ac_cv_func_mmap=no
5124 rm -f conftest.err conftest.$ac_objext \
5125 conftest$ac_exeext conftest.$ac_ext
5127 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
5128 echo "${ECHO_T}$ac_cv_func_mmap" >&6
5129 if test $ac_cv_func_mmap = yes; then
5130 libffi_func_mmap=yes
5131 else
5132 libffi_func_mmap=no
5135 if test "$libffi_header_sys_mman_h" != yes \
5136 || test "$libffi_func_mmap" != yes; then
5137 ac_cv_func_mmap_file=no
5138 ac_cv_func_mmap_dev_zero=no
5139 ac_cv_func_mmap_anon=no
5140 else
5141 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
5142 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
5143 if test "${ac_cv_func_mmap_file+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146 # Add a system to this blacklist if
5147 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
5148 # memory area containing the same data that you'd get if you applied
5149 # read() to the same fd. The only system known to have a problem here
5150 # is VMS, where text files have record structure.
5151 case "$host_os" in
5152 vms* | ultrix*)
5153 ac_cv_func_mmap_file=no ;;
5155 ac_cv_func_mmap_file=yes;;
5156 esac
5158 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
5159 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
5160 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
5161 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
5162 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 # Add a system to this blacklist if it has mmap() but /dev/zero
5166 # does not exist, or if mmapping /dev/zero does not give anonymous
5167 # zeroed pages with both the following properties:
5168 # 1. If you map N consecutive pages in with one call, and then
5169 # unmap any subset of those pages, the pages that were not
5170 # explicitly unmapped remain accessible.
5171 # 2. If you map two adjacent blocks of memory and then unmap them
5172 # both at once, they must both go away.
5173 # Systems known to be in this category are Windows (all variants),
5174 # VMS, and Darwin.
5175 case "$host_os" in
5176 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
5177 ac_cv_func_mmap_dev_zero=no ;;
5179 ac_cv_func_mmap_dev_zero=yes;;
5180 esac
5182 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
5183 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
5185 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5186 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
5187 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
5188 if test "${ac_cv_decl_map_anon+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191 cat >conftest.$ac_ext <<_ACEOF
5192 /* confdefs.h. */
5193 _ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h. */
5197 #include <sys/types.h>
5198 #include <sys/mman.h>
5199 #include <unistd.h>
5201 #ifndef MAP_ANONYMOUS
5202 #define MAP_ANONYMOUS MAP_ANON
5203 #endif
5206 main ()
5208 int n = MAP_ANONYMOUS;
5210 return 0;
5212 _ACEOF
5213 rm -f conftest.$ac_objext
5214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5215 (eval $ac_compile) 2>conftest.er1
5216 ac_status=$?
5217 grep -v '^ *+' conftest.er1 >conftest.err
5218 rm -f conftest.er1
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } &&
5222 { ac_try='test -z "$ac_c_werror_flag"
5223 || test ! -s conftest.err'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 (eval $ac_try) 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; } &&
5229 { ac_try='test -s conftest.$ac_objext'
5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 (eval $ac_try) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; }; then
5235 ac_cv_decl_map_anon=yes
5236 else
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5240 ac_cv_decl_map_anon=no
5242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5244 echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
5245 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
5247 if test $ac_cv_decl_map_anon = no; then
5248 ac_cv_func_mmap_anon=no
5249 else
5250 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
5251 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
5252 if test "${ac_cv_func_mmap_anon+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255 # Add a system to this blacklist if it has mmap() and MAP_ANON or
5256 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
5257 # doesn't give anonymous zeroed pages with the same properties listed
5258 # above for use of /dev/zero.
5259 # Systems known to be in this category are Windows, VMS, and SCO Unix.
5260 case "$host_os" in
5261 vms* | cygwin* | pe | mingw* | sco* | udk* )
5262 ac_cv_func_mmap_anon=no ;;
5264 ac_cv_func_mmap_anon=yes;;
5265 esac
5267 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
5268 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
5272 if test $ac_cv_func_mmap_file = yes; then
5274 cat >>confdefs.h <<\_ACEOF
5275 #define HAVE_MMAP_FILE 1
5276 _ACEOF
5279 if test $ac_cv_func_mmap_dev_zero = yes; then
5281 cat >>confdefs.h <<\_ACEOF
5282 #define HAVE_MMAP_DEV_ZERO 1
5283 _ACEOF
5286 if test $ac_cv_func_mmap_anon = yes; then
5288 cat >>confdefs.h <<\_ACEOF
5289 #define HAVE_MMAP_ANON 1
5290 _ACEOF
5297 if test -d $srcdir/testsuite; then
5298 TESTSUBDIR_TRUE=
5299 TESTSUBDIR_FALSE='#'
5300 else
5301 TESTSUBDIR_TRUE='#'
5302 TESTSUBDIR_FALSE=
5306 TARGETDIR="unknown"
5307 case "$host" in
5308 i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
5309 i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
5310 i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
5311 i*86-*-freebsd* | i*86-*-kfreebsd*-gnu) TARGET=X86; TARGETDIR=x86;;
5312 i*86-*-netbsdelf* | i*86-*-knetbsd*-gnu) TARGET=X86; TARGETDIR=x86;;
5313 i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
5314 i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
5315 i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
5316 frv-*-*) TARGET=FRV; TARGETDIR=frv;;
5317 sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
5318 sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
5319 sparc-*-linux* | sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu) TARGET=SPARC; TARGETDIR=sparc;;
5320 sparc64-*-linux* | sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu) TARGET=SPARC; TARGETDIR=sparc;;
5321 alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu) TARGET=ALPHA; TARGETDIR=alpha;;
5322 ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
5323 m32r*-*-linux* ) TARGET=M32R; TARGETDIR=m32r;;
5324 m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
5325 mips64*-*);;
5326 mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS_IRIX; TARGETDIR=mips;;
5327 mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;;
5328 powerpc*-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
5329 powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
5330 powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
5331 powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
5332 rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
5333 arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
5334 arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu) TARGET=ARM; TARGETDIR=arm;;
5335 s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
5336 s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;
5337 x86_64-*-linux* | x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) TARGET=X86_64; TARGETDIR=x86;;
5338 sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
5339 sh64-*-linux* | sh5*-*-linux*) TARGET=SH64; TARGETDIR=sh64;;
5340 hppa-*-linux* | parisc-*-linux*) TARGET=PA; TARGETDIR=pa;;
5341 esac
5345 if test $TARGETDIR = unknown; then
5346 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
5347 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
5348 { (exit 1); exit 1; }; }
5353 if test x$TARGET = xMIPS_IRIX; then
5354 MIPS_IRIX_TRUE=
5355 MIPS_IRIX_FALSE='#'
5356 else
5357 MIPS_IRIX_TRUE='#'
5358 MIPS_IRIX_FALSE=
5363 if test x$TARGET = xMIPS_LINUX; then
5364 MIPS_LINUX_TRUE=
5365 MIPS_LINUX_FALSE='#'
5366 else
5367 MIPS_LINUX_TRUE='#'
5368 MIPS_LINUX_FALSE=
5373 if test x$TARGET = xSPARC; then
5374 SPARC_TRUE=
5375 SPARC_FALSE='#'
5376 else
5377 SPARC_TRUE='#'
5378 SPARC_FALSE=
5383 if test x$TARGET = xX86; then
5384 X86_TRUE=
5385 X86_FALSE='#'
5386 else
5387 X86_TRUE='#'
5388 X86_FALSE=
5393 if test x$TARGET = xX86_WIN32; then
5394 X86_WIN32_TRUE=
5395 X86_WIN32_FALSE='#'
5396 else
5397 X86_WIN32_TRUE='#'
5398 X86_WIN32_FALSE=
5403 if test x$TARGET = xALPHA; then
5404 ALPHA_TRUE=
5405 ALPHA_FALSE='#'
5406 else
5407 ALPHA_TRUE='#'
5408 ALPHA_FALSE=
5413 if test x$TARGET = xIA64; then
5414 IA64_TRUE=
5415 IA64_FALSE='#'
5416 else
5417 IA64_TRUE='#'
5418 IA64_FALSE=
5423 if test x$TARGET = xM32R; then
5424 M32R_TRUE=
5425 M32R_FALSE='#'
5426 else
5427 M32R_TRUE='#'
5428 M32R_FALSE=
5433 if test x$TARGET = xM68K; then
5434 M68K_TRUE=
5435 M68K_FALSE='#'
5436 else
5437 M68K_TRUE='#'
5438 M68K_FALSE=
5443 if test x$TARGET = xPOWERPC; then
5444 POWERPC_TRUE=
5445 POWERPC_FALSE='#'
5446 else
5447 POWERPC_TRUE='#'
5448 POWERPC_FALSE=
5453 if test x$TARGET = xPOWERPC_AIX; then
5454 POWERPC_AIX_TRUE=
5455 POWERPC_AIX_FALSE='#'
5456 else
5457 POWERPC_AIX_TRUE='#'
5458 POWERPC_AIX_FALSE=
5463 if test x$TARGET = xPOWERPC_DARWIN; then
5464 POWERPC_DARWIN_TRUE=
5465 POWERPC_DARWIN_FALSE='#'
5466 else
5467 POWERPC_DARWIN_TRUE='#'
5468 POWERPC_DARWIN_FALSE=
5473 if test x$TARGET = xARM; then
5474 ARM_TRUE=
5475 ARM_FALSE='#'
5476 else
5477 ARM_TRUE='#'
5478 ARM_FALSE=
5483 if test x$TARGET = xFRV; then
5484 FRV_TRUE=
5485 FRV_FALSE='#'
5486 else
5487 FRV_TRUE='#'
5488 FRV_FALSE=
5493 if test x$TARGET = xS390; then
5494 S390_TRUE=
5495 S390_FALSE='#'
5496 else
5497 S390_TRUE='#'
5498 S390_FALSE=
5503 if test x$TARGET = xX86_64; then
5504 X86_64_TRUE=
5505 X86_64_FALSE='#'
5506 else
5507 X86_64_TRUE='#'
5508 X86_64_FALSE=
5513 if test x$TARGET = xSH; then
5514 SH_TRUE=
5515 SH_FALSE='#'
5516 else
5517 SH_TRUE='#'
5518 SH_FALSE=
5523 if test x$TARGET = xSH64; then
5524 SH64_TRUE=
5525 SH64_FALSE='#'
5526 else
5527 SH64_TRUE='#'
5528 SH64_FALSE=
5533 if test x$TARGET = xPA; then
5534 PA_TRUE=
5535 PA_FALSE='#'
5536 else
5537 PA_TRUE='#'
5538 PA_FALSE=
5542 case x$TARGET in
5543 xMIPS*) TARGET=MIPS ;;
5544 *) ;;
5545 esac
5547 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5548 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5549 if test "${ac_cv_header_stdc+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552 cat >conftest.$ac_ext <<_ACEOF
5553 /* confdefs.h. */
5554 _ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 #include <stdlib.h>
5559 #include <stdarg.h>
5560 #include <string.h>
5561 #include <float.h>
5564 main ()
5568 return 0;
5570 _ACEOF
5571 rm -f conftest.$ac_objext
5572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5573 (eval $ac_compile) 2>conftest.er1
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } &&
5580 { ac_try='test -z "$ac_c_werror_flag"
5581 || test ! -s conftest.err'
5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583 (eval $ac_try) 2>&5
5584 ac_status=$?
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; } &&
5587 { ac_try='test -s conftest.$ac_objext'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 (eval $ac_try) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5593 ac_cv_header_stdc=yes
5594 else
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5598 ac_cv_header_stdc=no
5600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5602 if test $ac_cv_header_stdc = yes; then
5603 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5604 cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h. */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5610 #include <string.h>
5612 _ACEOF
5613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5614 $EGREP "memchr" >/dev/null 2>&1; then
5616 else
5617 ac_cv_header_stdc=no
5619 rm -f conftest*
5623 if test $ac_cv_header_stdc = yes; then
5624 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5625 cat >conftest.$ac_ext <<_ACEOF
5626 /* confdefs.h. */
5627 _ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5631 #include <stdlib.h>
5633 _ACEOF
5634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5635 $EGREP "free" >/dev/null 2>&1; then
5637 else
5638 ac_cv_header_stdc=no
5640 rm -f conftest*
5644 if test $ac_cv_header_stdc = yes; then
5645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5646 if test "$cross_compiling" = yes; then
5648 else
5649 cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h. */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 #include <ctype.h>
5656 #if ((' ' & 0x0FF) == 0x020)
5657 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5658 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5659 #else
5660 # define ISLOWER(c) \
5661 (('a' <= (c) && (c) <= 'i') \
5662 || ('j' <= (c) && (c) <= 'r') \
5663 || ('s' <= (c) && (c) <= 'z'))
5664 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5665 #endif
5667 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5669 main ()
5671 int i;
5672 for (i = 0; i < 256; i++)
5673 if (XOR (islower (i), ISLOWER (i))
5674 || toupper (i) != TOUPPER (i))
5675 exit(2);
5676 exit (0);
5678 _ACEOF
5679 rm -f conftest$ac_exeext
5680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5681 (eval $ac_link) 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 (eval $ac_try) 2>&5
5687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5691 else
5692 echo "$as_me: program exited with status $ac_status" >&5
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5696 ( exit $ac_status )
5697 ac_cv_header_stdc=no
5699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5703 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5704 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5705 if test $ac_cv_header_stdc = yes; then
5707 cat >>confdefs.h <<\_ACEOF
5708 #define STDC_HEADERS 1
5709 _ACEOF
5714 for ac_func in memcpy
5716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5717 echo "$as_me:$LINENO: checking for $ac_func" >&5
5718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5719 if eval "test \"\${$as_ac_var+set}\" = set"; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722 cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h. */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5730 #define $ac_func innocuous_$ac_func
5732 /* System header to define __stub macros and hopefully few prototypes,
5733 which can conflict with char $ac_func (); below.
5734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5735 <limits.h> exists even on freestanding compilers. */
5737 #ifdef __STDC__
5738 # include <limits.h>
5739 #else
5740 # include <assert.h>
5741 #endif
5743 #undef $ac_func
5745 /* Override any gcc2 internal prototype to avoid an error. */
5746 #ifdef __cplusplus
5747 extern "C"
5749 #endif
5750 /* We use char because int might match the return type of a gcc2
5751 builtin and then its argument prototype would still apply. */
5752 char $ac_func ();
5753 /* The GNU C library defines this for functions which it implements
5754 to always fail with ENOSYS. Some functions are actually named
5755 something starting with __ and the normal name is an alias. */
5756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5757 choke me
5758 #else
5759 char (*f) () = $ac_func;
5760 #endif
5761 #ifdef __cplusplus
5763 #endif
5766 main ()
5768 return f != $ac_func;
5770 return 0;
5772 _ACEOF
5773 rm -f conftest.$ac_objext conftest$ac_exeext
5774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5775 (eval $ac_link) 2>conftest.er1
5776 ac_status=$?
5777 grep -v '^ *+' conftest.er1 >conftest.err
5778 rm -f conftest.er1
5779 cat conftest.err >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } &&
5782 { ac_try='test -z "$ac_c_werror_flag"
5783 || test ! -s conftest.err'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 (eval $ac_try) 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; } &&
5789 { ac_try='test -s conftest$ac_exeext'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5795 eval "$as_ac_var=yes"
5796 else
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5800 eval "$as_ac_var=no"
5802 rm -f conftest.err conftest.$ac_objext \
5803 conftest$ac_exeext conftest.$ac_ext
5805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5807 if test `eval echo '${'$as_ac_var'}'` = yes; then
5808 cat >>confdefs.h <<_ACEOF
5809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5810 _ACEOF
5813 done
5815 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5816 # for constant arguments. Useless!
5817 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5818 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5819 if test "${ac_cv_working_alloca_h+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822 cat >conftest.$ac_ext <<_ACEOF
5823 /* confdefs.h. */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 #include <alloca.h>
5830 main ()
5832 char *p = (char *) alloca (2 * sizeof (int));
5834 return 0;
5836 _ACEOF
5837 rm -f conftest.$ac_objext conftest$ac_exeext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839 (eval $ac_link) 2>conftest.er1
5840 ac_status=$?
5841 grep -v '^ *+' conftest.er1 >conftest.err
5842 rm -f conftest.er1
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } &&
5846 { ac_try='test -z "$ac_c_werror_flag"
5847 || test ! -s conftest.err'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 (eval $ac_try) 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; } &&
5853 { ac_try='test -s conftest$ac_exeext'
5854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 (eval $ac_try) 2>&5
5856 ac_status=$?
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; }; then
5859 ac_cv_working_alloca_h=yes
5860 else
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5864 ac_cv_working_alloca_h=no
5866 rm -f conftest.err conftest.$ac_objext \
5867 conftest$ac_exeext conftest.$ac_ext
5869 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5870 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5871 if test $ac_cv_working_alloca_h = yes; then
5873 cat >>confdefs.h <<\_ACEOF
5874 #define HAVE_ALLOCA_H 1
5875 _ACEOF
5879 echo "$as_me:$LINENO: checking for alloca" >&5
5880 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5881 if test "${ac_cv_func_alloca_works+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884 cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h. */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5890 #ifdef __GNUC__
5891 # define alloca __builtin_alloca
5892 #else
5893 # ifdef _MSC_VER
5894 # include <malloc.h>
5895 # define alloca _alloca
5896 # else
5897 # if HAVE_ALLOCA_H
5898 # include <alloca.h>
5899 # else
5900 # ifdef _AIX
5901 #pragma alloca
5902 # else
5903 # ifndef alloca /* predefined by HP cc +Olibcalls */
5904 char *alloca ();
5905 # endif
5906 # endif
5907 # endif
5908 # endif
5909 #endif
5912 main ()
5914 char *p = (char *) alloca (1);
5916 return 0;
5918 _ACEOF
5919 rm -f conftest.$ac_objext conftest$ac_exeext
5920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5921 (eval $ac_link) 2>conftest.er1
5922 ac_status=$?
5923 grep -v '^ *+' conftest.er1 >conftest.err
5924 rm -f conftest.er1
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -z "$ac_c_werror_flag"
5929 || test ! -s conftest.err'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; } &&
5935 { ac_try='test -s conftest$ac_exeext'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 ac_cv_func_alloca_works=yes
5942 else
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5946 ac_cv_func_alloca_works=no
5948 rm -f conftest.err conftest.$ac_objext \
5949 conftest$ac_exeext conftest.$ac_ext
5951 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5952 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5954 if test $ac_cv_func_alloca_works = yes; then
5956 cat >>confdefs.h <<\_ACEOF
5957 #define HAVE_ALLOCA 1
5958 _ACEOF
5960 else
5961 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5962 # that cause trouble. Some versions do not even contain alloca or
5963 # contain a buggy version. If you still want to use their alloca,
5964 # use ar to extract alloca.o from them instead of compiling alloca.c.
5966 ALLOCA=alloca.$ac_objext
5968 cat >>confdefs.h <<\_ACEOF
5969 #define C_ALLOCA 1
5970 _ACEOF
5973 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5974 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5975 if test "${ac_cv_os_cray+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978 cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h. */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 #if defined(CRAY) && ! defined(CRAY2)
5985 webecray
5986 #else
5987 wenotbecray
5988 #endif
5990 _ACEOF
5991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5992 $EGREP "webecray" >/dev/null 2>&1; then
5993 ac_cv_os_cray=yes
5994 else
5995 ac_cv_os_cray=no
5997 rm -f conftest*
6000 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6001 echo "${ECHO_T}$ac_cv_os_cray" >&6
6002 if test $ac_cv_os_cray = yes; then
6003 for ac_func in _getb67 GETB67 getb67; do
6004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6005 echo "$as_me:$LINENO: checking for $ac_func" >&5
6006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6007 if eval "test \"\${$as_ac_var+set}\" = set"; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 else
6010 cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h. */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6018 #define $ac_func innocuous_$ac_func
6020 /* System header to define __stub macros and hopefully few prototypes,
6021 which can conflict with char $ac_func (); below.
6022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6023 <limits.h> exists even on freestanding compilers. */
6025 #ifdef __STDC__
6026 # include <limits.h>
6027 #else
6028 # include <assert.h>
6029 #endif
6031 #undef $ac_func
6033 /* Override any gcc2 internal prototype to avoid an error. */
6034 #ifdef __cplusplus
6035 extern "C"
6037 #endif
6038 /* We use char because int might match the return type of a gcc2
6039 builtin and then its argument prototype would still apply. */
6040 char $ac_func ();
6041 /* The GNU C library defines this for functions which it implements
6042 to always fail with ENOSYS. Some functions are actually named
6043 something starting with __ and the normal name is an alias. */
6044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6045 choke me
6046 #else
6047 char (*f) () = $ac_func;
6048 #endif
6049 #ifdef __cplusplus
6051 #endif
6054 main ()
6056 return f != $ac_func;
6058 return 0;
6060 _ACEOF
6061 rm -f conftest.$ac_objext conftest$ac_exeext
6062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6063 (eval $ac_link) 2>conftest.er1
6064 ac_status=$?
6065 grep -v '^ *+' conftest.er1 >conftest.err
6066 rm -f conftest.er1
6067 cat conftest.err >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } &&
6070 { ac_try='test -z "$ac_c_werror_flag"
6071 || test ! -s conftest.err'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 (eval $ac_try) 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; } &&
6077 { ac_try='test -s conftest$ac_exeext'
6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 (eval $ac_try) 2>&5
6080 ac_status=$?
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; }; then
6083 eval "$as_ac_var=yes"
6084 else
6085 echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6088 eval "$as_ac_var=no"
6090 rm -f conftest.err conftest.$ac_objext \
6091 conftest$ac_exeext conftest.$ac_ext
6093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6095 if test `eval echo '${'$as_ac_var'}'` = yes; then
6097 cat >>confdefs.h <<_ACEOF
6098 #define CRAY_STACKSEG_END $ac_func
6099 _ACEOF
6101 break
6104 done
6107 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6108 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6109 if test "${ac_cv_c_stack_direction+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112 if test "$cross_compiling" = yes; then
6113 ac_cv_c_stack_direction=0
6114 else
6115 cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h. */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6122 find_stack_direction ()
6124 static char *addr = 0;
6125 auto char dummy;
6126 if (addr == 0)
6128 addr = &dummy;
6129 return find_stack_direction ();
6131 else
6132 return (&dummy > addr) ? 1 : -1;
6136 main ()
6138 exit (find_stack_direction () < 0);
6140 _ACEOF
6141 rm -f conftest$ac_exeext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6143 (eval $ac_link) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
6152 ac_cv_c_stack_direction=1
6153 else
6154 echo "$as_me: program exited with status $ac_status" >&5
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 ( exit $ac_status )
6159 ac_cv_c_stack_direction=-1
6161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6164 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6165 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6167 cat >>confdefs.h <<_ACEOF
6168 #define STACK_DIRECTION $ac_cv_c_stack_direction
6169 _ACEOF
6175 echo "$as_me:$LINENO: checking size of double" >&5
6176 echo $ECHO_N "checking size of double... $ECHO_C" >&6
6177 if test "${ac_cv_sizeof_double+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
6181 cat >conftest.$ac_ext <<_ACEOF
6182 /* confdefs.h. */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6187 #include "confdefs.h"
6188 #include <sys/types.h>
6192 main ()
6194 switch (0) case 0: case (sizeof (double) == $ac_size):;
6196 return 0;
6198 _ACEOF
6199 rm -f conftest.$ac_objext
6200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6201 (eval $ac_compile) 2>conftest.er1
6202 ac_status=$?
6203 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -f conftest.er1
6205 cat conftest.err >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } &&
6208 { ac_try='test -z "$ac_c_werror_flag"
6209 || test ! -s conftest.err'
6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 (eval $ac_try) 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; } &&
6215 { ac_try='test -s conftest.$ac_objext'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 (eval $ac_try) 2>&5
6218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; }; then
6221 ac_cv_sizeof_double=$ac_size
6222 else
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6228 if test x$ac_cv_sizeof_double != x ; then break; fi
6229 done
6233 if test x$ac_cv_sizeof_double = x ; then
6234 { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
6235 echo "$as_me: error: cannot determine a size for double" >&2;}
6236 { (exit 1); exit 1; }; }
6238 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6239 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6241 cat >>confdefs.h <<_ACEOF
6242 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6243 _ACEOF
6246 echo "$as_me:$LINENO: checking size of long double" >&5
6247 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
6248 if test "${ac_cv_sizeof_long_double+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
6252 cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h. */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6258 #include "confdefs.h"
6259 #include <sys/types.h>
6263 main ()
6265 switch (0) case 0: case (sizeof (long double) == $ac_size):;
6267 return 0;
6269 _ACEOF
6270 rm -f conftest.$ac_objext
6271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6272 (eval $ac_compile) 2>conftest.er1
6273 ac_status=$?
6274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } &&
6279 { ac_try='test -z "$ac_c_werror_flag"
6280 || test ! -s conftest.err'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 (eval $ac_try) 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; } &&
6286 { ac_try='test -s conftest.$ac_objext'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; }; then
6292 ac_cv_sizeof_long_double=$ac_size
6293 else
6294 echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6299 if test x$ac_cv_sizeof_long_double != x ; then break; fi
6300 done
6304 if test x$ac_cv_sizeof_long_double = x ; then
6305 { { echo "$as_me:$LINENO: error: cannot determine a size for long double" >&5
6306 echo "$as_me: error: cannot determine a size for long double" >&2;}
6307 { (exit 1); exit 1; }; }
6309 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
6310 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
6312 cat >>confdefs.h <<_ACEOF
6313 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
6314 _ACEOF
6318 # Also AC_SUBST this variable for ffi.h.
6319 HAVE_LONG_DOUBLE=0
6320 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
6321 if test $ac_cv_sizeof_long_double != 0; then
6322 HAVE_LONG_DOUBLE=1
6324 cat >>confdefs.h <<\_ACEOF
6325 #define HAVE_LONG_DOUBLE 1
6326 _ACEOF
6332 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6333 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6334 if test "${ac_cv_c_bigendian+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 else
6337 ac_cv_c_bigendian=unknown
6338 # See if sys/param.h defines the BYTE_ORDER macro.
6339 cat >conftest.$ac_ext <<_ACEOF
6340 /* confdefs.h. */
6341 _ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h. */
6345 #include <sys/types.h>
6346 #include <sys/param.h>
6348 main ()
6351 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6352 bogus endian macros
6353 #endif
6355 return 0;
6357 _ACEOF
6358 rm -f conftest.$ac_objext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6360 (eval $ac_compile) 2>conftest.er1
6361 ac_status=$?
6362 grep -v '^ *+' conftest.er1 >conftest.err
6363 rm -f conftest.er1
6364 cat conftest.err >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } &&
6367 { ac_try='test -z "$ac_c_werror_flag"
6368 || test ! -s conftest.err'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 (eval $ac_try) 2>&5
6371 ac_status=$?
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; } &&
6374 { ac_try='test -s conftest.$ac_objext'
6375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 (eval $ac_try) 2>&5
6377 ac_status=$?
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }; }; then
6380 # It does; now see whether it defined to BIG_ENDIAN or not.
6381 cat >conftest.$ac_ext <<_ACEOF
6382 /* confdefs.h. */
6383 _ACEOF
6384 cat confdefs.h >>conftest.$ac_ext
6385 cat >>conftest.$ac_ext <<_ACEOF
6386 /* end confdefs.h. */
6387 #include <sys/types.h>
6388 #include <sys/param.h>
6390 main ()
6393 #if BYTE_ORDER != BIG_ENDIAN
6394 not big endian
6395 #endif
6397 return 0;
6399 _ACEOF
6400 rm -f conftest.$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402 (eval $ac_compile) 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -z "$ac_c_werror_flag"
6410 || test ! -s conftest.err'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 (eval $ac_try) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; } &&
6416 { ac_try='test -s conftest.$ac_objext'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 (eval $ac_try) 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
6422 ac_cv_c_bigendian=yes
6423 else
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6427 ac_cv_c_bigendian=no
6429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6430 else
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6436 if test $ac_cv_c_bigendian = unknown; then
6437 if test "$cross_compiling" = yes; then
6438 echo $ac_n "cross-compiling... " 2>&6
6439 else
6440 cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h. */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6446 main () {
6447 /* Are we little or big endian? From Harbison&Steele. */
6448 union
6450 long l;
6451 char c[sizeof (long)];
6452 } u;
6453 u.l = 1;
6454 exit (u.c[sizeof (long) - 1] == 1);
6456 _ACEOF
6457 rm -f conftest$ac_exeext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6459 (eval $ac_link) 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 (eval $ac_try) 2>&5
6465 ac_status=$?
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 ac_cv_c_bigendian=no
6469 else
6470 echo "$as_me: program exited with status $ac_status" >&5
6471 echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6474 ( exit $ac_status )
6475 ac_cv_c_bigendian=yes
6477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6481 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6482 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6483 if test $ac_cv_c_bigendian = unknown; then
6484 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6485 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6487 cat >conftest.c <<EOF
6488 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6489 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6490 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6491 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6492 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6493 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6494 int main() { _ascii (); _ebcdic (); return 0; }
6496 if test -f conftest.c ; then
6497 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6498 if test `grep -l BIGenDianSyS conftest.o` ; then
6499 echo $ac_n ' big endian probe OK, ' 1>&6
6500 ac_cv_c_bigendian=yes
6502 if test `grep -l LiTTleEnDian conftest.o` ; then
6503 echo $ac_n ' little endian probe OK, ' 1>&6
6504 if test $ac_cv_c_bigendian = yes ; then
6505 ac_cv_c_bigendian=unknown;
6506 else
6507 ac_cv_c_bigendian=no
6510 echo $ac_n 'guessing bigendian ... ' >&6
6513 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6514 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6516 if test $ac_cv_c_bigendian = yes; then
6518 cat >>confdefs.h <<\_ACEOF
6519 #define WORDS_BIGENDIAN 1
6520 _ACEOF
6523 cat >>confdefs.h <<\_ACEOF
6524 #define HOST_WORDS_BIG_ENDIAN 1
6525 _ACEOF
6527 BYTEORDER=4321
6528 else
6529 BYTEORDER=1234
6532 cat >>confdefs.h <<_ACEOF
6533 #define BYTEORDER $BYTEORDER
6534 _ACEOF
6536 if test $ac_cv_c_bigendian = unknown; then
6537 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6538 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6539 { (exit 1); exit 1; }; }
6543 if test x$TARGET = xSPARC; then
6544 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
6545 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
6546 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6550 save_CFLAGS="$CFLAGS"
6551 save_LDFLAGS="$LDFLAGS"
6552 CFLAGS="$CFLAGS -fpic"
6553 LDFLAGS="$LDFLAGS -shared"
6554 cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h. */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
6562 main ()
6566 return 0;
6568 _ACEOF
6569 rm -f conftest.$ac_objext conftest$ac_exeext
6570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6571 (eval $ac_link) 2>conftest.er1
6572 ac_status=$?
6573 grep -v '^ *+' conftest.er1 >conftest.err
6574 rm -f conftest.er1
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try='test -z "$ac_c_werror_flag"
6579 || test ! -s conftest.err'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 (eval $ac_try) 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; } &&
6585 { ac_try='test -s conftest$ac_exeext'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 (eval $ac_try) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 libffi_cv_as_sparc_ua_pcrel=yes
6592 else
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6596 libffi_cv_as_sparc_ua_pcrel=no
6598 rm -f conftest.err conftest.$ac_objext \
6599 conftest$ac_exeext conftest.$ac_ext
6600 CFLAGS="$save_CFLAGS"
6601 LDFLAGS="$save_LDFLAGS"
6603 echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
6604 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
6605 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
6607 cat >>confdefs.h <<\_ACEOF
6608 #define HAVE_AS_SPARC_UA_PCREL 1
6609 _ACEOF
6613 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
6614 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
6615 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6619 libffi_cv_as_register_pseudo_op=unknown
6620 # Check if we have .register
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 asm (".register %g2, #scratch");
6629 main ()
6633 return 0;
6635 _ACEOF
6636 rm -f conftest.$ac_objext
6637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6638 (eval $ac_compile) 2>conftest.er1
6639 ac_status=$?
6640 grep -v '^ *+' conftest.er1 >conftest.err
6641 rm -f conftest.er1
6642 cat conftest.err >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } &&
6645 { ac_try='test -z "$ac_c_werror_flag"
6646 || test ! -s conftest.err'
6647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 (eval $ac_try) 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; } &&
6652 { ac_try='test -s conftest.$ac_objext'
6653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 (eval $ac_try) 2>&5
6655 ac_status=$?
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; }; then
6658 libffi_cv_as_register_pseudo_op=yes
6659 else
6660 echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6663 libffi_cv_as_register_pseudo_op=no
6665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6668 echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
6669 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
6670 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
6672 cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_AS_REGISTER_PSEUDO_OP 1
6674 _ACEOF
6679 echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
6680 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
6681 if test "${libffi_cv_ro_eh_frame+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6685 libffi_cv_ro_eh_frame=no
6686 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
6687 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
6688 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
6689 libffi_cv_ro_eh_frame=yes
6690 elif grep '.section.*eh_frame.*#alloc' conftest.c \
6691 | grep -v '#write' > /dev/null; then
6692 libffi_cv_ro_eh_frame=yes
6695 rm -f conftest.*
6698 echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
6699 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
6700 if test "x$libffi_cv_ro_eh_frame" = xyes; then
6702 cat >>confdefs.h <<\_ACEOF
6703 #define HAVE_RO_EH_FRAME 1
6704 _ACEOF
6707 cat >>confdefs.h <<\_ACEOF
6708 #define EH_FRAME_FLAGS "a"
6709 _ACEOF
6711 else
6713 cat >>confdefs.h <<\_ACEOF
6714 #define EH_FRAME_FLAGS "aw"
6715 _ACEOF
6724 # Check whether --enable-debug or --disable-debug was given.
6725 if test "${enable_debug+set}" = set; then
6726 enableval="$enable_debug"
6727 if test "$enable_debug" = "yes"; then
6729 cat >>confdefs.h <<\_ACEOF
6730 #define FFI_DEBUG 1
6731 _ACEOF
6736 # Check whether --enable-structs or --disable-structs was given.
6737 if test "${enable_structs+set}" = set; then
6738 enableval="$enable_structs"
6739 if test "$enable_structs" = "no"; then
6741 cat >>confdefs.h <<\_ACEOF
6742 #define FFI_NO_STRUCTS 1
6743 _ACEOF
6748 # Check whether --enable-raw-api or --disable-raw-api was given.
6749 if test "${enable_raw_api+set}" = set; then
6750 enableval="$enable_raw_api"
6751 if test "$enable_raw_api" = "no"; then
6753 cat >>confdefs.h <<\_ACEOF
6754 #define FFI_NO_RAW_API 1
6755 _ACEOF
6760 # Check whether --enable-purify-safety or --disable-purify-safety was given.
6761 if test "${enable_purify_safety+set}" = set; then
6762 enableval="$enable_purify_safety"
6763 if test "$enable_purify_safety" = "yes"; then
6765 cat >>confdefs.h <<\_ACEOF
6766 #define USING_PURIFY 1
6767 _ACEOF
6772 if test -n "$with_cross_host" &&
6773 test x"$with_cross_host" != x"no"; then
6774 toolexecdir='$(exec_prefix)/$(target_alias)'
6775 toolexeclibdir='$(toolexecdir)/lib'
6776 else
6777 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
6778 toolexeclibdir='$(libdir)'
6780 multi_os_directory=`$CC -print-multi-os-directory`
6781 case $multi_os_directory in
6782 .) ;; # Avoid trailing /.
6783 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
6784 esac
6788 #Figure out where generated headers like ffitarget.h get installed.
6789 gcc_version_trigger=${srcdir}/../gcc/version.c
6790 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
6791 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
6792 tool_include_dir='$(libdir)/gcc/$(target_alias)/'${gcc_version}/include
6797 if test "${multilib}" = "yes"; then
6798 multilib_arg="--enable-multilib"
6799 else
6800 multilib_arg=
6803 ac_config_commands="$ac_config_commands include"
6805 ac_config_commands="$ac_config_commands src"
6808 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
6811 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
6814 cat >confcache <<\_ACEOF
6815 # This file is a shell script that caches the results of configure
6816 # tests run on this system so they can be shared between configure
6817 # scripts and configure runs, see configure's option --config-cache.
6818 # It is not useful on other systems. If it contains results you don't
6819 # want to keep, you may remove or edit it.
6821 # config.status only pays attention to the cache file if you give it
6822 # the --recheck option to rerun configure.
6824 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6825 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6826 # following values.
6828 _ACEOF
6830 # The following way of writing the cache mishandles newlines in values,
6831 # but we know of no workaround that is simple, portable, and efficient.
6832 # So, don't put newlines in cache variables' values.
6833 # Ultrix sh set writes to stderr and can't be redirected directly,
6834 # and sets the high bit in the cache file unless we assign to the vars.
6836 (set) 2>&1 |
6837 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6838 *ac_space=\ *)
6839 # `set' does not quote correctly, so add quotes (double-quote
6840 # substitution turns \\\\ into \\, and sed turns \\ into \).
6841 sed -n \
6842 "s/'/'\\\\''/g;
6843 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6846 # `set' quotes correctly as required by POSIX, so do not add quotes.
6847 sed -n \
6848 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6850 esac;
6852 sed '
6853 t clear
6854 : clear
6855 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6856 t end
6857 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6858 : end' >>confcache
6859 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6860 if test -w $cache_file; then
6861 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6862 cat confcache >$cache_file
6863 else
6864 echo "not updating unwritable cache $cache_file"
6867 rm -f confcache
6869 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6870 # Let make expand exec_prefix.
6871 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6873 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6874 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6875 # trailing colons and then remove the whole line if VPATH becomes empty
6876 # (actually we leave an empty line to preserve line numbers).
6877 if test "x$srcdir" = x.; then
6878 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6879 s/:*\$(srcdir):*/:/;
6880 s/:*\${srcdir}:*/:/;
6881 s/:*@srcdir@:*/:/;
6882 s/^\([^=]*=[ ]*\):*/\1/;
6883 s/:*$//;
6884 s/^[^=]*=[ ]*$//;
6888 DEFS=-DHAVE_CONFIG_H
6890 ac_libobjs=
6891 ac_ltlibobjs=
6892 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6893 # 1. Remove the extension, and $U if already installed.
6894 ac_i=`echo "$ac_i" |
6895 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6896 # 2. Add them.
6897 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6898 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6899 done
6900 LIBOBJS=$ac_libobjs
6902 LTLIBOBJS=$ac_ltlibobjs
6905 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6906 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6907 Usually this means the macro was only invoked conditionally." >&5
6908 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6909 Usually this means the macro was only invoked conditionally." >&2;}
6910 { (exit 1); exit 1; }; }
6912 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6913 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6914 Usually this means the macro was only invoked conditionally." >&5
6915 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6916 Usually this means the macro was only invoked conditionally." >&2;}
6917 { (exit 1); exit 1; }; }
6919 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6920 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6921 Usually this means the macro was only invoked conditionally." >&5
6922 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6923 Usually this means the macro was only invoked conditionally." >&2;}
6924 { (exit 1); exit 1; }; }
6926 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
6927 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
6928 Usually this means the macro was only invoked conditionally." >&5
6929 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
6930 Usually this means the macro was only invoked conditionally." >&2;}
6931 { (exit 1); exit 1; }; }
6933 if test -z "${MIPS_IRIX_TRUE}" && test -z "${MIPS_IRIX_FALSE}"; then
6934 { { echo "$as_me:$LINENO: error: conditional \"MIPS_IRIX\" was never defined.
6935 Usually this means the macro was only invoked conditionally." >&5
6936 echo "$as_me: error: conditional \"MIPS_IRIX\" was never defined.
6937 Usually this means the macro was only invoked conditionally." >&2;}
6938 { (exit 1); exit 1; }; }
6940 if test -z "${MIPS_LINUX_TRUE}" && test -z "${MIPS_LINUX_FALSE}"; then
6941 { { echo "$as_me:$LINENO: error: conditional \"MIPS_LINUX\" was never defined.
6942 Usually this means the macro was only invoked conditionally." >&5
6943 echo "$as_me: error: conditional \"MIPS_LINUX\" was never defined.
6944 Usually this means the macro was only invoked conditionally." >&2;}
6945 { (exit 1); exit 1; }; }
6947 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
6948 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
6949 Usually this means the macro was only invoked conditionally." >&5
6950 echo "$as_me: error: conditional \"SPARC\" was never defined.
6951 Usually this means the macro was only invoked conditionally." >&2;}
6952 { (exit 1); exit 1; }; }
6954 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
6955 { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
6956 Usually this means the macro was only invoked conditionally." >&5
6957 echo "$as_me: error: conditional \"X86\" was never defined.
6958 Usually this means the macro was only invoked conditionally." >&2;}
6959 { (exit 1); exit 1; }; }
6961 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
6962 { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
6963 Usually this means the macro was only invoked conditionally." >&5
6964 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
6965 Usually this means the macro was only invoked conditionally." >&2;}
6966 { (exit 1); exit 1; }; }
6968 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
6969 { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
6970 Usually this means the macro was only invoked conditionally." >&5
6971 echo "$as_me: error: conditional \"ALPHA\" was never defined.
6972 Usually this means the macro was only invoked conditionally." >&2;}
6973 { (exit 1); exit 1; }; }
6975 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
6976 { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
6977 Usually this means the macro was only invoked conditionally." >&5
6978 echo "$as_me: error: conditional \"IA64\" was never defined.
6979 Usually this means the macro was only invoked conditionally." >&2;}
6980 { (exit 1); exit 1; }; }
6982 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
6983 { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
6984 Usually this means the macro was only invoked conditionally." >&5
6985 echo "$as_me: error: conditional \"M32R\" was never defined.
6986 Usually this means the macro was only invoked conditionally." >&2;}
6987 { (exit 1); exit 1; }; }
6989 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
6990 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
6991 Usually this means the macro was only invoked conditionally." >&5
6992 echo "$as_me: error: conditional \"M68K\" was never defined.
6993 Usually this means the macro was only invoked conditionally." >&2;}
6994 { (exit 1); exit 1; }; }
6996 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
6997 { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
6998 Usually this means the macro was only invoked conditionally." >&5
6999 echo "$as_me: error: conditional \"POWERPC\" was never defined.
7000 Usually this means the macro was only invoked conditionally." >&2;}
7001 { (exit 1); exit 1; }; }
7003 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
7004 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
7005 Usually this means the macro was only invoked conditionally." >&5
7006 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
7007 Usually this means the macro was only invoked conditionally." >&2;}
7008 { (exit 1); exit 1; }; }
7010 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
7011 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
7012 Usually this means the macro was only invoked conditionally." >&5
7013 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
7014 Usually this means the macro was only invoked conditionally." >&2;}
7015 { (exit 1); exit 1; }; }
7017 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
7018 { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
7019 Usually this means the macro was only invoked conditionally." >&5
7020 echo "$as_me: error: conditional \"ARM\" was never defined.
7021 Usually this means the macro was only invoked conditionally." >&2;}
7022 { (exit 1); exit 1; }; }
7024 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
7025 { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
7026 Usually this means the macro was only invoked conditionally." >&5
7027 echo "$as_me: error: conditional \"FRV\" was never defined.
7028 Usually this means the macro was only invoked conditionally." >&2;}
7029 { (exit 1); exit 1; }; }
7031 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
7032 { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
7033 Usually this means the macro was only invoked conditionally." >&5
7034 echo "$as_me: error: conditional \"S390\" was never defined.
7035 Usually this means the macro was only invoked conditionally." >&2;}
7036 { (exit 1); exit 1; }; }
7038 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
7039 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
7040 Usually this means the macro was only invoked conditionally." >&5
7041 echo "$as_me: error: conditional \"X86_64\" was never defined.
7042 Usually this means the macro was only invoked conditionally." >&2;}
7043 { (exit 1); exit 1; }; }
7045 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
7046 { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
7047 Usually this means the macro was only invoked conditionally." >&5
7048 echo "$as_me: error: conditional \"SH\" was never defined.
7049 Usually this means the macro was only invoked conditionally." >&2;}
7050 { (exit 1); exit 1; }; }
7052 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
7053 { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
7054 Usually this means the macro was only invoked conditionally." >&5
7055 echo "$as_me: error: conditional \"SH64\" was never defined.
7056 Usually this means the macro was only invoked conditionally." >&2;}
7057 { (exit 1); exit 1; }; }
7059 if test -z "${PA_TRUE}" && test -z "${PA_FALSE}"; then
7060 { { echo "$as_me:$LINENO: error: conditional \"PA\" was never defined.
7061 Usually this means the macro was only invoked conditionally." >&5
7062 echo "$as_me: error: conditional \"PA\" was never defined.
7063 Usually this means the macro was only invoked conditionally." >&2;}
7064 { (exit 1); exit 1; }; }
7067 : ${CONFIG_STATUS=./config.status}
7068 ac_clean_files_save=$ac_clean_files
7069 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7070 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7071 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7072 cat >$CONFIG_STATUS <<_ACEOF
7073 #! $SHELL
7074 # Generated by $as_me.
7075 # Run this file to recreate the current configuration.
7076 # Compiler output produced by configure, useful for debugging
7077 # configure, is in config.log if it exists.
7079 debug=false
7080 ac_cs_recheck=false
7081 ac_cs_silent=false
7082 SHELL=\${CONFIG_SHELL-$SHELL}
7083 _ACEOF
7085 cat >>$CONFIG_STATUS <<\_ACEOF
7086 ## --------------------- ##
7087 ## M4sh Initialization. ##
7088 ## --------------------- ##
7090 # Be Bourne compatible
7091 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7092 emulate sh
7093 NULLCMD=:
7094 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7095 # is contrary to our usage. Disable this feature.
7096 alias -g '${1+"$@"}'='"$@"'
7097 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7098 set -o posix
7100 DUALCASE=1; export DUALCASE # for MKS sh
7102 # Support unset when possible.
7103 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7104 as_unset=unset
7105 else
7106 as_unset=false
7110 # Work around bugs in pre-3.0 UWIN ksh.
7111 $as_unset ENV MAIL MAILPATH
7112 PS1='$ '
7113 PS2='> '
7114 PS4='+ '
7116 # NLS nuisances.
7117 for as_var in \
7118 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7119 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7120 LC_TELEPHONE LC_TIME
7122 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7123 eval $as_var=C; export $as_var
7124 else
7125 $as_unset $as_var
7127 done
7129 # Required to use basename.
7130 if expr a : '\(a\)' >/dev/null 2>&1; then
7131 as_expr=expr
7132 else
7133 as_expr=false
7136 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7137 as_basename=basename
7138 else
7139 as_basename=false
7143 # Name of the executable.
7144 as_me=`$as_basename "$0" ||
7145 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7146 X"$0" : 'X\(//\)$' \| \
7147 X"$0" : 'X\(/\)$' \| \
7148 . : '\(.\)' 2>/dev/null ||
7149 echo X/"$0" |
7150 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7151 /^X\/\(\/\/\)$/{ s//\1/; q; }
7152 /^X\/\(\/\).*/{ s//\1/; q; }
7153 s/.*/./; q'`
7156 # PATH needs CR, and LINENO needs CR and PATH.
7157 # Avoid depending upon Character Ranges.
7158 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7159 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7160 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7161 as_cr_digits='0123456789'
7162 as_cr_alnum=$as_cr_Letters$as_cr_digits
7164 # The user is always right.
7165 if test "${PATH_SEPARATOR+set}" != set; then
7166 echo "#! /bin/sh" >conf$$.sh
7167 echo "exit 0" >>conf$$.sh
7168 chmod +x conf$$.sh
7169 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7170 PATH_SEPARATOR=';'
7171 else
7172 PATH_SEPARATOR=:
7174 rm -f conf$$.sh
7178 as_lineno_1=$LINENO
7179 as_lineno_2=$LINENO
7180 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7181 test "x$as_lineno_1" != "x$as_lineno_2" &&
7182 test "x$as_lineno_3" = "x$as_lineno_2" || {
7183 # Find who we are. Look in the path if we contain no path at all
7184 # relative or not.
7185 case $0 in
7186 *[\\/]* ) as_myself=$0 ;;
7187 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
7192 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7193 done
7196 esac
7197 # We did not find ourselves, most probably we were run as `sh COMMAND'
7198 # in which case we are not to be found in the path.
7199 if test "x$as_myself" = x; then
7200 as_myself=$0
7202 if test ! -f "$as_myself"; then
7203 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7204 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7205 { (exit 1); exit 1; }; }
7207 case $CONFIG_SHELL in
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
7214 for as_base in sh bash ksh sh5; do
7215 case $as_dir in
7217 if ("$as_dir/$as_base" -c '
7218 as_lineno_1=$LINENO
7219 as_lineno_2=$LINENO
7220 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7221 test "x$as_lineno_1" != "x$as_lineno_2" &&
7222 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7223 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7224 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7225 CONFIG_SHELL=$as_dir/$as_base
7226 export CONFIG_SHELL
7227 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7228 fi;;
7229 esac
7230 done
7231 done
7233 esac
7235 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7236 # uniformly replaced by the line number. The first 'sed' inserts a
7237 # line-number line before each line; the second 'sed' does the real
7238 # work. The second script uses 'N' to pair each line-number line
7239 # with the numbered line, and appends trailing '-' during
7240 # substitution so that $LINENO is not a special case at line end.
7241 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7242 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7243 sed '=' <$as_myself |
7244 sed '
7246 s,$,-,
7247 : loop
7248 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7249 t loop
7250 s,-$,,
7251 s,^['$as_cr_digits']*\n,,
7252 ' >$as_me.lineno &&
7253 chmod +x $as_me.lineno ||
7254 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7255 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7256 { (exit 1); exit 1; }; }
7258 # Don't try to exec as it changes $[0], causing all sort of problems
7259 # (the dirname of $[0] is not the place where we might find the
7260 # original and so on. Autoconf is especially sensible to this).
7261 . ./$as_me.lineno
7262 # Exit status is that of the last command.
7263 exit
7267 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7268 *c*,-n*) ECHO_N= ECHO_C='
7269 ' ECHO_T=' ' ;;
7270 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7271 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7272 esac
7274 if expr a : '\(a\)' >/dev/null 2>&1; then
7275 as_expr=expr
7276 else
7277 as_expr=false
7280 rm -f conf$$ conf$$.exe conf$$.file
7281 echo >conf$$.file
7282 if ln -s conf$$.file conf$$ 2>/dev/null; then
7283 # We could just check for DJGPP; but this test a) works b) is more generic
7284 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7285 if test -f conf$$.exe; then
7286 # Don't use ln at all; we don't have any links
7287 as_ln_s='cp -p'
7288 else
7289 as_ln_s='ln -s'
7291 elif ln conf$$.file conf$$ 2>/dev/null; then
7292 as_ln_s=ln
7293 else
7294 as_ln_s='cp -p'
7296 rm -f conf$$ conf$$.exe conf$$.file
7298 if mkdir -p . 2>/dev/null; then
7299 as_mkdir_p=:
7300 else
7301 test -d ./-p && rmdir ./-p
7302 as_mkdir_p=false
7305 as_executable_p="test -f"
7307 # Sed expression to map a string onto a valid CPP name.
7308 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7310 # Sed expression to map a string onto a valid variable name.
7311 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7314 # IFS
7315 # We need space, tab and new line, in precisely that order.
7316 as_nl='
7318 IFS=" $as_nl"
7320 # CDPATH.
7321 $as_unset CDPATH
7323 exec 6>&1
7325 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7326 # report actual input values of CONFIG_FILES etc. instead of their
7327 # values after options handling. Logging --version etc. is OK.
7328 exec 5>>config.log
7330 echo
7331 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7332 ## Running $as_me. ##
7333 _ASBOX
7334 } >&5
7335 cat >&5 <<_CSEOF
7337 This file was extended by libffi $as_me 2.1, which was
7338 generated by GNU Autoconf 2.59. Invocation command line was
7340 CONFIG_FILES = $CONFIG_FILES
7341 CONFIG_HEADERS = $CONFIG_HEADERS
7342 CONFIG_LINKS = $CONFIG_LINKS
7343 CONFIG_COMMANDS = $CONFIG_COMMANDS
7344 $ $0 $@
7346 _CSEOF
7347 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7348 echo >&5
7349 _ACEOF
7351 # Files that config.status was made for.
7352 if test -n "$ac_config_files"; then
7353 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7356 if test -n "$ac_config_headers"; then
7357 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7360 if test -n "$ac_config_links"; then
7361 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7364 if test -n "$ac_config_commands"; then
7365 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7368 cat >>$CONFIG_STATUS <<\_ACEOF
7370 ac_cs_usage="\
7371 \`$as_me' instantiates files from templates according to the
7372 current configuration.
7374 Usage: $0 [OPTIONS] [FILE]...
7376 -h, --help print this help, then exit
7377 -V, --version print version number, then exit
7378 -q, --quiet do not print progress messages
7379 -d, --debug don't remove temporary files
7380 --recheck update $as_me by reconfiguring in the same conditions
7381 --file=FILE[:TEMPLATE]
7382 instantiate the configuration file FILE
7383 --header=FILE[:TEMPLATE]
7384 instantiate the configuration header FILE
7386 Configuration files:
7387 $config_files
7389 Configuration headers:
7390 $config_headers
7392 Configuration links:
7393 $config_links
7395 Configuration commands:
7396 $config_commands
7398 Report bugs to <bug-autoconf@gnu.org>."
7399 _ACEOF
7401 cat >>$CONFIG_STATUS <<_ACEOF
7402 ac_cs_version="\\
7403 libffi config.status 2.1
7404 configured by $0, generated by GNU Autoconf 2.59,
7405 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7407 Copyright (C) 2003 Free Software Foundation, Inc.
7408 This config.status script is free software; the Free Software Foundation
7409 gives unlimited permission to copy, distribute and modify it."
7410 srcdir=$srcdir
7411 INSTALL="$INSTALL"
7412 _ACEOF
7414 cat >>$CONFIG_STATUS <<\_ACEOF
7415 # If no file are specified by the user, then we need to provide default
7416 # value. By we need to know if files were specified by the user.
7417 ac_need_defaults=:
7418 while test $# != 0
7420 case $1 in
7421 --*=*)
7422 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7423 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7424 ac_shift=:
7427 ac_option=$1
7428 ac_optarg=$2
7429 ac_shift=shift
7431 *) # This is not an option, so the user has probably given explicit
7432 # arguments.
7433 ac_option=$1
7434 ac_need_defaults=false;;
7435 esac
7437 case $ac_option in
7438 # Handling of the options.
7439 _ACEOF
7440 cat >>$CONFIG_STATUS <<\_ACEOF
7441 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7442 ac_cs_recheck=: ;;
7443 --version | --vers* | -V )
7444 echo "$ac_cs_version"; exit 0 ;;
7445 --he | --h)
7446 # Conflict between --help and --header
7447 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7448 Try \`$0 --help' for more information." >&5
7449 echo "$as_me: error: ambiguous option: $1
7450 Try \`$0 --help' for more information." >&2;}
7451 { (exit 1); exit 1; }; };;
7452 --help | --hel | -h )
7453 echo "$ac_cs_usage"; exit 0 ;;
7454 --debug | --d* | -d )
7455 debug=: ;;
7456 --file | --fil | --fi | --f )
7457 $ac_shift
7458 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7459 ac_need_defaults=false;;
7460 --header | --heade | --head | --hea )
7461 $ac_shift
7462 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7463 ac_need_defaults=false;;
7464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7465 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7466 ac_cs_silent=: ;;
7468 # This is an error.
7469 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7470 Try \`$0 --help' for more information." >&5
7471 echo "$as_me: error: unrecognized option: $1
7472 Try \`$0 --help' for more information." >&2;}
7473 { (exit 1); exit 1; }; } ;;
7475 *) ac_config_targets="$ac_config_targets $1" ;;
7477 esac
7478 shift
7479 done
7481 ac_configure_extra_args=
7483 if $ac_cs_silent; then
7484 exec 6>/dev/null
7485 ac_configure_extra_args="$ac_configure_extra_args --silent"
7488 _ACEOF
7489 cat >>$CONFIG_STATUS <<_ACEOF
7490 if \$ac_cs_recheck; then
7491 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7492 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7495 _ACEOF
7497 cat >>$CONFIG_STATUS <<_ACEOF
7499 # INIT-COMMANDS section.
7503 srcdir="$srcdir"
7504 host="$host"
7505 target="$target"
7506 with_multisubdir="$with_multisubdir"
7507 with_multisrctop="$with_multisrctop"
7508 with_target_subdir="$with_target_subdir"
7509 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7510 multi_basedir="$multi_basedir"
7511 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7512 CC="$CC"
7513 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7514 TARGETDIR="$TARGETDIR"
7516 _ACEOF
7520 cat >>$CONFIG_STATUS <<\_ACEOF
7521 for ac_config_target in $ac_config_targets
7523 case "$ac_config_target" in
7524 # Handling of arguments.
7525 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
7526 "include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
7527 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7528 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
7529 "include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
7530 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7531 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7532 "include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
7533 "src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
7534 "fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
7535 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7536 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7537 { (exit 1); exit 1; }; };;
7538 esac
7539 done
7541 # If the user did not use the arguments to specify the items to instantiate,
7542 # then the envvar interface is used. Set only those that are not.
7543 # We use the long form for the default assignment because of an extremely
7544 # bizarre bug on SunOS 4.1.3.
7545 if $ac_need_defaults; then
7546 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7547 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7548 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7549 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7552 # Have a temporary directory for convenience. Make it in the build tree
7553 # simply because there is no reason to put it here, and in addition,
7554 # creating and moving files from /tmp can sometimes cause problems.
7555 # Create a temporary directory, and hook for its removal unless debugging.
7556 $debug ||
7558 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7559 trap '{ (exit 1); exit 1; }' 1 2 13 15
7562 # Create a (secure) tmp directory for tmp files.
7565 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7566 test -n "$tmp" && test -d "$tmp"
7567 } ||
7569 tmp=./confstat$$-$RANDOM
7570 (umask 077 && mkdir $tmp)
7571 } ||
7573 echo "$me: cannot create a temporary directory in ." >&2
7574 { (exit 1); exit 1; }
7577 _ACEOF
7579 cat >>$CONFIG_STATUS <<_ACEOF
7582 # CONFIG_FILES section.
7585 # No need to generate the scripts if there are no CONFIG_FILES.
7586 # This happens for instance when ./config.status config.h
7587 if test -n "\$CONFIG_FILES"; then
7588 # Protect against being on the right side of a sed subst in config.status.
7589 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7590 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7591 s,@SHELL@,$SHELL,;t t
7592 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7593 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7594 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7595 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7596 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7597 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7598 s,@exec_prefix@,$exec_prefix,;t t
7599 s,@prefix@,$prefix,;t t
7600 s,@program_transform_name@,$program_transform_name,;t t
7601 s,@bindir@,$bindir,;t t
7602 s,@sbindir@,$sbindir,;t t
7603 s,@libexecdir@,$libexecdir,;t t
7604 s,@datadir@,$datadir,;t t
7605 s,@sysconfdir@,$sysconfdir,;t t
7606 s,@sharedstatedir@,$sharedstatedir,;t t
7607 s,@localstatedir@,$localstatedir,;t t
7608 s,@libdir@,$libdir,;t t
7609 s,@includedir@,$includedir,;t t
7610 s,@oldincludedir@,$oldincludedir,;t t
7611 s,@infodir@,$infodir,;t t
7612 s,@mandir@,$mandir,;t t
7613 s,@build_alias@,$build_alias,;t t
7614 s,@host_alias@,$host_alias,;t t
7615 s,@target_alias@,$target_alias,;t t
7616 s,@DEFS@,$DEFS,;t t
7617 s,@ECHO_C@,$ECHO_C,;t t
7618 s,@ECHO_N@,$ECHO_N,;t t
7619 s,@ECHO_T@,$ECHO_T,;t t
7620 s,@LIBS@,$LIBS,;t t
7621 s,@multi_basedir@,$multi_basedir,;t t
7622 s,@build@,$build,;t t
7623 s,@build_cpu@,$build_cpu,;t t
7624 s,@build_vendor@,$build_vendor,;t t
7625 s,@build_os@,$build_os,;t t
7626 s,@host@,$host,;t t
7627 s,@host_cpu@,$host_cpu,;t t
7628 s,@host_vendor@,$host_vendor,;t t
7629 s,@host_os@,$host_os,;t t
7630 s,@target@,$target,;t t
7631 s,@target_cpu@,$target_cpu,;t t
7632 s,@target_vendor@,$target_vendor,;t t
7633 s,@target_os@,$target_os,;t t
7634 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7635 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7636 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7637 s,@CYGPATH_W@,$CYGPATH_W,;t t
7638 s,@PACKAGE@,$PACKAGE,;t t
7639 s,@VERSION@,$VERSION,;t t
7640 s,@ACLOCAL@,$ACLOCAL,;t t
7641 s,@AUTOCONF@,$AUTOCONF,;t t
7642 s,@AUTOMAKE@,$AUTOMAKE,;t t
7643 s,@AUTOHEADER@,$AUTOHEADER,;t t
7644 s,@MAKEINFO@,$MAKEINFO,;t t
7645 s,@AMTAR@,$AMTAR,;t t
7646 s,@install_sh@,$install_sh,;t t
7647 s,@STRIP@,$STRIP,;t t
7648 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7649 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7650 s,@mkdir_p@,$mkdir_p,;t t
7651 s,@AWK@,$AWK,;t t
7652 s,@SET_MAKE@,$SET_MAKE,;t t
7653 s,@am__leading_dot@,$am__leading_dot,;t t
7654 s,@CC@,$CC,;t t
7655 s,@ac_ct_CC@,$ac_ct_CC,;t t
7656 s,@EXEEXT@,$EXEEXT,;t t
7657 s,@OBJEXT@,$OBJEXT,;t t
7658 s,@DEPDIR@,$DEPDIR,;t t
7659 s,@am__include@,$am__include,;t t
7660 s,@am__quote@,$am__quote,;t t
7661 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7662 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7663 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7664 s,@CCDEPMODE@,$CCDEPMODE,;t t
7665 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7666 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7667 s,@CFLAGS@,$CFLAGS,;t t
7668 s,@CCAS@,$CCAS,;t t
7669 s,@CCASFLAGS@,$CCASFLAGS,;t t
7670 s,@LN_S@,$LN_S,;t t
7671 s,@RANLIB@,$RANLIB,;t t
7672 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7673 s,@LIBTOOL@,$LIBTOOL,;t t
7674 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7675 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7676 s,@MAINT@,$MAINT,;t t
7677 s,@CPP@,$CPP,;t t
7678 s,@CPPFLAGS@,$CPPFLAGS,;t t
7679 s,@EGREP@,$EGREP,;t t
7680 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
7681 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
7682 s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
7683 s,@MIPS_IRIX_TRUE@,$MIPS_IRIX_TRUE,;t t
7684 s,@MIPS_IRIX_FALSE@,$MIPS_IRIX_FALSE,;t t
7685 s,@MIPS_LINUX_TRUE@,$MIPS_LINUX_TRUE,;t t
7686 s,@MIPS_LINUX_FALSE@,$MIPS_LINUX_FALSE,;t t
7687 s,@SPARC_TRUE@,$SPARC_TRUE,;t t
7688 s,@SPARC_FALSE@,$SPARC_FALSE,;t t
7689 s,@X86_TRUE@,$X86_TRUE,;t t
7690 s,@X86_FALSE@,$X86_FALSE,;t t
7691 s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
7692 s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
7693 s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
7694 s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
7695 s,@IA64_TRUE@,$IA64_TRUE,;t t
7696 s,@IA64_FALSE@,$IA64_FALSE,;t t
7697 s,@M32R_TRUE@,$M32R_TRUE,;t t
7698 s,@M32R_FALSE@,$M32R_FALSE,;t t
7699 s,@M68K_TRUE@,$M68K_TRUE,;t t
7700 s,@M68K_FALSE@,$M68K_FALSE,;t t
7701 s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
7702 s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
7703 s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
7704 s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
7705 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
7706 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
7707 s,@ARM_TRUE@,$ARM_TRUE,;t t
7708 s,@ARM_FALSE@,$ARM_FALSE,;t t
7709 s,@FRV_TRUE@,$FRV_TRUE,;t t
7710 s,@FRV_FALSE@,$FRV_FALSE,;t t
7711 s,@S390_TRUE@,$S390_TRUE,;t t
7712 s,@S390_FALSE@,$S390_FALSE,;t t
7713 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
7714 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
7715 s,@SH_TRUE@,$SH_TRUE,;t t
7716 s,@SH_FALSE@,$SH_FALSE,;t t
7717 s,@SH64_TRUE@,$SH64_TRUE,;t t
7718 s,@SH64_FALSE@,$SH64_FALSE,;t t
7719 s,@PA_TRUE@,$PA_TRUE,;t t
7720 s,@PA_FALSE@,$PA_FALSE,;t t
7721 s,@ALLOCA@,$ALLOCA,;t t
7722 s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
7723 s,@TARGET@,$TARGET,;t t
7724 s,@TARGETDIR@,$TARGETDIR,;t t
7725 s,@toolexecdir@,$toolexecdir,;t t
7726 s,@toolexeclibdir@,$toolexeclibdir,;t t
7727 s,@tool_include_dir@,$tool_include_dir,;t t
7728 s,@gcc_version@,$gcc_version,;t t
7729 s,@LIBOBJS@,$LIBOBJS,;t t
7730 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7731 CEOF
7733 _ACEOF
7735 cat >>$CONFIG_STATUS <<\_ACEOF
7736 # Split the substitutions into bite-sized pieces for seds with
7737 # small command number limits, like on Digital OSF/1 and HP-UX.
7738 ac_max_sed_lines=48
7739 ac_sed_frag=1 # Number of current file.
7740 ac_beg=1 # First line for current file.
7741 ac_end=$ac_max_sed_lines # Line after last line for current file.
7742 ac_more_lines=:
7743 ac_sed_cmds=
7744 while $ac_more_lines; do
7745 if test $ac_beg -gt 1; then
7746 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7747 else
7748 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7750 if test ! -s $tmp/subs.frag; then
7751 ac_more_lines=false
7752 else
7753 # The purpose of the label and of the branching condition is to
7754 # speed up the sed processing (if there are no `@' at all, there
7755 # is no need to browse any of the substitutions).
7756 # These are the two extra sed commands mentioned above.
7757 (echo ':t
7758 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7759 if test -z "$ac_sed_cmds"; then
7760 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7761 else
7762 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7764 ac_sed_frag=`expr $ac_sed_frag + 1`
7765 ac_beg=$ac_end
7766 ac_end=`expr $ac_end + $ac_max_sed_lines`
7768 done
7769 if test -z "$ac_sed_cmds"; then
7770 ac_sed_cmds=cat
7772 fi # test -n "$CONFIG_FILES"
7774 _ACEOF
7775 cat >>$CONFIG_STATUS <<\_ACEOF
7776 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7777 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7778 case $ac_file in
7779 - | *:- | *:-:* ) # input from stdin
7780 cat >$tmp/stdin
7781 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7782 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7783 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7784 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7785 * ) ac_file_in=$ac_file.in ;;
7786 esac
7788 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7789 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7791 X"$ac_file" : 'X\(//\)[^/]' \| \
7792 X"$ac_file" : 'X\(//\)$' \| \
7793 X"$ac_file" : 'X\(/\)' \| \
7794 . : '\(.\)' 2>/dev/null ||
7795 echo X"$ac_file" |
7796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7798 /^X\(\/\/\)$/{ s//\1/; q; }
7799 /^X\(\/\).*/{ s//\1/; q; }
7800 s/.*/./; q'`
7801 { if $as_mkdir_p; then
7802 mkdir -p "$ac_dir"
7803 else
7804 as_dir="$ac_dir"
7805 as_dirs=
7806 while test ! -d "$as_dir"; do
7807 as_dirs="$as_dir $as_dirs"
7808 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7810 X"$as_dir" : 'X\(//\)[^/]' \| \
7811 X"$as_dir" : 'X\(//\)$' \| \
7812 X"$as_dir" : 'X\(/\)' \| \
7813 . : '\(.\)' 2>/dev/null ||
7814 echo X"$as_dir" |
7815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7816 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7817 /^X\(\/\/\)$/{ s//\1/; q; }
7818 /^X\(\/\).*/{ s//\1/; q; }
7819 s/.*/./; q'`
7820 done
7821 test ! -n "$as_dirs" || mkdir $as_dirs
7822 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7823 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7824 { (exit 1); exit 1; }; }; }
7826 ac_builddir=.
7828 if test "$ac_dir" != .; then
7829 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7830 # A "../" for each directory in $ac_dir_suffix.
7831 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7832 else
7833 ac_dir_suffix= ac_top_builddir=
7836 case $srcdir in
7837 .) # No --srcdir option. We are building in place.
7838 ac_srcdir=.
7839 if test -z "$ac_top_builddir"; then
7840 ac_top_srcdir=.
7841 else
7842 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7843 fi ;;
7844 [\\/]* | ?:[\\/]* ) # Absolute path.
7845 ac_srcdir=$srcdir$ac_dir_suffix;
7846 ac_top_srcdir=$srcdir ;;
7847 *) # Relative path.
7848 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7849 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7850 esac
7852 # Do not use `cd foo && pwd` to compute absolute paths, because
7853 # the directories may not exist.
7854 case `pwd` in
7855 .) ac_abs_builddir="$ac_dir";;
7857 case "$ac_dir" in
7858 .) ac_abs_builddir=`pwd`;;
7859 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7860 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7861 esac;;
7862 esac
7863 case $ac_abs_builddir in
7864 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7866 case ${ac_top_builddir}. in
7867 .) ac_abs_top_builddir=$ac_abs_builddir;;
7868 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7869 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7870 esac;;
7871 esac
7872 case $ac_abs_builddir in
7873 .) ac_abs_srcdir=$ac_srcdir;;
7875 case $ac_srcdir in
7876 .) ac_abs_srcdir=$ac_abs_builddir;;
7877 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7878 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7879 esac;;
7880 esac
7881 case $ac_abs_builddir in
7882 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7884 case $ac_top_srcdir in
7885 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7886 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7887 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7888 esac;;
7889 esac
7892 case $INSTALL in
7893 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7894 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7895 esac
7897 if test x"$ac_file" != x-; then
7898 { echo "$as_me:$LINENO: creating $ac_file" >&5
7899 echo "$as_me: creating $ac_file" >&6;}
7900 rm -f "$ac_file"
7902 # Let's still pretend it is `configure' which instantiates (i.e., don't
7903 # use $as_me), people would be surprised to read:
7904 # /* config.h. Generated by config.status. */
7905 if test x"$ac_file" = x-; then
7906 configure_input=
7907 else
7908 configure_input="$ac_file. "
7910 configure_input=$configure_input"Generated from `echo $ac_file_in |
7911 sed 's,.*/,,'` by configure."
7913 # First look for the input files in the build tree, otherwise in the
7914 # src tree.
7915 ac_file_inputs=`IFS=:
7916 for f in $ac_file_in; do
7917 case $f in
7918 -) echo $tmp/stdin ;;
7919 [\\/$]*)
7920 # Absolute (can't be DOS-style, as IFS=:)
7921 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7922 echo "$as_me: error: cannot find input file: $f" >&2;}
7923 { (exit 1); exit 1; }; }
7924 echo "$f";;
7925 *) # Relative
7926 if test -f "$f"; then
7927 # Build tree
7928 echo "$f"
7929 elif test -f "$srcdir/$f"; then
7930 # Source tree
7931 echo "$srcdir/$f"
7932 else
7933 # /dev/null tree
7934 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7935 echo "$as_me: error: cannot find input file: $f" >&2;}
7936 { (exit 1); exit 1; }; }
7937 fi;;
7938 esac
7939 done` || { (exit 1); exit 1; }
7940 _ACEOF
7941 cat >>$CONFIG_STATUS <<_ACEOF
7942 sed "$ac_vpsub
7943 $extrasub
7944 _ACEOF
7945 cat >>$CONFIG_STATUS <<\_ACEOF
7947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7948 s,@configure_input@,$configure_input,;t t
7949 s,@srcdir@,$ac_srcdir,;t t
7950 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7951 s,@top_srcdir@,$ac_top_srcdir,;t t
7952 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7953 s,@builddir@,$ac_builddir,;t t
7954 s,@abs_builddir@,$ac_abs_builddir,;t t
7955 s,@top_builddir@,$ac_top_builddir,;t t
7956 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7957 s,@INSTALL@,$ac_INSTALL,;t t
7958 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7959 rm -f $tmp/stdin
7960 if test x"$ac_file" != x-; then
7961 mv $tmp/out $ac_file
7962 else
7963 cat $tmp/out
7964 rm -f $tmp/out
7967 done
7968 _ACEOF
7969 cat >>$CONFIG_STATUS <<\_ACEOF
7972 # CONFIG_HEADER section.
7975 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7976 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7978 # ac_d sets the value in "#define NAME VALUE" lines.
7979 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7980 ac_dB='[ ].*$,\1#\2'
7981 ac_dC=' '
7982 ac_dD=',;t'
7983 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7984 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7985 ac_uB='$,\1#\2define\3'
7986 ac_uC=' '
7987 ac_uD=',;t'
7989 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7990 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7991 case $ac_file in
7992 - | *:- | *:-:* ) # input from stdin
7993 cat >$tmp/stdin
7994 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7995 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7996 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7997 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7998 * ) ac_file_in=$ac_file.in ;;
7999 esac
8001 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8002 echo "$as_me: creating $ac_file" >&6;}
8004 # First look for the input files in the build tree, otherwise in the
8005 # src tree.
8006 ac_file_inputs=`IFS=:
8007 for f in $ac_file_in; do
8008 case $f in
8009 -) echo $tmp/stdin ;;
8010 [\\/$]*)
8011 # Absolute (can't be DOS-style, as IFS=:)
8012 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8013 echo "$as_me: error: cannot find input file: $f" >&2;}
8014 { (exit 1); exit 1; }; }
8015 # Do quote $f, to prevent DOS paths from being IFS'd.
8016 echo "$f";;
8017 *) # Relative
8018 if test -f "$f"; then
8019 # Build tree
8020 echo "$f"
8021 elif test -f "$srcdir/$f"; then
8022 # Source tree
8023 echo "$srcdir/$f"
8024 else
8025 # /dev/null tree
8026 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8027 echo "$as_me: error: cannot find input file: $f" >&2;}
8028 { (exit 1); exit 1; }; }
8029 fi;;
8030 esac
8031 done` || { (exit 1); exit 1; }
8032 # Remove the trailing spaces.
8033 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8035 _ACEOF
8037 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8038 # `conftest.undefs', that substitutes the proper values into
8039 # config.h.in to produce config.h. The first handles `#define'
8040 # templates, and the second `#undef' templates.
8041 # And first: Protect against being on the right side of a sed subst in
8042 # config.status. Protect against being in an unquoted here document
8043 # in config.status.
8044 rm -f conftest.defines conftest.undefs
8045 # Using a here document instead of a string reduces the quoting nightmare.
8046 # Putting comments in sed scripts is not portable.
8048 # `end' is used to avoid that the second main sed command (meant for
8049 # 0-ary CPP macros) applies to n-ary macro definitions.
8050 # See the Autoconf documentation for `clear'.
8051 cat >confdef2sed.sed <<\_ACEOF
8052 s/[\\&,]/\\&/g
8053 s,[\\$`],\\&,g
8054 t clear
8055 : clear
8056 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8057 t end
8058 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8059 : end
8060 _ACEOF
8061 # If some macros were called several times there might be several times
8062 # the same #defines, which is useless. Nevertheless, we may not want to
8063 # sort them, since we want the *last* AC-DEFINE to be honored.
8064 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8065 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8066 rm -f confdef2sed.sed
8068 # This sed command replaces #undef with comments. This is necessary, for
8069 # example, in the case of _POSIX_SOURCE, which is predefined and required
8070 # on some systems where configure will not decide to define it.
8071 cat >>conftest.undefs <<\_ACEOF
8072 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8073 _ACEOF
8075 # Break up conftest.defines because some shells have a limit on the size
8076 # of here documents, and old seds have small limits too (100 cmds).
8077 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8078 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8079 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8080 echo ' :' >>$CONFIG_STATUS
8081 rm -f conftest.tail
8082 while grep . conftest.defines >/dev/null
8084 # Write a limited-size here document to $tmp/defines.sed.
8085 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8086 # Speed up: don't consider the non `#define' lines.
8087 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8088 # Work around the forget-to-reset-the-flag bug.
8089 echo 't clr' >>$CONFIG_STATUS
8090 echo ': clr' >>$CONFIG_STATUS
8091 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8092 echo 'CEOF
8093 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8094 rm -f $tmp/in
8095 mv $tmp/out $tmp/in
8096 ' >>$CONFIG_STATUS
8097 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8098 rm -f conftest.defines
8099 mv conftest.tail conftest.defines
8100 done
8101 rm -f conftest.defines
8102 echo ' fi # grep' >>$CONFIG_STATUS
8103 echo >>$CONFIG_STATUS
8105 # Break up conftest.undefs because some shells have a limit on the size
8106 # of here documents, and old seds have small limits too (100 cmds).
8107 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8108 rm -f conftest.tail
8109 while grep . conftest.undefs >/dev/null
8111 # Write a limited-size here document to $tmp/undefs.sed.
8112 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8113 # Speed up: don't consider the non `#undef'
8114 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8115 # Work around the forget-to-reset-the-flag bug.
8116 echo 't clr' >>$CONFIG_STATUS
8117 echo ': clr' >>$CONFIG_STATUS
8118 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8119 echo 'CEOF
8120 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8121 rm -f $tmp/in
8122 mv $tmp/out $tmp/in
8123 ' >>$CONFIG_STATUS
8124 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8125 rm -f conftest.undefs
8126 mv conftest.tail conftest.undefs
8127 done
8128 rm -f conftest.undefs
8130 cat >>$CONFIG_STATUS <<\_ACEOF
8131 # Let's still pretend it is `configure' which instantiates (i.e., don't
8132 # use $as_me), people would be surprised to read:
8133 # /* config.h. Generated by config.status. */
8134 if test x"$ac_file" = x-; then
8135 echo "/* Generated by configure. */" >$tmp/config.h
8136 else
8137 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8139 cat $tmp/in >>$tmp/config.h
8140 rm -f $tmp/in
8141 if test x"$ac_file" != x-; then
8142 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8143 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8144 echo "$as_me: $ac_file is unchanged" >&6;}
8145 else
8146 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8147 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8148 X"$ac_file" : 'X\(//\)[^/]' \| \
8149 X"$ac_file" : 'X\(//\)$' \| \
8150 X"$ac_file" : 'X\(/\)' \| \
8151 . : '\(.\)' 2>/dev/null ||
8152 echo X"$ac_file" |
8153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8154 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8155 /^X\(\/\/\)$/{ s//\1/; q; }
8156 /^X\(\/\).*/{ s//\1/; q; }
8157 s/.*/./; q'`
8158 { if $as_mkdir_p; then
8159 mkdir -p "$ac_dir"
8160 else
8161 as_dir="$ac_dir"
8162 as_dirs=
8163 while test ! -d "$as_dir"; do
8164 as_dirs="$as_dir $as_dirs"
8165 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8167 X"$as_dir" : 'X\(//\)[^/]' \| \
8168 X"$as_dir" : 'X\(//\)$' \| \
8169 X"$as_dir" : 'X\(/\)' \| \
8170 . : '\(.\)' 2>/dev/null ||
8171 echo X"$as_dir" |
8172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8173 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8174 /^X\(\/\/\)$/{ s//\1/; q; }
8175 /^X\(\/\).*/{ s//\1/; q; }
8176 s/.*/./; q'`
8177 done
8178 test ! -n "$as_dirs" || mkdir $as_dirs
8179 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8180 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8181 { (exit 1); exit 1; }; }; }
8183 rm -f $ac_file
8184 mv $tmp/config.h $ac_file
8186 else
8187 cat $tmp/config.h
8188 rm -f $tmp/config.h
8190 # Compute $ac_file's index in $config_headers.
8191 _am_stamp_count=1
8192 for _am_header in $config_headers :; do
8193 case $_am_header in
8194 $ac_file | $ac_file:* )
8195 break ;;
8197 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8198 esac
8199 done
8200 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8201 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8202 X$ac_file : 'X\(//\)[^/]' \| \
8203 X$ac_file : 'X\(//\)$' \| \
8204 X$ac_file : 'X\(/\)' \| \
8205 . : '\(.\)' 2>/dev/null ||
8206 echo X$ac_file |
8207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8208 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8209 /^X\(\/\/\)$/{ s//\1/; q; }
8210 /^X\(\/\).*/{ s//\1/; q; }
8211 s/.*/./; q'`/stamp-h$_am_stamp_count
8212 done
8213 _ACEOF
8214 cat >>$CONFIG_STATUS <<\_ACEOF
8217 # CONFIG_LINKS section.
8220 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8221 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8222 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8224 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8225 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8227 if test ! -r $srcdir/$ac_source; then
8228 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8229 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8230 { (exit 1); exit 1; }; }
8232 rm -f $ac_dest
8234 # Make relative symlinks.
8235 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8236 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8237 X"$ac_dest" : 'X\(//\)[^/]' \| \
8238 X"$ac_dest" : 'X\(//\)$' \| \
8239 X"$ac_dest" : 'X\(/\)' \| \
8240 . : '\(.\)' 2>/dev/null ||
8241 echo X"$ac_dest" |
8242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8243 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8244 /^X\(\/\/\)$/{ s//\1/; q; }
8245 /^X\(\/\).*/{ s//\1/; q; }
8246 s/.*/./; q'`
8247 { if $as_mkdir_p; then
8248 mkdir -p "$ac_dest_dir"
8249 else
8250 as_dir="$ac_dest_dir"
8251 as_dirs=
8252 while test ! -d "$as_dir"; do
8253 as_dirs="$as_dir $as_dirs"
8254 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8255 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8256 X"$as_dir" : 'X\(//\)[^/]' \| \
8257 X"$as_dir" : 'X\(//\)$' \| \
8258 X"$as_dir" : 'X\(/\)' \| \
8259 . : '\(.\)' 2>/dev/null ||
8260 echo X"$as_dir" |
8261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8262 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8263 /^X\(\/\/\)$/{ s//\1/; q; }
8264 /^X\(\/\).*/{ s//\1/; q; }
8265 s/.*/./; q'`
8266 done
8267 test ! -n "$as_dirs" || mkdir $as_dirs
8268 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8269 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8270 { (exit 1); exit 1; }; }; }
8272 ac_builddir=.
8274 if test "$ac_dest_dir" != .; then
8275 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8276 # A "../" for each directory in $ac_dir_suffix.
8277 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8278 else
8279 ac_dir_suffix= ac_top_builddir=
8282 case $srcdir in
8283 .) # No --srcdir option. We are building in place.
8284 ac_srcdir=.
8285 if test -z "$ac_top_builddir"; then
8286 ac_top_srcdir=.
8287 else
8288 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8289 fi ;;
8290 [\\/]* | ?:[\\/]* ) # Absolute path.
8291 ac_srcdir=$srcdir$ac_dir_suffix;
8292 ac_top_srcdir=$srcdir ;;
8293 *) # Relative path.
8294 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8295 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8296 esac
8298 # Do not use `cd foo && pwd` to compute absolute paths, because
8299 # the directories may not exist.
8300 case `pwd` in
8301 .) ac_abs_builddir="$ac_dest_dir";;
8303 case "$ac_dest_dir" in
8304 .) ac_abs_builddir=`pwd`;;
8305 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
8306 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
8307 esac;;
8308 esac
8309 case $ac_abs_builddir in
8310 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8312 case ${ac_top_builddir}. in
8313 .) ac_abs_top_builddir=$ac_abs_builddir;;
8314 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8315 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8316 esac;;
8317 esac
8318 case $ac_abs_builddir in
8319 .) ac_abs_srcdir=$ac_srcdir;;
8321 case $ac_srcdir in
8322 .) ac_abs_srcdir=$ac_abs_builddir;;
8323 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8324 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8325 esac;;
8326 esac
8327 case $ac_abs_builddir in
8328 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8330 case $ac_top_srcdir in
8331 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8332 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8333 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8334 esac;;
8335 esac
8338 case $srcdir in
8339 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
8340 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
8341 esac
8343 # Try a symlink, then a hard link, then a copy.
8344 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8345 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8346 cp -p $srcdir/$ac_source $ac_dest ||
8347 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8348 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8349 { (exit 1); exit 1; }; }
8350 done
8351 _ACEOF
8352 cat >>$CONFIG_STATUS <<\_ACEOF
8355 # CONFIG_COMMANDS section.
8357 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8358 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8359 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8360 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8361 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8362 X"$ac_dest" : 'X\(//\)[^/]' \| \
8363 X"$ac_dest" : 'X\(//\)$' \| \
8364 X"$ac_dest" : 'X\(/\)' \| \
8365 . : '\(.\)' 2>/dev/null ||
8366 echo X"$ac_dest" |
8367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8368 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8369 /^X\(\/\/\)$/{ s//\1/; q; }
8370 /^X\(\/\).*/{ s//\1/; q; }
8371 s/.*/./; q'`
8372 { if $as_mkdir_p; then
8373 mkdir -p "$ac_dir"
8374 else
8375 as_dir="$ac_dir"
8376 as_dirs=
8377 while test ! -d "$as_dir"; do
8378 as_dirs="$as_dir $as_dirs"
8379 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8381 X"$as_dir" : 'X\(//\)[^/]' \| \
8382 X"$as_dir" : 'X\(//\)$' \| \
8383 X"$as_dir" : 'X\(/\)' \| \
8384 . : '\(.\)' 2>/dev/null ||
8385 echo X"$as_dir" |
8386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8388 /^X\(\/\/\)$/{ s//\1/; q; }
8389 /^X\(\/\).*/{ s//\1/; q; }
8390 s/.*/./; q'`
8391 done
8392 test ! -n "$as_dirs" || mkdir $as_dirs
8393 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8394 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8395 { (exit 1); exit 1; }; }; }
8397 ac_builddir=.
8399 if test "$ac_dir" != .; then
8400 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8401 # A "../" for each directory in $ac_dir_suffix.
8402 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8403 else
8404 ac_dir_suffix= ac_top_builddir=
8407 case $srcdir in
8408 .) # No --srcdir option. We are building in place.
8409 ac_srcdir=.
8410 if test -z "$ac_top_builddir"; then
8411 ac_top_srcdir=.
8412 else
8413 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8414 fi ;;
8415 [\\/]* | ?:[\\/]* ) # Absolute path.
8416 ac_srcdir=$srcdir$ac_dir_suffix;
8417 ac_top_srcdir=$srcdir ;;
8418 *) # Relative path.
8419 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8420 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8421 esac
8423 # Do not use `cd foo && pwd` to compute absolute paths, because
8424 # the directories may not exist.
8425 case `pwd` in
8426 .) ac_abs_builddir="$ac_dir";;
8428 case "$ac_dir" in
8429 .) ac_abs_builddir=`pwd`;;
8430 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8431 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8432 esac;;
8433 esac
8434 case $ac_abs_builddir in
8435 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8437 case ${ac_top_builddir}. in
8438 .) ac_abs_top_builddir=$ac_abs_builddir;;
8439 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8440 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8441 esac;;
8442 esac
8443 case $ac_abs_builddir in
8444 .) ac_abs_srcdir=$ac_srcdir;;
8446 case $ac_srcdir in
8447 .) ac_abs_srcdir=$ac_abs_builddir;;
8448 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8449 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8450 esac;;
8451 esac
8452 case $ac_abs_builddir in
8453 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8455 case $ac_top_srcdir in
8456 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8457 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8458 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8459 esac;;
8460 esac
8463 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8464 echo "$as_me: executing $ac_dest commands" >&6;}
8465 case $ac_dest in
8466 default-1 )
8467 # Only add multilib support code if we just rebuilt the top-level
8468 # Makefile.
8469 case " $CONFIG_FILES " in
8470 *" Makefile "*)
8471 ac_file=Makefile . ${multi_basedir}/config-ml.in
8473 esac ;;
8474 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8475 # Strip MF so we end up with the name of the file.
8476 mf=`echo "$mf" | sed -e 's/:.*$//'`
8477 # Check whether this is an Automake generated Makefile or not.
8478 # We used to match only the files named `Makefile.in', but
8479 # some people rename them; so instead we look at the file content.
8480 # Grep'ing the first line is not enough: some people post-process
8481 # each Makefile.in and add a new line on top of each file to say so.
8482 # So let's grep whole file.
8483 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8484 dirpart=`(dirname "$mf") 2>/dev/null ||
8485 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8486 X"$mf" : 'X\(//\)[^/]' \| \
8487 X"$mf" : 'X\(//\)$' \| \
8488 X"$mf" : 'X\(/\)' \| \
8489 . : '\(.\)' 2>/dev/null ||
8490 echo X"$mf" |
8491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8492 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8493 /^X\(\/\/\)$/{ s//\1/; q; }
8494 /^X\(\/\).*/{ s//\1/; q; }
8495 s/.*/./; q'`
8496 else
8497 continue
8499 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8500 # Extract the definition of DEP_FILES from the Makefile without
8501 # running `make'.
8502 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8503 test -z "$DEPDIR" && continue
8504 # When using ansi2knr, U may be empty or an underscore; expand it
8505 U=`sed -n 's/^U = //p' < "$mf"`
8506 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8507 # We invoke sed twice because it is the simplest approach to
8508 # changing $(DEPDIR) to its actual value in the expansion.
8509 for file in `sed -n '
8510 /^DEP_FILES = .*\\\\$/ {
8511 s/^DEP_FILES = //
8512 :loop
8513 s/\\\\$//
8516 /\\\\$/ b loop
8519 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8520 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8521 # Make sure the directory exists.
8522 test -f "$dirpart/$file" && continue
8523 fdir=`(dirname "$file") 2>/dev/null ||
8524 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8525 X"$file" : 'X\(//\)[^/]' \| \
8526 X"$file" : 'X\(//\)$' \| \
8527 X"$file" : 'X\(/\)' \| \
8528 . : '\(.\)' 2>/dev/null ||
8529 echo X"$file" |
8530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8532 /^X\(\/\/\)$/{ s//\1/; q; }
8533 /^X\(\/\).*/{ s//\1/; q; }
8534 s/.*/./; q'`
8535 { if $as_mkdir_p; then
8536 mkdir -p $dirpart/$fdir
8537 else
8538 as_dir=$dirpart/$fdir
8539 as_dirs=
8540 while test ! -d "$as_dir"; do
8541 as_dirs="$as_dir $as_dirs"
8542 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8543 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8544 X"$as_dir" : 'X\(//\)[^/]' \| \
8545 X"$as_dir" : 'X\(//\)$' \| \
8546 X"$as_dir" : 'X\(/\)' \| \
8547 . : '\(.\)' 2>/dev/null ||
8548 echo X"$as_dir" |
8549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8551 /^X\(\/\/\)$/{ s//\1/; q; }
8552 /^X\(\/\).*/{ s//\1/; q; }
8553 s/.*/./; q'`
8554 done
8555 test ! -n "$as_dirs" || mkdir $as_dirs
8556 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8557 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8558 { (exit 1); exit 1; }; }; }
8560 # echo "creating $dirpart/$file"
8561 echo '# dummy' > "$dirpart/$file"
8562 done
8563 done
8565 include ) test -d include || mkdir include ;;
8566 src )
8567 test -d src || mkdir src
8568 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
8570 esac
8571 done
8572 _ACEOF
8574 cat >>$CONFIG_STATUS <<\_ACEOF
8576 { (exit 0); exit 0; }
8577 _ACEOF
8578 chmod +x $CONFIG_STATUS
8579 ac_clean_files=$ac_clean_files_save
8582 # configure is writing to config.log, and then calls config.status.
8583 # config.status does its own redirection, appending to config.log.
8584 # Unfortunately, on DOS this fails, as config.log is still kept open
8585 # by configure, so config.status won't be able to write to it; its
8586 # output is simply discarded. So we exec the FD to /dev/null,
8587 # effectively closing config.log, so it can be properly (re)opened and
8588 # appended to by config.status. When coming back to configure, we
8589 # need to make the FD available again.
8590 if test "$no_create" != yes; then
8591 ac_cs_success=:
8592 ac_config_status_args=
8593 test "$silent" = yes &&
8594 ac_config_status_args="$ac_config_status_args --quiet"
8595 exec 5>/dev/null
8596 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8597 exec 5>>config.log
8598 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8599 # would make configure fail if this is the last instruction.
8600 $ac_cs_success || { (exit 1); exit 1; }