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-maintainer-mode enable make rules and dependencies not useful
18 (and sometimes confusing) to the casual installer"
20 --enable-shared[=PKGS] build shared libraries [default=yes]"
22 --enable-static[=PKGS] build static libraries [default=yes]"
24 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
26 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
28 --disable-libtool-lock avoid locking (might break parallel builds)"
30 --enable-debug debugging mode"
32 --disable-structs omit code for struct support"
34 --disable-raw-api make the raw api unavailable"
36 --enable-purify-safety purify-safe mode"
38 # Initialize some variables set by options.
39 # The variables have the same names as the options, with
40 # dashes changed to underlines.
42 cache_file
=.
/config.cache
51 program_transform_name
=s
,x
,x
,
60 bindir
='${exec_prefix}/bin'
61 sbindir
='${exec_prefix}/sbin'
62 libexecdir
='${exec_prefix}/libexec'
63 datadir
='${prefix}/share'
64 sysconfdir
='${prefix}/etc'
65 sharedstatedir
='${prefix}/com'
66 localstatedir
='${prefix}/var'
67 libdir
='${exec_prefix}/lib'
68 includedir
='${prefix}/include'
69 oldincludedir
='/usr/include'
70 infodir
='${prefix}/info'
71 mandir
='${prefix}/man'
73 # Initialize some other variables.
76 SHELL
=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
92 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 # Accept the important Cygnus configure options, so we can diagnose typos.
100 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
102 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
103 bindir
="$ac_optarg" ;;
105 -build |
--build |
--buil |
--bui |
--bu)
107 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
108 build
="$ac_optarg" ;;
110 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
111 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
112 ac_prev
=cache_file
;;
113 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
114 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
115 cache_file
="$ac_optarg" ;;
117 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
119 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
121 datadir
="$ac_optarg" ;;
123 -disable-* |
--disable-*)
124 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* |
--enable-*)
133 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
146 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
147 |
--exec |
--exe |
--ex)
148 ac_prev
=exec_prefix
;;
149 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
150 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
151 |
--exec=* |
--exe=* |
--ex=*)
152 exec_prefix
="$ac_optarg" ;;
154 -gas |
--gas |
--ga |
--g)
155 # Obsolete; use --with-gas.
158 -help |
--help |
--hel |
--he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --site-file=FILE use FILE as the site file
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 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
342 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
343 sitefile
="$ac_optarg" ;;
345 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
347 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
348 srcdir
="$ac_optarg" ;;
350 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
351 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
352 ac_prev
=sysconfdir
;;
353 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
354 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
355 sysconfdir
="$ac_optarg" ;;
357 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
359 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
360 target
="$ac_optarg" ;;
362 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
365 -version |
--version |
--versio |
--versi |
--vers)
366 echo "configure generated by autoconf version 2.13"
370 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}='$ac_optarg'" ;;
382 -without-* |
--without-*)
383 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package
=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
392 # Obsolete; use --with-x.
395 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
396 |
--x-incl |
--x-inc |
--x-in |
--x-i)
397 ac_prev
=x_includes
;;
398 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
399 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
400 x_includes
="$ac_optarg" ;;
402 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
403 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
404 ac_prev
=x_libraries
;;
405 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
406 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
407 x_libraries
="$ac_optarg" ;;
409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 if test "x$nonopt" != xNONE
; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
425 if test -n "$ac_prev"; then
426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431 # File descriptor usage:
434 # 2 errors and warnings
435 # 3 some systems may open it to /dev/tty
436 # 4 used on the Kubota Titan
437 # 6 checking for... messages and results
438 # 5 compiler messages saved in config.log
439 if test "$silent" = yes; then
447 This file contains any messages produced by compilers while
448 running configure, to aid debugging if configure makes a mistake.
451 # Strip out --no-create and --no-recursion so they do not pile up.
452 # Also quote any args containing shell metacharacters.
457 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
458 |
--no-cr |
--no-c) ;;
459 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
460 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
461 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
468 # Only set these to C if already set. These must not be set unconditionally
469 # because not all systems understand e.g. LANG=C (notably SCO).
470 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471 # Non-C LC_CTYPE values break the ctype check.
472 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
473 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
474 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
475 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
478 rm -rf conftest
* confdefs.h
479 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
482 # A filename unique to this package, relative to the directory that
483 # configure is in, which we can look for to find out if srcdir is correct.
484 ac_unique_file
=fficonfig.h.
in
486 # Find the source files, if location was not specified.
487 if test -z "$srcdir"; then
488 ac_srcdir_defaulted
=yes
489 # Try the directory containing this script, then its parent.
491 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
494 if test ! -r $srcdir/$ac_unique_file; then
498 ac_srcdir_defaulted
=no
500 if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
507 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509 # Prefer explicitly selected file to automatically selected ones.
510 if test -z "$sitefile"; then
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE
; then
513 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
515 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 CONFIG_SITE
="$sitefile"
521 for ac_site_file
in $CONFIG_SITE; do
522 if test -r "$ac_site_file"; then
523 echo "loading site script $ac_site_file"
528 if test -r "$cache_file"; then
529 echo "loading cache $cache_file"
532 echo "creating cache $cache_file"
537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
538 ac_cpp
='$CPP $CPPFLAGS'
539 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
540 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
541 cross_compiling
=$ac_cv_prog_cc_cross
545 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
546 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
547 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
554 ac_n
= ac_c
='\c' ac_t
=
562 echo "configure: warning: ***********************************************************" 1>&2
563 echo "configure: warning: ***********************************************************" 1>&2
564 echo "configure: warning: This is beta code. If you're looking for a stable release" 1>&2
565 echo "configure: warning: then use the most recent one - libffi-1.20." 1>&2
566 echo "configure: warning: ***********************************************************" 1>&2
567 echo "configure: warning: ***********************************************************" 1>&2
569 # Check whether --enable-multilib or --disable-multilib was given.
570 if test "${enable_multilib+set}" = set; then
571 enableval
="$enable_multilib"
572 case "${enableval}" in
575 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
582 if test "${srcdir}" = "."; then
583 if test "${with_target_subdir}" != "."; then
584 libffi_basedir
="${srcdir}/${with_multisrctop}.."
586 libffi_basedir
="${srcdir}/${with_multisrctop}"
589 libffi_basedir
="${srcdir}"
594 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
595 if test -f $ac_dir/install-sh
; then
597 ac_install_sh
="$ac_aux_dir/install-sh -c"
599 elif test -f $ac_dir/install.sh
; then
601 ac_install_sh
="$ac_aux_dir/install.sh -c"
605 if test -z "$ac_aux_dir"; then
606 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
608 ac_config_guess
=$ac_aux_dir/config.guess
609 ac_config_sub
=$ac_aux_dir/config.sub
610 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
613 # Make sure we can run config.sub.
614 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
615 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
618 echo $ac_n "checking host system type""... $ac_c" 1>&6
619 echo "configure:620: checking host system type" >&5
622 case "$host_alias" in
626 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
627 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
629 *) host_alias
=$nonopt ;;
633 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
634 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
635 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
636 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
637 echo "$ac_t""$host" 1>&6
640 # Find a good install program. We prefer a C program (faster),
641 # so one script is as good as another. But avoid the broken or
642 # incompatible versions:
643 # SysV /etc/install, /usr/sbin/install
644 # SunOS /usr/etc/install
647 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
650 # ./install, which can be erroneously created by make from ./install.sh.
651 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
652 echo "configure:653: checking for a BSD compatible install" >&5
653 if test -z "$INSTALL"; then
654 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
657 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
658 for ac_dir
in $PATH; do
659 # Account for people who put trailing slashes in PATH elements.
661 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
663 # OSF1 and SCO ODT 3.0 have their own names for install.
664 # Don't use installbsd from OSF since it installs stuff as root
666 for ac_prog
in ginstall scoinst
install; do
667 if test -f $ac_dir/$ac_prog; then
668 if test $ac_prog = install &&
669 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
670 # AIX install. It has an incompatible calling convention.
673 ac_cv_path_install
="$ac_dir/$ac_prog -c"
684 if test "${ac_cv_path_install+set}" = set; then
685 INSTALL
="$ac_cv_path_install"
687 # As a last resort, use the slow shell script. We don't cache a
688 # path for INSTALL within a source directory, because that will
689 # break other packages using the cache if that directory is
690 # removed, or if the path is relative.
691 INSTALL
="$ac_install_sh"
694 echo "$ac_t""$INSTALL" 1>&6
696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
697 # It thinks the first close brace ends the variable substitution.
698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
702 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
704 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
705 echo "configure:706: checking whether build environment is sane" >&5
708 echo timestamp
> conftestfile
709 # Do `set' in a subshell so we don't clobber the current shell's
710 # arguments. Must try -L first in case configure is actually a
711 # symlink; some systems play weird games with the mod time of symlinks
712 # (eg FreeBSD returns the mod time of the symlink's containing
715 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
716 if test "$*" = "X"; then
718 set X
`ls -t $srcdir/configure conftestfile`
720 if test "$*" != "X $srcdir/configure conftestfile" \
721 && test "$*" != "X conftestfile $srcdir/configure"; then
723 # If neither matched, then we have a broken ls. This can happen
724 # if, for instance, CONFIG_SHELL is bash and it inherits a
725 # broken ls alias from the environment. This has actually
726 # happened. Such a system could not be considered "sane".
727 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
728 alias in your environment" 1>&2; exit 1; }
731 test "$2" = conftestfile
737 { echo "configure: error: newly created file is older than distributed files!
738 Check your system clock" 1>&2; exit 1; }
741 echo "$ac_t""yes" 1>&6
742 if test "$program_transform_name" = s
,x
,x
,; then
743 program_transform_name
=
745 # Double any \ or $. echo might interpret backslashes.
746 cat <<\EOF_SED
> conftestsed
747 s
,\\,\\\\,g
; s
,\$
,$$
,g
749 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
752 test "$program_prefix" != NONE
&&
753 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
754 # Use a double $ so make ignores it.
755 test "$program_suffix" != NONE
&&
756 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
758 # sed with no file args requires a program.
759 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
761 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
762 echo "configure:763: checking whether ${MAKE-make} sets \${MAKE}" >&5
763 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
764 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
765 echo $ac_n "(cached) $ac_c" 1>&6
767 cat > conftestmake
<<\EOF
769 @
echo 'ac_maketemp="${MAKE}"'
771 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
772 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
773 if test -n "$ac_maketemp"; then
774 eval ac_cv_prog_make_
${ac_make}_set
=yes
776 eval ac_cv_prog_make_
${ac_make}_set
=no
780 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
781 echo "$ac_t""yes" 1>&6
784 echo "$ac_t""no" 1>&6
785 SET_MAKE
="MAKE=${MAKE-make}"
793 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
794 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
799 missing_dir
=`cd $ac_aux_dir && pwd`
800 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
801 echo "configure:802: checking for working aclocal" >&5
802 # Run test in a subshell; some versions of sh will print an error if
803 # an executable is not found, even if stderr is redirected.
804 # Redirect stdin to placate older versions of autoconf. Sigh.
805 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
807 echo "$ac_t""found" 1>&6
809 ACLOCAL
="$missing_dir/missing aclocal"
810 echo "$ac_t""missing" 1>&6
813 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
814 echo "configure:815: checking for working autoconf" >&5
815 # Run test in a subshell; some versions of sh will print an error if
816 # an executable is not found, even if stderr is redirected.
817 # Redirect stdin to placate older versions of autoconf. Sigh.
818 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
820 echo "$ac_t""found" 1>&6
822 AUTOCONF
="$missing_dir/missing autoconf"
823 echo "$ac_t""missing" 1>&6
826 echo $ac_n "checking for working automake""... $ac_c" 1>&6
827 echo "configure:828: checking for working automake" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
833 echo "$ac_t""found" 1>&6
835 AUTOMAKE
="$missing_dir/missing automake"
836 echo "$ac_t""missing" 1>&6
839 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
840 echo "configure:841: checking for working autoheader" >&5
841 # Run test in a subshell; some versions of sh will print an error if
842 # an executable is not found, even if stderr is redirected.
843 # Redirect stdin to placate older versions of autoconf. Sigh.
844 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
845 AUTOHEADER
=autoheader
846 echo "$ac_t""found" 1>&6
848 AUTOHEADER
="$missing_dir/missing autoheader"
849 echo "$ac_t""missing" 1>&6
852 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
853 echo "configure:854: checking for working makeinfo" >&5
854 # Run test in a subshell; some versions of sh will print an error if
855 # an executable is not found, even if stderr is redirected.
856 # Redirect stdin to placate older versions of autoconf. Sigh.
857 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
859 echo "$ac_t""found" 1>&6
861 MAKEINFO
="$missing_dir/missing makeinfo"
862 echo "$ac_t""missing" 1>&6
867 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
868 echo "configure:869: checking for Cygwin environment" >&5
869 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
872 cat > conftest.
$ac_ext <<EOF
873 #line 874 "configure"
874 #include "confdefs.h"
879 #define __CYGWIN__ __CYGWIN32__
884 if { (eval echo configure
:885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
888 echo "configure: failed program was:" >&5
889 cat conftest.
$ac_ext >&5
897 echo "$ac_t""$ac_cv_cygwin" 1>&6
899 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
900 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
901 echo "configure:902: checking for mingw32 environment" >&5
902 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
905 cat > conftest.
$ac_ext <<EOF
906 #line 907 "configure"
907 #include "confdefs.h"
913 if { (eval echo configure
:914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
917 echo "configure: failed program was:" >&5
918 cat conftest.
$ac_ext >&5
926 echo "$ac_t""$ac_cv_mingw32" 1>&6
928 test "$ac_cv_mingw32" = yes && MINGW32
=yes
931 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
932 echo "configure:933: checking for executable suffix" >&5
933 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&6
936 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
940 echo 'int main () { return 0; }' > conftest.
$ac_ext
942 if { (eval echo configure
:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
943 for file in conftest.
*; do
945 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
946 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
950 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
953 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
958 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
959 echo "$ac_t""${ac_cv_exeext}" 1>&6
962 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
963 echo "configure:964: checking whether to enable maintainer-specific portions of Makefiles" >&5
964 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
965 if test "${enable_maintainer_mode+set}" = set; then
966 enableval
="$enable_maintainer_mode"
967 USE_MAINTAINER_MODE
=$enableval
969 USE_MAINTAINER_MODE
=no
972 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
975 if test $USE_MAINTAINER_MODE = yes; then
976 MAINTAINER_MODE_TRUE
=
977 MAINTAINER_MODE_FALSE
='#'
979 MAINTAINER_MODE_TRUE
='#'
980 MAINTAINER_MODE_FALSE
=
982 MAINT
=$MAINTAINER_MODE_TRUE
986 # Extract the first word of "gcc", so it can be a program name with args.
987 set dummy gcc
; ac_word
=$2
988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
989 echo "configure:990: checking for $ac_word" >&5
990 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
993 if test -n "$CC"; then
994 ac_cv_prog_CC
="$CC" # Let the user override the test.
996 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
998 for ac_dir
in $ac_dummy; do
999 test -z "$ac_dir" && ac_dir
=.
1000 if test -f $ac_dir/$ac_word; then
1009 if test -n "$CC"; then
1010 echo "$ac_t""$CC" 1>&6
1012 echo "$ac_t""no" 1>&6
1015 if test -z "$CC"; then
1016 # Extract the first word of "cc", so it can be a program name with args.
1017 set dummy cc
; ac_word
=$2
1018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1019 echo "configure:1020: checking for $ac_word" >&5
1020 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1023 if test -n "$CC"; then
1024 ac_cv_prog_CC
="$CC" # Let the user override the test.
1026 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1029 for ac_dir
in $ac_dummy; do
1030 test -z "$ac_dir" && ac_dir
=.
1031 if test -f $ac_dir/$ac_word; then
1032 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1033 ac_prog_rejected
=yes
1041 if test $ac_prog_rejected = yes; then
1042 # We found a bogon in the path, so make sure we never use it.
1043 set dummy
$ac_cv_prog_CC
1045 if test $# -gt 0; then
1046 # We chose a different compiler from the bogus one.
1047 # However, it has the same basename, so the bogon will be chosen
1048 # first if we set CC to just the basename; use the full file name.
1050 set dummy
"$ac_dir/$ac_word" "$@"
1058 if test -n "$CC"; then
1059 echo "$ac_t""$CC" 1>&6
1061 echo "$ac_t""no" 1>&6
1064 if test -z "$CC"; then
1065 case "`uname -s`" in
1067 # Extract the first word of "cl", so it can be a program name with args.
1068 set dummy cl
; ac_word
=$2
1069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1070 echo "configure:1071: checking for $ac_word" >&5
1071 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 if test -n "$CC"; then
1075 ac_cv_prog_CC
="$CC" # Let the user override the test.
1077 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1079 for ac_dir
in $ac_dummy; do
1080 test -z "$ac_dir" && ac_dir
=.
1081 if test -f $ac_dir/$ac_word; then
1090 if test -n "$CC"; then
1091 echo "$ac_t""$CC" 1>&6
1093 echo "$ac_t""no" 1>&6
1098 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1101 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1102 echo "configure:1103: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1105 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1106 ac_cpp
='$CPP $CPPFLAGS'
1107 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1108 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1109 cross_compiling
=$ac_cv_prog_cc_cross
1111 cat > conftest.
$ac_ext << EOF
1113 #line 1114 "configure"
1114 #include "confdefs.h"
1118 if { (eval echo configure
:1119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1119 ac_cv_prog_cc_works
=yes
1120 # If we can't run a trivial program, we are probably using a cross compiler.
1121 if (.
/conftest
; exit) 2>/dev
/null
; then
1122 ac_cv_prog_cc_cross
=no
1124 ac_cv_prog_cc_cross
=yes
1127 echo "configure: failed program was:" >&5
1128 cat conftest.
$ac_ext >&5
1129 ac_cv_prog_cc_works
=no
1133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1134 ac_cpp
='$CPP $CPPFLAGS'
1135 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1136 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1137 cross_compiling
=$ac_cv_prog_cc_cross
1139 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1140 if test $ac_cv_prog_cc_works = no
; then
1141 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1143 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1145 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1146 cross_compiling
=$ac_cv_prog_cc_cross
1148 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether we are using GNU C" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 cat > conftest.c
<<EOF
1158 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1165 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1167 if test $ac_cv_prog_gcc = yes; then
1173 ac_test_CFLAGS
="${CFLAGS+set}"
1174 ac_save_CFLAGS
="$CFLAGS"
1176 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1177 echo "configure:1178: checking whether ${CC-cc} accepts -g" >&5
1178 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1181 echo 'void f(){}' > conftest.c
1182 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1191 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1192 if test "$ac_test_CFLAGS" = set; then
1193 CFLAGS
="$ac_save_CFLAGS"
1194 elif test $ac_cv_prog_cc_g = yes; then
1195 if test "$GCC" = yes; then
1201 if test "$GCC" = yes; then
1208 # Check whether --enable-shared or --disable-shared was given.
1209 if test "${enable_shared+set}" = set; then
1210 enableval
="$enable_shared"
1211 p
=${PACKAGE-default}
1212 case "$enableval" in
1213 yes) enable_shared
=yes ;;
1214 no
) enable_shared
=no
;;
1217 # Look at the argument we got. We use all the common list separators.
1218 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1219 for pkg
in $enableval; do
1220 if test "X$pkg" = "X$p"; then
1231 # Check whether --enable-static or --disable-static was given.
1232 if test "${enable_static+set}" = set; then
1233 enableval
="$enable_static"
1234 p
=${PACKAGE-default}
1235 case "$enableval" in
1236 yes) enable_static
=yes ;;
1237 no
) enable_static
=no
;;
1240 # Look at the argument we got. We use all the common list separators.
1241 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1242 for pkg
in $enableval; do
1243 if test "X$pkg" = "X$p"; then
1254 # Check whether --enable-fast-install or --disable-fast-install was given.
1255 if test "${enable_fast_install+set}" = set; then
1256 enableval
="$enable_fast_install"
1257 p
=${PACKAGE-default}
1258 case "$enableval" in
1259 yes) enable_fast_install
=yes ;;
1260 no
) enable_fast_install
=no
;;
1262 enable_fast_install
=no
1263 # Look at the argument we got. We use all the common list separators.
1264 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1265 for pkg
in $enableval; do
1266 if test "X$pkg" = "X$p"; then
1267 enable_fast_install
=yes
1274 enable_fast_install
=yes
1277 echo $ac_n "checking build system type""... $ac_c" 1>&6
1278 echo "configure:1279: checking build system type" >&5
1281 case "$build_alias" in
1284 NONE
) build_alias
=$host_alias ;;
1285 *) build_alias
=$nonopt ;;
1289 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1290 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1291 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1292 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1293 echo "$ac_t""$build" 1>&6
1295 # Extract the first word of "ranlib", so it can be a program name with args.
1296 set dummy ranlib
; ac_word
=$2
1297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1298 echo "configure:1299: checking for $ac_word" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 if test -n "$RANLIB"; then
1303 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1305 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1307 for ac_dir
in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir
=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_prog_RANLIB
="ranlib"
1315 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1318 RANLIB
="$ac_cv_prog_RANLIB"
1319 if test -n "$RANLIB"; then
1320 echo "$ac_t""$RANLIB" 1>&6
1322 echo "$ac_t""no" 1>&6
1325 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1326 if test "${with_gnu_ld+set}" = set; then
1327 withval
="$with_gnu_ld"
1328 test "$withval" = no || with_gnu_ld
=yes
1334 if test "$ac_cv_prog_gcc" = yes; then
1335 # Check if gcc -print-prog-name=ld gives a path.
1336 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1337 echo "configure:1338: checking for ld used by GCC" >&5
1338 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1340 # Accept absolute paths.
1341 [\\/]* |
[A-Za-z
]:[\\/]*)
1342 re_direlt
='/[^/][^/]*/\.\./'
1343 # Canonicalize the path of ld
1344 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1345 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1346 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1348 test -z "$LD" && LD
="$ac_prog"
1351 # If it fails, then pretend we aren't using GCC.
1355 # If it is relative, then search for the first ld in PATH.
1359 elif test "$with_gnu_ld" = yes; then
1360 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1361 echo "configure:1362: checking for GNU ld" >&5
1363 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1364 echo "configure:1365: checking for non-GNU ld" >&5
1366 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 if test -z "$LD"; then
1370 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1371 for ac_dir
in $PATH; do
1372 test -z "$ac_dir" && ac_dir
=.
1373 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1374 ac_cv_path_LD
="$ac_dir/$ac_prog"
1375 # Check to see if the program is GNU ld. I'd rather use --version,
1376 # but apparently some GNU ld's only accept -v.
1377 # Break only if it was the GNU/non-GNU ld that we prefer.
1378 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1379 test "$with_gnu_ld" != no
&& break
1381 test "$with_gnu_ld" != yes && break
1387 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1392 if test -n "$LD"; then
1393 echo "$ac_t""$LD" 1>&6
1395 echo "$ac_t""no" 1>&6
1397 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1398 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1399 echo "configure:1400: checking if the linker ($LD) is GNU ld" >&5
1400 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1404 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1405 ac_cv_prog_gnu_ld
=yes
1407 ac_cv_prog_gnu_ld
=no
1411 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1414 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1415 echo "configure:1416: checking for BSD-compatible nm" >&5
1416 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1419 if test -n "$NM"; then
1420 # Let the user override the test.
1423 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1424 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1425 test -z "$ac_dir" && ac_dir
=.
1426 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1427 # Check to see if the nm accepts a BSD-compat flag.
1428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1429 # nm: unknown option "B" ignored
1430 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1431 ac_cv_path_NM
="$ac_dir/nm -B"
1433 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1434 ac_cv_path_NM
="$ac_dir/nm -p"
1437 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1438 continue # so that we can try to find one that supports BSD flags
1443 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1448 echo "$ac_t""$NM" 1>&6
1450 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1451 echo "configure:1452: checking whether ln -s works" >&5
1452 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1456 if ln -s X conftestdata
2>/dev
/null
1459 ac_cv_prog_LN_S
="ln -s"
1464 LN_S
="$ac_cv_prog_LN_S"
1465 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1466 echo "$ac_t""yes" 1>&6
1468 echo "$ac_t""no" 1>&6
1473 NONE
) lt_target
="$host" ;;
1474 *) lt_target
="$target" ;;
1477 # Check for any special flags to pass to ltconfig.
1478 libtool_flags
="--cache-file=$cache_file"
1479 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1480 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1481 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1482 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1483 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1486 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1487 if test "${enable_libtool_lock+set}" = set; then
1488 enableval
="$enable_libtool_lock"
1492 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1493 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1495 # Some flags need to be propagated to the compiler or linker for good
1497 case "$lt_target" in
1499 # Find out which ABI we are using.
1500 echo '#line 1501 "configure"' > conftest.
$ac_ext
1501 if { (eval echo configure
:1502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1502 case "`/usr/bin/file conftest.o`" in
1518 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1519 SAVE_CFLAGS
="$CFLAGS"
1520 CFLAGS
="$CFLAGS -belf"
1521 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1522 echo "configure:1523: checking whether the C compiler needs -belf" >&5
1523 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1526 cat > conftest.
$ac_ext <<EOF
1527 #line 1528 "configure"
1528 #include "confdefs.h"
1534 if { (eval echo configure
:1535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1536 lt_cv_cc_needs_belf
=yes
1538 echo "configure: failed program was:" >&5
1539 cat conftest.
$ac_ext >&5
1541 lt_cv_cc_needs_belf
=no
1546 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1547 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1548 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1549 CFLAGS
="$SAVE_CFLAGS"
1557 # Save cache, so that ltconfig can load it
1558 cat > confcache
<<\EOF
1559 # This file is a shell script that caches the results of configure
1560 # tests run on this system so they can be shared between configure
1561 # scripts and configure runs. It is not useful on other systems.
1562 # If it contains results you don't want to keep, you may remove or edit it.
1564 # By default, configure uses ./config.cache as the cache file,
1565 # creating it if it does not exist already. You can give configure
1566 # the --cache-file=FILE option to use a different cache file; that is
1567 # what configure does when it calls configure scripts in
1568 # subdirectories, so they share the cache.
1569 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1570 # config.status only pays attention to the cache file if you give it the
1571 # --recheck option to rerun configure.
1574 # The following way of writing the cache mishandles newlines in values,
1575 # but we know of no workaround that is simple, portable, and efficient.
1576 # So, don't put newlines in cache variables' values.
1577 # Ultrix sh set writes to stderr and can't be redirected directly,
1578 # and sets the high bit in the cache file unless we assign to the vars.
1580 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1582 # `set' does not quote correctly, so add quotes (double-quote substitution
1583 # turns \\\\ into \\, and sed turns \\ into \).
1585 -e "s/'/'\\\\''/g" \
1586 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1589 # `set' quotes correctly as required by POSIX, so do not add quotes.
1590 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1593 if cmp -s $cache_file confcache
; then
1596 if test -w $cache_file; then
1597 echo "updating cache $cache_file"
1598 cat confcache
> $cache_file
1600 echo "not updating unwritable cache $cache_file"
1606 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1607 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1608 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1609 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1610 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1611 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1612 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1613 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1615 # Reload cache, that may have been modified by ltconfig
1616 if test -r "$cache_file"; then
1617 echo "loading cache $cache_file"
1620 echo "creating cache $cache_file"
1625 # This can be used to rebuild libtool when needed
1626 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1628 # Always use our own libtool.
1629 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1631 # Redirect the config.log output again, so that the ltconfig log is not
1632 # clobbered by the next message.
1633 exec 5>>.
/config.log
1638 mips-sgi-irix5.
* | mips-sgi-irix6.
*) TARGET
=MIPS
; TARGETDIR
=mips
;;
1639 i
*86-pc-linux*) TARGET
=X86
; TARGETDIR
=x86
;;
1640 i
*86-*-beos*) TARGET
=X86
; TARGETDIR
=x86
;;
1641 sparc-sun-4
*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
1642 sparc-sun-
*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
1643 alpha
*-*-linux* | alpha
*-*-osf*) TARGET
=ALPHA
; TARGETDIR
=alpha
;;
1644 ia64
*-*-*) TARGET
=IA64
; TARGETDIR
=ia64
;;
1645 m68k-
*-linux*) TARGET
=M68K
; TARGETDIR
=m68k
;;
1646 powerpc-
*-linux* | powerpc-
*-sysv*) TARGET
=POWERPC
; TARGETDIR
=powerpc
;;
1647 powerpc-
*-beos*) TARGET
=POWERPC
; TARGETDIR
=powerpc
;;
1648 arm-
*-linux-*) TARGET
=ARM
; TARGETDIR
=arm
;;
1651 if test $TARGETDIR = unknown
; then
1652 { echo "configure: error: "libffi has not been ported to
$host.
"" 1>&2; exit 1; }
1657 if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes
; then
1666 if test ${TARGET}${ac_cv_prog_gcc} = MIPSno
; then
1675 if test x
$TARGET = xSPARC
; then
1684 if test x
$TARGET = xX86
; then
1693 if test x
$TARGET = xALPHA
; then
1702 if test x
$TARGET = xIA64
; then
1711 if test x
$TARGET = xM68K
; then
1720 if test x
$TARGET = xPOWERPC
; then
1729 if test x
$TARGET = xARM
; then
1737 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1738 echo "configure:1739: checking how to run the C preprocessor" >&5
1739 # On Suns, sometimes $CPP names a directory.
1740 if test -n "$CPP" && test -d "$CPP"; then
1743 if test -z "$CPP"; then
1744 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1747 # This must be in double quotes, not single quotes, because CPP may get
1748 # substituted into the Makefile and "${CC-cc}" will confuse make.
1750 # On the NeXT, cc -E runs the code through the compiler's parser,
1751 # not just through cpp.
1752 cat > conftest.
$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1758 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1759 { (eval echo configure
:1760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1760 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1761 if test -z "$ac_err"; then
1765 echo "configure: failed program was:" >&5
1766 cat conftest.
$ac_ext >&5
1768 CPP
="${CC-cc} -E -traditional-cpp"
1769 cat > conftest.
$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1775 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1776 { (eval echo configure
:1777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1777 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1778 if test -z "$ac_err"; then
1782 echo "configure: failed program was:" >&5
1783 cat conftest.
$ac_ext >&5
1785 CPP
="${CC-cc} -nologo -E"
1786 cat > conftest.
$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1792 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1793 { (eval echo configure
:1794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1794 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1795 if test -z "$ac_err"; then
1799 echo "configure: failed program was:" >&5
1800 cat conftest.
$ac_ext >&5
1809 ac_cv_prog_CPP
="$CPP"
1811 CPP
="$ac_cv_prog_CPP"
1813 ac_cv_prog_CPP
="$CPP"
1815 echo "$ac_t""$CPP" 1>&6
1817 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1818 echo "configure:1819: checking for ANSI C header files" >&5
1819 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 cat > conftest.
$ac_ext <<EOF
1823 #line 1824 "configure"
1824 #include "confdefs.h"
1830 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1831 { (eval echo configure
:1832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1832 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1833 if test -z "$ac_err"; then
1835 ac_cv_header_stdc
=yes
1838 echo "configure: failed program was:" >&5
1839 cat conftest.
$ac_ext >&5
1841 ac_cv_header_stdc
=no
1845 if test $ac_cv_header_stdc = yes; then
1846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1847 cat > conftest.
$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1853 egrep "memchr" >/dev
/null
2>&1; then
1857 ac_cv_header_stdc
=no
1863 if test $ac_cv_header_stdc = yes; then
1864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1865 cat > conftest.
$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1871 egrep "free" >/dev
/null
2>&1; then
1875 ac_cv_header_stdc
=no
1881 if test $ac_cv_header_stdc = yes; then
1882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1883 if test "$cross_compiling" = yes; then
1886 cat > conftest.
$ac_ext <<EOF
1887 #line 1888 "configure"
1888 #include "confdefs.h"
1890 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1891 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1892 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1893 int main () { int i; for (i = 0; i < 256; i++)
1894 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1898 if { (eval echo configure
:1899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1902 echo "configure: failed program was:" >&5
1903 cat conftest.
$ac_ext >&5
1905 ac_cv_header_stdc
=no
1913 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1914 if test $ac_cv_header_stdc = yes; then
1915 cat >> confdefs.h
<<\EOF
1916 #define STDC_HEADERS 1
1921 for ac_func
in memcpy
1923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1924 echo "configure:1925: checking for $ac_func" >&5
1925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1928 cat > conftest.
$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1931 /* System header to define __stub macros and hopefully few prototypes,
1932 which can conflict with char $ac_func(); below. */
1934 /* Override any gcc2 internal prototype to avoid an error. */
1935 /* We use char because int might match the return type of a gcc2
1936 builtin and then its argument prototype would still apply. */
1941 /* The GNU C library defines this for functions which it implements
1942 to always fail with ENOSYS. Some functions are actually named
1943 something starting with __ and the normal name is an alias. */
1944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1952 if { (eval echo configure
:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1954 eval "ac_cv_func_$ac_func=yes"
1956 echo "configure: failed program was:" >&5
1957 cat conftest.
$ac_ext >&5
1959 eval "ac_cv_func_$ac_func=no"
1964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1965 echo "$ac_t""yes" 1>&6
1966 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1967 cat >> confdefs.h
<<EOF
1968 #define $ac_tr_func 1
1972 echo "$ac_t""no" 1>&6
1976 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1977 # for constant arguments. Useless!
1978 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1979 echo "configure:1980: checking for working alloca.h" >&5
1980 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1983 cat > conftest.
$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1988 char *p = alloca(2 * sizeof(int));
1991 if { (eval echo configure
:1992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1993 ac_cv_header_alloca_h
=yes
1995 echo "configure: failed program was:" >&5
1996 cat conftest.
$ac_ext >&5
1998 ac_cv_header_alloca_h
=no
2003 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2004 if test $ac_cv_header_alloca_h = yes; then
2005 cat >> confdefs.h
<<\EOF
2006 #define HAVE_ALLOCA_H 1
2011 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2012 echo "configure:2013: checking for alloca" >&5
2013 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2016 cat > conftest.
$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2021 # define alloca __builtin_alloca
2024 # include <malloc.h>
2025 # define alloca _alloca
2028 # include <alloca.h>
2033 # ifndef alloca /* predefined by HP cc +Olibcalls */
2042 char *p = (char *) alloca(1);
2045 if { (eval echo configure
:2046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2047 ac_cv_func_alloca_works
=yes
2049 echo "configure: failed program was:" >&5
2050 cat conftest.
$ac_ext >&5
2052 ac_cv_func_alloca_works
=no
2057 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2058 if test $ac_cv_func_alloca_works = yes; then
2059 cat >> confdefs.h
<<\EOF
2060 #define HAVE_ALLOCA 1
2065 if test $ac_cv_func_alloca_works = no
; then
2066 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2067 # that cause trouble. Some versions do not even contain alloca or
2068 # contain a buggy version. If you still want to use their alloca,
2069 # use ar to extract alloca.o from them instead of compiling alloca.c.
2070 ALLOCA
=alloca.
${ac_objext}
2071 cat >> confdefs.h
<<\EOF
2076 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2077 echo "configure:2078: checking whether alloca needs Cray hooks" >&5
2078 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 cat > conftest.
$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2084 #if defined(CRAY) && ! defined(CRAY2)
2091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2092 egrep "webecray" >/dev
/null
2>&1; then
2103 echo "$ac_t""$ac_cv_os_cray" 1>&6
2104 if test $ac_cv_os_cray = yes; then
2105 for ac_func
in _getb67 GETB67 getb67
; do
2106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2107 echo "configure:2108: checking for $ac_func" >&5
2108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2111 cat > conftest.
$ac_ext <<EOF
2112 #line 2113 "configure"
2113 #include "confdefs.h"
2114 /* System header to define __stub macros and hopefully few prototypes,
2115 which can conflict with char $ac_func(); below. */
2117 /* Override any gcc2 internal prototype to avoid an error. */
2118 /* We use char because int might match the return type of a gcc2
2119 builtin and then its argument prototype would still apply. */
2124 /* The GNU C library defines this for functions which it implements
2125 to always fail with ENOSYS. Some functions are actually named
2126 something starting with __ and the normal name is an alias. */
2127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2135 if { (eval echo configure
:2136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2137 eval "ac_cv_func_$ac_func=yes"
2139 echo "configure: failed program was:" >&5
2140 cat conftest.
$ac_ext >&5
2142 eval "ac_cv_func_$ac_func=no"
2147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2148 echo "$ac_t""yes" 1>&6
2149 cat >> confdefs.h
<<EOF
2150 #define CRAY_STACKSEG_END $ac_func
2155 echo "$ac_t""no" 1>&6
2161 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2162 echo "configure:2163: checking stack direction for C alloca" >&5
2163 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2166 if test "$cross_compiling" = yes; then
2167 ac_cv_c_stack_direction
=0
2169 cat > conftest.
$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2172 find_stack_direction ()
2174 static char *addr = 0;
2179 return find_stack_direction ();
2182 return (&dummy > addr) ? 1 : -1;
2186 exit (find_stack_direction() < 0);
2189 if { (eval echo configure
:2190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2191 ac_cv_c_stack_direction
=1
2193 echo "configure: failed program was:" >&5
2194 cat conftest.
$ac_ext >&5
2196 ac_cv_c_stack_direction
=-1
2203 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2204 cat >> confdefs.h
<<EOF
2205 #define STACK_DIRECTION $ac_cv_c_stack_direction
2211 echo $ac_n "checking size of short""... $ac_c" 1>&6
2212 echo "configure:2213: checking size of short" >&5
2213 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 if test "$cross_compiling" = yes; then
2217 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2219 cat > conftest.
$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2225 FILE *f=fopen("conftestval", "w");
2227 fprintf(f, "%d\n", sizeof(short));
2231 if { (eval echo configure
:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2233 ac_cv_sizeof_short
=`cat conftestval`
2235 echo "configure: failed program was:" >&5
2236 cat conftest.
$ac_ext >&5
2238 ac_cv_sizeof_short
=0
2244 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2245 cat >> confdefs.h
<<EOF
2246 #define SIZEOF_SHORT $ac_cv_sizeof_short
2250 echo $ac_n "checking size of int""... $ac_c" 1>&6
2251 echo "configure:2252: checking size of int" >&5
2252 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 if test "$cross_compiling" = yes; then
2256 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2258 cat > conftest.
$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2264 FILE *f=fopen("conftestval", "w");
2266 fprintf(f, "%d\n", sizeof(int));
2270 if { (eval echo configure
:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2272 ac_cv_sizeof_int
=`cat conftestval`
2274 echo "configure: failed program was:" >&5
2275 cat conftest.
$ac_ext >&5
2283 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2284 cat >> confdefs.h
<<EOF
2285 #define SIZEOF_INT $ac_cv_sizeof_int
2289 echo $ac_n "checking size of long""... $ac_c" 1>&6
2290 echo "configure:2291: checking size of long" >&5
2291 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2294 if test "$cross_compiling" = yes; then
2295 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2297 cat > conftest.
$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2303 FILE *f=fopen("conftestval", "w");
2305 fprintf(f, "%d\n", sizeof(long));
2309 if { (eval echo configure
:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2311 ac_cv_sizeof_long
=`cat conftestval`
2313 echo "configure: failed program was:" >&5
2314 cat conftest.
$ac_ext >&5
2322 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2323 cat >> confdefs.h
<<EOF
2324 #define SIZEOF_LONG $ac_cv_sizeof_long
2328 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2329 echo "configure:2330: checking size of long long" >&5
2330 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 if test "$cross_compiling" = yes; then
2334 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2336 cat > conftest.
$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2342 FILE *f=fopen("conftestval", "w");
2344 fprintf(f, "%d\n", sizeof(long long));
2348 if { (eval echo configure
:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2350 ac_cv_sizeof_long_long
=`cat conftestval`
2352 echo "configure: failed program was:" >&5
2353 cat conftest.
$ac_ext >&5
2355 ac_cv_sizeof_long_long
=0
2361 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2362 cat >> confdefs.h
<<EOF
2363 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2367 echo $ac_n "checking size of float""... $ac_c" 1>&6
2368 echo "configure:2369: checking size of float" >&5
2369 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2372 if test "$cross_compiling" = yes; then
2373 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2375 cat > conftest.
$ac_ext <<EOF
2376 #line 2377 "configure"
2377 #include "confdefs.h"
2381 FILE *f=fopen("conftestval", "w");
2383 fprintf(f, "%d\n", sizeof(float));
2387 if { (eval echo configure
:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2389 ac_cv_sizeof_float
=`cat conftestval`
2391 echo "configure: failed program was:" >&5
2392 cat conftest.
$ac_ext >&5
2394 ac_cv_sizeof_float
=0
2400 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
2401 cat >> confdefs.h
<<EOF
2402 #define SIZEOF_FLOAT $ac_cv_sizeof_float
2406 echo $ac_n "checking size of double""... $ac_c" 1>&6
2407 echo "configure:2408: checking size of double" >&5
2408 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2411 if test "$cross_compiling" = yes; then
2412 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2414 cat > conftest.
$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2420 FILE *f=fopen("conftestval", "w");
2422 fprintf(f, "%d\n", sizeof(double));
2426 if { (eval echo configure
:2427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2428 ac_cv_sizeof_double
=`cat conftestval`
2430 echo "configure: failed program was:" >&5
2431 cat conftest.
$ac_ext >&5
2433 ac_cv_sizeof_double
=0
2439 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
2440 cat >> confdefs.h
<<EOF
2441 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
2445 echo $ac_n "checking size of long double""... $ac_c" 1>&6
2446 echo "configure:2447: checking size of long double" >&5
2447 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2450 if test "$cross_compiling" = yes; then
2451 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2453 cat > conftest.
$ac_ext <<EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2459 FILE *f=fopen("conftestval", "w");
2461 fprintf(f, "%d\n", sizeof(long double));
2465 if { (eval echo configure
:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2467 ac_cv_sizeof_long_double
=`cat conftestval`
2469 echo "configure: failed program was:" >&5
2470 cat conftest.
$ac_ext >&5
2472 ac_cv_sizeof_long_double
=0
2478 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
2479 cat >> confdefs.h
<<EOF
2480 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
2485 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2486 echo "configure:2487: checking size of void *" >&5
2487 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
2488 echo $ac_n "(cached) $ac_c" 1>&6
2490 if test "$cross_compiling" = yes; then
2491 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2493 cat > conftest.
$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2499 FILE *f=fopen("conftestval", "w");
2501 fprintf(f, "%d\n", sizeof(void *));
2505 if { (eval echo configure
:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2507 ac_cv_sizeof_void_p
=`cat conftestval`
2509 echo "configure: failed program was:" >&5
2510 cat conftest.
$ac_ext >&5
2512 ac_cv_sizeof_void_p
=0
2518 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2519 cat >> confdefs.h
<<EOF
2520 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2524 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2525 echo "configure:2526: checking whether byte ordering is bigendian" >&5
2526 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2529 ac_cv_c_bigendian
=unknown
2530 # See if sys/param.h defines the BYTE_ORDER macro.
2531 cat > conftest.
$ac_ext <<EOF
2532 #line 2533 "configure"
2533 #include "confdefs.h"
2534 #include <sys/types.h>
2535 #include <sys/param.h>
2538 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2543 if { (eval echo configure
:2544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2545 # It does; now see whether it defined to BIG_ENDIAN or not.
2546 cat > conftest.
$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2549 #include <sys/types.h>
2550 #include <sys/param.h>
2553 #if BYTE_ORDER != BIG_ENDIAN
2558 if { (eval echo configure
:2559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2560 ac_cv_c_bigendian
=yes
2562 echo "configure: failed program was:" >&5
2563 cat conftest.
$ac_ext >&5
2565 ac_cv_c_bigendian
=no
2569 echo "configure: failed program was:" >&5
2570 cat conftest.
$ac_ext >&5
2573 if test $ac_cv_c_bigendian = unknown
; then
2574 if test "$cross_compiling" = yes; then
2575 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2577 cat > conftest.
$ac_ext <<EOF
2578 #line 2579 "configure"
2579 #include "confdefs.h"
2581 /* Are we little or big endian? From Harbison&Steele. */
2585 char c[sizeof (long)];
2588 exit (u.c[sizeof (long) - 1] == 1);
2591 if { (eval echo configure
:2592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2593 ac_cv_c_bigendian
=no
2595 echo "configure: failed program was:" >&5
2596 cat conftest.
$ac_ext >&5
2598 ac_cv_c_bigendian
=yes
2606 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2607 if test $ac_cv_c_bigendian = yes; then
2608 cat >> confdefs.h
<<\EOF
2609 #define WORDS_BIGENDIAN 1
2620 # Check whether --enable-debug or --disable-debug was given.
2621 if test "${enable_debug+set}" = set; then
2622 enableval
="$enable_debug"
2623 cat >> confdefs.h
<<\EOF
2630 # Check whether --enable-debug or --disable-debug was given.
2631 if test "${enable_debug+set}" = set; then
2632 enableval
="$enable_debug"
2633 cat >> confdefs.h
<<\EOF
2634 #define FFI_NO_STRUCTS 1
2640 # Check whether --enable-debug or --disable-debug was given.
2641 if test "${enable_debug+set}" = set; then
2642 enableval
="$enable_debug"
2643 cat >> confdefs.h
<<\EOF
2644 #define FFI_NO_RAW_API 1
2650 # Check whether --enable-purify-safety or --disable-purify-safety was given.
2651 if test "${enable_purify_safety+set}" = set; then
2652 enableval
="$enable_purify_safety"
2653 cat >> confdefs.h
<<\EOF
2654 #define USING_PURIFY 1
2662 if test -z "$with_cross_host"; then
2664 USE_LIBDIR_FALSE
='#'
2670 if test "${multilib}" = "yes"; then
2671 multilib_arg
="--enable-multilib"
2677 cat > confcache
<<\EOF
2678 # This file is a shell script that caches the results of configure
2679 # tests run on this system so they can be shared between configure
2680 # scripts and configure runs. It is not useful on other systems.
2681 # If it contains results you don't want to keep, you may remove or edit it.
2683 # By default, configure uses ./config.cache as the cache file,
2684 # creating it if it does not exist already. You can give configure
2685 # the --cache-file=FILE option to use a different cache file; that is
2686 # what configure does when it calls configure scripts in
2687 # subdirectories, so they share the cache.
2688 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2689 # config.status only pays attention to the cache file if you give it the
2690 # --recheck option to rerun configure.
2693 # The following way of writing the cache mishandles newlines in values,
2694 # but we know of no workaround that is simple, portable, and efficient.
2695 # So, don't put newlines in cache variables' values.
2696 # Ultrix sh set writes to stderr and can't be redirected directly,
2697 # and sets the high bit in the cache file unless we assign to the vars.
2699 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2701 # `set' does not quote correctly, so add quotes (double-quote substitution
2702 # turns \\\\ into \\, and sed turns \\ into \).
2704 -e "s/'/'\\\\''/g" \
2705 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2708 # `set' quotes correctly as required by POSIX, so do not add quotes.
2709 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2712 if cmp -s $cache_file confcache
; then
2715 if test -w $cache_file; then
2716 echo "updating cache $cache_file"
2717 cat confcache
> $cache_file
2719 echo "not updating unwritable cache $cache_file"
2724 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2726 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2727 # Let make expand exec_prefix.
2728 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2730 # Any assignment to VPATH causes Sun make to only execute
2731 # the first set of double-colon rules, so remove it if not needed.
2732 # If there is a colon in the path, we need to keep it.
2733 if test "x$srcdir" = x.
; then
2734 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2737 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2739 DEFS
=-DHAVE_CONFIG_H
2741 # Without the "./", some shells look in PATH for config.status.
2742 : ${CONFIG_STATUS=./config.status}
2744 echo creating
$CONFIG_STATUS
2745 rm -f $CONFIG_STATUS
2746 cat > $CONFIG_STATUS <<EOF
2748 # Generated automatically by configure.
2749 # Run this file to recreate the current configuration.
2750 # This directory was configured as follows,
2751 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2753 # $0 $ac_configure_args
2755 # Compiler output produced by configure, useful for debugging
2756 # configure, is in ./config.log if it exists.
2758 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2761 case "\$ac_option" in
2762 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2763 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2764 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2765 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2766 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2768 -help | --help | --hel | --he | --h)
2769 echo "\$ac_cs_usage"; exit 0 ;;
2770 *) echo "\$ac_cs_usage"; exit 1 ;;
2774 ac_given_srcdir=$srcdir
2775 ac_given_INSTALL="$INSTALL"
2777 trap 'rm -fr `echo "include/Makefile include/ffi.h Makefile fficonfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2779 cat >> $CONFIG_STATUS <<EOF
2781 # Protect against being on the right side of a sed subst in config.status.
2782 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2783 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2787 s%@CFLAGS@%$CFLAGS%g
2788 s%@CPPFLAGS@%$CPPFLAGS%g
2789 s%@CXXFLAGS@%$CXXFLAGS%g
2790 s%@FFLAGS@%$FFLAGS%g
2792 s%@LDFLAGS@%$LDFLAGS%g
2794 s%@exec_prefix@%$exec_prefix%g
2795 s%@prefix@%$prefix%g
2796 s%@program_transform_name@%$program_transform_name%g
2797 s%@bindir@%$bindir%g
2798 s%@sbindir@%$sbindir%g
2799 s%@libexecdir@%$libexecdir%g
2800 s%@datadir@%$datadir%g
2801 s%@sysconfdir@%$sysconfdir%g
2802 s%@sharedstatedir@%$sharedstatedir%g
2803 s%@localstatedir@%$localstatedir%g
2804 s%@libdir@%$libdir%g
2805 s%@includedir@%$includedir%g
2806 s%@oldincludedir@%$oldincludedir%g
2807 s%@infodir@%$infodir%g
2808 s%@mandir@%$mandir%g
2809 s%@libffi_basedir@%$libffi_basedir%g
2811 s%@host_alias@%$host_alias%g
2812 s%@host_cpu@%$host_cpu%g
2813 s%@host_vendor@%$host_vendor%g
2814 s%@host_os@%$host_os%g
2815 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2816 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2817 s%@INSTALL_DATA@%$INSTALL_DATA%g
2818 s%@PACKAGE@%$PACKAGE%g
2819 s%@VERSION@%$VERSION%g
2820 s%@ACLOCAL@%$ACLOCAL%g
2821 s%@AUTOCONF@%$AUTOCONF%g
2822 s%@AUTOMAKE@%$AUTOMAKE%g
2823 s%@AUTOHEADER@%$AUTOHEADER%g
2824 s%@MAKEINFO@%$MAKEINFO%g
2825 s%@SET_MAKE@%$SET_MAKE%g
2826 s%@EXEEXT@%$EXEEXT%g
2827 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2828 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2832 s%@build_alias@%$build_alias%g
2833 s%@build_cpu@%$build_cpu%g
2834 s%@build_vendor@%$build_vendor%g
2835 s%@build_os@%$build_os%g
2836 s%@RANLIB@%$RANLIB%g
2838 s%@LIBTOOL@%$LIBTOOL%g
2839 s%@MIPS_GCC_TRUE@%$MIPS_GCC_TRUE%g
2840 s%@MIPS_GCC_FALSE@%$MIPS_GCC_FALSE%g
2841 s%@MIPS_SGI_TRUE@%$MIPS_SGI_TRUE%g
2842 s%@MIPS_SGI_FALSE@%$MIPS_SGI_FALSE%g
2843 s%@SPARC_TRUE@%$SPARC_TRUE%g
2844 s%@SPARC_FALSE@%$SPARC_FALSE%g
2845 s%@X86_TRUE@%$X86_TRUE%g
2846 s%@X86_FALSE@%$X86_FALSE%g
2847 s%@ALPHA_TRUE@%$ALPHA_TRUE%g
2848 s%@ALPHA_FALSE@%$ALPHA_FALSE%g
2849 s%@IA64_TRUE@%$IA64_TRUE%g
2850 s%@IA64_FALSE@%$IA64_FALSE%g
2851 s%@M68K_TRUE@%$M68K_TRUE%g
2852 s%@M68K_FALSE@%$M68K_FALSE%g
2853 s%@POWERPC_TRUE@%$POWERPC_TRUE%g
2854 s%@POWERPC_FALSE@%$POWERPC_FALSE%g
2855 s%@ARM_TRUE@%$ARM_TRUE%g
2856 s%@ARM_FALSE@%$ARM_FALSE%g
2858 s%@ALLOCA@%$ALLOCA%g
2859 s%@TARGET@%$TARGET%g
2860 s%@TARGETDIR@%$TARGETDIR%g
2861 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
2862 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
2867 cat >> $CONFIG_STATUS <<\EOF
2869 # Split the substitutions into bite-sized pieces for seds with
2870 # small command number limits, like on Digital OSF/1 and HP-UX.
2871 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2872 ac_file
=1 # Number of current file.
2873 ac_beg
=1 # First line for current file.
2874 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2877 while $ac_more_lines; do
2878 if test $ac_beg -gt 1; then
2879 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2881 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2883 if test ! -s conftest.s
$ac_file; then
2885 rm -f conftest.s
$ac_file
2887 if test -z "$ac_sed_cmds"; then
2888 ac_sed_cmds
="sed -f conftest.s$ac_file"
2890 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2892 ac_file
=`expr $ac_file + 1`
2894 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2897 if test -z "$ac_sed_cmds"; then
2902 cat >> $CONFIG_STATUS <<EOF
2904 CONFIG_FILES=\${CONFIG_FILES-"include/Makefile include/ffi.h Makefile"}
2906 cat >> $CONFIG_STATUS <<\EOF
2907 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2908 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2910 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2911 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2912 *) ac_file_in
="${ac_file}.in" ;;
2915 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2917 # Remove last slash and all that follows it. Not all systems have dirname.
2918 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2919 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2920 # The file is in a subdirectory.
2921 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2922 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2923 # A "../" for each directory in $ac_dir_suffix.
2924 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2926 ac_dir_suffix
= ac_dots
=
2929 case "$ac_given_srcdir" in
2931 if test -z "$ac_dots"; then top_srcdir
=.
2932 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2933 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2935 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2936 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2939 case "$ac_given_INSTALL" in
2940 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2941 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2944 echo creating
"$ac_file"
2946 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2948 *Makefile
*) ac_comsub
="1i\\
2949 # $configure_input" ;;
2953 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2955 s%@configure_input@%$configure_input%g
2956 s%@srcdir@%$srcdir%g
2957 s%@top_srcdir@%$top_srcdir%g
2958 s%@INSTALL@%$INSTALL%g
2959 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2963 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2964 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2966 # ac_d sets the value in "#define NAME VALUE" lines.
2967 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2968 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2971 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2972 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2973 ac_uB
='\([ ]\)%\1#\2define\3'
2976 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2977 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2978 ac_eB
='$%\1#\2define\3'
2982 if test "${CONFIG_HEADERS+set}" != set; then
2984 cat >> $CONFIG_STATUS <<EOF
2985 CONFIG_HEADERS="fficonfig.h"
2987 cat >> $CONFIG_STATUS <<\EOF
2989 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2990 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2992 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2993 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2994 *) ac_file_in
="${ac_file}.in" ;;
2997 echo creating
$ac_file
2999 rm -f conftest.frag conftest.
in conftest.out
3000 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3001 cat $ac_file_inputs > conftest.
in
3005 # Transform confdefs.h into a sed script conftest.vals that substitutes
3006 # the proper values into config.h.in to produce config.h. And first:
3007 # Protect against being on the right side of a sed subst in config.status.
3008 # Protect against being in an unquoted here document in config.status.
3010 cat > conftest.hdr
<<\EOF
3013 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3017 sed -n -f conftest.hdr confdefs.h > conftest.vals
3020 # This sed command replaces #undef with comments. This is necessary, for
3021 # example, in the case of _POSIX_SOURCE, which is predefined and required
3022 # on some systems where configure will not decide to define it.
3023 cat >> conftest.vals <<\EOF
3024 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3027 # Break up conftest.vals because some shells have a limit on
3028 # the size of here documents, and old seds have small limits too.
3033 ac_lines=`grep -c . conftest.vals
`
3034 # grep -c gives empty output for an empty file on some AIX systems.
3035 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3036 # Write a limited-size here document to conftest.frag.
3037 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3038 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3040 sed -f conftest.frag conftest.in > conftest.out
3042 mv conftest.out conftest.in
3044 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3046 mv conftest.tail conftest.vals
3050 cat >> $CONFIG_STATUS <<\EOF
3051 rm -f conftest.frag conftest.h
3052 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3053 cat conftest.in >> conftest.h
3055 if cmp -s $ac_file conftest.h 2>/dev/null; then
3056 echo "$ac_file is unchanged"
3059 # Remove last slash and all that follows it. Not all systems have dirname.
3060 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3061 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3062 # The file is in a subdirectory.
3063 test ! -d "$ac_dir" && mkdir "$ac_dir"
3066 mv conftest.h $ac_file
3071 cat >> $CONFIG_STATUS <<EOF
3076 with_multisubdir=${with_multisubdir}
3077 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3078 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3079 libffi_basedir=${libffi_basedir}
3082 test ! -d include && mkdir include
3083 test ! -f include/fficonfig.h && cp fficonfig.h include/fficonfig.h
3084 if cmp -s fficonfig.h include/fficonfig.h 2>/dev/null; then
3085 echo fficonfig.h unchanged
3087 echo Moving fficonfig.h to include/fficonfig.h
3088 cp fficonfig.h include/fficonfig.h
3092 cat >> $CONFIG_STATUS <<\EOF
3093 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3095 if test -n "$CONFIG_FILES"; then
3096 ac_file=Makefile . ${libffi_basedir}/../config-ml.in
3101 chmod +x $CONFIG_STATUS
3102 rm -fr confdefs* $ac_clean_files
3103 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1