* sh.c (dump_table): New argument start. Changed caller.
[official-gcc.git] / libffi / configure
blobeae1de4c19ee42929aa718085818c50ce09d358f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libffi 2.1.
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='libffi'
271 PACKAGE_TARNAME='libffi'
272 PACKAGE_VERSION='2.1'
273 PACKAGE_STRING='libffi 2.1'
274 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CCAS CCASFLAGS LN_S RANLIB ac_ct_RANLIB LIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CPP CPPFLAGS EGREP TESTSUBDIR_TRUE TESTSUBDIR_FALSE AM_RUNTESTFLAGS MIPS_IRIX_TRUE MIPS_IRIX_FALSE MIPS_LINUX_TRUE MIPS_LINUX_FALSE SPARC_TRUE SPARC_FALSE X86_TRUE X86_FALSE X86_WIN32_TRUE X86_WIN32_FALSE ALPHA_TRUE ALPHA_FALSE IA64_TRUE IA64_FALSE M68K_TRUE M68K_FALSE POWERPC_TRUE POWERPC_FALSE POWERPC_AIX_TRUE POWERPC_AIX_FALSE POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE ARM_TRUE ARM_FALSE S390_TRUE S390_FALSE X86_64_TRUE X86_64_FALSE SH_TRUE SH_FALSE SH64_TRUE SH64_FALSE PA_TRUE PA_FALSE ALLOCA HAVE_LONG_DOUBLE TARGET TARGETDIR toolexecdir toolexeclibdir tool_include_dir gcc_version LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CPP_set=${CPP+set}
755 ac_env_CPP_value=$CPP
756 ac_cv_env_CPP_set=${CPP+set}
757 ac_cv_env_CPP_value=$CPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
764 # Report the --help message.
766 if test "$ac_init_help" = "long"; then
767 # Omit some internal or obsolete options to make the list less imposing.
768 # This message is too long to be a string in the A/UX 3.1 sh.
769 cat <<_ACEOF
770 \`configure' configures libffi 2.1 to adapt to many kinds of systems.
772 Usage: $0 [OPTION]... [VAR=VALUE]...
774 To assign environment variables (e.g., CC, CFLAGS...), specify them as
775 VAR=VALUE. See below for descriptions of some of the useful variables.
777 Defaults for the options are specified in brackets.
779 Configuration:
780 -h, --help display this help and exit
781 --help=short display options specific to this package
782 --help=recursive display the short help of all the included packages
783 -V, --version display version information and exit
784 -q, --quiet, --silent do not print \`checking...' messages
785 --cache-file=FILE cache test results in FILE [disabled]
786 -C, --config-cache alias for \`--cache-file=config.cache'
787 -n, --no-create do not create output files
788 --srcdir=DIR find the sources in DIR [configure dir or \`..']
790 _ACEOF
792 cat <<_ACEOF
793 Installation directories:
794 --prefix=PREFIX install architecture-independent files in PREFIX
795 [$ac_default_prefix]
796 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
797 [PREFIX]
799 By default, \`make install' will install all the files in
800 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
801 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
802 for instance \`--prefix=\$HOME'.
804 For better control, use the options below.
806 Fine tuning of the installation directories:
807 --bindir=DIR user executables [EPREFIX/bin]
808 --sbindir=DIR system admin executables [EPREFIX/sbin]
809 --libexecdir=DIR program executables [EPREFIX/libexec]
810 --datadir=DIR read-only architecture-independent data [PREFIX/share]
811 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
812 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
813 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
814 --libdir=DIR object code libraries [EPREFIX/lib]
815 --includedir=DIR C header files [PREFIX/include]
816 --oldincludedir=DIR C header files for non-gcc [/usr/include]
817 --infodir=DIR info documentation [PREFIX/info]
818 --mandir=DIR man documentation [PREFIX/man]
819 _ACEOF
821 cat <<\_ACEOF
823 Program names:
824 --program-prefix=PREFIX prepend PREFIX to installed program names
825 --program-suffix=SUFFIX append SUFFIX to installed program names
826 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
828 System types:
829 --build=BUILD configure for building on BUILD [guessed]
830 --host=HOST cross-compile to build programs to run on HOST [BUILD]
831 --target=TARGET configure for building compilers for TARGET [HOST]
832 _ACEOF
835 if test -n "$ac_init_help"; then
836 case $ac_init_help in
837 short | recursive ) echo "Configuration of libffi 2.1:";;
838 esac
839 cat <<\_ACEOF
841 Optional Features:
842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
844 --enable-multilib build many library versions (default)
845 --disable-dependency-tracking Speeds up one-time builds
846 --enable-dependency-tracking Do not reject slow dependency extractors
847 --enable-shared=PKGS build shared libraries default=yes
848 --enable-static=PKGS build static libraries default=yes
849 --enable-fast-install=PKGS optimize for fast installation default=yes
850 --disable-libtool-lock avoid locking (might break parallel builds)
851 --enable-maintainer-mode enable make rules and dependencies not useful
852 (and sometimes confusing) to the casual installer
853 --enable-debug debugging mode
854 --disable-structs omit code for struct support
855 --disable-raw-api make the raw api unavailable
856 --enable-purify-safety purify-safe mode
858 Optional Packages:
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 --with-gnu-ld assume the C compiler uses GNU ld default=no
862 --with-pic try to use only PIC/non-PIC objects default=use both
864 Some influential environment variables:
865 CC C compiler command
866 CFLAGS C compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>
869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870 headers in a nonstandard directory <include dir>
871 CPP C preprocessor
873 Use these variables to override the choices made by `configure' or to help
874 it to find libraries and programs with nonstandard names/locations.
876 Report bugs to <http://gcc.gnu.org/bugs.html>.
877 _ACEOF
880 if test "$ac_init_help" = "recursive"; then
881 # If there are subdirs, report their specific --help.
882 ac_popdir=`pwd`
883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884 test -d $ac_dir || continue
885 ac_builddir=.
887 if test "$ac_dir" != .; then
888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889 # A "../" for each directory in $ac_dir_suffix.
890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891 else
892 ac_dir_suffix= ac_top_builddir=
895 case $srcdir in
896 .) # No --srcdir option. We are building in place.
897 ac_srcdir=.
898 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=.
900 else
901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902 fi ;;
903 [\\/]* | ?:[\\/]* ) # Absolute path.
904 ac_srcdir=$srcdir$ac_dir_suffix;
905 ac_top_srcdir=$srcdir ;;
906 *) # Relative path.
907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
909 esac
911 # Do not use `cd foo && pwd` to compute absolute paths, because
912 # the directories may not exist.
913 case `pwd` in
914 .) ac_abs_builddir="$ac_dir";;
916 case "$ac_dir" in
917 .) ac_abs_builddir=`pwd`;;
918 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
919 *) ac_abs_builddir=`pwd`/"$ac_dir";;
920 esac;;
921 esac
922 case $ac_abs_builddir in
923 .) ac_abs_top_builddir=${ac_top_builddir}.;;
925 case ${ac_top_builddir}. in
926 .) ac_abs_top_builddir=$ac_abs_builddir;;
927 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
928 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
929 esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_srcdir=$ac_srcdir;;
934 case $ac_srcdir in
935 .) ac_abs_srcdir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
937 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
938 esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_top_srcdir=$ac_top_srcdir;;
943 case $ac_top_srcdir in
944 .) ac_abs_top_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
946 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
947 esac;;
948 esac
950 cd $ac_dir
951 # Check for guested configure; otherwise get Cygnus style configure.
952 if test -f $ac_srcdir/configure.gnu; then
953 echo
954 $SHELL $ac_srcdir/configure.gnu --help=recursive
955 elif test -f $ac_srcdir/configure; then
956 echo
957 $SHELL $ac_srcdir/configure --help=recursive
958 elif test -f $ac_srcdir/configure.ac ||
959 test -f $ac_srcdir/configure.in; then
960 echo
961 $ac_configure --help
962 else
963 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 cd $ac_popdir
966 done
969 test -n "$ac_init_help" && exit 0
970 if $ac_init_version; then
971 cat <<\_ACEOF
972 libffi configure 2.1
973 generated by GNU Autoconf 2.59
975 Copyright (C) 2003 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
978 _ACEOF
979 exit 0
981 exec 5>config.log
982 cat >&5 <<_ACEOF
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
986 It was created by libffi $as_me 2.1, which was
987 generated by GNU Autoconf 2.59. Invocation command line was
989 $ $0 $@
991 _ACEOF
993 cat <<_ASUNAME
994 ## --------- ##
995 ## Platform. ##
996 ## --------- ##
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1015 _ASUNAME
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018 for as_dir in $PATH
1020 IFS=$as_save_IFS
1021 test -z "$as_dir" && as_dir=.
1022 echo "PATH: $as_dir"
1023 done
1025 } >&5
1027 cat >&5 <<_ACEOF
1030 ## ----------- ##
1031 ## Core tests. ##
1032 ## ----------- ##
1034 _ACEOF
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_configure_args=
1043 ac_configure_args0=
1044 ac_configure_args1=
1045 ac_sep=
1046 ac_must_keep_next=false
1047 for ac_pass in 1 2
1049 for ac_arg
1051 case $ac_arg in
1052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 continue ;;
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058 esac
1059 case $ac_pass in
1060 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063 if test $ac_must_keep_next = true; then
1064 ac_must_keep_next=false # Got value, back to normal.
1065 else
1066 case $ac_arg in
1067 *=* | --config-cache | -C | -disable-* | --disable-* \
1068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070 | -with-* | --with-* | -without-* | --without-* | --x)
1071 case "$ac_configure_args0 " in
1072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073 esac
1075 -* ) ac_must_keep_next=true ;;
1076 esac
1078 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 # Get rid of the leading space.
1080 ac_sep=" "
1082 esac
1083 done
1084 done
1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log. We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094 # Save into config.log some information that might help in debugging.
1096 echo
1098 cat <<\_ASBOX
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1102 _ASBOX
1103 echo
1104 # The following way of writing the cache mishandles newlines in values,
1106 (set) 2>&1 |
1107 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108 *ac_space=\ *)
1109 sed -n \
1110 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114 sed -n \
1115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117 esac;
1119 echo
1121 cat <<\_ASBOX
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1125 _ASBOX
1126 echo
1127 for ac_var in $ac_subst_vars
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1131 done | sort
1132 echo
1134 if test -n "$ac_subst_files"; then
1135 cat <<\_ASBOX
1136 ## ------------- ##
1137 ## Output files. ##
1138 ## ------------- ##
1139 _ASBOX
1140 echo
1141 for ac_var in $ac_subst_files
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1145 done | sort
1146 echo
1149 if test -s confdefs.h; then
1150 cat <<\_ASBOX
1151 ## ----------- ##
1152 ## confdefs.h. ##
1153 ## ----------- ##
1154 _ASBOX
1155 echo
1156 sed "/^$/d" confdefs.h | sort
1157 echo
1159 test "$ac_signal" != 0 &&
1160 echo "$as_me: caught signal $ac_signal"
1161 echo "$as_me: exit $exit_status"
1162 } >&5
1163 rm -f core *.core &&
1164 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165 exit $exit_status
1167 for ac_signal in 1 2 13 15; do
1168 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1169 done
1170 ac_signal=0
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175 echo >confdefs.h
1177 # Predefined preprocessor variables.
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1181 _ACEOF
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1186 _ACEOF
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1191 _ACEOF
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1201 _ACEOF
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207 if test "x$prefix" != xNONE; then
1208 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209 else
1210 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213 for ac_site_file in $CONFIG_SITE; do
1214 if test -r "$ac_site_file"; then
1215 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217 sed 's/^/| /' "$ac_site_file" >&5
1218 . "$ac_site_file"
1220 done
1222 if test -r "$cache_file"; then
1223 # Some versions of bash will fail to source /dev/null (special
1224 # files actually), so we avoid doing that.
1225 if test -f "$cache_file"; then
1226 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1228 case $cache_file in
1229 [\\/]* | ?:[\\/]* ) . $cache_file;;
1230 *) . ./$cache_file;;
1231 esac
1233 else
1234 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1236 >$cache_file
1239 # Check that the precious variables saved in the cache have kept the same
1240 # value.
1241 ac_cache_corrupted=false
1242 for ac_var in `(set) 2>&1 |
1243 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245 eval ac_new_set=\$ac_env_${ac_var}_set
1246 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247 eval ac_new_val="\$ac_env_${ac_var}_value"
1248 case $ac_old_set,$ac_new_set in
1249 set,)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,set)
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1257 ,);;
1259 if test "x$ac_old_val" != "x$ac_new_val"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1263 echo "$as_me: former value: $ac_old_val" >&2;}
1264 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1265 echo "$as_me: current value: $ac_new_val" >&2;}
1266 ac_cache_corrupted=:
1267 fi;;
1268 esac
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1271 case $ac_new_val in
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1275 esac
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279 esac
1281 done
1282 if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287 { (exit 1); exit 1; }; }
1290 ac_ext=c
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 ac_config_headers="$ac_config_headers fficonfig.h"
1325 # Default to --enable-multilib
1326 # Check whether --enable-multilib or --disable-multilib was given.
1327 if test "${enable_multilib+set}" = set; then
1328 enableval="$enable_multilib"
1329 case "$enableval" in
1330 yes) multilib=yes ;;
1331 no) multilib=no ;;
1332 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1333 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1334 { (exit 1); exit 1; }; } ;;
1335 esac
1336 else
1337 multilib=yes
1340 # We may get other options which we leave undocumented:
1341 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1342 # See config-ml.in if you want the gory details.
1344 if test "$srcdir" = "."; then
1345 if test "$with_target_subdir" != "."; then
1346 multi_basedir="$srcdir/$with_multisrctop../.."
1347 else
1348 multi_basedir="$srcdir/$with_multisrctop.."
1350 else
1351 multi_basedir="$srcdir/.."
1355 ac_config_commands="$ac_config_commands default-1"
1357 if test a = b; then
1358 # This is for automake
1359 ac_aux_dir=
1360 for ac_dir in .. $srcdir/..; do
1361 if test -f $ac_dir/install-sh; then
1362 ac_aux_dir=$ac_dir
1363 ac_install_sh="$ac_aux_dir/install-sh -c"
1364 break
1365 elif test -f $ac_dir/install.sh; then
1366 ac_aux_dir=$ac_dir
1367 ac_install_sh="$ac_aux_dir/install.sh -c"
1368 break
1369 elif test -f $ac_dir/shtool; then
1370 ac_aux_dir=$ac_dir
1371 ac_install_sh="$ac_aux_dir/shtool install -c"
1372 break
1374 done
1375 if test -z "$ac_aux_dir"; then
1376 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1377 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1378 { (exit 1); exit 1; }; }
1380 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1381 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1382 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1384 else
1385 # and this is for autoconf
1386 ac_aux_dir=
1387 for ac_dir in ${multi_basedir}; do
1388 if test -f $ac_dir/install-sh; then
1389 ac_aux_dir=$ac_dir
1390 ac_install_sh="$ac_aux_dir/install-sh -c"
1391 break
1392 elif test -f $ac_dir/install.sh; then
1393 ac_aux_dir=$ac_dir
1394 ac_install_sh="$ac_aux_dir/install.sh -c"
1395 break
1396 elif test -f $ac_dir/shtool; then
1397 ac_aux_dir=$ac_dir
1398 ac_install_sh="$ac_aux_dir/shtool install -c"
1399 break
1401 done
1402 if test -z "$ac_aux_dir"; then
1403 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5
1404 echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;}
1405 { (exit 1); exit 1; }; }
1407 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1408 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1409 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1413 # Make sure we can run config.sub.
1414 $ac_config_sub sun4 >/dev/null 2>&1 ||
1415 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1416 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1417 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: checking build system type" >&5
1420 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1421 if test "${ac_cv_build+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 else
1424 ac_cv_build_alias=$build_alias
1425 test -z "$ac_cv_build_alias" &&
1426 ac_cv_build_alias=`$ac_config_guess`
1427 test -z "$ac_cv_build_alias" &&
1428 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1429 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1430 { (exit 1); exit 1; }; }
1431 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1432 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1433 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1434 { (exit 1); exit 1; }; }
1437 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1438 echo "${ECHO_T}$ac_cv_build" >&6
1439 build=$ac_cv_build
1440 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1441 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1442 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1445 echo "$as_me:$LINENO: checking host system type" >&5
1446 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1447 if test "${ac_cv_host+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1449 else
1450 ac_cv_host_alias=$host_alias
1451 test -z "$ac_cv_host_alias" &&
1452 ac_cv_host_alias=$ac_cv_build_alias
1453 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1454 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1455 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1456 { (exit 1); exit 1; }; }
1459 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1460 echo "${ECHO_T}$ac_cv_host" >&6
1461 host=$ac_cv_host
1462 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1463 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1464 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1467 echo "$as_me:$LINENO: checking target system type" >&5
1468 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1469 if test "${ac_cv_target+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1471 else
1472 ac_cv_target_alias=$target_alias
1473 test "x$ac_cv_target_alias" = "x" &&
1474 ac_cv_target_alias=$ac_cv_host_alias
1475 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1476 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1477 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1478 { (exit 1); exit 1; }; }
1481 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1482 echo "${ECHO_T}$ac_cv_target" >&6
1483 target=$ac_cv_target
1484 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1485 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1486 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1489 # The aliases save the names the user supplied, while $host etc.
1490 # will get canonicalized.
1491 test -n "$target_alias" &&
1492 test "$program_prefix$program_suffix$program_transform_name" = \
1493 NONENONEs,x,x, &&
1494 program_prefix=${target_alias}-
1495 target_alias=${target_alias-$host_alias}
1497 am__api_version="1.7"
1498 # Find a good install program. We prefer a C program (faster),
1499 # so one script is as good as another. But avoid the broken or
1500 # incompatible versions:
1501 # SysV /etc/install, /usr/sbin/install
1502 # SunOS /usr/etc/install
1503 # IRIX /sbin/install
1504 # AIX /bin/install
1505 # AmigaOS /C/install, which installs bootblocks on floppy discs
1506 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1507 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1508 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1509 # OS/2's system install, which has a completely different semantic
1510 # ./install, which can be erroneously created by make from ./install.sh.
1511 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1512 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1513 if test -z "$INSTALL"; then
1514 if test "${ac_cv_path_install+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 else
1517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518 for as_dir in $PATH
1520 IFS=$as_save_IFS
1521 test -z "$as_dir" && as_dir=.
1522 # Account for people who put trailing slashes in PATH elements.
1523 case $as_dir/ in
1524 ./ | .// | /cC/* | \
1525 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1526 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1527 /usr/ucb/* ) ;;
1529 # OSF1 and SCO ODT 3.0 have their own names for install.
1530 # Don't use installbsd from OSF since it installs stuff as root
1531 # by default.
1532 for ac_prog in ginstall scoinst install; do
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1535 if test $ac_prog = install &&
1536 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1537 # AIX install. It has an incompatible calling convention.
1539 elif test $ac_prog = install &&
1540 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1541 # program-specific install script used by HP pwplus--don't use.
1543 else
1544 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1545 break 3
1548 done
1549 done
1551 esac
1552 done
1556 if test "${ac_cv_path_install+set}" = set; then
1557 INSTALL=$ac_cv_path_install
1558 else
1559 # As a last resort, use the slow shell script. We don't cache a
1560 # path for INSTALL within a source directory, because that will
1561 # break other packages using the cache if that directory is
1562 # removed, or if the path is relative.
1563 INSTALL=$ac_install_sh
1566 echo "$as_me:$LINENO: result: $INSTALL" >&5
1567 echo "${ECHO_T}$INSTALL" >&6
1569 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1570 # It thinks the first close brace ends the variable substitution.
1571 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1573 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1575 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1577 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1578 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1579 # Just in case
1580 sleep 1
1581 echo timestamp > conftest.file
1582 # Do `set' in a subshell so we don't clobber the current shell's
1583 # arguments. Must try -L first in case configure is actually a
1584 # symlink; some systems play weird games with the mod time of symlinks
1585 # (eg FreeBSD returns the mod time of the symlink's containing
1586 # directory).
1587 if (
1588 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1589 if test "$*" = "X"; then
1590 # -L didn't work.
1591 set X `ls -t $srcdir/configure conftest.file`
1593 rm -f conftest.file
1594 if test "$*" != "X $srcdir/configure conftest.file" \
1595 && test "$*" != "X conftest.file $srcdir/configure"; then
1597 # If neither matched, then we have a broken ls. This can happen
1598 # if, for instance, CONFIG_SHELL is bash and it inherits a
1599 # broken ls alias from the environment. This has actually
1600 # happened. Such a system could not be considered "sane".
1601 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1602 alias in your environment" >&5
1603 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1604 alias in your environment" >&2;}
1605 { (exit 1); exit 1; }; }
1608 test "$2" = conftest.file
1610 then
1611 # Ok.
1613 else
1614 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1615 Check your system clock" >&5
1616 echo "$as_me: error: newly created file is older than distributed files!
1617 Check your system clock" >&2;}
1618 { (exit 1); exit 1; }; }
1620 echo "$as_me:$LINENO: result: yes" >&5
1621 echo "${ECHO_T}yes" >&6
1622 test "$program_prefix" != NONE &&
1623 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1624 # Use a double $ so make ignores it.
1625 test "$program_suffix" != NONE &&
1626 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1627 # Double any \ or $. echo might interpret backslashes.
1628 # By default was `s,x,x', remove it if useless.
1629 cat <<\_ACEOF >conftest.sed
1630 s/[\\$]/&&/g;s/;s,x,x,$//
1631 _ACEOF
1632 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1633 rm conftest.sed
1636 # expand $ac_aux_dir to an absolute path
1637 am_aux_dir=`cd $ac_aux_dir && pwd`
1639 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1640 # Use eval to expand $SHELL
1641 if eval "$MISSING --run true"; then
1642 am_missing_run="$MISSING --run "
1643 else
1644 am_missing_run=
1645 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1646 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1649 for ac_prog in gawk mawk nawk awk
1651 # Extract the first word of "$ac_prog", so it can be a program name with args.
1652 set dummy $ac_prog; ac_word=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_AWK+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658 if test -n "$AWK"; then
1659 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1660 else
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 for as_dir in $PATH
1664 IFS=$as_save_IFS
1665 test -z "$as_dir" && as_dir=.
1666 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 ac_cv_prog_AWK="$ac_prog"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 break 2
1672 done
1673 done
1677 AWK=$ac_cv_prog_AWK
1678 if test -n "$AWK"; then
1679 echo "$as_me:$LINENO: result: $AWK" >&5
1680 echo "${ECHO_T}$AWK" >&6
1681 else
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1686 test -n "$AWK" && break
1687 done
1689 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1690 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1691 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1692 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695 cat >conftest.make <<\_ACEOF
1696 all:
1697 @echo 'ac_maketemp="$(MAKE)"'
1698 _ACEOF
1699 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1700 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1701 if test -n "$ac_maketemp"; then
1702 eval ac_cv_prog_make_${ac_make}_set=yes
1703 else
1704 eval ac_cv_prog_make_${ac_make}_set=no
1706 rm -f conftest.make
1708 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1709 echo "$as_me:$LINENO: result: yes" >&5
1710 echo "${ECHO_T}yes" >&6
1711 SET_MAKE=
1712 else
1713 echo "$as_me:$LINENO: result: no" >&5
1714 echo "${ECHO_T}no" >&6
1715 SET_MAKE="MAKE=${MAKE-make}"
1718 rm -rf .tst 2>/dev/null
1719 mkdir .tst 2>/dev/null
1720 if test -d .tst; then
1721 am__leading_dot=.
1722 else
1723 am__leading_dot=_
1725 rmdir .tst 2>/dev/null
1727 # test to see if srcdir already configured
1728 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1729 test -f $srcdir/config.status; then
1730 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1731 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1732 { (exit 1); exit 1; }; }
1735 # test whether we have cygpath
1736 if test -z "$CYGPATH_W"; then
1737 if (cygpath --version) >/dev/null 2>/dev/null; then
1738 CYGPATH_W='cygpath -w'
1739 else
1740 CYGPATH_W=echo
1745 # Define the identity of the package.
1746 PACKAGE='libffi'
1747 VERSION='2.1'
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE "$PACKAGE"
1752 _ACEOF
1755 cat >>confdefs.h <<_ACEOF
1756 #define VERSION "$VERSION"
1757 _ACEOF
1759 # Some tools Automake needs.
1761 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1764 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1767 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1770 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1773 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1776 AMTAR=${AMTAR-"${am_missing_run}tar"}
1778 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1780 # Installed binaries are usually stripped using `strip' when the user
1781 # run `make install-strip'. However `strip' might not be the right
1782 # tool to use in cross-compilation environments, therefore Automake
1783 # will honor the `STRIP' environment variable to overrule this program.
1784 if test "$cross_compiling" != no; then
1785 if test -n "$ac_tool_prefix"; then
1786 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1787 set dummy ${ac_tool_prefix}strip; ac_word=$2
1788 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790 if test "${ac_cv_prog_STRIP+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793 if test -n "$STRIP"; then
1794 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1795 else
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 for as_dir in $PATH
1799 IFS=$as_save_IFS
1800 test -z "$as_dir" && as_dir=.
1801 for ac_exec_ext in '' $ac_executable_extensions; do
1802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805 break 2
1807 done
1808 done
1812 STRIP=$ac_cv_prog_STRIP
1813 if test -n "$STRIP"; then
1814 echo "$as_me:$LINENO: result: $STRIP" >&5
1815 echo "${ECHO_T}$STRIP" >&6
1816 else
1817 echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1822 if test -z "$ac_cv_prog_STRIP"; then
1823 ac_ct_STRIP=$STRIP
1824 # Extract the first word of "strip", so it can be a program name with args.
1825 set dummy strip; ac_word=$2
1826 echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 else
1831 if test -n "$ac_ct_STRIP"; then
1832 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1833 else
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 for as_dir in $PATH
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841 ac_cv_prog_ac_ct_STRIP="strip"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 break 2
1845 done
1846 done
1848 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1851 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1852 if test -n "$ac_ct_STRIP"; then
1853 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1854 echo "${ECHO_T}$ac_ct_STRIP" >&6
1855 else
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1860 STRIP=$ac_ct_STRIP
1861 else
1862 STRIP="$ac_cv_prog_STRIP"
1866 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1868 # We need awk for the "check" target. The system "awk" is bad on
1869 # some platforms.
1874 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1875 # We must force CC to /not/ be precious variables; otherwise
1876 # the wrong, non-multilib-adjusted value will be used in multilibs.
1877 # As a side effect, we have to subst CFLAGS ourselves.
1881 ac_ext=c
1882 ac_cpp='$CPP $CPPFLAGS'
1883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1886 if test -n "$ac_tool_prefix"; then
1887 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1888 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894 if test -n "$CC"; then
1895 ac_cv_prog_CC="$CC" # Let the user override the test.
1896 else
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 break 2
1908 done
1909 done
1913 CC=$ac_cv_prog_CC
1914 if test -n "$CC"; then
1915 echo "$as_me:$LINENO: result: $CC" >&5
1916 echo "${ECHO_T}$CC" >&6
1917 else
1918 echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1923 if test -z "$ac_cv_prog_CC"; then
1924 ac_ct_CC=$CC
1925 # Extract the first word of "gcc", so it can be a program name with args.
1926 set dummy gcc; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 if test -n "$ac_ct_CC"; then
1933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1938 IFS=$as_save_IFS
1939 test -z "$as_dir" && as_dir=.
1940 for ac_exec_ext in '' $ac_executable_extensions; do
1941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942 ac_cv_prog_ac_ct_CC="gcc"
1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 break 2
1946 done
1947 done
1951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1952 if test -n "$ac_ct_CC"; then
1953 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1954 echo "${ECHO_T}$ac_ct_CC" >&6
1955 else
1956 echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1960 CC=$ac_ct_CC
1961 else
1962 CC="$ac_cv_prog_CC"
1965 if test -z "$CC"; then
1966 if test -n "$ac_tool_prefix"; then
1967 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1968 set dummy ${ac_tool_prefix}cc; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1980 IFS=$as_save_IFS
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984 ac_cv_prog_CC="${ac_tool_prefix}cc"
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 break 2
1988 done
1989 done
1993 CC=$ac_cv_prog_CC
1994 if test -n "$CC"; then
1995 echo "$as_me:$LINENO: result: $CC" >&5
1996 echo "${ECHO_T}$CC" >&6
1997 else
1998 echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2003 if test -z "$ac_cv_prog_CC"; then
2004 ac_ct_CC=$CC
2005 # Extract the first word of "cc", so it can be a program name with args.
2006 set dummy cc; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012 if test -n "$ac_ct_CC"; then
2013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2014 else
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 for as_dir in $PATH
2018 IFS=$as_save_IFS
2019 test -z "$as_dir" && as_dir=.
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022 ac_cv_prog_ac_ct_CC="cc"
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024 break 2
2026 done
2027 done
2031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2032 if test -n "$ac_ct_CC"; then
2033 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2034 echo "${ECHO_T}$ac_ct_CC" >&6
2035 else
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2040 CC=$ac_ct_CC
2041 else
2042 CC="$ac_cv_prog_CC"
2046 if test -z "$CC"; then
2047 # Extract the first word of "cc", so it can be a program name with args.
2048 set dummy cc; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054 if test -n "$CC"; then
2055 ac_cv_prog_CC="$CC" # Let the user override the test.
2056 else
2057 ac_prog_rejected=no
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 for as_dir in $PATH
2061 IFS=$as_save_IFS
2062 test -z "$as_dir" && as_dir=.
2063 for ac_exec_ext in '' $ac_executable_extensions; do
2064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2065 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2066 ac_prog_rejected=yes
2067 continue
2069 ac_cv_prog_CC="cc"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 break 2
2073 done
2074 done
2076 if test $ac_prog_rejected = yes; then
2077 # We found a bogon in the path, so make sure we never use it.
2078 set dummy $ac_cv_prog_CC
2079 shift
2080 if test $# != 0; then
2081 # We chose a different compiler from the bogus one.
2082 # However, it has the same basename, so the bogon will be chosen
2083 # first if we set CC to just the basename; use the full file name.
2084 shift
2085 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2090 CC=$ac_cv_prog_CC
2091 if test -n "$CC"; then
2092 echo "$as_me:$LINENO: result: $CC" >&5
2093 echo "${ECHO_T}$CC" >&6
2094 else
2095 echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6
2100 if test -z "$CC"; then
2101 if test -n "$ac_tool_prefix"; then
2102 for ac_prog in cl
2104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2106 echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2108 if test "${ac_cv_prog_CC+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111 if test -n "$CC"; then
2112 ac_cv_prog_CC="$CC" # Let the user override the test.
2113 else
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2121 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 break 2
2125 done
2126 done
2130 CC=$ac_cv_prog_CC
2131 if test -n "$CC"; then
2132 echo "$as_me:$LINENO: result: $CC" >&5
2133 echo "${ECHO_T}$CC" >&6
2134 else
2135 echo "$as_me:$LINENO: result: no" >&5
2136 echo "${ECHO_T}no" >&6
2139 test -n "$CC" && break
2140 done
2142 if test -z "$CC"; then
2143 ac_ct_CC=$CC
2144 for ac_prog in cl
2146 # Extract the first word of "$ac_prog", so it can be a program name with args.
2147 set dummy $ac_prog; ac_word=$2
2148 echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 if test -n "$ac_ct_CC"; then
2154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163 ac_cv_prog_ac_ct_CC="$ac_prog"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 break 2
2167 done
2168 done
2172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2173 if test -n "$ac_ct_CC"; then
2174 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2175 echo "${ECHO_T}$ac_ct_CC" >&6
2176 else
2177 echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2181 test -n "$ac_ct_CC" && break
2182 done
2184 CC=$ac_ct_CC
2190 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: no acceptable C compiler found in \$PATH
2193 See \`config.log' for more details." >&2;}
2194 { (exit 1); exit 1; }; }
2196 # Provide some information about the compiler.
2197 echo "$as_me:$LINENO:" \
2198 "checking for C compiler version" >&5
2199 ac_compiler=`set X $ac_compile; echo $2`
2200 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2201 (eval $ac_compiler --version </dev/null >&5) 2>&5
2202 ac_status=$?
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }
2205 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2206 (eval $ac_compiler -v </dev/null >&5) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }
2210 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2211 (eval $ac_compiler -V </dev/null >&5) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }
2216 cat >conftest.$ac_ext <<_ACEOF
2217 /* confdefs.h. */
2218 _ACEOF
2219 cat confdefs.h >>conftest.$ac_ext
2220 cat >>conftest.$ac_ext <<_ACEOF
2221 /* end confdefs.h. */
2224 main ()
2228 return 0;
2230 _ACEOF
2231 ac_clean_files_save=$ac_clean_files
2232 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2233 # Try to create an executable without -o first, disregard a.out.
2234 # It will help us diagnose broken compilers, and finding out an intuition
2235 # of exeext.
2236 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2237 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2238 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2239 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2240 (eval $ac_link_default) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; then
2244 # Find the output, starting from the most likely. This scheme is
2245 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2246 # resort.
2248 # Be careful to initialize this variable, since it used to be cached.
2249 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2250 ac_cv_exeext=
2251 # b.out is created by i960 compilers.
2252 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2254 test -f "$ac_file" || continue
2255 case $ac_file in
2256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2258 conftest.$ac_ext )
2259 # This is the source file.
2261 [ab].out )
2262 # We found the default executable, but exeext='' is most
2263 # certainly right.
2264 break;;
2265 *.* )
2266 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2267 # FIXME: I believe we export ac_cv_exeext for Libtool,
2268 # but it would be cool to find out if it's true. Does anybody
2269 # maintain Libtool? --akim.
2270 export ac_cv_exeext
2271 break;;
2273 break;;
2274 esac
2275 done
2276 else
2277 echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2280 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2281 See \`config.log' for more details." >&5
2282 echo "$as_me: error: C compiler cannot create executables
2283 See \`config.log' for more details." >&2;}
2284 { (exit 77); exit 77; }; }
2287 ac_exeext=$ac_cv_exeext
2288 echo "$as_me:$LINENO: result: $ac_file" >&5
2289 echo "${ECHO_T}$ac_file" >&6
2291 # Check the compiler produces executables we can run. If not, either
2292 # the compiler is broken, or we cross compile.
2293 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2294 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2295 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2296 # If not cross compiling, check that we can run a simple program.
2297 if test "$cross_compiling" != yes; then
2298 if { ac_try='./$ac_file'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 (eval $ac_try) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; }; then
2304 cross_compiling=no
2305 else
2306 if test "$cross_compiling" = maybe; then
2307 cross_compiling=yes
2308 else
2309 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2310 If you meant to cross compile, use \`--host'.
2311 See \`config.log' for more details." >&5
2312 echo "$as_me: error: cannot run C compiled programs.
2313 If you meant to cross compile, use \`--host'.
2314 See \`config.log' for more details." >&2;}
2315 { (exit 1); exit 1; }; }
2319 echo "$as_me:$LINENO: result: yes" >&5
2320 echo "${ECHO_T}yes" >&6
2322 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2323 ac_clean_files=$ac_clean_files_save
2324 # Check the compiler produces executables we can run. If not, either
2325 # the compiler is broken, or we cross compile.
2326 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2327 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2328 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2329 echo "${ECHO_T}$cross_compiling" >&6
2331 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2332 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2334 (eval $ac_link) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; then
2338 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2339 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2340 # work properly (i.e., refer to `conftest.exe'), while it won't with
2341 # `rm'.
2342 for ac_file in conftest.exe conftest conftest.*; do
2343 test -f "$ac_file" || continue
2344 case $ac_file in
2345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2346 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2347 export ac_cv_exeext
2348 break;;
2349 * ) break;;
2350 esac
2351 done
2352 else
2353 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2356 See \`config.log' for more details." >&2;}
2357 { (exit 1); exit 1; }; }
2360 rm -f conftest$ac_cv_exeext
2361 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2362 echo "${ECHO_T}$ac_cv_exeext" >&6
2364 rm -f conftest.$ac_ext
2365 EXEEXT=$ac_cv_exeext
2366 ac_exeext=$EXEEXT
2367 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2368 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2369 if test "${ac_cv_objext+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372 cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h. */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2380 main ()
2384 return 0;
2386 _ACEOF
2387 rm -f conftest.o conftest.obj
2388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389 (eval $ac_compile) 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; then
2393 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2394 case $ac_file in
2395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2396 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2397 break;;
2398 esac
2399 done
2400 else
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2404 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2405 See \`config.log' for more details." >&5
2406 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2407 See \`config.log' for more details." >&2;}
2408 { (exit 1); exit 1; }; }
2411 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2413 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2414 echo "${ECHO_T}$ac_cv_objext" >&6
2415 OBJEXT=$ac_cv_objext
2416 ac_objext=$OBJEXT
2417 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2418 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2419 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 cat >conftest.$ac_ext <<_ACEOF
2423 /* confdefs.h. */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2430 main ()
2432 #ifndef __GNUC__
2433 choke me
2434 #endif
2437 return 0;
2439 _ACEOF
2440 rm -f conftest.$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442 (eval $ac_compile) 2>conftest.er1
2443 ac_status=$?
2444 grep -v '^ *+' conftest.er1 >conftest.err
2445 rm -f conftest.er1
2446 cat conftest.err >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
2449 { ac_try='test -z "$ac_c_werror_flag"
2450 || test ! -s conftest.err'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 (eval $ac_try) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; } &&
2456 { ac_try='test -s conftest.$ac_objext'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; }; then
2462 ac_compiler_gnu=yes
2463 else
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2467 ac_compiler_gnu=no
2469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2470 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2473 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2474 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2475 GCC=`test $ac_compiler_gnu = yes && echo yes`
2476 ac_test_CFLAGS=${CFLAGS+set}
2477 ac_save_CFLAGS=$CFLAGS
2478 CFLAGS="-g"
2479 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2480 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2481 if test "${ac_cv_prog_cc_g+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484 cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h. */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2492 main ()
2496 return 0;
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2502 ac_status=$?
2503 grep -v '^ *+' conftest.er1 >conftest.err
2504 rm -f conftest.er1
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try='test -z "$ac_c_werror_flag"
2509 || test ! -s conftest.err'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2521 ac_cv_prog_cc_g=yes
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 ac_cv_prog_cc_g=no
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2530 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2531 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2532 if test "$ac_test_CFLAGS" = set; then
2533 CFLAGS=$ac_save_CFLAGS
2534 elif test $ac_cv_prog_cc_g = yes; then
2535 if test "$GCC" = yes; then
2536 CFLAGS="-g -O2"
2537 else
2538 CFLAGS="-g"
2540 else
2541 if test "$GCC" = yes; then
2542 CFLAGS="-O2"
2543 else
2544 CFLAGS=
2547 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2548 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2549 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552 ac_cv_prog_cc_stdc=no
2553 ac_save_CC=$CC
2554 cat >conftest.$ac_ext <<_ACEOF
2555 /* confdefs.h. */
2556 _ACEOF
2557 cat confdefs.h >>conftest.$ac_ext
2558 cat >>conftest.$ac_ext <<_ACEOF
2559 /* end confdefs.h. */
2560 #include <stdarg.h>
2561 #include <stdio.h>
2562 #include <sys/types.h>
2563 #include <sys/stat.h>
2564 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2565 struct buf { int x; };
2566 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2567 static char *e (p, i)
2568 char **p;
2569 int i;
2571 return p[i];
2573 static char *f (char * (*g) (char **, int), char **p, ...)
2575 char *s;
2576 va_list v;
2577 va_start (v,p);
2578 s = g (p, va_arg (v,int));
2579 va_end (v);
2580 return s;
2583 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2584 function prototypes and stuff, but not '\xHH' hex character constants.
2585 These don't provoke an error unfortunately, instead are silently treated
2586 as 'x'. The following induces an error, until -std1 is added to get
2587 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2588 array size at least. It's necessary to write '\x00'==0 to get something
2589 that's true only with -std1. */
2590 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2592 int test (int i, double x);
2593 struct s1 {int (*f) (int a);};
2594 struct s2 {int (*f) (double a);};
2595 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2596 int argc;
2597 char **argv;
2599 main ()
2601 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2603 return 0;
2605 _ACEOF
2606 # Don't try gcc -ansi; that turns off useful extensions and
2607 # breaks some systems' header files.
2608 # AIX -qlanglvl=ansi
2609 # Ultrix and OSF/1 -std1
2610 # HP-UX 10.20 and later -Ae
2611 # HP-UX older versions -Aa -D_HPUX_SOURCE
2612 # SVR4 -Xc -D__EXTENSIONS__
2613 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2615 CC="$ac_save_CC $ac_arg"
2616 rm -f conftest.$ac_objext
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618 (eval $ac_compile) 2>conftest.er1
2619 ac_status=$?
2620 grep -v '^ *+' conftest.er1 >conftest.err
2621 rm -f conftest.er1
2622 cat conftest.err >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try='test -z "$ac_c_werror_flag"
2626 || test ! -s conftest.err'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 (eval $ac_try) 2>&5
2635 ac_status=$?
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2638 ac_cv_prog_cc_stdc=$ac_arg
2639 break
2640 else
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2645 rm -f conftest.err conftest.$ac_objext
2646 done
2647 rm -f conftest.$ac_ext conftest.$ac_objext
2648 CC=$ac_save_CC
2652 case "x$ac_cv_prog_cc_stdc" in
2653 x|xno)
2654 echo "$as_me:$LINENO: result: none needed" >&5
2655 echo "${ECHO_T}none needed" >&6 ;;
2657 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2658 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2659 CC="$CC $ac_cv_prog_cc_stdc" ;;
2660 esac
2662 # Some people use a C++ compiler to compile C. Since we use `exit',
2663 # in C++ we need to declare it. In case someone uses the same compiler
2664 # for both compiling C and C++ we need to have the C++ compiler decide
2665 # the declaration of exit, since it's the most demanding environment.
2666 cat >conftest.$ac_ext <<_ACEOF
2667 #ifndef __cplusplus
2668 choke me
2669 #endif
2670 _ACEOF
2671 rm -f conftest.$ac_objext
2672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2673 (eval $ac_compile) 2>conftest.er1
2674 ac_status=$?
2675 grep -v '^ *+' conftest.er1 >conftest.err
2676 rm -f conftest.er1
2677 cat conftest.err >&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); } &&
2680 { ac_try='test -z "$ac_c_werror_flag"
2681 || test ! -s conftest.err'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 (eval $ac_try) 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; } &&
2687 { ac_try='test -s conftest.$ac_objext'
2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 (eval $ac_try) 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; }; then
2693 for ac_declaration in \
2694 '' \
2695 'extern "C" void std::exit (int) throw (); using std::exit;' \
2696 'extern "C" void std::exit (int); using std::exit;' \
2697 'extern "C" void exit (int) throw ();' \
2698 'extern "C" void exit (int);' \
2699 'void exit (int);'
2701 cat >conftest.$ac_ext <<_ACEOF
2702 /* confdefs.h. */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2707 $ac_declaration
2708 #include <stdlib.h>
2710 main ()
2712 exit (42);
2714 return 0;
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2720 ac_status=$?
2721 grep -v '^ *+' conftest.er1 >conftest.err
2722 rm -f conftest.er1
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -z "$ac_c_werror_flag"
2727 || test ! -s conftest.err'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; } &&
2733 { ac_try='test -s conftest.$ac_objext'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 (eval $ac_try) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2740 else
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2744 continue
2746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2747 cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h. */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2753 $ac_declaration
2755 main ()
2757 exit (42);
2759 return 0;
2761 _ACEOF
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764 (eval $ac_compile) 2>conftest.er1
2765 ac_status=$?
2766 grep -v '^ *+' conftest.er1 >conftest.err
2767 rm -f conftest.er1
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -z "$ac_c_werror_flag"
2772 || test ! -s conftest.err'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; } &&
2778 { ac_try='test -s conftest.$ac_objext'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 break
2785 else
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791 done
2792 rm -f conftest*
2793 if test -n "$ac_declaration"; then
2794 echo '#ifdef __cplusplus' >>confdefs.h
2795 echo $ac_declaration >>confdefs.h
2796 echo '#endif' >>confdefs.h
2799 else
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2805 ac_ext=c
2806 ac_cpp='$CPP $CPPFLAGS'
2807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2810 DEPDIR="${am__leading_dot}deps"
2812 ac_config_commands="$ac_config_commands depfiles"
2815 am_make=${MAKE-make}
2816 cat > confinc << 'END'
2817 am__doit:
2818 @echo done
2819 .PHONY: am__doit
2821 # If we don't find an include directive, just comment out the code.
2822 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2823 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2824 am__include="#"
2825 am__quote=
2826 _am_result=none
2827 # First try GNU make style include.
2828 echo "include confinc" > confmf
2829 # We grep out `Entering directory' and `Leaving directory'
2830 # messages which can occur if `w' ends up in MAKEFLAGS.
2831 # In particular we don't look at `^make:' because GNU make might
2832 # be invoked under some other name (usually "gmake"), in which
2833 # case it prints its new name instead of `make'.
2834 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2835 am__include=include
2836 am__quote=
2837 _am_result=GNU
2839 # Now try BSD make style include.
2840 if test "$am__include" = "#"; then
2841 echo '.include "confinc"' > confmf
2842 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2843 am__include=.include
2844 am__quote="\""
2845 _am_result=BSD
2850 echo "$as_me:$LINENO: result: $_am_result" >&5
2851 echo "${ECHO_T}$_am_result" >&6
2852 rm -f confinc confmf
2854 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2855 if test "${enable_dependency_tracking+set}" = set; then
2856 enableval="$enable_dependency_tracking"
2859 if test "x$enable_dependency_tracking" != xno; then
2860 am_depcomp="$ac_aux_dir/depcomp"
2861 AMDEPBACKSLASH='\'
2865 if test "x$enable_dependency_tracking" != xno; then
2866 AMDEP_TRUE=
2867 AMDEP_FALSE='#'
2868 else
2869 AMDEP_TRUE='#'
2870 AMDEP_FALSE=
2876 depcc="$CC" am_compiler_list=
2878 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2879 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2880 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2884 # We make a subdir and do the tests there. Otherwise we can end up
2885 # making bogus files that we don't know about and never remove. For
2886 # instance it was reported that on HP-UX the gcc test will end up
2887 # making a dummy file named `D' -- because `-MD' means `put the output
2888 # in D'.
2889 mkdir conftest.dir
2890 # Copy depcomp to subdir because otherwise we won't find it if we're
2891 # using a relative directory.
2892 cp "$am_depcomp" conftest.dir
2893 cd conftest.dir
2894 # We will build objects and dependencies in a subdirectory because
2895 # it helps to detect inapplicable dependency modes. For instance
2896 # both Tru64's cc and ICC support -MD to output dependencies as a
2897 # side effect of compilation, but ICC will put the dependencies in
2898 # the current directory while Tru64 will put them in the object
2899 # directory.
2900 mkdir sub
2902 am_cv_CC_dependencies_compiler_type=none
2903 if test "$am_compiler_list" = ""; then
2904 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2906 for depmode in $am_compiler_list; do
2907 # Setup a source with many dependencies, because some compilers
2908 # like to wrap large dependency lists on column 80 (with \), and
2909 # we should not choose a depcomp mode which is confused by this.
2911 # We need to recreate these files for each test, as the compiler may
2912 # overwrite some of them when testing with obscure command lines.
2913 # This happens at least with the AIX C compiler.
2914 : > sub/conftest.c
2915 for i in 1 2 3 4 5 6; do
2916 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2917 : > sub/conftst$i.h
2918 done
2919 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2921 case $depmode in
2922 nosideeffect)
2923 # after this tag, mechanisms are not by side-effect, so they'll
2924 # only be used when explicitly requested
2925 if test "x$enable_dependency_tracking" = xyes; then
2926 continue
2927 else
2928 break
2931 none) break ;;
2932 esac
2933 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2934 # mode. It turns out that the SunPro C++ compiler does not properly
2935 # handle `-M -o', and we need to detect this.
2936 if depmode=$depmode \
2937 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2938 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2939 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2940 >/dev/null 2>conftest.err &&
2941 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2942 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2943 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2944 # icc doesn't choke on unknown options, it will just issue warnings
2945 # (even with -Werror). So we grep stderr for any message
2946 # that says an option was ignored.
2947 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2948 am_cv_CC_dependencies_compiler_type=$depmode
2949 break
2952 done
2954 cd ..
2955 rm -rf conftest.dir
2956 else
2957 am_cv_CC_dependencies_compiler_type=none
2961 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2962 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2963 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2968 test "x$enable_dependency_tracking" != xno \
2969 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2970 am__fastdepCC_TRUE=
2971 am__fastdepCC_FALSE='#'
2972 else
2973 am__fastdepCC_TRUE='#'
2974 am__fastdepCC_FALSE=
2982 # By default we simply use the C compiler to build assembly code.
2984 : ${CCAS='$(CC)'}
2985 # Set ASFLAGS if not already set.
2986 : ${CCASFLAGS='$(CFLAGS)'}
2989 if test "x$CC" != xcc; then
2990 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2991 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2992 else
2993 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2994 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2996 set dummy $CC; ac_cc=`echo $2 |
2997 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2998 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001 cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h. */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3009 main ()
3013 return 0;
3015 _ACEOF
3016 # Make sure it works both with $CC and with simple cc.
3017 # We do the test twice because some compilers refuse to overwrite an
3018 # existing .o file with -o, though they will create one.
3019 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3020 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021 (eval $ac_try) 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 (eval $ac_try) 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); };
3030 then
3031 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3032 if test "x$CC" != xcc; then
3033 # Test first that cc exists at all.
3034 if { ac_try='cc -c conftest.$ac_ext >&5'
3035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036 (eval $ac_try) 2>&5
3037 ac_status=$?
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; }; then
3040 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3041 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 (eval $ac_try) 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } &&
3046 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); };
3051 then
3052 # cc works too.
3054 else
3055 # cc exists but doesn't like -o.
3056 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3060 else
3061 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3063 rm -f conftest*
3066 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3067 echo "$as_me:$LINENO: result: yes" >&5
3068 echo "${ECHO_T}yes" >&6
3069 else
3070 echo "$as_me:$LINENO: result: no" >&5
3071 echo "${ECHO_T}no" >&6
3073 cat >>confdefs.h <<\_ACEOF
3074 #define NO_MINUS_C_MINUS_O 1
3075 _ACEOF
3079 # FIXME: we rely on the cache variable name because
3080 # there is no other way.
3081 set dummy $CC
3082 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3083 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3084 # Losing compiler, so override with the script.
3085 # FIXME: It is wrong to rewrite CC.
3086 # But if we don't then we get into trouble of one sort or another.
3087 # A longer-term fix would be to have automake use am__CC in this case,
3088 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3089 CC="$am_aux_dir/compile $CC"
3092 # Check whether --enable-shared or --disable-shared was given.
3093 if test "${enable_shared+set}" = set; then
3094 enableval="$enable_shared"
3095 p=${PACKAGE-default}
3096 case $enableval in
3097 yes) enable_shared=yes ;;
3098 no) enable_shared=no ;;
3100 enable_shared=no
3101 # Look at the argument we got. We use all the common list separators.
3102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3103 for pkg in $enableval; do
3104 if test "X$pkg" = "X$p"; then
3105 enable_shared=yes
3107 done
3108 IFS="$ac_save_ifs"
3110 esac
3111 else
3112 enable_shared=yes
3114 # Check whether --enable-static or --disable-static was given.
3115 if test "${enable_static+set}" = set; then
3116 enableval="$enable_static"
3117 p=${PACKAGE-default}
3118 case $enableval in
3119 yes) enable_static=yes ;;
3120 no) enable_static=no ;;
3122 enable_static=no
3123 # Look at the argument we got. We use all the common list separators.
3124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3125 for pkg in $enableval; do
3126 if test "X$pkg" = "X$p"; then
3127 enable_static=yes
3129 done
3130 IFS="$ac_save_ifs"
3132 esac
3133 else
3134 enable_static=yes
3136 # Check whether --enable-fast-install or --disable-fast-install was given.
3137 if test "${enable_fast_install+set}" = set; then
3138 enableval="$enable_fast_install"
3139 p=${PACKAGE-default}
3140 case $enableval in
3141 yes) enable_fast_install=yes ;;
3142 no) enable_fast_install=no ;;
3144 enable_fast_install=no
3145 # Look at the argument we got. We use all the common list separators.
3146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3147 for pkg in $enableval; do
3148 if test "X$pkg" = "X$p"; then
3149 enable_fast_install=yes
3151 done
3152 IFS="$ac_save_ifs"
3154 esac
3155 else
3156 enable_fast_install=yes
3159 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3160 if test "${with_gnu_ld+set}" = set; then
3161 withval="$with_gnu_ld"
3162 test "$withval" = no || with_gnu_ld=yes
3163 else
3164 with_gnu_ld=no
3166 ac_prog=ld
3167 if test "$GCC" = yes; then
3168 # Check if gcc -print-prog-name=ld gives a path.
3169 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3170 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3171 case $host in
3172 *-*-mingw*)
3173 # gcc leaves a trailing carriage return which upsets mingw
3174 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3176 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3177 esac
3178 case $ac_prog in
3179 # Accept absolute paths.
3180 [\\/]* | [A-Za-z]:[\\/]*)
3181 re_direlt='/[^/][^/]*/\.\./'
3182 # Canonicalize the path of ld
3183 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3184 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3185 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3186 done
3187 test -z "$LD" && LD="$ac_prog"
3190 # If it fails, then pretend we aren't using GCC.
3191 ac_prog=ld
3194 # If it is relative, then search for the first ld in PATH.
3195 with_gnu_ld=unknown
3197 esac
3198 elif test "$with_gnu_ld" = yes; then
3199 echo "$as_me:$LINENO: checking for GNU ld" >&5
3200 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3201 else
3202 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3203 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3205 if test "${lt_cv_path_LD+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208 if test -z "$LD"; then
3209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3210 for ac_dir in $PATH; do
3211 test -z "$ac_dir" && ac_dir=.
3212 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3213 lt_cv_path_LD="$ac_dir/$ac_prog"
3214 # Check to see if the program is GNU ld. I'd rather use --version,
3215 # but apparently some GNU ld's only accept -v.
3216 # Break only if it was the GNU/non-GNU ld that we prefer.
3217 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3218 test "$with_gnu_ld" != no && break
3219 else
3220 test "$with_gnu_ld" != yes && break
3223 done
3224 IFS="$ac_save_ifs"
3225 else
3226 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3230 LD="$lt_cv_path_LD"
3231 if test -n "$LD"; then
3232 echo "$as_me:$LINENO: result: $LD" >&5
3233 echo "${ECHO_T}$LD" >&6
3234 else
3235 echo "$as_me:$LINENO: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3238 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3239 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3240 { (exit 1); exit 1; }; }
3241 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3242 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3243 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3247 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3248 lt_cv_prog_gnu_ld=yes
3249 else
3250 lt_cv_prog_gnu_ld=no
3253 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3254 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3255 with_gnu_ld=$lt_cv_prog_gnu_ld
3258 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3259 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3260 if test "${lt_cv_ld_reload_flag+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263 lt_cv_ld_reload_flag='-r'
3265 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3266 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3267 reload_flag=$lt_cv_ld_reload_flag
3268 test -n "$reload_flag" && reload_flag=" $reload_flag"
3270 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3271 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3272 if test "${lt_cv_path_NM+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275 if test -n "$NM"; then
3276 # Let the user override the test.
3277 lt_cv_path_NM="$NM"
3278 else
3279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3280 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3281 test -z "$ac_dir" && ac_dir=.
3282 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3283 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3284 # Check to see if the nm accepts a BSD-compat flag.
3285 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3286 # nm: unknown option "B" ignored
3287 # Tru64's nm complains that /dev/null is an invalid object file
3288 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3289 lt_cv_path_NM="$tmp_nm -B"
3290 break
3291 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3292 lt_cv_path_NM="$tmp_nm -p"
3293 break
3294 else
3295 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3296 continue # so that we can try to find one that supports BSD flags
3299 done
3300 IFS="$ac_save_ifs"
3301 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3305 NM="$lt_cv_path_NM"
3306 echo "$as_me:$LINENO: result: $NM" >&5
3307 echo "${ECHO_T}$NM" >&6
3309 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3310 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3311 LN_S=$as_ln_s
3312 if test "$LN_S" = "ln -s"; then
3313 echo "$as_me:$LINENO: result: yes" >&5
3314 echo "${ECHO_T}yes" >&6
3315 else
3316 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3317 echo "${ECHO_T}no, using $LN_S" >&6
3320 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3321 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3322 if test "${lt_cv_deplibs_check_method+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325 lt_cv_file_magic_cmd='$MAGIC_CMD'
3326 lt_cv_file_magic_test_file=
3327 lt_cv_deplibs_check_method='unknown'
3328 # Need to set the preceding variable on all platforms that support
3329 # interlibrary dependencies.
3330 # 'none' -- dependencies not supported.
3331 # `unknown' -- same as none, but documents that we really don't know.
3332 # 'pass_all' -- all dependencies passed with no checks.
3333 # 'test_compile' -- check by making test program.
3334 # 'file_magic [regex]' -- check by looking for files in library path
3335 # which responds to the $file_magic_cmd with a given egrep regex.
3336 # If you have `file' or equivalent on your system and you're not sure
3337 # whether `pass_all' will *always* work, you probably want this one.
3339 case $host_os in
3340 aix*)
3341 lt_cv_deplibs_check_method=pass_all
3344 beos*)
3345 lt_cv_deplibs_check_method=pass_all
3348 bsdi4*)
3349 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3350 lt_cv_file_magic_cmd='/usr/bin/file -L'
3351 lt_cv_file_magic_test_file=/shlib/libc.so
3354 cygwin* | mingw* |pw32*)
3355 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3356 lt_cv_file_magic_cmd='$OBJDUMP -f'
3359 darwin* | rhapsody*)
3360 # this will be overwritten by pass_all, but leave it in just in case
3361 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3362 lt_cv_file_magic_cmd='/usr/bin/file -L'
3363 case "$host_os" in
3364 rhapsody* | darwin1.012)
3365 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3367 *) # Darwin 1.3 on
3368 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3370 esac
3371 lt_cv_deplibs_check_method=pass_all
3374 freebsd* | kfreebsd*-gnu)
3375 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3376 case $host_cpu in
3377 i*86 )
3378 # Not sure whether the presence of OpenBSD here was a mistake.
3379 # Let's accept both of them until this is cleared up.
3380 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3381 lt_cv_file_magic_cmd=/usr/bin/file
3382 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3384 esac
3385 else
3386 lt_cv_deplibs_check_method=pass_all
3390 gnu*)
3391 lt_cv_deplibs_check_method=pass_all
3394 hpux10.20*|hpux11*)
3395 case $host_cpu in
3396 hppa*)
3397 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3398 lt_cv_file_magic_cmd=/usr/bin/file
3399 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3401 ia64*)
3402 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3403 lt_cv_file_magic_cmd=/usr/bin/file
3404 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3406 esac
3409 irix5* | irix6*)
3410 case $host_os in
3411 irix5*)
3412 # this will be overridden with pass_all, but let us keep it just in case
3413 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3416 case $LD in
3417 *-32|*"-32 ") libmagic=32-bit;;
3418 *-n32|*"-n32 ") libmagic=N32;;
3419 *-64|*"-64 ") libmagic=64-bit;;
3420 *) libmagic=never-match;;
3421 esac
3422 # this will be overridden with pass_all, but let us keep it just in case
3423 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3425 esac
3426 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3427 lt_cv_deplibs_check_method=pass_all
3430 # This must be Linux ELF.
3431 linux-gnu*)
3432 case $host_cpu in
3433 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
3434 lt_cv_deplibs_check_method=pass_all ;;
3436 # glibc up to 2.1.1 does not perform some relocations on ARM
3437 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3438 esac
3439 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3442 netbsd* | knetbsd*-gnu)
3443 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3444 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3445 else
3446 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3450 newsos6)
3451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3452 lt_cv_file_magic_cmd=/usr/bin/file
3453 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3456 osf3* | osf4* | osf5*)
3457 # this will be overridden with pass_all, but let us keep it just in case
3458 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3459 lt_cv_file_magic_test_file=/shlib/libc.so
3460 lt_cv_deplibs_check_method=pass_all
3463 sco3.2v5*)
3464 lt_cv_deplibs_check_method=pass_all
3467 solaris*)
3468 lt_cv_deplibs_check_method=pass_all
3469 lt_cv_file_magic_test_file=/lib/libc.so
3472 sysv5uw[78]* | sysv4*uw2*)
3473 lt_cv_deplibs_check_method=pass_all
3476 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3477 case $host_vendor in
3478 ncr)
3479 lt_cv_deplibs_check_method=pass_all
3481 motorola)
3482 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]'
3483 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3485 esac
3487 esac
3490 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3491 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3492 file_magic_cmd=$lt_cv_file_magic_cmd
3493 deplibs_check_method=$lt_cv_deplibs_check_method
3499 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3501 # Only perform the check for file, if the check method requires it
3502 case $deplibs_check_method in
3503 file_magic*)
3504 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3505 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3506 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3507 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510 case $MAGIC_CMD in
3512 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3514 ?:/*)
3515 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3518 ac_save_MAGIC_CMD="$MAGIC_CMD"
3519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3520 ac_dummy="/usr/bin:$PATH"
3521 for ac_dir in $ac_dummy; do
3522 test -z "$ac_dir" && ac_dir=.
3523 if test -f $ac_dir/${ac_tool_prefix}file; then
3524 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3525 if test -n "$file_magic_test_file"; then
3526 case $deplibs_check_method in
3527 "file_magic "*)
3528 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3530 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3531 egrep "$file_magic_regex" > /dev/null; then
3533 else
3534 cat <<EOF 1>&2
3536 *** Warning: the command libtool uses to detect shared libraries,
3537 *** $file_magic_cmd, produces output that libtool cannot recognize.
3538 *** The result is that libtool may fail to recognize shared libraries
3539 *** as such. This will affect the creation of libtool libraries that
3540 *** depend on shared libraries, but programs linked with such libtool
3541 *** libraries will work regardless of this problem. Nevertheless, you
3542 *** may want to report the problem to your system manager and/or to
3543 *** bug-libtool@gnu.org
3546 fi ;;
3547 esac
3549 break
3551 done
3552 IFS="$ac_save_ifs"
3553 MAGIC_CMD="$ac_save_MAGIC_CMD"
3555 esac
3558 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3559 if test -n "$MAGIC_CMD"; then
3560 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3561 echo "${ECHO_T}$MAGIC_CMD" >&6
3562 else
3563 echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6
3567 if test -z "$lt_cv_path_MAGIC_CMD"; then
3568 if test -n "$ac_tool_prefix"; then
3569 echo "$as_me:$LINENO: checking for file" >&5
3570 echo $ECHO_N "checking for file... $ECHO_C" >&6
3571 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574 case $MAGIC_CMD in
3576 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3578 ?:/*)
3579 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3582 ac_save_MAGIC_CMD="$MAGIC_CMD"
3583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3584 ac_dummy="/usr/bin:$PATH"
3585 for ac_dir in $ac_dummy; do
3586 test -z "$ac_dir" && ac_dir=.
3587 if test -f $ac_dir/file; then
3588 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3589 if test -n "$file_magic_test_file"; then
3590 case $deplibs_check_method in
3591 "file_magic "*)
3592 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3593 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3594 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3595 egrep "$file_magic_regex" > /dev/null; then
3597 else
3598 cat <<EOF 1>&2
3600 *** Warning: the command libtool uses to detect shared libraries,
3601 *** $file_magic_cmd, produces output that libtool cannot recognize.
3602 *** The result is that libtool may fail to recognize shared libraries
3603 *** as such. This will affect the creation of libtool libraries that
3604 *** depend on shared libraries, but programs linked with such libtool
3605 *** libraries will work regardless of this problem. Nevertheless, you
3606 *** may want to report the problem to your system manager and/or to
3607 *** bug-libtool@gnu.org
3610 fi ;;
3611 esac
3613 break
3615 done
3616 IFS="$ac_save_ifs"
3617 MAGIC_CMD="$ac_save_MAGIC_CMD"
3619 esac
3622 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3623 if test -n "$MAGIC_CMD"; then
3624 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3625 echo "${ECHO_T}$MAGIC_CMD" >&6
3626 else
3627 echo "$as_me:$LINENO: result: no" >&5
3628 echo "${ECHO_T}no" >&6
3631 else
3632 MAGIC_CMD=:
3638 esac
3640 if test -n "$ac_tool_prefix"; then
3641 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3642 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3643 echo "$as_me:$LINENO: checking for $ac_word" >&5
3644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3645 if test "${ac_cv_prog_RANLIB+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648 if test -n "$RANLIB"; then
3649 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 break 2
3662 done
3663 done
3667 RANLIB=$ac_cv_prog_RANLIB
3668 if test -n "$RANLIB"; then
3669 echo "$as_me:$LINENO: result: $RANLIB" >&5
3670 echo "${ECHO_T}$RANLIB" >&6
3671 else
3672 echo "$as_me:$LINENO: result: no" >&5
3673 echo "${ECHO_T}no" >&6
3677 if test -z "$ac_cv_prog_RANLIB"; then
3678 ac_ct_RANLIB=$RANLIB
3679 # Extract the first word of "ranlib", so it can be a program name with args.
3680 set dummy ranlib; ac_word=$2
3681 echo "$as_me:$LINENO: checking for $ac_word" >&5
3682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3683 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686 if test -n "$ac_ct_RANLIB"; then
3687 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3696 ac_cv_prog_ac_ct_RANLIB="ranlib"
3697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 break 2
3700 done
3701 done
3703 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3706 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3707 if test -n "$ac_ct_RANLIB"; then
3708 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3709 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3710 else
3711 echo "$as_me:$LINENO: result: no" >&5
3712 echo "${ECHO_T}no" >&6
3715 RANLIB=$ac_ct_RANLIB
3716 else
3717 RANLIB="$ac_cv_prog_RANLIB"
3720 if test -n "$ac_tool_prefix"; then
3721 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3722 set dummy ${ac_tool_prefix}strip; ac_word=$2
3723 echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3725 if test "${ac_cv_prog_STRIP+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728 if test -n "$STRIP"; then
3729 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3730 else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3738 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 break 2
3742 done
3743 done
3747 STRIP=$ac_cv_prog_STRIP
3748 if test -n "$STRIP"; then
3749 echo "$as_me:$LINENO: result: $STRIP" >&5
3750 echo "${ECHO_T}$STRIP" >&6
3751 else
3752 echo "$as_me:$LINENO: result: no" >&5
3753 echo "${ECHO_T}no" >&6
3757 if test -z "$ac_cv_prog_STRIP"; then
3758 ac_ct_STRIP=$STRIP
3759 # Extract the first word of "strip", so it can be a program name with args.
3760 set dummy strip; ac_word=$2
3761 echo "$as_me:$LINENO: checking for $ac_word" >&5
3762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3763 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766 if test -n "$ac_ct_STRIP"; then
3767 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_ac_ct_STRIP="strip"
3777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
3780 done
3781 done
3783 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3786 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3787 if test -n "$ac_ct_STRIP"; then
3788 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3789 echo "${ECHO_T}$ac_ct_STRIP" >&6
3790 else
3791 echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3795 STRIP=$ac_ct_STRIP
3796 else
3797 STRIP="$ac_cv_prog_STRIP"
3801 # Check for any special flags to pass to ltconfig.
3802 libtool_flags="--cache-file=$cache_file"
3803 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3804 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3805 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3806 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3807 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3810 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3811 if test "${enable_libtool_lock+set}" = set; then
3812 enableval="$enable_libtool_lock"
3815 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3816 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3819 # Check whether --with-pic or --without-pic was given.
3820 if test "${with_pic+set}" = set; then
3821 withval="$with_pic"
3822 pic_mode="$withval"
3823 else
3824 pic_mode=default
3826 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3827 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3829 # Some flags need to be propagated to the compiler or linker for good
3830 # libtool support.
3831 case $host in
3832 *-*-irix6*)
3833 # Find out which ABI we are using.
3834 echo '#line 3834 "configure"' > conftest.$ac_ext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3836 (eval $ac_compile) 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; then
3840 if test "$lt_cv_prog_gnu_ld" = yes; then
3841 case `/usr/bin/file conftest.$ac_objext` in
3842 *32-bit*)
3843 LD="${LD-ld} -melf32bsmip"
3845 *N32*)
3846 LD="${LD-ld} -melf32bmipn32"
3848 *64-bit*)
3849 LD="${LD-ld} -melf64bmip"
3851 esac
3852 else
3853 case `/usr/bin/file conftest.$ac_objext` in
3854 *32-bit*)
3855 LD="${LD-ld} -32"
3857 *N32*)
3858 LD="${LD-ld} -n32"
3860 *64-bit*)
3861 LD="${LD-ld} -64"
3863 esac
3866 rm -rf conftest*
3869 ia64-*-hpux*)
3870 # Find out which ABI we are using.
3871 echo 'int i;' > conftest.$ac_ext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873 (eval $ac_compile) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; then
3877 case "`/usr/bin/file conftest.o`" in
3878 *ELF-32*)
3879 HPUX_IA64_MODE="32"
3881 *ELF-64*)
3882 HPUX_IA64_MODE="64"
3884 esac
3886 rm -rf conftest*
3889 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3890 # Find out which ABI we are using.
3891 echo 'int i;' > conftest.$ac_ext
3892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893 (eval $ac_compile) 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; then
3897 case "`/usr/bin/file conftest.o`" in
3898 *32-bit*)
3899 case $host in
3900 x86_64-*linux*)
3901 LD="${LD-ld} -m elf_i386"
3903 ppc64-*linux*|powerpc64-*linux*)
3904 LD="${LD-ld} -m elf32ppclinux"
3906 s390x-*linux*)
3907 LD="${LD-ld} -m elf_s390"
3909 sparc64-*linux*)
3910 LD="${LD-ld} -m elf32_sparc"
3912 esac
3914 *64-bit*)
3915 case $host in
3916 x86_64-*linux*)
3917 LD="${LD-ld} -m elf_x86_64"
3919 ppc*-*linux*|powerpc*-*linux*)
3920 LD="${LD-ld} -m elf64ppc"
3922 s390*-*linux*)
3923 LD="${LD-ld} -m elf64_s390"
3925 sparc*-*linux*)
3926 LD="${LD-ld} -m elf64_sparc"
3928 esac
3930 esac
3932 rm -rf conftest*
3935 *-*-sco3.2v5*)
3936 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3937 SAVE_CFLAGS="$CFLAGS"
3938 CFLAGS="$CFLAGS -belf"
3939 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3940 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3941 if test "${lt_cv_cc_needs_belf+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3946 ac_ext=c
3947 ac_cpp='$CPP $CPPFLAGS'
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952 cat >conftest.$ac_ext <<_ACEOF
3953 /* confdefs.h. */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3960 main ()
3964 return 0;
3966 _ACEOF
3967 rm -f conftest.$ac_objext conftest$ac_exeext
3968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3969 (eval $ac_link) 2>conftest.er1
3970 ac_status=$?
3971 grep -v '^ *+' conftest.er1 >conftest.err
3972 rm -f conftest.er1
3973 cat conftest.err >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } &&
3976 { ac_try='test -z "$ac_c_werror_flag"
3977 || test ! -s conftest.err'
3978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 (eval $ac_try) 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; } &&
3983 { ac_try='test -s conftest$ac_exeext'
3984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985 (eval $ac_try) 2>&5
3986 ac_status=$?
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }; }; then
3989 lt_cv_cc_needs_belf=yes
3990 else
3991 echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 lt_cv_cc_needs_belf=no
3996 rm -f conftest.err conftest.$ac_objext \
3997 conftest$ac_exeext conftest.$ac_ext
3998 ac_ext=c
3999 ac_cpp='$CPP $CPPFLAGS'
4000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4006 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4007 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4008 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4009 CFLAGS="$SAVE_CFLAGS"
4014 esac
4017 # Save cache, so that ltconfig can load it
4018 cat >confcache <<\_ACEOF
4019 # This file is a shell script that caches the results of configure
4020 # tests run on this system so they can be shared between configure
4021 # scripts and configure runs, see configure's option --config-cache.
4022 # It is not useful on other systems. If it contains results you don't
4023 # want to keep, you may remove or edit it.
4025 # config.status only pays attention to the cache file if you give it
4026 # the --recheck option to rerun configure.
4028 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4029 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4030 # following values.
4032 _ACEOF
4034 # The following way of writing the cache mishandles newlines in values,
4035 # but we know of no workaround that is simple, portable, and efficient.
4036 # So, don't put newlines in cache variables' values.
4037 # Ultrix sh set writes to stderr and can't be redirected directly,
4038 # and sets the high bit in the cache file unless we assign to the vars.
4040 (set) 2>&1 |
4041 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4042 *ac_space=\ *)
4043 # `set' does not quote correctly, so add quotes (double-quote
4044 # substitution turns \\\\ into \\, and sed turns \\ into \).
4045 sed -n \
4046 "s/'/'\\\\''/g;
4047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4050 # `set' quotes correctly as required by POSIX, so do not add quotes.
4051 sed -n \
4052 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4054 esac;
4056 sed '
4057 t clear
4058 : clear
4059 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4060 t end
4061 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4062 : end' >>confcache
4063 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4064 if test -w $cache_file; then
4065 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4066 cat confcache >$cache_file
4067 else
4068 echo "not updating unwritable cache $cache_file"
4071 rm -f confcache
4073 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4074 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4075 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4076 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4077 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4078 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4079 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4080 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4081 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4082 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4083 echo "$as_me: error: libtool configure failed" >&2;}
4084 { (exit 1); exit 1; }; }
4086 # Reload cache, that may have been modified by ltconfig
4087 if test -r "$cache_file"; then
4088 # Some versions of bash will fail to source /dev/null (special
4089 # files actually), so we avoid doing that.
4090 if test -f "$cache_file"; then
4091 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4092 echo "$as_me: loading cache $cache_file" >&6;}
4093 case $cache_file in
4094 [\\/]* | ?:[\\/]* ) . $cache_file;;
4095 *) . ./$cache_file;;
4096 esac
4098 else
4099 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4100 echo "$as_me: creating cache $cache_file" >&6;}
4101 >$cache_file
4105 # This can be used to rebuild libtool when needed
4106 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4108 # Always use our own libtool.
4109 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4111 # Redirect the config.log output again, so that the ltconfig log is not
4112 # clobbered by the next message.
4113 exec 5>>./config.log
4121 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4122 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4123 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4124 if test "${enable_maintainer_mode+set}" = set; then
4125 enableval="$enable_maintainer_mode"
4126 USE_MAINTAINER_MODE=$enableval
4127 else
4128 USE_MAINTAINER_MODE=no
4130 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4131 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4134 if test $USE_MAINTAINER_MODE = yes; then
4135 MAINTAINER_MODE_TRUE=
4136 MAINTAINER_MODE_FALSE='#'
4137 else
4138 MAINTAINER_MODE_TRUE='#'
4139 MAINTAINER_MODE_FALSE=
4142 MAINT=$MAINTAINER_MODE_TRUE
4146 ac_ext=c
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4152 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4153 # On Suns, sometimes $CPP names a directory.
4154 if test -n "$CPP" && test -d "$CPP"; then
4155 CPP=
4157 if test -z "$CPP"; then
4158 if test "${ac_cv_prog_CPP+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161 # Double quotes because CPP needs to be expanded
4162 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4164 ac_preproc_ok=false
4165 for ac_c_preproc_warn_flag in '' yes
4167 # Use a header file that comes with gcc, so configuring glibc
4168 # with a fresh cross-compiler works.
4169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4170 # <limits.h> exists even on freestanding compilers.
4171 # On the NeXT, cc -E runs the code through the compiler's parser,
4172 # not just through cpp. "Syntax error" is here to catch this case.
4173 cat >conftest.$ac_ext <<_ACEOF
4174 /* confdefs.h. */
4175 _ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4179 #ifdef __STDC__
4180 # include <limits.h>
4181 #else
4182 # include <assert.h>
4183 #endif
4184 Syntax error
4185 _ACEOF
4186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4188 ac_status=$?
4189 grep -v '^ *+' conftest.er1 >conftest.err
4190 rm -f conftest.er1
4191 cat conftest.err >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } >/dev/null; then
4194 if test -s conftest.err; then
4195 ac_cpp_err=$ac_c_preproc_warn_flag
4196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4197 else
4198 ac_cpp_err=
4200 else
4201 ac_cpp_err=yes
4203 if test -z "$ac_cpp_err"; then
4205 else
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4209 # Broken: fails on valid input.
4210 continue
4212 rm -f conftest.err conftest.$ac_ext
4214 # OK, works on sane cases. Now check whether non-existent headers
4215 # can be detected and how.
4216 cat >conftest.$ac_ext <<_ACEOF
4217 /* confdefs.h. */
4218 _ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4222 #include <ac_nonexistent.h>
4223 _ACEOF
4224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } >/dev/null; then
4232 if test -s conftest.err; then
4233 ac_cpp_err=$ac_c_preproc_warn_flag
4234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4235 else
4236 ac_cpp_err=
4238 else
4239 ac_cpp_err=yes
4241 if test -z "$ac_cpp_err"; then
4242 # Broken: success on invalid input.
4243 continue
4244 else
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4248 # Passes both tests.
4249 ac_preproc_ok=:
4250 break
4252 rm -f conftest.err conftest.$ac_ext
4254 done
4255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4256 rm -f conftest.err conftest.$ac_ext
4257 if $ac_preproc_ok; then
4258 break
4261 done
4262 ac_cv_prog_CPP=$CPP
4265 CPP=$ac_cv_prog_CPP
4266 else
4267 ac_cv_prog_CPP=$CPP
4269 echo "$as_me:$LINENO: result: $CPP" >&5
4270 echo "${ECHO_T}$CPP" >&6
4271 ac_preproc_ok=false
4272 for ac_c_preproc_warn_flag in '' yes
4274 # Use a header file that comes with gcc, so configuring glibc
4275 # with a fresh cross-compiler works.
4276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4277 # <limits.h> exists even on freestanding compilers.
4278 # On the NeXT, cc -E runs the code through the compiler's parser,
4279 # not just through cpp. "Syntax error" is here to catch this case.
4280 cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h. */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 #ifdef __STDC__
4287 # include <limits.h>
4288 #else
4289 # include <assert.h>
4290 #endif
4291 Syntax error
4292 _ACEOF
4293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4295 ac_status=$?
4296 grep -v '^ *+' conftest.er1 >conftest.err
4297 rm -f conftest.er1
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } >/dev/null; then
4301 if test -s conftest.err; then
4302 ac_cpp_err=$ac_c_preproc_warn_flag
4303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4304 else
4305 ac_cpp_err=
4307 else
4308 ac_cpp_err=yes
4310 if test -z "$ac_cpp_err"; then
4312 else
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4316 # Broken: fails on valid input.
4317 continue
4319 rm -f conftest.err conftest.$ac_ext
4321 # OK, works on sane cases. Now check whether non-existent headers
4322 # can be detected and how.
4323 cat >conftest.$ac_ext <<_ACEOF
4324 /* confdefs.h. */
4325 _ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4329 #include <ac_nonexistent.h>
4330 _ACEOF
4331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } >/dev/null; then
4339 if test -s conftest.err; then
4340 ac_cpp_err=$ac_c_preproc_warn_flag
4341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4342 else
4343 ac_cpp_err=
4345 else
4346 ac_cpp_err=yes
4348 if test -z "$ac_cpp_err"; then
4349 # Broken: success on invalid input.
4350 continue
4351 else
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4355 # Passes both tests.
4356 ac_preproc_ok=:
4357 break
4359 rm -f conftest.err conftest.$ac_ext
4361 done
4362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4363 rm -f conftest.err conftest.$ac_ext
4364 if $ac_preproc_ok; then
4366 else
4367 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4368 See \`config.log' for more details." >&5
4369 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4370 See \`config.log' for more details." >&2;}
4371 { (exit 1); exit 1; }; }
4374 ac_ext=c
4375 ac_cpp='$CPP $CPPFLAGS'
4376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4381 echo "$as_me:$LINENO: checking for egrep" >&5
4382 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4383 if test "${ac_cv_prog_egrep+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4387 then ac_cv_prog_egrep='grep -E'
4388 else ac_cv_prog_egrep='egrep'
4391 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4392 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4393 EGREP=$ac_cv_prog_egrep
4396 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4397 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4398 if test "${ac_cv_header_stdc+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401 cat >conftest.$ac_ext <<_ACEOF
4402 /* confdefs.h. */
4403 _ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4407 #include <stdlib.h>
4408 #include <stdarg.h>
4409 #include <string.h>
4410 #include <float.h>
4413 main ()
4417 return 0;
4419 _ACEOF
4420 rm -f conftest.$ac_objext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422 (eval $ac_compile) 2>conftest.er1
4423 ac_status=$?
4424 grep -v '^ *+' conftest.er1 >conftest.err
4425 rm -f conftest.er1
4426 cat conftest.err >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try='test -z "$ac_c_werror_flag"
4430 || test ! -s conftest.err'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 (eval $ac_try) 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; } &&
4436 { ac_try='test -s conftest.$ac_objext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 (eval $ac_try) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 ac_cv_header_stdc=yes
4443 else
4444 echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4447 ac_cv_header_stdc=no
4449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4451 if test $ac_cv_header_stdc = yes; then
4452 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4453 cat >conftest.$ac_ext <<_ACEOF
4454 /* confdefs.h. */
4455 _ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h. */
4459 #include <string.h>
4461 _ACEOF
4462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4463 $EGREP "memchr" >/dev/null 2>&1; then
4465 else
4466 ac_cv_header_stdc=no
4468 rm -f conftest*
4472 if test $ac_cv_header_stdc = yes; then
4473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4474 cat >conftest.$ac_ext <<_ACEOF
4475 /* confdefs.h. */
4476 _ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4480 #include <stdlib.h>
4482 _ACEOF
4483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4484 $EGREP "free" >/dev/null 2>&1; then
4486 else
4487 ac_cv_header_stdc=no
4489 rm -f conftest*
4493 if test $ac_cv_header_stdc = yes; then
4494 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4495 if test "$cross_compiling" = yes; then
4497 else
4498 cat >conftest.$ac_ext <<_ACEOF
4499 /* confdefs.h. */
4500 _ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4504 #include <ctype.h>
4505 #if ((' ' & 0x0FF) == 0x020)
4506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4508 #else
4509 # define ISLOWER(c) \
4510 (('a' <= (c) && (c) <= 'i') \
4511 || ('j' <= (c) && (c) <= 'r') \
4512 || ('s' <= (c) && (c) <= 'z'))
4513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4514 #endif
4516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4518 main ()
4520 int i;
4521 for (i = 0; i < 256; i++)
4522 if (XOR (islower (i), ISLOWER (i))
4523 || toupper (i) != TOUPPER (i))
4524 exit(2);
4525 exit (0);
4527 _ACEOF
4528 rm -f conftest$ac_exeext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4530 (eval $ac_link) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535 (eval $ac_try) 2>&5
4536 ac_status=$?
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; }; then
4540 else
4541 echo "$as_me: program exited with status $ac_status" >&5
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4545 ( exit $ac_status )
4546 ac_cv_header_stdc=no
4548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4552 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4553 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4554 if test $ac_cv_header_stdc = yes; then
4556 cat >>confdefs.h <<\_ACEOF
4557 #define STDC_HEADERS 1
4558 _ACEOF
4562 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4572 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4573 inttypes.h stdint.h unistd.h
4575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4576 echo "$as_me:$LINENO: checking for $ac_header" >&5
4577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581 cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h. */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4587 $ac_includes_default
4589 #include <$ac_header>
4590 _ACEOF
4591 rm -f conftest.$ac_objext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>conftest.er1
4594 ac_status=$?
4595 grep -v '^ *+' conftest.er1 >conftest.err
4596 rm -f conftest.er1
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -z "$ac_c_werror_flag"
4601 || test ! -s conftest.err'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 eval "$as_ac_Header=yes"
4614 else
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4618 eval "$as_ac_Header=no"
4620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4625 cat >>confdefs.h <<_ACEOF
4626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4627 _ACEOF
4631 done
4635 for ac_header in sys/mman.h
4637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639 echo "$as_me:$LINENO: checking for $ac_header" >&5
4640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4646 else
4647 # Is the header compilable?
4648 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4650 cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h. */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 $ac_includes_default
4657 #include <$ac_header>
4658 _ACEOF
4659 rm -f conftest.$ac_objext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661 (eval $ac_compile) 2>conftest.er1
4662 ac_status=$?
4663 grep -v '^ *+' conftest.er1 >conftest.err
4664 rm -f conftest.er1
4665 cat conftest.err >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } &&
4668 { ac_try='test -z "$ac_c_werror_flag"
4669 || test ! -s conftest.err'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; } &&
4675 { ac_try='test -s conftest.$ac_objext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 ac_header_compiler=yes
4682 else
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4686 ac_header_compiler=no
4688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4690 echo "${ECHO_T}$ac_header_compiler" >&6
4692 # Is the header present?
4693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4695 cat >conftest.$ac_ext <<_ACEOF
4696 /* confdefs.h. */
4697 _ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4701 #include <$ac_header>
4702 _ACEOF
4703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4705 ac_status=$?
4706 grep -v '^ *+' conftest.er1 >conftest.err
4707 rm -f conftest.er1
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } >/dev/null; then
4711 if test -s conftest.err; then
4712 ac_cpp_err=$ac_c_preproc_warn_flag
4713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4714 else
4715 ac_cpp_err=
4717 else
4718 ac_cpp_err=yes
4720 if test -z "$ac_cpp_err"; then
4721 ac_header_preproc=yes
4722 else
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4726 ac_header_preproc=no
4728 rm -f conftest.err conftest.$ac_ext
4729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4730 echo "${ECHO_T}$ac_header_preproc" >&6
4732 # So? What about this header?
4733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4734 yes:no: )
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4739 ac_header_preproc=yes
4741 no:yes:* )
4742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4745 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4749 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4755 cat <<\_ASBOX
4756 ## ------------------------------------------- ##
4757 ## Report this to http://gcc.gnu.org/bugs.html ##
4758 ## ------------------------------------------- ##
4759 _ASBOX
4761 sed "s/^/$as_me: WARNING: /" >&2
4763 esac
4764 echo "$as_me:$LINENO: checking for $ac_header" >&5
4765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769 eval "$as_ac_Header=\$ac_header_preproc"
4771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4776 cat >>confdefs.h <<_ACEOF
4777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4778 _ACEOF
4782 done
4785 for ac_func in mmap
4787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4788 echo "$as_me:$LINENO: checking for $ac_func" >&5
4789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4790 if eval "test \"\${$as_ac_var+set}\" = set"; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793 cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h. */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4801 #define $ac_func innocuous_$ac_func
4803 /* System header to define __stub macros and hopefully few prototypes,
4804 which can conflict with char $ac_func (); below.
4805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4806 <limits.h> exists even on freestanding compilers. */
4808 #ifdef __STDC__
4809 # include <limits.h>
4810 #else
4811 # include <assert.h>
4812 #endif
4814 #undef $ac_func
4816 /* Override any gcc2 internal prototype to avoid an error. */
4817 #ifdef __cplusplus
4818 extern "C"
4820 #endif
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4823 char $ac_func ();
4824 /* The GNU C library defines this for functions which it implements
4825 to always fail with ENOSYS. Some functions are actually named
4826 something starting with __ and the normal name is an alias. */
4827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4828 choke me
4829 #else
4830 char (*f) () = $ac_func;
4831 #endif
4832 #ifdef __cplusplus
4834 #endif
4837 main ()
4839 return f != $ac_func;
4841 return 0;
4843 _ACEOF
4844 rm -f conftest.$ac_objext conftest$ac_exeext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4846 (eval $ac_link) 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try='test -s conftest$ac_exeext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 eval "$as_ac_var=yes"
4867 else
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4871 eval "$as_ac_var=no"
4873 rm -f conftest.err conftest.$ac_objext \
4874 conftest$ac_exeext conftest.$ac_ext
4876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4878 if test `eval echo '${'$as_ac_var'}'` = yes; then
4879 cat >>confdefs.h <<_ACEOF
4880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4881 _ACEOF
4884 done
4886 if test $ac_cv_header_sys_mman_h != yes \
4887 || test $ac_cv_func_mmap != yes; then
4888 ac_cv_func_mmap_file=no
4889 ac_cv_func_mmap_dev_zero=no
4890 ac_cv_func_mmap_anon=no
4891 else
4892 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
4893 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
4894 if test "${ac_cv_func_mmap_file+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897 # Add a system to this blacklist if
4898 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
4899 # memory area containing the same data that you'd get if you applied
4900 # read() to the same fd. The only system known to have a problem here
4901 # is VMS, where text files have record structure.
4902 case "$host_os" in
4903 vms* | ultrix*)
4904 ac_cv_func_mmap_file=no ;;
4906 ac_cv_func_mmap_file=yes;;
4907 esac
4909 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
4910 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
4911 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
4912 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
4913 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916 # Add a system to this blacklist if it has mmap() but /dev/zero
4917 # does not exist, or if mmapping /dev/zero does not give anonymous
4918 # zeroed pages with both the following properties:
4919 # 1. If you map N consecutive pages in with one call, and then
4920 # unmap any subset of those pages, the pages that were not
4921 # explicitly unmapped remain accessible.
4922 # 2. If you map two adjacent blocks of memory and then unmap them
4923 # both at once, they must both go away.
4924 # Systems known to be in this category are Windows (all variants),
4925 # VMS, and Darwin.
4926 case "$host_os" in
4927 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
4928 ac_cv_func_mmap_dev_zero=no ;;
4930 ac_cv_func_mmap_dev_zero=yes;;
4931 esac
4933 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
4934 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
4936 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
4937 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
4938 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
4939 if test "${ac_cv_decl_map_anon+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 #include <sys/types.h>
4949 #include <sys/mman.h>
4950 #include <unistd.h>
4952 #ifndef MAP_ANONYMOUS
4953 #define MAP_ANONYMOUS MAP_ANON
4954 #endif
4957 main ()
4959 int n = MAP_ANONYMOUS;
4961 return 0;
4963 _ACEOF
4964 rm -f conftest.$ac_objext
4965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4966 (eval $ac_compile) 2>conftest.er1
4967 ac_status=$?
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } &&
4973 { ac_try='test -z "$ac_c_werror_flag"
4974 || test ! -s conftest.err'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; } &&
4980 { ac_try='test -s conftest.$ac_objext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 (eval $ac_try) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 ac_cv_decl_map_anon=yes
4987 else
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4991 ac_cv_decl_map_anon=no
4993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4995 echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
4996 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
4998 if test $ac_cv_decl_map_anon = no; then
4999 ac_cv_func_mmap_anon=no
5000 else
5001 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
5002 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
5003 if test "${ac_cv_func_mmap_anon+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006 # Add a system to this blacklist if it has mmap() and MAP_ANON or
5007 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
5008 # doesn't give anonymous zeroed pages with the same properties listed
5009 # above for use of /dev/zero.
5010 # Systems known to be in this category are Windows, VMS, and SCO Unix.
5011 case "$host_os" in
5012 vms* | cygwin* | pe | mingw* | sco* | udk* )
5013 ac_cv_func_mmap_anon=no ;;
5015 ac_cv_func_mmap_anon=yes;;
5016 esac
5018 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
5019 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
5023 if test $ac_cv_func_mmap_file = yes; then
5025 cat >>confdefs.h <<\_ACEOF
5026 #define HAVE_MMAP_FILE 1
5027 _ACEOF
5030 if test $ac_cv_func_mmap_dev_zero = yes; then
5032 cat >>confdefs.h <<\_ACEOF
5033 #define HAVE_MMAP_DEV_ZERO 1
5034 _ACEOF
5037 if test $ac_cv_func_mmap_anon = yes; then
5039 cat >>confdefs.h <<\_ACEOF
5040 #define HAVE_MMAP_ANON 1
5041 _ACEOF
5048 if test -d $srcdir/testsuite; then
5049 TESTSUBDIR_TRUE=
5050 TESTSUBDIR_FALSE='#'
5051 else
5052 TESTSUBDIR_TRUE='#'
5053 TESTSUBDIR_FALSE=
5057 TARGETDIR="unknown"
5058 case "$host" in
5059 i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
5060 i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
5061 i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
5062 i*86-*-freebsd*) TARGET=X86; TARGETDIR=x86;;
5063 i*86-*-netbsdelf*) TARGET=X86; TARGETDIR=x86;;
5064 i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
5065 i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
5066 i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
5067 sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
5068 sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
5069 sparc-*-linux* | sparc-*-netbsdelf*) TARGET=SPARC; TARGETDIR=sparc;;
5070 sparc64-*-linux* | sparc64-*-netbsd*) TARGET=SPARC; TARGETDIR=sparc;;
5071 alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd* | alpha*-*-netbsd*) TARGET=ALPHA; TARGETDIR=alpha;;
5072 ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
5073 m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
5074 mips64*-*);;
5075 mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS_IRIX; TARGETDIR=mips;;
5076 mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;;
5077 powerpc*-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
5078 powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
5079 powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
5080 powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
5081 rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
5082 arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
5083 arm*-*-netbsdelf*) TARGET=ARM; TARGETDIR=arm;;
5084 s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
5085 s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;
5086 x86_64-*-linux* | x86_64-*-freebsd*) TARGET=X86_64; TARGETDIR=x86;;
5087 sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
5088 sh64-*-linux* | sh5*-*-linux*) TARGET=SH64; TARGETDIR=sh64;;
5089 hppa-*-linux* | parisc-*-linux*) TARGET=PA; TARGETDIR=pa;;
5090 esac
5094 if test $TARGETDIR = unknown; then
5095 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
5096 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
5097 { (exit 1); exit 1; }; }
5102 if test x$TARGET = xMIPS_IRIX; then
5103 MIPS_IRIX_TRUE=
5104 MIPS_IRIX_FALSE='#'
5105 else
5106 MIPS_IRIX_TRUE='#'
5107 MIPS_IRIX_FALSE=
5112 if test x$TARGET = xMIPS_LINUX; then
5113 MIPS_LINUX_TRUE=
5114 MIPS_LINUX_FALSE='#'
5115 else
5116 MIPS_LINUX_TRUE='#'
5117 MIPS_LINUX_FALSE=
5122 if test x$TARGET = xSPARC; then
5123 SPARC_TRUE=
5124 SPARC_FALSE='#'
5125 else
5126 SPARC_TRUE='#'
5127 SPARC_FALSE=
5132 if test x$TARGET = xX86; then
5133 X86_TRUE=
5134 X86_FALSE='#'
5135 else
5136 X86_TRUE='#'
5137 X86_FALSE=
5142 if test x$TARGET = xX86_WIN32; then
5143 X86_WIN32_TRUE=
5144 X86_WIN32_FALSE='#'
5145 else
5146 X86_WIN32_TRUE='#'
5147 X86_WIN32_FALSE=
5152 if test x$TARGET = xALPHA; then
5153 ALPHA_TRUE=
5154 ALPHA_FALSE='#'
5155 else
5156 ALPHA_TRUE='#'
5157 ALPHA_FALSE=
5162 if test x$TARGET = xIA64; then
5163 IA64_TRUE=
5164 IA64_FALSE='#'
5165 else
5166 IA64_TRUE='#'
5167 IA64_FALSE=
5172 if test x$TARGET = xM68K; then
5173 M68K_TRUE=
5174 M68K_FALSE='#'
5175 else
5176 M68K_TRUE='#'
5177 M68K_FALSE=
5182 if test x$TARGET = xPOWERPC; then
5183 POWERPC_TRUE=
5184 POWERPC_FALSE='#'
5185 else
5186 POWERPC_TRUE='#'
5187 POWERPC_FALSE=
5192 if test x$TARGET = xPOWERPC_AIX; then
5193 POWERPC_AIX_TRUE=
5194 POWERPC_AIX_FALSE='#'
5195 else
5196 POWERPC_AIX_TRUE='#'
5197 POWERPC_AIX_FALSE=
5202 if test x$TARGET = xPOWERPC_DARWIN; then
5203 POWERPC_DARWIN_TRUE=
5204 POWERPC_DARWIN_FALSE='#'
5205 else
5206 POWERPC_DARWIN_TRUE='#'
5207 POWERPC_DARWIN_FALSE=
5212 if test x$TARGET = xARM; then
5213 ARM_TRUE=
5214 ARM_FALSE='#'
5215 else
5216 ARM_TRUE='#'
5217 ARM_FALSE=
5222 if test x$TARGET = xS390; then
5223 S390_TRUE=
5224 S390_FALSE='#'
5225 else
5226 S390_TRUE='#'
5227 S390_FALSE=
5232 if test x$TARGET = xX86_64; then
5233 X86_64_TRUE=
5234 X86_64_FALSE='#'
5235 else
5236 X86_64_TRUE='#'
5237 X86_64_FALSE=
5242 if test x$TARGET = xSH; then
5243 SH_TRUE=
5244 SH_FALSE='#'
5245 else
5246 SH_TRUE='#'
5247 SH_FALSE=
5252 if test x$TARGET = xSH64; then
5253 SH64_TRUE=
5254 SH64_FALSE='#'
5255 else
5256 SH64_TRUE='#'
5257 SH64_FALSE=
5262 if test x$TARGET = xPA; then
5263 PA_TRUE=
5264 PA_FALSE='#'
5265 else
5266 PA_TRUE='#'
5267 PA_FALSE=
5271 case x$TARGET in
5272 xMIPS*) TARGET=MIPS ;;
5273 *) ;;
5274 esac
5276 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5277 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5278 if test "${ac_cv_header_stdc+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281 cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h. */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5287 #include <stdlib.h>
5288 #include <stdarg.h>
5289 #include <string.h>
5290 #include <float.h>
5293 main ()
5297 return 0;
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302 (eval $ac_compile) 2>conftest.er1
5303 ac_status=$?
5304 grep -v '^ *+' conftest.er1 >conftest.err
5305 rm -f conftest.er1
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } &&
5309 { ac_try='test -z "$ac_c_werror_flag"
5310 || test ! -s conftest.err'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 (eval $ac_try) 2>&5
5313 ac_status=$?
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; } &&
5316 { ac_try='test -s conftest.$ac_objext'
5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 (eval $ac_try) 2>&5
5319 ac_status=$?
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }; }; then
5322 ac_cv_header_stdc=yes
5323 else
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5327 ac_cv_header_stdc=no
5329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5331 if test $ac_cv_header_stdc = yes; then
5332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5333 cat >conftest.$ac_ext <<_ACEOF
5334 /* confdefs.h. */
5335 _ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5339 #include <string.h>
5341 _ACEOF
5342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5343 $EGREP "memchr" >/dev/null 2>&1; then
5345 else
5346 ac_cv_header_stdc=no
5348 rm -f conftest*
5352 if test $ac_cv_header_stdc = yes; then
5353 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5354 cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h. */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 #include <stdlib.h>
5362 _ACEOF
5363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5364 $EGREP "free" >/dev/null 2>&1; then
5366 else
5367 ac_cv_header_stdc=no
5369 rm -f conftest*
5373 if test $ac_cv_header_stdc = yes; then
5374 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5375 if test "$cross_compiling" = yes; then
5377 else
5378 cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h. */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 #include <ctype.h>
5385 #if ((' ' & 0x0FF) == 0x020)
5386 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5387 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5388 #else
5389 # define ISLOWER(c) \
5390 (('a' <= (c) && (c) <= 'i') \
5391 || ('j' <= (c) && (c) <= 'r') \
5392 || ('s' <= (c) && (c) <= 'z'))
5393 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5394 #endif
5396 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5398 main ()
5400 int i;
5401 for (i = 0; i < 256; i++)
5402 if (XOR (islower (i), ISLOWER (i))
5403 || toupper (i) != TOUPPER (i))
5404 exit(2);
5405 exit (0);
5407 _ACEOF
5408 rm -f conftest$ac_exeext
5409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5410 (eval $ac_link) 2>&5
5411 ac_status=$?
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 (eval $ac_try) 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; }; then
5420 else
5421 echo "$as_me: program exited with status $ac_status" >&5
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5425 ( exit $ac_status )
5426 ac_cv_header_stdc=no
5428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5432 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5433 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5434 if test $ac_cv_header_stdc = yes; then
5436 cat >>confdefs.h <<\_ACEOF
5437 #define STDC_HEADERS 1
5438 _ACEOF
5443 for ac_func in memcpy
5445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5446 echo "$as_me:$LINENO: checking for $ac_func" >&5
5447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5448 if eval "test \"\${$as_ac_var+set}\" = set"; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451 cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h. */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5459 #define $ac_func innocuous_$ac_func
5461 /* System header to define __stub macros and hopefully few prototypes,
5462 which can conflict with char $ac_func (); below.
5463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5464 <limits.h> exists even on freestanding compilers. */
5466 #ifdef __STDC__
5467 # include <limits.h>
5468 #else
5469 # include <assert.h>
5470 #endif
5472 #undef $ac_func
5474 /* Override any gcc2 internal prototype to avoid an error. */
5475 #ifdef __cplusplus
5476 extern "C"
5478 #endif
5479 /* We use char because int might match the return type of a gcc2
5480 builtin and then its argument prototype would still apply. */
5481 char $ac_func ();
5482 /* The GNU C library defines this for functions which it implements
5483 to always fail with ENOSYS. Some functions are actually named
5484 something starting with __ and the normal name is an alias. */
5485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5486 choke me
5487 #else
5488 char (*f) () = $ac_func;
5489 #endif
5490 #ifdef __cplusplus
5492 #endif
5495 main ()
5497 return f != $ac_func;
5499 return 0;
5501 _ACEOF
5502 rm -f conftest.$ac_objext conftest$ac_exeext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5504 (eval $ac_link) 2>conftest.er1
5505 ac_status=$?
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try='test -z "$ac_c_werror_flag"
5512 || test ! -s conftest.err'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 (eval $ac_try) 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; } &&
5518 { ac_try='test -s conftest$ac_exeext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 (eval $ac_try) 2>&5
5521 ac_status=$?
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5524 eval "$as_ac_var=yes"
5525 else
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5529 eval "$as_ac_var=no"
5531 rm -f conftest.err conftest.$ac_objext \
5532 conftest$ac_exeext conftest.$ac_ext
5534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5536 if test `eval echo '${'$as_ac_var'}'` = yes; then
5537 cat >>confdefs.h <<_ACEOF
5538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5539 _ACEOF
5542 done
5544 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5545 # for constant arguments. Useless!
5546 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5547 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5548 if test "${ac_cv_working_alloca_h+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551 cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h. */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5557 #include <alloca.h>
5559 main ()
5561 char *p = (char *) alloca (2 * sizeof (int));
5563 return 0;
5565 _ACEOF
5566 rm -f conftest.$ac_objext conftest$ac_exeext
5567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5568 (eval $ac_link) 2>conftest.er1
5569 ac_status=$?
5570 grep -v '^ *+' conftest.er1 >conftest.err
5571 rm -f conftest.er1
5572 cat conftest.err >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } &&
5575 { ac_try='test -z "$ac_c_werror_flag"
5576 || test ! -s conftest.err'
5577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578 (eval $ac_try) 2>&5
5579 ac_status=$?
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }; } &&
5582 { ac_try='test -s conftest$ac_exeext'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584 (eval $ac_try) 2>&5
5585 ac_status=$?
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; }; then
5588 ac_cv_working_alloca_h=yes
5589 else
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5593 ac_cv_working_alloca_h=no
5595 rm -f conftest.err conftest.$ac_objext \
5596 conftest$ac_exeext conftest.$ac_ext
5598 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5599 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5600 if test $ac_cv_working_alloca_h = yes; then
5602 cat >>confdefs.h <<\_ACEOF
5603 #define HAVE_ALLOCA_H 1
5604 _ACEOF
5608 echo "$as_me:$LINENO: checking for alloca" >&5
5609 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5610 if test "${ac_cv_func_alloca_works+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613 cat >conftest.$ac_ext <<_ACEOF
5614 /* confdefs.h. */
5615 _ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5619 #ifdef __GNUC__
5620 # define alloca __builtin_alloca
5621 #else
5622 # ifdef _MSC_VER
5623 # include <malloc.h>
5624 # define alloca _alloca
5625 # else
5626 # if HAVE_ALLOCA_H
5627 # include <alloca.h>
5628 # else
5629 # ifdef _AIX
5630 #pragma alloca
5631 # else
5632 # ifndef alloca /* predefined by HP cc +Olibcalls */
5633 char *alloca ();
5634 # endif
5635 # endif
5636 # endif
5637 # endif
5638 #endif
5641 main ()
5643 char *p = (char *) alloca (1);
5645 return 0;
5647 _ACEOF
5648 rm -f conftest.$ac_objext conftest$ac_exeext
5649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5650 (eval $ac_link) 2>conftest.er1
5651 ac_status=$?
5652 grep -v '^ *+' conftest.er1 >conftest.err
5653 rm -f conftest.er1
5654 cat conftest.err >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } &&
5657 { ac_try='test -z "$ac_c_werror_flag"
5658 || test ! -s conftest.err'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660 (eval $ac_try) 2>&5
5661 ac_status=$?
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; } &&
5664 { ac_try='test -s conftest$ac_exeext'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 (eval $ac_try) 2>&5
5667 ac_status=$?
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; }; then
5670 ac_cv_func_alloca_works=yes
5671 else
5672 echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5675 ac_cv_func_alloca_works=no
5677 rm -f conftest.err conftest.$ac_objext \
5678 conftest$ac_exeext conftest.$ac_ext
5680 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5681 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5683 if test $ac_cv_func_alloca_works = yes; then
5685 cat >>confdefs.h <<\_ACEOF
5686 #define HAVE_ALLOCA 1
5687 _ACEOF
5689 else
5690 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5691 # that cause trouble. Some versions do not even contain alloca or
5692 # contain a buggy version. If you still want to use their alloca,
5693 # use ar to extract alloca.o from them instead of compiling alloca.c.
5695 ALLOCA=alloca.$ac_objext
5697 cat >>confdefs.h <<\_ACEOF
5698 #define C_ALLOCA 1
5699 _ACEOF
5702 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5703 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5704 if test "${ac_cv_os_cray+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 #if defined(CRAY) && ! defined(CRAY2)
5714 webecray
5715 #else
5716 wenotbecray
5717 #endif
5719 _ACEOF
5720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5721 $EGREP "webecray" >/dev/null 2>&1; then
5722 ac_cv_os_cray=yes
5723 else
5724 ac_cv_os_cray=no
5726 rm -f conftest*
5729 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5730 echo "${ECHO_T}$ac_cv_os_cray" >&6
5731 if test $ac_cv_os_cray = yes; then
5732 for ac_func in _getb67 GETB67 getb67; do
5733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5734 echo "$as_me:$LINENO: checking for $ac_func" >&5
5735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5736 if eval "test \"\${$as_ac_var+set}\" = set"; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739 cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h. */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5747 #define $ac_func innocuous_$ac_func
5749 /* System header to define __stub macros and hopefully few prototypes,
5750 which can conflict with char $ac_func (); below.
5751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5752 <limits.h> exists even on freestanding compilers. */
5754 #ifdef __STDC__
5755 # include <limits.h>
5756 #else
5757 # include <assert.h>
5758 #endif
5760 #undef $ac_func
5762 /* Override any gcc2 internal prototype to avoid an error. */
5763 #ifdef __cplusplus
5764 extern "C"
5766 #endif
5767 /* We use char because int might match the return type of a gcc2
5768 builtin and then its argument prototype would still apply. */
5769 char $ac_func ();
5770 /* The GNU C library defines this for functions which it implements
5771 to always fail with ENOSYS. Some functions are actually named
5772 something starting with __ and the normal name is an alias. */
5773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5774 choke me
5775 #else
5776 char (*f) () = $ac_func;
5777 #endif
5778 #ifdef __cplusplus
5780 #endif
5783 main ()
5785 return f != $ac_func;
5787 return 0;
5789 _ACEOF
5790 rm -f conftest.$ac_objext conftest$ac_exeext
5791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5792 (eval $ac_link) 2>conftest.er1
5793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } &&
5799 { ac_try='test -z "$ac_c_werror_flag"
5800 || test ! -s conftest.err'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802 (eval $ac_try) 2>&5
5803 ac_status=$?
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; } &&
5806 { ac_try='test -s conftest$ac_exeext'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 (eval $ac_try) 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
5812 eval "$as_ac_var=yes"
5813 else
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5817 eval "$as_ac_var=no"
5819 rm -f conftest.err conftest.$ac_objext \
5820 conftest$ac_exeext conftest.$ac_ext
5822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5824 if test `eval echo '${'$as_ac_var'}'` = yes; then
5826 cat >>confdefs.h <<_ACEOF
5827 #define CRAY_STACKSEG_END $ac_func
5828 _ACEOF
5830 break
5833 done
5836 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5837 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5838 if test "${ac_cv_c_stack_direction+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841 if test "$cross_compiling" = yes; then
5842 ac_cv_c_stack_direction=0
5843 else
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5851 find_stack_direction ()
5853 static char *addr = 0;
5854 auto char dummy;
5855 if (addr == 0)
5857 addr = &dummy;
5858 return find_stack_direction ();
5860 else
5861 return (&dummy > addr) ? 1 : -1;
5865 main ()
5867 exit (find_stack_direction () < 0);
5869 _ACEOF
5870 rm -f conftest$ac_exeext
5871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5872 (eval $ac_link) 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 (eval $ac_try) 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 ac_cv_c_stack_direction=1
5882 else
5883 echo "$as_me: program exited with status $ac_status" >&5
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5887 ( exit $ac_status )
5888 ac_cv_c_stack_direction=-1
5890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5893 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5894 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5896 cat >>confdefs.h <<_ACEOF
5897 #define STACK_DIRECTION $ac_cv_c_stack_direction
5898 _ACEOF
5904 echo "$as_me:$LINENO: checking size of double" >&5
5905 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5906 if test "${ac_cv_sizeof_double+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 #include "confdefs.h"
5917 #include <sys/types.h>
5921 main ()
5923 switch (0) case 0: case (sizeof (double) == $ac_size):;
5925 return 0;
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_sizeof_double=$ac_size
5951 else
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5957 if test x$ac_cv_sizeof_double != x ; then break; fi
5958 done
5962 if test x$ac_cv_sizeof_double = x ; then
5963 { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
5964 echo "$as_me: error: cannot determine a size for double" >&2;}
5965 { (exit 1); exit 1; }; }
5967 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5968 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5970 cat >>confdefs.h <<_ACEOF
5971 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5972 _ACEOF
5975 echo "$as_me:$LINENO: checking size of long double" >&5
5976 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
5977 if test "${ac_cv_sizeof_long_double+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5981 cat >conftest.$ac_ext <<_ACEOF
5982 /* confdefs.h. */
5983 _ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5987 #include "confdefs.h"
5988 #include <sys/types.h>
5992 main ()
5994 switch (0) case 0: case (sizeof (long double) == $ac_size):;
5996 return 0;
5998 _ACEOF
5999 rm -f conftest.$ac_objext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001 (eval $ac_compile) 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } &&
6008 { ac_try='test -z "$ac_c_werror_flag"
6009 || test ! -s conftest.err'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 (eval $ac_try) 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; } &&
6015 { ac_try='test -s conftest.$ac_objext'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 (eval $ac_try) 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6021 ac_cv_sizeof_long_double=$ac_size
6022 else
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6028 if test x$ac_cv_sizeof_long_double != x ; then break; fi
6029 done
6033 if test x$ac_cv_sizeof_long_double = x ; then
6034 { { echo "$as_me:$LINENO: error: cannot determine a size for long double" >&5
6035 echo "$as_me: error: cannot determine a size for long double" >&2;}
6036 { (exit 1); exit 1; }; }
6038 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
6039 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
6041 cat >>confdefs.h <<_ACEOF
6042 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
6043 _ACEOF
6047 # Also AC_SUBST this variable for ffi.h.
6048 HAVE_LONG_DOUBLE=0
6049 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
6050 if test $ac_cv_sizeof_long_double != 0; then
6051 HAVE_LONG_DOUBLE=1
6053 cat >>confdefs.h <<\_ACEOF
6054 #define HAVE_LONG_DOUBLE 1
6055 _ACEOF
6061 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6062 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6063 if test "${ac_cv_c_bigendian+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066 ac_cv_c_bigendian=unknown
6067 # See if sys/param.h defines the BYTE_ORDER macro.
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h. */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 #include <sys/types.h>
6075 #include <sys/param.h>
6077 main ()
6080 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6081 bogus endian macros
6082 #endif
6084 return 0;
6086 _ACEOF
6087 rm -f conftest.$ac_objext
6088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6089 (eval $ac_compile) 2>conftest.er1
6090 ac_status=$?
6091 grep -v '^ *+' conftest.er1 >conftest.err
6092 rm -f conftest.er1
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } &&
6096 { ac_try='test -z "$ac_c_werror_flag"
6097 || test ! -s conftest.err'
6098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099 (eval $ac_try) 2>&5
6100 ac_status=$?
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; } &&
6103 { ac_try='test -s conftest.$ac_objext'
6104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105 (eval $ac_try) 2>&5
6106 ac_status=$?
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }; }; then
6109 # It does; now see whether it defined to BIG_ENDIAN or not.
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h. */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 #include <sys/types.h>
6117 #include <sys/param.h>
6119 main ()
6122 #if BYTE_ORDER != BIG_ENDIAN
6123 not big endian
6124 #endif
6126 return 0;
6128 _ACEOF
6129 rm -f conftest.$ac_objext
6130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6131 (eval $ac_compile) 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -z "$ac_c_werror_flag"
6139 || test ! -s conftest.err'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try='test -s conftest.$ac_objext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 ac_cv_c_bigendian=yes
6152 else
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6156 ac_cv_c_bigendian=no
6158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6159 else
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6165 if test $ac_cv_c_bigendian = unknown; then
6166 if test "$cross_compiling" = yes; then
6167 echo $ac_n "cross-compiling... " 2>&6
6168 else
6169 cat >conftest.$ac_ext <<_ACEOF
6170 /* confdefs.h. */
6171 _ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6175 main () {
6176 /* Are we little or big endian? From Harbison&Steele. */
6177 union
6179 long l;
6180 char c[sizeof (long)];
6181 } u;
6182 u.l = 1;
6183 exit (u.c[sizeof (long) - 1] == 1);
6185 _ACEOF
6186 rm -f conftest$ac_exeext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6188 (eval $ac_link) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 (eval $ac_try) 2>&5
6194 ac_status=$?
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; }; then
6197 ac_cv_c_bigendian=no
6198 else
6199 echo "$as_me: program exited with status $ac_status" >&5
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6203 ( exit $ac_status )
6204 ac_cv_c_bigendian=yes
6206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6210 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6211 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6212 if test $ac_cv_c_bigendian = unknown; then
6213 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6214 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6216 cat >conftest.c <<EOF
6217 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6218 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6219 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6220 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6221 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6222 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6223 int main() { _ascii (); _ebcdic (); return 0; }
6225 if test -f conftest.c ; then
6226 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6227 if test `grep -l BIGenDianSyS conftest.o` ; then
6228 echo $ac_n ' big endian probe OK, ' 1>&6
6229 ac_cv_c_bigendian=yes
6231 if test `grep -l LiTTleEnDian conftest.o` ; then
6232 echo $ac_n ' little endian probe OK, ' 1>&6
6233 if test $ac_cv_c_bigendian = yes ; then
6234 ac_cv_c_bigendian=unknown;
6235 else
6236 ac_cv_c_bigendian=no
6239 echo $ac_n 'guessing bigendian ... ' >&6
6242 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6243 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6245 if test $ac_cv_c_bigendian = yes; then
6247 cat >>confdefs.h <<\_ACEOF
6248 #define WORDS_BIGENDIAN 1
6249 _ACEOF
6252 cat >>confdefs.h <<\_ACEOF
6253 #define HOST_WORDS_BIG_ENDIAN 1
6254 _ACEOF
6256 BYTEORDER=4321
6257 else
6258 BYTEORDER=1234
6261 cat >>confdefs.h <<_ACEOF
6262 #define BYTEORDER $BYTEORDER
6263 _ACEOF
6265 if test $ac_cv_c_bigendian = unknown; then
6266 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6267 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6268 { (exit 1); exit 1; }; }
6272 if test x$TARGET = xSPARC; then
6273 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
6274 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
6275 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6279 save_CFLAGS="$CFLAGS"
6280 save_LDFLAGS="$LDFLAGS"
6281 CFLAGS="$CFLAGS -fpic"
6282 LDFLAGS="$LDFLAGS -shared"
6283 cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h. */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6289 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
6291 main ()
6295 return 0;
6297 _ACEOF
6298 rm -f conftest.$ac_objext conftest$ac_exeext
6299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6300 (eval $ac_link) 2>conftest.er1
6301 ac_status=$?
6302 grep -v '^ *+' conftest.er1 >conftest.err
6303 rm -f conftest.er1
6304 cat conftest.err >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } &&
6307 { ac_try='test -z "$ac_c_werror_flag"
6308 || test ! -s conftest.err'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 (eval $ac_try) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; } &&
6314 { ac_try='test -s conftest$ac_exeext'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 (eval $ac_try) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6320 libffi_cv_as_sparc_ua_pcrel=yes
6321 else
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6325 libffi_cv_as_sparc_ua_pcrel=no
6327 rm -f conftest.err conftest.$ac_objext \
6328 conftest$ac_exeext conftest.$ac_ext
6329 CFLAGS="$save_CFLAGS"
6330 LDFLAGS="$save_LDFLAGS"
6332 echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
6333 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
6334 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
6336 cat >>confdefs.h <<\_ACEOF
6337 #define HAVE_AS_SPARC_UA_PCREL 1
6338 _ACEOF
6342 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
6343 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
6344 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6348 libffi_cv_as_register_pseudo_op=unknown
6349 # Check if we have .register
6350 cat >conftest.$ac_ext <<_ACEOF
6351 /* confdefs.h. */
6352 _ACEOF
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h. */
6356 asm (".register %g2, #scratch");
6358 main ()
6362 return 0;
6364 _ACEOF
6365 rm -f conftest.$ac_objext
6366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6367 (eval $ac_compile) 2>conftest.er1
6368 ac_status=$?
6369 grep -v '^ *+' conftest.er1 >conftest.err
6370 rm -f conftest.er1
6371 cat conftest.err >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } &&
6374 { ac_try='test -z "$ac_c_werror_flag"
6375 || test ! -s conftest.err'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; } &&
6381 { ac_try='test -s conftest.$ac_objext'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 (eval $ac_try) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; }; then
6387 libffi_cv_as_register_pseudo_op=yes
6388 else
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6392 libffi_cv_as_register_pseudo_op=no
6394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6397 echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
6398 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
6399 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
6401 cat >>confdefs.h <<\_ACEOF
6402 #define HAVE_AS_REGISTER_PSEUDO_OP 1
6403 _ACEOF
6408 echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
6409 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
6410 if test "${libffi_cv_ro_eh_frame+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6414 libffi_cv_ro_eh_frame=no
6415 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
6416 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
6417 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
6418 libffi_cv_ro_eh_frame=yes
6419 elif grep '.section.*eh_frame.*#alloc' conftest.c \
6420 | grep -v '#write' > /dev/null; then
6421 libffi_cv_ro_eh_frame=yes
6424 rm -f conftest.*
6427 echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
6428 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
6429 if test "x$libffi_cv_ro_eh_frame" = xyes; then
6431 cat >>confdefs.h <<\_ACEOF
6432 #define HAVE_RO_EH_FRAME 1
6433 _ACEOF
6436 cat >>confdefs.h <<\_ACEOF
6437 #define EH_FRAME_FLAGS "a"
6438 _ACEOF
6440 else
6442 cat >>confdefs.h <<\_ACEOF
6443 #define EH_FRAME_FLAGS "aw"
6444 _ACEOF
6453 # Check whether --enable-debug or --disable-debug was given.
6454 if test "${enable_debug+set}" = set; then
6455 enableval="$enable_debug"
6456 if test "$enable_debug" = "yes"; then
6458 cat >>confdefs.h <<\_ACEOF
6459 #define FFI_DEBUG 1
6460 _ACEOF
6465 # Check whether --enable-structs or --disable-structs was given.
6466 if test "${enable_structs+set}" = set; then
6467 enableval="$enable_structs"
6468 if test "$enable_structs" = "no"; then
6470 cat >>confdefs.h <<\_ACEOF
6471 #define FFI_NO_STRUCTS 1
6472 _ACEOF
6477 # Check whether --enable-raw-api or --disable-raw-api was given.
6478 if test "${enable_raw_api+set}" = set; then
6479 enableval="$enable_raw_api"
6480 if test "$enable_raw_api" = "no"; then
6482 cat >>confdefs.h <<\_ACEOF
6483 #define FFI_NO_RAW_API 1
6484 _ACEOF
6489 # Check whether --enable-purify-safety or --disable-purify-safety was given.
6490 if test "${enable_purify_safety+set}" = set; then
6491 enableval="$enable_purify_safety"
6492 if test "$enable_purify_safety" = "yes"; then
6494 cat >>confdefs.h <<\_ACEOF
6495 #define USING_PURIFY 1
6496 _ACEOF
6501 if test -n "$with_cross_host" &&
6502 test x"$with_cross_host" != x"no"; then
6503 toolexecdir='$(exec_prefix)/$(target_alias)'
6504 toolexeclibdir='$(toolexecdir)/lib'
6505 else
6506 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
6507 toolexeclibdir='$(libdir)'
6509 multi_os_directory=`$CC -print-multi-os-directory`
6510 case $multi_os_directory in
6511 .) ;; # Avoid trailing /.
6512 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
6513 esac
6517 #Figure out where generated headers like ffitarget.h get installed.
6518 gcc_version_trigger=${srcdir}/../gcc/version.c
6519 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
6520 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
6521 tool_include_dir='$(libdir)/gcc/$(target_alias)/'${gcc_version}/include
6526 if test "${multilib}" = "yes"; then
6527 multilib_arg="--enable-multilib"
6528 else
6529 multilib_arg=
6532 ac_config_commands="$ac_config_commands include"
6534 ac_config_commands="$ac_config_commands src"
6537 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
6540 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
6543 cat >confcache <<\_ACEOF
6544 # This file is a shell script that caches the results of configure
6545 # tests run on this system so they can be shared between configure
6546 # scripts and configure runs, see configure's option --config-cache.
6547 # It is not useful on other systems. If it contains results you don't
6548 # want to keep, you may remove or edit it.
6550 # config.status only pays attention to the cache file if you give it
6551 # the --recheck option to rerun configure.
6553 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6554 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6555 # following values.
6557 _ACEOF
6559 # The following way of writing the cache mishandles newlines in values,
6560 # but we know of no workaround that is simple, portable, and efficient.
6561 # So, don't put newlines in cache variables' values.
6562 # Ultrix sh set writes to stderr and can't be redirected directly,
6563 # and sets the high bit in the cache file unless we assign to the vars.
6565 (set) 2>&1 |
6566 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6567 *ac_space=\ *)
6568 # `set' does not quote correctly, so add quotes (double-quote
6569 # substitution turns \\\\ into \\, and sed turns \\ into \).
6570 sed -n \
6571 "s/'/'\\\\''/g;
6572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6575 # `set' quotes correctly as required by POSIX, so do not add quotes.
6576 sed -n \
6577 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6579 esac;
6581 sed '
6582 t clear
6583 : clear
6584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6585 t end
6586 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6587 : end' >>confcache
6588 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6589 if test -w $cache_file; then
6590 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6591 cat confcache >$cache_file
6592 else
6593 echo "not updating unwritable cache $cache_file"
6596 rm -f confcache
6598 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6599 # Let make expand exec_prefix.
6600 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6602 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6603 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6604 # trailing colons and then remove the whole line if VPATH becomes empty
6605 # (actually we leave an empty line to preserve line numbers).
6606 if test "x$srcdir" = x.; then
6607 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6608 s/:*\$(srcdir):*/:/;
6609 s/:*\${srcdir}:*/:/;
6610 s/:*@srcdir@:*/:/;
6611 s/^\([^=]*=[ ]*\):*/\1/;
6612 s/:*$//;
6613 s/^[^=]*=[ ]*$//;
6617 DEFS=-DHAVE_CONFIG_H
6619 ac_libobjs=
6620 ac_ltlibobjs=
6621 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6622 # 1. Remove the extension, and $U if already installed.
6623 ac_i=`echo "$ac_i" |
6624 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6625 # 2. Add them.
6626 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6627 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6628 done
6629 LIBOBJS=$ac_libobjs
6631 LTLIBOBJS=$ac_ltlibobjs
6634 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6635 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6636 Usually this means the macro was only invoked conditionally." >&5
6637 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6638 Usually this means the macro was only invoked conditionally." >&2;}
6639 { (exit 1); exit 1; }; }
6641 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6642 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6643 Usually this means the macro was only invoked conditionally." >&5
6644 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6645 Usually this means the macro was only invoked conditionally." >&2;}
6646 { (exit 1); exit 1; }; }
6648 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6649 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6650 Usually this means the macro was only invoked conditionally." >&5
6651 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6652 Usually this means the macro was only invoked conditionally." >&2;}
6653 { (exit 1); exit 1; }; }
6655 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
6656 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
6657 Usually this means the macro was only invoked conditionally." >&5
6658 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
6659 Usually this means the macro was only invoked conditionally." >&2;}
6660 { (exit 1); exit 1; }; }
6662 if test -z "${MIPS_IRIX_TRUE}" && test -z "${MIPS_IRIX_FALSE}"; then
6663 { { echo "$as_me:$LINENO: error: conditional \"MIPS_IRIX\" was never defined.
6664 Usually this means the macro was only invoked conditionally." >&5
6665 echo "$as_me: error: conditional \"MIPS_IRIX\" was never defined.
6666 Usually this means the macro was only invoked conditionally." >&2;}
6667 { (exit 1); exit 1; }; }
6669 if test -z "${MIPS_LINUX_TRUE}" && test -z "${MIPS_LINUX_FALSE}"; then
6670 { { echo "$as_me:$LINENO: error: conditional \"MIPS_LINUX\" was never defined.
6671 Usually this means the macro was only invoked conditionally." >&5
6672 echo "$as_me: error: conditional \"MIPS_LINUX\" was never defined.
6673 Usually this means the macro was only invoked conditionally." >&2;}
6674 { (exit 1); exit 1; }; }
6676 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
6677 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
6678 Usually this means the macro was only invoked conditionally." >&5
6679 echo "$as_me: error: conditional \"SPARC\" was never defined.
6680 Usually this means the macro was only invoked conditionally." >&2;}
6681 { (exit 1); exit 1; }; }
6683 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
6684 { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
6685 Usually this means the macro was only invoked conditionally." >&5
6686 echo "$as_me: error: conditional \"X86\" was never defined.
6687 Usually this means the macro was only invoked conditionally." >&2;}
6688 { (exit 1); exit 1; }; }
6690 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
6691 { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
6692 Usually this means the macro was only invoked conditionally." >&5
6693 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
6694 Usually this means the macro was only invoked conditionally." >&2;}
6695 { (exit 1); exit 1; }; }
6697 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
6698 { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
6699 Usually this means the macro was only invoked conditionally." >&5
6700 echo "$as_me: error: conditional \"ALPHA\" was never defined.
6701 Usually this means the macro was only invoked conditionally." >&2;}
6702 { (exit 1); exit 1; }; }
6704 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
6705 { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
6706 Usually this means the macro was only invoked conditionally." >&5
6707 echo "$as_me: error: conditional \"IA64\" was never defined.
6708 Usually this means the macro was only invoked conditionally." >&2;}
6709 { (exit 1); exit 1; }; }
6711 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
6712 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
6713 Usually this means the macro was only invoked conditionally." >&5
6714 echo "$as_me: error: conditional \"M68K\" was never defined.
6715 Usually this means the macro was only invoked conditionally." >&2;}
6716 { (exit 1); exit 1; }; }
6718 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
6719 { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
6720 Usually this means the macro was only invoked conditionally." >&5
6721 echo "$as_me: error: conditional \"POWERPC\" was never defined.
6722 Usually this means the macro was only invoked conditionally." >&2;}
6723 { (exit 1); exit 1; }; }
6725 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
6726 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
6727 Usually this means the macro was only invoked conditionally." >&5
6728 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
6729 Usually this means the macro was only invoked conditionally." >&2;}
6730 { (exit 1); exit 1; }; }
6732 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
6733 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
6734 Usually this means the macro was only invoked conditionally." >&5
6735 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
6736 Usually this means the macro was only invoked conditionally." >&2;}
6737 { (exit 1); exit 1; }; }
6739 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
6740 { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
6741 Usually this means the macro was only invoked conditionally." >&5
6742 echo "$as_me: error: conditional \"ARM\" was never defined.
6743 Usually this means the macro was only invoked conditionally." >&2;}
6744 { (exit 1); exit 1; }; }
6746 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
6747 { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
6748 Usually this means the macro was only invoked conditionally." >&5
6749 echo "$as_me: error: conditional \"S390\" was never defined.
6750 Usually this means the macro was only invoked conditionally." >&2;}
6751 { (exit 1); exit 1; }; }
6753 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
6754 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
6755 Usually this means the macro was only invoked conditionally." >&5
6756 echo "$as_me: error: conditional \"X86_64\" was never defined.
6757 Usually this means the macro was only invoked conditionally." >&2;}
6758 { (exit 1); exit 1; }; }
6760 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
6761 { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
6762 Usually this means the macro was only invoked conditionally." >&5
6763 echo "$as_me: error: conditional \"SH\" was never defined.
6764 Usually this means the macro was only invoked conditionally." >&2;}
6765 { (exit 1); exit 1; }; }
6767 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
6768 { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
6769 Usually this means the macro was only invoked conditionally." >&5
6770 echo "$as_me: error: conditional \"SH64\" was never defined.
6771 Usually this means the macro was only invoked conditionally." >&2;}
6772 { (exit 1); exit 1; }; }
6774 if test -z "${PA_TRUE}" && test -z "${PA_FALSE}"; then
6775 { { echo "$as_me:$LINENO: error: conditional \"PA\" was never defined.
6776 Usually this means the macro was only invoked conditionally." >&5
6777 echo "$as_me: error: conditional \"PA\" was never defined.
6778 Usually this means the macro was only invoked conditionally." >&2;}
6779 { (exit 1); exit 1; }; }
6782 : ${CONFIG_STATUS=./config.status}
6783 ac_clean_files_save=$ac_clean_files
6784 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6785 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6786 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6787 cat >$CONFIG_STATUS <<_ACEOF
6788 #! $SHELL
6789 # Generated by $as_me.
6790 # Run this file to recreate the current configuration.
6791 # Compiler output produced by configure, useful for debugging
6792 # configure, is in config.log if it exists.
6794 debug=false
6795 ac_cs_recheck=false
6796 ac_cs_silent=false
6797 SHELL=\${CONFIG_SHELL-$SHELL}
6798 _ACEOF
6800 cat >>$CONFIG_STATUS <<\_ACEOF
6801 ## --------------------- ##
6802 ## M4sh Initialization. ##
6803 ## --------------------- ##
6805 # Be Bourne compatible
6806 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6807 emulate sh
6808 NULLCMD=:
6809 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6810 # is contrary to our usage. Disable this feature.
6811 alias -g '${1+"$@"}'='"$@"'
6812 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6813 set -o posix
6815 DUALCASE=1; export DUALCASE # for MKS sh
6817 # Support unset when possible.
6818 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6819 as_unset=unset
6820 else
6821 as_unset=false
6825 # Work around bugs in pre-3.0 UWIN ksh.
6826 $as_unset ENV MAIL MAILPATH
6827 PS1='$ '
6828 PS2='> '
6829 PS4='+ '
6831 # NLS nuisances.
6832 for as_var in \
6833 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6834 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6835 LC_TELEPHONE LC_TIME
6837 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6838 eval $as_var=C; export $as_var
6839 else
6840 $as_unset $as_var
6842 done
6844 # Required to use basename.
6845 if expr a : '\(a\)' >/dev/null 2>&1; then
6846 as_expr=expr
6847 else
6848 as_expr=false
6851 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6852 as_basename=basename
6853 else
6854 as_basename=false
6858 # Name of the executable.
6859 as_me=`$as_basename "$0" ||
6860 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6861 X"$0" : 'X\(//\)$' \| \
6862 X"$0" : 'X\(/\)$' \| \
6863 . : '\(.\)' 2>/dev/null ||
6864 echo X/"$0" |
6865 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6866 /^X\/\(\/\/\)$/{ s//\1/; q; }
6867 /^X\/\(\/\).*/{ s//\1/; q; }
6868 s/.*/./; q'`
6871 # PATH needs CR, and LINENO needs CR and PATH.
6872 # Avoid depending upon Character Ranges.
6873 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6874 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6875 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6876 as_cr_digits='0123456789'
6877 as_cr_alnum=$as_cr_Letters$as_cr_digits
6879 # The user is always right.
6880 if test "${PATH_SEPARATOR+set}" != set; then
6881 echo "#! /bin/sh" >conf$$.sh
6882 echo "exit 0" >>conf$$.sh
6883 chmod +x conf$$.sh
6884 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6885 PATH_SEPARATOR=';'
6886 else
6887 PATH_SEPARATOR=:
6889 rm -f conf$$.sh
6893 as_lineno_1=$LINENO
6894 as_lineno_2=$LINENO
6895 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6896 test "x$as_lineno_1" != "x$as_lineno_2" &&
6897 test "x$as_lineno_3" = "x$as_lineno_2" || {
6898 # Find who we are. Look in the path if we contain no path at all
6899 # relative or not.
6900 case $0 in
6901 *[\\/]* ) as_myself=$0 ;;
6902 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6908 done
6911 esac
6912 # We did not find ourselves, most probably we were run as `sh COMMAND'
6913 # in which case we are not to be found in the path.
6914 if test "x$as_myself" = x; then
6915 as_myself=$0
6917 if test ! -f "$as_myself"; then
6918 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6919 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6920 { (exit 1); exit 1; }; }
6922 case $CONFIG_SHELL in
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for as_base in sh bash ksh sh5; do
6930 case $as_dir in
6932 if ("$as_dir/$as_base" -c '
6933 as_lineno_1=$LINENO
6934 as_lineno_2=$LINENO
6935 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6936 test "x$as_lineno_1" != "x$as_lineno_2" &&
6937 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6938 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6939 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6940 CONFIG_SHELL=$as_dir/$as_base
6941 export CONFIG_SHELL
6942 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6943 fi;;
6944 esac
6945 done
6946 done
6948 esac
6950 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6951 # uniformly replaced by the line number. The first 'sed' inserts a
6952 # line-number line before each line; the second 'sed' does the real
6953 # work. The second script uses 'N' to pair each line-number line
6954 # with the numbered line, and appends trailing '-' during
6955 # substitution so that $LINENO is not a special case at line end.
6956 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6957 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6958 sed '=' <$as_myself |
6959 sed '
6961 s,$,-,
6962 : loop
6963 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6964 t loop
6965 s,-$,,
6966 s,^['$as_cr_digits']*\n,,
6967 ' >$as_me.lineno &&
6968 chmod +x $as_me.lineno ||
6969 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6970 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6971 { (exit 1); exit 1; }; }
6973 # Don't try to exec as it changes $[0], causing all sort of problems
6974 # (the dirname of $[0] is not the place where we might find the
6975 # original and so on. Autoconf is especially sensible to this).
6976 . ./$as_me.lineno
6977 # Exit status is that of the last command.
6978 exit
6982 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6983 *c*,-n*) ECHO_N= ECHO_C='
6984 ' ECHO_T=' ' ;;
6985 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6986 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6987 esac
6989 if expr a : '\(a\)' >/dev/null 2>&1; then
6990 as_expr=expr
6991 else
6992 as_expr=false
6995 rm -f conf$$ conf$$.exe conf$$.file
6996 echo >conf$$.file
6997 if ln -s conf$$.file conf$$ 2>/dev/null; then
6998 # We could just check for DJGPP; but this test a) works b) is more generic
6999 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7000 if test -f conf$$.exe; then
7001 # Don't use ln at all; we don't have any links
7002 as_ln_s='cp -p'
7003 else
7004 as_ln_s='ln -s'
7006 elif ln conf$$.file conf$$ 2>/dev/null; then
7007 as_ln_s=ln
7008 else
7009 as_ln_s='cp -p'
7011 rm -f conf$$ conf$$.exe conf$$.file
7013 if mkdir -p . 2>/dev/null; then
7014 as_mkdir_p=:
7015 else
7016 test -d ./-p && rmdir ./-p
7017 as_mkdir_p=false
7020 as_executable_p="test -f"
7022 # Sed expression to map a string onto a valid CPP name.
7023 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7025 # Sed expression to map a string onto a valid variable name.
7026 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7029 # IFS
7030 # We need space, tab and new line, in precisely that order.
7031 as_nl='
7033 IFS=" $as_nl"
7035 # CDPATH.
7036 $as_unset CDPATH
7038 exec 6>&1
7040 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7041 # report actual input values of CONFIG_FILES etc. instead of their
7042 # values after options handling. Logging --version etc. is OK.
7043 exec 5>>config.log
7045 echo
7046 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7047 ## Running $as_me. ##
7048 _ASBOX
7049 } >&5
7050 cat >&5 <<_CSEOF
7052 This file was extended by libffi $as_me 2.1, which was
7053 generated by GNU Autoconf 2.59. Invocation command line was
7055 CONFIG_FILES = $CONFIG_FILES
7056 CONFIG_HEADERS = $CONFIG_HEADERS
7057 CONFIG_LINKS = $CONFIG_LINKS
7058 CONFIG_COMMANDS = $CONFIG_COMMANDS
7059 $ $0 $@
7061 _CSEOF
7062 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7063 echo >&5
7064 _ACEOF
7066 # Files that config.status was made for.
7067 if test -n "$ac_config_files"; then
7068 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7071 if test -n "$ac_config_headers"; then
7072 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7075 if test -n "$ac_config_links"; then
7076 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7079 if test -n "$ac_config_commands"; then
7080 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7083 cat >>$CONFIG_STATUS <<\_ACEOF
7085 ac_cs_usage="\
7086 \`$as_me' instantiates files from templates according to the
7087 current configuration.
7089 Usage: $0 [OPTIONS] [FILE]...
7091 -h, --help print this help, then exit
7092 -V, --version print version number, then exit
7093 -q, --quiet do not print progress messages
7094 -d, --debug don't remove temporary files
7095 --recheck update $as_me by reconfiguring in the same conditions
7096 --file=FILE[:TEMPLATE]
7097 instantiate the configuration file FILE
7098 --header=FILE[:TEMPLATE]
7099 instantiate the configuration header FILE
7101 Configuration files:
7102 $config_files
7104 Configuration headers:
7105 $config_headers
7107 Configuration links:
7108 $config_links
7110 Configuration commands:
7111 $config_commands
7113 Report bugs to <bug-autoconf@gnu.org>."
7114 _ACEOF
7116 cat >>$CONFIG_STATUS <<_ACEOF
7117 ac_cs_version="\\
7118 libffi config.status 2.1
7119 configured by $0, generated by GNU Autoconf 2.59,
7120 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7122 Copyright (C) 2003 Free Software Foundation, Inc.
7123 This config.status script is free software; the Free Software Foundation
7124 gives unlimited permission to copy, distribute and modify it."
7125 srcdir=$srcdir
7126 INSTALL="$INSTALL"
7127 _ACEOF
7129 cat >>$CONFIG_STATUS <<\_ACEOF
7130 # If no file are specified by the user, then we need to provide default
7131 # value. By we need to know if files were specified by the user.
7132 ac_need_defaults=:
7133 while test $# != 0
7135 case $1 in
7136 --*=*)
7137 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7138 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7139 ac_shift=:
7142 ac_option=$1
7143 ac_optarg=$2
7144 ac_shift=shift
7146 *) # This is not an option, so the user has probably given explicit
7147 # arguments.
7148 ac_option=$1
7149 ac_need_defaults=false;;
7150 esac
7152 case $ac_option in
7153 # Handling of the options.
7154 _ACEOF
7155 cat >>$CONFIG_STATUS <<\_ACEOF
7156 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7157 ac_cs_recheck=: ;;
7158 --version | --vers* | -V )
7159 echo "$ac_cs_version"; exit 0 ;;
7160 --he | --h)
7161 # Conflict between --help and --header
7162 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7163 Try \`$0 --help' for more information." >&5
7164 echo "$as_me: error: ambiguous option: $1
7165 Try \`$0 --help' for more information." >&2;}
7166 { (exit 1); exit 1; }; };;
7167 --help | --hel | -h )
7168 echo "$ac_cs_usage"; exit 0 ;;
7169 --debug | --d* | -d )
7170 debug=: ;;
7171 --file | --fil | --fi | --f )
7172 $ac_shift
7173 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7174 ac_need_defaults=false;;
7175 --header | --heade | --head | --hea )
7176 $ac_shift
7177 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7178 ac_need_defaults=false;;
7179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7180 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7181 ac_cs_silent=: ;;
7183 # This is an error.
7184 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7185 Try \`$0 --help' for more information." >&5
7186 echo "$as_me: error: unrecognized option: $1
7187 Try \`$0 --help' for more information." >&2;}
7188 { (exit 1); exit 1; }; } ;;
7190 *) ac_config_targets="$ac_config_targets $1" ;;
7192 esac
7193 shift
7194 done
7196 ac_configure_extra_args=
7198 if $ac_cs_silent; then
7199 exec 6>/dev/null
7200 ac_configure_extra_args="$ac_configure_extra_args --silent"
7203 _ACEOF
7204 cat >>$CONFIG_STATUS <<_ACEOF
7205 if \$ac_cs_recheck; then
7206 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7207 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7210 _ACEOF
7212 cat >>$CONFIG_STATUS <<_ACEOF
7214 # INIT-COMMANDS section.
7218 srcdir="$srcdir"
7219 host="$host"
7220 target="$target"
7221 with_multisubdir="$with_multisubdir"
7222 with_multisrctop="$with_multisrctop"
7223 with_target_subdir="$with_target_subdir"
7224 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7225 multi_basedir="$multi_basedir"
7226 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7227 CC="$CC"
7228 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7229 TARGETDIR="$TARGETDIR"
7231 _ACEOF
7235 cat >>$CONFIG_STATUS <<\_ACEOF
7236 for ac_config_target in $ac_config_targets
7238 case "$ac_config_target" in
7239 # Handling of arguments.
7240 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
7241 "include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
7242 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7243 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
7244 "include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
7245 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7246 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7247 "include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
7248 "src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
7249 "fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
7250 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7251 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7252 { (exit 1); exit 1; }; };;
7253 esac
7254 done
7256 # If the user did not use the arguments to specify the items to instantiate,
7257 # then the envvar interface is used. Set only those that are not.
7258 # We use the long form for the default assignment because of an extremely
7259 # bizarre bug on SunOS 4.1.3.
7260 if $ac_need_defaults; then
7261 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7262 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7263 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
7264 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7267 # Have a temporary directory for convenience. Make it in the build tree
7268 # simply because there is no reason to put it here, and in addition,
7269 # creating and moving files from /tmp can sometimes cause problems.
7270 # Create a temporary directory, and hook for its removal unless debugging.
7271 $debug ||
7273 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7274 trap '{ (exit 1); exit 1; }' 1 2 13 15
7277 # Create a (secure) tmp directory for tmp files.
7280 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7281 test -n "$tmp" && test -d "$tmp"
7282 } ||
7284 tmp=./confstat$$-$RANDOM
7285 (umask 077 && mkdir $tmp)
7286 } ||
7288 echo "$me: cannot create a temporary directory in ." >&2
7289 { (exit 1); exit 1; }
7292 _ACEOF
7294 cat >>$CONFIG_STATUS <<_ACEOF
7297 # CONFIG_FILES section.
7300 # No need to generate the scripts if there are no CONFIG_FILES.
7301 # This happens for instance when ./config.status config.h
7302 if test -n "\$CONFIG_FILES"; then
7303 # Protect against being on the right side of a sed subst in config.status.
7304 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7305 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7306 s,@SHELL@,$SHELL,;t t
7307 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7308 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7309 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7310 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7311 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7312 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7313 s,@exec_prefix@,$exec_prefix,;t t
7314 s,@prefix@,$prefix,;t t
7315 s,@program_transform_name@,$program_transform_name,;t t
7316 s,@bindir@,$bindir,;t t
7317 s,@sbindir@,$sbindir,;t t
7318 s,@libexecdir@,$libexecdir,;t t
7319 s,@datadir@,$datadir,;t t
7320 s,@sysconfdir@,$sysconfdir,;t t
7321 s,@sharedstatedir@,$sharedstatedir,;t t
7322 s,@localstatedir@,$localstatedir,;t t
7323 s,@libdir@,$libdir,;t t
7324 s,@includedir@,$includedir,;t t
7325 s,@oldincludedir@,$oldincludedir,;t t
7326 s,@infodir@,$infodir,;t t
7327 s,@mandir@,$mandir,;t t
7328 s,@build_alias@,$build_alias,;t t
7329 s,@host_alias@,$host_alias,;t t
7330 s,@target_alias@,$target_alias,;t t
7331 s,@DEFS@,$DEFS,;t t
7332 s,@ECHO_C@,$ECHO_C,;t t
7333 s,@ECHO_N@,$ECHO_N,;t t
7334 s,@ECHO_T@,$ECHO_T,;t t
7335 s,@LIBS@,$LIBS,;t t
7336 s,@multi_basedir@,$multi_basedir,;t t
7337 s,@build@,$build,;t t
7338 s,@build_cpu@,$build_cpu,;t t
7339 s,@build_vendor@,$build_vendor,;t t
7340 s,@build_os@,$build_os,;t t
7341 s,@host@,$host,;t t
7342 s,@host_cpu@,$host_cpu,;t t
7343 s,@host_vendor@,$host_vendor,;t t
7344 s,@host_os@,$host_os,;t t
7345 s,@target@,$target,;t t
7346 s,@target_cpu@,$target_cpu,;t t
7347 s,@target_vendor@,$target_vendor,;t t
7348 s,@target_os@,$target_os,;t t
7349 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7350 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7351 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7352 s,@CYGPATH_W@,$CYGPATH_W,;t t
7353 s,@PACKAGE@,$PACKAGE,;t t
7354 s,@VERSION@,$VERSION,;t t
7355 s,@ACLOCAL@,$ACLOCAL,;t t
7356 s,@AUTOCONF@,$AUTOCONF,;t t
7357 s,@AUTOMAKE@,$AUTOMAKE,;t t
7358 s,@AUTOHEADER@,$AUTOHEADER,;t t
7359 s,@MAKEINFO@,$MAKEINFO,;t t
7360 s,@AMTAR@,$AMTAR,;t t
7361 s,@install_sh@,$install_sh,;t t
7362 s,@STRIP@,$STRIP,;t t
7363 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7364 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7365 s,@AWK@,$AWK,;t t
7366 s,@SET_MAKE@,$SET_MAKE,;t t
7367 s,@am__leading_dot@,$am__leading_dot,;t t
7368 s,@CC@,$CC,;t t
7369 s,@ac_ct_CC@,$ac_ct_CC,;t t
7370 s,@EXEEXT@,$EXEEXT,;t t
7371 s,@OBJEXT@,$OBJEXT,;t t
7372 s,@DEPDIR@,$DEPDIR,;t t
7373 s,@am__include@,$am__include,;t t
7374 s,@am__quote@,$am__quote,;t t
7375 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7376 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7377 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7378 s,@CCDEPMODE@,$CCDEPMODE,;t t
7379 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7380 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7381 s,@CFLAGS@,$CFLAGS,;t t
7382 s,@CCAS@,$CCAS,;t t
7383 s,@CCASFLAGS@,$CCASFLAGS,;t t
7384 s,@LN_S@,$LN_S,;t t
7385 s,@RANLIB@,$RANLIB,;t t
7386 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7387 s,@LIBTOOL@,$LIBTOOL,;t t
7388 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7389 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7390 s,@MAINT@,$MAINT,;t t
7391 s,@CPP@,$CPP,;t t
7392 s,@CPPFLAGS@,$CPPFLAGS,;t t
7393 s,@EGREP@,$EGREP,;t t
7394 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
7395 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
7396 s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
7397 s,@MIPS_IRIX_TRUE@,$MIPS_IRIX_TRUE,;t t
7398 s,@MIPS_IRIX_FALSE@,$MIPS_IRIX_FALSE,;t t
7399 s,@MIPS_LINUX_TRUE@,$MIPS_LINUX_TRUE,;t t
7400 s,@MIPS_LINUX_FALSE@,$MIPS_LINUX_FALSE,;t t
7401 s,@SPARC_TRUE@,$SPARC_TRUE,;t t
7402 s,@SPARC_FALSE@,$SPARC_FALSE,;t t
7403 s,@X86_TRUE@,$X86_TRUE,;t t
7404 s,@X86_FALSE@,$X86_FALSE,;t t
7405 s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
7406 s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
7407 s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
7408 s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
7409 s,@IA64_TRUE@,$IA64_TRUE,;t t
7410 s,@IA64_FALSE@,$IA64_FALSE,;t t
7411 s,@M68K_TRUE@,$M68K_TRUE,;t t
7412 s,@M68K_FALSE@,$M68K_FALSE,;t t
7413 s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
7414 s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
7415 s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
7416 s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
7417 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
7418 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
7419 s,@ARM_TRUE@,$ARM_TRUE,;t t
7420 s,@ARM_FALSE@,$ARM_FALSE,;t t
7421 s,@S390_TRUE@,$S390_TRUE,;t t
7422 s,@S390_FALSE@,$S390_FALSE,;t t
7423 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
7424 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
7425 s,@SH_TRUE@,$SH_TRUE,;t t
7426 s,@SH_FALSE@,$SH_FALSE,;t t
7427 s,@SH64_TRUE@,$SH64_TRUE,;t t
7428 s,@SH64_FALSE@,$SH64_FALSE,;t t
7429 s,@PA_TRUE@,$PA_TRUE,;t t
7430 s,@PA_FALSE@,$PA_FALSE,;t t
7431 s,@ALLOCA@,$ALLOCA,;t t
7432 s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
7433 s,@TARGET@,$TARGET,;t t
7434 s,@TARGETDIR@,$TARGETDIR,;t t
7435 s,@toolexecdir@,$toolexecdir,;t t
7436 s,@toolexeclibdir@,$toolexeclibdir,;t t
7437 s,@tool_include_dir@,$tool_include_dir,;t t
7438 s,@gcc_version@,$gcc_version,;t t
7439 s,@LIBOBJS@,$LIBOBJS,;t t
7440 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7441 CEOF
7443 _ACEOF
7445 cat >>$CONFIG_STATUS <<\_ACEOF
7446 # Split the substitutions into bite-sized pieces for seds with
7447 # small command number limits, like on Digital OSF/1 and HP-UX.
7448 ac_max_sed_lines=48
7449 ac_sed_frag=1 # Number of current file.
7450 ac_beg=1 # First line for current file.
7451 ac_end=$ac_max_sed_lines # Line after last line for current file.
7452 ac_more_lines=:
7453 ac_sed_cmds=
7454 while $ac_more_lines; do
7455 if test $ac_beg -gt 1; then
7456 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7457 else
7458 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7460 if test ! -s $tmp/subs.frag; then
7461 ac_more_lines=false
7462 else
7463 # The purpose of the label and of the branching condition is to
7464 # speed up the sed processing (if there are no `@' at all, there
7465 # is no need to browse any of the substitutions).
7466 # These are the two extra sed commands mentioned above.
7467 (echo ':t
7468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7469 if test -z "$ac_sed_cmds"; then
7470 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7471 else
7472 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7474 ac_sed_frag=`expr $ac_sed_frag + 1`
7475 ac_beg=$ac_end
7476 ac_end=`expr $ac_end + $ac_max_sed_lines`
7478 done
7479 if test -z "$ac_sed_cmds"; then
7480 ac_sed_cmds=cat
7482 fi # test -n "$CONFIG_FILES"
7484 _ACEOF
7485 cat >>$CONFIG_STATUS <<\_ACEOF
7486 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7487 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7488 case $ac_file in
7489 - | *:- | *:-:* ) # input from stdin
7490 cat >$tmp/stdin
7491 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7492 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7493 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7494 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7495 * ) ac_file_in=$ac_file.in ;;
7496 esac
7498 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7499 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7500 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7501 X"$ac_file" : 'X\(//\)[^/]' \| \
7502 X"$ac_file" : 'X\(//\)$' \| \
7503 X"$ac_file" : 'X\(/\)' \| \
7504 . : '\(.\)' 2>/dev/null ||
7505 echo X"$ac_file" |
7506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7508 /^X\(\/\/\)$/{ s//\1/; q; }
7509 /^X\(\/\).*/{ s//\1/; q; }
7510 s/.*/./; q'`
7511 { if $as_mkdir_p; then
7512 mkdir -p "$ac_dir"
7513 else
7514 as_dir="$ac_dir"
7515 as_dirs=
7516 while test ! -d "$as_dir"; do
7517 as_dirs="$as_dir $as_dirs"
7518 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7519 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7520 X"$as_dir" : 'X\(//\)[^/]' \| \
7521 X"$as_dir" : 'X\(//\)$' \| \
7522 X"$as_dir" : 'X\(/\)' \| \
7523 . : '\(.\)' 2>/dev/null ||
7524 echo X"$as_dir" |
7525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7527 /^X\(\/\/\)$/{ s//\1/; q; }
7528 /^X\(\/\).*/{ s//\1/; q; }
7529 s/.*/./; q'`
7530 done
7531 test ! -n "$as_dirs" || mkdir $as_dirs
7532 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7533 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7534 { (exit 1); exit 1; }; }; }
7536 ac_builddir=.
7538 if test "$ac_dir" != .; then
7539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7540 # A "../" for each directory in $ac_dir_suffix.
7541 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7542 else
7543 ac_dir_suffix= ac_top_builddir=
7546 case $srcdir in
7547 .) # No --srcdir option. We are building in place.
7548 ac_srcdir=.
7549 if test -z "$ac_top_builddir"; then
7550 ac_top_srcdir=.
7551 else
7552 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7553 fi ;;
7554 [\\/]* | ?:[\\/]* ) # Absolute path.
7555 ac_srcdir=$srcdir$ac_dir_suffix;
7556 ac_top_srcdir=$srcdir ;;
7557 *) # Relative path.
7558 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7559 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7560 esac
7562 # Do not use `cd foo && pwd` to compute absolute paths, because
7563 # the directories may not exist.
7564 case `pwd` in
7565 .) ac_abs_builddir="$ac_dir";;
7567 case "$ac_dir" in
7568 .) ac_abs_builddir=`pwd`;;
7569 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7570 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7571 esac;;
7572 esac
7573 case $ac_abs_builddir in
7574 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7576 case ${ac_top_builddir}. in
7577 .) ac_abs_top_builddir=$ac_abs_builddir;;
7578 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7579 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7580 esac;;
7581 esac
7582 case $ac_abs_builddir in
7583 .) ac_abs_srcdir=$ac_srcdir;;
7585 case $ac_srcdir in
7586 .) ac_abs_srcdir=$ac_abs_builddir;;
7587 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7588 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7589 esac;;
7590 esac
7591 case $ac_abs_builddir in
7592 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7594 case $ac_top_srcdir in
7595 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7596 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7597 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7598 esac;;
7599 esac
7602 case $INSTALL in
7603 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7604 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7605 esac
7607 if test x"$ac_file" != x-; then
7608 { echo "$as_me:$LINENO: creating $ac_file" >&5
7609 echo "$as_me: creating $ac_file" >&6;}
7610 rm -f "$ac_file"
7612 # Let's still pretend it is `configure' which instantiates (i.e., don't
7613 # use $as_me), people would be surprised to read:
7614 # /* config.h. Generated by config.status. */
7615 if test x"$ac_file" = x-; then
7616 configure_input=
7617 else
7618 configure_input="$ac_file. "
7620 configure_input=$configure_input"Generated from `echo $ac_file_in |
7621 sed 's,.*/,,'` by configure."
7623 # First look for the input files in the build tree, otherwise in the
7624 # src tree.
7625 ac_file_inputs=`IFS=:
7626 for f in $ac_file_in; do
7627 case $f in
7628 -) echo $tmp/stdin ;;
7629 [\\/$]*)
7630 # Absolute (can't be DOS-style, as IFS=:)
7631 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7632 echo "$as_me: error: cannot find input file: $f" >&2;}
7633 { (exit 1); exit 1; }; }
7634 echo "$f";;
7635 *) # Relative
7636 if test -f "$f"; then
7637 # Build tree
7638 echo "$f"
7639 elif test -f "$srcdir/$f"; then
7640 # Source tree
7641 echo "$srcdir/$f"
7642 else
7643 # /dev/null tree
7644 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7645 echo "$as_me: error: cannot find input file: $f" >&2;}
7646 { (exit 1); exit 1; }; }
7647 fi;;
7648 esac
7649 done` || { (exit 1); exit 1; }
7650 _ACEOF
7651 cat >>$CONFIG_STATUS <<_ACEOF
7652 sed "$ac_vpsub
7653 $extrasub
7654 _ACEOF
7655 cat >>$CONFIG_STATUS <<\_ACEOF
7657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7658 s,@configure_input@,$configure_input,;t t
7659 s,@srcdir@,$ac_srcdir,;t t
7660 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7661 s,@top_srcdir@,$ac_top_srcdir,;t t
7662 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7663 s,@builddir@,$ac_builddir,;t t
7664 s,@abs_builddir@,$ac_abs_builddir,;t t
7665 s,@top_builddir@,$ac_top_builddir,;t t
7666 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7667 s,@INSTALL@,$ac_INSTALL,;t t
7668 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7669 rm -f $tmp/stdin
7670 if test x"$ac_file" != x-; then
7671 mv $tmp/out $ac_file
7672 else
7673 cat $tmp/out
7674 rm -f $tmp/out
7677 done
7678 _ACEOF
7679 cat >>$CONFIG_STATUS <<\_ACEOF
7682 # CONFIG_HEADER section.
7685 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7686 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7688 # ac_d sets the value in "#define NAME VALUE" lines.
7689 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7690 ac_dB='[ ].*$,\1#\2'
7691 ac_dC=' '
7692 ac_dD=',;t'
7693 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7694 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7695 ac_uB='$,\1#\2define\3'
7696 ac_uC=' '
7697 ac_uD=',;t'
7699 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7700 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7701 case $ac_file in
7702 - | *:- | *:-:* ) # input from stdin
7703 cat >$tmp/stdin
7704 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7705 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7706 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7707 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7708 * ) ac_file_in=$ac_file.in ;;
7709 esac
7711 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7712 echo "$as_me: creating $ac_file" >&6;}
7714 # First look for the input files in the build tree, otherwise in the
7715 # src tree.
7716 ac_file_inputs=`IFS=:
7717 for f in $ac_file_in; do
7718 case $f in
7719 -) echo $tmp/stdin ;;
7720 [\\/$]*)
7721 # Absolute (can't be DOS-style, as IFS=:)
7722 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7723 echo "$as_me: error: cannot find input file: $f" >&2;}
7724 { (exit 1); exit 1; }; }
7725 # Do quote $f, to prevent DOS paths from being IFS'd.
7726 echo "$f";;
7727 *) # Relative
7728 if test -f "$f"; then
7729 # Build tree
7730 echo "$f"
7731 elif test -f "$srcdir/$f"; then
7732 # Source tree
7733 echo "$srcdir/$f"
7734 else
7735 # /dev/null tree
7736 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7737 echo "$as_me: error: cannot find input file: $f" >&2;}
7738 { (exit 1); exit 1; }; }
7739 fi;;
7740 esac
7741 done` || { (exit 1); exit 1; }
7742 # Remove the trailing spaces.
7743 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7745 _ACEOF
7747 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7748 # `conftest.undefs', that substitutes the proper values into
7749 # config.h.in to produce config.h. The first handles `#define'
7750 # templates, and the second `#undef' templates.
7751 # And first: Protect against being on the right side of a sed subst in
7752 # config.status. Protect against being in an unquoted here document
7753 # in config.status.
7754 rm -f conftest.defines conftest.undefs
7755 # Using a here document instead of a string reduces the quoting nightmare.
7756 # Putting comments in sed scripts is not portable.
7758 # `end' is used to avoid that the second main sed command (meant for
7759 # 0-ary CPP macros) applies to n-ary macro definitions.
7760 # See the Autoconf documentation for `clear'.
7761 cat >confdef2sed.sed <<\_ACEOF
7762 s/[\\&,]/\\&/g
7763 s,[\\$`],\\&,g
7764 t clear
7765 : clear
7766 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7767 t end
7768 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7769 : end
7770 _ACEOF
7771 # If some macros were called several times there might be several times
7772 # the same #defines, which is useless. Nevertheless, we may not want to
7773 # sort them, since we want the *last* AC-DEFINE to be honored.
7774 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7775 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7776 rm -f confdef2sed.sed
7778 # This sed command replaces #undef with comments. This is necessary, for
7779 # example, in the case of _POSIX_SOURCE, which is predefined and required
7780 # on some systems where configure will not decide to define it.
7781 cat >>conftest.undefs <<\_ACEOF
7782 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7783 _ACEOF
7785 # Break up conftest.defines because some shells have a limit on the size
7786 # of here documents, and old seds have small limits too (100 cmds).
7787 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7788 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7789 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7790 echo ' :' >>$CONFIG_STATUS
7791 rm -f conftest.tail
7792 while grep . conftest.defines >/dev/null
7794 # Write a limited-size here document to $tmp/defines.sed.
7795 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7796 # Speed up: don't consider the non `#define' lines.
7797 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7798 # Work around the forget-to-reset-the-flag bug.
7799 echo 't clr' >>$CONFIG_STATUS
7800 echo ': clr' >>$CONFIG_STATUS
7801 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7802 echo 'CEOF
7803 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7804 rm -f $tmp/in
7805 mv $tmp/out $tmp/in
7806 ' >>$CONFIG_STATUS
7807 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7808 rm -f conftest.defines
7809 mv conftest.tail conftest.defines
7810 done
7811 rm -f conftest.defines
7812 echo ' fi # grep' >>$CONFIG_STATUS
7813 echo >>$CONFIG_STATUS
7815 # Break up conftest.undefs because some shells have a limit on the size
7816 # of here documents, and old seds have small limits too (100 cmds).
7817 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7818 rm -f conftest.tail
7819 while grep . conftest.undefs >/dev/null
7821 # Write a limited-size here document to $tmp/undefs.sed.
7822 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7823 # Speed up: don't consider the non `#undef'
7824 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7825 # Work around the forget-to-reset-the-flag bug.
7826 echo 't clr' >>$CONFIG_STATUS
7827 echo ': clr' >>$CONFIG_STATUS
7828 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7829 echo 'CEOF
7830 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7831 rm -f $tmp/in
7832 mv $tmp/out $tmp/in
7833 ' >>$CONFIG_STATUS
7834 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7835 rm -f conftest.undefs
7836 mv conftest.tail conftest.undefs
7837 done
7838 rm -f conftest.undefs
7840 cat >>$CONFIG_STATUS <<\_ACEOF
7841 # Let's still pretend it is `configure' which instantiates (i.e., don't
7842 # use $as_me), people would be surprised to read:
7843 # /* config.h. Generated by config.status. */
7844 if test x"$ac_file" = x-; then
7845 echo "/* Generated by configure. */" >$tmp/config.h
7846 else
7847 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7849 cat $tmp/in >>$tmp/config.h
7850 rm -f $tmp/in
7851 if test x"$ac_file" != x-; then
7852 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7853 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7854 echo "$as_me: $ac_file is unchanged" >&6;}
7855 else
7856 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7858 X"$ac_file" : 'X\(//\)[^/]' \| \
7859 X"$ac_file" : 'X\(//\)$' \| \
7860 X"$ac_file" : 'X\(/\)' \| \
7861 . : '\(.\)' 2>/dev/null ||
7862 echo X"$ac_file" |
7863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7865 /^X\(\/\/\)$/{ s//\1/; q; }
7866 /^X\(\/\).*/{ s//\1/; q; }
7867 s/.*/./; q'`
7868 { if $as_mkdir_p; then
7869 mkdir -p "$ac_dir"
7870 else
7871 as_dir="$ac_dir"
7872 as_dirs=
7873 while test ! -d "$as_dir"; do
7874 as_dirs="$as_dir $as_dirs"
7875 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7877 X"$as_dir" : 'X\(//\)[^/]' \| \
7878 X"$as_dir" : 'X\(//\)$' \| \
7879 X"$as_dir" : 'X\(/\)' \| \
7880 . : '\(.\)' 2>/dev/null ||
7881 echo X"$as_dir" |
7882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7884 /^X\(\/\/\)$/{ s//\1/; q; }
7885 /^X\(\/\).*/{ s//\1/; q; }
7886 s/.*/./; q'`
7887 done
7888 test ! -n "$as_dirs" || mkdir $as_dirs
7889 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7890 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7891 { (exit 1); exit 1; }; }; }
7893 rm -f $ac_file
7894 mv $tmp/config.h $ac_file
7896 else
7897 cat $tmp/config.h
7898 rm -f $tmp/config.h
7900 # Compute $ac_file's index in $config_headers.
7901 _am_stamp_count=1
7902 for _am_header in $config_headers :; do
7903 case $_am_header in
7904 $ac_file | $ac_file:* )
7905 break ;;
7907 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7908 esac
7909 done
7910 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7911 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7912 X$ac_file : 'X\(//\)[^/]' \| \
7913 X$ac_file : 'X\(//\)$' \| \
7914 X$ac_file : 'X\(/\)' \| \
7915 . : '\(.\)' 2>/dev/null ||
7916 echo X$ac_file |
7917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7919 /^X\(\/\/\)$/{ s//\1/; q; }
7920 /^X\(\/\).*/{ s//\1/; q; }
7921 s/.*/./; q'`/stamp-h$_am_stamp_count
7922 done
7923 _ACEOF
7924 cat >>$CONFIG_STATUS <<\_ACEOF
7927 # CONFIG_LINKS section.
7930 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
7931 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7932 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7934 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
7935 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
7937 if test ! -r $srcdir/$ac_source; then
7938 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
7939 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
7940 { (exit 1); exit 1; }; }
7942 rm -f $ac_dest
7944 # Make relative symlinks.
7945 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
7946 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7947 X"$ac_dest" : 'X\(//\)[^/]' \| \
7948 X"$ac_dest" : 'X\(//\)$' \| \
7949 X"$ac_dest" : 'X\(/\)' \| \
7950 . : '\(.\)' 2>/dev/null ||
7951 echo X"$ac_dest" |
7952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7953 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7954 /^X\(\/\/\)$/{ s//\1/; q; }
7955 /^X\(\/\).*/{ s//\1/; q; }
7956 s/.*/./; q'`
7957 { if $as_mkdir_p; then
7958 mkdir -p "$ac_dest_dir"
7959 else
7960 as_dir="$ac_dest_dir"
7961 as_dirs=
7962 while test ! -d "$as_dir"; do
7963 as_dirs="$as_dir $as_dirs"
7964 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7965 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7966 X"$as_dir" : 'X\(//\)[^/]' \| \
7967 X"$as_dir" : 'X\(//\)$' \| \
7968 X"$as_dir" : 'X\(/\)' \| \
7969 . : '\(.\)' 2>/dev/null ||
7970 echo X"$as_dir" |
7971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7972 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7973 /^X\(\/\/\)$/{ s//\1/; q; }
7974 /^X\(\/\).*/{ s//\1/; q; }
7975 s/.*/./; q'`
7976 done
7977 test ! -n "$as_dirs" || mkdir $as_dirs
7978 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
7979 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
7980 { (exit 1); exit 1; }; }; }
7982 ac_builddir=.
7984 if test "$ac_dest_dir" != .; then
7985 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
7986 # A "../" for each directory in $ac_dir_suffix.
7987 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7988 else
7989 ac_dir_suffix= ac_top_builddir=
7992 case $srcdir in
7993 .) # No --srcdir option. We are building in place.
7994 ac_srcdir=.
7995 if test -z "$ac_top_builddir"; then
7996 ac_top_srcdir=.
7997 else
7998 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7999 fi ;;
8000 [\\/]* | ?:[\\/]* ) # Absolute path.
8001 ac_srcdir=$srcdir$ac_dir_suffix;
8002 ac_top_srcdir=$srcdir ;;
8003 *) # Relative path.
8004 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8005 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8006 esac
8008 # Do not use `cd foo && pwd` to compute absolute paths, because
8009 # the directories may not exist.
8010 case `pwd` in
8011 .) ac_abs_builddir="$ac_dest_dir";;
8013 case "$ac_dest_dir" in
8014 .) ac_abs_builddir=`pwd`;;
8015 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
8016 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
8017 esac;;
8018 esac
8019 case $ac_abs_builddir in
8020 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8022 case ${ac_top_builddir}. in
8023 .) ac_abs_top_builddir=$ac_abs_builddir;;
8024 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8025 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8026 esac;;
8027 esac
8028 case $ac_abs_builddir in
8029 .) ac_abs_srcdir=$ac_srcdir;;
8031 case $ac_srcdir in
8032 .) ac_abs_srcdir=$ac_abs_builddir;;
8033 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8034 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8035 esac;;
8036 esac
8037 case $ac_abs_builddir in
8038 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8040 case $ac_top_srcdir in
8041 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8042 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8043 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8044 esac;;
8045 esac
8048 case $srcdir in
8049 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
8050 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
8051 esac
8053 # Try a symlink, then a hard link, then a copy.
8054 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8055 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
8056 cp -p $srcdir/$ac_source $ac_dest ||
8057 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8058 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8059 { (exit 1); exit 1; }; }
8060 done
8061 _ACEOF
8062 cat >>$CONFIG_STATUS <<\_ACEOF
8065 # CONFIG_COMMANDS section.
8067 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8068 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8069 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8070 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8071 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8072 X"$ac_dest" : 'X\(//\)[^/]' \| \
8073 X"$ac_dest" : 'X\(//\)$' \| \
8074 X"$ac_dest" : 'X\(/\)' \| \
8075 . : '\(.\)' 2>/dev/null ||
8076 echo X"$ac_dest" |
8077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8079 /^X\(\/\/\)$/{ s//\1/; q; }
8080 /^X\(\/\).*/{ s//\1/; q; }
8081 s/.*/./; q'`
8082 { if $as_mkdir_p; then
8083 mkdir -p "$ac_dir"
8084 else
8085 as_dir="$ac_dir"
8086 as_dirs=
8087 while test ! -d "$as_dir"; do
8088 as_dirs="$as_dir $as_dirs"
8089 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8091 X"$as_dir" : 'X\(//\)[^/]' \| \
8092 X"$as_dir" : 'X\(//\)$' \| \
8093 X"$as_dir" : 'X\(/\)' \| \
8094 . : '\(.\)' 2>/dev/null ||
8095 echo X"$as_dir" |
8096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8097 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8098 /^X\(\/\/\)$/{ s//\1/; q; }
8099 /^X\(\/\).*/{ s//\1/; q; }
8100 s/.*/./; q'`
8101 done
8102 test ! -n "$as_dirs" || mkdir $as_dirs
8103 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8104 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8105 { (exit 1); exit 1; }; }; }
8107 ac_builddir=.
8109 if test "$ac_dir" != .; then
8110 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8111 # A "../" for each directory in $ac_dir_suffix.
8112 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8113 else
8114 ac_dir_suffix= ac_top_builddir=
8117 case $srcdir in
8118 .) # No --srcdir option. We are building in place.
8119 ac_srcdir=.
8120 if test -z "$ac_top_builddir"; then
8121 ac_top_srcdir=.
8122 else
8123 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8124 fi ;;
8125 [\\/]* | ?:[\\/]* ) # Absolute path.
8126 ac_srcdir=$srcdir$ac_dir_suffix;
8127 ac_top_srcdir=$srcdir ;;
8128 *) # Relative path.
8129 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8130 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8131 esac
8133 # Do not use `cd foo && pwd` to compute absolute paths, because
8134 # the directories may not exist.
8135 case `pwd` in
8136 .) ac_abs_builddir="$ac_dir";;
8138 case "$ac_dir" in
8139 .) ac_abs_builddir=`pwd`;;
8140 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8141 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8142 esac;;
8143 esac
8144 case $ac_abs_builddir in
8145 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8147 case ${ac_top_builddir}. in
8148 .) ac_abs_top_builddir=$ac_abs_builddir;;
8149 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8150 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8151 esac;;
8152 esac
8153 case $ac_abs_builddir in
8154 .) ac_abs_srcdir=$ac_srcdir;;
8156 case $ac_srcdir in
8157 .) ac_abs_srcdir=$ac_abs_builddir;;
8158 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8159 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8160 esac;;
8161 esac
8162 case $ac_abs_builddir in
8163 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8165 case $ac_top_srcdir in
8166 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8167 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8168 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8169 esac;;
8170 esac
8173 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8174 echo "$as_me: executing $ac_dest commands" >&6;}
8175 case $ac_dest in
8176 default-1 )
8177 # Only add multilib support code if we just rebuilt the top-level
8178 # Makefile.
8179 case " $CONFIG_FILES " in
8180 *" Makefile "*)
8181 ac_file=Makefile . ${multi_basedir}/config-ml.in
8183 esac ;;
8184 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8185 # Strip MF so we end up with the name of the file.
8186 mf=`echo "$mf" | sed -e 's/:.*$//'`
8187 # Check whether this is an Automake generated Makefile or not.
8188 # We used to match only the files named `Makefile.in', but
8189 # some people rename them; so instead we look at the file content.
8190 # Grep'ing the first line is not enough: some people post-process
8191 # each Makefile.in and add a new line on top of each file to say so.
8192 # So let's grep whole file.
8193 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8194 dirpart=`(dirname "$mf") 2>/dev/null ||
8195 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8196 X"$mf" : 'X\(//\)[^/]' \| \
8197 X"$mf" : 'X\(//\)$' \| \
8198 X"$mf" : 'X\(/\)' \| \
8199 . : '\(.\)' 2>/dev/null ||
8200 echo X"$mf" |
8201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8202 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8203 /^X\(\/\/\)$/{ s//\1/; q; }
8204 /^X\(\/\).*/{ s//\1/; q; }
8205 s/.*/./; q'`
8206 else
8207 continue
8209 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8210 # Extract the definition of DEP_FILES from the Makefile without
8211 # running `make'.
8212 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
8213 test -z "$DEPDIR" && continue
8214 # When using ansi2knr, U may be empty or an underscore; expand it
8215 U=`sed -n -e '/^U = / s///p' < "$mf"`
8216 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8217 # We invoke sed twice because it is the simplest approach to
8218 # changing $(DEPDIR) to its actual value in the expansion.
8219 for file in `sed -n -e '
8220 /^DEP_FILES = .*\\\\$/ {
8221 s/^DEP_FILES = //
8222 :loop
8223 s/\\\\$//
8226 /\\\\$/ b loop
8229 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8230 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8231 # Make sure the directory exists.
8232 test -f "$dirpart/$file" && continue
8233 fdir=`(dirname "$file") 2>/dev/null ||
8234 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8235 X"$file" : 'X\(//\)[^/]' \| \
8236 X"$file" : 'X\(//\)$' \| \
8237 X"$file" : 'X\(/\)' \| \
8238 . : '\(.\)' 2>/dev/null ||
8239 echo X"$file" |
8240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8241 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8242 /^X\(\/\/\)$/{ s//\1/; q; }
8243 /^X\(\/\).*/{ s//\1/; q; }
8244 s/.*/./; q'`
8245 { if $as_mkdir_p; then
8246 mkdir -p $dirpart/$fdir
8247 else
8248 as_dir=$dirpart/$fdir
8249 as_dirs=
8250 while test ! -d "$as_dir"; do
8251 as_dirs="$as_dir $as_dirs"
8252 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8254 X"$as_dir" : 'X\(//\)[^/]' \| \
8255 X"$as_dir" : 'X\(//\)$' \| \
8256 X"$as_dir" : 'X\(/\)' \| \
8257 . : '\(.\)' 2>/dev/null ||
8258 echo X"$as_dir" |
8259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8261 /^X\(\/\/\)$/{ s//\1/; q; }
8262 /^X\(\/\).*/{ s//\1/; q; }
8263 s/.*/./; q'`
8264 done
8265 test ! -n "$as_dirs" || mkdir $as_dirs
8266 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8267 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8268 { (exit 1); exit 1; }; }; }
8270 # echo "creating $dirpart/$file"
8271 echo '# dummy' > "$dirpart/$file"
8272 done
8273 done
8275 include ) test -d include || mkdir include ;;
8276 src )
8277 test -d src || mkdir src
8278 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
8280 esac
8281 done
8282 _ACEOF
8284 cat >>$CONFIG_STATUS <<\_ACEOF
8286 { (exit 0); exit 0; }
8287 _ACEOF
8288 chmod +x $CONFIG_STATUS
8289 ac_clean_files=$ac_clean_files_save
8292 # configure is writing to config.log, and then calls config.status.
8293 # config.status does its own redirection, appending to config.log.
8294 # Unfortunately, on DOS this fails, as config.log is still kept open
8295 # by configure, so config.status won't be able to write to it; its
8296 # output is simply discarded. So we exec the FD to /dev/null,
8297 # effectively closing config.log, so it can be properly (re)opened and
8298 # appended to by config.status. When coming back to configure, we
8299 # need to make the FD available again.
8300 if test "$no_create" != yes; then
8301 ac_cs_success=:
8302 ac_config_status_args=
8303 test "$silent" = yes &&
8304 ac_config_status_args="$ac_config_status_args --quiet"
8305 exec 5>/dev/null
8306 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8307 exec 5>>config.log
8308 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8309 # would make configure fail if this is the last instruction.
8310 $ac_cs_success || { (exit 1); exit 1; }