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
="${srcdir}/${with_multisrctop}.."
638 libffi_basedir
="${srcdir}/${with_multisrctop}"
641 libffi_basedir
="${srcdir}"
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 # Make sure we can run config.sub.
666 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
667 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
670 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
671 echo "configure
:672: checking
host system
type" >&5
674 case "$host_alias" in
678 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
679 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
681 *) host_alias=$nonopt ;;
685 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
686 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
687 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
688 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
689 echo "$ac_t""$host" 1>&6
692 # Check whether --enable-shared or --disable-shared was given.
693 if test "${enable_shared+set}" = set; then
694 enableval="$enable_shared"
697 yes) enable_shared=yes ;;
698 no) enable_shared=no ;;
701 # Look at the argument we got. We use all the common list separators.
702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
703 for pkg in $enableval; do
704 if test "X
$pkg" = "X
$p"; then
715 # Check whether --enable-static or --disable-static was given.
716 if test "${enable_static+set}" = set; then
717 enableval="$enable_static"
720 yes) enable_static=yes ;;
721 no) enable_static=no ;;
724 # Look at the argument we got. We use all the common list separators.
725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
726 for pkg in $enableval; do
727 if test "X
$pkg" = "X
$p"; then
738 # Check whether --enable-fast-install or --disable-fast-install was given.
739 if test "${enable_fast_install+set}" = set; then
740 enableval="$enable_fast_install"
743 yes) enable_fast_install=yes ;;
744 no) enable_fast_install=no ;;
746 enable_fast_install=no
747 # Look at the argument we got. We use all the common list separators.
748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
749 for pkg in $enableval; do
750 if test "X
$pkg" = "X
$p"; then
751 enable_fast_install=yes
758 enable_fast_install=yes
761 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
762 echo "configure
:763: checking build system
type" >&5
765 case "$build_alias" in
768 NONE) build_alias=$host_alias ;;
769 *) build_alias=$nonopt ;;
773 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
774 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
775 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
776 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
777 echo "$ac_t""$build" 1>&6
779 # Extract the first word of "gcc
", so it can be a program name with args.
780 set dummy gcc; ac_word=$2
781 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
782 echo "configure
:783: checking
for $ac_word" >&5
783 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
784 echo $ac_n "(cached
) $ac_c" 1>&6
786 if test -n "$CC"; then
787 ac_cv_prog_CC="$CC" # Let the user override the test.
789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
791 for ac_dir in $ac_dummy; do
792 test -z "$ac_dir" && ac_dir=.
793 if test -f $ac_dir/$ac_word; then
802 if test -n "$CC"; then
803 echo "$ac_t""$CC" 1>&6
805 echo "$ac_t""no
" 1>&6
808 if test -z "$CC"; then
809 # Extract the first word of "cc
", so it can be a program name with args.
810 set dummy cc; ac_word=$2
811 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
812 echo "configure
:813: checking
for $ac_word" >&5
813 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
814 echo $ac_n "(cached
) $ac_c" 1>&6
816 if test -n "$CC"; then
817 ac_cv_prog_CC="$CC" # Let the user override the test.
819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
822 for ac_dir in $ac_dummy; do
823 test -z "$ac_dir" && ac_dir=.
824 if test -f $ac_dir/$ac_word; then
825 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
834 if test $ac_prog_rejected = yes; then
835 # We found a bogon in the path, so make sure we never use it.
836 set dummy $ac_cv_prog_CC
838 if test $# -gt 0; then
839 # We chose a different compiler from the bogus one.
840 # However, it has the same basename, so the bogon will be chosen
841 # first if we set CC to just the basename; use the full file name.
843 set dummy "$ac_dir/$ac_word" "$@
"
851 if test -n "$CC"; then
852 echo "$ac_t""$CC" 1>&6
854 echo "$ac_t""no
" 1>&6
857 if test -z "$CC"; then
860 # Extract the first word of "cl
", so it can be a program name with args.
861 set dummy cl; ac_word=$2
862 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
863 echo "configure
:864: checking
for $ac_word" >&5
864 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
865 echo $ac_n "(cached
) $ac_c" 1>&6
867 if test -n "$CC"; then
868 ac_cv_prog_CC="$CC" # Let the user override the test.
870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
872 for ac_dir in $ac_dummy; do
873 test -z "$ac_dir" && ac_dir=.
874 if test -f $ac_dir/$ac_word; then
883 if test -n "$CC"; then
884 echo "$ac_t""$CC" 1>&6
886 echo "$ac_t""no
" 1>&6
891 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
894 echo $ac_n "checking whether the C compiler
($CC $CFLAGS $LDFLAGS) works
""...
$ac_c" 1>&6
895 echo "configure
:896: checking whether the C compiler
($CC $CFLAGS $LDFLAGS) works
" >&5
898 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
899 ac_cpp='$CPP $CPPFLAGS'
900 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
901 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
902 cross_compiling=$ac_cv_prog_cc_cross
904 cat > conftest.$ac_ext << EOF
906 #line 907 "configure
"
907 #include "confdefs.h
"
911 if { (eval echo configure:912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
912 ac_cv_prog_cc_works=yes
913 # If we can't run a trivial program, we are probably using a cross compiler.
914 if (./conftest; exit) 2>/dev/null; then
915 ac_cv_prog_cc_cross=no
917 ac_cv_prog_cc_cross=yes
920 echo "configure
: failed program was
:" >&5
921 cat conftest.$ac_ext >&5
922 ac_cv_prog_cc_works=no
926 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
927 ac_cpp='$CPP $CPPFLAGS'
928 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
929 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
930 cross_compiling=$ac_cv_prog_cc_cross
932 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
933 if test $ac_cv_prog_cc_works = no; then
934 { echo "configure
: error
: installation or configuration problem
: C compiler cannot create executables.
" 1>&2; exit 1; }
936 echo $ac_n "checking whether the C compiler
($CC $CFLAGS $LDFLAGS) is a cross-compiler
""...
$ac_c" 1>&6
937 echo "configure
:938: checking whether the C compiler
($CC $CFLAGS $LDFLAGS) is a cross-compiler
" >&5
938 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
939 cross_compiling=$ac_cv_prog_cc_cross
941 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
942 echo "configure
:943: checking whether we are using GNU C
" >&5
943 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
944 echo $ac_n "(cached
) $ac_c" 1>&6
946 cat > conftest.c <<EOF
951 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
958 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
960 if test $ac_cv_prog_gcc = yes; then
966 ac_test_CFLAGS="${CFLAGS+set}"
967 ac_save_CFLAGS="$CFLAGS"
969 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
970 echo "configure
:971: checking whether
${CC-cc} accepts
-g" >&5
971 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
972 echo $ac_n "(cached
) $ac_c" 1>&6
974 echo 'void f(){}' > conftest.c
975 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
984 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
985 if test "$ac_test_CFLAGS" = set; then
986 CFLAGS="$ac_save_CFLAGS"
987 elif test $ac_cv_prog_cc_g = yes; then
988 if test "$GCC" = yes; then
994 if test "$GCC" = yes; then
1001 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1002 if test "${with_gnu_ld+set}" = set; then
1003 withval="$with_gnu_ld"
1004 test "$withval" = no || with_gnu_ld=yes
1010 if test "$GCC" = yes; then
1011 # Check if gcc -print-prog-name=ld gives a path.
1012 echo $ac_n "checking
for ld used by GCC
""...
$ac_c" 1>&6
1013 echo "configure
:1014: checking
for ld used by GCC
" >&5
1016 # gcc leaves a trailing carriage return which upsets mingw
1017 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1019 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1022 # Accept absolute paths.
1023 [\\/]* | [A-Za-z]:[\\/]*)
1024 re_direlt='/[^/][^/]*/\.\./'
1025 # Canonicalize the path of ld
1026 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1027 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1028 ac_prog=`echo $ac_prog| sed "s
%$re_direlt%/%"`
1030 test -z "$LD" && LD="$ac_prog"
1033 # If it fails, then pretend we aren't using GCC.
1037 # If it is relative, then search for the first ld in PATH.
1041 elif test "$with_gnu_ld" = yes; then
1042 echo $ac_n "checking
for GNU ld
""...
$ac_c" 1>&6
1043 echo "configure
:1044: checking
for GNU ld
" >&5
1045 echo $ac_n "checking
for non-GNU ld
""...
$ac_c" 1>&6
1046 echo "configure
:1047: checking
for non-GNU ld
" >&5
1048 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1049 echo $ac_n "(cached
) $ac_c" 1>&6
1051 if test -z "$LD"; then
1052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1053 for ac_dir in $PATH; do
1054 test -z "$ac_dir" && ac_dir=.
1055 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1056 lt_cv_path_LD="$ac_dir/$ac_prog"
1057 # Check to see if the program is GNU ld. I'd rather use --version,
1058 # but apparently some GNU ld's only accept -v.
1059 # Break only if it was the GNU/non-GNU ld that we prefer.
1060 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1061 test "$with_gnu_ld" != no && break
1063 test "$with_gnu_ld" != yes && break
1069 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1074 if test -n "$LD"; then
1075 echo "$ac_t""$LD" 1>&6
1077 echo "$ac_t""no
" 1>&6
1079 test -z "$LD" && { echo "configure
: error
: no acceptable ld found
in \
$PATH" 1>&2; exit 1; }
1080 echo $ac_n "checking
if the linker
($LD) is GNU ld
""...
$ac_c" 1>&6
1081 echo "configure
:1082: checking
if the linker
($LD) is GNU ld
" >&5
1082 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1083 echo $ac_n "(cached
) $ac_c" 1>&6
1085 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1086 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1087 lt_cv_prog_gnu_ld=yes
1089 lt_cv_prog_gnu_ld=no
1093 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1094 with_gnu_ld=$lt_cv_prog_gnu_ld
1097 echo $ac_n "checking
for $LD option to reload object files
""...
$ac_c" 1>&6
1098 echo "configure
:1099: checking
for $LD option to reload object files
" >&5
1099 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1100 echo $ac_n "(cached
) $ac_c" 1>&6
1102 lt_cv_ld_reload_flag='-r'
1105 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1106 reload_flag=$lt_cv_ld_reload_flag
1107 test -n "$reload_flag" && reload_flag=" $reload_flag"
1109 echo $ac_n "checking
for BSD-compatible nm
""...
$ac_c" 1>&6
1110 echo "configure
:1111: checking
for BSD-compatible nm
" >&5
1111 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1112 echo $ac_n "(cached
) $ac_c" 1>&6
1114 if test -n "$NM"; then
1115 # Let the user override the test.
1118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1119 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1120 test -z "$ac_dir" && ac_dir=.
1121 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1122 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1123 # Check to see if the nm accepts a BSD-compat flag.
1124 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1125 # nm: unknown option "B
" ignored
1126 # Tru64's nm complains that /dev/null is an invalid object file
1127 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1128 lt_cv_path_NM="$tmp_nm -B"
1130 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1131 lt_cv_path_NM="$tmp_nm -p"
1134 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1135 continue # so that we can try to find one that supports BSD flags
1140 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1145 echo "$ac_t""$NM" 1>&6
1147 echo $ac_n "checking whether
ln -s works
""...
$ac_c" 1>&6
1148 echo "configure
:1149: checking whether
ln -s works
" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1150 echo $ac_n "(cached
) $ac_c" 1>&6
1153 if ln -s X conftestdata 2>/dev/null
1156 ac_cv_prog_LN_S="ln -s"
1161 LN_S="$ac_cv_prog_LN_S"
1162 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1163 echo "$ac_t""yes" 1>&6
1165 echo "$ac_t""no
" 1>&6
1168 echo $ac_n "checking how to recognise dependant libraries
""...
$ac_c" 1>&6
1169 echo "configure
:1170: checking how to recognise dependant libraries
" >&5
1170 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1171 echo $ac_n "(cached
) $ac_c" 1>&6
1173 lt_cv_file_magic_cmd='$MAGIC_CMD'
1174 lt_cv_file_magic_test_file=
1175 lt_cv_deplibs_check_method='unknown'
1176 # Need to set the preceding variable on all platforms that support
1177 # interlibrary dependencies.
1178 # 'none' -- dependencies not supported.
1179 # `unknown' -- same as none, but documents that we really don't know.
1180 # 'pass_all' -- all dependencies passed with no checks.
1181 # 'test_compile' -- check by making test program.
1182 # 'file_magic [regex]' -- check by looking for files in library path
1183 # which responds to the $file_magic_cmd with a given egrep regex.
1184 # If you have `file' or equivalent on your system and you're not sure
1185 # whether `pass_all' will *always* work, you probably want this one.
1189 lt_cv_deplibs_check_method=pass_all
1193 lt_cv_deplibs_check_method=pass_all
1197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1198 lt_cv_file_magic_cmd='/usr/bin/file -L'
1199 lt_cv_file_magic_test_file=/shlib/libc.so
1202 cygwin* | mingw* |pw32*)
1203 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1204 lt_cv_file_magic_cmd='$OBJDUMP -f'
1207 darwin* | rhapsody*)
1208 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1209 lt_cv_file_magic_cmd='/usr/bin/file -L'
1211 rhapsody* | darwin1.012)
1212 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1215 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1221 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1224 # Not sure whether the presence of OpenBSD here was a mistake.
1225 # Let's accept both of them until this is cleared up.
1226 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1227 lt_cv_file_magic_cmd=/usr/bin/file
1228 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1232 lt_cv_deplibs_check_method=pass_all
1237 lt_cv_deplibs_check_method=pass_all
1243 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1244 lt_cv_file_magic_cmd=/usr/bin/file
1245 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1248 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1249 lt_cv_file_magic_cmd=/usr/bin/file
1250 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1258 # this will be overridden with pass_all, but let us keep it just in case
1259 lt_cv_deplibs_check_method="file_magic ELF
32-bit MSB dynamic lib MIPS
- version
1"
1263 *-32|*"-32 ") libmagic=32-bit;;
1264 *-n32|*"-n32 ") libmagic=N32;;
1265 *-64|*"-64 ") libmagic=64-bit;;
1266 *) libmagic=never-match;;
1268 # this will be overridden with pass_all, but let us keep it just in case
1269 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
1272 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1273 lt_cv_deplibs_check_method=pass_all
1276 # This must be Linux ELF.
1279 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1280 lt_cv_deplibs_check_method=pass_all ;;
1282 # glibc up to 2.1.1 does not perform some relocations on ARM
1283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1285 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1289 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1290 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1292 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1298 lt_cv_file_magic_cmd=/usr/bin/file
1299 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1302 osf3* | osf4* | osf5*)
1303 # this will be overridden with pass_all, but let us keep it just in case
1304 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1305 lt_cv_file_magic_test_file=/shlib/libc.so
1306 lt_cv_deplibs_check_method=pass_all
1310 lt_cv_deplibs_check_method=pass_all
1314 lt_cv_deplibs_check_method=pass_all
1315 lt_cv_file_magic_test_file=/lib/libc.so
1318 sysv5uw[78]* | sysv4*uw2*)
1319 lt_cv_deplibs_check_method=pass_all
1322 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1323 case $host_vendor in
1325 lt_cv_deplibs_check_method=pass_all
1328 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]'
1329 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1337 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1338 file_magic_cmd=$lt_cv_file_magic_cmd
1339 deplibs_check_method=$lt_cv_deplibs_check_method
1341 echo $ac_n "checking
for object suffix
""...
$ac_c" 1>&6
1342 echo "configure
:1343: checking
for object suffix
" >&5
1343 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1344 echo $ac_n "(cached
) $ac_c" 1>&6
1347 echo 'int i = 1;' > conftest.$ac_ext
1348 if { (eval echo configure:1349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1349 for ac_file in conftest.*; do
1352 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1356 { echo "configure
: error
: installation or configuration problem
; compiler does not work
" 1>&2; exit 1; }
1361 echo "$ac_t""$ac_cv_objext" 1>&6
1362 OBJEXT=$ac_cv_objext
1363 ac_objext=$ac_cv_objext
1367 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
1368 echo "configure
:1369: checking
for executable suffix
" >&5
1369 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1370 echo $ac_n "(cached
) $ac_c" 1>&6
1372 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1376 echo 'int main () { return 0; }' > conftest.$ac_ext
1378 if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1379 for file in conftest.*; do
1381 *.c | *.o | *.obj) ;;
1382 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1386 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
1389 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1394 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1395 echo "$ac_t""${ac_cv_exeext}" 1>&6
1398 if test $host != $build; then
1399 ac_tool_prefix=${host_alias}-
1404 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1406 # Only perform the check for file, if the check method requires it
1407 case $deplibs_check_method in
1409 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1410 echo $ac_n "checking
for ${ac_tool_prefix}file""...
$ac_c" 1>&6
1411 echo "configure
:1412: checking
for ${ac_tool_prefix}file" >&5
1412 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1413 echo $ac_n "(cached
) $ac_c" 1>&6
1417 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1420 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1423 ac_save_MAGIC_CMD="$MAGIC_CMD"
1424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1425 ac_dummy="/usr
/bin
:$PATH"
1426 for ac_dir in $ac_dummy; do
1427 test -z "$ac_dir" && ac_dir=.
1428 if test -f $ac_dir/${ac_tool_prefix}file; then
1429 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1430 if test -n "$file_magic_test_file"; then
1431 case $deplibs_check_method in
1433 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1435 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1436 egrep "$file_magic_regex" > /dev/null; then
1441 *** Warning: the command libtool uses to detect shared libraries,
1442 *** $file_magic_cmd, produces output that libtool cannot recognize.
1443 *** The result is that libtool may fail to recognize shared libraries
1444 *** as such. This will affect the creation of libtool libraries that
1445 *** depend on shared libraries, but programs linked with such libtool
1446 *** libraries will work regardless of this problem. Nevertheless, you
1447 *** may want to report the problem to your system manager and/or to
1448 *** bug-libtool@gnu.org
1458 MAGIC_CMD="$ac_save_MAGIC_CMD"
1463 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1464 if test -n "$MAGIC_CMD"; then
1465 echo "$ac_t""$MAGIC_CMD" 1>&6
1467 echo "$ac_t""no
" 1>&6
1470 if test -z "$lt_cv_path_MAGIC_CMD"; then
1471 if test -n "$ac_tool_prefix"; then
1472 echo $ac_n "checking
for file""...
$ac_c" 1>&6
1473 echo "configure
:1474: checking
for file" >&5
1474 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1475 echo $ac_n "(cached
) $ac_c" 1>&6
1479 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1482 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1485 ac_save_MAGIC_CMD="$MAGIC_CMD"
1486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1487 ac_dummy="/usr
/bin
:$PATH"
1488 for ac_dir in $ac_dummy; do
1489 test -z "$ac_dir" && ac_dir=.
1490 if test -f $ac_dir/file; then
1491 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1492 if test -n "$file_magic_test_file"; then
1493 case $deplibs_check_method in
1495 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1496 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1497 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1498 egrep "$file_magic_regex" > /dev/null; then
1503 *** Warning: the command libtool uses to detect shared libraries,
1504 *** $file_magic_cmd, produces output that libtool cannot recognize.
1505 *** The result is that libtool may fail to recognize shared libraries
1506 *** as such. This will affect the creation of libtool libraries that
1507 *** depend on shared libraries, but programs linked with such libtool
1508 *** libraries will work regardless of this problem. Nevertheless, you
1509 *** may want to report the problem to your system manager and/or to
1510 *** bug-libtool@gnu.org
1520 MAGIC_CMD="$ac_save_MAGIC_CMD"
1525 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1526 if test -n "$MAGIC_CMD"; then
1527 echo "$ac_t""$MAGIC_CMD" 1>&6
1529 echo "$ac_t""no
" 1>&6
1541 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
1542 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1543 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1544 echo "configure
:1545: checking
for $ac_word" >&5
1545 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1546 echo $ac_n "(cached
) $ac_c" 1>&6
1548 if test -n "$RANLIB"; then
1549 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1553 for ac_dir in $ac_dummy; do
1554 test -z "$ac_dir" && ac_dir=.
1555 if test -f $ac_dir/$ac_word; then
1556 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
1563 RANLIB="$ac_cv_prog_RANLIB"
1564 if test -n "$RANLIB"; then
1565 echo "$ac_t""$RANLIB" 1>&6
1567 echo "$ac_t""no
" 1>&6
1571 if test -z "$ac_cv_prog_RANLIB"; then
1572 if test -n "$ac_tool_prefix"; then
1573 # Extract the first word of "ranlib
", so it can be a program name with args.
1574 set dummy ranlib; ac_word=$2
1575 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1576 echo "configure
:1577: checking
for $ac_word" >&5
1577 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1578 echo $ac_n "(cached
) $ac_c" 1>&6
1580 if test -n "$RANLIB"; then
1581 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1585 for ac_dir in $ac_dummy; do
1586 test -z "$ac_dir" && ac_dir=.
1587 if test -f $ac_dir/$ac_word; then
1588 ac_cv_prog_RANLIB="ranlib
"
1593 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1596 RANLIB="$ac_cv_prog_RANLIB"
1597 if test -n "$RANLIB"; then
1598 echo "$ac_t""$RANLIB" 1>&6
1600 echo "$ac_t""no
" 1>&6
1608 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
1609 set dummy ${ac_tool_prefix}strip; ac_word=$2
1610 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1611 echo "configure
:1612: checking
for $ac_word" >&5
1612 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1613 echo $ac_n "(cached
) $ac_c" 1>&6
1615 if test -n "$STRIP"; then
1616 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1620 for ac_dir in $ac_dummy; do
1621 test -z "$ac_dir" && ac_dir=.
1622 if test -f $ac_dir/$ac_word; then
1623 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
1630 STRIP="$ac_cv_prog_STRIP"
1631 if test -n "$STRIP"; then
1632 echo "$ac_t""$STRIP" 1>&6
1634 echo "$ac_t""no
" 1>&6
1638 if test -z "$ac_cv_prog_STRIP"; then
1639 if test -n "$ac_tool_prefix"; then
1640 # Extract the first word of "strip
", so it can be a program name with args.
1641 set dummy strip; ac_word=$2
1642 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1643 echo "configure
:1644: checking
for $ac_word" >&5
1644 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1645 echo $ac_n "(cached
) $ac_c" 1>&6
1647 if test -n "$STRIP"; then
1648 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1652 for ac_dir in $ac_dummy; do
1653 test -z "$ac_dir" && ac_dir=.
1654 if test -f $ac_dir/$ac_word; then
1655 ac_cv_prog_STRIP="strip
"
1660 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1663 STRIP="$ac_cv_prog_STRIP"
1664 if test -n "$STRIP"; then
1665 echo "$ac_t""$STRIP" 1>&6
1667 echo "$ac_t""no
" 1>&6
1676 # Check for any special flags to pass to ltconfig.
1677 libtool_flags="--cache-file=$cache_file"
1678 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1679 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1680 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1681 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1682 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1685 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1686 if test "${enable_libtool_lock+set}" = set; then
1687 enableval="$enable_libtool_lock"
1691 test "x
$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1692 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1694 # Check whether --with-pic or --without-pic was given.
1695 if test "${with_pic+set}" = set; then
1702 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1703 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1705 # Some flags need to be propagated to the compiler or linker for good
1709 # Find out which ABI we are using.
1710 echo '#line 1711 "configure
"' > conftest.$ac_ext
1711 if { (eval echo configure:1712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1712 case `/usr/bin/file conftest.$ac_objext` in
1728 # Find out which ABI we are using.
1729 echo 'int i;' > conftest.$ac_ext
1730 if { (eval echo configure:1731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1731 case "`/usr/bin/file conftest.o`" in
1744 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1745 SAVE_CFLAGS="$CFLAGS"
1746 CFLAGS="$CFLAGS -belf"
1747 echo $ac_n "checking whether the C compiler needs
-belf""...
$ac_c" 1>&6
1748 echo "configure
:1749: checking whether the C compiler needs
-belf" >&5
1749 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1750 echo $ac_n "(cached
) $ac_c" 1>&6
1754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1755 ac_cpp='$CPP $CPPFLAGS'
1756 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1757 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1758 cross_compiling=$ac_cv_prog_cc_cross
1760 cat > conftest.$ac_ext <<EOF
1761 #line 1762 "configure
"
1762 #include "confdefs.h
"
1768 if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1770 lt_cv_cc_needs_belf=yes
1772 echo "configure
: failed program was
:" >&5
1773 cat conftest.$ac_ext >&5
1775 lt_cv_cc_needs_belf=no
1779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1780 ac_cpp='$CPP $CPPFLAGS'
1781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1783 cross_compiling=$ac_cv_prog_cc_cross
1787 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1788 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1789 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1790 CFLAGS="$SAVE_CFLAGS"
1798 # Save cache, so that ltconfig can load it
1799 cat > confcache <<\EOF
1800 # This file is a shell script that caches the results of configure
1801 # tests run on this system so they can be shared between configure
1802 # scripts and configure runs. It is not useful on other systems.
1803 # If it contains results you don't want to keep, you may remove or edit it.
1805 # By default, configure uses ./config.cache as the cache file,
1806 # creating it if it does not exist already. You can give configure
1807 # the --cache-file=FILE option to use a different cache file; that is
1808 # what configure does when it calls configure scripts in
1809 # subdirectories, so they share the cache.
1810 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1811 # config.status only pays attention to the cache file if you give it the
1812 # --recheck option to rerun configure.
1815 # The following way of writing the cache mishandles newlines in values,
1816 # but we know of no workaround that is simple, portable, and efficient.
1817 # So, don't put newlines in cache variables' values.
1818 # Ultrix sh set writes to stderr and can't be redirected directly,
1819 # and sets the high bit in the cache file unless we assign to the vars.
1821 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1823 # `set' does not quote correctly, so add quotes (double-quote substitution
1824 # turns \\\\ into \\, and sed turns \\ into \).
1826 -e "s
/'/'\\\\''/g
" \
1827 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
1830 # `set' quotes correctly as required by POSIX, so do not add quotes.
1831 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1834 if cmp -s $cache_file confcache; then
1837 if test -w $cache_file; then
1838 echo "updating cache
$cache_file"
1839 cat confcache > $cache_file
1841 echo "not updating unwritable cache
$cache_file"
1847 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1848 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1849 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1850 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
1851 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
1852 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
1853 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
1854 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1855 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
1856 || { echo "configure
: error
: libtool configure failed
" 1>&2; exit 1; }
1858 # Reload cache, that may have been modified by ltconfig
1859 if test -r "$cache_file"; then
1860 echo "loading cache
$cache_file"
1863 echo "creating cache
$cache_file"
1868 # This can be used to rebuild libtool when needed
1869 LIBTOOL_DEPS="$ac_aux_dir/ltconfig
$ac_aux_dir/ltmain.sh
$ac_aux_dir/ltcf-c.sh
"
1871 # Always use our own libtool.
1872 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1874 # Redirect the config.log output again, so that the ltconfig log is not
1875 # clobbered by the next message.
1876 exec 5>>./config.log
1884 # Find a good install program. We prefer a C program (faster),
1885 # so one script is as good as another. But avoid the broken or
1886 # incompatible versions:
1887 # SysV /etc/install, /usr/sbin/install
1888 # SunOS /usr/etc/install
1889 # IRIX /sbin/install
1891 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1892 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1893 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
1894 # ./install, which can be erroneously created by make from ./install.sh.
1895 echo $ac_n "checking
for a BSD compatible
install""...
$ac_c" 1>&6
1896 echo "configure
:1897: checking
for a BSD compatible
install" >&5
1897 if test -z "$INSTALL"; then
1898 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1899 echo $ac_n "(cached
) $ac_c" 1>&6
1901 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1902 for ac_dir in $PATH; do
1903 # Account for people who put trailing slashes in PATH elements.
1905 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1907 # OSF1 and SCO ODT 3.0 have their own names for install.
1908 # Don't use installbsd from OSF since it installs stuff as root
1910 for ac_prog in ginstall scoinst install; do
1911 if test -f $ac_dir/$ac_prog; then
1912 if test $ac_prog = install &&
1913 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1914 # AIX install. It has an incompatible calling convention.
1917 ac_cv_path_install="$ac_dir/$ac_prog -c"
1928 if test "${ac_cv_path_install+set}" = set; then
1929 INSTALL="$ac_cv_path_install"
1931 # As a last resort, use the slow shell script. We don't cache a
1932 # path for INSTALL within a source directory, because that will
1933 # break other packages using the cache if that directory is
1934 # removed, or if the path is relative.
1935 INSTALL="$ac_install_sh"
1938 echo "$ac_t""$INSTALL" 1>&6
1940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1941 # It thinks the first close brace ends the variable substitution.
1942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1948 echo $ac_n "checking whether build environment is sane
""...
$ac_c" 1>&6
1949 echo "configure
:1950: checking whether build environment is sane
" >&5
1952 echo timestamp > conftestfile
1953 # Do `set' in a subshell so we don't clobber the current shell's
1954 # arguments. Must try -L first in case configure is actually a
1955 # symlink; some systems play weird games with the mod time of symlinks
1956 # (eg FreeBSD returns the mod time of the symlink's containing
1959 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1960 if test "$
*" = "X
"; then
1962 set X `ls -t $srcdir/configure conftestfile`
1964 if test "$
*" != "X
$srcdir/configure conftestfile
" \
1965 && test "$
*" != "X conftestfile
$srcdir/configure
"; then
1967 # If neither matched, then we have a broken ls. This can happen
1968 # if, for instance, CONFIG_SHELL is bash and it inherits a
1969 # broken ls alias from the environment. This has actually
1970 # happened. Such a system could not be considered "sane
".
1971 { echo "configure
: error
: ls -t appears to fail. Make sure there is not a broken
1972 alias in your environment
" 1>&2; exit 1; }
1975 test "$2" = conftestfile
1981 { echo "configure
: error
: newly created
file is older than distributed files
!
1982 Check your system
clock" 1>&2; exit 1; }
1985 echo "$ac_t""yes" 1>&6
1986 if test "$program_transform_name" = s,x,x,; then
1987 program_transform_name=
1989 # Double any \ or $. echo might interpret backslashes.
1990 cat <<\EOF_SED > conftestsed
1991 s,\\,\\\\,g; s,\$,$$,g
1993 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1996 test "$program_prefix" != NONE &&
1997 program_transform_name="s
,^
,${program_prefix},; $program_transform_name"
1998 # Use a double $ so make ignores it.
1999 test "$program_suffix" != NONE &&
2000 program_transform_name="s
,\$\$
,${program_suffix},; $program_transform_name"
2002 # sed with no file args requires a program.
2003 test "$program_transform_name" = "" && program_transform_name="s
,x
,x
,"
2005 echo $ac_n "checking whether
${MAKE-make} sets \
${MAKE}""...
$ac_c" 1>&6
2006 echo "configure
:2007: checking whether
${MAKE-make} sets \
${MAKE}" >&5
2007 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2008 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2009 echo $ac_n "(cached
) $ac_c" 1>&6
2011 cat > conftestmake <<\EOF
2013 @echo 'ac_maketemp="${MAKE}"'
2015 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
2016 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2017 if test -n "$ac_maketemp"; then
2018 eval ac_cv_prog_make_${ac_make}_set=yes
2020 eval ac_cv_prog_make_${ac_make}_set=no
2024 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2025 echo "$ac_t""yes" 1>&6
2028 echo "$ac_t""no
" 1>&6
2029 SET_MAKE="MAKE
=${MAKE-make}"
2037 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2038 { echo "configure
: error
: source directory already configured
; run
"make distclean" there first
" 1>&2; exit 1; }
2043 missing_dir=`cd $ac_aux_dir && pwd`
2044 echo $ac_n "checking
for working aclocal
""...
$ac_c" 1>&6
2045 echo "configure
:2046: checking
for working aclocal
" >&5
2046 # Run test in a subshell; some versions of sh will print an error if
2047 # an executable is not found, even if stderr is redirected.
2048 # Redirect stdin to placate older versions of autoconf. Sigh.
2049 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
2051 echo "$ac_t""found
" 1>&6
2053 ACLOCAL="$missing_dir/missing aclocal
"
2054 echo "$ac_t""missing
" 1>&6
2057 echo $ac_n "checking
for working autoconf
""...
$ac_c" 1>&6
2058 echo "configure
:2059: checking
for working autoconf
" >&5
2059 # Run test in a subshell; some versions of sh will print an error if
2060 # an executable is not found, even if stderr is redirected.
2061 # Redirect stdin to placate older versions of autoconf. Sigh.
2062 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2064 echo "$ac_t""found
" 1>&6
2066 AUTOCONF="$missing_dir/missing autoconf
"
2067 echo "$ac_t""missing
" 1>&6
2070 echo $ac_n "checking
for working automake
""...
$ac_c" 1>&6
2071 echo "configure
:2072: checking
for working automake
" >&5
2072 # Run test in a subshell; some versions of sh will print an error if
2073 # an executable is not found, even if stderr is redirected.
2074 # Redirect stdin to placate older versions of autoconf. Sigh.
2075 if (automake --version) < /dev/null > /dev/null 2>&1; then
2077 echo "$ac_t""found
" 1>&6
2079 AUTOMAKE="$missing_dir/missing automake
"
2080 echo "$ac_t""missing
" 1>&6
2083 echo $ac_n "checking
for working autoheader
""...
$ac_c" 1>&6
2084 echo "configure
:2085: checking
for working autoheader
" >&5
2085 # Run test in a subshell; some versions of sh will print an error if
2086 # an executable is not found, even if stderr is redirected.
2087 # Redirect stdin to placate older versions of autoconf. Sigh.
2088 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2089 AUTOHEADER=autoheader
2090 echo "$ac_t""found
" 1>&6
2092 AUTOHEADER="$missing_dir/missing autoheader
"
2093 echo "$ac_t""missing
" 1>&6
2096 echo $ac_n "checking
for working makeinfo
""...
$ac_c" 1>&6
2097 echo "configure
:2098: checking
for working makeinfo
" >&5
2098 # Run test in a subshell; some versions of sh will print an error if
2099 # an executable is not found, even if stderr is redirected.
2100 # Redirect stdin to placate older versions of autoconf. Sigh.
2101 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2103 echo "$ac_t""found
" 1>&6
2105 MAKEINFO="$missing_dir/missing makeinfo
"
2106 echo "$ac_t""missing
" 1>&6
2113 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
2114 echo "configure
:2115: checking
for executable suffix
" >&5
2115 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2116 echo $ac_n "(cached
) $ac_c" 1>&6
2118 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2122 echo 'int main () { return 0; }' > conftest.$ac_ext
2124 if { (eval echo configure:2125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2125 for file in conftest.*; do
2127 *.c | *.o | *.obj) ;;
2128 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2132 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
2135 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2140 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2141 echo "$ac_t""${ac_cv_exeext}" 1>&6
2144 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
2145 echo "configure
:2146: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
2146 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2147 if test "${enable_maintainer_mode+set}" = set; then
2148 enableval="$enable_maintainer_mode"
2149 USE_MAINTAINER_MODE=$enableval
2151 USE_MAINTAINER_MODE=no
2154 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2157 if test $USE_MAINTAINER_MODE = yes; then
2158 MAINTAINER_MODE_TRUE=
2159 MAINTAINER_MODE_FALSE='#'
2161 MAINTAINER_MODE_TRUE='#'
2162 MAINTAINER_MODE_FALSE=
2164 MAINT=$MAINTAINER_MODE_TRUE
2168 # Extract the first word of "gcc
", so it can be a program name with args.
2169 set dummy gcc; ac_word=$2
2170 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2171 echo "configure
:2172: checking
for $ac_word" >&5
2172 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2173 echo $ac_n "(cached
) $ac_c" 1>&6
2175 if test -n "$CC"; then
2176 ac_cv_prog_CC="$CC" # Let the user override the test.
2178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2180 for ac_dir in $ac_dummy; do
2181 test -z "$ac_dir" && ac_dir=.
2182 if test -f $ac_dir/$ac_word; then
2191 if test -n "$CC"; then
2192 echo "$ac_t""$CC" 1>&6
2194 echo "$ac_t""no
" 1>&6
2197 if test -z "$CC"; then
2198 # Extract the first word of "cc
", so it can be a program name with args.
2199 set dummy cc; ac_word=$2
2200 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2201 echo "configure
:2202: checking
for $ac_word" >&5
2202 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2203 echo $ac_n "(cached
) $ac_c" 1>&6
2205 if test -n "$CC"; then
2206 ac_cv_prog_CC="$CC" # Let the user override the test.
2208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2211 for ac_dir in $ac_dummy; do
2212 test -z "$ac_dir" && ac_dir=.
2213 if test -f $ac_dir/$ac_word; then
2214 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
2215 ac_prog_rejected=yes
2223 if test $ac_prog_rejected = yes; then
2224 # We found a bogon in the path, so make sure we never use it.
2225 set dummy $ac_cv_prog_CC
2227 if test $# -gt 0; then
2228 # We chose a different compiler from the bogus one.
2229 # However, it has the same basename, so the bogon will be chosen
2230 # first if we set CC to just the basename; use the full file name.
2232 set dummy "$ac_dir/$ac_word" "$@
"
2240 if test -n "$CC"; then
2241 echo "$ac_t""$CC" 1>&6
2243 echo "$ac_t""no
" 1>&6
2246 if test -z "$CC"; then
2247 case "`uname -s`" in
2249 # Extract the first word of "cl
", so it can be a program name with args.
2250 set dummy cl; ac_word=$2
2251 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2252 echo "configure
:2253: checking
for $ac_word" >&5
2253 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2254 echo $ac_n "(cached
) $ac_c" 1>&6
2256 if test -n "$CC"; then
2257 ac_cv_prog_CC="$CC" # Let the user override the test.
2259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2261 for ac_dir in $ac_dummy; do
2262 test -z "$ac_dir" && ac_dir=.
2263 if test -f $ac_dir/$ac_word; then
2272 if test -n "$CC"; then
2273 echo "$ac_t""$CC" 1>&6
2275 echo "$ac_t""no
" 1>&6
2280 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
2283 echo $ac_n "checking whether the C compiler
($CC $CFLAGS $LDFLAGS) works
""...
$ac_c" 1>&6
2284 echo "configure
:2285: checking whether the C compiler
($CC $CFLAGS $LDFLAGS) works
" >&5
2287 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2290 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2291 cross_compiling=$ac_cv_prog_cc_cross
2293 cat > conftest.$ac_ext << EOF
2295 #line 2296 "configure
"
2296 #include "confdefs.h
"
2300 if { (eval echo configure:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2301 ac_cv_prog_cc_works=yes
2302 # If we can't run a trivial program, we are probably using a cross compiler.
2303 if (./conftest; exit) 2>/dev/null; then
2304 ac_cv_prog_cc_cross=no
2306 ac_cv_prog_cc_cross=yes
2309 echo "configure
: failed program was
:" >&5
2310 cat conftest.$ac_ext >&5
2311 ac_cv_prog_cc_works=no
2315 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2318 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2319 cross_compiling=$ac_cv_prog_cc_cross
2321 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2322 if test $ac_cv_prog_cc_works = no; then
2323 { echo "configure
: error
: installation or configuration problem
: C compiler cannot create executables.
" 1>&2; exit 1; }
2325 echo $ac_n "checking whether the C compiler
($CC $CFLAGS $LDFLAGS) is a cross-compiler
""...
$ac_c" 1>&6
2326 echo "configure
:2327: checking whether the C compiler
($CC $CFLAGS $LDFLAGS) is a cross-compiler
" >&5
2327 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2328 cross_compiling=$ac_cv_prog_cc_cross
2330 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
2331 echo "configure
:2332: checking whether we are using GNU C
" >&5
2332 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2333 echo $ac_n "(cached
) $ac_c" 1>&6
2335 cat > conftest.c <<EOF
2340 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2347 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2349 if test $ac_cv_prog_gcc = yes; then
2355 ac_test_CFLAGS="${CFLAGS+set}"
2356 ac_save_CFLAGS="$CFLAGS"
2358 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
2359 echo "configure
:2360: checking whether
${CC-cc} accepts
-g" >&5
2360 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2361 echo $ac_n "(cached
) $ac_c" 1>&6
2363 echo 'void f(){}' > conftest.c
2364 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2373 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2374 if test "$ac_test_CFLAGS" = set; then
2375 CFLAGS="$ac_save_CFLAGS"
2376 elif test $ac_cv_prog_cc_g = yes; then
2377 if test "$GCC" = yes; then
2383 if test "$GCC" = yes; then
2398 mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; TARGETDIR=mips;;
2399 i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
2400 i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
2401 i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
2402 i*86-*-freebsd*) TARGET=X86; TARGETDIR=x86;;
2403 i*86-*-netbsdelf*) TARGET=X86; TARGETDIR=x86;;
2404 i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
2405 i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
2406 i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
2407 sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
2408 sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
2409 sparc-*-linux* | sparc-*-netbsdelf*) TARGET=SPARC; TARGETDIR=sparc;;
2410 sparc64-*-linux* | sparc64-*-netbsd*) TARGET=SPARC; TARGETDIR=sparc;;
2411 alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd* | alpha*-*-netbsd*) TARGET=ALPHA; TARGETDIR=alpha;;
2412 ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
2413 m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
2415 mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;;
2416 powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
2417 powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
2418 powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
2419 powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
2420 rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
2421 arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
2422 s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
2423 s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;
2424 x86_64-*-linux*) TARGET=X86_64; TARGETDIR=x86;;
2425 sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
2428 if test $TARGETDIR = unknown; then
2429 { echo "configure
: error
: "libffi has not been ported to $host."" 1>&2; exit 1; }
2434 if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes; then
2443 if test ${TARGET}${ac_cv_prog_gcc} = MIPSno; then
2452 if test x$TARGET = xMIPS_LINUX; then
2454 MIPS_LINUX_FALSE='#'
2461 if test x$TARGET = xSPARC; then
2470 if test x$TARGET = xX86; then
2479 if test x$TARGET = xX86_WIN32; then
2488 if test x$TARGET = xALPHA; then
2497 if test x$TARGET = xIA64; then
2506 if test x$TARGET = xM68K; then
2515 if test x$TARGET = xPOWERPC; then
2524 if test x$TARGET = xPOWERPC_AIX; then
2526 POWERPC_AIX_FALSE='#'
2528 POWERPC_AIX_TRUE='#'
2533 if test x$TARGET = xPOWERPC_DARWIN; then
2534 POWERPC_DARWIN_TRUE=
2535 POWERPC_DARWIN_FALSE='#'
2537 POWERPC_DARWIN_TRUE='#'
2538 POWERPC_DARWIN_FALSE=
2542 if test x$TARGET = xARM; then
2551 if test x$TARGET = xS390; then
2560 if test x$TARGET = xX86_64; then
2569 if test x$TARGET = xSH; then
2577 if test x$TARGET = xMIPS_LINUX; then
2581 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
2582 echo "configure
:2583: checking how to run the C preprocessor
" >&5
2583 # On Suns, sometimes $CPP names a directory.
2584 if test -n "$CPP" && test -d "$CPP"; then
2587 if test -z "$CPP"; then
2588 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2589 echo $ac_n "(cached
) $ac_c" 1>&6
2591 # This must be in double quotes, not single quotes, because CPP may get
2592 # substituted into the Makefile and "${CC-cc}" will confuse make.
2594 # On the NeXT, cc -E runs the code through the compiler's parser,
2595 # not just through cpp.
2596 cat > conftest.$ac_ext <<EOF
2597 #line 2598 "configure
"
2598 #include "confdefs.h
"
2602 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2603 { (eval echo configure:2604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2605 if test -z "$ac_err"; then
2609 echo "configure
: failed program was
:" >&5
2610 cat conftest.$ac_ext >&5
2612 CPP="${CC-cc} -E -traditional-cpp"
2613 cat > conftest.$ac_ext <<EOF
2614 #line 2615 "configure
"
2615 #include "confdefs.h
"
2619 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2620 { (eval echo configure:2621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2622 if test -z "$ac_err"; then
2626 echo "configure
: failed program was
:" >&5
2627 cat conftest.$ac_ext >&5
2629 CPP="${CC-cc} -nologo -E"
2630 cat > conftest.$ac_ext <<EOF
2631 #line 2632 "configure
"
2632 #include "confdefs.h
"
2636 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2637 { (eval echo configure:2638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2639 if test -z "$ac_err"; then
2643 echo "configure
: failed program was
:" >&5
2644 cat conftest.$ac_ext >&5
2653 ac_cv_prog_CPP="$CPP"
2655 CPP="$ac_cv_prog_CPP"
2657 ac_cv_prog_CPP="$CPP"
2659 echo "$ac_t""$CPP" 1>&6
2661 echo $ac_n "checking
for ANSI C header files
""...
$ac_c" 1>&6
2662 echo "configure
:2663: checking
for ANSI C header files
" >&5
2663 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2664 echo $ac_n "(cached
) $ac_c" 1>&6
2666 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure
"
2668 #include "confdefs.h
"
2674 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2675 { (eval echo configure:2676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2677 if test -z "$ac_err"; then
2679 ac_cv_header_stdc=yes
2682 echo "configure
: failed program was
:" >&5
2683 cat conftest.$ac_ext >&5
2685 ac_cv_header_stdc=no
2689 if test $ac_cv_header_stdc = yes; then
2690 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2691 cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure
"
2693 #include "confdefs.h
"
2696 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2697 egrep "memchr
" >/dev/null 2>&1; then
2701 ac_cv_header_stdc=no
2707 if test $ac_cv_header_stdc = yes; then
2708 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2709 cat > conftest.$ac_ext <<EOF
2710 #line 2711 "configure
"
2711 #include "confdefs.h
"
2714 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2715 egrep "free
" >/dev/null 2>&1; then
2719 ac_cv_header_stdc=no
2725 if test $ac_cv_header_stdc = yes; then
2726 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2727 if test "$cross_compiling" = yes; then
2730 cat > conftest.$ac_ext <<EOF
2731 #line 2732 "configure
"
2732 #include "confdefs.h
"
2734 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2735 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2736 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2737 int main () { int i; for (i = 0; i < 256; i++)
2738 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2742 if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2746 echo "configure
: failed program was
:" >&5
2747 cat conftest.$ac_ext >&5
2749 ac_cv_header_stdc=no
2757 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2758 if test $ac_cv_header_stdc = yes; then
2759 cat >> confdefs.h <<\EOF
2760 #define STDC_HEADERS 1
2765 for ac_func in memcpy
2767 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
2768 echo "configure
:2769: checking
for $ac_func" >&5
2769 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2770 echo $ac_n "(cached
) $ac_c" 1>&6
2772 cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure
"
2774 #include "confdefs.h
"
2775 /* System header to define __stub macros and hopefully few prototypes,
2776 which can conflict with char $ac_func(); below. */
2778 /* Override any gcc2 internal prototype to avoid an error. */
2779 /* We use char because int might match the return type of a gcc2
2780 builtin and then its argument prototype would still apply. */
2785 /* The GNU C library defines this for functions which it implements
2786 to always fail with ENOSYS. Some functions are actually named
2787 something starting with __ and the normal name is an alias. */
2788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2796 if { (eval echo configure:2797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2798 eval "ac_cv_func_
$ac_func=yes"
2800 echo "configure
: failed program was
:" >&5
2801 cat conftest.$ac_ext >&5
2803 eval "ac_cv_func_
$ac_func=no
"
2808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2809 echo "$ac_t""yes" 1>&6
2810 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2811 cat >> confdefs.h <<EOF
2812 #define $ac_tr_func 1
2816 echo "$ac_t""no
" 1>&6
2820 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2821 # for constant arguments. Useless!
2822 echo $ac_n "checking
for working alloca.h
""...
$ac_c" 1>&6
2823 echo "configure
:2824: checking
for working alloca.h
" >&5
2824 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2825 echo $ac_n "(cached
) $ac_c" 1>&6
2827 cat > conftest.$ac_ext <<EOF
2828 #line 2829 "configure
"
2829 #include "confdefs.h
"
2832 char *p = alloca(2 * sizeof(int));
2835 if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2837 ac_cv_header_alloca_h=yes
2839 echo "configure
: failed program was
:" >&5
2840 cat conftest.$ac_ext >&5
2842 ac_cv_header_alloca_h=no
2847 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2848 if test $ac_cv_header_alloca_h = yes; then
2849 cat >> confdefs.h <<\EOF
2850 #define HAVE_ALLOCA_H 1
2855 echo $ac_n "checking
for alloca
""...
$ac_c" 1>&6
2856 echo "configure
:2857: checking
for alloca
" >&5
2857 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2858 echo $ac_n "(cached
) $ac_c" 1>&6
2860 cat > conftest.$ac_ext <<EOF
2861 #line 2862 "configure
"
2862 #include "confdefs.h
"
2865 # define alloca __builtin_alloca
2868 # include <malloc.h>
2869 # define alloca _alloca
2872 # include <alloca.h>
2877 # ifndef alloca /* predefined by HP cc +Olibcalls */
2886 char *p = (char *) alloca(1);
2889 if { (eval echo configure:2890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2891 ac_cv_func_alloca_works=yes
2893 echo "configure
: failed program was
:" >&5
2894 cat conftest.$ac_ext >&5
2896 ac_cv_func_alloca_works=no
2901 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2902 if test $ac_cv_func_alloca_works = yes; then
2903 cat >> confdefs.h <<\EOF
2904 #define HAVE_ALLOCA 1
2909 if test $ac_cv_func_alloca_works = no; then
2910 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2911 # that cause trouble. Some versions do not even contain alloca or
2912 # contain a buggy version. If you still want to use their alloca,
2913 # use ar to extract alloca.o from them instead of compiling alloca.c.
2914 ALLOCA=alloca.${ac_objext}
2915 cat >> confdefs.h <<\EOF
2920 echo $ac_n "checking whether alloca needs Cray hooks
""...
$ac_c" 1>&6
2921 echo "configure
:2922: checking whether alloca needs Cray hooks
" >&5
2922 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2923 echo $ac_n "(cached
) $ac_c" 1>&6
2925 cat > conftest.$ac_ext <<EOF
2926 #line 2927 "configure
"
2927 #include "confdefs.h
"
2928 #if defined(CRAY) && ! defined(CRAY2)
2935 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2936 egrep "webecray
" >/dev/null 2>&1; then
2947 echo "$ac_t""$ac_cv_os_cray" 1>&6
2948 if test $ac_cv_os_cray = yes; then
2949 for ac_func in _getb67 GETB67 getb67; do
2950 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
2951 echo "configure
:2952: checking
for $ac_func" >&5
2952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2953 echo $ac_n "(cached
) $ac_c" 1>&6
2955 cat > conftest.$ac_ext <<EOF
2956 #line 2957 "configure
"
2957 #include "confdefs.h
"
2958 /* System header to define __stub macros and hopefully few prototypes,
2959 which can conflict with char $ac_func(); below. */
2961 /* Override any gcc2 internal prototype to avoid an error. */
2962 /* We use char because int might match the return type of a gcc2
2963 builtin and then its argument prototype would still apply. */
2968 /* The GNU C library defines this for functions which it implements
2969 to always fail with ENOSYS. Some functions are actually named
2970 something starting with __ and the normal name is an alias. */
2971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2979 if { (eval echo configure:2980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2981 eval "ac_cv_func_
$ac_func=yes"
2983 echo "configure
: failed program was
:" >&5
2984 cat conftest.$ac_ext >&5
2986 eval "ac_cv_func_
$ac_func=no
"
2991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2992 echo "$ac_t""yes" 1>&6
2993 cat >> confdefs.h <<EOF
2994 #define CRAY_STACKSEG_END $ac_func
2999 echo "$ac_t""no
" 1>&6
3005 echo $ac_n "checking stack direction
for C alloca
""...
$ac_c" 1>&6
3006 echo "configure
:3007: checking stack direction
for C alloca
" >&5
3007 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3008 echo $ac_n "(cached
) $ac_c" 1>&6
3010 if test "$cross_compiling" = yes; then
3011 ac_cv_c_stack_direction=0
3013 cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure
"
3015 #include "confdefs.h
"
3016 find_stack_direction ()
3018 static char *addr = 0;
3023 return find_stack_direction ();
3026 return (&dummy > addr) ? 1 : -1;
3030 exit (find_stack_direction() < 0);
3033 if { (eval echo configure:3034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3035 ac_cv_c_stack_direction=1
3037 echo "configure
: failed program was
:" >&5
3038 cat conftest.$ac_ext >&5
3040 ac_cv_c_stack_direction=-1
3047 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3048 cat >> confdefs.h <<EOF
3049 #define STACK_DIRECTION $ac_cv_c_stack_direction
3055 echo $ac_n "checking size of short
""...
$ac_c" 1>&6
3056 echo "configure
:3057: checking size of short
" >&5
3057 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3058 echo $ac_n "(cached
) $ac_c" 1>&6
3060 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3061 cat > conftest.$ac_ext <<EOF
3062 #line 3063 "configure
"
3063 #include "confdefs.h
"
3064 #include "confdefs.h
"
3065 #include <sys/types.h>
3069 switch (0) case 0: case (sizeof (short) == $ac_size):;
3072 if { (eval echo configure:3073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3074 ac_cv_sizeof_short=$ac_size
3076 echo "configure
: failed program was
:" >&5
3077 cat conftest.$ac_ext >&5
3080 if test x$ac_cv_sizeof_short != x ; then break; fi
3085 if test x$ac_cv_sizeof_short = x ; then
3086 { echo "configure
: error
: cannot determine a size
for short
" 1>&2; exit 1; }
3088 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3089 cat >> confdefs.h <<EOF
3090 #define SIZEOF_SHORT $ac_cv_sizeof_short
3094 echo $ac_n "checking size of int
""...
$ac_c" 1>&6
3095 echo "configure
:3096: checking size of int
" >&5
3096 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3097 echo $ac_n "(cached
) $ac_c" 1>&6
3099 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3100 cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure
"
3102 #include "confdefs.h
"
3103 #include "confdefs.h
"
3104 #include <sys/types.h>
3108 switch (0) case 0: case (sizeof (int) == $ac_size):;
3111 if { (eval echo configure:3112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3113 ac_cv_sizeof_int=$ac_size
3115 echo "configure
: failed program was
:" >&5
3116 cat conftest.$ac_ext >&5
3119 if test x$ac_cv_sizeof_int != x ; then break; fi
3124 if test x$ac_cv_sizeof_int = x ; then
3125 { echo "configure
: error
: cannot determine a size
for int
" 1>&2; exit 1; }
3127 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3128 cat >> confdefs.h <<EOF
3129 #define SIZEOF_INT $ac_cv_sizeof_int
3133 echo $ac_n "checking size of long
""...
$ac_c" 1>&6
3134 echo "configure
:3135: checking size of long
" >&5
3135 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3136 echo $ac_n "(cached
) $ac_c" 1>&6
3138 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3139 cat > conftest.$ac_ext <<EOF
3140 #line 3141 "configure
"
3141 #include "confdefs.h
"
3142 #include "confdefs.h
"
3143 #include <sys/types.h>
3147 switch (0) case 0: case (sizeof (long) == $ac_size):;
3150 if { (eval echo configure:3151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3152 ac_cv_sizeof_long=$ac_size
3154 echo "configure
: failed program was
:" >&5
3155 cat conftest.$ac_ext >&5
3158 if test x$ac_cv_sizeof_long != x ; then break; fi
3163 if test x$ac_cv_sizeof_long = x ; then
3164 { echo "configure
: error
: cannot determine a size
for long
" 1>&2; exit 1; }
3166 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3167 cat >> confdefs.h <<EOF
3168 #define SIZEOF_LONG $ac_cv_sizeof_long
3172 echo $ac_n "checking size of long long
""...
$ac_c" 1>&6
3173 echo "configure
:3174: checking size of long long
" >&5
3174 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3175 echo $ac_n "(cached
) $ac_c" 1>&6
3177 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3178 cat > conftest.$ac_ext <<EOF
3179 #line 3180 "configure
"
3180 #include "confdefs.h
"
3181 #include "confdefs.h
"
3182 #include <sys/types.h>
3186 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3189 if { (eval echo configure:3190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3191 ac_cv_sizeof_long_long=$ac_size
3193 echo "configure
: failed program was
:" >&5
3194 cat conftest.$ac_ext >&5
3197 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3202 if test x$ac_cv_sizeof_long_long = x ; then
3203 { echo "configure
: error
: cannot determine a size
for long long
" 1>&2; exit 1; }
3205 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3206 cat >> confdefs.h <<EOF
3207 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3211 echo $ac_n "checking size of float
""...
$ac_c" 1>&6
3212 echo "configure
:3213: checking size of float
" >&5
3213 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
3214 echo $ac_n "(cached
) $ac_c" 1>&6
3216 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure
"
3219 #include "confdefs.h
"
3220 #include "confdefs.h
"
3221 #include <sys/types.h>
3225 switch (0) case 0: case (sizeof (float) == $ac_size):;
3228 if { (eval echo configure:3229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3230 ac_cv_sizeof_float=$ac_size
3232 echo "configure
: failed program was
:" >&5
3233 cat conftest.$ac_ext >&5
3236 if test x$ac_cv_sizeof_float != x ; then break; fi
3241 if test x$ac_cv_sizeof_float = x ; then
3242 { echo "configure
: error
: cannot determine a size
for float
" 1>&2; exit 1; }
3244 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
3245 cat >> confdefs.h <<EOF
3246 #define SIZEOF_FLOAT $ac_cv_sizeof_float
3250 echo $ac_n "checking size of double
""...
$ac_c" 1>&6
3251 echo "configure
:3252: checking size of double
" >&5
3252 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
3253 echo $ac_n "(cached
) $ac_c" 1>&6
3255 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3256 cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure
"
3258 #include "confdefs.h
"
3259 #include "confdefs.h
"
3260 #include <sys/types.h>
3264 switch (0) case 0: case (sizeof (double) == $ac_size):;
3267 if { (eval echo configure:3268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3269 ac_cv_sizeof_double=$ac_size
3271 echo "configure
: failed program was
:" >&5
3272 cat conftest.$ac_ext >&5
3275 if test x$ac_cv_sizeof_double != x ; then break; fi
3280 if test x$ac_cv_sizeof_double = x ; then
3281 { echo "configure
: error
: cannot determine a size
for double
" 1>&2; exit 1; }
3283 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
3284 cat >> confdefs.h <<EOF
3285 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
3289 echo $ac_n "checking size of long double
""...
$ac_c" 1>&6
3290 echo "configure
:3291: checking size of long double
" >&5
3291 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3292 echo $ac_n "(cached
) $ac_c" 1>&6
3294 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3295 cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure
"
3297 #include "confdefs.h
"
3298 #include "confdefs.h
"
3299 #include <sys/types.h>
3303 switch (0) case 0: case (sizeof (long double) == $ac_size):;
3306 if { (eval echo configure:3307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3308 ac_cv_sizeof_long_double=$ac_size
3310 echo "configure
: failed program was
:" >&5
3311 cat conftest.$ac_ext >&5
3314 if test x$ac_cv_sizeof_long_double != x ; then break; fi
3319 if test x$ac_cv_sizeof_long_double = x ; then
3320 { echo "configure
: error
: cannot determine a size
for long double
" 1>&2; exit 1; }
3322 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3323 cat >> confdefs.h <<EOF
3324 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3329 echo $ac_n "checking size of void
*""...
$ac_c" 1>&6
3330 echo "configure
:3331: checking size of void
*" >&5
3331 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
3332 echo $ac_n "(cached
) $ac_c" 1>&6
3334 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3335 cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure
"
3337 #include "confdefs.h
"
3338 #include "confdefs.h
"
3339 #include <sys/types.h>
3343 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3346 if { (eval echo configure:3347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3348 ac_cv_sizeof_void_p=$ac_size
3350 echo "configure
: failed program was
:" >&5
3351 cat conftest.$ac_ext >&5
3354 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3359 if test x$ac_cv_sizeof_void_p = x ; then
3360 { echo "configure
: error
: cannot determine a size
for void
*" 1>&2; exit 1; }
3362 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
3363 cat >> confdefs.h <<EOF
3364 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3368 echo $ac_n "checking whether byte ordering is bigendian
""...
$ac_c" 1>&6
3369 echo "configure
:3370: checking whether byte ordering is bigendian
" >&5
3370 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3371 echo $ac_n "(cached
) $ac_c" 1>&6
3373 ac_cv_c_bigendian=unknown
3374 # See if sys/param.h defines the BYTE_ORDER macro.
3375 cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure
"
3377 #include "confdefs.h
"
3378 #include <sys/types.h>
3379 #include <sys/param.h>
3382 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3387 if { (eval echo configure:3388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3389 # It does; now see whether it defined to BIG_ENDIAN or not.
3390 cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure
"
3392 #include "confdefs.h
"
3393 #include <sys/types.h>
3394 #include <sys/param.h>
3397 #if BYTE_ORDER != BIG_ENDIAN
3402 if { (eval echo configure:3403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3404 ac_cv_c_bigendian=yes
3406 echo "configure
: failed program was
:" >&5
3407 cat conftest.$ac_ext >&5
3409 ac_cv_c_bigendian=no
3413 echo "configure
: failed program was
:" >&5
3414 cat conftest.$ac_ext >&5
3417 if test $ac_cv_c_bigendian = unknown; then
3418 if test "$cross_compiling" = yes; then
3419 echo $ac_n "cross-compiling...
" 2>&6
3421 cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure
"
3423 #include "confdefs.h
"
3425 /* Are we little or big endian? From Harbison&Steele. */
3429 char c[sizeof (long)];
3432 exit (u.c[sizeof (long) - 1] == 1);
3435 if { (eval echo configure:3436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3437 ac_cv_c_bigendian=no
3439 echo "configure
: failed program was
:" >&5
3440 cat conftest.$ac_ext >&5
3442 ac_cv_c_bigendian=yes
3450 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3451 if test $ac_cv_c_bigendian = unknown; then
3452 echo $ac_n "checking to probe
for byte ordering
""...
$ac_c" 1>&6
3453 echo "configure
:3454: checking to probe
for byte ordering
" >&5
3455 cat >conftest.c <<EOF
3456 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3457 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3458 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
3459 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3460 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3461 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
3462 int main() { _ascii (); _ebcdic (); return 0; }
3464 if test -f conftest.c ; then
3465 if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
3466 if test `grep -l BIGenDianSyS conftest.o` ; then
3467 echo $ac_n ' big endian probe OK, ' 1>&6
3468 ac_cv_c_bigendian=yes
3470 if test `grep -l LiTTleEnDian conftest.o` ; then
3471 echo $ac_n ' little endian probe OK, ' 1>&6
3472 if test $ac_cv_c_bigendian = yes ; then
3473 ac_cv_c_bigendian=unknown;
3475 ac_cv_c_bigendian=no
3478 echo $ac_n 'guessing bigendian ... ' >&6
3481 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3483 if test $ac_cv_c_bigendian = yes; then
3484 cat >> confdefs.h <<\EOF
3485 #define WORDS_BIGENDIAN 1
3488 cat >> confdefs.h <<\EOF
3489 #define HOST_WORDS_BIG_ENDIAN 1
3496 cat >> confdefs.h <<EOF
3497 #define BYTEORDER $BYTEORDER
3500 if test $ac_cv_c_bigendian = unknown; then
3501 { echo "configure
: error
: unknown endianess
- sorry
" 1>&2; exit 1; }
3505 if test x$TARGET = xSPARC; then
3506 echo $ac_n "checking assembler and linker support unaligned pc related relocs
""...
$ac_c" 1>&6
3507 echo "configure
:3508: checking assembler and linker support unaligned pc related relocs
" >&5
3508 if eval "test \"`echo '$''{'libffi_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
3509 echo $ac_n "(cached
) $ac_c" 1>&6
3512 save_CFLAGS="$CFLAGS"
3513 save_LDFLAGS="$LDFLAGS"
3514 CFLAGS="$CFLAGS -fpic"
3515 LDFLAGS="$LDFLAGS -shared"
3516 cat > conftest.$ac_ext <<EOF
3517 #line 3518 "configure
"
3518 #include "confdefs.h
"
3519 asm (".text
; foo
: nop
; .data
; .align
4; .byte
0; .uaword
%r_disp32
(foo
); .text
");
3524 if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3526 libffi_cv_as_sparc_ua_pcrel=yes
3528 echo "configure
: failed program was
:" >&5
3529 cat conftest.$ac_ext >&5
3531 libffi_cv_as_sparc_ua_pcrel=no
3534 CFLAGS="$save_CFLAGS"
3535 LDFLAGS="$save_LDFLAGS"
3538 echo "$ac_t""$libffi_cv_as_sparc_ua_pcrel" 1>&6
3539 if test "x
$libffi_cv_as_sparc_ua_pcrel" = xyes; then
3540 cat >> confdefs.h <<\EOF
3541 #define HAVE_AS_SPARC_UA_PCREL 1
3552 # Check whether --enable-debug or --disable-debug was given.
3553 if test "${enable_debug+set}" = set; then
3554 enableval="$enable_debug"
3555 if test "$enable_debug" = "yes"; then
3556 cat >> confdefs.h <<\EOF
3564 # Check whether --enable-structs or --disable-structs was given.
3565 if test "${enable_structs+set}" = set; then
3566 enableval="$enable_structs"
3567 if test "$enable_structs" = "no
"; then
3568 cat >> confdefs.h <<\EOF
3569 #define FFI_NO_STRUCTS 1
3576 # Check whether --enable-raw-api or --disable-raw-api was given.
3577 if test "${enable_raw_api+set}" = set; then
3578 enableval="$enable_raw_api"
3579 if test "$enable_raw_api" = "no
"; then
3580 cat >> confdefs.h <<\EOF
3581 #define FFI_NO_RAW_API 1
3588 # Check whether --enable-purify-safety or --disable-purify-safety was given.
3589 if test "${enable_purify_safety+set}" = set; then
3590 enableval="$enable_purify_safety"
3591 if test "$enable_purify_safety" = "yes"; then
3592 cat >> confdefs.h <<\EOF
3593 #define USING_PURIFY 1
3602 if test -z "$with_cross_host"; then
3604 USE_LIBDIR_FALSE='#'
3610 if test "${multilib}" = "yes"; then
3611 multilib_arg="--enable-multilib"
3617 cat > confcache <<\EOF
3618 # This file is a shell script that caches the results of configure
3619 # tests run on this system so they can be shared between configure
3620 # scripts and configure runs. It is not useful on other systems.
3621 # If it contains results you don't want to keep, you may remove or edit it.
3623 # By default, configure uses ./config.cache as the cache file,
3624 # creating it if it does not exist already. You can give configure
3625 # the --cache-file=FILE option to use a different cache file; that is
3626 # what configure does when it calls configure scripts in
3627 # subdirectories, so they share the cache.
3628 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3629 # config.status only pays attention to the cache file if you give it the
3630 # --recheck option to rerun configure.
3633 # The following way of writing the cache mishandles newlines in values,
3634 # but we know of no workaround that is simple, portable, and efficient.
3635 # So, don't put newlines in cache variables' values.
3636 # Ultrix sh set writes to stderr and can't be redirected directly,
3637 # and sets the high bit in the cache file unless we assign to the vars.
3639 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3641 # `set' does not quote correctly, so add quotes (double-quote substitution
3642 # turns \\\\ into \\, and sed turns \\ into \).
3644 -e "s
/'/'\\\\''/g
" \
3645 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
3648 # `set' quotes correctly as required by POSIX, so do not add quotes.
3649 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3652 if cmp -s $cache_file confcache; then
3655 if test -w $cache_file; then
3656 echo "updating cache
$cache_file"
3657 cat confcache > $cache_file
3659 echo "not updating unwritable cache
$cache_file"
3664 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3666 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
3667 # Let make expand exec_prefix.
3668 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
3670 # Any assignment to VPATH causes Sun make to only execute
3671 # the first set of double-colon rules, so remove it if not needed.
3672 # If there is a colon in the path, we need to keep it.
3673 if test "x
$srcdir" = x.; then
3674 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3677 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3679 DEFS=-DHAVE_CONFIG_H
3681 # Without the ".
/", some shells look in PATH for config.status.
3682 : ${CONFIG_STATUS=./config.status}
3684 echo creating $CONFIG_STATUS
3685 rm -f $CONFIG_STATUS
3686 cat > $CONFIG_STATUS <<EOF
3688 # Generated automatically by configure.
3689 # Run this file to recreate the current configuration.
3690 # This directory was configured as follows,
3691 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3693 # $0 $ac_configure_args
3695 # Compiler output produced by configure, useful for debugging
3696 # configure, is in ./config.log if it exists.
3698 ac_cs_usage="Usage
: $CONFIG_STATUS [--recheck] [--version] [--help]"
3701 case "\
$ac_option" in
3702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3703 echo "running \
${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3704 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3705 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3706 echo "$CONFIG_STATUS generated by autoconf version
2.13"
3708 -help | --help | --hel | --he | --h)
3709 echo "\
$ac_cs_usage"; exit 0 ;;
3710 *) echo "\
$ac_cs_usage"; exit 1 ;;
3714 ac_given_srcdir=$srcdir
3715 ac_given_INSTALL="$INSTALL"
3717 trap 'rm -fr `echo "include
/Makefile include
/ffi.h Makefile fficonfig.h
" | sed "s
/:[^
]*//g
"` conftest*; exit 1' 1 2 15
3719 cat >> $CONFIG_STATUS <<EOF
3721 # Protect against being on the right side of a sed subst in config.status.
3722 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3723 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3727 s%@CFLAGS@%$CFLAGS%g
3728 s%@CPPFLAGS@%$CPPFLAGS%g
3729 s%@CXXFLAGS@%$CXXFLAGS%g
3730 s%@FFLAGS@%$FFLAGS%g
3732 s%@LDFLAGS@%$LDFLAGS%g
3734 s%@exec_prefix@%$exec_prefix%g
3735 s%@prefix@%$prefix%g
3736 s%@program_transform_name@%$program_transform_name%g
3737 s%@bindir@%$bindir%g
3738 s%@sbindir@%$sbindir%g
3739 s%@libexecdir@%$libexecdir%g
3740 s%@datadir@%$datadir%g
3741 s%@sysconfdir@%$sysconfdir%g
3742 s%@sharedstatedir@%$sharedstatedir%g
3743 s%@localstatedir@%$localstatedir%g
3744 s%@libdir@%$libdir%g
3745 s%@includedir@%$includedir%g
3746 s%@oldincludedir@%$oldincludedir%g
3747 s%@infodir@%$infodir%g
3748 s%@mandir@%$mandir%g
3749 s%@libffi_basedir@%$libffi_basedir%g
3751 s%@host_alias@%$host_alias%g
3752 s%@host_cpu@%$host_cpu%g
3753 s%@host_vendor@%$host_vendor%g
3754 s%@host_os@%$host_os%g
3756 s%@build_alias@%$build_alias%g
3757 s%@build_cpu@%$build_cpu%g
3758 s%@build_vendor@%$build_vendor%g
3759 s%@build_os@%$build_os%g
3762 s%@OBJEXT@%$OBJEXT%g
3763 s%@EXEEXT@%$EXEEXT%g
3764 s%@RANLIB@%$RANLIB%g
3766 s%@LIBTOOL@%$LIBTOOL%g
3767 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3768 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3769 s%@INSTALL_DATA@%$INSTALL_DATA%g
3770 s%@PACKAGE@%$PACKAGE%g
3771 s%@VERSION@%$VERSION%g
3772 s%@ACLOCAL@%$ACLOCAL%g
3773 s%@AUTOCONF@%$AUTOCONF%g
3774 s%@AUTOMAKE@%$AUTOMAKE%g
3775 s%@AUTOHEADER@%$AUTOHEADER%g
3776 s%@MAKEINFO@%$MAKEINFO%g
3777 s%@SET_MAKE@%$SET_MAKE%g
3778 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3779 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3781 s%@MIPS_GCC_TRUE@%$MIPS_GCC_TRUE%g
3782 s%@MIPS_GCC_FALSE@%$MIPS_GCC_FALSE%g
3783 s%@MIPS_SGI_TRUE@%$MIPS_SGI_TRUE%g
3784 s%@MIPS_SGI_FALSE@%$MIPS_SGI_FALSE%g
3785 s%@MIPS_LINUX_TRUE@%$MIPS_LINUX_TRUE%g
3786 s%@MIPS_LINUX_FALSE@%$MIPS_LINUX_FALSE%g
3787 s%@SPARC_TRUE@%$SPARC_TRUE%g
3788 s%@SPARC_FALSE@%$SPARC_FALSE%g
3789 s%@X86_TRUE@%$X86_TRUE%g
3790 s%@X86_FALSE@%$X86_FALSE%g
3791 s%@X86_WIN32_TRUE@%$X86_WIN32_TRUE%g
3792 s%@X86_WIN32_FALSE@%$X86_WIN32_FALSE%g
3793 s%@ALPHA_TRUE@%$ALPHA_TRUE%g
3794 s%@ALPHA_FALSE@%$ALPHA_FALSE%g
3795 s%@IA64_TRUE@%$IA64_TRUE%g
3796 s%@IA64_FALSE@%$IA64_FALSE%g
3797 s%@M68K_TRUE@%$M68K_TRUE%g
3798 s%@M68K_FALSE@%$M68K_FALSE%g
3799 s%@POWERPC_TRUE@%$POWERPC_TRUE%g
3800 s%@POWERPC_FALSE@%$POWERPC_FALSE%g
3801 s%@POWERPC_AIX_TRUE@%$POWERPC_AIX_TRUE%g
3802 s%@POWERPC_AIX_FALSE@%$POWERPC_AIX_FALSE%g
3803 s%@POWERPC_DARWIN_TRUE@%$POWERPC_DARWIN_TRUE%g
3804 s%@POWERPC_DARWIN_FALSE@%$POWERPC_DARWIN_FALSE%g
3805 s%@ARM_TRUE@%$ARM_TRUE%g
3806 s%@ARM_FALSE@%$ARM_FALSE%g
3807 s%@S390_TRUE@%$S390_TRUE%g
3808 s%@S390_FALSE@%$S390_FALSE%g
3809 s%@X86_64_TRUE@%$X86_64_TRUE%g
3810 s%@X86_64_FALSE@%$X86_64_FALSE%g
3811 s%@SH_TRUE@%$SH_TRUE%g
3812 s%@SH_FALSE@%$SH_FALSE%g
3814 s%@ALLOCA@%$ALLOCA%g
3815 s%@TARGET@%$TARGET%g
3816 s%@TARGETDIR@%$TARGETDIR%g
3817 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
3818 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
3823 cat >> $CONFIG_STATUS <<\EOF
3825 # Split the substitutions into bite-sized pieces for seds with
3826 # small command number limits, like on Digital OSF/1 and HP-UX.
3827 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3828 ac_file=1 # Number of current file.
3829 ac_beg=1 # First line for current file.
3830 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3833 while $ac_more_lines; do
3834 if test $ac_beg -gt 1; then
3835 sed "1,${ac_beg}d
; ${ac_end}q
" conftest.subs > conftest.s$ac_file
3837 sed "${ac_end}q
" conftest.subs > conftest.s$ac_file
3839 if test ! -s conftest.s$ac_file; then
3841 rm -f conftest.s$ac_file
3843 if test -z "$ac_sed_cmds"; then
3844 ac_sed_cmds="sed -f conftest.s
$ac_file"
3846 ac_sed_cmds="$ac_sed_cmds |
sed -f conftest.s
$ac_file"
3848 ac_file=`expr $ac_file + 1`
3850 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3853 if test -z "$ac_sed_cmds"; then
3858 cat >> $CONFIG_STATUS <<EOF
3860 CONFIG_FILES=\${CONFIG_FILES-"include/Makefile include/ffi.h Makefile"}
3862 cat >> $CONFIG_STATUS <<\EOF
3863 for ac_file in .. $CONFIG_FILES; do if test "x
$ac_file" != x..; then
3864 # Support "outfile
[:infile
[:infile...
]]", defaulting infile="outfile.
in".
3866 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3867 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3868 *) ac_file_in="${ac_file}.
in" ;;
3871 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3873 # Remove last slash and all that follows it. Not all systems have dirname.
3874 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3875 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3876 # The file is in a subdirectory.
3877 test ! -d "$ac_dir" && mkdir "$ac_dir"
3878 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3879 # A "..
/" for each directory in $ac_dir_suffix.
3880 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3882 ac_dir_suffix= ac_dots=
3885 case "$ac_given_srcdir" in
3887 if test -z "$ac_dots"; then top_srcdir=.
3888 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3889 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3891 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3892 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3895 case "$ac_given_INSTALL" in
3896 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3897 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3900 echo creating "$ac_file"
3902 configure_input="Generated automatically from
`echo $ac_file_in|sed 's%.*/%%'` by configure.
"
3904 *Makefile*) ac_comsub="1i
\\
3905 # $configure_input" ;;
3909 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3911 s%@configure_input@%$configure_input%g
3912 s%@srcdir@%$srcdir%g
3913 s%@top_srcdir@%$top_srcdir%g
3914 s%@INSTALL@%$INSTALL%g
3915 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3919 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3920 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3922 # ac_d sets the value in "#define NAME VALUE" lines.
3923 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3924 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3927 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3928 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3929 ac_uB
='\([ ]\)%\1#\2define\3'
3932 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3933 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3934 ac_eB
='$%\1#\2define\3'
3938 if test "${CONFIG_HEADERS+set}" != set; then
3940 cat >> $CONFIG_STATUS <<EOF
3941 CONFIG_HEADERS="fficonfig.h"
3943 cat >> $CONFIG_STATUS <<\EOF
3945 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3946 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3948 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3949 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3950 *) ac_file_in
="${ac_file}.in" ;;
3953 echo creating
$ac_file
3955 rm -f conftest.frag conftest.
in conftest.out
3956 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3957 cat $ac_file_inputs > conftest.
in
3961 # Transform confdefs.h into a sed script conftest.vals that substitutes
3962 # the proper values into config.h.in to produce config.h. And first:
3963 # Protect against being on the right side of a sed subst in config.status.
3964 # Protect against being in an unquoted here document in config.status.
3966 cat > conftest.hdr
<<\EOF
3969 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3973 sed -n -f conftest.hdr confdefs.h > conftest.vals
3976 # This sed command replaces #undef with comments. This is necessary, for
3977 # example, in the case of _POSIX_SOURCE, which is predefined and required
3978 # on some systems where configure will not decide to define it.
3979 cat >> conftest.vals <<\EOF
3980 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3983 # Break up conftest.vals because some shells have a limit on
3984 # the size of here documents, and old seds have small limits too.
3989 ac_lines=`grep -c . conftest.vals
`
3990 # grep -c gives empty output for an empty file on some AIX systems.
3991 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3992 # Write a limited-size here document to conftest.frag.
3993 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3994 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3996 sed -f conftest.frag conftest.in > conftest.out
3998 mv conftest.out conftest.in
4000 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4002 mv conftest.tail conftest.vals
4006 cat >> $CONFIG_STATUS <<\EOF
4007 rm -f conftest.frag conftest.h
4008 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4009 cat conftest.in >> conftest.h
4011 if cmp -s $ac_file conftest.h 2>/dev/null; then
4012 echo "$ac_file is unchanged"
4015 # Remove last slash and all that follows it. Not all systems have dirname.
4016 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4017 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4018 # The file is in a subdirectory.
4019 test ! -d "$ac_dir" && mkdir "$ac_dir"
4022 mv conftest.h $ac_file
4027 cat >> $CONFIG_STATUS <<EOF
4032 with_multisubdir=${with_multisubdir}
4033 ac_configure_args="${multilib_arg} ${ac_configure_args}"
4034 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
4035 libffi_basedir=${libffi_basedir}
4038 test ! -d include && mkdir include
4039 test ! -f include/fficonfig.h && cp fficonfig.h include/fficonfig.h
4040 if cmp -s fficonfig.h include/fficonfig.h 2>/dev/null; then
4041 echo fficonfig.h unchanged
4043 echo Moving fficonfig.h to include/fficonfig.h
4044 cp fficonfig.h include/fficonfig.h
4048 cat >> $CONFIG_STATUS <<\EOF
4049 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4051 if test -n "$CONFIG_FILES"; then
4052 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
4053 ac_file=Makefile . ${libffi_basedir}/../config-ml.in
4058 chmod +x $CONFIG_STATUS
4059 rm -fr confdefs* $ac_clean_files
4060 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4063 # Make target subdirectories if required.
4064 test -d src || mkdir src
4065 test -d src/${TARGETDIR} || mkdir src/${TARGETDIR}