3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-multilib build many library versions (default)"
17 --enable-shared[=PKGS] build shared libraries [default=yes]"
19 --enable-static[=PKGS] build static libraries [default=yes]"
21 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 --disable-libtool-lock avoid locking (might break parallel builds)"
27 --with-pic try to use only PIC/non-PIC objects [default=use both]"
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
32 --enable-debug debugging mode"
34 --disable-structs omit code for struct support"
36 --disable-raw-api make the raw api unavailable"
38 --enable-purify-safety purify-safe mode"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file
=.
/config.cache
53 program_transform_name
=s
,x
,x
,
61 bindir
='${exec_prefix}/bin'
62 sbindir
='${exec_prefix}/sbin'
63 libexecdir
='${exec_prefix}/libexec'
64 datadir
='${prefix}/share'
65 sysconfdir
='${prefix}/etc'
66 sharedstatedir
='${prefix}/com'
67 localstatedir
='${prefix}/var'
68 libdir
='${exec_prefix}/lib'
69 includedir
='${prefix}/include'
70 oldincludedir
='/usr/include'
71 infodir
='${prefix}/info'
72 mandir
='${prefix}/man'
74 # Initialize some other variables.
77 SHELL
=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document.
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
93 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 # Accept the important Cygnus configure options, so we can diagnose typos.
101 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
103 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
104 bindir
="$ac_optarg" ;;
106 -build |
--build |
--buil |
--bui |
--bu)
108 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
109 build
="$ac_optarg" ;;
111 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
112 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
113 ac_prev
=cache_file
;;
114 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
115 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
116 cache_file
="$ac_optarg" ;;
118 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
120 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
122 datadir
="$ac_optarg" ;;
124 -disable-* |
--disable-*)
125 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* |
--enable-*)
134 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
147 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
148 |
--exec |
--exe |
--ex)
149 ac_prev
=exec_prefix
;;
150 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
151 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
152 |
--exec=* |
--exe=* |
--ex=*)
153 exec_prefix
="$ac_optarg" ;;
155 -gas |
--gas |
--ga |
--g)
156 # Obsolete; use --with-gas.
159 -help |
--help |
--hel |
--he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host |
--host |
--hos |
--ho)
216 -host=* |
--host=* |
--hos=* |
--ho=*)
219 -includedir |
--includedir |
--includedi |
--included |
--include \
220 |
--includ |
--inclu |
--incl |
--inc)
221 ac_prev
=includedir
;;
222 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
223 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
224 includedir
="$ac_optarg" ;;
226 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
228 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
229 infodir
="$ac_optarg" ;;
231 -libdir |
--libdir |
--libdi |
--libd)
233 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
234 libdir
="$ac_optarg" ;;
236 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
237 |
--libexe |
--libex |
--libe)
238 ac_prev
=libexecdir
;;
239 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
240 |
--libexe=* |
--libex=* |
--libe=*)
241 libexecdir
="$ac_optarg" ;;
243 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
244 |
--localstate |
--localstat |
--localsta |
--localst \
245 |
--locals |
--local |
--loca |
--loc |
--lo)
246 ac_prev
=localstatedir
;;
247 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
248 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
249 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
250 localstatedir
="$ac_optarg" ;;
252 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
254 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
255 mandir
="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
265 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
266 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
269 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
270 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
271 |
--oldin |
--oldi |
--old |
--ol |
--o)
272 ac_prev
=oldincludedir
;;
273 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
274 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
275 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
276 oldincludedir
="$ac_optarg" ;;
278 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
280 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
281 prefix
="$ac_optarg" ;;
283 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
284 |
--program-pre |
--program-pr |
--program-p)
285 ac_prev
=program_prefix
;;
286 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
287 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
288 program_prefix
="$ac_optarg" ;;
290 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
291 |
--program-suf |
--program-su |
--program-s)
292 ac_prev
=program_suffix
;;
293 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
294 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
295 program_suffix
="$ac_optarg" ;;
297 -program-transform-name |
--program-transform-name \
298 |
--program-transform-nam |
--program-transform-na \
299 |
--program-transform-n |
--program-transform- \
300 |
--program-transform |
--program-transfor \
301 |
--program-transfo |
--program-transf \
302 |
--program-trans |
--program-tran \
303 |
--progr-tra |
--program-tr |
--program-t)
304 ac_prev
=program_transform_name
;;
305 -program-transform-name=* |
--program-transform-name=* \
306 |
--program-transform-nam=* |
--program-transform-na=* \
307 |
--program-transform-n=* |
--program-transform-=* \
308 |
--program-transform=* |
--program-transfor=* \
309 |
--program-transfo=* |
--program-transf=* \
310 |
--program-trans=* |
--program-tran=* \
311 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
312 program_transform_name
="$ac_optarg" ;;
314 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
315 |
-silent |
--silent |
--silen |
--sile |
--sil)
318 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
320 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
322 sbindir
="$ac_optarg" ;;
324 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
325 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
326 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
328 ac_prev
=sharedstatedir
;;
329 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
330 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
331 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
333 sharedstatedir
="$ac_optarg" ;;
335 -site |
--site |
--sit)
337 -site=* |
--site=* |
--sit=*)
340 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
342 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
343 srcdir
="$ac_optarg" ;;
345 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
346 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
347 ac_prev
=sysconfdir
;;
348 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
349 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
350 sysconfdir
="$ac_optarg" ;;
352 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
354 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
355 target
="$ac_optarg" ;;
357 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
360 -version |
--version |
--versio |
--versi |
--vers)
361 echo "configure generated by autoconf version 2.13"
365 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package
=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* |
--without-*)
378 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package
=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
387 # Obsolete; use --with-x.
390 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
391 |
--x-incl |
--x-inc |
--x-in |
--x-i)
392 ac_prev
=x_includes
;;
393 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
394 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
395 x_includes
="$ac_optarg" ;;
397 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
398 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
399 ac_prev
=x_libraries
;;
400 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
401 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
402 x_libraries
="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE
; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
452 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
453 |
--no-cr |
--no-c) ;;
454 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
455 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
456 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest
* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file
=fficonfig.h.
in
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted
=yes
484 # Try the directory containing this script, then its parent.
486 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
489 if test ! -r $srcdir/$ac_unique_file; then
493 ac_srcdir_defaulted
=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE
; then
507 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file
in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
523 echo "creating cache $cache_file"
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp
='$CPP $CPPFLAGS'
530 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling
=$ac_cv_prog_cc_cross
536 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
545 ac_n
= ac_c
='\c' ac_t
=
548 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
549 echo "configure:550: checking for Cygwin environment" >&5
550 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
551 echo $ac_n "(cached) $ac_c" 1>&6
553 cat > conftest.
$ac_ext <<EOF
554 #line 555 "configure"
555 #include "confdefs.h"
560 #define __CYGWIN__ __CYGWIN32__
565 if { (eval echo configure
:566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
569 echo "configure: failed program was:" >&5
570 cat conftest.
$ac_ext >&5
578 echo "$ac_t""$ac_cv_cygwin" 1>&6
580 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
581 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
582 echo "configure:583: checking for mingw32 environment" >&5
583 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
586 cat > conftest.
$ac_ext <<EOF
587 #line 588 "configure"
588 #include "confdefs.h"
594 if { (eval echo configure
:595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
598 echo "configure: failed program was:" >&5
599 cat conftest.
$ac_ext >&5
607 echo "$ac_t""$ac_cv_mingw32" 1>&6
609 test "$ac_cv_mingw32" = yes && MINGW32
=yes
615 # This works around the fact that libtool configuration may change LD
616 # for this particular configuration, but some shells, instead of
617 # keeping the changes in LD private, export them just because LD is
619 ORIGINAL_LD_FOR_MULTILIBS
=$LD
621 # Check whether --enable-multilib or --disable-multilib was given.
622 if test "${enable_multilib+set}" = set; then
623 enableval
="$enable_multilib"
624 case "${enableval}" in
627 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
634 if test "${srcdir}" = "."; then
635 if test "${with_target_subdir}" != "."; then
636 libffi_basedir
="${with_multisrctop}../"
638 libffi_basedir
="${with_multisrctop}"
645 for ac_dir
in ${libffi_basedir}..
$srcdir/${libffi_basedir}..
; do
646 if test -f $ac_dir/install-sh
; then
648 ac_install_sh
="$ac_aux_dir/install-sh -c"
650 elif test -f $ac_dir/install.sh
; then
652 ac_install_sh
="$ac_aux_dir/install.sh -c"
656 if test -z "$ac_aux_dir"; then
657 { echo "configure: error: can not find install-sh or install.sh in ${libffi_basedir}.. $srcdir/${libffi_basedir}.." 1>&2; exit 1; }
659 ac_config_guess=$ac_aux_dir/config.guess
660 ac_config_sub=$ac_aux_dir/config.sub
661 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
665 # Do some error checking and defaulting for the host and target type.
667 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
670 # 1. You are not allowed to specify --host, --target, and nonopt at the
672 # 2. Host defaults to nonopt.
673 # 3. If nonopt is not specified, then host defaults to the current host,
674 # as determined by config.guess.
675 # 4. Target and build default to nonopt.
676 # 5. If nonopt is not specified, then target and build default to host.
678 # The aliases save the names the user supplied, while $host etc.
679 # will get canonicalized.
680 case $host---$target---$nonopt in
681 NONE---*---* | *---NONE---* | *---*---NONE) ;;
682 *) { echo "configure
: error
: can only configure
for one
host and one target
at a
time" 1>&2; exit 1; } ;;
686 # Make sure we can run config.sub.
687 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
688 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
691 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
692 echo "configure
:693: checking
host system
type" >&5
695 case "$host_alias" in
699 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
700 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
702 *) host_alias=$nonopt ;;
706 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
707 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
708 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
709 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo "$ac_t""$host" 1>&6
712 echo $ac_n "checking target system
type""...
$ac_c" 1>&6
713 echo "configure
:714: checking target system
type" >&5
716 case "$target_alias" in
719 NONE) target_alias=$host_alias ;;
720 *) target_alias=$nonopt ;;
724 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
725 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
726 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
727 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
728 echo "$ac_t""$target" 1>&6
730 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
731 echo "configure
:732: checking build system
type" >&5
734 case "$build_alias" in
737 NONE) build_alias=$host_alias ;;
738 *) build_alias=$nonopt ;;
742 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
743 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
744 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
745 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
746 echo "$ac_t""$build" 1>&6
748 test "$host_alias" != "$target_alias" &&
749 test "$program_prefix$program_suffix$program_transform_name" = \
751 program_prefix=${target_alias}-
753 target_alias=${target_alias-$host_alias}
755 # Check whether --enable-shared or --disable-shared was given.
756 if test "${enable_shared+set}" = set; then
757 enableval="$enable_shared"
760 yes) enable_shared=yes ;;
761 no) enable_shared=no ;;
764 # Look at the argument we got. We use all the common list separators.
765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
766 for pkg in $enableval; do
767 if test "X
$pkg" = "X
$p"; then
778 # Check whether --enable-static or --disable-static was given.
779 if test "${enable_static+set}" = set; then
780 enableval="$enable_static"
783 yes) enable_static=yes ;;
784 no) enable_static=no ;;
787 # Look at the argument we got. We use all the common list separators.
788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
789 for pkg in $enableval; do
790 if test "X
$pkg" = "X
$p"; then
801 # Check whether --enable-fast-install or --disable-fast-install was given.
802 if test "${enable_fast_install+set}" = set; then
803 enableval="$enable_fast_install"
806 yes) enable_fast_install=yes ;;
807 no) enable_fast_install=no ;;
809 enable_fast_install=no
810 # Look at the argument we got. We use all the common list separators.
811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
812 for pkg in $enableval; do
813 if test "X
$pkg" = "X
$p"; then
814 enable_fast_install=yes
821 enable_fast_install=yes
824 # Extract the first word of "gcc
", so it can be a program name with args.
825 set dummy gcc; ac_word=$2
826 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
827 echo "configure
:828: checking
for $ac_word" >&5
828 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
829 echo $ac_n "(cached
) $ac_c" 1>&6
831 if test -n "$CC"; then
832 ac_cv_prog_CC="$CC" # Let the user override the test.
834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
836 for ac_dir in $ac_dummy; do
837 test -z "$ac_dir" && ac_dir=.
838 if test -f $ac_dir/$ac_word; then
847 if test -n "$CC"; then
848 echo "$ac_t""$CC" 1>&6
850 echo "$ac_t""no
" 1>&6
853 if test -z "$CC"; then
854 # Extract the first word of "cc
", so it can be a program name with args.
855 set dummy cc; ac_word=$2
856 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
857 echo "configure
:858: checking
for $ac_word" >&5
858 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
859 echo $ac_n "(cached
) $ac_c" 1>&6
861 if test -n "$CC"; then
862 ac_cv_prog_CC="$CC" # Let the user override the test.
864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
867 for ac_dir in $ac_dummy; do
868 test -z "$ac_dir" && ac_dir=.
869 if test -f $ac_dir/$ac_word; then
870 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
879 if test $ac_prog_rejected = yes; then
880 # We found a bogon in the path, so make sure we never use it.
881 set dummy $ac_cv_prog_CC
883 if test $# -gt 0; then
884 # We chose a different compiler from the bogus one.
885 # However, it has the same basename, so the bogon will be chosen
886 # first if we set CC to just the basename; use the full file name.
888 set dummy "$ac_dir/$ac_word" "$@
"
896 if test -n "$CC"; then
897 echo "$ac_t""$CC" 1>&6
899 echo "$ac_t""no
" 1>&6
902 if test -z "$CC"; then
905 # Extract the first word of "cl
", so it can be a program name with args.
906 set dummy cl; ac_word=$2
907 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
908 echo "configure
:909: checking
for $ac_word" >&5
909 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
910 echo $ac_n "(cached
) $ac_c" 1>&6
912 if test -n "$CC"; then
913 ac_cv_prog_CC="$CC" # Let the user override the test.
915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
917 for ac_dir in $ac_dummy; do
918 test -z "$ac_dir" && ac_dir=.
919 if test -f $ac_dir/$ac_word; then
928 if test -n "$CC"; then
929 echo "$ac_t""$CC" 1>&6
931 echo "$ac_t""no
" 1>&6
936 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
939 echo $ac_n "checking whether the C compiler
($CC $CFLAGS $LDFLAGS) works
""...
$ac_c" 1>&6
940 echo "configure
:941: checking whether the C compiler
($CC $CFLAGS $LDFLAGS) works
" >&5
943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
944 ac_cpp='$CPP $CPPFLAGS'
945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
946 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
947 cross_compiling=$ac_cv_prog_cc_cross
949 cat > conftest.$ac_ext << EOF
951 #line 952 "configure
"
952 #include "confdefs.h
"
956 if { (eval echo configure:957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
957 ac_cv_prog_cc_works=yes
958 # If we can't run a trivial program, we are probably using a cross compiler.
959 if (./conftest; exit) 2>/dev/null; then
960 ac_cv_prog_cc_cross=no
962 ac_cv_prog_cc_cross=yes
965 echo "configure
: failed program was
:" >&5
966 cat conftest.$ac_ext >&5
967 ac_cv_prog_cc_works=no
971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
972 ac_cpp='$CPP $CPPFLAGS'
973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
975 cross_compiling=$ac_cv_prog_cc_cross
977 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
978 if test $ac_cv_prog_cc_works = no; then
979 { echo "configure
: error
: installation or configuration problem
: C compiler cannot create executables.
" 1>&2; exit 1; }
981 echo $ac_n "checking whether the C compiler
($CC $CFLAGS $LDFLAGS) is a cross-compiler
""...
$ac_c" 1>&6
982 echo "configure
:983: checking whether the C compiler
($CC $CFLAGS $LDFLAGS) is a cross-compiler
" >&5
983 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
984 cross_compiling=$ac_cv_prog_cc_cross
986 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
987 echo "configure
:988: checking whether we are using GNU C
" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
989 echo $ac_n "(cached
) $ac_c" 1>&6
991 cat > conftest.c <<EOF
996 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1003 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1005 if test $ac_cv_prog_gcc = yes; then
1011 ac_test_CFLAGS="${CFLAGS+set}"
1012 ac_save_CFLAGS="$CFLAGS"
1014 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
1015 echo "configure
:1016: checking whether
${CC-cc} accepts
-g" >&5
1016 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1017 echo $ac_n "(cached
) $ac_c" 1>&6
1019 echo 'void f(){}' > conftest.c
1020 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1029 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1030 if test "$ac_test_CFLAGS" = set; then
1031 CFLAGS="$ac_save_CFLAGS"
1032 elif test $ac_cv_prog_cc_g = yes; then
1033 if test "$GCC" = yes; then
1039 if test "$GCC" = yes; then
1046 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1047 if test "${with_gnu_ld+set}" = set; then
1048 withval="$with_gnu_ld"
1049 test "$withval" = no || with_gnu_ld=yes
1055 if test "$GCC" = yes; then
1056 # Check if gcc -print-prog-name=ld gives a path.
1057 echo $ac_n "checking
for ld used by GCC
""...
$ac_c" 1>&6
1058 echo "configure
:1059: checking
for ld used by GCC
" >&5
1061 # gcc leaves a trailing carriage return which upsets mingw
1062 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1064 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1067 # Accept absolute paths.
1068 [\\/]* | [A-Za-z]:[\\/]*)
1069 re_direlt='/[^/][^/]*/\.\./'
1070 # Canonicalize the path of ld
1071 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1072 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1073 ac_prog=`echo $ac_prog| sed "s
%$re_direlt%/%"`
1075 test -z "$LD" && LD="$ac_prog"
1078 # If it fails, then pretend we aren't using GCC.
1082 # If it is relative, then search for the first ld in PATH.
1086 elif test "$with_gnu_ld" = yes; then
1087 echo $ac_n "checking
for GNU ld
""...
$ac_c" 1>&6
1088 echo "configure
:1089: checking
for GNU ld
" >&5
1090 echo $ac_n "checking
for non-GNU ld
""...
$ac_c" 1>&6
1091 echo "configure
:1092: checking
for non-GNU ld
" >&5
1093 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1094 echo $ac_n "(cached
) $ac_c" 1>&6
1096 if test -z "$LD"; then
1097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1098 for ac_dir in $PATH; do
1099 test -z "$ac_dir" && ac_dir=.
1100 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1101 lt_cv_path_LD="$ac_dir/$ac_prog"
1102 # Check to see if the program is GNU ld. I'd rather use --version,
1103 # but apparently some GNU ld's only accept -v.
1104 # Break only if it was the GNU/non-GNU ld that we prefer.
1105 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1106 test "$with_gnu_ld" != no && break
1108 test "$with_gnu_ld" != yes && break
1114 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1119 if test -n "$LD"; then
1120 echo "$ac_t""$LD" 1>&6
1122 echo "$ac_t""no
" 1>&6
1124 test -z "$LD" && { echo "configure
: error
: no acceptable ld found
in \
$PATH" 1>&2; exit 1; }
1125 echo $ac_n "checking
if the linker
($LD) is GNU ld
""...
$ac_c" 1>&6
1126 echo "configure
:1127: checking
if the linker
($LD) is GNU ld
" >&5
1127 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1128 echo $ac_n "(cached
) $ac_c" 1>&6
1130 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1131 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1132 lt_cv_prog_gnu_ld=yes
1134 lt_cv_prog_gnu_ld=no
1138 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1139 with_gnu_ld=$lt_cv_prog_gnu_ld
1142 echo $ac_n "checking
for $LD option to reload object files
""...
$ac_c" 1>&6
1143 echo "configure
:1144: checking
for $LD option to reload object files
" >&5
1144 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1145 echo $ac_n "(cached
) $ac_c" 1>&6
1147 lt_cv_ld_reload_flag='-r'
1150 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1151 reload_flag=$lt_cv_ld_reload_flag
1152 test -n "$reload_flag" && reload_flag=" $reload_flag"
1154 echo $ac_n "checking
for BSD-compatible nm
""...
$ac_c" 1>&6
1155 echo "configure
:1156: checking
for BSD-compatible nm
" >&5
1156 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1157 echo $ac_n "(cached
) $ac_c" 1>&6
1159 if test -n "$NM"; then
1160 # Let the user override the test.
1163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1164 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1165 test -z "$ac_dir" && ac_dir=.
1166 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1167 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1168 # Check to see if the nm accepts a BSD-compat flag.
1169 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1170 # nm: unknown option "B
" ignored
1171 # Tru64's nm complains that /dev/null is an invalid object file
1172 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1173 lt_cv_path_NM="$tmp_nm -B"
1175 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1176 lt_cv_path_NM="$tmp_nm -p"
1179 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1180 continue # so that we can try to find one that supports BSD flags
1185 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1190 echo "$ac_t""$NM" 1>&6
1192 echo $ac_n "checking whether
ln -s works
""...
$ac_c" 1>&6
1193 echo "configure
:1194: checking whether
ln -s works
" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1195 echo $ac_n "(cached
) $ac_c" 1>&6
1198 if ln -s X conftestdata 2>/dev/null
1201 ac_cv_prog_LN_S="ln -s"
1206 LN_S="$ac_cv_prog_LN_S"
1207 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1208 echo "$ac_t""yes" 1>&6
1210 echo "$ac_t""no
" 1>&6
1213 echo $ac_n "checking how to recognise dependant libraries
""...
$ac_c" 1>&6
1214 echo "configure
:1215: checking how to recognise dependant libraries
" >&5
1215 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1216 echo $ac_n "(cached
) $ac_c" 1>&6
1218 lt_cv_file_magic_cmd='$MAGIC_CMD'
1219 lt_cv_file_magic_test_file=
1220 lt_cv_deplibs_check_method='unknown'
1221 # Need to set the preceding variable on all platforms that support
1222 # interlibrary dependencies.
1223 # 'none' -- dependencies not supported.
1224 # `unknown' -- same as none, but documents that we really don't know.
1225 # 'pass_all' -- all dependencies passed with no checks.
1226 # 'test_compile' -- check by making test program.
1227 # 'file_magic [regex]' -- check by looking for files in library path
1228 # which responds to the $file_magic_cmd with a given egrep regex.
1229 # If you have `file' or equivalent on your system and you're not sure
1230 # whether `pass_all' will *always* work, you probably want this one.
1234 lt_cv_deplibs_check_method=pass_all
1238 lt_cv_deplibs_check_method=pass_all
1242 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1243 lt_cv_file_magic_cmd='/usr/bin/file -L'
1244 lt_cv_file_magic_test_file=/shlib/libc.so
1247 cygwin* | mingw* |pw32*)
1248 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1249 lt_cv_file_magic_cmd='$OBJDUMP -f'
1252 darwin* | rhapsody*)
1253 # this will be overwritten by pass_all, but leave it in just in case
1254 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1255 lt_cv_file_magic_cmd='/usr/bin/file -L'
1257 rhapsody* | darwin1.012)
1258 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1261 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1264 lt_cv_deplibs_check_method=pass_all
1268 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1271 # Not sure whether the presence of OpenBSD here was a mistake.
1272 # Let's accept both of them until this is cleared up.
1273 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1274 lt_cv_file_magic_cmd=/usr/bin/file
1275 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1279 lt_cv_deplibs_check_method=pass_all
1284 lt_cv_deplibs_check_method=pass_all
1290 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1291 lt_cv_file_magic_cmd=/usr/bin/file
1292 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1295 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1296 lt_cv_file_magic_cmd=/usr/bin/file
1297 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1305 # this will be overridden with pass_all, but let us keep it just in case
1306 lt_cv_deplibs_check_method="file_magic ELF
32-bit MSB dynamic lib MIPS
- version
1"
1310 *-32|*"-32 ") libmagic=32-bit;;
1311 *-n32|*"-n32 ") libmagic=N32;;
1312 *-64|*"-64 ") libmagic=64-bit;;
1313 *) libmagic=never-match;;
1315 # this will be overridden with pass_all, but let us keep it just in case
1316 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
1319 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1320 lt_cv_deplibs_check_method=pass_all
1323 # This must be Linux ELF.
1326 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1327 lt_cv_deplibs_check_method=pass_all ;;
1329 # glibc up to 2.1.1 does not perform some relocations on ARM
1330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1332 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1336 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1337 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1339 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1345 lt_cv_file_magic_cmd=/usr/bin/file
1346 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1349 osf3* | osf4* | osf5*)
1350 # this will be overridden with pass_all, but let us keep it just in case
1351 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1352 lt_cv_file_magic_test_file=/shlib/libc.so
1353 lt_cv_deplibs_check_method=pass_all
1357 lt_cv_deplibs_check_method=pass_all
1361 lt_cv_deplibs_check_method=pass_all
1362 lt_cv_file_magic_test_file=/lib/libc.so
1365 sysv5uw[78]* | sysv4*uw2*)
1366 lt_cv_deplibs_check_method=pass_all
1369 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1370 case $host_vendor in
1372 lt_cv_deplibs_check_method=pass_all
1375 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]'
1376 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1384 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1385 file_magic_cmd=$lt_cv_file_magic_cmd
1386 deplibs_check_method=$lt_cv_deplibs_check_method
1388 echo $ac_n "checking
for object suffix
""...
$ac_c" 1>&6
1389 echo "configure
:1390: checking
for object suffix
" >&5
1390 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1391 echo $ac_n "(cached
) $ac_c" 1>&6
1394 echo 'int i = 1;' > conftest.$ac_ext
1395 if { (eval echo configure:1396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1396 for ac_file in conftest.*; do
1399 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1403 { echo "configure
: error
: installation or configuration problem
; compiler does not work
" 1>&2; exit 1; }
1408 echo "$ac_t""$ac_cv_objext" 1>&6
1409 OBJEXT=$ac_cv_objext
1410 ac_objext=$ac_cv_objext
1414 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
1415 echo "configure
:1416: checking
for executable suffix
" >&5
1416 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1417 echo $ac_n "(cached
) $ac_c" 1>&6
1419 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1423 echo 'int main () { return 0; }' > conftest.$ac_ext
1425 if { (eval echo configure:1426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1426 for file in conftest.*; do
1428 *.c | *.o | *.obj) ;;
1429 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1433 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
1436 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1441 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1442 echo "$ac_t""${ac_cv_exeext}" 1>&6
1445 if test $host != $build; then
1446 ac_tool_prefix=${host_alias}-
1451 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1453 # Only perform the check for file, if the check method requires it
1454 case $deplibs_check_method in
1456 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1457 echo $ac_n "checking
for ${ac_tool_prefix}file""...
$ac_c" 1>&6
1458 echo "configure
:1459: checking
for ${ac_tool_prefix}file" >&5
1459 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1460 echo $ac_n "(cached
) $ac_c" 1>&6
1464 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1467 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1470 ac_save_MAGIC_CMD="$MAGIC_CMD"
1471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1472 ac_dummy="/usr
/bin
:$PATH"
1473 for ac_dir in $ac_dummy; do
1474 test -z "$ac_dir" && ac_dir=.
1475 if test -f $ac_dir/${ac_tool_prefix}file; then
1476 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1477 if test -n "$file_magic_test_file"; then
1478 case $deplibs_check_method in
1480 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1482 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1483 egrep "$file_magic_regex" > /dev/null; then
1488 *** Warning: the command libtool uses to detect shared libraries,
1489 *** $file_magic_cmd, produces output that libtool cannot recognize.
1490 *** The result is that libtool may fail to recognize shared libraries
1491 *** as such. This will affect the creation of libtool libraries that
1492 *** depend on shared libraries, but programs linked with such libtool
1493 *** libraries will work regardless of this problem. Nevertheless, you
1494 *** may want to report the problem to your system manager and/or to
1495 *** bug-libtool@gnu.org
1505 MAGIC_CMD="$ac_save_MAGIC_CMD"
1510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1511 if test -n "$MAGIC_CMD"; then
1512 echo "$ac_t""$MAGIC_CMD" 1>&6
1514 echo "$ac_t""no
" 1>&6
1517 if test -z "$lt_cv_path_MAGIC_CMD"; then
1518 if test -n "$ac_tool_prefix"; then
1519 echo $ac_n "checking
for file""...
$ac_c" 1>&6
1520 echo "configure
:1521: checking
for file" >&5
1521 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1522 echo $ac_n "(cached
) $ac_c" 1>&6
1526 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1529 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1532 ac_save_MAGIC_CMD="$MAGIC_CMD"
1533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1534 ac_dummy="/usr
/bin
:$PATH"
1535 for ac_dir in $ac_dummy; do
1536 test -z "$ac_dir" && ac_dir=.
1537 if test -f $ac_dir/file; then
1538 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1539 if test -n "$file_magic_test_file"; then
1540 case $deplibs_check_method in
1542 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1543 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1544 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1545 egrep "$file_magic_regex" > /dev/null; then
1550 *** Warning: the command libtool uses to detect shared libraries,
1551 *** $file_magic_cmd, produces output that libtool cannot recognize.
1552 *** The result is that libtool may fail to recognize shared libraries
1553 *** as such. This will affect the creation of libtool libraries that
1554 *** depend on shared libraries, but programs linked with such libtool
1555 *** libraries will work regardless of this problem. Nevertheless, you
1556 *** may want to report the problem to your system manager and/or to
1557 *** bug-libtool@gnu.org
1567 MAGIC_CMD="$ac_save_MAGIC_CMD"
1572 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1573 if test -n "$MAGIC_CMD"; then
1574 echo "$ac_t""$MAGIC_CMD" 1>&6
1576 echo "$ac_t""no
" 1>&6
1588 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
1589 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1590 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1591 echo "configure
:1592: checking
for $ac_word" >&5
1592 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1593 echo $ac_n "(cached
) $ac_c" 1>&6
1595 if test -n "$RANLIB"; then
1596 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1600 for ac_dir in $ac_dummy; do
1601 test -z "$ac_dir" && ac_dir=.
1602 if test -f $ac_dir/$ac_word; then
1603 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
1610 RANLIB="$ac_cv_prog_RANLIB"
1611 if test -n "$RANLIB"; then
1612 echo "$ac_t""$RANLIB" 1>&6
1614 echo "$ac_t""no
" 1>&6
1618 if test -z "$ac_cv_prog_RANLIB"; then
1619 if test -n "$ac_tool_prefix"; then
1620 # Extract the first word of "ranlib
", so it can be a program name with args.
1621 set dummy ranlib; ac_word=$2
1622 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1623 echo "configure
:1624: checking
for $ac_word" >&5
1624 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1625 echo $ac_n "(cached
) $ac_c" 1>&6
1627 if test -n "$RANLIB"; then
1628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1632 for ac_dir in $ac_dummy; do
1633 test -z "$ac_dir" && ac_dir=.
1634 if test -f $ac_dir/$ac_word; then
1635 ac_cv_prog_RANLIB="ranlib
"
1640 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1643 RANLIB="$ac_cv_prog_RANLIB"
1644 if test -n "$RANLIB"; then
1645 echo "$ac_t""$RANLIB" 1>&6
1647 echo "$ac_t""no
" 1>&6
1655 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
1656 set dummy ${ac_tool_prefix}strip; ac_word=$2
1657 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1658 echo "configure
:1659: checking
for $ac_word" >&5
1659 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1660 echo $ac_n "(cached
) $ac_c" 1>&6
1662 if test -n "$STRIP"; then
1663 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1667 for ac_dir in $ac_dummy; do
1668 test -z "$ac_dir" && ac_dir=.
1669 if test -f $ac_dir/$ac_word; then
1670 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
1677 STRIP="$ac_cv_prog_STRIP"
1678 if test -n "$STRIP"; then
1679 echo "$ac_t""$STRIP" 1>&6
1681 echo "$ac_t""no
" 1>&6
1685 if test -z "$ac_cv_prog_STRIP"; then
1686 if test -n "$ac_tool_prefix"; then
1687 # Extract the first word of "strip
", so it can be a program name with args.
1688 set dummy strip; ac_word=$2
1689 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1690 echo "configure
:1691: checking
for $ac_word" >&5
1691 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1692 echo $ac_n "(cached
) $ac_c" 1>&6
1694 if test -n "$STRIP"; then
1695 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1699 for ac_dir in $ac_dummy; do
1700 test -z "$ac_dir" && ac_dir=.
1701 if test -f $ac_dir/$ac_word; then
1702 ac_cv_prog_STRIP="strip
"
1707 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1710 STRIP="$ac_cv_prog_STRIP"
1711 if test -n "$STRIP"; then
1712 echo "$ac_t""$STRIP" 1>&6
1714 echo "$ac_t""no
" 1>&6
1723 # Check for any special flags to pass to ltconfig.
1724 libtool_flags="--cache-file=$cache_file"
1725 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1726 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1727 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1728 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1729 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1732 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1733 if test "${enable_libtool_lock+set}" = set; then
1734 enableval="$enable_libtool_lock"
1738 test "x
$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1739 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1741 # Check whether --with-pic or --without-pic was given.
1742 if test "${with_pic+set}" = set; then
1749 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1750 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1752 # Some flags need to be propagated to the compiler or linker for good
1756 # Find out which ABI we are using.
1757 echo '#line 1758 "configure
"' > conftest.$ac_ext
1758 if { (eval echo configure:1759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1759 if test "$lt_cv_prog_gnu_ld" = yes; then
1760 case `/usr/bin/file conftest.$ac_objext` in
1762 LD="${LD-ld} -melf32bsmip"
1765 LD="${LD-ld} -melf32bmipn32"
1768 LD="${LD-ld} -melf64bmip"
1772 case `/usr/bin/file conftest.$ac_objext` in
1789 # Find out which ABI we are using.
1790 echo 'int i;' > conftest.$ac_ext
1791 if { (eval echo configure:1792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1792 case "`/usr/bin/file conftest.o`" in
1804 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1805 # Find out which ABI we are using.
1806 echo 'int i;' > conftest.$ac_ext
1807 if { (eval echo configure:1808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1808 case "`/usr/bin/file conftest.o`" in
1812 LD="${LD-ld} -m elf_i386
"
1814 ppc64-*linux*|powerpc64-*linux*)
1815 LD="${LD-ld} -m elf32ppclinux
"
1818 LD="${LD-ld} -m elf_s390
"
1821 LD="${LD-ld} -m elf32_sparc
"
1828 LD="${LD-ld} -m elf_x86_64
"
1830 ppc*-*linux*|powerpc*-*linux*)
1831 LD="${LD-ld} -m elf64ppc
"
1834 LD="${LD-ld} -m elf64_s390
"
1837 LD="${LD-ld} -m elf64_sparc
"
1847 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1848 SAVE_CFLAGS="$CFLAGS"
1849 CFLAGS="$CFLAGS -belf"
1850 echo $ac_n "checking whether the C compiler needs
-belf""...
$ac_c" 1>&6
1851 echo "configure
:1852: checking whether the C compiler needs
-belf" >&5
1852 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1853 echo $ac_n "(cached
) $ac_c" 1>&6
1857 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1860 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1861 cross_compiling=$ac_cv_prog_cc_cross
1863 cat > conftest.$ac_ext <<EOF
1864 #line 1865 "configure
"
1865 #include "confdefs.h
"
1871 if { (eval echo configure:1872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1873 lt_cv_cc_needs_belf=yes
1875 echo "configure
: failed program was
:" >&5
1876 cat conftest.$ac_ext >&5
1878 lt_cv_cc_needs_belf=no
1882 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1883 ac_cpp='$CPP $CPPFLAGS'
1884 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1885 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1886 cross_compiling=$ac_cv_prog_cc_cross
1890 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1891 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1892 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1893 CFLAGS="$SAVE_CFLAGS"
1901 # Save cache, so that ltconfig can load it
1902 cat > confcache <<\EOF
1903 # This file is a shell script that caches the results of configure
1904 # tests run on this system so they can be shared between configure
1905 # scripts and configure runs. It is not useful on other systems.
1906 # If it contains results you don't want to keep, you may remove or edit it.
1908 # By default, configure uses ./config.cache as the cache file,
1909 # creating it if it does not exist already. You can give configure
1910 # the --cache-file=FILE option to use a different cache file; that is
1911 # what configure does when it calls configure scripts in
1912 # subdirectories, so they share the cache.
1913 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1914 # config.status only pays attention to the cache file if you give it the
1915 # --recheck option to rerun configure.
1918 # The following way of writing the cache mishandles newlines in values,
1919 # but we know of no workaround that is simple, portable, and efficient.
1920 # So, don't put newlines in cache variables' values.
1921 # Ultrix sh set writes to stderr and can't be redirected directly,
1922 # and sets the high bit in the cache file unless we assign to the vars.
1924 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1926 # `set' does not quote correctly, so add quotes (double-quote substitution
1927 # turns \\\\ into \\, and sed turns \\ into \).
1929 -e "s
/'/'\\\\''/g
" \
1930 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
1933 # `set' quotes correctly as required by POSIX, so do not add quotes.
1934 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1937 if cmp -s $cache_file confcache; then
1940 if test -w $cache_file; then
1941 echo "updating cache
$cache_file"
1942 cat confcache > $cache_file
1944 echo "not updating unwritable cache
$cache_file"
1950 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1951 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1952 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1953 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
1954 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
1955 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
1956 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
1957 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1958 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
1959 || { echo "configure
: error
: libtool configure failed
" 1>&2; exit 1; }
1961 # Reload cache, that may have been modified by ltconfig
1962 if test -r "$cache_file"; then
1963 echo "loading cache
$cache_file"
1966 echo "creating cache
$cache_file"
1971 # This can be used to rebuild libtool when needed
1972 LIBTOOL_DEPS="$ac_aux_dir/ltconfig
$ac_aux_dir/ltmain.sh
$ac_aux_dir/ltcf-c.sh
"
1974 # Always use our own libtool.
1975 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1977 # Redirect the config.log output again, so that the ltconfig log is not
1978 # clobbered by the next message.
1979 exec 5>>./config.log
1987 # Find a good install program. We prefer a C program (faster),
1988 # so one script is as good as another. But avoid the broken or
1989 # incompatible versions:
1990 # SysV /etc/install, /usr/sbin/install
1991 # SunOS /usr/etc/install
1992 # IRIX /sbin/install
1994 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1995 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1996 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
1997 # ./install, which can be erroneously created by make from ./install.sh.
1998 echo $ac_n "checking
for a BSD compatible
install""...
$ac_c" 1>&6
1999 echo "configure
:2000: checking
for a BSD compatible
install" >&5
2000 if test -z "$INSTALL"; then
2001 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2002 echo $ac_n "(cached
) $ac_c" 1>&6
2004 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2005 for ac_dir in $PATH; do
2006 # Account for people who put trailing slashes in PATH elements.
2008 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2010 # OSF1 and SCO ODT 3.0 have their own names for install.
2011 # Don't use installbsd from OSF since it installs stuff as root
2013 for ac_prog in ginstall scoinst install; do
2014 if test -f $ac_dir/$ac_prog; then
2015 if test $ac_prog = install &&
2016 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2017 # AIX install. It has an incompatible calling convention.
2020 ac_cv_path_install="$ac_dir/$ac_prog -c"
2031 if test "${ac_cv_path_install+set}" = set; then
2032 INSTALL="$ac_cv_path_install"
2034 # As a last resort, use the slow shell script. We don't cache a
2035 # path for INSTALL within a source directory, because that will
2036 # break other packages using the cache if that directory is
2037 # removed, or if the path is relative.
2038 INSTALL="$ac_install_sh"
2041 echo "$ac_t""$INSTALL" 1>&6
2043 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2044 # It thinks the first close brace ends the variable substitution.
2045 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2047 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2049 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2051 echo $ac_n "checking whether build environment is sane
""...
$ac_c" 1>&6
2052 echo "configure
:2053: checking whether build environment is sane
" >&5
2055 echo timestamp > conftestfile
2056 # Do `set' in a subshell so we don't clobber the current shell's
2057 # arguments. Must try -L first in case configure is actually a
2058 # symlink; some systems play weird games with the mod time of symlinks
2059 # (eg FreeBSD returns the mod time of the symlink's containing
2062 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2063 if test "$
*" = "X
"; then
2065 set X `ls -t $srcdir/configure conftestfile`
2067 if test "$
*" != "X
$srcdir/configure conftestfile
" \
2068 && test "$
*" != "X conftestfile
$srcdir/configure
"; then
2070 # If neither matched, then we have a broken ls. This can happen
2071 # if, for instance, CONFIG_SHELL is bash and it inherits a
2072 # broken ls alias from the environment. This has actually
2073 # happened. Such a system could not be considered "sane
".
2074 { echo "configure
: error
: ls -t appears to fail. Make sure there is not a broken
2075 alias in your environment
" 1>&2; exit 1; }
2078 test "$2" = conftestfile
2084 { echo "configure
: error
: newly created
file is older than distributed files
!
2085 Check your system
clock" 1>&2; exit 1; }
2088 echo "$ac_t""yes" 1>&6
2089 if test "$program_transform_name" = s,x,x,; then
2090 program_transform_name=
2092 # Double any \ or $. echo might interpret backslashes.
2093 cat <<\EOF_SED > conftestsed
2094 s,\\,\\\\,g; s,\$,$$,g
2096 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2099 test "$program_prefix" != NONE &&
2100 program_transform_name="s
,^
,${program_prefix},; $program_transform_name"
2101 # Use a double $ so make ignores it.
2102 test "$program_suffix" != NONE &&
2103 program_transform_name="s
,\$\$
,${program_suffix},; $program_transform_name"
2105 # sed with no file args requires a program.
2106 test "$program_transform_name" = "" && program_transform_name="s
,x
,x
,"
2108 echo $ac_n "checking whether
${MAKE-make} sets \
${MAKE}""...
$ac_c" 1>&6
2109 echo "configure
:2110: checking whether
${MAKE-make} sets \
${MAKE}" >&5
2110 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2111 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2112 echo $ac_n "(cached
) $ac_c" 1>&6
2114 cat > conftestmake <<\EOF
2116 @echo 'ac_maketemp="${MAKE}"'
2118 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
2119 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2120 if test -n "$ac_maketemp"; then
2121 eval ac_cv_prog_make_${ac_make}_set=yes
2123 eval ac_cv_prog_make_${ac_make}_set=no
2127 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2128 echo "$ac_t""yes" 1>&6
2131 echo "$ac_t""no
" 1>&6
2132 SET_MAKE="MAKE
=${MAKE-make}"
2140 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2141 { echo "configure
: error
: source directory already configured
; run
"make distclean" there first
" 1>&2; exit 1; }
2146 missing_dir=`cd $ac_aux_dir && pwd`
2147 echo $ac_n "checking
for working aclocal
""...
$ac_c" 1>&6
2148 echo "configure
:2149: checking
for working aclocal
" >&5
2149 # Run test in a subshell; some versions of sh will print an error if
2150 # an executable is not found, even if stderr is redirected.
2151 # Redirect stdin to placate older versions of autoconf. Sigh.
2152 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
2154 echo "$ac_t""found
" 1>&6
2156 ACLOCAL="$missing_dir/missing aclocal
"
2157 echo "$ac_t""missing
" 1>&6
2160 echo $ac_n "checking
for working autoconf
""...
$ac_c" 1>&6
2161 echo "configure
:2162: checking
for working autoconf
" >&5
2162 # Run test in a subshell; some versions of sh will print an error if
2163 # an executable is not found, even if stderr is redirected.
2164 # Redirect stdin to placate older versions of autoconf. Sigh.
2165 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2167 echo "$ac_t""found
" 1>&6
2169 AUTOCONF="$missing_dir/missing autoconf
"
2170 echo "$ac_t""missing
" 1>&6
2173 echo $ac_n "checking
for working automake
""...
$ac_c" 1>&6
2174 echo "configure
:2175: checking
for working automake
" >&5
2175 # Run test in a subshell; some versions of sh will print an error if
2176 # an executable is not found, even if stderr is redirected.
2177 # Redirect stdin to placate older versions of autoconf. Sigh.
2178 if (automake --version) < /dev/null > /dev/null 2>&1; then
2180 echo "$ac_t""found
" 1>&6
2182 AUTOMAKE="$missing_dir/missing automake
"
2183 echo "$ac_t""missing
" 1>&6
2186 echo $ac_n "checking
for working autoheader
""...
$ac_c" 1>&6
2187 echo "configure
:2188: checking
for working autoheader
" >&5
2188 # Run test in a subshell; some versions of sh will print an error if
2189 # an executable is not found, even if stderr is redirected.
2190 # Redirect stdin to placate older versions of autoconf. Sigh.
2191 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2192 AUTOHEADER=autoheader
2193 echo "$ac_t""found
" 1>&6
2195 AUTOHEADER="$missing_dir/missing autoheader
"
2196 echo "$ac_t""missing
" 1>&6
2199 echo $ac_n "checking
for working makeinfo
""...
$ac_c" 1>&6
2200 echo "configure
:2201: checking
for working makeinfo
" >&5
2201 # Run test in a subshell; some versions of sh will print an error if
2202 # an executable is not found, even if stderr is redirected.
2203 # Redirect stdin to placate older versions of autoconf. Sigh.
2204 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2206 echo "$ac_t""found
" 1>&6
2208 MAKEINFO="$missing_dir/missing makeinfo
"
2209 echo "$ac_t""missing
" 1>&6
2216 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
2217 echo "configure
:2218: checking
for executable suffix
" >&5
2218 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2219 echo $ac_n "(cached
) $ac_c" 1>&6
2221 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2225 echo 'int main () { return 0; }' > conftest.$ac_ext
2227 if { (eval echo configure:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2228 for file in conftest.*; do
2230 *.c | *.o | *.obj) ;;
2231 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2235 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
2238 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2243 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2244 echo "$ac_t""${ac_cv_exeext}" 1>&6
2247 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
2248 echo "configure
:2249: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
2249 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2250 if test "${enable_maintainer_mode+set}" = set; then
2251 enableval="$enable_maintainer_mode"
2252 USE_MAINTAINER_MODE=$enableval
2254 USE_MAINTAINER_MODE=no
2257 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2260 if test $USE_MAINTAINER_MODE = yes; then
2261 MAINTAINER_MODE_TRUE=
2262 MAINTAINER_MODE_FALSE='#'
2264 MAINTAINER_MODE_TRUE='#'
2265 MAINTAINER_MODE_FALSE=
2267 MAINT=$MAINTAINER_MODE_TRUE
2271 # Extract the first word of "gcc
", so it can be a program name with args.
2272 set dummy gcc; ac_word=$2
2273 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2274 echo "configure
:2275: checking
for $ac_word" >&5
2275 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2276 echo $ac_n "(cached
) $ac_c" 1>&6
2278 if test -n "$CC"; then
2279 ac_cv_prog_CC="$CC" # Let the user override the test.
2281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2283 for ac_dir in $ac_dummy; do
2284 test -z "$ac_dir" && ac_dir=.
2285 if test -f $ac_dir/$ac_word; then
2294 if test -n "$CC"; then
2295 echo "$ac_t""$CC" 1>&6
2297 echo "$ac_t""no
" 1>&6
2300 if test -z "$CC"; then
2301 # Extract the first word of "cc
", so it can be a program name with args.
2302 set dummy cc; ac_word=$2
2303 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2304 echo "configure
:2305: checking
for $ac_word" >&5
2305 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2306 echo $ac_n "(cached
) $ac_c" 1>&6
2308 if test -n "$CC"; then
2309 ac_cv_prog_CC="$CC" # Let the user override the test.
2311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2314 for ac_dir in $ac_dummy; do
2315 test -z "$ac_dir" && ac_dir=.
2316 if test -f $ac_dir/$ac_word; then
2317 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
2318 ac_prog_rejected=yes
2326 if test $ac_prog_rejected = yes; then
2327 # We found a bogon in the path, so make sure we never use it.
2328 set dummy $ac_cv_prog_CC
2330 if test $# -gt 0; then
2331 # We chose a different compiler from the bogus one.
2332 # However, it has the same basename, so the bogon will be chosen
2333 # first if we set CC to just the basename; use the full file name.
2335 set dummy "$ac_dir/$ac_word" "$@
"
2343 if test -n "$CC"; then
2344 echo "$ac_t""$CC" 1>&6
2346 echo "$ac_t""no
" 1>&6
2349 if test -z "$CC"; then
2350 case "`uname -s`" in
2352 # Extract the first word of "cl
", so it can be a program name with args.
2353 set dummy cl; ac_word=$2
2354 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2355 echo "configure
:2356: checking
for $ac_word" >&5
2356 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2357 echo $ac_n "(cached
) $ac_c" 1>&6
2359 if test -n "$CC"; then
2360 ac_cv_prog_CC="$CC" # Let the user override the test.
2362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2364 for ac_dir in $ac_dummy; do
2365 test -z "$ac_dir" && ac_dir=.
2366 if test -f $ac_dir/$ac_word; then
2375 if test -n "$CC"; then
2376 echo "$ac_t""$CC" 1>&6
2378 echo "$ac_t""no
" 1>&6
2383 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
2386 echo $ac_n "checking whether the C compiler
($CC $CFLAGS $LDFLAGS) works
""...
$ac_c" 1>&6
2387 echo "configure
:2388: checking whether the C compiler
($CC $CFLAGS $LDFLAGS) works
" >&5
2390 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2391 ac_cpp='$CPP $CPPFLAGS'
2392 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2393 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2394 cross_compiling=$ac_cv_prog_cc_cross
2396 cat > conftest.$ac_ext << EOF
2398 #line 2399 "configure
"
2399 #include "confdefs.h
"
2403 if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2404 ac_cv_prog_cc_works=yes
2405 # If we can't run a trivial program, we are probably using a cross compiler.
2406 if (./conftest; exit) 2>/dev/null; then
2407 ac_cv_prog_cc_cross=no
2409 ac_cv_prog_cc_cross=yes
2412 echo "configure
: failed program was
:" >&5
2413 cat conftest.$ac_ext >&5
2414 ac_cv_prog_cc_works=no
2418 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2421 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2422 cross_compiling=$ac_cv_prog_cc_cross
2424 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2425 if test $ac_cv_prog_cc_works = no; then
2426 { echo "configure
: error
: installation or configuration problem
: C compiler cannot create executables.
" 1>&2; exit 1; }
2428 echo $ac_n "checking whether the C compiler
($CC $CFLAGS $LDFLAGS) is a cross-compiler
""...
$ac_c" 1>&6
2429 echo "configure
:2430: checking whether the C compiler
($CC $CFLAGS $LDFLAGS) is a cross-compiler
" >&5
2430 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2431 cross_compiling=$ac_cv_prog_cc_cross
2433 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
2434 echo "configure
:2435: checking whether we are using GNU C
" >&5
2435 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2436 echo $ac_n "(cached
) $ac_c" 1>&6
2438 cat > conftest.c <<EOF
2443 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2450 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2452 if test $ac_cv_prog_gcc = yes; then
2458 ac_test_CFLAGS="${CFLAGS+set}"
2459 ac_save_CFLAGS="$CFLAGS"
2461 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
2462 echo "configure
:2463: checking whether
${CC-cc} accepts
-g" >&5
2463 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2464 echo $ac_n "(cached
) $ac_c" 1>&6
2466 echo 'void f(){}' > conftest.c
2467 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2476 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2477 if test "$ac_test_CFLAGS" = set; then
2478 CFLAGS="$ac_save_CFLAGS"
2479 elif test $ac_cv_prog_cc_g = yes; then
2480 if test "$GCC" = yes; then
2486 if test "$GCC" = yes; then
2500 if test $ac_cv_header_sys_mman_h != yes \
2501 || test $ac_cv_func_mmap != yes; then
2502 ac_cv_func_mmap_file=no
2503 ac_cv_func_mmap_dev_zero=no
2504 ac_cv_func_mmap_anon=no
2506 echo $ac_n "checking whether read-only mmap of a plain
file works
""...
$ac_c" 1>&6
2507 echo "configure
:2508: checking whether read-only mmap of a plain
file works
" >&5
2508 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
2509 echo $ac_n "(cached
) $ac_c" 1>&6
2511 # Add a system to this blacklist if
2512 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
2513 # memory area containing the same data that you'd get if you applied
2514 # read() to the same fd. The only system known to have a problem here
2515 # is VMS, where text files have record structure.
2518 ac_cv_func_mmap_file=no ;;
2520 ac_cv_func_mmap_file=yes;;
2524 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
2525 echo $ac_n "checking whether mmap from
/dev
/zero works
""...
$ac_c" 1>&6
2526 echo "configure
:2527: checking whether mmap from
/dev
/zero works
" >&5
2527 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
2528 echo $ac_n "(cached
) $ac_c" 1>&6
2530 # Add a system to this blacklist if it has mmap() but /dev/zero
2531 # does not exist, or if mmapping /dev/zero does not give anonymous
2532 # zeroed pages with both the following properties:
2533 # 1. If you map N consecutive pages in with one call, and then
2534 # unmap any subset of those pages, the pages that were not
2535 # explicitly unmapped remain accessible.
2536 # 2. If you map two adjacent blocks of memory and then unmap them
2537 # both at once, they must both go away.
2538 # Systems known to be in this category are Windows (all variants),
2541 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
2542 ac_cv_func_mmap_dev_zero=no ;;
2544 ac_cv_func_mmap_dev_zero=yes;;
2548 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
2550 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
2551 echo $ac_n "checking
for MAP_ANON
(YMOUS
)""...
$ac_c" 1>&6
2552 echo "configure
:2553: checking
for MAP_ANON
(YMOUS
)" >&5
2553 if eval "test \"`echo '$''{'ac_cv_decl_map_anon'+set}'`\" = set"; then
2554 echo $ac_n "(cached
) $ac_c" 1>&6
2556 cat > conftest.$ac_ext <<EOF
2557 #line 2558 "configure
"
2558 #include "confdefs.h
"
2559 #include <sys/types.h>
2560 #include <sys/mman.h>
2563 #ifndef MAP_ANONYMOUS
2564 #define MAP_ANONYMOUS MAP_ANON
2568 int n = MAP_ANONYMOUS;
2571 if { (eval echo configure:2572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2573 ac_cv_decl_map_anon=yes
2575 echo "configure
: failed program was
:" >&5
2576 cat conftest.$ac_ext >&5
2578 ac_cv_decl_map_anon=no
2583 echo "$ac_t""$ac_cv_decl_map_anon" 1>&6
2585 if test $ac_cv_decl_map_anon = no; then
2586 ac_cv_func_mmap_anon=no
2588 echo $ac_n "checking whether mmap with MAP_ANON
(YMOUS
) works
""...
$ac_c" 1>&6
2589 echo "configure
:2590: checking whether mmap with MAP_ANON
(YMOUS
) works
" >&5
2590 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
2591 echo $ac_n "(cached
) $ac_c" 1>&6
2593 # Add a system to this blacklist if it has mmap() and MAP_ANON or
2594 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
2595 # doesn't give anonymous zeroed pages with the same properties listed
2596 # above for use of /dev/zero.
2597 # Systems known to be in this category are Windows, VMS, and SCO Unix.
2599 vms* | cygwin* | pe | mingw* | sco* | udk* )
2600 ac_cv_func_mmap_anon=no ;;
2602 ac_cv_func_mmap_anon=yes;;
2606 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
2610 if test $ac_cv_func_mmap_file = yes; then
2611 cat >> confdefs.h <<\EOF
2612 #define HAVE_MMAP_FILE 1
2616 if test $ac_cv_func_mmap_dev_zero = yes; then
2617 cat >> confdefs.h <<\EOF
2618 #define HAVE_MMAP_DEV_ZERO 1
2622 if test $ac_cv_func_mmap_anon = yes; then
2623 cat >> confdefs.h <<\EOF
2624 #define HAVE_MMAP_ANON 1
2632 if test -d $srcdir/testsuite; then
2634 TESTSUBDIR_FALSE='#'
2643 i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
2644 i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
2645 i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
2646 i*86-*-freebsd*) TARGET=X86; TARGETDIR=x86;;
2647 i*86-*-netbsdelf*) TARGET=X86; TARGETDIR=x86;;
2648 i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
2649 i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
2650 i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
2651 sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
2652 sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
2653 sparc-*-linux* | sparc-*-netbsdelf*) TARGET=SPARC; TARGETDIR=sparc;;
2654 sparc64-*-linux* | sparc64-*-netbsd*) TARGET=SPARC; TARGETDIR=sparc;;
2655 alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd* | alpha*-*-netbsd*) TARGET=ALPHA; TARGETDIR=alpha;;
2656 ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
2657 m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
2659 mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS_IRIX; TARGETDIR=mips;;
2660 mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;;
2661 powerpc*-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
2662 powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
2663 powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
2664 powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
2665 rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
2666 arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
2667 arm*-*-netbsdelf*) TARGET=ARM; TARGETDIR=arm;;
2668 s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
2669 s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;
2670 x86_64-*-linux*) TARGET=X86_64; TARGETDIR=x86;;
2671 sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
2672 sh64-*-linux* | sh5*-*-linux*) TARGET=SH64; TARGETDIR=sh64;;
2677 if test $TARGETDIR = unknown; then
2678 { echo "configure
: error
: "libffi has not been ported to $host."" 1>&2; exit 1; }
2683 if test x$TARGET = xMIPS_IRIX; then
2692 if test x$TARGET = xMIPS_LINUX; then
2694 MIPS_LINUX_FALSE='#'
2701 if test x$TARGET = xSPARC; then
2710 if test x$TARGET = xX86; then
2719 if test x$TARGET = xX86_WIN32; then
2728 if test x$TARGET = xALPHA; then
2737 if test x$TARGET = xIA64; then
2746 if test x$TARGET = xM68K; then
2755 if test x$TARGET = xPOWERPC; then
2764 if test x$TARGET = xPOWERPC_AIX; then
2766 POWERPC_AIX_FALSE='#'
2768 POWERPC_AIX_TRUE='#'
2773 if test x$TARGET = xPOWERPC_DARWIN; then
2774 POWERPC_DARWIN_TRUE=
2775 POWERPC_DARWIN_FALSE='#'
2777 POWERPC_DARWIN_TRUE='#'
2778 POWERPC_DARWIN_FALSE=
2782 if test x$TARGET = xARM; then
2791 if test x$TARGET = xS390; then
2800 if test x$TARGET = xX86_64; then
2809 if test x$TARGET = xSH; then
2818 if test x$TARGET = xSH64; then
2827 xMIPS*) TARGET=MIPS ;;
2831 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
2832 echo "configure
:2833: checking how to run the C preprocessor
" >&5
2833 # On Suns, sometimes $CPP names a directory.
2834 if test -n "$CPP" && test -d "$CPP"; then
2837 if test -z "$CPP"; then
2838 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2839 echo $ac_n "(cached
) $ac_c" 1>&6
2841 # This must be in double quotes, not single quotes, because CPP may get
2842 # substituted into the Makefile and "${CC-cc}" will confuse make.
2844 # On the NeXT, cc -E runs the code through the compiler's parser,
2845 # not just through cpp.
2846 cat > conftest.$ac_ext <<EOF
2847 #line 2848 "configure
"
2848 #include "confdefs.h
"
2852 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2853 { (eval echo configure:2854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2855 if test -z "$ac_err"; then
2859 echo "configure
: failed program was
:" >&5
2860 cat conftest.$ac_ext >&5
2862 CPP="${CC-cc} -E -traditional-cpp"
2863 cat > conftest.$ac_ext <<EOF
2864 #line 2865 "configure
"
2865 #include "confdefs.h
"
2869 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2870 { (eval echo configure:2871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2872 if test -z "$ac_err"; then
2876 echo "configure
: failed program was
:" >&5
2877 cat conftest.$ac_ext >&5
2879 CPP="${CC-cc} -nologo -E"
2880 cat > conftest.$ac_ext <<EOF
2881 #line 2882 "configure
"
2882 #include "confdefs.h
"
2886 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2887 { (eval echo configure:2888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2889 if test -z "$ac_err"; then
2893 echo "configure
: failed program was
:" >&5
2894 cat conftest.$ac_ext >&5
2903 ac_cv_prog_CPP="$CPP"
2905 CPP="$ac_cv_prog_CPP"
2907 ac_cv_prog_CPP="$CPP"
2909 echo "$ac_t""$CPP" 1>&6
2911 echo $ac_n "checking
for ANSI C header files
""...
$ac_c" 1>&6
2912 echo "configure
:2913: checking
for ANSI C header files
" >&5
2913 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2914 echo $ac_n "(cached
) $ac_c" 1>&6
2916 cat > conftest.$ac_ext <<EOF
2917 #line 2918 "configure
"
2918 #include "confdefs.h
"
2924 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2925 { (eval echo configure:2926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2927 if test -z "$ac_err"; then
2929 ac_cv_header_stdc=yes
2932 echo "configure
: failed program was
:" >&5
2933 cat conftest.$ac_ext >&5
2935 ac_cv_header_stdc=no
2939 if test $ac_cv_header_stdc = yes; then
2940 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2941 cat > conftest.$ac_ext <<EOF
2942 #line 2943 "configure
"
2943 #include "confdefs.h
"
2946 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2947 egrep "memchr
" >/dev/null 2>&1; then
2951 ac_cv_header_stdc=no
2957 if test $ac_cv_header_stdc = yes; then
2958 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2959 cat > conftest.$ac_ext <<EOF
2960 #line 2961 "configure
"
2961 #include "confdefs.h
"
2964 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2965 egrep "free
" >/dev/null 2>&1; then
2969 ac_cv_header_stdc=no
2975 if test $ac_cv_header_stdc = yes; then
2976 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2977 if test "$cross_compiling" = yes; then
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure
"
2982 #include "confdefs.h
"
2984 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2985 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2987 int main () { int i; for (i = 0; i < 256; i++)
2988 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2992 if { (eval echo configure:2993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2996 echo "configure
: failed program was
:" >&5
2997 cat conftest.$ac_ext >&5
2999 ac_cv_header_stdc=no
3007 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3008 if test $ac_cv_header_stdc = yes; then
3009 cat >> confdefs.h <<\EOF
3010 #define STDC_HEADERS 1
3015 for ac_func in memcpy
3017 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3018 echo "configure
:3019: checking
for $ac_func" >&5
3019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3020 echo $ac_n "(cached
) $ac_c" 1>&6
3022 cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure
"
3024 #include "confdefs.h
"
3025 /* System header to define __stub macros and hopefully few prototypes,
3026 which can conflict with char $ac_func(); below. */
3028 /* Override any gcc2 internal prototype to avoid an error. */
3029 /* We use char because int might match the return type of a gcc2
3030 builtin and then its argument prototype would still apply. */
3035 /* The GNU C library defines this for functions which it implements
3036 to always fail with ENOSYS. Some functions are actually named
3037 something starting with __ and the normal name is an alias. */
3038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3046 if { (eval echo configure:3047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3048 eval "ac_cv_func_
$ac_func=yes"
3050 echo "configure
: failed program was
:" >&5
3051 cat conftest.$ac_ext >&5
3053 eval "ac_cv_func_
$ac_func=no
"
3058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3059 echo "$ac_t""yes" 1>&6
3060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3061 cat >> confdefs.h <<EOF
3062 #define $ac_tr_func 1
3066 echo "$ac_t""no
" 1>&6
3070 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3071 # for constant arguments. Useless!
3072 echo $ac_n "checking
for working alloca.h
""...
$ac_c" 1>&6
3073 echo "configure
:3074: checking
for working alloca.h
" >&5
3074 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3075 echo $ac_n "(cached
) $ac_c" 1>&6
3077 cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure
"
3079 #include "confdefs.h
"
3082 char *p = alloca(2 * sizeof(int));
3085 if { (eval echo configure:3086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3087 ac_cv_header_alloca_h=yes
3089 echo "configure
: failed program was
:" >&5
3090 cat conftest.$ac_ext >&5
3092 ac_cv_header_alloca_h=no
3097 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3098 if test $ac_cv_header_alloca_h = yes; then
3099 cat >> confdefs.h <<\EOF
3100 #define HAVE_ALLOCA_H 1
3105 echo $ac_n "checking
for alloca
""...
$ac_c" 1>&6
3106 echo "configure
:3107: checking
for alloca
" >&5
3107 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3108 echo $ac_n "(cached
) $ac_c" 1>&6
3110 cat > conftest.$ac_ext <<EOF
3111 #line 3112 "configure
"
3112 #include "confdefs.h
"
3115 # define alloca __builtin_alloca
3118 # include <malloc.h>
3119 # define alloca _alloca
3122 # include <alloca.h>
3127 # ifndef alloca /* predefined by HP cc +Olibcalls */
3136 char *p = (char *) alloca(1);
3139 if { (eval echo configure:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3141 ac_cv_func_alloca_works=yes
3143 echo "configure
: failed program was
:" >&5
3144 cat conftest.$ac_ext >&5
3146 ac_cv_func_alloca_works=no
3151 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3152 if test $ac_cv_func_alloca_works = yes; then
3153 cat >> confdefs.h <<\EOF
3154 #define HAVE_ALLOCA 1
3159 if test $ac_cv_func_alloca_works = no; then
3160 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3161 # that cause trouble. Some versions do not even contain alloca or
3162 # contain a buggy version. If you still want to use their alloca,
3163 # use ar to extract alloca.o from them instead of compiling alloca.c.
3164 ALLOCA=alloca.${ac_objext}
3165 cat >> confdefs.h <<\EOF
3170 echo $ac_n "checking whether alloca needs Cray hooks
""...
$ac_c" 1>&6
3171 echo "configure
:3172: checking whether alloca needs Cray hooks
" >&5
3172 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3173 echo $ac_n "(cached
) $ac_c" 1>&6
3175 cat > conftest.$ac_ext <<EOF
3176 #line 3177 "configure
"
3177 #include "confdefs.h
"
3178 #if defined(CRAY) && ! defined(CRAY2)
3185 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3186 egrep "webecray
" >/dev/null 2>&1; then
3197 echo "$ac_t""$ac_cv_os_cray" 1>&6
3198 if test $ac_cv_os_cray = yes; then
3199 for ac_func in _getb67 GETB67 getb67; do
3200 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3201 echo "configure
:3202: checking
for $ac_func" >&5
3202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3203 echo $ac_n "(cached
) $ac_c" 1>&6
3205 cat > conftest.$ac_ext <<EOF
3206 #line 3207 "configure
"
3207 #include "confdefs.h
"
3208 /* System header to define __stub macros and hopefully few prototypes,
3209 which can conflict with char $ac_func(); below. */
3211 /* Override any gcc2 internal prototype to avoid an error. */
3212 /* We use char because int might match the return type of a gcc2
3213 builtin and then its argument prototype would still apply. */
3218 /* The GNU C library defines this for functions which it implements
3219 to always fail with ENOSYS. Some functions are actually named
3220 something starting with __ and the normal name is an alias. */
3221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3229 if { (eval echo configure:3230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3231 eval "ac_cv_func_
$ac_func=yes"
3233 echo "configure
: failed program was
:" >&5
3234 cat conftest.$ac_ext >&5
3236 eval "ac_cv_func_
$ac_func=no
"
3241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3242 echo "$ac_t""yes" 1>&6
3243 cat >> confdefs.h <<EOF
3244 #define CRAY_STACKSEG_END $ac_func
3249 echo "$ac_t""no
" 1>&6
3255 echo $ac_n "checking stack direction
for C alloca
""...
$ac_c" 1>&6
3256 echo "configure
:3257: checking stack direction
for C alloca
" >&5
3257 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3258 echo $ac_n "(cached
) $ac_c" 1>&6
3260 if test "$cross_compiling" = yes; then
3261 ac_cv_c_stack_direction=0
3263 cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure
"
3265 #include "confdefs.h
"
3266 find_stack_direction ()
3268 static char *addr = 0;
3273 return find_stack_direction ();
3276 return (&dummy > addr) ? 1 : -1;
3280 exit (find_stack_direction() < 0);
3283 if { (eval echo configure:3284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3285 ac_cv_c_stack_direction=1
3287 echo "configure
: failed program was
:" >&5
3288 cat conftest.$ac_ext >&5
3290 ac_cv_c_stack_direction=-1
3297 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3298 cat >> confdefs.h <<EOF
3299 #define STACK_DIRECTION $ac_cv_c_stack_direction
3305 echo $ac_n "checking size of double
""...
$ac_c" 1>&6
3306 echo "configure
:3307: checking size of double
" >&5
3307 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
3308 echo $ac_n "(cached
) $ac_c" 1>&6
3310 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure
"
3313 #include "confdefs.h
"
3314 #include "confdefs.h
"
3315 #include <sys/types.h>
3319 switch (0) case 0: case (sizeof (double) == $ac_size):;
3322 if { (eval echo configure:3323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3324 ac_cv_sizeof_double=$ac_size
3326 echo "configure
: failed program was
:" >&5
3327 cat conftest.$ac_ext >&5
3330 if test x$ac_cv_sizeof_double != x ; then break; fi
3335 if test x$ac_cv_sizeof_double = x ; then
3336 { echo "configure
: error
: cannot determine a size
for double
" 1>&2; exit 1; }
3338 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
3339 cat >> confdefs.h <<EOF
3340 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
3344 echo $ac_n "checking size of long double
""...
$ac_c" 1>&6
3345 echo "configure
:3346: checking size of long double
" >&5
3346 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3347 echo $ac_n "(cached
) $ac_c" 1>&6
3349 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3350 cat > conftest.$ac_ext <<EOF
3351 #line 3352 "configure
"
3352 #include "confdefs.h
"
3353 #include "confdefs.h
"
3354 #include <sys/types.h>
3358 switch (0) case 0: case (sizeof (long double) == $ac_size):;
3361 if { (eval echo configure:3362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3363 ac_cv_sizeof_long_double=$ac_size
3365 echo "configure
: failed program was
:" >&5
3366 cat conftest.$ac_ext >&5
3369 if test x$ac_cv_sizeof_long_double != x ; then break; fi
3374 if test x$ac_cv_sizeof_long_double = x ; then
3375 { echo "configure
: error
: cannot determine a size
for long double
" 1>&2; exit 1; }
3377 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3378 cat >> confdefs.h <<EOF
3379 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3384 # Also AC_SUBST this variable for ffi.h.
3386 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
3387 if test $ac_cv_sizeof_long_double != 0; then
3389 cat >> confdefs.h <<\EOF
3390 #define HAVE_LONG_DOUBLE 1
3397 echo $ac_n "checking whether byte ordering is bigendian
""...
$ac_c" 1>&6
3398 echo "configure
:3399: checking whether byte ordering is bigendian
" >&5
3399 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3400 echo $ac_n "(cached
) $ac_c" 1>&6
3402 ac_cv_c_bigendian=unknown
3403 # See if sys/param.h defines the BYTE_ORDER macro.
3404 cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure
"
3406 #include "confdefs.h
"
3407 #include <sys/types.h>
3408 #include <sys/param.h>
3411 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3416 if { (eval echo configure:3417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3418 # It does; now see whether it defined to BIG_ENDIAN or not.
3419 cat > conftest.$ac_ext <<EOF
3420 #line 3421 "configure
"
3421 #include "confdefs.h
"
3422 #include <sys/types.h>
3423 #include <sys/param.h>
3426 #if BYTE_ORDER != BIG_ENDIAN
3431 if { (eval echo configure:3432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3433 ac_cv_c_bigendian=yes
3435 echo "configure
: failed program was
:" >&5
3436 cat conftest.$ac_ext >&5
3438 ac_cv_c_bigendian=no
3442 echo "configure
: failed program was
:" >&5
3443 cat conftest.$ac_ext >&5
3446 if test $ac_cv_c_bigendian = unknown; then
3447 if test "$cross_compiling" = yes; then
3448 echo $ac_n "cross-compiling...
" 2>&6
3450 cat > conftest.$ac_ext <<EOF
3451 #line 3452 "configure
"
3452 #include "confdefs.h
"
3454 /* Are we little or big endian? From Harbison&Steele. */
3458 char c[sizeof (long)];
3461 exit (u.c[sizeof (long) - 1] == 1);
3464 if { (eval echo configure:3465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3466 ac_cv_c_bigendian=no
3468 echo "configure
: failed program was
:" >&5
3469 cat conftest.$ac_ext >&5
3471 ac_cv_c_bigendian=yes
3479 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3480 if test $ac_cv_c_bigendian = unknown; then
3481 echo $ac_n "checking to probe
for byte ordering
""...
$ac_c" 1>&6
3482 echo "configure
:3483: checking to probe
for byte ordering
" >&5
3484 cat >conftest.c <<EOF
3485 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3486 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3487 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
3488 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3489 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3490 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
3491 int main() { _ascii (); _ebcdic (); return 0; }
3493 if test -f conftest.c ; then
3494 if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
3495 if test `grep -l BIGenDianSyS conftest.o` ; then
3496 echo $ac_n ' big endian probe OK, ' 1>&6
3497 ac_cv_c_bigendian=yes
3499 if test `grep -l LiTTleEnDian conftest.o` ; then
3500 echo $ac_n ' little endian probe OK, ' 1>&6
3501 if test $ac_cv_c_bigendian = yes ; then
3502 ac_cv_c_bigendian=unknown;
3504 ac_cv_c_bigendian=no
3507 echo $ac_n 'guessing bigendian ... ' >&6
3510 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3512 if test $ac_cv_c_bigendian = yes; then
3513 cat >> confdefs.h <<\EOF
3514 #define WORDS_BIGENDIAN 1
3517 cat >> confdefs.h <<\EOF
3518 #define HOST_WORDS_BIG_ENDIAN 1
3525 cat >> confdefs.h <<EOF
3526 #define BYTEORDER $BYTEORDER
3529 if test $ac_cv_c_bigendian = unknown; then
3530 { echo "configure
: error
: unknown endianess
- sorry
" 1>&2; exit 1; }
3534 if test x$TARGET = xSPARC; then
3535 echo $ac_n "checking assembler and linker support unaligned pc related relocs
""...
$ac_c" 1>&6
3536 echo "configure
:3537: checking assembler and linker support unaligned pc related relocs
" >&5
3537 if eval "test \"`echo '$''{'libffi_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
3538 echo $ac_n "(cached
) $ac_c" 1>&6
3541 save_CFLAGS="$CFLAGS"
3542 save_LDFLAGS="$LDFLAGS"
3543 CFLAGS="$CFLAGS -fpic"
3544 LDFLAGS="$LDFLAGS -shared"
3545 cat > conftest.$ac_ext <<EOF
3546 #line 3547 "configure
"
3547 #include "confdefs.h
"
3548 asm (".text
; foo
: nop
; .data
; .align
4; .byte
0; .uaword
%r_disp32
(foo
); .text
");
3553 if { (eval echo configure:3554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3555 libffi_cv_as_sparc_ua_pcrel=yes
3557 echo "configure
: failed program was
:" >&5
3558 cat conftest.$ac_ext >&5
3560 libffi_cv_as_sparc_ua_pcrel=no
3563 CFLAGS="$save_CFLAGS"
3564 LDFLAGS="$save_LDFLAGS"
3567 echo "$ac_t""$libffi_cv_as_sparc_ua_pcrel" 1>&6
3568 if test "x
$libffi_cv_as_sparc_ua_pcrel" = xyes; then
3569 cat >> confdefs.h <<\EOF
3570 #define HAVE_AS_SPARC_UA_PCREL 1
3575 echo $ac_n "checking assembler .register pseudo-op support
""...
$ac_c" 1>&6
3576 echo "configure
:3577: checking assembler .register pseudo-op support
" >&5
3577 if eval "test \"`echo '$''{'libffi_cv_as_register_pseudo_op'+set}'`\" = set"; then
3578 echo $ac_n "(cached
) $ac_c" 1>&6
3581 libffi_cv_as_register_pseudo_op=unknown
3582 # Check if we have .register
3583 cat > conftest.$ac_ext <<EOF
3584 #line 3585 "configure
"
3585 #include "confdefs.h
"
3586 asm (".register
%g2
, #scratch");
3591 if { (eval echo configure
:3592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3593 libffi_cv_as_register_pseudo_op
=yes
3595 echo "configure: failed program was:" >&5
3596 cat conftest.
$ac_ext >&5
3598 libffi_cv_as_register_pseudo_op
=no
3604 echo "$ac_t""$libffi_cv_as_register_pseudo_op" 1>&6
3605 if test "x$libffi_cv_as_register_pseudo_op" = xyes
; then
3606 cat >> confdefs.h
<<\EOF
3607 #define HAVE_AS_REGISTER_PSEUDO_OP 1
3613 echo $ac_n "checking whether .eh_frame section should be read-only""... $ac_c" 1>&6
3614 echo "configure:3615: checking whether .eh_frame section should be read-only" >&5
3615 if eval "test \"`echo '$''{'libffi_cv_ro_eh_frame'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3619 libffi_cv_ro_eh_frame
=no
3620 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
3621 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c
> /dev
/null
2>&1; then
3622 if grep '.section.*eh_frame.*"a"' conftest.s
> /dev
/null
; then
3623 libffi_cv_ro_eh_frame
=yes
3624 elif grep '.section.*eh_frame.*#alloc' conftest.c \
3625 |
grep -v '#write' > /dev
/null
; then
3626 libffi_cv_ro_eh_frame
=yes
3633 echo "$ac_t""$libffi_cv_ro_eh_frame" 1>&6
3634 if test "x$libffi_cv_ro_eh_frame" = xyes
; then
3635 cat >> confdefs.h
<<\EOF
3636 #define HAVE_RO_EH_FRAME 1
3639 cat >> confdefs.h
<<\EOF
3640 #define EH_FRAME_FLAGS "a"
3644 cat >> confdefs.h
<<\EOF
3645 #define EH_FRAME_FLAGS "aw"
3655 # Check whether --enable-debug or --disable-debug was given.
3656 if test "${enable_debug+set}" = set; then
3657 enableval
="$enable_debug"
3658 if test "$enable_debug" = "yes"; then
3659 cat >> confdefs.h
<<\EOF
3667 # Check whether --enable-structs or --disable-structs was given.
3668 if test "${enable_structs+set}" = set; then
3669 enableval
="$enable_structs"
3670 if test "$enable_structs" = "no"; then
3671 cat >> confdefs.h
<<\EOF
3672 #define FFI_NO_STRUCTS 1
3679 # Check whether --enable-raw-api or --disable-raw-api was given.
3680 if test "${enable_raw_api+set}" = set; then
3681 enableval
="$enable_raw_api"
3682 if test "$enable_raw_api" = "no"; then
3683 cat >> confdefs.h
<<\EOF
3684 #define FFI_NO_RAW_API 1
3691 # Check whether --enable-purify-safety or --disable-purify-safety was given.
3692 if test "${enable_purify_safety+set}" = set; then
3693 enableval
="$enable_purify_safety"
3694 if test "$enable_purify_safety" = "yes"; then
3695 cat >> confdefs.h
<<\EOF
3696 #define USING_PURIFY 1
3703 if test -n "$with_cross_host" &&
3704 test x
"$with_cross_host" != x
"no"; then
3705 toolexecdir
='$(exec_prefix)/$(target_alias)'
3706 toolexeclibdir
='$(toolexecdir)/lib'
3708 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3709 toolexeclibdir
='$(libdir)'
3711 multi_os_directory
=`$CC -print-multi-os-directory`
3712 case $multi_os_directory in
3713 .
) ;; # Avoid trailing /.
3714 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3719 #Figure out where generated headers like ffitarget.h get installed.
3720 gcc_version_trigger
=${srcdir}/..
/gcc
/version.c
3721 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3722 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
3723 tool_include_dir
='$(libdir)/gcc/$(target_alias)/'${gcc_version}/include
3728 if test "${multilib}" = "yes"; then
3729 multilib_arg
="--enable-multilib"
3735 cat > confcache
<<\EOF
3736 # This file is a shell script that caches the results of configure
3737 # tests run on this system so they can be shared between configure
3738 # scripts and configure runs. It is not useful on other systems.
3739 # If it contains results you don't want to keep, you may remove or edit it.
3741 # By default, configure uses ./config.cache as the cache file,
3742 # creating it if it does not exist already. You can give configure
3743 # the --cache-file=FILE option to use a different cache file; that is
3744 # what configure does when it calls configure scripts in
3745 # subdirectories, so they share the cache.
3746 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3747 # config.status only pays attention to the cache file if you give it the
3748 # --recheck option to rerun configure.
3751 # The following way of writing the cache mishandles newlines in values,
3752 # but we know of no workaround that is simple, portable, and efficient.
3753 # So, don't put newlines in cache variables' values.
3754 # Ultrix sh set writes to stderr and can't be redirected directly,
3755 # and sets the high bit in the cache file unless we assign to the vars.
3757 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3759 # `set' does not quote correctly, so add quotes (double-quote substitution
3760 # turns \\\\ into \\, and sed turns \\ into \).
3762 -e "s/'/'\\\\''/g" \
3763 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3766 # `set' quotes correctly as required by POSIX, so do not add quotes.
3767 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3770 if cmp -s $cache_file confcache
; then
3773 if test -w $cache_file; then
3774 echo "updating cache $cache_file"
3775 cat confcache
> $cache_file
3777 echo "not updating unwritable cache $cache_file"
3782 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3784 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3785 # Let make expand exec_prefix.
3786 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3788 # Any assignment to VPATH causes Sun make to only execute
3789 # the first set of double-colon rules, so remove it if not needed.
3790 # If there is a colon in the path, we need to keep it.
3791 if test "x$srcdir" = x.
; then
3792 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3795 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3797 DEFS
=-DHAVE_CONFIG_H
3799 # Without the "./", some shells look in PATH for config.status.
3800 : ${CONFIG_STATUS=./config.status}
3802 echo creating
$CONFIG_STATUS
3803 rm -f $CONFIG_STATUS
3804 cat > $CONFIG_STATUS <<EOF
3806 # Generated automatically by configure.
3807 # Run this file to recreate the current configuration.
3808 # This directory was configured as follows,
3809 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3811 # $0 $ac_configure_args
3813 # Compiler output produced by configure, useful for debugging
3814 # configure, is in ./config.log if it exists.
3816 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3819 case "\$ac_option" in
3820 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3821 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3822 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3823 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3824 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3826 -help | --help | --hel | --he | --h)
3827 echo "\$ac_cs_usage"; exit 0 ;;
3828 *) echo "\$ac_cs_usage"; exit 1 ;;
3832 ac_given_srcdir=$srcdir
3833 ac_given_INSTALL="$INSTALL"
3835 trap 'rm -fr `echo "include/Makefile testsuite/Makefile include/ffi.h Makefile fficonfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3837 cat >> $CONFIG_STATUS <<EOF
3839 # Protect against being on the right side of a sed subst in config.status.
3840 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3841 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3845 s%@CFLAGS@%$CFLAGS%g
3846 s%@CPPFLAGS@%$CPPFLAGS%g
3847 s%@CXXFLAGS@%$CXXFLAGS%g
3848 s%@FFLAGS@%$FFLAGS%g
3850 s%@LDFLAGS@%$LDFLAGS%g
3852 s%@exec_prefix@%$exec_prefix%g
3853 s%@prefix@%$prefix%g
3854 s%@program_transform_name@%$program_transform_name%g
3855 s%@bindir@%$bindir%g
3856 s%@sbindir@%$sbindir%g
3857 s%@libexecdir@%$libexecdir%g
3858 s%@datadir@%$datadir%g
3859 s%@sysconfdir@%$sysconfdir%g
3860 s%@sharedstatedir@%$sharedstatedir%g
3861 s%@localstatedir@%$localstatedir%g
3862 s%@libdir@%$libdir%g
3863 s%@includedir@%$includedir%g
3864 s%@oldincludedir@%$oldincludedir%g
3865 s%@infodir@%$infodir%g
3866 s%@mandir@%$mandir%g
3867 s%@libffi_basedir@%$libffi_basedir%g
3869 s%@host_alias@%$host_alias%g
3870 s%@host_cpu@%$host_cpu%g
3871 s%@host_vendor@%$host_vendor%g
3872 s%@host_os@%$host_os%g
3873 s%@target@%$target%g
3874 s%@target_alias@%$target_alias%g
3875 s%@target_cpu@%$target_cpu%g
3876 s%@target_vendor@%$target_vendor%g
3877 s%@target_os@%$target_os%g
3879 s%@build_alias@%$build_alias%g
3880 s%@build_cpu@%$build_cpu%g
3881 s%@build_vendor@%$build_vendor%g
3882 s%@build_os@%$build_os%g
3885 s%@OBJEXT@%$OBJEXT%g
3886 s%@EXEEXT@%$EXEEXT%g
3887 s%@RANLIB@%$RANLIB%g
3889 s%@LIBTOOL@%$LIBTOOL%g
3890 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3891 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3892 s%@INSTALL_DATA@%$INSTALL_DATA%g
3893 s%@PACKAGE@%$PACKAGE%g
3894 s%@VERSION@%$VERSION%g
3895 s%@ACLOCAL@%$ACLOCAL%g
3896 s%@AUTOCONF@%$AUTOCONF%g
3897 s%@AUTOMAKE@%$AUTOMAKE%g
3898 s%@AUTOHEADER@%$AUTOHEADER%g
3899 s%@MAKEINFO@%$MAKEINFO%g
3900 s%@SET_MAKE@%$SET_MAKE%g
3901 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3902 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3904 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
3905 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
3906 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
3907 s%@MIPS_IRIX_TRUE@%$MIPS_IRIX_TRUE%g
3908 s%@MIPS_IRIX_FALSE@%$MIPS_IRIX_FALSE%g
3909 s%@MIPS_LINUX_TRUE@%$MIPS_LINUX_TRUE%g
3910 s%@MIPS_LINUX_FALSE@%$MIPS_LINUX_FALSE%g
3911 s%@SPARC_TRUE@%$SPARC_TRUE%g
3912 s%@SPARC_FALSE@%$SPARC_FALSE%g
3913 s%@X86_TRUE@%$X86_TRUE%g
3914 s%@X86_FALSE@%$X86_FALSE%g
3915 s%@X86_WIN32_TRUE@%$X86_WIN32_TRUE%g
3916 s%@X86_WIN32_FALSE@%$X86_WIN32_FALSE%g
3917 s%@ALPHA_TRUE@%$ALPHA_TRUE%g
3918 s%@ALPHA_FALSE@%$ALPHA_FALSE%g
3919 s%@IA64_TRUE@%$IA64_TRUE%g
3920 s%@IA64_FALSE@%$IA64_FALSE%g
3921 s%@M68K_TRUE@%$M68K_TRUE%g
3922 s%@M68K_FALSE@%$M68K_FALSE%g
3923 s%@POWERPC_TRUE@%$POWERPC_TRUE%g
3924 s%@POWERPC_FALSE@%$POWERPC_FALSE%g
3925 s%@POWERPC_AIX_TRUE@%$POWERPC_AIX_TRUE%g
3926 s%@POWERPC_AIX_FALSE@%$POWERPC_AIX_FALSE%g
3927 s%@POWERPC_DARWIN_TRUE@%$POWERPC_DARWIN_TRUE%g
3928 s%@POWERPC_DARWIN_FALSE@%$POWERPC_DARWIN_FALSE%g
3929 s%@ARM_TRUE@%$ARM_TRUE%g
3930 s%@ARM_FALSE@%$ARM_FALSE%g
3931 s%@S390_TRUE@%$S390_TRUE%g
3932 s%@S390_FALSE@%$S390_FALSE%g
3933 s%@X86_64_TRUE@%$X86_64_TRUE%g
3934 s%@X86_64_FALSE@%$X86_64_FALSE%g
3935 s%@SH_TRUE@%$SH_TRUE%g
3936 s%@SH_FALSE@%$SH_FALSE%g
3937 s%@SH64_TRUE@%$SH64_TRUE%g
3938 s%@SH64_FALSE@%$SH64_FALSE%g
3940 s%@ALLOCA@%$ALLOCA%g
3941 s%@HAVE_LONG_DOUBLE@%$HAVE_LONG_DOUBLE%g
3942 s%@TARGET@%$TARGET%g
3943 s%@TARGETDIR@%$TARGETDIR%g
3944 s%@toolexecdir@%$toolexecdir%g
3945 s%@toolexeclibdir@%$toolexeclibdir%g
3946 s%@tool_include_dir@%$tool_include_dir%g
3947 s%@gcc_version@%$gcc_version%g
3952 cat >> $CONFIG_STATUS <<\EOF
3954 # Split the substitutions into bite-sized pieces for seds with
3955 # small command number limits, like on Digital OSF/1 and HP-UX.
3956 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3957 ac_file
=1 # Number of current file.
3958 ac_beg
=1 # First line for current file.
3959 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3962 while $ac_more_lines; do
3963 if test $ac_beg -gt 1; then
3964 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3966 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3968 if test ! -s conftest.s
$ac_file; then
3970 rm -f conftest.s
$ac_file
3972 if test -z "$ac_sed_cmds"; then
3973 ac_sed_cmds
="sed -f conftest.s$ac_file"
3975 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3977 ac_file
=`expr $ac_file + 1`
3979 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3982 if test -z "$ac_sed_cmds"; then
3987 cat >> $CONFIG_STATUS <<EOF
3989 CONFIG_FILES=\${CONFIG_FILES-"include/Makefile testsuite/Makefile include/ffi.h Makefile"}
3991 cat >> $CONFIG_STATUS <<\EOF
3992 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3993 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3995 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3996 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3997 *) ac_file_in
="${ac_file}.in" ;;
4000 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4002 # Remove last slash and all that follows it. Not all systems have dirname.
4003 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4004 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4005 # The file is in a subdirectory.
4006 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4007 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4008 # A "../" for each directory in $ac_dir_suffix.
4009 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4011 ac_dir_suffix
= ac_dots
=
4014 case "$ac_given_srcdir" in
4016 if test -z "$ac_dots"; then top_srcdir
=.
4017 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4018 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4020 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4021 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4024 case "$ac_given_INSTALL" in
4025 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4026 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4029 echo creating
"$ac_file"
4031 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4033 *Makefile
*) ac_comsub
="1i\\
4034 # $configure_input" ;;
4038 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4040 s%@configure_input@%$configure_input%g
4041 s%@srcdir@%$srcdir%g
4042 s%@top_srcdir@%$top_srcdir%g
4043 s%@INSTALL@%$INSTALL%g
4044 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4048 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4049 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4051 # ac_d sets the value in "#define NAME VALUE" lines.
4052 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4053 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4056 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4057 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4058 ac_uB
='\([ ]\)%\1#\2define\3'
4061 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4062 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4063 ac_eB
='$%\1#\2define\3'
4067 if test "${CONFIG_HEADERS+set}" != set; then
4069 cat >> $CONFIG_STATUS <<EOF
4070 CONFIG_HEADERS="fficonfig.h"
4072 cat >> $CONFIG_STATUS <<\EOF
4074 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4075 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4077 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4078 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4079 *) ac_file_in
="${ac_file}.in" ;;
4082 echo creating
$ac_file
4084 rm -f conftest.frag conftest.
in conftest.out
4085 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4086 cat $ac_file_inputs > conftest.
in
4090 # Transform confdefs.h into a sed script conftest.vals that substitutes
4091 # the proper values into config.h.in to produce config.h. And first:
4092 # Protect against being on the right side of a sed subst in config.status.
4093 # Protect against being in an unquoted here document in config.status.
4095 cat > conftest.hdr
<<\EOF
4098 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4102 sed -n -f conftest.hdr confdefs.h > conftest.vals
4105 # This sed command replaces #undef with comments. This is necessary, for
4106 # example, in the case of _POSIX_SOURCE, which is predefined and required
4107 # on some systems where configure will not decide to define it.
4108 cat >> conftest.vals <<\EOF
4109 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4112 # Break up conftest.vals because some shells have a limit on
4113 # the size of here documents, and old seds have small limits too.
4118 ac_lines=`grep -c . conftest.vals
`
4119 # grep -c gives empty output for an empty file on some AIX systems.
4120 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4121 # Write a limited-size here document to conftest.frag.
4122 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4123 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4125 sed -f conftest.frag conftest.in > conftest.out
4127 mv conftest.out conftest.in
4129 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4131 mv conftest.tail conftest.vals
4135 cat >> $CONFIG_STATUS <<\EOF
4136 rm -f conftest.frag conftest.h
4137 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4138 cat conftest.in >> conftest.h
4140 if cmp -s $ac_file conftest.h 2>/dev/null; then
4141 echo "$ac_file is unchanged"
4144 # Remove last slash and all that follows it. Not all systems have dirname.
4145 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4146 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4147 # The file is in a subdirectory.
4148 test ! -d "$ac_dir" && mkdir "$ac_dir"
4151 mv conftest.h $ac_file
4157 cat >> $CONFIG_STATUS <<EOF
4158 ac_sources="src/$TARGETDIR/ffitarget.h"
4159 ac_dests="include/ffitarget.h"
4162 cat >> $CONFIG_STATUS <<\EOF
4163 srcdir=$ac_given_srcdir
4164 while test -n "$ac_sources"; do
4165 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4166 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4168 echo "linking $srcdir/$ac_source to $ac_dest"
4170 if test ! -r $srcdir/$ac_source; then
4171 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4175 # Make relative symlinks.
4176 # Remove last slash and all that follows it. Not all systems have dirname.
4177 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
4178 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4179 # The dest file is in a subdirectory.
4180 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4181 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
4182 # A "../" for each directory in $ac_dest_dir_suffix.
4183 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
4185 ac_dest_dir_suffix= ac_dots=
4189 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4190 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4193 # Make a symlink if possible; otherwise try a hard link.
4194 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4195 ln $srcdir/$ac_source $ac_dest; then :
4197 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4201 cat >> $CONFIG_STATUS <<EOF
4206 with_multisubdir=${with_multisubdir}
4207 ac_configure_args="${multilib_arg} ${ac_configure_args}"
4208 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
4209 libffi_basedir=${libffi_basedir}
4212 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
4214 # Make target subdirectories if required.
4215 test -d src || mkdir src
4216 test -d src/${TARGETDIR} || mkdir src/${TARGETDIR}
4217 test -d include || mkdir include
4222 cat >> $CONFIG_STATUS <<\EOF
4223 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4225 if test -n "$CONFIG_FILES"; then
4226 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
4227 ac_file=Makefile . ${srcdir}/${libffi_basedir}../config-ml.in
4232 chmod +x $CONFIG_STATUS
4233 rm -fr confdefs* $ac_clean_files
4234 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1