2005-01-22 Paul Brook <paul@codesourcery.com>
[official-gcc.git] / libffi / configure
blobd77e94b49aba4ee46a69ccabb84e1b712808d2f0
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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 gcc_version_trigger gcc_version_full gcc_version tool_include_dir 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.9"
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 # We used to keeping the `.' as first argument, in order to
1632 # allow $(mkdir_p) to be used without argument. As in
1633 # $(mkdir_p) $(somedir)
1634 # where $(somedir) is conditionally defined. However this is wrong
1635 # for two reasons:
1636 # 1. if the package is installed by a user who cannot write `.'
1637 # make install will fail,
1638 # 2. the above comment should most certainly read
1639 # $(mkdir_p) $(DESTDIR)$(somedir)
1640 # so it does not work when $(somedir) is undefined and
1641 # $(DESTDIR) is not.
1642 # To support the latter case, we have to write
1643 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1644 # so the `.' trick is pointless.
1645 mkdir_p='mkdir -p --'
1646 else
1647 # On NextStep and OpenStep, the `mkdir' command does not
1648 # recognize any option. It will interpret all options as
1649 # directories to create, and then abort because `.' already
1650 # exists.
1651 for d in ./-p ./--version;
1653 test -d $d && rmdir $d
1654 done
1655 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1656 if test -f "$ac_aux_dir/mkinstalldirs"; then
1657 mkdir_p='$(mkinstalldirs)'
1658 else
1659 mkdir_p='$(install_sh) -d'
1663 for ac_prog in gawk mawk nawk awk
1665 # Extract the first word of "$ac_prog", so it can be a program name with args.
1666 set dummy $ac_prog; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_AWK+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 else
1672 if test -n "$AWK"; then
1673 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1674 else
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1678 IFS=$as_save_IFS
1679 test -z "$as_dir" && as_dir=.
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_AWK="$ac_prog"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684 break 2
1686 done
1687 done
1691 AWK=$ac_cv_prog_AWK
1692 if test -n "$AWK"; then
1693 echo "$as_me:$LINENO: result: $AWK" >&5
1694 echo "${ECHO_T}$AWK" >&6
1695 else
1696 echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1700 test -n "$AWK" && break
1701 done
1703 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1704 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1705 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1706 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1707 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 else
1709 cat >conftest.make <<\_ACEOF
1710 all:
1711 @echo 'ac_maketemp="$(MAKE)"'
1712 _ACEOF
1713 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1714 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1715 if test -n "$ac_maketemp"; then
1716 eval ac_cv_prog_make_${ac_make}_set=yes
1717 else
1718 eval ac_cv_prog_make_${ac_make}_set=no
1720 rm -f conftest.make
1722 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1723 echo "$as_me:$LINENO: result: yes" >&5
1724 echo "${ECHO_T}yes" >&6
1725 SET_MAKE=
1726 else
1727 echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1729 SET_MAKE="MAKE=${MAKE-make}"
1732 rm -rf .tst 2>/dev/null
1733 mkdir .tst 2>/dev/null
1734 if test -d .tst; then
1735 am__leading_dot=.
1736 else
1737 am__leading_dot=_
1739 rmdir .tst 2>/dev/null
1741 # test to see if srcdir already configured
1742 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1743 test -f $srcdir/config.status; then
1744 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1745 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1746 { (exit 1); exit 1; }; }
1749 # test whether we have cygpath
1750 if test -z "$CYGPATH_W"; then
1751 if (cygpath --version) >/dev/null 2>/dev/null; then
1752 CYGPATH_W='cygpath -w'
1753 else
1754 CYGPATH_W=echo
1759 # Define the identity of the package.
1760 PACKAGE='libffi'
1761 VERSION='2.1'
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE "$PACKAGE"
1766 _ACEOF
1769 cat >>confdefs.h <<_ACEOF
1770 #define VERSION "$VERSION"
1771 _ACEOF
1773 # Some tools Automake needs.
1775 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1778 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1781 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1784 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1787 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1789 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1791 # Installed binaries are usually stripped using `strip' when the user
1792 # run `make install-strip'. However `strip' might not be the right
1793 # tool to use in cross-compilation environments, therefore Automake
1794 # will honor the `STRIP' environment variable to overrule this program.
1795 if test "$cross_compiling" != no; then
1796 if test -n "$ac_tool_prefix"; then
1797 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1798 set dummy ${ac_tool_prefix}strip; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_STRIP+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 else
1804 if test -n "$STRIP"; then
1805 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1806 else
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808 for as_dir in $PATH
1810 IFS=$as_save_IFS
1811 test -z "$as_dir" && as_dir=.
1812 for ac_exec_ext in '' $ac_executable_extensions; do
1813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1816 break 2
1818 done
1819 done
1823 STRIP=$ac_cv_prog_STRIP
1824 if test -n "$STRIP"; then
1825 echo "$as_me:$LINENO: result: $STRIP" >&5
1826 echo "${ECHO_T}$STRIP" >&6
1827 else
1828 echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1833 if test -z "$ac_cv_prog_STRIP"; then
1834 ac_ct_STRIP=$STRIP
1835 # Extract the first word of "strip", so it can be a program name with args.
1836 set dummy strip; ac_word=$2
1837 echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842 if test -n "$ac_ct_STRIP"; then
1843 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1844 else
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1848 IFS=$as_save_IFS
1849 test -z "$as_dir" && as_dir=.
1850 for ac_exec_ext in '' $ac_executable_extensions; do
1851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852 ac_cv_prog_ac_ct_STRIP="strip"
1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854 break 2
1856 done
1857 done
1859 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1862 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1863 if test -n "$ac_ct_STRIP"; then
1864 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1865 echo "${ECHO_T}$ac_ct_STRIP" >&6
1866 else
1867 echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1871 STRIP=$ac_ct_STRIP
1872 else
1873 STRIP="$ac_cv_prog_STRIP"
1877 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1879 # We need awk for the "check" target. The system "awk" is bad on
1880 # some platforms.
1881 # Always define AMTAR for backward compatibility.
1883 AMTAR=${AMTAR-"${am_missing_run}tar"}
1885 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1892 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1893 # We must force CC to /not/ be precious variables; otherwise
1894 # the wrong, non-multilib-adjusted value will be used in multilibs.
1895 # As a side effect, we have to subst CFLAGS ourselves.
1899 ac_ext=c
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904 if test -n "$ac_tool_prefix"; then
1905 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1906 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_CC+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912 if test -n "$CC"; then
1913 ac_cv_prog_CC="$CC" # Let the user override the test.
1914 else
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 for ac_exec_ext in '' $ac_executable_extensions; do
1921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924 break 2
1926 done
1927 done
1931 CC=$ac_cv_prog_CC
1932 if test -n "$CC"; then
1933 echo "$as_me:$LINENO: result: $CC" >&5
1934 echo "${ECHO_T}$CC" >&6
1935 else
1936 echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1941 if test -z "$ac_cv_prog_CC"; then
1942 ac_ct_CC=$CC
1943 # Extract the first word of "gcc", so it can be a program name with args.
1944 set dummy gcc; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950 if test -n "$ac_ct_CC"; then
1951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_ac_ct_CC="gcc"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 break 2
1964 done
1965 done
1969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970 if test -n "$ac_ct_CC"; then
1971 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972 echo "${ECHO_T}$ac_ct_CC" >&6
1973 else
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1978 CC=$ac_ct_CC
1979 else
1980 CC="$ac_cv_prog_CC"
1983 if test -z "$CC"; then
1984 if test -n "$ac_tool_prefix"; then
1985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1986 set dummy ${ac_tool_prefix}cc; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
1994 else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_CC="${ac_tool_prefix}cc"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 break 2
2006 done
2007 done
2011 CC=$ac_cv_prog_CC
2012 if test -n "$CC"; then
2013 echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6
2015 else
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2021 if test -z "$ac_cv_prog_CC"; then
2022 ac_ct_CC=$CC
2023 # Extract the first word of "cc", so it can be a program name with args.
2024 set dummy cc; ac_word=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030 if test -n "$ac_ct_CC"; then
2031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2032 else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040 ac_cv_prog_ac_ct_CC="cc"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 break 2
2044 done
2045 done
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6
2053 else
2054 echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2058 CC=$ac_ct_CC
2059 else
2060 CC="$ac_cv_prog_CC"
2064 if test -z "$CC"; then
2065 # Extract the first word of "cc", so it can be a program name with args.
2066 set dummy cc; ac_word=$2
2067 echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069 if test "${ac_cv_prog_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072 if test -n "$CC"; then
2073 ac_cv_prog_CC="$CC" # Let the user override the test.
2074 else
2075 ac_prog_rejected=no
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2084 ac_prog_rejected=yes
2085 continue
2087 ac_cv_prog_CC="cc"
2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 break 2
2091 done
2092 done
2094 if test $ac_prog_rejected = yes; then
2095 # We found a bogon in the path, so make sure we never use it.
2096 set dummy $ac_cv_prog_CC
2097 shift
2098 if test $# != 0; then
2099 # We chose a different compiler from the bogus one.
2100 # However, it has the same basename, so the bogon will be chosen
2101 # first if we set CC to just the basename; use the full file name.
2102 shift
2103 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2108 CC=$ac_cv_prog_CC
2109 if test -n "$CC"; then
2110 echo "$as_me:$LINENO: result: $CC" >&5
2111 echo "${ECHO_T}$CC" >&6
2112 else
2113 echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2118 if test -z "$CC"; then
2119 if test -n "$ac_tool_prefix"; then
2120 for ac_prog in cl
2122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2124 echo "$as_me:$LINENO: checking for $ac_word" >&5
2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126 if test "${ac_cv_prog_CC+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129 if test -n "$CC"; then
2130 ac_cv_prog_CC="$CC" # Let the user override the test.
2131 else
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 break 2
2143 done
2144 done
2148 CC=$ac_cv_prog_CC
2149 if test -n "$CC"; then
2150 echo "$as_me:$LINENO: result: $CC" >&5
2151 echo "${ECHO_T}$CC" >&6
2152 else
2153 echo "$as_me:$LINENO: result: no" >&5
2154 echo "${ECHO_T}no" >&6
2157 test -n "$CC" && break
2158 done
2160 if test -z "$CC"; then
2161 ac_ct_CC=$CC
2162 for ac_prog in cl
2164 # Extract the first word of "$ac_prog", so it can be a program name with args.
2165 set dummy $ac_prog; ac_word=$2
2166 echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2168 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171 if test -n "$ac_ct_CC"; then
2172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2173 else
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 for as_dir in $PATH
2177 IFS=$as_save_IFS
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181 ac_cv_prog_ac_ct_CC="$ac_prog"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 break 2
2185 done
2186 done
2190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2191 if test -n "$ac_ct_CC"; then
2192 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2193 echo "${ECHO_T}$ac_ct_CC" >&6
2194 else
2195 echo "$as_me:$LINENO: result: no" >&5
2196 echo "${ECHO_T}no" >&6
2199 test -n "$ac_ct_CC" && break
2200 done
2202 CC=$ac_ct_CC
2208 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: no acceptable C compiler found in \$PATH
2211 See \`config.log' for more details." >&2;}
2212 { (exit 1); exit 1; }; }
2214 # Provide some information about the compiler.
2215 echo "$as_me:$LINENO:" \
2216 "checking for C compiler version" >&5
2217 ac_compiler=`set X $ac_compile; echo $2`
2218 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2219 (eval $ac_compiler --version </dev/null >&5) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }
2223 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2224 (eval $ac_compiler -v </dev/null >&5) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }
2228 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2229 (eval $ac_compiler -V </dev/null >&5) 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }
2234 cat >conftest.$ac_ext <<_ACEOF
2235 /* confdefs.h. */
2236 _ACEOF
2237 cat confdefs.h >>conftest.$ac_ext
2238 cat >>conftest.$ac_ext <<_ACEOF
2239 /* end confdefs.h. */
2242 main ()
2246 return 0;
2248 _ACEOF
2249 ac_clean_files_save=$ac_clean_files
2250 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2251 # Try to create an executable without -o first, disregard a.out.
2252 # It will help us diagnose broken compilers, and finding out an intuition
2253 # of exeext.
2254 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2255 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2256 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2257 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2258 (eval $ac_link_default) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; then
2262 # Find the output, starting from the most likely. This scheme is
2263 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2264 # resort.
2266 # Be careful to initialize this variable, since it used to be cached.
2267 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2268 ac_cv_exeext=
2269 # b.out is created by i960 compilers.
2270 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2272 test -f "$ac_file" || continue
2273 case $ac_file in
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2276 conftest.$ac_ext )
2277 # This is the source file.
2279 [ab].out )
2280 # We found the default executable, but exeext='' is most
2281 # certainly right.
2282 break;;
2283 *.* )
2284 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285 # FIXME: I believe we export ac_cv_exeext for Libtool,
2286 # but it would be cool to find out if it's true. Does anybody
2287 # maintain Libtool? --akim.
2288 export ac_cv_exeext
2289 break;;
2291 break;;
2292 esac
2293 done
2294 else
2295 echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2298 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: C compiler cannot create executables
2301 See \`config.log' for more details." >&2;}
2302 { (exit 77); exit 77; }; }
2305 ac_exeext=$ac_cv_exeext
2306 echo "$as_me:$LINENO: result: $ac_file" >&5
2307 echo "${ECHO_T}$ac_file" >&6
2309 # Check the compiler produces executables we can run. If not, either
2310 # the compiler is broken, or we cross compile.
2311 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2312 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2313 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2314 # If not cross compiling, check that we can run a simple program.
2315 if test "$cross_compiling" != yes; then
2316 if { ac_try='./$ac_file'
2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 (eval $ac_try) 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; }; then
2322 cross_compiling=no
2323 else
2324 if test "$cross_compiling" = maybe; then
2325 cross_compiling=yes
2326 else
2327 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2328 If you meant to cross compile, use \`--host'.
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: cannot run C compiled programs.
2331 If you meant to cross compile, use \`--host'.
2332 See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2337 echo "$as_me:$LINENO: result: yes" >&5
2338 echo "${ECHO_T}yes" >&6
2340 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2341 ac_clean_files=$ac_clean_files_save
2342 # Check the compiler produces executables we can run. If not, either
2343 # the compiler is broken, or we cross compile.
2344 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2345 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2346 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2347 echo "${ECHO_T}$cross_compiling" >&6
2349 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2350 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2352 (eval $ac_link) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; then
2356 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2357 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2358 # work properly (i.e., refer to `conftest.exe'), while it won't with
2359 # `rm'.
2360 for ac_file in conftest.exe conftest conftest.*; do
2361 test -f "$ac_file" || continue
2362 case $ac_file in
2363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2364 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2365 export ac_cv_exeext
2366 break;;
2367 * ) break;;
2368 esac
2369 done
2370 else
2371 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2374 See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2378 rm -f conftest$ac_cv_exeext
2379 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2380 echo "${ECHO_T}$ac_cv_exeext" >&6
2382 rm -f conftest.$ac_ext
2383 EXEEXT=$ac_cv_exeext
2384 ac_exeext=$EXEEXT
2385 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2386 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2387 if test "${ac_cv_objext+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390 cat >conftest.$ac_ext <<_ACEOF
2391 /* confdefs.h. */
2392 _ACEOF
2393 cat confdefs.h >>conftest.$ac_ext
2394 cat >>conftest.$ac_ext <<_ACEOF
2395 /* end confdefs.h. */
2398 main ()
2402 return 0;
2404 _ACEOF
2405 rm -f conftest.o conftest.obj
2406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2407 (eval $ac_compile) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; then
2411 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2412 case $ac_file in
2413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2414 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2415 break;;
2416 esac
2417 done
2418 else
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2422 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2423 See \`config.log' for more details." >&5
2424 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2425 See \`config.log' for more details." >&2;}
2426 { (exit 1); exit 1; }; }
2429 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2431 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2432 echo "${ECHO_T}$ac_cv_objext" >&6
2433 OBJEXT=$ac_cv_objext
2434 ac_objext=$OBJEXT
2435 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2436 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2437 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440 cat >conftest.$ac_ext <<_ACEOF
2441 /* confdefs.h. */
2442 _ACEOF
2443 cat confdefs.h >>conftest.$ac_ext
2444 cat >>conftest.$ac_ext <<_ACEOF
2445 /* end confdefs.h. */
2448 main ()
2450 #ifndef __GNUC__
2451 choke me
2452 #endif
2455 return 0;
2457 _ACEOF
2458 rm -f conftest.$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460 (eval $ac_compile) 2>conftest.er1
2461 ac_status=$?
2462 grep -v '^ *+' conftest.er1 >conftest.err
2463 rm -f conftest.er1
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -z "$ac_c_werror_flag"
2468 || test ! -s conftest.err'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 (eval $ac_try) 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; } &&
2474 { ac_try='test -s conftest.$ac_objext'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476 (eval $ac_try) 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2480 ac_compiler_gnu=yes
2481 else
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2485 ac_compiler_gnu=no
2487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2488 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2491 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2492 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2493 GCC=`test $ac_compiler_gnu = yes && echo yes`
2494 ac_test_CFLAGS=${CFLAGS+set}
2495 ac_save_CFLAGS=$CFLAGS
2496 CFLAGS="-g"
2497 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2498 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2499 if test "${ac_cv_prog_cc_g+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 cat >conftest.$ac_ext <<_ACEOF
2503 /* confdefs.h. */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2510 main ()
2514 return 0;
2516 _ACEOF
2517 rm -f conftest.$ac_objext
2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519 (eval $ac_compile) 2>conftest.er1
2520 ac_status=$?
2521 grep -v '^ *+' conftest.er1 >conftest.err
2522 rm -f conftest.er1
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } &&
2526 { ac_try='test -z "$ac_c_werror_flag"
2527 || test ! -s conftest.err'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 (eval $ac_try) 2>&5
2530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 (eval $ac_try) 2>&5
2536 ac_status=$?
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2539 ac_cv_prog_cc_g=yes
2540 else
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2544 ac_cv_prog_cc_g=no
2546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2548 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2549 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2550 if test "$ac_test_CFLAGS" = set; then
2551 CFLAGS=$ac_save_CFLAGS
2552 elif test $ac_cv_prog_cc_g = yes; then
2553 if test "$GCC" = yes; then
2554 CFLAGS="-g -O2"
2555 else
2556 CFLAGS="-g"
2558 else
2559 if test "$GCC" = yes; then
2560 CFLAGS="-O2"
2561 else
2562 CFLAGS=
2565 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2566 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2567 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570 ac_cv_prog_cc_stdc=no
2571 ac_save_CC=$CC
2572 cat >conftest.$ac_ext <<_ACEOF
2573 /* confdefs.h. */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2578 #include <stdarg.h>
2579 #include <stdio.h>
2580 #include <sys/types.h>
2581 #include <sys/stat.h>
2582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2583 struct buf { int x; };
2584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2585 static char *e (p, i)
2586 char **p;
2587 int i;
2589 return p[i];
2591 static char *f (char * (*g) (char **, int), char **p, ...)
2593 char *s;
2594 va_list v;
2595 va_start (v,p);
2596 s = g (p, va_arg (v,int));
2597 va_end (v);
2598 return s;
2601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2602 function prototypes and stuff, but not '\xHH' hex character constants.
2603 These don't provoke an error unfortunately, instead are silently treated
2604 as 'x'. The following induces an error, until -std1 is added to get
2605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2606 array size at least. It's necessary to write '\x00'==0 to get something
2607 that's true only with -std1. */
2608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2610 int test (int i, double x);
2611 struct s1 {int (*f) (int a);};
2612 struct s2 {int (*f) (double a);};
2613 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2614 int argc;
2615 char **argv;
2617 main ()
2619 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2621 return 0;
2623 _ACEOF
2624 # Don't try gcc -ansi; that turns off useful extensions and
2625 # breaks some systems' header files.
2626 # AIX -qlanglvl=ansi
2627 # Ultrix and OSF/1 -std1
2628 # HP-UX 10.20 and later -Ae
2629 # HP-UX older versions -Aa -D_HPUX_SOURCE
2630 # SVR4 -Xc -D__EXTENSIONS__
2631 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2633 CC="$ac_save_CC $ac_arg"
2634 rm -f conftest.$ac_objext
2635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636 (eval $ac_compile) 2>conftest.er1
2637 ac_status=$?
2638 grep -v '^ *+' conftest.er1 >conftest.err
2639 rm -f conftest.er1
2640 cat conftest.err >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 ac_cv_prog_cc_stdc=$ac_arg
2657 break
2658 else
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2663 rm -f conftest.err conftest.$ac_objext
2664 done
2665 rm -f conftest.$ac_ext conftest.$ac_objext
2666 CC=$ac_save_CC
2670 case "x$ac_cv_prog_cc_stdc" in
2671 x|xno)
2672 echo "$as_me:$LINENO: result: none needed" >&5
2673 echo "${ECHO_T}none needed" >&6 ;;
2675 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2676 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2677 CC="$CC $ac_cv_prog_cc_stdc" ;;
2678 esac
2680 # Some people use a C++ compiler to compile C. Since we use `exit',
2681 # in C++ we need to declare it. In case someone uses the same compiler
2682 # for both compiling C and C++ we need to have the C++ compiler decide
2683 # the declaration of exit, since it's the most demanding environment.
2684 cat >conftest.$ac_ext <<_ACEOF
2685 #ifndef __cplusplus
2686 choke me
2687 #endif
2688 _ACEOF
2689 rm -f conftest.$ac_objext
2690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691 (eval $ac_compile) 2>conftest.er1
2692 ac_status=$?
2693 grep -v '^ *+' conftest.er1 >conftest.err
2694 rm -f conftest.er1
2695 cat conftest.err >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } &&
2698 { ac_try='test -z "$ac_c_werror_flag"
2699 || test ! -s conftest.err'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 (eval $ac_try) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } &&
2705 { ac_try='test -s conftest.$ac_objext'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2711 for ac_declaration in \
2712 '' \
2713 'extern "C" void std::exit (int) throw (); using std::exit;' \
2714 'extern "C" void std::exit (int); using std::exit;' \
2715 'extern "C" void exit (int) throw ();' \
2716 'extern "C" void exit (int);' \
2717 'void exit (int);'
2719 cat >conftest.$ac_ext <<_ACEOF
2720 /* confdefs.h. */
2721 _ACEOF
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h. */
2725 $ac_declaration
2726 #include <stdlib.h>
2728 main ()
2730 exit (42);
2732 return 0;
2734 _ACEOF
2735 rm -f conftest.$ac_objext
2736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737 (eval $ac_compile) 2>conftest.er1
2738 ac_status=$?
2739 grep -v '^ *+' conftest.er1 >conftest.err
2740 rm -f conftest.er1
2741 cat conftest.err >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 { ac_try='test -z "$ac_c_werror_flag"
2745 || test ! -s conftest.err'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 (eval $ac_try) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 (eval $ac_try) 2>&5
2754 ac_status=$?
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2758 else
2759 echo "$as_me: failed program was:" >&5
2760 sed 's/^/| /' conftest.$ac_ext >&5
2762 continue
2764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2765 cat >conftest.$ac_ext <<_ACEOF
2766 /* confdefs.h. */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2771 $ac_declaration
2773 main ()
2775 exit (42);
2777 return 0;
2779 _ACEOF
2780 rm -f conftest.$ac_objext
2781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782 (eval $ac_compile) 2>conftest.er1
2783 ac_status=$?
2784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } &&
2789 { ac_try='test -z "$ac_c_werror_flag"
2790 || test ! -s conftest.err'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 (eval $ac_try) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; } &&
2796 { ac_try='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 break
2803 else
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809 done
2810 rm -f conftest*
2811 if test -n "$ac_declaration"; then
2812 echo '#ifdef __cplusplus' >>confdefs.h
2813 echo $ac_declaration >>confdefs.h
2814 echo '#endif' >>confdefs.h
2817 else
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2823 ac_ext=c
2824 ac_cpp='$CPP $CPPFLAGS'
2825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2828 DEPDIR="${am__leading_dot}deps"
2830 ac_config_commands="$ac_config_commands depfiles"
2833 am_make=${MAKE-make}
2834 cat > confinc << 'END'
2835 am__doit:
2836 @echo done
2837 .PHONY: am__doit
2839 # If we don't find an include directive, just comment out the code.
2840 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2841 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2842 am__include="#"
2843 am__quote=
2844 _am_result=none
2845 # First try GNU make style include.
2846 echo "include confinc" > confmf
2847 # We grep out `Entering directory' and `Leaving directory'
2848 # messages which can occur if `w' ends up in MAKEFLAGS.
2849 # In particular we don't look at `^make:' because GNU make might
2850 # be invoked under some other name (usually "gmake"), in which
2851 # case it prints its new name instead of `make'.
2852 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2853 am__include=include
2854 am__quote=
2855 _am_result=GNU
2857 # Now try BSD make style include.
2858 if test "$am__include" = "#"; then
2859 echo '.include "confinc"' > confmf
2860 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2861 am__include=.include
2862 am__quote="\""
2863 _am_result=BSD
2868 echo "$as_me:$LINENO: result: $_am_result" >&5
2869 echo "${ECHO_T}$_am_result" >&6
2870 rm -f confinc confmf
2872 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2873 if test "${enable_dependency_tracking+set}" = set; then
2874 enableval="$enable_dependency_tracking"
2877 if test "x$enable_dependency_tracking" != xno; then
2878 am_depcomp="$ac_aux_dir/depcomp"
2879 AMDEPBACKSLASH='\'
2883 if test "x$enable_dependency_tracking" != xno; then
2884 AMDEP_TRUE=
2885 AMDEP_FALSE='#'
2886 else
2887 AMDEP_TRUE='#'
2888 AMDEP_FALSE=
2894 depcc="$CC" am_compiler_list=
2896 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2897 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2898 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2899 echo $ECHO_N "(cached) $ECHO_C" >&6
2900 else
2901 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2902 # We make a subdir and do the tests there. Otherwise we can end up
2903 # making bogus files that we don't know about and never remove. For
2904 # instance it was reported that on HP-UX the gcc test will end up
2905 # making a dummy file named `D' -- because `-MD' means `put the output
2906 # in D'.
2907 mkdir conftest.dir
2908 # Copy depcomp to subdir because otherwise we won't find it if we're
2909 # using a relative directory.
2910 cp "$am_depcomp" conftest.dir
2911 cd conftest.dir
2912 # We will build objects and dependencies in a subdirectory because
2913 # it helps to detect inapplicable dependency modes. For instance
2914 # both Tru64's cc and ICC support -MD to output dependencies as a
2915 # side effect of compilation, but ICC will put the dependencies in
2916 # the current directory while Tru64 will put them in the object
2917 # directory.
2918 mkdir sub
2920 am_cv_CC_dependencies_compiler_type=none
2921 if test "$am_compiler_list" = ""; then
2922 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2924 for depmode in $am_compiler_list; do
2925 # Setup a source with many dependencies, because some compilers
2926 # like to wrap large dependency lists on column 80 (with \), and
2927 # we should not choose a depcomp mode which is confused by this.
2929 # We need to recreate these files for each test, as the compiler may
2930 # overwrite some of them when testing with obscure command lines.
2931 # This happens at least with the AIX C compiler.
2932 : > sub/conftest.c
2933 for i in 1 2 3 4 5 6; do
2934 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2935 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2936 # Solaris 8's {/usr,}/bin/sh.
2937 touch sub/conftst$i.h
2938 done
2939 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2941 case $depmode in
2942 nosideeffect)
2943 # after this tag, mechanisms are not by side-effect, so they'll
2944 # only be used when explicitly requested
2945 if test "x$enable_dependency_tracking" = xyes; then
2946 continue
2947 else
2948 break
2951 none) break ;;
2952 esac
2953 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2954 # mode. It turns out that the SunPro C++ compiler does not properly
2955 # handle `-M -o', and we need to detect this.
2956 if depmode=$depmode \
2957 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2958 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2959 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2960 >/dev/null 2>conftest.err &&
2961 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2962 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2963 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2964 # icc doesn't choke on unknown options, it will just issue warnings
2965 # or remarks (even with -Werror). So we grep stderr for any message
2966 # that says an option was ignored or not supported.
2967 # When given -MP, icc 7.0 and 7.1 complain thusly:
2968 # icc: Command line warning: ignoring option '-M'; no argument required
2969 # The diagnosis changed in icc 8.0:
2970 # icc: Command line remark: option '-MP' not supported
2971 if (grep 'ignoring option' conftest.err ||
2972 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2973 am_cv_CC_dependencies_compiler_type=$depmode
2974 break
2977 done
2979 cd ..
2980 rm -rf conftest.dir
2981 else
2982 am_cv_CC_dependencies_compiler_type=none
2986 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2987 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2988 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2993 test "x$enable_dependency_tracking" != xno \
2994 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2995 am__fastdepCC_TRUE=
2996 am__fastdepCC_FALSE='#'
2997 else
2998 am__fastdepCC_TRUE='#'
2999 am__fastdepCC_FALSE=
3007 # By default we simply use the C compiler to build assembly code.
3009 test "${CCAS+set}" = set || CCAS=$CC
3010 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3014 if test "x$CC" != xcc; then
3015 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3016 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3017 else
3018 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3019 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3021 set dummy $CC; ac_cc=`echo $2 |
3022 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3023 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3034 main ()
3038 return 0;
3040 _ACEOF
3041 # Make sure it works both with $CC and with simple cc.
3042 # We do the test twice because some compilers refuse to overwrite an
3043 # existing .o file with -o, though they will create one.
3044 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3045 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046 (eval $ac_try) 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051 (eval $ac_try) 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); };
3055 then
3056 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3057 if test "x$CC" != xcc; then
3058 # Test first that cc exists at all.
3059 if { ac_try='cc -c conftest.$ac_ext >&5'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 (eval $ac_try) 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3066 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067 (eval $ac_try) 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072 (eval $ac_try) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); };
3076 then
3077 # cc works too.
3079 else
3080 # cc exists but doesn't like -o.
3081 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3085 else
3086 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3088 rm -f conftest*
3091 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3092 echo "$as_me:$LINENO: result: yes" >&5
3093 echo "${ECHO_T}yes" >&6
3094 else
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3098 cat >>confdefs.h <<\_ACEOF
3099 #define NO_MINUS_C_MINUS_O 1
3100 _ACEOF
3104 # FIXME: we rely on the cache variable name because
3105 # there is no other way.
3106 set dummy $CC
3107 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3108 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3109 # Losing compiler, so override with the script.
3110 # FIXME: It is wrong to rewrite CC.
3111 # But if we don't then we get into trouble of one sort or another.
3112 # A longer-term fix would be to have automake use am__CC in this case,
3113 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3114 CC="$am_aux_dir/compile $CC"
3117 # Check whether --enable-shared or --disable-shared was given.
3118 if test "${enable_shared+set}" = set; then
3119 enableval="$enable_shared"
3120 p=${PACKAGE-default}
3121 case $enableval in
3122 yes) enable_shared=yes ;;
3123 no) enable_shared=no ;;
3125 enable_shared=no
3126 # Look at the argument we got. We use all the common list separators.
3127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3128 for pkg in $enableval; do
3129 if test "X$pkg" = "X$p"; then
3130 enable_shared=yes
3132 done
3133 IFS="$ac_save_ifs"
3135 esac
3136 else
3137 enable_shared=yes
3139 # Check whether --enable-static or --disable-static was given.
3140 if test "${enable_static+set}" = set; then
3141 enableval="$enable_static"
3142 p=${PACKAGE-default}
3143 case $enableval in
3144 yes) enable_static=yes ;;
3145 no) enable_static=no ;;
3147 enable_static=no
3148 # Look at the argument we got. We use all the common list separators.
3149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3150 for pkg in $enableval; do
3151 if test "X$pkg" = "X$p"; then
3152 enable_static=yes
3154 done
3155 IFS="$ac_save_ifs"
3157 esac
3158 else
3159 enable_static=yes
3161 # Check whether --enable-fast-install or --disable-fast-install was given.
3162 if test "${enable_fast_install+set}" = set; then
3163 enableval="$enable_fast_install"
3164 p=${PACKAGE-default}
3165 case $enableval in
3166 yes) enable_fast_install=yes ;;
3167 no) enable_fast_install=no ;;
3169 enable_fast_install=no
3170 # Look at the argument we got. We use all the common list separators.
3171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3172 for pkg in $enableval; do
3173 if test "X$pkg" = "X$p"; then
3174 enable_fast_install=yes
3176 done
3177 IFS="$ac_save_ifs"
3179 esac
3180 else
3181 enable_fast_install=yes
3184 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3185 if test "${with_gnu_ld+set}" = set; then
3186 withval="$with_gnu_ld"
3187 test "$withval" = no || with_gnu_ld=yes
3188 else
3189 with_gnu_ld=no
3191 ac_prog=ld
3192 if test "$GCC" = yes; then
3193 # Check if gcc -print-prog-name=ld gives a path.
3194 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3195 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3196 case $host in
3197 *-*-mingw*)
3198 # gcc leaves a trailing carriage return which upsets mingw
3199 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3201 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3202 esac
3203 case $ac_prog in
3204 # Accept absolute paths.
3205 [\\/]* | [A-Za-z]:[\\/]*)
3206 re_direlt='/[^/][^/]*/\.\./'
3207 # Canonicalize the path of ld
3208 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3209 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3210 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3211 done
3212 test -z "$LD" && LD="$ac_prog"
3215 # If it fails, then pretend we aren't using GCC.
3216 ac_prog=ld
3219 # If it is relative, then search for the first ld in PATH.
3220 with_gnu_ld=unknown
3222 esac
3223 elif test "$with_gnu_ld" = yes; then
3224 echo "$as_me:$LINENO: checking for GNU ld" >&5
3225 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3226 else
3227 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3228 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3230 if test "${lt_cv_path_LD+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233 if test -z "$LD"; then
3234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3235 for ac_dir in $PATH; do
3236 test -z "$ac_dir" && ac_dir=.
3237 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3238 lt_cv_path_LD="$ac_dir/$ac_prog"
3239 # Check to see if the program is GNU ld. I'd rather use --version,
3240 # but apparently some GNU ld's only accept -v.
3241 # Break only if it was the GNU/non-GNU ld that we prefer.
3242 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3243 test "$with_gnu_ld" != no && break
3244 else
3245 test "$with_gnu_ld" != yes && break
3248 done
3249 IFS="$ac_save_ifs"
3250 else
3251 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3255 LD="$lt_cv_path_LD"
3256 if test -n "$LD"; then
3257 echo "$as_me:$LINENO: result: $LD" >&5
3258 echo "${ECHO_T}$LD" >&6
3259 else
3260 echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3263 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3264 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3265 { (exit 1); exit 1; }; }
3266 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3267 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3268 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3272 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3273 lt_cv_prog_gnu_ld=yes
3274 else
3275 lt_cv_prog_gnu_ld=no
3278 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3279 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3280 with_gnu_ld=$lt_cv_prog_gnu_ld
3283 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3284 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3285 if test "${lt_cv_ld_reload_flag+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 lt_cv_ld_reload_flag='-r'
3290 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3291 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3292 reload_flag=$lt_cv_ld_reload_flag
3293 test -n "$reload_flag" && reload_flag=" $reload_flag"
3295 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3296 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3297 if test "${lt_cv_path_NM+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300 if test -n "$NM"; then
3301 # Let the user override the test.
3302 lt_cv_path_NM="$NM"
3303 else
3304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3305 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3306 test -z "$ac_dir" && ac_dir=.
3307 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3308 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3309 # Check to see if the nm accepts a BSD-compat flag.
3310 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3311 # nm: unknown option "B" ignored
3312 # Tru64's nm complains that /dev/null is an invalid object file
3313 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3314 lt_cv_path_NM="$tmp_nm -B"
3315 break
3316 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3317 lt_cv_path_NM="$tmp_nm -p"
3318 break
3319 else
3320 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3321 continue # so that we can try to find one that supports BSD flags
3324 done
3325 IFS="$ac_save_ifs"
3326 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3330 NM="$lt_cv_path_NM"
3331 echo "$as_me:$LINENO: result: $NM" >&5
3332 echo "${ECHO_T}$NM" >&6
3334 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3335 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3336 LN_S=$as_ln_s
3337 if test "$LN_S" = "ln -s"; then
3338 echo "$as_me:$LINENO: result: yes" >&5
3339 echo "${ECHO_T}yes" >&6
3340 else
3341 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3342 echo "${ECHO_T}no, using $LN_S" >&6
3345 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3346 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3347 if test "${lt_cv_deplibs_check_method+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350 lt_cv_file_magic_cmd='$MAGIC_CMD'
3351 lt_cv_file_magic_test_file=
3352 lt_cv_deplibs_check_method='unknown'
3353 # Need to set the preceding variable on all platforms that support
3354 # interlibrary dependencies.
3355 # 'none' -- dependencies not supported.
3356 # `unknown' -- same as none, but documents that we really don't know.
3357 # 'pass_all' -- all dependencies passed with no checks.
3358 # 'test_compile' -- check by making test program.
3359 # 'file_magic [regex]' -- check by looking for files in library path
3360 # which responds to the $file_magic_cmd with a given egrep regex.
3361 # If you have `file' or equivalent on your system and you're not sure
3362 # whether `pass_all' will *always* work, you probably want this one.
3364 case $host_os in
3365 aix*)
3366 lt_cv_deplibs_check_method=pass_all
3369 beos*)
3370 lt_cv_deplibs_check_method=pass_all
3373 bsdi4*)
3374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3375 lt_cv_file_magic_cmd='/usr/bin/file -L'
3376 lt_cv_file_magic_test_file=/shlib/libc.so
3379 cygwin* | mingw* |pw32*)
3380 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3381 lt_cv_file_magic_cmd='$OBJDUMP -f'
3384 darwin* | rhapsody*)
3385 # this will be overwritten by pass_all, but leave it in just in case
3386 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3387 lt_cv_file_magic_cmd='/usr/bin/file -L'
3388 case "$host_os" in
3389 rhapsody* | darwin1.012)
3390 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3392 *) # Darwin 1.3 on
3393 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3395 esac
3396 lt_cv_deplibs_check_method=pass_all
3399 freebsd* | kfreebsd*-gnu)
3400 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3401 case $host_cpu in
3402 i*86 )
3403 # Not sure whether the presence of OpenBSD here was a mistake.
3404 # Let's accept both of them until this is cleared up.
3405 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3406 lt_cv_file_magic_cmd=/usr/bin/file
3407 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3409 esac
3410 else
3411 lt_cv_deplibs_check_method=pass_all
3415 gnu*)
3416 lt_cv_deplibs_check_method=pass_all
3419 hpux10.20*|hpux11*)
3420 case $host_cpu in
3421 hppa*)
3422 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3423 lt_cv_file_magic_cmd=/usr/bin/file
3424 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3426 ia64*)
3427 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3428 lt_cv_file_magic_cmd=/usr/bin/file
3429 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3431 esac
3434 irix5* | irix6*)
3435 case $host_os in
3436 irix5*)
3437 # this will be overridden with pass_all, but let us keep it just in case
3438 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3441 case $LD in
3442 *-32|*"-32 ") libmagic=32-bit;;
3443 *-n32|*"-n32 ") libmagic=N32;;
3444 *-64|*"-64 ") libmagic=64-bit;;
3445 *) libmagic=never-match;;
3446 esac
3447 # this will be overridden with pass_all, but let us keep it just in case
3448 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3450 esac
3451 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3452 lt_cv_deplibs_check_method=pass_all
3455 # This must be Linux ELF.
3456 linux-gnu*)
3457 lt_cv_deplibs_check_method=pass_all
3460 netbsd* | knetbsd*-gnu)
3461 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3462 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3463 else
3464 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3468 newsos6)
3469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3470 lt_cv_file_magic_cmd=/usr/bin/file
3471 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3474 osf3* | osf4* | osf5*)
3475 # this will be overridden with pass_all, but let us keep it just in case
3476 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3477 lt_cv_file_magic_test_file=/shlib/libc.so
3478 lt_cv_deplibs_check_method=pass_all
3481 sco3.2v5*)
3482 lt_cv_deplibs_check_method=pass_all
3485 solaris*)
3486 lt_cv_deplibs_check_method=pass_all
3487 lt_cv_file_magic_test_file=/lib/libc.so
3490 sysv5uw[78]* | sysv4*uw2*)
3491 lt_cv_deplibs_check_method=pass_all
3494 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3495 case $host_vendor in
3496 ncr)
3497 lt_cv_deplibs_check_method=pass_all
3499 motorola)
3500 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]'
3501 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3503 esac
3505 esac
3508 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3509 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3510 file_magic_cmd=$lt_cv_file_magic_cmd
3511 deplibs_check_method=$lt_cv_deplibs_check_method
3517 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3519 # Only perform the check for file, if the check method requires it
3520 case $deplibs_check_method in
3521 file_magic*)
3522 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3523 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3524 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3525 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528 case $MAGIC_CMD in
3530 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3532 ?:/*)
3533 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3536 ac_save_MAGIC_CMD="$MAGIC_CMD"
3537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3538 ac_dummy="/usr/bin:$PATH"
3539 for ac_dir in $ac_dummy; do
3540 test -z "$ac_dir" && ac_dir=.
3541 if test -f $ac_dir/${ac_tool_prefix}file; then
3542 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3543 if test -n "$file_magic_test_file"; then
3544 case $deplibs_check_method in
3545 "file_magic "*)
3546 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3548 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3549 egrep "$file_magic_regex" > /dev/null; then
3551 else
3552 cat <<EOF 1>&2
3554 *** Warning: the command libtool uses to detect shared libraries,
3555 *** $file_magic_cmd, produces output that libtool cannot recognize.
3556 *** The result is that libtool may fail to recognize shared libraries
3557 *** as such. This will affect the creation of libtool libraries that
3558 *** depend on shared libraries, but programs linked with such libtool
3559 *** libraries will work regardless of this problem. Nevertheless, you
3560 *** may want to report the problem to your system manager and/or to
3561 *** bug-libtool@gnu.org
3564 fi ;;
3565 esac
3567 break
3569 done
3570 IFS="$ac_save_ifs"
3571 MAGIC_CMD="$ac_save_MAGIC_CMD"
3573 esac
3576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3577 if test -n "$MAGIC_CMD"; then
3578 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3579 echo "${ECHO_T}$MAGIC_CMD" >&6
3580 else
3581 echo "$as_me:$LINENO: result: no" >&5
3582 echo "${ECHO_T}no" >&6
3585 if test -z "$lt_cv_path_MAGIC_CMD"; then
3586 if test -n "$ac_tool_prefix"; then
3587 echo "$as_me:$LINENO: checking for file" >&5
3588 echo $ECHO_N "checking for file... $ECHO_C" >&6
3589 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592 case $MAGIC_CMD in
3594 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3596 ?:/*)
3597 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3600 ac_save_MAGIC_CMD="$MAGIC_CMD"
3601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3602 ac_dummy="/usr/bin:$PATH"
3603 for ac_dir in $ac_dummy; do
3604 test -z "$ac_dir" && ac_dir=.
3605 if test -f $ac_dir/file; then
3606 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3607 if test -n "$file_magic_test_file"; then
3608 case $deplibs_check_method in
3609 "file_magic "*)
3610 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3612 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3613 egrep "$file_magic_regex" > /dev/null; then
3615 else
3616 cat <<EOF 1>&2
3618 *** Warning: the command libtool uses to detect shared libraries,
3619 *** $file_magic_cmd, produces output that libtool cannot recognize.
3620 *** The result is that libtool may fail to recognize shared libraries
3621 *** as such. This will affect the creation of libtool libraries that
3622 *** depend on shared libraries, but programs linked with such libtool
3623 *** libraries will work regardless of this problem. Nevertheless, you
3624 *** may want to report the problem to your system manager and/or to
3625 *** bug-libtool@gnu.org
3628 fi ;;
3629 esac
3631 break
3633 done
3634 IFS="$ac_save_ifs"
3635 MAGIC_CMD="$ac_save_MAGIC_CMD"
3637 esac
3640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3641 if test -n "$MAGIC_CMD"; then
3642 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3643 echo "${ECHO_T}$MAGIC_CMD" >&6
3644 else
3645 echo "$as_me:$LINENO: result: no" >&5
3646 echo "${ECHO_T}no" >&6
3649 else
3650 MAGIC_CMD=:
3656 esac
3658 if test -n "$ac_tool_prefix"; then
3659 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3660 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3661 echo "$as_me:$LINENO: checking for $ac_word" >&5
3662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3663 if test "${ac_cv_prog_RANLIB+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666 if test -n "$RANLIB"; then
3667 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3668 else
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3676 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 break 2
3680 done
3681 done
3685 RANLIB=$ac_cv_prog_RANLIB
3686 if test -n "$RANLIB"; then
3687 echo "$as_me:$LINENO: result: $RANLIB" >&5
3688 echo "${ECHO_T}$RANLIB" >&6
3689 else
3690 echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3695 if test -z "$ac_cv_prog_RANLIB"; then
3696 ac_ct_RANLIB=$RANLIB
3697 # Extract the first word of "ranlib", so it can be a program name with args.
3698 set dummy ranlib; ac_word=$2
3699 echo "$as_me:$LINENO: checking for $ac_word" >&5
3700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3701 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704 if test -n "$ac_ct_RANLIB"; then
3705 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3706 else
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_ac_ct_RANLIB="ranlib"
3715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 break 2
3718 done
3719 done
3721 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3724 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3725 if test -n "$ac_ct_RANLIB"; then
3726 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3727 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3728 else
3729 echo "$as_me:$LINENO: result: no" >&5
3730 echo "${ECHO_T}no" >&6
3733 RANLIB=$ac_ct_RANLIB
3734 else
3735 RANLIB="$ac_cv_prog_RANLIB"
3738 if test -n "$ac_tool_prefix"; then
3739 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3740 set dummy ${ac_tool_prefix}strip; ac_word=$2
3741 echo "$as_me:$LINENO: checking for $ac_word" >&5
3742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743 if test "${ac_cv_prog_STRIP+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746 if test -n "$STRIP"; then
3747 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3760 done
3761 done
3765 STRIP=$ac_cv_prog_STRIP
3766 if test -n "$STRIP"; then
3767 echo "$as_me:$LINENO: result: $STRIP" >&5
3768 echo "${ECHO_T}$STRIP" >&6
3769 else
3770 echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3775 if test -z "$ac_cv_prog_STRIP"; then
3776 ac_ct_STRIP=$STRIP
3777 # Extract the first word of "strip", so it can be a program name with args.
3778 set dummy strip; ac_word=$2
3779 echo "$as_me:$LINENO: checking for $ac_word" >&5
3780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3781 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 else
3784 if test -n "$ac_ct_STRIP"; then
3785 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3786 else
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 for as_dir in $PATH
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3794 ac_cv_prog_ac_ct_STRIP="strip"
3795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3798 done
3799 done
3801 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3804 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3805 if test -n "$ac_ct_STRIP"; then
3806 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3807 echo "${ECHO_T}$ac_ct_STRIP" >&6
3808 else
3809 echo "$as_me:$LINENO: result: no" >&5
3810 echo "${ECHO_T}no" >&6
3813 STRIP=$ac_ct_STRIP
3814 else
3815 STRIP="$ac_cv_prog_STRIP"
3819 # Check for any special flags to pass to ltconfig.
3820 libtool_flags="--cache-file=$cache_file"
3821 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3822 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3823 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3824 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3825 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3828 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3829 if test "${enable_libtool_lock+set}" = set; then
3830 enableval="$enable_libtool_lock"
3833 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3834 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3837 # Check whether --with-pic or --without-pic was given.
3838 if test "${with_pic+set}" = set; then
3839 withval="$with_pic"
3840 pic_mode="$withval"
3841 else
3842 pic_mode=default
3844 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3845 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3847 # Some flags need to be propagated to the compiler or linker for good
3848 # libtool support.
3849 case $host in
3850 *-*-irix6*)
3851 # Find out which ABI we are using.
3852 echo '#line 3852 "configure"' > conftest.$ac_ext
3853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3854 (eval $ac_compile) 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; then
3858 if test "$lt_cv_prog_gnu_ld" = yes; then
3859 case `/usr/bin/file conftest.$ac_objext` in
3860 *32-bit*)
3861 LD="${LD-ld} -melf32bsmip"
3863 *N32*)
3864 LD="${LD-ld} -melf32bmipn32"
3866 *64-bit*)
3867 LD="${LD-ld} -melf64bmip"
3869 esac
3870 else
3871 case `/usr/bin/file conftest.$ac_objext` in
3872 *32-bit*)
3873 LD="${LD-ld} -32"
3875 *N32*)
3876 LD="${LD-ld} -n32"
3878 *64-bit*)
3879 LD="${LD-ld} -64"
3881 esac
3884 rm -rf conftest*
3887 ia64-*-hpux*)
3888 # Find out which ABI we are using.
3889 echo 'int i;' > conftest.$ac_ext
3890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3891 (eval $ac_compile) 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }; then
3895 case "`/usr/bin/file conftest.o`" in
3896 *ELF-32*)
3897 HPUX_IA64_MODE="32"
3899 *ELF-64*)
3900 HPUX_IA64_MODE="64"
3902 esac
3904 rm -rf conftest*
3907 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3908 # Find out which ABI we are using.
3909 echo 'int i;' > conftest.$ac_ext
3910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3911 (eval $ac_compile) 2>&5
3912 ac_status=$?
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; then
3915 case "`/usr/bin/file conftest.o`" in
3916 *32-bit*)
3917 case $host in
3918 x86_64-*linux*)
3919 LD="${LD-ld} -m elf_i386"
3921 ppc64-*linux*|powerpc64-*linux*)
3922 LD="${LD-ld} -m elf32ppclinux"
3924 s390x-*linux*)
3925 LD="${LD-ld} -m elf_s390"
3927 sparc64-*linux*)
3928 LD="${LD-ld} -m elf32_sparc"
3930 esac
3932 *64-bit*)
3933 case $host in
3934 x86_64-*linux*)
3935 LD="${LD-ld} -m elf_x86_64"
3937 ppc*-*linux*|powerpc*-*linux*)
3938 LD="${LD-ld} -m elf64ppc"
3940 s390*-*linux*)
3941 LD="${LD-ld} -m elf64_s390"
3943 sparc*-*linux*)
3944 LD="${LD-ld} -m elf64_sparc"
3946 esac
3948 esac
3950 rm -rf conftest*
3953 *-*-sco3.2v5*)
3954 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3955 SAVE_CFLAGS="$CFLAGS"
3956 CFLAGS="$CFLAGS -belf"
3957 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3958 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3959 if test "${lt_cv_cc_needs_belf+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3964 ac_ext=c
3965 ac_cpp='$CPP $CPPFLAGS'
3966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970 cat >conftest.$ac_ext <<_ACEOF
3971 /* confdefs.h. */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3978 main ()
3982 return 0;
3984 _ACEOF
3985 rm -f conftest.$ac_objext conftest$ac_exeext
3986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3987 (eval $ac_link) 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try='test -z "$ac_c_werror_flag"
3995 || test ! -s conftest.err'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try='test -s conftest$ac_exeext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4007 lt_cv_cc_needs_belf=yes
4008 else
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4012 lt_cv_cc_needs_belf=no
4014 rm -f conftest.err conftest.$ac_objext \
4015 conftest$ac_exeext conftest.$ac_ext
4016 ac_ext=c
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4024 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4025 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4026 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4027 CFLAGS="$SAVE_CFLAGS"
4032 esac
4035 # Save cache, so that ltconfig can load it
4036 cat >confcache <<\_ACEOF
4037 # This file is a shell script that caches the results of configure
4038 # tests run on this system so they can be shared between configure
4039 # scripts and configure runs, see configure's option --config-cache.
4040 # It is not useful on other systems. If it contains results you don't
4041 # want to keep, you may remove or edit it.
4043 # config.status only pays attention to the cache file if you give it
4044 # the --recheck option to rerun configure.
4046 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4047 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4048 # following values.
4050 _ACEOF
4052 # The following way of writing the cache mishandles newlines in values,
4053 # but we know of no workaround that is simple, portable, and efficient.
4054 # So, don't put newlines in cache variables' values.
4055 # Ultrix sh set writes to stderr and can't be redirected directly,
4056 # and sets the high bit in the cache file unless we assign to the vars.
4058 (set) 2>&1 |
4059 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4060 *ac_space=\ *)
4061 # `set' does not quote correctly, so add quotes (double-quote
4062 # substitution turns \\\\ into \\, and sed turns \\ into \).
4063 sed -n \
4064 "s/'/'\\\\''/g;
4065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4068 # `set' quotes correctly as required by POSIX, so do not add quotes.
4069 sed -n \
4070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4072 esac;
4074 sed '
4075 t clear
4076 : clear
4077 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4078 t end
4079 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4080 : end' >>confcache
4081 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4082 if test -w $cache_file; then
4083 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4084 cat confcache >$cache_file
4085 else
4086 echo "not updating unwritable cache $cache_file"
4089 rm -f confcache
4091 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4092 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4093 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4094 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4095 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4096 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4097 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4098 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4099 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4100 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4101 echo "$as_me: error: libtool configure failed" >&2;}
4102 { (exit 1); exit 1; }; }
4104 # Reload cache, that may have been modified by ltconfig
4105 if test -r "$cache_file"; then
4106 # Some versions of bash will fail to source /dev/null (special
4107 # files actually), so we avoid doing that.
4108 if test -f "$cache_file"; then
4109 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4110 echo "$as_me: loading cache $cache_file" >&6;}
4111 case $cache_file in
4112 [\\/]* | ?:[\\/]* ) . $cache_file;;
4113 *) . ./$cache_file;;
4114 esac
4116 else
4117 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4118 echo "$as_me: creating cache $cache_file" >&6;}
4119 >$cache_file
4123 # This can be used to rebuild libtool when needed
4124 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4126 # Always use our own libtool.
4127 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4129 # Redirect the config.log output again, so that the ltconfig log is not
4130 # clobbered by the next message.
4131 exec 5>>./config.log
4139 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4140 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4141 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4142 if test "${enable_maintainer_mode+set}" = set; then
4143 enableval="$enable_maintainer_mode"
4144 USE_MAINTAINER_MODE=$enableval
4145 else
4146 USE_MAINTAINER_MODE=no
4148 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4149 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4152 if test $USE_MAINTAINER_MODE = yes; then
4153 MAINTAINER_MODE_TRUE=
4154 MAINTAINER_MODE_FALSE='#'
4155 else
4156 MAINTAINER_MODE_TRUE='#'
4157 MAINTAINER_MODE_FALSE=
4160 MAINT=$MAINTAINER_MODE_TRUE
4164 ac_ext=c
4165 ac_cpp='$CPP $CPPFLAGS'
4166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4170 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4171 # On Suns, sometimes $CPP names a directory.
4172 if test -n "$CPP" && test -d "$CPP"; then
4173 CPP=
4175 if test -z "$CPP"; then
4176 if test "${ac_cv_prog_CPP+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179 # Double quotes because CPP needs to be expanded
4180 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4182 ac_preproc_ok=false
4183 for ac_c_preproc_warn_flag in '' yes
4185 # Use a header file that comes with gcc, so configuring glibc
4186 # with a fresh cross-compiler works.
4187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4188 # <limits.h> exists even on freestanding compilers.
4189 # On the NeXT, cc -E runs the code through the compiler's parser,
4190 # not just through cpp. "Syntax error" is here to catch this case.
4191 cat >conftest.$ac_ext <<_ACEOF
4192 /* confdefs.h. */
4193 _ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4197 #ifdef __STDC__
4198 # include <limits.h>
4199 #else
4200 # include <assert.h>
4201 #endif
4202 Syntax error
4203 _ACEOF
4204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4206 ac_status=$?
4207 grep -v '^ *+' conftest.er1 >conftest.err
4208 rm -f conftest.er1
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } >/dev/null; then
4212 if test -s conftest.err; then
4213 ac_cpp_err=$ac_c_preproc_warn_flag
4214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4215 else
4216 ac_cpp_err=
4218 else
4219 ac_cpp_err=yes
4221 if test -z "$ac_cpp_err"; then
4223 else
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 # Broken: fails on valid input.
4228 continue
4230 rm -f conftest.err conftest.$ac_ext
4232 # OK, works on sane cases. Now check whether non-existent headers
4233 # can be detected and how.
4234 cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h. */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4240 #include <ac_nonexistent.h>
4241 _ACEOF
4242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } >/dev/null; then
4250 if test -s conftest.err; then
4251 ac_cpp_err=$ac_c_preproc_warn_flag
4252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4253 else
4254 ac_cpp_err=
4256 else
4257 ac_cpp_err=yes
4259 if test -z "$ac_cpp_err"; then
4260 # Broken: success on invalid input.
4261 continue
4262 else
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 # Passes both tests.
4267 ac_preproc_ok=:
4268 break
4270 rm -f conftest.err conftest.$ac_ext
4272 done
4273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4274 rm -f conftest.err conftest.$ac_ext
4275 if $ac_preproc_ok; then
4276 break
4279 done
4280 ac_cv_prog_CPP=$CPP
4283 CPP=$ac_cv_prog_CPP
4284 else
4285 ac_cv_prog_CPP=$CPP
4287 echo "$as_me:$LINENO: result: $CPP" >&5
4288 echo "${ECHO_T}$CPP" >&6
4289 ac_preproc_ok=false
4290 for ac_c_preproc_warn_flag in '' yes
4292 # Use a header file that comes with gcc, so configuring glibc
4293 # with a fresh cross-compiler works.
4294 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4295 # <limits.h> exists even on freestanding compilers.
4296 # On the NeXT, cc -E runs the code through the compiler's parser,
4297 # not just through cpp. "Syntax error" is here to catch this case.
4298 cat >conftest.$ac_ext <<_ACEOF
4299 /* confdefs.h. */
4300 _ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4304 #ifdef __STDC__
4305 # include <limits.h>
4306 #else
4307 # include <assert.h>
4308 #endif
4309 Syntax error
4310 _ACEOF
4311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4313 ac_status=$?
4314 grep -v '^ *+' conftest.er1 >conftest.err
4315 rm -f conftest.er1
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } >/dev/null; then
4319 if test -s conftest.err; then
4320 ac_cpp_err=$ac_c_preproc_warn_flag
4321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4322 else
4323 ac_cpp_err=
4325 else
4326 ac_cpp_err=yes
4328 if test -z "$ac_cpp_err"; then
4330 else
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4334 # Broken: fails on valid input.
4335 continue
4337 rm -f conftest.err conftest.$ac_ext
4339 # OK, works on sane cases. Now check whether non-existent headers
4340 # can be detected and how.
4341 cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h. */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 #include <ac_nonexistent.h>
4348 _ACEOF
4349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4351 ac_status=$?
4352 grep -v '^ *+' conftest.er1 >conftest.err
4353 rm -f conftest.er1
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } >/dev/null; then
4357 if test -s conftest.err; then
4358 ac_cpp_err=$ac_c_preproc_warn_flag
4359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4360 else
4361 ac_cpp_err=
4363 else
4364 ac_cpp_err=yes
4366 if test -z "$ac_cpp_err"; then
4367 # Broken: success on invalid input.
4368 continue
4369 else
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4373 # Passes both tests.
4374 ac_preproc_ok=:
4375 break
4377 rm -f conftest.err conftest.$ac_ext
4379 done
4380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4381 rm -f conftest.err conftest.$ac_ext
4382 if $ac_preproc_ok; then
4384 else
4385 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4386 See \`config.log' for more details." >&5
4387 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4388 See \`config.log' for more details." >&2;}
4389 { (exit 1); exit 1; }; }
4392 ac_ext=c
4393 ac_cpp='$CPP $CPPFLAGS'
4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4399 echo "$as_me:$LINENO: checking for egrep" >&5
4400 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4401 if test "${ac_cv_prog_egrep+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4405 then ac_cv_prog_egrep='grep -E'
4406 else ac_cv_prog_egrep='egrep'
4409 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4410 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4411 EGREP=$ac_cv_prog_egrep
4414 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4415 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4416 if test "${ac_cv_header_stdc+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h. */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 #include <stdlib.h>
4426 #include <stdarg.h>
4427 #include <string.h>
4428 #include <float.h>
4431 main ()
4435 return 0;
4437 _ACEOF
4438 rm -f conftest.$ac_objext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440 (eval $ac_compile) 2>conftest.er1
4441 ac_status=$?
4442 grep -v '^ *+' conftest.er1 >conftest.err
4443 rm -f conftest.er1
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } &&
4447 { ac_try='test -z "$ac_c_werror_flag"
4448 || test ! -s conftest.err'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 (eval $ac_try) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; } &&
4454 { ac_try='test -s conftest.$ac_objext'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 (eval $ac_try) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4460 ac_cv_header_stdc=yes
4461 else
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 ac_cv_header_stdc=no
4467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4469 if test $ac_cv_header_stdc = yes; then
4470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4471 cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h. */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4477 #include <string.h>
4479 _ACEOF
4480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4481 $EGREP "memchr" >/dev/null 2>&1; then
4483 else
4484 ac_cv_header_stdc=no
4486 rm -f conftest*
4490 if test $ac_cv_header_stdc = yes; then
4491 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4492 cat >conftest.$ac_ext <<_ACEOF
4493 /* confdefs.h. */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498 #include <stdlib.h>
4500 _ACEOF
4501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4502 $EGREP "free" >/dev/null 2>&1; then
4504 else
4505 ac_cv_header_stdc=no
4507 rm -f conftest*
4511 if test $ac_cv_header_stdc = yes; then
4512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4513 if test "$cross_compiling" = yes; then
4515 else
4516 cat >conftest.$ac_ext <<_ACEOF
4517 /* confdefs.h. */
4518 _ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4522 #include <ctype.h>
4523 #if ((' ' & 0x0FF) == 0x020)
4524 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4525 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4526 #else
4527 # define ISLOWER(c) \
4528 (('a' <= (c) && (c) <= 'i') \
4529 || ('j' <= (c) && (c) <= 'r') \
4530 || ('s' <= (c) && (c) <= 'z'))
4531 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4532 #endif
4534 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4536 main ()
4538 int i;
4539 for (i = 0; i < 256; i++)
4540 if (XOR (islower (i), ISLOWER (i))
4541 || toupper (i) != TOUPPER (i))
4542 exit(2);
4543 exit (0);
4545 _ACEOF
4546 rm -f conftest$ac_exeext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548 (eval $ac_link) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4558 else
4559 echo "$as_me: program exited with status $ac_status" >&5
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4563 ( exit $ac_status )
4564 ac_cv_header_stdc=no
4566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4570 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4571 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4572 if test $ac_cv_header_stdc = yes; then
4574 cat >>confdefs.h <<\_ACEOF
4575 #define STDC_HEADERS 1
4576 _ACEOF
4580 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4590 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4591 inttypes.h stdint.h unistd.h
4593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4594 echo "$as_me:$LINENO: checking for $ac_header" >&5
4595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599 cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h. */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4605 $ac_includes_default
4607 #include <$ac_header>
4608 _ACEOF
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>conftest.er1
4612 ac_status=$?
4613 grep -v '^ *+' conftest.er1 >conftest.err
4614 rm -f conftest.er1
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -z "$ac_c_werror_flag"
4619 || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 (eval $ac_try) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try='test -s conftest.$ac_objext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 eval "$as_ac_Header=yes"
4632 else
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 eval "$as_ac_Header=no"
4638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4643 cat >>confdefs.h <<_ACEOF
4644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4645 _ACEOF
4649 done
4653 for ac_header in sys/mman.h
4655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4657 echo "$as_me:$LINENO: checking for $ac_header" >&5
4658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4664 else
4665 # Is the header compilable?
4666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h. */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 $ac_includes_default
4675 #include <$ac_header>
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679 (eval $ac_compile) 2>conftest.er1
4680 ac_status=$?
4681 grep -v '^ *+' conftest.er1 >conftest.err
4682 rm -f conftest.er1
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } &&
4686 { ac_try='test -z "$ac_c_werror_flag"
4687 || test ! -s conftest.err'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 (eval $ac_try) 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; } &&
4693 { ac_try='test -s conftest.$ac_objext'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 (eval $ac_try) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; }; then
4699 ac_header_compiler=yes
4700 else
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4704 ac_header_compiler=no
4706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4708 echo "${ECHO_T}$ac_header_compiler" >&6
4710 # Is the header present?
4711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4713 cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h. */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 #include <$ac_header>
4720 _ACEOF
4721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } >/dev/null; then
4729 if test -s conftest.err; then
4730 ac_cpp_err=$ac_c_preproc_warn_flag
4731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4732 else
4733 ac_cpp_err=
4735 else
4736 ac_cpp_err=yes
4738 if test -z "$ac_cpp_err"; then
4739 ac_header_preproc=yes
4740 else
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4744 ac_header_preproc=no
4746 rm -f conftest.err conftest.$ac_ext
4747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4748 echo "${ECHO_T}$ac_header_preproc" >&6
4750 # So? What about this header?
4751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4752 yes:no: )
4753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4757 ac_header_preproc=yes
4759 no:yes:* )
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4773 cat <<\_ASBOX
4774 ## ------------------------------------------- ##
4775 ## Report this to http://gcc.gnu.org/bugs.html ##
4776 ## ------------------------------------------- ##
4777 _ASBOX
4779 sed "s/^/$as_me: WARNING: /" >&2
4781 esac
4782 echo "$as_me:$LINENO: checking for $ac_header" >&5
4783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787 eval "$as_ac_Header=\$ac_header_preproc"
4789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4794 cat >>confdefs.h <<_ACEOF
4795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4796 _ACEOF
4800 done
4803 for ac_func in mmap
4805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4806 echo "$as_me:$LINENO: checking for $ac_func" >&5
4807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4808 if eval "test \"\${$as_ac_var+set}\" = set"; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811 cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h. */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4819 #define $ac_func innocuous_$ac_func
4821 /* System header to define __stub macros and hopefully few prototypes,
4822 which can conflict with char $ac_func (); below.
4823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4824 <limits.h> exists even on freestanding compilers. */
4826 #ifdef __STDC__
4827 # include <limits.h>
4828 #else
4829 # include <assert.h>
4830 #endif
4832 #undef $ac_func
4834 /* Override any gcc2 internal prototype to avoid an error. */
4835 #ifdef __cplusplus
4836 extern "C"
4838 #endif
4839 /* We use char because int might match the return type of a gcc2
4840 builtin and then its argument prototype would still apply. */
4841 char $ac_func ();
4842 /* The GNU C library defines this for functions which it implements
4843 to always fail with ENOSYS. Some functions are actually named
4844 something starting with __ and the normal name is an alias. */
4845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4846 choke me
4847 #else
4848 char (*f) () = $ac_func;
4849 #endif
4850 #ifdef __cplusplus
4852 #endif
4855 main ()
4857 return f != $ac_func;
4859 return 0;
4861 _ACEOF
4862 rm -f conftest.$ac_objext conftest$ac_exeext
4863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4864 (eval $ac_link) 2>conftest.er1
4865 ac_status=$?
4866 grep -v '^ *+' conftest.er1 >conftest.err
4867 rm -f conftest.er1
4868 cat conftest.err >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } &&
4871 { ac_try='test -z "$ac_c_werror_flag"
4872 || test ! -s conftest.err'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 (eval $ac_try) 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; } &&
4878 { ac_try='test -s conftest$ac_exeext'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 (eval $ac_try) 2>&5
4881 ac_status=$?
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4884 eval "$as_ac_var=yes"
4885 else
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 eval "$as_ac_var=no"
4891 rm -f conftest.err conftest.$ac_objext \
4892 conftest$ac_exeext conftest.$ac_ext
4894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4896 if test `eval echo '${'$as_ac_var'}'` = yes; then
4897 cat >>confdefs.h <<_ACEOF
4898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4899 _ACEOF
4902 done
4905 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4906 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
4907 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
4908 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
4912 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
4913 else
4914 # Is the header compilable?
4915 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
4916 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
4917 cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h. */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4923 $ac_includes_default
4924 #include <sys/mman.h>
4925 _ACEOF
4926 rm -f conftest.$ac_objext
4927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4928 (eval $ac_compile) 2>conftest.er1
4929 ac_status=$?
4930 grep -v '^ *+' conftest.er1 >conftest.err
4931 rm -f conftest.er1
4932 cat conftest.err >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 { ac_try='test -z "$ac_c_werror_flag"
4936 || test ! -s conftest.err'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; } &&
4942 { ac_try='test -s conftest.$ac_objext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 ac_header_compiler=yes
4949 else
4950 echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4953 ac_header_compiler=no
4955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4957 echo "${ECHO_T}$ac_header_compiler" >&6
4959 # Is the header present?
4960 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
4961 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
4962 cat >conftest.$ac_ext <<_ACEOF
4963 /* confdefs.h. */
4964 _ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968 #include <sys/mman.h>
4969 _ACEOF
4970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4972 ac_status=$?
4973 grep -v '^ *+' conftest.er1 >conftest.err
4974 rm -f conftest.er1
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } >/dev/null; then
4978 if test -s conftest.err; then
4979 ac_cpp_err=$ac_c_preproc_warn_flag
4980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4981 else
4982 ac_cpp_err=
4984 else
4985 ac_cpp_err=yes
4987 if test -z "$ac_cpp_err"; then
4988 ac_header_preproc=yes
4989 else
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4993 ac_header_preproc=no
4995 rm -f conftest.err conftest.$ac_ext
4996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4997 echo "${ECHO_T}$ac_header_preproc" >&6
4999 # So? What about this header?
5000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5001 yes:no: )
5002 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
5003 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5004 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
5005 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
5006 ac_header_preproc=yes
5008 no:yes:* )
5009 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
5010 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
5011 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
5012 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
5013 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
5014 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
5015 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
5016 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
5017 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
5018 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
5019 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
5020 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
5022 cat <<\_ASBOX
5023 ## ------------------------------------------- ##
5024 ## Report this to http://gcc.gnu.org/bugs.html ##
5025 ## ------------------------------------------- ##
5026 _ASBOX
5028 sed "s/^/$as_me: WARNING: /" >&2
5030 esac
5031 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
5032 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
5033 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036 ac_cv_header_sys_mman_h=$ac_header_preproc
5038 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
5039 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
5042 if test $ac_cv_header_sys_mman_h = yes; then
5043 libffi_header_sys_mman_h=yes
5044 else
5045 libffi_header_sys_mman_h=no
5049 echo "$as_me:$LINENO: checking for mmap" >&5
5050 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
5051 if test "${ac_cv_func_mmap+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054 cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h. */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
5061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5062 #define mmap innocuous_mmap
5064 /* System header to define __stub macros and hopefully few prototypes,
5065 which can conflict with char mmap (); below.
5066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5067 <limits.h> exists even on freestanding compilers. */
5069 #ifdef __STDC__
5070 # include <limits.h>
5071 #else
5072 # include <assert.h>
5073 #endif
5075 #undef mmap
5077 /* Override any gcc2 internal prototype to avoid an error. */
5078 #ifdef __cplusplus
5079 extern "C"
5081 #endif
5082 /* We use char because int might match the return type of a gcc2
5083 builtin and then its argument prototype would still apply. */
5084 char mmap ();
5085 /* The GNU C library defines this for functions which it implements
5086 to always fail with ENOSYS. Some functions are actually named
5087 something starting with __ and the normal name is an alias. */
5088 #if defined (__stub_mmap) || defined (__stub___mmap)
5089 choke me
5090 #else
5091 char (*f) () = mmap;
5092 #endif
5093 #ifdef __cplusplus
5095 #endif
5098 main ()
5100 return f != mmap;
5102 return 0;
5104 _ACEOF
5105 rm -f conftest.$ac_objext conftest$ac_exeext
5106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5107 (eval $ac_link) 2>conftest.er1
5108 ac_status=$?
5109 grep -v '^ *+' conftest.er1 >conftest.err
5110 rm -f conftest.er1
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } &&
5114 { ac_try='test -z "$ac_c_werror_flag"
5115 || test ! -s conftest.err'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 (eval $ac_try) 2>&5
5118 ac_status=$?
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; } &&
5121 { ac_try='test -s conftest$ac_exeext'
5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123 (eval $ac_try) 2>&5
5124 ac_status=$?
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); }; }; then
5127 ac_cv_func_mmap=yes
5128 else
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5132 ac_cv_func_mmap=no
5134 rm -f conftest.err conftest.$ac_objext \
5135 conftest$ac_exeext conftest.$ac_ext
5137 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
5138 echo "${ECHO_T}$ac_cv_func_mmap" >&6
5139 if test $ac_cv_func_mmap = yes; then
5140 libffi_func_mmap=yes
5141 else
5142 libffi_func_mmap=no
5145 if test "$libffi_header_sys_mman_h" != yes \
5146 || test "$libffi_func_mmap" != yes; then
5147 ac_cv_func_mmap_file=no
5148 ac_cv_func_mmap_dev_zero=no
5149 ac_cv_func_mmap_anon=no
5150 else
5151 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
5152 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
5153 if test "${ac_cv_func_mmap_file+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 # Add a system to this blacklist if
5157 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
5158 # memory area containing the same data that you'd get if you applied
5159 # read() to the same fd. The only system known to have a problem here
5160 # is VMS, where text files have record structure.
5161 case "$host_os" in
5162 vms* | ultrix*)
5163 ac_cv_func_mmap_file=no ;;
5165 ac_cv_func_mmap_file=yes;;
5166 esac
5168 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
5169 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
5170 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
5171 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
5172 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175 # Add a system to this blacklist if it has mmap() but /dev/zero
5176 # does not exist, or if mmapping /dev/zero does not give anonymous
5177 # zeroed pages with both the following properties:
5178 # 1. If you map N consecutive pages in with one call, and then
5179 # unmap any subset of those pages, the pages that were not
5180 # explicitly unmapped remain accessible.
5181 # 2. If you map two adjacent blocks of memory and then unmap them
5182 # both at once, they must both go away.
5183 # Systems known to be in this category are Windows (all variants),
5184 # VMS, and Darwin.
5185 case "$host_os" in
5186 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
5187 ac_cv_func_mmap_dev_zero=no ;;
5189 ac_cv_func_mmap_dev_zero=yes;;
5190 esac
5192 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
5193 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
5195 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5196 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
5197 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
5198 if test "${ac_cv_decl_map_anon+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201 cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h. */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207 #include <sys/types.h>
5208 #include <sys/mman.h>
5209 #include <unistd.h>
5211 #ifndef MAP_ANONYMOUS
5212 #define MAP_ANONYMOUS MAP_ANON
5213 #endif
5216 main ()
5218 int n = MAP_ANONYMOUS;
5220 return 0;
5222 _ACEOF
5223 rm -f conftest.$ac_objext
5224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5225 (eval $ac_compile) 2>conftest.er1
5226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } &&
5232 { ac_try='test -z "$ac_c_werror_flag"
5233 || test ! -s conftest.err'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 (eval $ac_try) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; } &&
5239 { ac_try='test -s conftest.$ac_objext'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 (eval $ac_try) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5245 ac_cv_decl_map_anon=yes
5246 else
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5250 ac_cv_decl_map_anon=no
5252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5254 echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
5255 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
5257 if test $ac_cv_decl_map_anon = no; then
5258 ac_cv_func_mmap_anon=no
5259 else
5260 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
5261 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
5262 if test "${ac_cv_func_mmap_anon+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 # Add a system to this blacklist if it has mmap() and MAP_ANON or
5266 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
5267 # doesn't give anonymous zeroed pages with the same properties listed
5268 # above for use of /dev/zero.
5269 # Systems known to be in this category are Windows, VMS, and SCO Unix.
5270 case "$host_os" in
5271 vms* | cygwin* | pe | mingw* | sco* | udk* )
5272 ac_cv_func_mmap_anon=no ;;
5274 ac_cv_func_mmap_anon=yes;;
5275 esac
5277 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
5278 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
5282 if test $ac_cv_func_mmap_file = yes; then
5284 cat >>confdefs.h <<\_ACEOF
5285 #define HAVE_MMAP_FILE 1
5286 _ACEOF
5289 if test $ac_cv_func_mmap_dev_zero = yes; then
5291 cat >>confdefs.h <<\_ACEOF
5292 #define HAVE_MMAP_DEV_ZERO 1
5293 _ACEOF
5296 if test $ac_cv_func_mmap_anon = yes; then
5298 cat >>confdefs.h <<\_ACEOF
5299 #define HAVE_MMAP_ANON 1
5300 _ACEOF
5307 if test -d $srcdir/testsuite; then
5308 TESTSUBDIR_TRUE=
5309 TESTSUBDIR_FALSE='#'
5310 else
5311 TESTSUBDIR_TRUE='#'
5312 TESTSUBDIR_FALSE=
5316 TARGETDIR="unknown"
5317 case "$host" in
5318 i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
5319 i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
5320 i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
5321 i*86-*-freebsd* | i*86-*-kfreebsd*-gnu) TARGET=X86; TARGETDIR=x86;;
5322 i*86-*-netbsdelf* | i*86-*-knetbsd*-gnu) TARGET=X86; TARGETDIR=x86;;
5323 i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
5324 i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
5325 i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
5326 frv-*-*) TARGET=FRV; TARGETDIR=frv;;
5327 sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
5328 sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
5329 sparc-*-linux* | sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu) TARGET=SPARC; TARGETDIR=sparc;;
5330 sparc64-*-linux* | sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu) TARGET=SPARC; TARGETDIR=sparc;;
5331 alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu) TARGET=ALPHA; TARGETDIR=alpha;;
5332 ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
5333 m32r*-*-linux* ) TARGET=M32R; TARGETDIR=m32r;;
5334 m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
5335 mips64*-*);;
5336 mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS_IRIX; TARGETDIR=mips;;
5337 mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;;
5338 powerpc*-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
5339 powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
5340 powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
5341 powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
5342 rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
5343 arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
5344 arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu) TARGET=ARM; TARGETDIR=arm;;
5345 s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
5346 s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;
5347 x86_64-*-linux* | x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) TARGET=X86_64; TARGETDIR=x86;;
5348 sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
5349 sh64-*-linux* | sh5*-*-linux*) TARGET=SH64; TARGETDIR=sh64;;
5350 hppa-*-linux* | parisc-*-linux*) TARGET=PA; TARGETDIR=pa;;
5351 esac
5355 if test $TARGETDIR = unknown; then
5356 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
5357 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
5358 { (exit 1); exit 1; }; }
5363 if test x$TARGET = xMIPS_IRIX; then
5364 MIPS_IRIX_TRUE=
5365 MIPS_IRIX_FALSE='#'
5366 else
5367 MIPS_IRIX_TRUE='#'
5368 MIPS_IRIX_FALSE=
5373 if test x$TARGET = xMIPS_LINUX; then
5374 MIPS_LINUX_TRUE=
5375 MIPS_LINUX_FALSE='#'
5376 else
5377 MIPS_LINUX_TRUE='#'
5378 MIPS_LINUX_FALSE=
5383 if test x$TARGET = xSPARC; then
5384 SPARC_TRUE=
5385 SPARC_FALSE='#'
5386 else
5387 SPARC_TRUE='#'
5388 SPARC_FALSE=
5393 if test x$TARGET = xX86; then
5394 X86_TRUE=
5395 X86_FALSE='#'
5396 else
5397 X86_TRUE='#'
5398 X86_FALSE=
5403 if test x$TARGET = xX86_WIN32; then
5404 X86_WIN32_TRUE=
5405 X86_WIN32_FALSE='#'
5406 else
5407 X86_WIN32_TRUE='#'
5408 X86_WIN32_FALSE=
5413 if test x$TARGET = xALPHA; then
5414 ALPHA_TRUE=
5415 ALPHA_FALSE='#'
5416 else
5417 ALPHA_TRUE='#'
5418 ALPHA_FALSE=
5423 if test x$TARGET = xIA64; then
5424 IA64_TRUE=
5425 IA64_FALSE='#'
5426 else
5427 IA64_TRUE='#'
5428 IA64_FALSE=
5433 if test x$TARGET = xM32R; then
5434 M32R_TRUE=
5435 M32R_FALSE='#'
5436 else
5437 M32R_TRUE='#'
5438 M32R_FALSE=
5443 if test x$TARGET = xM68K; then
5444 M68K_TRUE=
5445 M68K_FALSE='#'
5446 else
5447 M68K_TRUE='#'
5448 M68K_FALSE=
5453 if test x$TARGET = xPOWERPC; then
5454 POWERPC_TRUE=
5455 POWERPC_FALSE='#'
5456 else
5457 POWERPC_TRUE='#'
5458 POWERPC_FALSE=
5463 if test x$TARGET = xPOWERPC_AIX; then
5464 POWERPC_AIX_TRUE=
5465 POWERPC_AIX_FALSE='#'
5466 else
5467 POWERPC_AIX_TRUE='#'
5468 POWERPC_AIX_FALSE=
5473 if test x$TARGET = xPOWERPC_DARWIN; then
5474 POWERPC_DARWIN_TRUE=
5475 POWERPC_DARWIN_FALSE='#'
5476 else
5477 POWERPC_DARWIN_TRUE='#'
5478 POWERPC_DARWIN_FALSE=
5483 if test x$TARGET = xARM; then
5484 ARM_TRUE=
5485 ARM_FALSE='#'
5486 else
5487 ARM_TRUE='#'
5488 ARM_FALSE=
5493 if test x$TARGET = xFRV; then
5494 FRV_TRUE=
5495 FRV_FALSE='#'
5496 else
5497 FRV_TRUE='#'
5498 FRV_FALSE=
5503 if test x$TARGET = xS390; then
5504 S390_TRUE=
5505 S390_FALSE='#'
5506 else
5507 S390_TRUE='#'
5508 S390_FALSE=
5513 if test x$TARGET = xX86_64; then
5514 X86_64_TRUE=
5515 X86_64_FALSE='#'
5516 else
5517 X86_64_TRUE='#'
5518 X86_64_FALSE=
5523 if test x$TARGET = xSH; then
5524 SH_TRUE=
5525 SH_FALSE='#'
5526 else
5527 SH_TRUE='#'
5528 SH_FALSE=
5533 if test x$TARGET = xSH64; then
5534 SH64_TRUE=
5535 SH64_FALSE='#'
5536 else
5537 SH64_TRUE='#'
5538 SH64_FALSE=
5543 if test x$TARGET = xPA; then
5544 PA_TRUE=
5545 PA_FALSE='#'
5546 else
5547 PA_TRUE='#'
5548 PA_FALSE=
5552 case x$TARGET in
5553 xMIPS*) TARGET=MIPS ;;
5554 *) ;;
5555 esac
5557 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5558 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5559 if test "${ac_cv_header_stdc+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h. */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5568 #include <stdlib.h>
5569 #include <stdarg.h>
5570 #include <string.h>
5571 #include <float.h>
5574 main ()
5578 return 0;
5580 _ACEOF
5581 rm -f conftest.$ac_objext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>conftest.er1
5584 ac_status=$?
5585 grep -v '^ *+' conftest.er1 >conftest.err
5586 rm -f conftest.er1
5587 cat conftest.err >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 { ac_try='test -z "$ac_c_werror_flag"
5591 || test ! -s conftest.err'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 (eval $ac_try) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; } &&
5597 { ac_try='test -s conftest.$ac_objext'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 (eval $ac_try) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_cv_header_stdc=yes
5604 else
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 ac_cv_header_stdc=no
5610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5612 if test $ac_cv_header_stdc = yes; then
5613 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5614 cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h. */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 #include <string.h>
5622 _ACEOF
5623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5624 $EGREP "memchr" >/dev/null 2>&1; then
5626 else
5627 ac_cv_header_stdc=no
5629 rm -f conftest*
5633 if test $ac_cv_header_stdc = yes; then
5634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5635 cat >conftest.$ac_ext <<_ACEOF
5636 /* confdefs.h. */
5637 _ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5641 #include <stdlib.h>
5643 _ACEOF
5644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5645 $EGREP "free" >/dev/null 2>&1; then
5647 else
5648 ac_cv_header_stdc=no
5650 rm -f conftest*
5654 if test $ac_cv_header_stdc = yes; then
5655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5656 if test "$cross_compiling" = yes; then
5658 else
5659 cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h. */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 #include <ctype.h>
5666 #if ((' ' & 0x0FF) == 0x020)
5667 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5668 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5669 #else
5670 # define ISLOWER(c) \
5671 (('a' <= (c) && (c) <= 'i') \
5672 || ('j' <= (c) && (c) <= 'r') \
5673 || ('s' <= (c) && (c) <= 'z'))
5674 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5675 #endif
5677 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5679 main ()
5681 int i;
5682 for (i = 0; i < 256; i++)
5683 if (XOR (islower (i), ISLOWER (i))
5684 || toupper (i) != TOUPPER (i))
5685 exit(2);
5686 exit (0);
5688 _ACEOF
5689 rm -f conftest$ac_exeext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5691 (eval $ac_link) 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696 (eval $ac_try) 2>&5
5697 ac_status=$?
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; }; then
5701 else
5702 echo "$as_me: program exited with status $ac_status" >&5
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5706 ( exit $ac_status )
5707 ac_cv_header_stdc=no
5709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5713 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5714 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5715 if test $ac_cv_header_stdc = yes; then
5717 cat >>confdefs.h <<\_ACEOF
5718 #define STDC_HEADERS 1
5719 _ACEOF
5724 for ac_func in memcpy
5726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5727 echo "$as_me:$LINENO: checking for $ac_func" >&5
5728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5729 if eval "test \"\${$as_ac_var+set}\" = set"; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732 cat >conftest.$ac_ext <<_ACEOF
5733 /* confdefs.h. */
5734 _ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5740 #define $ac_func innocuous_$ac_func
5742 /* System header to define __stub macros and hopefully few prototypes,
5743 which can conflict with char $ac_func (); below.
5744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5745 <limits.h> exists even on freestanding compilers. */
5747 #ifdef __STDC__
5748 # include <limits.h>
5749 #else
5750 # include <assert.h>
5751 #endif
5753 #undef $ac_func
5755 /* Override any gcc2 internal prototype to avoid an error. */
5756 #ifdef __cplusplus
5757 extern "C"
5759 #endif
5760 /* We use char because int might match the return type of a gcc2
5761 builtin and then its argument prototype would still apply. */
5762 char $ac_func ();
5763 /* The GNU C library defines this for functions which it implements
5764 to always fail with ENOSYS. Some functions are actually named
5765 something starting with __ and the normal name is an alias. */
5766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5767 choke me
5768 #else
5769 char (*f) () = $ac_func;
5770 #endif
5771 #ifdef __cplusplus
5773 #endif
5776 main ()
5778 return f != $ac_func;
5780 return 0;
5782 _ACEOF
5783 rm -f conftest.$ac_objext conftest$ac_exeext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5785 (eval $ac_link) 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -z "$ac_c_werror_flag"
5793 || test ! -s conftest.err'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; } &&
5799 { ac_try='test -s conftest$ac_exeext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 (eval $ac_try) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5805 eval "$as_ac_var=yes"
5806 else
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5810 eval "$as_ac_var=no"
5812 rm -f conftest.err conftest.$ac_objext \
5813 conftest$ac_exeext conftest.$ac_ext
5815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5817 if test `eval echo '${'$as_ac_var'}'` = yes; then
5818 cat >>confdefs.h <<_ACEOF
5819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5820 _ACEOF
5823 done
5825 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5826 # for constant arguments. Useless!
5827 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5828 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5829 if test "${ac_cv_working_alloca_h+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832 cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h. */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 #include <alloca.h>
5840 main ()
5842 char *p = (char *) alloca (2 * sizeof (int));
5844 return 0;
5846 _ACEOF
5847 rm -f conftest.$ac_objext conftest$ac_exeext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5849 (eval $ac_link) 2>conftest.er1
5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -z "$ac_c_werror_flag"
5857 || test ! -s conftest.err'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; } &&
5863 { ac_try='test -s conftest$ac_exeext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 ac_cv_working_alloca_h=yes
5870 else
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5874 ac_cv_working_alloca_h=no
5876 rm -f conftest.err conftest.$ac_objext \
5877 conftest$ac_exeext conftest.$ac_ext
5879 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5880 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5881 if test $ac_cv_working_alloca_h = yes; then
5883 cat >>confdefs.h <<\_ACEOF
5884 #define HAVE_ALLOCA_H 1
5885 _ACEOF
5889 echo "$as_me:$LINENO: checking for alloca" >&5
5890 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5891 if test "${ac_cv_func_alloca_works+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894 cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h. */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5900 #ifdef __GNUC__
5901 # define alloca __builtin_alloca
5902 #else
5903 # ifdef _MSC_VER
5904 # include <malloc.h>
5905 # define alloca _alloca
5906 # else
5907 # if HAVE_ALLOCA_H
5908 # include <alloca.h>
5909 # else
5910 # ifdef _AIX
5911 #pragma alloca
5912 # else
5913 # ifndef alloca /* predefined by HP cc +Olibcalls */
5914 char *alloca ();
5915 # endif
5916 # endif
5917 # endif
5918 # endif
5919 #endif
5922 main ()
5924 char *p = (char *) alloca (1);
5926 return 0;
5928 _ACEOF
5929 rm -f conftest.$ac_objext conftest$ac_exeext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931 (eval $ac_link) 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -z "$ac_c_werror_flag"
5939 || test ! -s conftest.err'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest$ac_exeext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_cv_func_alloca_works=yes
5952 else
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5956 ac_cv_func_alloca_works=no
5958 rm -f conftest.err conftest.$ac_objext \
5959 conftest$ac_exeext conftest.$ac_ext
5961 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5962 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5964 if test $ac_cv_func_alloca_works = yes; then
5966 cat >>confdefs.h <<\_ACEOF
5967 #define HAVE_ALLOCA 1
5968 _ACEOF
5970 else
5971 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5972 # that cause trouble. Some versions do not even contain alloca or
5973 # contain a buggy version. If you still want to use their alloca,
5974 # use ar to extract alloca.o from them instead of compiling alloca.c.
5976 ALLOCA=alloca.$ac_objext
5978 cat >>confdefs.h <<\_ACEOF
5979 #define C_ALLOCA 1
5980 _ACEOF
5983 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5984 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5985 if test "${ac_cv_os_cray+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988 cat >conftest.$ac_ext <<_ACEOF
5989 /* confdefs.h. */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5994 #if defined(CRAY) && ! defined(CRAY2)
5995 webecray
5996 #else
5997 wenotbecray
5998 #endif
6000 _ACEOF
6001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6002 $EGREP "webecray" >/dev/null 2>&1; then
6003 ac_cv_os_cray=yes
6004 else
6005 ac_cv_os_cray=no
6007 rm -f conftest*
6010 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6011 echo "${ECHO_T}$ac_cv_os_cray" >&6
6012 if test $ac_cv_os_cray = yes; then
6013 for ac_func in _getb67 GETB67 getb67; do
6014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6015 echo "$as_me:$LINENO: checking for $ac_func" >&5
6016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6017 if eval "test \"\${$as_ac_var+set}\" = set"; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020 cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h. */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6028 #define $ac_func innocuous_$ac_func
6030 /* System header to define __stub macros and hopefully few prototypes,
6031 which can conflict with char $ac_func (); below.
6032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6033 <limits.h> exists even on freestanding compilers. */
6035 #ifdef __STDC__
6036 # include <limits.h>
6037 #else
6038 # include <assert.h>
6039 #endif
6041 #undef $ac_func
6043 /* Override any gcc2 internal prototype to avoid an error. */
6044 #ifdef __cplusplus
6045 extern "C"
6047 #endif
6048 /* We use char because int might match the return type of a gcc2
6049 builtin and then its argument prototype would still apply. */
6050 char $ac_func ();
6051 /* The GNU C library defines this for functions which it implements
6052 to always fail with ENOSYS. Some functions are actually named
6053 something starting with __ and the normal name is an alias. */
6054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6055 choke me
6056 #else
6057 char (*f) () = $ac_func;
6058 #endif
6059 #ifdef __cplusplus
6061 #endif
6064 main ()
6066 return f != $ac_func;
6068 return 0;
6070 _ACEOF
6071 rm -f conftest.$ac_objext conftest$ac_exeext
6072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6073 (eval $ac_link) 2>conftest.er1
6074 ac_status=$?
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try='test -z "$ac_c_werror_flag"
6081 || test ! -s conftest.err'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try='test -s conftest$ac_exeext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 (eval $ac_try) 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 eval "$as_ac_var=yes"
6094 else
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6098 eval "$as_ac_var=no"
6100 rm -f conftest.err conftest.$ac_objext \
6101 conftest$ac_exeext conftest.$ac_ext
6103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6105 if test `eval echo '${'$as_ac_var'}'` = yes; then
6107 cat >>confdefs.h <<_ACEOF
6108 #define CRAY_STACKSEG_END $ac_func
6109 _ACEOF
6111 break
6114 done
6117 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6118 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6119 if test "${ac_cv_c_stack_direction+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122 if test "$cross_compiling" = yes; then
6123 ac_cv_c_stack_direction=0
6124 else
6125 cat >conftest.$ac_ext <<_ACEOF
6126 /* confdefs.h. */
6127 _ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h. */
6132 find_stack_direction ()
6134 static char *addr = 0;
6135 auto char dummy;
6136 if (addr == 0)
6138 addr = &dummy;
6139 return find_stack_direction ();
6141 else
6142 return (&dummy > addr) ? 1 : -1;
6146 main ()
6148 exit (find_stack_direction () < 0);
6150 _ACEOF
6151 rm -f conftest$ac_exeext
6152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6153 (eval $ac_link) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 (eval $ac_try) 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_c_stack_direction=1
6163 else
6164 echo "$as_me: program exited with status $ac_status" >&5
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6168 ( exit $ac_status )
6169 ac_cv_c_stack_direction=-1
6171 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6174 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6175 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6177 cat >>confdefs.h <<_ACEOF
6178 #define STACK_DIRECTION $ac_cv_c_stack_direction
6179 _ACEOF
6185 echo "$as_me:$LINENO: checking size of double" >&5
6186 echo $ECHO_N "checking size of double... $ECHO_C" >&6
6187 if test "${ac_cv_sizeof_double+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
6191 cat >conftest.$ac_ext <<_ACEOF
6192 /* confdefs.h. */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 #include "confdefs.h"
6198 #include <sys/types.h>
6202 main ()
6204 switch (0) case 0: case (sizeof (double) == $ac_size):;
6206 return 0;
6208 _ACEOF
6209 rm -f conftest.$ac_objext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6211 (eval $ac_compile) 2>conftest.er1
6212 ac_status=$?
6213 grep -v '^ *+' conftest.er1 >conftest.err
6214 rm -f conftest.er1
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } &&
6218 { ac_try='test -z "$ac_c_werror_flag"
6219 || test ! -s conftest.err'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 (eval $ac_try) 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; } &&
6225 { ac_try='test -s conftest.$ac_objext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 (eval $ac_try) 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_cv_sizeof_double=$ac_size
6232 else
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6238 if test x$ac_cv_sizeof_double != x ; then break; fi
6239 done
6243 if test x$ac_cv_sizeof_double = x ; then
6244 { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
6245 echo "$as_me: error: cannot determine a size for double" >&2;}
6246 { (exit 1); exit 1; }; }
6248 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6249 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6251 cat >>confdefs.h <<_ACEOF
6252 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6253 _ACEOF
6256 echo "$as_me:$LINENO: checking size of long double" >&5
6257 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
6258 if test "${ac_cv_sizeof_long_double+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
6262 cat >conftest.$ac_ext <<_ACEOF
6263 /* confdefs.h. */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6268 #include "confdefs.h"
6269 #include <sys/types.h>
6273 main ()
6275 switch (0) case 0: case (sizeof (long double) == $ac_size):;
6277 return 0;
6279 _ACEOF
6280 rm -f conftest.$ac_objext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6282 (eval $ac_compile) 2>conftest.er1
6283 ac_status=$?
6284 grep -v '^ *+' conftest.er1 >conftest.err
6285 rm -f conftest.er1
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -z "$ac_c_werror_flag"
6290 || test ! -s conftest.err'
6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 (eval $ac_try) 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }; } &&
6296 { ac_try='test -s conftest.$ac_objext'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 (eval $ac_try) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 ac_cv_sizeof_long_double=$ac_size
6303 else
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6309 if test x$ac_cv_sizeof_long_double != x ; then break; fi
6310 done
6314 if test x$ac_cv_sizeof_long_double = x ; then
6315 { { echo "$as_me:$LINENO: error: cannot determine a size for long double" >&5
6316 echo "$as_me: error: cannot determine a size for long double" >&2;}
6317 { (exit 1); exit 1; }; }
6319 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
6320 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
6322 cat >>confdefs.h <<_ACEOF
6323 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
6324 _ACEOF
6328 # Also AC_SUBST this variable for ffi.h.
6329 HAVE_LONG_DOUBLE=0
6330 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
6331 if test $ac_cv_sizeof_long_double != 0; then
6332 HAVE_LONG_DOUBLE=1
6334 cat >>confdefs.h <<\_ACEOF
6335 #define HAVE_LONG_DOUBLE 1
6336 _ACEOF
6342 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6343 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6344 if test "${ac_cv_c_bigendian+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347 ac_cv_c_bigendian=unknown
6348 # See if sys/param.h defines the BYTE_ORDER macro.
6349 cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h. */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 #include <sys/types.h>
6356 #include <sys/param.h>
6358 main ()
6361 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6362 bogus endian macros
6363 #endif
6365 return 0;
6367 _ACEOF
6368 rm -f conftest.$ac_objext
6369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6370 (eval $ac_compile) 2>conftest.er1
6371 ac_status=$?
6372 grep -v '^ *+' conftest.er1 >conftest.err
6373 rm -f conftest.er1
6374 cat conftest.err >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } &&
6377 { ac_try='test -z "$ac_c_werror_flag"
6378 || test ! -s conftest.err'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 (eval $ac_try) 2>&5
6381 ac_status=$?
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; } &&
6384 { ac_try='test -s conftest.$ac_objext'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 (eval $ac_try) 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
6390 # It does; now see whether it defined to BIG_ENDIAN or not.
6391 cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h. */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 #include <sys/types.h>
6398 #include <sys/param.h>
6400 main ()
6403 #if BYTE_ORDER != BIG_ENDIAN
6404 not big endian
6405 #endif
6407 return 0;
6409 _ACEOF
6410 rm -f conftest.$ac_objext
6411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6412 (eval $ac_compile) 2>conftest.er1
6413 ac_status=$?
6414 grep -v '^ *+' conftest.er1 >conftest.err
6415 rm -f conftest.er1
6416 cat conftest.err >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } &&
6419 { ac_try='test -z "$ac_c_werror_flag"
6420 || test ! -s conftest.err'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 (eval $ac_try) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; } &&
6426 { ac_try='test -s conftest.$ac_objext'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 (eval $ac_try) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
6432 ac_cv_c_bigendian=yes
6433 else
6434 echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6437 ac_cv_c_bigendian=no
6439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6440 else
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6446 if test $ac_cv_c_bigendian = unknown; then
6447 if test "$cross_compiling" = yes; then
6448 echo $ac_n "cross-compiling... " 2>&6
6449 else
6450 cat >conftest.$ac_ext <<_ACEOF
6451 /* confdefs.h. */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456 main () {
6457 /* Are we little or big endian? From Harbison&Steele. */
6458 union
6460 long l;
6461 char c[sizeof (long)];
6462 } u;
6463 u.l = 1;
6464 exit (u.c[sizeof (long) - 1] == 1);
6466 _ACEOF
6467 rm -f conftest$ac_exeext
6468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6469 (eval $ac_link) 2>&5
6470 ac_status=$?
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 (eval $ac_try) 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6478 ac_cv_c_bigendian=no
6479 else
6480 echo "$as_me: program exited with status $ac_status" >&5
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6484 ( exit $ac_status )
6485 ac_cv_c_bigendian=yes
6487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6491 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6492 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6493 if test $ac_cv_c_bigendian = unknown; then
6494 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6495 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6497 cat >conftest.c <<EOF
6498 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6499 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6500 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6501 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6502 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6503 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6504 int main() { _ascii (); _ebcdic (); return 0; }
6506 if test -f conftest.c ; then
6507 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6508 if test `grep -l BIGenDianSyS conftest.o` ; then
6509 echo $ac_n ' big endian probe OK, ' 1>&6
6510 ac_cv_c_bigendian=yes
6512 if test `grep -l LiTTleEnDian conftest.o` ; then
6513 echo $ac_n ' little endian probe OK, ' 1>&6
6514 if test $ac_cv_c_bigendian = yes ; then
6515 ac_cv_c_bigendian=unknown;
6516 else
6517 ac_cv_c_bigendian=no
6520 echo $ac_n 'guessing bigendian ... ' >&6
6523 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6524 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6526 if test $ac_cv_c_bigendian = yes; then
6528 cat >>confdefs.h <<\_ACEOF
6529 #define WORDS_BIGENDIAN 1
6530 _ACEOF
6533 cat >>confdefs.h <<\_ACEOF
6534 #define HOST_WORDS_BIG_ENDIAN 1
6535 _ACEOF
6537 BYTEORDER=4321
6538 else
6539 BYTEORDER=1234
6542 cat >>confdefs.h <<_ACEOF
6543 #define BYTEORDER $BYTEORDER
6544 _ACEOF
6546 if test $ac_cv_c_bigendian = unknown; then
6547 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6548 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6549 { (exit 1); exit 1; }; }
6553 if test x$TARGET = xSPARC; then
6554 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
6555 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
6556 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6560 save_CFLAGS="$CFLAGS"
6561 save_LDFLAGS="$LDFLAGS"
6562 CFLAGS="$CFLAGS -fpic"
6563 LDFLAGS="$LDFLAGS -shared"
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h. */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
6572 main ()
6576 return 0;
6578 _ACEOF
6579 rm -f conftest.$ac_objext conftest$ac_exeext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6581 (eval $ac_link) 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -z "$ac_c_werror_flag"
6589 || test ! -s conftest.err'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 (eval $ac_try) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; } &&
6595 { ac_try='test -s conftest$ac_exeext'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 (eval $ac_try) 2>&5
6598 ac_status=$?
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; }; then
6601 libffi_cv_as_sparc_ua_pcrel=yes
6602 else
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6606 libffi_cv_as_sparc_ua_pcrel=no
6608 rm -f conftest.err conftest.$ac_objext \
6609 conftest$ac_exeext conftest.$ac_ext
6610 CFLAGS="$save_CFLAGS"
6611 LDFLAGS="$save_LDFLAGS"
6613 echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
6614 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
6615 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
6617 cat >>confdefs.h <<\_ACEOF
6618 #define HAVE_AS_SPARC_UA_PCREL 1
6619 _ACEOF
6623 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
6624 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
6625 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6629 libffi_cv_as_register_pseudo_op=unknown
6630 # Check if we have .register
6631 cat >conftest.$ac_ext <<_ACEOF
6632 /* confdefs.h. */
6633 _ACEOF
6634 cat confdefs.h >>conftest.$ac_ext
6635 cat >>conftest.$ac_ext <<_ACEOF
6636 /* end confdefs.h. */
6637 asm (".register %g2, #scratch");
6639 main ()
6643 return 0;
6645 _ACEOF
6646 rm -f conftest.$ac_objext
6647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6648 (eval $ac_compile) 2>conftest.er1
6649 ac_status=$?
6650 grep -v '^ *+' conftest.er1 >conftest.err
6651 rm -f conftest.er1
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } &&
6655 { ac_try='test -z "$ac_c_werror_flag"
6656 || test ! -s conftest.err'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 (eval $ac_try) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; } &&
6662 { ac_try='test -s conftest.$ac_objext'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 (eval $ac_try) 2>&5
6665 ac_status=$?
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6668 libffi_cv_as_register_pseudo_op=yes
6669 else
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6673 libffi_cv_as_register_pseudo_op=no
6675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6678 echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
6679 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
6680 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
6682 cat >>confdefs.h <<\_ACEOF
6683 #define HAVE_AS_REGISTER_PSEUDO_OP 1
6684 _ACEOF
6689 echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
6690 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
6691 if test "${libffi_cv_ro_eh_frame+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6695 libffi_cv_ro_eh_frame=no
6696 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
6697 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
6698 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
6699 libffi_cv_ro_eh_frame=yes
6700 elif grep '.section.*eh_frame.*#alloc' conftest.c \
6701 | grep -v '#write' > /dev/null; then
6702 libffi_cv_ro_eh_frame=yes
6705 rm -f conftest.*
6708 echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
6709 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
6710 if test "x$libffi_cv_ro_eh_frame" = xyes; then
6712 cat >>confdefs.h <<\_ACEOF
6713 #define HAVE_RO_EH_FRAME 1
6714 _ACEOF
6717 cat >>confdefs.h <<\_ACEOF
6718 #define EH_FRAME_FLAGS "a"
6719 _ACEOF
6721 else
6723 cat >>confdefs.h <<\_ACEOF
6724 #define EH_FRAME_FLAGS "aw"
6725 _ACEOF
6734 # Check whether --enable-debug or --disable-debug was given.
6735 if test "${enable_debug+set}" = set; then
6736 enableval="$enable_debug"
6737 if test "$enable_debug" = "yes"; then
6739 cat >>confdefs.h <<\_ACEOF
6740 #define FFI_DEBUG 1
6741 _ACEOF
6746 # Check whether --enable-structs or --disable-structs was given.
6747 if test "${enable_structs+set}" = set; then
6748 enableval="$enable_structs"
6749 if test "$enable_structs" = "no"; then
6751 cat >>confdefs.h <<\_ACEOF
6752 #define FFI_NO_STRUCTS 1
6753 _ACEOF
6758 # Check whether --enable-raw-api or --disable-raw-api was given.
6759 if test "${enable_raw_api+set}" = set; then
6760 enableval="$enable_raw_api"
6761 if test "$enable_raw_api" = "no"; then
6763 cat >>confdefs.h <<\_ACEOF
6764 #define FFI_NO_RAW_API 1
6765 _ACEOF
6770 # Check whether --enable-purify-safety or --disable-purify-safety was given.
6771 if test "${enable_purify_safety+set}" = set; then
6772 enableval="$enable_purify_safety"
6773 if test "$enable_purify_safety" = "yes"; then
6775 cat >>confdefs.h <<\_ACEOF
6776 #define USING_PURIFY 1
6777 _ACEOF
6782 if test -n "$with_cross_host" &&
6783 test x"$with_cross_host" != x"no"; then
6784 toolexecdir='$(exec_prefix)/$(target_alias)'
6785 toolexeclibdir='$(toolexecdir)/lib'
6786 else
6787 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
6788 toolexeclibdir='$(libdir)'
6790 multi_os_directory=`$CC -print-multi-os-directory`
6791 case $multi_os_directory in
6792 .) ;; # Avoid trailing /.
6793 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
6794 esac
6799 if test "${with_gcc_version_trigger+set}" = set; then
6800 gcc_version_trigger=$with_gcc_version_trigger
6801 else
6802 gcc_version_trigger=$srcdir/../gcc/version.c
6804 if test -f "${gcc_version_trigger}"; then
6805 gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
6806 else
6807 gcc_version_full=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
6809 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
6815 #Figure out where generated headers like ffitarget.h get installed.
6816 tool_include_dir='$(libdir)/gcc/$(target_alias)/'${gcc_version}/include
6819 if test "${multilib}" = "yes"; then
6820 multilib_arg="--enable-multilib"
6821 else
6822 multilib_arg=
6825 ac_config_commands="$ac_config_commands include"
6827 ac_config_commands="$ac_config_commands src"
6830 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
6833 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
6836 cat >confcache <<\_ACEOF
6837 # This file is a shell script that caches the results of configure
6838 # tests run on this system so they can be shared between configure
6839 # scripts and configure runs, see configure's option --config-cache.
6840 # It is not useful on other systems. If it contains results you don't
6841 # want to keep, you may remove or edit it.
6843 # config.status only pays attention to the cache file if you give it
6844 # the --recheck option to rerun configure.
6846 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6847 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6848 # following values.
6850 _ACEOF
6852 # The following way of writing the cache mishandles newlines in values,
6853 # but we know of no workaround that is simple, portable, and efficient.
6854 # So, don't put newlines in cache variables' values.
6855 # Ultrix sh set writes to stderr and can't be redirected directly,
6856 # and sets the high bit in the cache file unless we assign to the vars.
6858 (set) 2>&1 |
6859 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6860 *ac_space=\ *)
6861 # `set' does not quote correctly, so add quotes (double-quote
6862 # substitution turns \\\\ into \\, and sed turns \\ into \).
6863 sed -n \
6864 "s/'/'\\\\''/g;
6865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6868 # `set' quotes correctly as required by POSIX, so do not add quotes.
6869 sed -n \
6870 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6872 esac;
6874 sed '
6875 t clear
6876 : clear
6877 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6878 t end
6879 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6880 : end' >>confcache
6881 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6882 if test -w $cache_file; then
6883 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6884 cat confcache >$cache_file
6885 else
6886 echo "not updating unwritable cache $cache_file"
6889 rm -f confcache
6891 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6892 # Let make expand exec_prefix.
6893 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6895 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6896 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6897 # trailing colons and then remove the whole line if VPATH becomes empty
6898 # (actually we leave an empty line to preserve line numbers).
6899 if test "x$srcdir" = x.; then
6900 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6901 s/:*\$(srcdir):*/:/;
6902 s/:*\${srcdir}:*/:/;
6903 s/:*@srcdir@:*/:/;
6904 s/^\([^=]*=[ ]*\):*/\1/;
6905 s/:*$//;
6906 s/^[^=]*=[ ]*$//;
6910 DEFS=-DHAVE_CONFIG_H
6912 ac_libobjs=
6913 ac_ltlibobjs=
6914 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6915 # 1. Remove the extension, and $U if already installed.
6916 ac_i=`echo "$ac_i" |
6917 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6918 # 2. Add them.
6919 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6920 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6921 done
6922 LIBOBJS=$ac_libobjs
6924 LTLIBOBJS=$ac_ltlibobjs
6927 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6928 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6929 Usually this means the macro was only invoked conditionally." >&5
6930 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6931 Usually this means the macro was only invoked conditionally." >&2;}
6932 { (exit 1); exit 1; }; }
6934 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6935 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6936 Usually this means the macro was only invoked conditionally." >&5
6937 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6938 Usually this means the macro was only invoked conditionally." >&2;}
6939 { (exit 1); exit 1; }; }
6941 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6942 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6943 Usually this means the macro was only invoked conditionally." >&5
6944 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6945 Usually this means the macro was only invoked conditionally." >&2;}
6946 { (exit 1); exit 1; }; }
6948 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
6949 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
6950 Usually this means the macro was only invoked conditionally." >&5
6951 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
6952 Usually this means the macro was only invoked conditionally." >&2;}
6953 { (exit 1); exit 1; }; }
6955 if test -z "${MIPS_IRIX_TRUE}" && test -z "${MIPS_IRIX_FALSE}"; then
6956 { { echo "$as_me:$LINENO: error: conditional \"MIPS_IRIX\" was never defined.
6957 Usually this means the macro was only invoked conditionally." >&5
6958 echo "$as_me: error: conditional \"MIPS_IRIX\" was never defined.
6959 Usually this means the macro was only invoked conditionally." >&2;}
6960 { (exit 1); exit 1; }; }
6962 if test -z "${MIPS_LINUX_TRUE}" && test -z "${MIPS_LINUX_FALSE}"; then
6963 { { echo "$as_me:$LINENO: error: conditional \"MIPS_LINUX\" was never defined.
6964 Usually this means the macro was only invoked conditionally." >&5
6965 echo "$as_me: error: conditional \"MIPS_LINUX\" was never defined.
6966 Usually this means the macro was only invoked conditionally." >&2;}
6967 { (exit 1); exit 1; }; }
6969 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
6970 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
6971 Usually this means the macro was only invoked conditionally." >&5
6972 echo "$as_me: error: conditional \"SPARC\" was never defined.
6973 Usually this means the macro was only invoked conditionally." >&2;}
6974 { (exit 1); exit 1; }; }
6976 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
6977 { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
6978 Usually this means the macro was only invoked conditionally." >&5
6979 echo "$as_me: error: conditional \"X86\" was never defined.
6980 Usually this means the macro was only invoked conditionally." >&2;}
6981 { (exit 1); exit 1; }; }
6983 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
6984 { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
6985 Usually this means the macro was only invoked conditionally." >&5
6986 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
6987 Usually this means the macro was only invoked conditionally." >&2;}
6988 { (exit 1); exit 1; }; }
6990 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
6991 { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
6992 Usually this means the macro was only invoked conditionally." >&5
6993 echo "$as_me: error: conditional \"ALPHA\" was never defined.
6994 Usually this means the macro was only invoked conditionally." >&2;}
6995 { (exit 1); exit 1; }; }
6997 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
6998 { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
6999 Usually this means the macro was only invoked conditionally." >&5
7000 echo "$as_me: error: conditional \"IA64\" was never defined.
7001 Usually this means the macro was only invoked conditionally." >&2;}
7002 { (exit 1); exit 1; }; }
7004 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
7005 { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
7006 Usually this means the macro was only invoked conditionally." >&5
7007 echo "$as_me: error: conditional \"M32R\" was never defined.
7008 Usually this means the macro was only invoked conditionally." >&2;}
7009 { (exit 1); exit 1; }; }
7011 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
7012 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
7013 Usually this means the macro was only invoked conditionally." >&5
7014 echo "$as_me: error: conditional \"M68K\" was never defined.
7015 Usually this means the macro was only invoked conditionally." >&2;}
7016 { (exit 1); exit 1; }; }
7018 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
7019 { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
7020 Usually this means the macro was only invoked conditionally." >&5
7021 echo "$as_me: error: conditional \"POWERPC\" was never defined.
7022 Usually this means the macro was only invoked conditionally." >&2;}
7023 { (exit 1); exit 1; }; }
7025 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
7026 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
7027 Usually this means the macro was only invoked conditionally." >&5
7028 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
7029 Usually this means the macro was only invoked conditionally." >&2;}
7030 { (exit 1); exit 1; }; }
7032 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
7033 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
7034 Usually this means the macro was only invoked conditionally." >&5
7035 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
7036 Usually this means the macro was only invoked conditionally." >&2;}
7037 { (exit 1); exit 1; }; }
7039 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
7040 { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
7041 Usually this means the macro was only invoked conditionally." >&5
7042 echo "$as_me: error: conditional \"ARM\" was never defined.
7043 Usually this means the macro was only invoked conditionally." >&2;}
7044 { (exit 1); exit 1; }; }
7046 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
7047 { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
7048 Usually this means the macro was only invoked conditionally." >&5
7049 echo "$as_me: error: conditional \"FRV\" was never defined.
7050 Usually this means the macro was only invoked conditionally." >&2;}
7051 { (exit 1); exit 1; }; }
7053 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
7054 { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
7055 Usually this means the macro was only invoked conditionally." >&5
7056 echo "$as_me: error: conditional \"S390\" was never defined.
7057 Usually this means the macro was only invoked conditionally." >&2;}
7058 { (exit 1); exit 1; }; }
7060 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
7061 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
7062 Usually this means the macro was only invoked conditionally." >&5
7063 echo "$as_me: error: conditional \"X86_64\" was never defined.
7064 Usually this means the macro was only invoked conditionally." >&2;}
7065 { (exit 1); exit 1; }; }
7067 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
7068 { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
7069 Usually this means the macro was only invoked conditionally." >&5
7070 echo "$as_me: error: conditional \"SH\" was never defined.
7071 Usually this means the macro was only invoked conditionally." >&2;}
7072 { (exit 1); exit 1; }; }
7074 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
7075 { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
7076 Usually this means the macro was only invoked conditionally." >&5
7077 echo "$as_me: error: conditional \"SH64\" was never defined.
7078 Usually this means the macro was only invoked conditionally." >&2;}
7079 { (exit 1); exit 1; }; }
7081 if test -z "${PA_TRUE}" && test -z "${PA_FALSE}"; then
7082 { { echo "$as_me:$LINENO: error: conditional \"PA\" was never defined.
7083 Usually this means the macro was only invoked conditionally." >&5
7084 echo "$as_me: error: conditional \"PA\" was never defined.
7085 Usually this means the macro was only invoked conditionally." >&2;}
7086 { (exit 1); exit 1; }; }
7089 : ${CONFIG_STATUS=./config.status}
7090 ac_clean_files_save=$ac_clean_files
7091 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7092 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7093 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7094 cat >$CONFIG_STATUS <<_ACEOF
7095 #! $SHELL
7096 # Generated by $as_me.
7097 # Run this file to recreate the current configuration.
7098 # Compiler output produced by configure, useful for debugging
7099 # configure, is in config.log if it exists.
7101 debug=false
7102 ac_cs_recheck=false
7103 ac_cs_silent=false
7104 SHELL=\${CONFIG_SHELL-$SHELL}
7105 _ACEOF
7107 cat >>$CONFIG_STATUS <<\_ACEOF
7108 ## --------------------- ##
7109 ## M4sh Initialization. ##
7110 ## --------------------- ##
7112 # Be Bourne compatible
7113 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7114 emulate sh
7115 NULLCMD=:
7116 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7117 # is contrary to our usage. Disable this feature.
7118 alias -g '${1+"$@"}'='"$@"'
7119 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7120 set -o posix
7122 DUALCASE=1; export DUALCASE # for MKS sh
7124 # Support unset when possible.
7125 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7126 as_unset=unset
7127 else
7128 as_unset=false
7132 # Work around bugs in pre-3.0 UWIN ksh.
7133 $as_unset ENV MAIL MAILPATH
7134 PS1='$ '
7135 PS2='> '
7136 PS4='+ '
7138 # NLS nuisances.
7139 for as_var in \
7140 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7141 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7142 LC_TELEPHONE LC_TIME
7144 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7145 eval $as_var=C; export $as_var
7146 else
7147 $as_unset $as_var
7149 done
7151 # Required to use basename.
7152 if expr a : '\(a\)' >/dev/null 2>&1; then
7153 as_expr=expr
7154 else
7155 as_expr=false
7158 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7159 as_basename=basename
7160 else
7161 as_basename=false
7165 # Name of the executable.
7166 as_me=`$as_basename "$0" ||
7167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7168 X"$0" : 'X\(//\)$' \| \
7169 X"$0" : 'X\(/\)$' \| \
7170 . : '\(.\)' 2>/dev/null ||
7171 echo X/"$0" |
7172 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7173 /^X\/\(\/\/\)$/{ s//\1/; q; }
7174 /^X\/\(\/\).*/{ s//\1/; q; }
7175 s/.*/./; q'`
7178 # PATH needs CR, and LINENO needs CR and PATH.
7179 # Avoid depending upon Character Ranges.
7180 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7181 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7182 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7183 as_cr_digits='0123456789'
7184 as_cr_alnum=$as_cr_Letters$as_cr_digits
7186 # The user is always right.
7187 if test "${PATH_SEPARATOR+set}" != set; then
7188 echo "#! /bin/sh" >conf$$.sh
7189 echo "exit 0" >>conf$$.sh
7190 chmod +x conf$$.sh
7191 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7192 PATH_SEPARATOR=';'
7193 else
7194 PATH_SEPARATOR=:
7196 rm -f conf$$.sh
7200 as_lineno_1=$LINENO
7201 as_lineno_2=$LINENO
7202 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7203 test "x$as_lineno_1" != "x$as_lineno_2" &&
7204 test "x$as_lineno_3" = "x$as_lineno_2" || {
7205 # Find who we are. Look in the path if we contain no path at all
7206 # relative or not.
7207 case $0 in
7208 *[\\/]* ) as_myself=$0 ;;
7209 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
7214 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7215 done
7218 esac
7219 # We did not find ourselves, most probably we were run as `sh COMMAND'
7220 # in which case we are not to be found in the path.
7221 if test "x$as_myself" = x; then
7222 as_myself=$0
7224 if test ! -f "$as_myself"; then
7225 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7226 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7227 { (exit 1); exit 1; }; }
7229 case $CONFIG_SHELL in
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
7236 for as_base in sh bash ksh sh5; do
7237 case $as_dir in
7239 if ("$as_dir/$as_base" -c '
7240 as_lineno_1=$LINENO
7241 as_lineno_2=$LINENO
7242 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7243 test "x$as_lineno_1" != "x$as_lineno_2" &&
7244 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7245 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7246 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7247 CONFIG_SHELL=$as_dir/$as_base
7248 export CONFIG_SHELL
7249 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7250 fi;;
7251 esac
7252 done
7253 done
7255 esac
7257 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7258 # uniformly replaced by the line number. The first 'sed' inserts a
7259 # line-number line before each line; the second 'sed' does the real
7260 # work. The second script uses 'N' to pair each line-number line
7261 # with the numbered line, and appends trailing '-' during
7262 # substitution so that $LINENO is not a special case at line end.
7263 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7264 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7265 sed '=' <$as_myself |
7266 sed '
7268 s,$,-,
7269 : loop
7270 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7271 t loop
7272 s,-$,,
7273 s,^['$as_cr_digits']*\n,,
7274 ' >$as_me.lineno &&
7275 chmod +x $as_me.lineno ||
7276 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7277 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7278 { (exit 1); exit 1; }; }
7280 # Don't try to exec as it changes $[0], causing all sort of problems
7281 # (the dirname of $[0] is not the place where we might find the
7282 # original and so on. Autoconf is especially sensible to this).
7283 . ./$as_me.lineno
7284 # Exit status is that of the last command.
7285 exit
7289 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7290 *c*,-n*) ECHO_N= ECHO_C='
7291 ' ECHO_T=' ' ;;
7292 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7293 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7294 esac
7296 if expr a : '\(a\)' >/dev/null 2>&1; then
7297 as_expr=expr
7298 else
7299 as_expr=false
7302 rm -f conf$$ conf$$.exe conf$$.file
7303 echo >conf$$.file
7304 if ln -s conf$$.file conf$$ 2>/dev/null; then
7305 # We could just check for DJGPP; but this test a) works b) is more generic
7306 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7307 if test -f conf$$.exe; then
7308 # Don't use ln at all; we don't have any links
7309 as_ln_s='cp -p'
7310 else
7311 as_ln_s='ln -s'
7313 elif ln conf$$.file conf$$ 2>/dev/null; then
7314 as_ln_s=ln
7315 else
7316 as_ln_s='cp -p'
7318 rm -f conf$$ conf$$.exe conf$$.file
7320 if mkdir -p . 2>/dev/null; then
7321 as_mkdir_p=:
7322 else
7323 test -d ./-p && rmdir ./-p
7324 as_mkdir_p=false
7327 as_executable_p="test -f"
7329 # Sed expression to map a string onto a valid CPP name.
7330 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7332 # Sed expression to map a string onto a valid variable name.
7333 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7336 # IFS
7337 # We need space, tab and new line, in precisely that order.
7338 as_nl='
7340 IFS=" $as_nl"
7342 # CDPATH.
7343 $as_unset CDPATH
7345 exec 6>&1
7347 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7348 # report actual input values of CONFIG_FILES etc. instead of their
7349 # values after options handling. Logging --version etc. is OK.
7350 exec 5>>config.log
7352 echo
7353 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7354 ## Running $as_me. ##
7355 _ASBOX
7356 } >&5
7357 cat >&5 <<_CSEOF
7359 This file was extended by libffi $as_me 2.1, which was
7360 generated by GNU Autoconf 2.59. Invocation command line was
7362 CONFIG_FILES = $CONFIG_FILES
7363 CONFIG_HEADERS = $CONFIG_HEADERS
7364 CONFIG_LINKS = $CONFIG_LINKS
7365 CONFIG_COMMANDS = $CONFIG_COMMANDS
7366 $ $0 $@
7368 _CSEOF
7369 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7370 echo >&5
7371 _ACEOF
7373 # Files that config.status was made for.
7374 if test -n "$ac_config_files"; then
7375 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7378 if test -n "$ac_config_headers"; then
7379 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7382 if test -n "$ac_config_links"; then
7383 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7386 if test -n "$ac_config_commands"; then
7387 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7390 cat >>$CONFIG_STATUS <<\_ACEOF
7392 ac_cs_usage="\
7393 \`$as_me' instantiates files from templates according to the
7394 current configuration.
7396 Usage: $0 [OPTIONS] [FILE]...
7398 -h, --help print this help, then exit
7399 -V, --version print version number, then exit
7400 -q, --quiet do not print progress messages
7401 -d, --debug don't remove temporary files
7402 --recheck update $as_me by reconfiguring in the same conditions
7403 --file=FILE[:TEMPLATE]
7404 instantiate the configuration file FILE
7405 --header=FILE[:TEMPLATE]
7406 instantiate the configuration header FILE
7408 Configuration files:
7409 $config_files
7411 Configuration headers:
7412 $config_headers
7414 Configuration links:
7415 $config_links
7417 Configuration commands:
7418 $config_commands
7420 Report bugs to <bug-autoconf@gnu.org>."
7421 _ACEOF
7423 cat >>$CONFIG_STATUS <<_ACEOF
7424 ac_cs_version="\\
7425 libffi config.status 2.1
7426 configured by $0, generated by GNU Autoconf 2.59,
7427 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7429 Copyright (C) 2003 Free Software Foundation, Inc.
7430 This config.status script is free software; the Free Software Foundation
7431 gives unlimited permission to copy, distribute and modify it."
7432 srcdir=$srcdir
7433 INSTALL="$INSTALL"
7434 _ACEOF
7436 cat >>$CONFIG_STATUS <<\_ACEOF
7437 # If no file are specified by the user, then we need to provide default
7438 # value. By we need to know if files were specified by the user.
7439 ac_need_defaults=:
7440 while test $# != 0
7442 case $1 in
7443 --*=*)
7444 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7445 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7446 ac_shift=:
7449 ac_option=$1
7450 ac_optarg=$2
7451 ac_shift=shift
7453 *) # This is not an option, so the user has probably given explicit
7454 # arguments.
7455 ac_option=$1
7456 ac_need_defaults=false;;
7457 esac
7459 case $ac_option in
7460 # Handling of the options.
7461 _ACEOF
7462 cat >>$CONFIG_STATUS <<\_ACEOF
7463 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7464 ac_cs_recheck=: ;;
7465 --version | --vers* | -V )
7466 echo "$ac_cs_version"; exit 0 ;;
7467 --he | --h)
7468 # Conflict between --help and --header
7469 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7470 Try \`$0 --help' for more information." >&5
7471 echo "$as_me: error: ambiguous option: $1
7472 Try \`$0 --help' for more information." >&2;}
7473 { (exit 1); exit 1; }; };;
7474 --help | --hel | -h )
7475 echo "$ac_cs_usage"; exit 0 ;;
7476 --debug | --d* | -d )
7477 debug=: ;;
7478 --file | --fil | --fi | --f )
7479 $ac_shift
7480 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7481 ac_need_defaults=false;;
7482 --header | --heade | --head | --hea )
7483 $ac_shift
7484 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7485 ac_need_defaults=false;;
7486 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7487 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7488 ac_cs_silent=: ;;
7490 # This is an error.
7491 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7492 Try \`$0 --help' for more information." >&5
7493 echo "$as_me: error: unrecognized option: $1
7494 Try \`$0 --help' for more information." >&2;}
7495 { (exit 1); exit 1; }; } ;;
7497 *) ac_config_targets="$ac_config_targets $1" ;;
7499 esac
7500 shift
7501 done
7503 ac_configure_extra_args=
7505 if $ac_cs_silent; then
7506 exec 6>/dev/null
7507 ac_configure_extra_args="$ac_configure_extra_args --silent"
7510 _ACEOF
7511 cat >>$CONFIG_STATUS <<_ACEOF
7512 if \$ac_cs_recheck; then
7513 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7514 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7517 _ACEOF
7519 cat >>$CONFIG_STATUS <<_ACEOF
7521 # INIT-COMMANDS section.
7525 srcdir="$srcdir"
7526 host="$host"
7527 target="$target"
7528 with_multisubdir="$with_multisubdir"
7529 with_multisrctop="$with_multisrctop"
7530 with_target_subdir="$with_target_subdir"
7531 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7532 multi_basedir="$multi_basedir"
7533 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7534 CC="$CC"
7535 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7536 TARGETDIR="$TARGETDIR"
7538 _ACEOF
7542 cat >>$CONFIG_STATUS <<\_ACEOF
7543 for ac_config_target in $ac_config_targets
7545 case "$ac_config_target" in
7546 # Handling of arguments.
7547 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
7548 "include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
7549 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7550 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
7551 "include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
7552 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7553 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7554 "include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
7555 "src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
7556 "fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
7557 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7558 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7559 { (exit 1); exit 1; }; };;
7560 esac
7561 done
7563 # If the user did not use the arguments to specify the items to instantiate,
7564 # then the envvar interface is used. Set only those that are not.
7565 # We use the long form for the default assignment because of an extremely
7566 # bizarre bug on SunOS 4.1.3.
7567 if $ac_need_defaults; then
7568 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7569 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7570 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7571 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7574 # Have a temporary directory for convenience. Make it in the build tree
7575 # simply because there is no reason to put it here, and in addition,
7576 # creating and moving files from /tmp can sometimes cause problems.
7577 # Create a temporary directory, and hook for its removal unless debugging.
7578 $debug ||
7580 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7581 trap '{ (exit 1); exit 1; }' 1 2 13 15
7584 # Create a (secure) tmp directory for tmp files.
7587 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7588 test -n "$tmp" && test -d "$tmp"
7589 } ||
7591 tmp=./confstat$$-$RANDOM
7592 (umask 077 && mkdir $tmp)
7593 } ||
7595 echo "$me: cannot create a temporary directory in ." >&2
7596 { (exit 1); exit 1; }
7599 _ACEOF
7601 cat >>$CONFIG_STATUS <<_ACEOF
7604 # CONFIG_FILES section.
7607 # No need to generate the scripts if there are no CONFIG_FILES.
7608 # This happens for instance when ./config.status config.h
7609 if test -n "\$CONFIG_FILES"; then
7610 # Protect against being on the right side of a sed subst in config.status.
7611 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7612 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7613 s,@SHELL@,$SHELL,;t t
7614 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7615 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7616 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7617 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7618 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7619 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7620 s,@exec_prefix@,$exec_prefix,;t t
7621 s,@prefix@,$prefix,;t t
7622 s,@program_transform_name@,$program_transform_name,;t t
7623 s,@bindir@,$bindir,;t t
7624 s,@sbindir@,$sbindir,;t t
7625 s,@libexecdir@,$libexecdir,;t t
7626 s,@datadir@,$datadir,;t t
7627 s,@sysconfdir@,$sysconfdir,;t t
7628 s,@sharedstatedir@,$sharedstatedir,;t t
7629 s,@localstatedir@,$localstatedir,;t t
7630 s,@libdir@,$libdir,;t t
7631 s,@includedir@,$includedir,;t t
7632 s,@oldincludedir@,$oldincludedir,;t t
7633 s,@infodir@,$infodir,;t t
7634 s,@mandir@,$mandir,;t t
7635 s,@build_alias@,$build_alias,;t t
7636 s,@host_alias@,$host_alias,;t t
7637 s,@target_alias@,$target_alias,;t t
7638 s,@DEFS@,$DEFS,;t t
7639 s,@ECHO_C@,$ECHO_C,;t t
7640 s,@ECHO_N@,$ECHO_N,;t t
7641 s,@ECHO_T@,$ECHO_T,;t t
7642 s,@LIBS@,$LIBS,;t t
7643 s,@multi_basedir@,$multi_basedir,;t t
7644 s,@build@,$build,;t t
7645 s,@build_cpu@,$build_cpu,;t t
7646 s,@build_vendor@,$build_vendor,;t t
7647 s,@build_os@,$build_os,;t t
7648 s,@host@,$host,;t t
7649 s,@host_cpu@,$host_cpu,;t t
7650 s,@host_vendor@,$host_vendor,;t t
7651 s,@host_os@,$host_os,;t t
7652 s,@target@,$target,;t t
7653 s,@target_cpu@,$target_cpu,;t t
7654 s,@target_vendor@,$target_vendor,;t t
7655 s,@target_os@,$target_os,;t t
7656 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7657 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7658 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7659 s,@CYGPATH_W@,$CYGPATH_W,;t t
7660 s,@PACKAGE@,$PACKAGE,;t t
7661 s,@VERSION@,$VERSION,;t t
7662 s,@ACLOCAL@,$ACLOCAL,;t t
7663 s,@AUTOCONF@,$AUTOCONF,;t t
7664 s,@AUTOMAKE@,$AUTOMAKE,;t t
7665 s,@AUTOHEADER@,$AUTOHEADER,;t t
7666 s,@MAKEINFO@,$MAKEINFO,;t t
7667 s,@install_sh@,$install_sh,;t t
7668 s,@STRIP@,$STRIP,;t t
7669 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7670 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7671 s,@mkdir_p@,$mkdir_p,;t t
7672 s,@AWK@,$AWK,;t t
7673 s,@SET_MAKE@,$SET_MAKE,;t t
7674 s,@am__leading_dot@,$am__leading_dot,;t t
7675 s,@AMTAR@,$AMTAR,;t t
7676 s,@am__tar@,$am__tar,;t t
7677 s,@am__untar@,$am__untar,;t t
7678 s,@CC@,$CC,;t t
7679 s,@ac_ct_CC@,$ac_ct_CC,;t t
7680 s,@EXEEXT@,$EXEEXT,;t t
7681 s,@OBJEXT@,$OBJEXT,;t t
7682 s,@DEPDIR@,$DEPDIR,;t t
7683 s,@am__include@,$am__include,;t t
7684 s,@am__quote@,$am__quote,;t t
7685 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7686 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7687 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7688 s,@CCDEPMODE@,$CCDEPMODE,;t t
7689 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7690 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7691 s,@CFLAGS@,$CFLAGS,;t t
7692 s,@CCAS@,$CCAS,;t t
7693 s,@CCASFLAGS@,$CCASFLAGS,;t t
7694 s,@LN_S@,$LN_S,;t t
7695 s,@RANLIB@,$RANLIB,;t t
7696 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7697 s,@LIBTOOL@,$LIBTOOL,;t t
7698 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7699 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7700 s,@MAINT@,$MAINT,;t t
7701 s,@CPP@,$CPP,;t t
7702 s,@CPPFLAGS@,$CPPFLAGS,;t t
7703 s,@EGREP@,$EGREP,;t t
7704 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
7705 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
7706 s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
7707 s,@MIPS_IRIX_TRUE@,$MIPS_IRIX_TRUE,;t t
7708 s,@MIPS_IRIX_FALSE@,$MIPS_IRIX_FALSE,;t t
7709 s,@MIPS_LINUX_TRUE@,$MIPS_LINUX_TRUE,;t t
7710 s,@MIPS_LINUX_FALSE@,$MIPS_LINUX_FALSE,;t t
7711 s,@SPARC_TRUE@,$SPARC_TRUE,;t t
7712 s,@SPARC_FALSE@,$SPARC_FALSE,;t t
7713 s,@X86_TRUE@,$X86_TRUE,;t t
7714 s,@X86_FALSE@,$X86_FALSE,;t t
7715 s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
7716 s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
7717 s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
7718 s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
7719 s,@IA64_TRUE@,$IA64_TRUE,;t t
7720 s,@IA64_FALSE@,$IA64_FALSE,;t t
7721 s,@M32R_TRUE@,$M32R_TRUE,;t t
7722 s,@M32R_FALSE@,$M32R_FALSE,;t t
7723 s,@M68K_TRUE@,$M68K_TRUE,;t t
7724 s,@M68K_FALSE@,$M68K_FALSE,;t t
7725 s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
7726 s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
7727 s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
7728 s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
7729 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
7730 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
7731 s,@ARM_TRUE@,$ARM_TRUE,;t t
7732 s,@ARM_FALSE@,$ARM_FALSE,;t t
7733 s,@FRV_TRUE@,$FRV_TRUE,;t t
7734 s,@FRV_FALSE@,$FRV_FALSE,;t t
7735 s,@S390_TRUE@,$S390_TRUE,;t t
7736 s,@S390_FALSE@,$S390_FALSE,;t t
7737 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
7738 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
7739 s,@SH_TRUE@,$SH_TRUE,;t t
7740 s,@SH_FALSE@,$SH_FALSE,;t t
7741 s,@SH64_TRUE@,$SH64_TRUE,;t t
7742 s,@SH64_FALSE@,$SH64_FALSE,;t t
7743 s,@PA_TRUE@,$PA_TRUE,;t t
7744 s,@PA_FALSE@,$PA_FALSE,;t t
7745 s,@ALLOCA@,$ALLOCA,;t t
7746 s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
7747 s,@TARGET@,$TARGET,;t t
7748 s,@TARGETDIR@,$TARGETDIR,;t t
7749 s,@toolexecdir@,$toolexecdir,;t t
7750 s,@toolexeclibdir@,$toolexeclibdir,;t t
7751 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
7752 s,@gcc_version_full@,$gcc_version_full,;t t
7753 s,@gcc_version@,$gcc_version,;t t
7754 s,@tool_include_dir@,$tool_include_dir,;t t
7755 s,@LIBOBJS@,$LIBOBJS,;t t
7756 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7757 CEOF
7759 _ACEOF
7761 cat >>$CONFIG_STATUS <<\_ACEOF
7762 # Split the substitutions into bite-sized pieces for seds with
7763 # small command number limits, like on Digital OSF/1 and HP-UX.
7764 ac_max_sed_lines=48
7765 ac_sed_frag=1 # Number of current file.
7766 ac_beg=1 # First line for current file.
7767 ac_end=$ac_max_sed_lines # Line after last line for current file.
7768 ac_more_lines=:
7769 ac_sed_cmds=
7770 while $ac_more_lines; do
7771 if test $ac_beg -gt 1; then
7772 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7773 else
7774 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7776 if test ! -s $tmp/subs.frag; then
7777 ac_more_lines=false
7778 else
7779 # The purpose of the label and of the branching condition is to
7780 # speed up the sed processing (if there are no `@' at all, there
7781 # is no need to browse any of the substitutions).
7782 # These are the two extra sed commands mentioned above.
7783 (echo ':t
7784 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7785 if test -z "$ac_sed_cmds"; then
7786 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7787 else
7788 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7790 ac_sed_frag=`expr $ac_sed_frag + 1`
7791 ac_beg=$ac_end
7792 ac_end=`expr $ac_end + $ac_max_sed_lines`
7794 done
7795 if test -z "$ac_sed_cmds"; then
7796 ac_sed_cmds=cat
7798 fi # test -n "$CONFIG_FILES"
7800 _ACEOF
7801 cat >>$CONFIG_STATUS <<\_ACEOF
7802 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7803 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7804 case $ac_file in
7805 - | *:- | *:-:* ) # input from stdin
7806 cat >$tmp/stdin
7807 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7808 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7809 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7810 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7811 * ) ac_file_in=$ac_file.in ;;
7812 esac
7814 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7815 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7816 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7817 X"$ac_file" : 'X\(//\)[^/]' \| \
7818 X"$ac_file" : 'X\(//\)$' \| \
7819 X"$ac_file" : 'X\(/\)' \| \
7820 . : '\(.\)' 2>/dev/null ||
7821 echo X"$ac_file" |
7822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7824 /^X\(\/\/\)$/{ s//\1/; q; }
7825 /^X\(\/\).*/{ s//\1/; q; }
7826 s/.*/./; q'`
7827 { if $as_mkdir_p; then
7828 mkdir -p "$ac_dir"
7829 else
7830 as_dir="$ac_dir"
7831 as_dirs=
7832 while test ! -d "$as_dir"; do
7833 as_dirs="$as_dir $as_dirs"
7834 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7836 X"$as_dir" : 'X\(//\)[^/]' \| \
7837 X"$as_dir" : 'X\(//\)$' \| \
7838 X"$as_dir" : 'X\(/\)' \| \
7839 . : '\(.\)' 2>/dev/null ||
7840 echo X"$as_dir" |
7841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7843 /^X\(\/\/\)$/{ s//\1/; q; }
7844 /^X\(\/\).*/{ s//\1/; q; }
7845 s/.*/./; q'`
7846 done
7847 test ! -n "$as_dirs" || mkdir $as_dirs
7848 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7849 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7850 { (exit 1); exit 1; }; }; }
7852 ac_builddir=.
7854 if test "$ac_dir" != .; then
7855 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7856 # A "../" for each directory in $ac_dir_suffix.
7857 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7858 else
7859 ac_dir_suffix= ac_top_builddir=
7862 case $srcdir in
7863 .) # No --srcdir option. We are building in place.
7864 ac_srcdir=.
7865 if test -z "$ac_top_builddir"; then
7866 ac_top_srcdir=.
7867 else
7868 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7869 fi ;;
7870 [\\/]* | ?:[\\/]* ) # Absolute path.
7871 ac_srcdir=$srcdir$ac_dir_suffix;
7872 ac_top_srcdir=$srcdir ;;
7873 *) # Relative path.
7874 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7875 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7876 esac
7878 # Do not use `cd foo && pwd` to compute absolute paths, because
7879 # the directories may not exist.
7880 case `pwd` in
7881 .) ac_abs_builddir="$ac_dir";;
7883 case "$ac_dir" in
7884 .) ac_abs_builddir=`pwd`;;
7885 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7886 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7887 esac;;
7888 esac
7889 case $ac_abs_builddir in
7890 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7892 case ${ac_top_builddir}. in
7893 .) ac_abs_top_builddir=$ac_abs_builddir;;
7894 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7895 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7896 esac;;
7897 esac
7898 case $ac_abs_builddir in
7899 .) ac_abs_srcdir=$ac_srcdir;;
7901 case $ac_srcdir in
7902 .) ac_abs_srcdir=$ac_abs_builddir;;
7903 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7904 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7905 esac;;
7906 esac
7907 case $ac_abs_builddir in
7908 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7910 case $ac_top_srcdir in
7911 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7912 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7913 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7914 esac;;
7915 esac
7918 case $INSTALL in
7919 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7920 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7921 esac
7923 if test x"$ac_file" != x-; then
7924 { echo "$as_me:$LINENO: creating $ac_file" >&5
7925 echo "$as_me: creating $ac_file" >&6;}
7926 rm -f "$ac_file"
7928 # Let's still pretend it is `configure' which instantiates (i.e., don't
7929 # use $as_me), people would be surprised to read:
7930 # /* config.h. Generated by config.status. */
7931 if test x"$ac_file" = x-; then
7932 configure_input=
7933 else
7934 configure_input="$ac_file. "
7936 configure_input=$configure_input"Generated from `echo $ac_file_in |
7937 sed 's,.*/,,'` by configure."
7939 # First look for the input files in the build tree, otherwise in the
7940 # src tree.
7941 ac_file_inputs=`IFS=:
7942 for f in $ac_file_in; do
7943 case $f in
7944 -) echo $tmp/stdin ;;
7945 [\\/$]*)
7946 # Absolute (can't be DOS-style, as IFS=:)
7947 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7948 echo "$as_me: error: cannot find input file: $f" >&2;}
7949 { (exit 1); exit 1; }; }
7950 echo "$f";;
7951 *) # Relative
7952 if test -f "$f"; then
7953 # Build tree
7954 echo "$f"
7955 elif test -f "$srcdir/$f"; then
7956 # Source tree
7957 echo "$srcdir/$f"
7958 else
7959 # /dev/null tree
7960 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7961 echo "$as_me: error: cannot find input file: $f" >&2;}
7962 { (exit 1); exit 1; }; }
7963 fi;;
7964 esac
7965 done` || { (exit 1); exit 1; }
7966 _ACEOF
7967 cat >>$CONFIG_STATUS <<_ACEOF
7968 sed "$ac_vpsub
7969 $extrasub
7970 _ACEOF
7971 cat >>$CONFIG_STATUS <<\_ACEOF
7973 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7974 s,@configure_input@,$configure_input,;t t
7975 s,@srcdir@,$ac_srcdir,;t t
7976 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7977 s,@top_srcdir@,$ac_top_srcdir,;t t
7978 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7979 s,@builddir@,$ac_builddir,;t t
7980 s,@abs_builddir@,$ac_abs_builddir,;t t
7981 s,@top_builddir@,$ac_top_builddir,;t t
7982 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7983 s,@INSTALL@,$ac_INSTALL,;t t
7984 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7985 rm -f $tmp/stdin
7986 if test x"$ac_file" != x-; then
7987 mv $tmp/out $ac_file
7988 else
7989 cat $tmp/out
7990 rm -f $tmp/out
7993 done
7994 _ACEOF
7995 cat >>$CONFIG_STATUS <<\_ACEOF
7998 # CONFIG_HEADER section.
8001 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8002 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8004 # ac_d sets the value in "#define NAME VALUE" lines.
8005 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8006 ac_dB='[ ].*$,\1#\2'
8007 ac_dC=' '
8008 ac_dD=',;t'
8009 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8010 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8011 ac_uB='$,\1#\2define\3'
8012 ac_uC=' '
8013 ac_uD=',;t'
8015 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8016 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8017 case $ac_file in
8018 - | *:- | *:-:* ) # input from stdin
8019 cat >$tmp/stdin
8020 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8021 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8022 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8023 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8024 * ) ac_file_in=$ac_file.in ;;
8025 esac
8027 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8028 echo "$as_me: creating $ac_file" >&6;}
8030 # First look for the input files in the build tree, otherwise in the
8031 # src tree.
8032 ac_file_inputs=`IFS=:
8033 for f in $ac_file_in; do
8034 case $f in
8035 -) echo $tmp/stdin ;;
8036 [\\/$]*)
8037 # Absolute (can't be DOS-style, as IFS=:)
8038 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8039 echo "$as_me: error: cannot find input file: $f" >&2;}
8040 { (exit 1); exit 1; }; }
8041 # Do quote $f, to prevent DOS paths from being IFS'd.
8042 echo "$f";;
8043 *) # Relative
8044 if test -f "$f"; then
8045 # Build tree
8046 echo "$f"
8047 elif test -f "$srcdir/$f"; then
8048 # Source tree
8049 echo "$srcdir/$f"
8050 else
8051 # /dev/null tree
8052 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8053 echo "$as_me: error: cannot find input file: $f" >&2;}
8054 { (exit 1); exit 1; }; }
8055 fi;;
8056 esac
8057 done` || { (exit 1); exit 1; }
8058 # Remove the trailing spaces.
8059 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8061 _ACEOF
8063 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8064 # `conftest.undefs', that substitutes the proper values into
8065 # config.h.in to produce config.h. The first handles `#define'
8066 # templates, and the second `#undef' templates.
8067 # And first: Protect against being on the right side of a sed subst in
8068 # config.status. Protect against being in an unquoted here document
8069 # in config.status.
8070 rm -f conftest.defines conftest.undefs
8071 # Using a here document instead of a string reduces the quoting nightmare.
8072 # Putting comments in sed scripts is not portable.
8074 # `end' is used to avoid that the second main sed command (meant for
8075 # 0-ary CPP macros) applies to n-ary macro definitions.
8076 # See the Autoconf documentation for `clear'.
8077 cat >confdef2sed.sed <<\_ACEOF
8078 s/[\\&,]/\\&/g
8079 s,[\\$`],\\&,g
8080 t clear
8081 : clear
8082 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8083 t end
8084 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8085 : end
8086 _ACEOF
8087 # If some macros were called several times there might be several times
8088 # the same #defines, which is useless. Nevertheless, we may not want to
8089 # sort them, since we want the *last* AC-DEFINE to be honored.
8090 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8091 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8092 rm -f confdef2sed.sed
8094 # This sed command replaces #undef with comments. This is necessary, for
8095 # example, in the case of _POSIX_SOURCE, which is predefined and required
8096 # on some systems where configure will not decide to define it.
8097 cat >>conftest.undefs <<\_ACEOF
8098 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8099 _ACEOF
8101 # Break up conftest.defines because some shells have a limit on the size
8102 # of here documents, and old seds have small limits too (100 cmds).
8103 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8104 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8105 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8106 echo ' :' >>$CONFIG_STATUS
8107 rm -f conftest.tail
8108 while grep . conftest.defines >/dev/null
8110 # Write a limited-size here document to $tmp/defines.sed.
8111 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8112 # Speed up: don't consider the non `#define' lines.
8113 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8114 # Work around the forget-to-reset-the-flag bug.
8115 echo 't clr' >>$CONFIG_STATUS
8116 echo ': clr' >>$CONFIG_STATUS
8117 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8118 echo 'CEOF
8119 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8120 rm -f $tmp/in
8121 mv $tmp/out $tmp/in
8122 ' >>$CONFIG_STATUS
8123 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8124 rm -f conftest.defines
8125 mv conftest.tail conftest.defines
8126 done
8127 rm -f conftest.defines
8128 echo ' fi # grep' >>$CONFIG_STATUS
8129 echo >>$CONFIG_STATUS
8131 # Break up conftest.undefs because some shells have a limit on the size
8132 # of here documents, and old seds have small limits too (100 cmds).
8133 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8134 rm -f conftest.tail
8135 while grep . conftest.undefs >/dev/null
8137 # Write a limited-size here document to $tmp/undefs.sed.
8138 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8139 # Speed up: don't consider the non `#undef'
8140 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8141 # Work around the forget-to-reset-the-flag bug.
8142 echo 't clr' >>$CONFIG_STATUS
8143 echo ': clr' >>$CONFIG_STATUS
8144 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8145 echo 'CEOF
8146 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8147 rm -f $tmp/in
8148 mv $tmp/out $tmp/in
8149 ' >>$CONFIG_STATUS
8150 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8151 rm -f conftest.undefs
8152 mv conftest.tail conftest.undefs
8153 done
8154 rm -f conftest.undefs
8156 cat >>$CONFIG_STATUS <<\_ACEOF
8157 # Let's still pretend it is `configure' which instantiates (i.e., don't
8158 # use $as_me), people would be surprised to read:
8159 # /* config.h. Generated by config.status. */
8160 if test x"$ac_file" = x-; then
8161 echo "/* Generated by configure. */" >$tmp/config.h
8162 else
8163 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8165 cat $tmp/in >>$tmp/config.h
8166 rm -f $tmp/in
8167 if test x"$ac_file" != x-; then
8168 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8169 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8170 echo "$as_me: $ac_file is unchanged" >&6;}
8171 else
8172 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8173 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8174 X"$ac_file" : 'X\(//\)[^/]' \| \
8175 X"$ac_file" : 'X\(//\)$' \| \
8176 X"$ac_file" : 'X\(/\)' \| \
8177 . : '\(.\)' 2>/dev/null ||
8178 echo X"$ac_file" |
8179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8181 /^X\(\/\/\)$/{ s//\1/; q; }
8182 /^X\(\/\).*/{ s//\1/; q; }
8183 s/.*/./; q'`
8184 { if $as_mkdir_p; then
8185 mkdir -p "$ac_dir"
8186 else
8187 as_dir="$ac_dir"
8188 as_dirs=
8189 while test ! -d "$as_dir"; do
8190 as_dirs="$as_dir $as_dirs"
8191 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8193 X"$as_dir" : 'X\(//\)[^/]' \| \
8194 X"$as_dir" : 'X\(//\)$' \| \
8195 X"$as_dir" : 'X\(/\)' \| \
8196 . : '\(.\)' 2>/dev/null ||
8197 echo X"$as_dir" |
8198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8200 /^X\(\/\/\)$/{ s//\1/; q; }
8201 /^X\(\/\).*/{ s//\1/; q; }
8202 s/.*/./; q'`
8203 done
8204 test ! -n "$as_dirs" || mkdir $as_dirs
8205 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8206 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8207 { (exit 1); exit 1; }; }; }
8209 rm -f $ac_file
8210 mv $tmp/config.h $ac_file
8212 else
8213 cat $tmp/config.h
8214 rm -f $tmp/config.h
8216 # Compute $ac_file's index in $config_headers.
8217 _am_stamp_count=1
8218 for _am_header in $config_headers :; do
8219 case $_am_header in
8220 $ac_file | $ac_file:* )
8221 break ;;
8223 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8224 esac
8225 done
8226 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8227 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8228 X$ac_file : 'X\(//\)[^/]' \| \
8229 X$ac_file : 'X\(//\)$' \| \
8230 X$ac_file : 'X\(/\)' \| \
8231 . : '\(.\)' 2>/dev/null ||
8232 echo X$ac_file |
8233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8234 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8235 /^X\(\/\/\)$/{ s//\1/; q; }
8236 /^X\(\/\).*/{ s//\1/; q; }
8237 s/.*/./; q'`/stamp-h$_am_stamp_count
8238 done
8239 _ACEOF
8240 cat >>$CONFIG_STATUS <<\_ACEOF
8243 # CONFIG_LINKS section.
8246 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
8247 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8248 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8250 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8251 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8253 if test ! -r $srcdir/$ac_source; then
8254 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8255 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8256 { (exit 1); exit 1; }; }
8258 rm -f $ac_dest
8260 # Make relative symlinks.
8261 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
8262 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8263 X"$ac_dest" : 'X\(//\)[^/]' \| \
8264 X"$ac_dest" : 'X\(//\)$' \| \
8265 X"$ac_dest" : 'X\(/\)' \| \
8266 . : '\(.\)' 2>/dev/null ||
8267 echo X"$ac_dest" |
8268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8269 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8270 /^X\(\/\/\)$/{ s//\1/; q; }
8271 /^X\(\/\).*/{ s//\1/; q; }
8272 s/.*/./; q'`
8273 { if $as_mkdir_p; then
8274 mkdir -p "$ac_dest_dir"
8275 else
8276 as_dir="$ac_dest_dir"
8277 as_dirs=
8278 while test ! -d "$as_dir"; do
8279 as_dirs="$as_dir $as_dirs"
8280 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8281 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8282 X"$as_dir" : 'X\(//\)[^/]' \| \
8283 X"$as_dir" : 'X\(//\)$' \| \
8284 X"$as_dir" : 'X\(/\)' \| \
8285 . : '\(.\)' 2>/dev/null ||
8286 echo X"$as_dir" |
8287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8289 /^X\(\/\/\)$/{ s//\1/; q; }
8290 /^X\(\/\).*/{ s//\1/; q; }
8291 s/.*/./; q'`
8292 done
8293 test ! -n "$as_dirs" || mkdir $as_dirs
8294 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8295 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8296 { (exit 1); exit 1; }; }; }
8298 ac_builddir=.
8300 if test "$ac_dest_dir" != .; then
8301 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8302 # A "../" for each directory in $ac_dir_suffix.
8303 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8304 else
8305 ac_dir_suffix= ac_top_builddir=
8308 case $srcdir in
8309 .) # No --srcdir option. We are building in place.
8310 ac_srcdir=.
8311 if test -z "$ac_top_builddir"; then
8312 ac_top_srcdir=.
8313 else
8314 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8315 fi ;;
8316 [\\/]* | ?:[\\/]* ) # Absolute path.
8317 ac_srcdir=$srcdir$ac_dir_suffix;
8318 ac_top_srcdir=$srcdir ;;
8319 *) # Relative path.
8320 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8321 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8322 esac
8324 # Do not use `cd foo && pwd` to compute absolute paths, because
8325 # the directories may not exist.
8326 case `pwd` in
8327 .) ac_abs_builddir="$ac_dest_dir";;
8329 case "$ac_dest_dir" in
8330 .) ac_abs_builddir=`pwd`;;
8331 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
8332 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
8333 esac;;
8334 esac
8335 case $ac_abs_builddir in
8336 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8338 case ${ac_top_builddir}. in
8339 .) ac_abs_top_builddir=$ac_abs_builddir;;
8340 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8341 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8342 esac;;
8343 esac
8344 case $ac_abs_builddir in
8345 .) ac_abs_srcdir=$ac_srcdir;;
8347 case $ac_srcdir in
8348 .) ac_abs_srcdir=$ac_abs_builddir;;
8349 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8350 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8351 esac;;
8352 esac
8353 case $ac_abs_builddir in
8354 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8356 case $ac_top_srcdir in
8357 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8358 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8359 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8360 esac;;
8361 esac
8364 case $srcdir in
8365 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
8366 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
8367 esac
8369 # Try a symlink, then a hard link, then a copy.
8370 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8371 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8372 cp -p $srcdir/$ac_source $ac_dest ||
8373 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8374 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8375 { (exit 1); exit 1; }; }
8376 done
8377 _ACEOF
8378 cat >>$CONFIG_STATUS <<\_ACEOF
8381 # CONFIG_COMMANDS section.
8383 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8384 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8385 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8386 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8387 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8388 X"$ac_dest" : 'X\(//\)[^/]' \| \
8389 X"$ac_dest" : 'X\(//\)$' \| \
8390 X"$ac_dest" : 'X\(/\)' \| \
8391 . : '\(.\)' 2>/dev/null ||
8392 echo X"$ac_dest" |
8393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8395 /^X\(\/\/\)$/{ s//\1/; q; }
8396 /^X\(\/\).*/{ s//\1/; q; }
8397 s/.*/./; q'`
8398 { if $as_mkdir_p; then
8399 mkdir -p "$ac_dir"
8400 else
8401 as_dir="$ac_dir"
8402 as_dirs=
8403 while test ! -d "$as_dir"; do
8404 as_dirs="$as_dir $as_dirs"
8405 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8407 X"$as_dir" : 'X\(//\)[^/]' \| \
8408 X"$as_dir" : 'X\(//\)$' \| \
8409 X"$as_dir" : 'X\(/\)' \| \
8410 . : '\(.\)' 2>/dev/null ||
8411 echo X"$as_dir" |
8412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8414 /^X\(\/\/\)$/{ s//\1/; q; }
8415 /^X\(\/\).*/{ s//\1/; q; }
8416 s/.*/./; q'`
8417 done
8418 test ! -n "$as_dirs" || mkdir $as_dirs
8419 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8420 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8421 { (exit 1); exit 1; }; }; }
8423 ac_builddir=.
8425 if test "$ac_dir" != .; then
8426 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8427 # A "../" for each directory in $ac_dir_suffix.
8428 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8429 else
8430 ac_dir_suffix= ac_top_builddir=
8433 case $srcdir in
8434 .) # No --srcdir option. We are building in place.
8435 ac_srcdir=.
8436 if test -z "$ac_top_builddir"; then
8437 ac_top_srcdir=.
8438 else
8439 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8440 fi ;;
8441 [\\/]* | ?:[\\/]* ) # Absolute path.
8442 ac_srcdir=$srcdir$ac_dir_suffix;
8443 ac_top_srcdir=$srcdir ;;
8444 *) # Relative path.
8445 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8446 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8447 esac
8449 # Do not use `cd foo && pwd` to compute absolute paths, because
8450 # the directories may not exist.
8451 case `pwd` in
8452 .) ac_abs_builddir="$ac_dir";;
8454 case "$ac_dir" in
8455 .) ac_abs_builddir=`pwd`;;
8456 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8457 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8458 esac;;
8459 esac
8460 case $ac_abs_builddir in
8461 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8463 case ${ac_top_builddir}. in
8464 .) ac_abs_top_builddir=$ac_abs_builddir;;
8465 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8466 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8467 esac;;
8468 esac
8469 case $ac_abs_builddir in
8470 .) ac_abs_srcdir=$ac_srcdir;;
8472 case $ac_srcdir in
8473 .) ac_abs_srcdir=$ac_abs_builddir;;
8474 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8475 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8476 esac;;
8477 esac
8478 case $ac_abs_builddir in
8479 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8481 case $ac_top_srcdir in
8482 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8483 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8484 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8485 esac;;
8486 esac
8489 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8490 echo "$as_me: executing $ac_dest commands" >&6;}
8491 case $ac_dest in
8492 default-1 )
8493 # Only add multilib support code if we just rebuilt the top-level
8494 # Makefile.
8495 case " $CONFIG_FILES " in
8496 *" Makefile "*)
8497 ac_file=Makefile . ${multi_basedir}/config-ml.in
8499 esac ;;
8500 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8501 # Strip MF so we end up with the name of the file.
8502 mf=`echo "$mf" | sed -e 's/:.*$//'`
8503 # Check whether this is an Automake generated Makefile or not.
8504 # We used to match only the files named `Makefile.in', but
8505 # some people rename them; so instead we look at the file content.
8506 # Grep'ing the first line is not enough: some people post-process
8507 # each Makefile.in and add a new line on top of each file to say so.
8508 # So let's grep whole file.
8509 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8510 dirpart=`(dirname "$mf") 2>/dev/null ||
8511 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8512 X"$mf" : 'X\(//\)[^/]' \| \
8513 X"$mf" : 'X\(//\)$' \| \
8514 X"$mf" : 'X\(/\)' \| \
8515 . : '\(.\)' 2>/dev/null ||
8516 echo X"$mf" |
8517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8519 /^X\(\/\/\)$/{ s//\1/; q; }
8520 /^X\(\/\).*/{ s//\1/; q; }
8521 s/.*/./; q'`
8522 else
8523 continue
8525 # Extract the definition of DEPDIR, am__include, and am__quote
8526 # from the Makefile without running `make'.
8527 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8528 test -z "$DEPDIR" && continue
8529 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8530 test -z "am__include" && continue
8531 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8532 # When using ansi2knr, U may be empty or an underscore; expand it
8533 U=`sed -n 's/^U = //p' < "$mf"`
8534 # Find all dependency output files, they are included files with
8535 # $(DEPDIR) in their names. We invoke sed twice because it is the
8536 # simplest approach to changing $(DEPDIR) to its actual value in the
8537 # expansion.
8538 for file in `sed -n "
8539 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8540 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8541 # Make sure the directory exists.
8542 test -f "$dirpart/$file" && continue
8543 fdir=`(dirname "$file") 2>/dev/null ||
8544 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8545 X"$file" : 'X\(//\)[^/]' \| \
8546 X"$file" : 'X\(//\)$' \| \
8547 X"$file" : 'X\(/\)' \| \
8548 . : '\(.\)' 2>/dev/null ||
8549 echo X"$file" |
8550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8552 /^X\(\/\/\)$/{ s//\1/; q; }
8553 /^X\(\/\).*/{ s//\1/; q; }
8554 s/.*/./; q'`
8555 { if $as_mkdir_p; then
8556 mkdir -p $dirpart/$fdir
8557 else
8558 as_dir=$dirpart/$fdir
8559 as_dirs=
8560 while test ! -d "$as_dir"; do
8561 as_dirs="$as_dir $as_dirs"
8562 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8564 X"$as_dir" : 'X\(//\)[^/]' \| \
8565 X"$as_dir" : 'X\(//\)$' \| \
8566 X"$as_dir" : 'X\(/\)' \| \
8567 . : '\(.\)' 2>/dev/null ||
8568 echo X"$as_dir" |
8569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8571 /^X\(\/\/\)$/{ s//\1/; q; }
8572 /^X\(\/\).*/{ s//\1/; q; }
8573 s/.*/./; q'`
8574 done
8575 test ! -n "$as_dirs" || mkdir $as_dirs
8576 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8577 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8578 { (exit 1); exit 1; }; }; }
8580 # echo "creating $dirpart/$file"
8581 echo '# dummy' > "$dirpart/$file"
8582 done
8583 done
8585 include ) test -d include || mkdir include ;;
8586 src )
8587 test -d src || mkdir src
8588 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
8590 esac
8591 done
8592 _ACEOF
8594 cat >>$CONFIG_STATUS <<\_ACEOF
8596 { (exit 0); exit 0; }
8597 _ACEOF
8598 chmod +x $CONFIG_STATUS
8599 ac_clean_files=$ac_clean_files_save
8602 # configure is writing to config.log, and then calls config.status.
8603 # config.status does its own redirection, appending to config.log.
8604 # Unfortunately, on DOS this fails, as config.log is still kept open
8605 # by configure, so config.status won't be able to write to it; its
8606 # output is simply discarded. So we exec the FD to /dev/null,
8607 # effectively closing config.log, so it can be properly (re)opened and
8608 # appended to by config.status. When coming back to configure, we
8609 # need to make the FD available again.
8610 if test "$no_create" != yes; then
8611 ac_cs_success=:
8612 ac_config_status_args=
8613 test "$silent" = yes &&
8614 ac_config_status_args="$ac_config_status_args --quiet"
8615 exec 5>/dev/null
8616 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8617 exec 5>>config.log
8618 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8619 # would make configure fail if this is the last instruction.
8620 $ac_cs_success || { (exit 1); exit 1; }