Fix test case
[official-gcc.git] / libffi / configure
blob104ea16b952b57272dacefbcaad40112624dee68
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13.1
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
17 ac_help="$ac_help
18 --enable-shared[=PKGS] build shared libraries [default=yes]"
19 ac_help="$ac_help
20 --enable-static[=PKGS] build static libraries [default=yes]"
21 ac_help="$ac_help
22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
23 ac_help="$ac_help
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 ac_help="$ac_help
26 --disable-libtool-lock avoid locking (might break parallel builds)"
27 ac_help="$ac_help
28 --enable-debug debugging mode"
29 ac_help="$ac_help
30 --disable-structs omit code for struct support"
31 ac_help="$ac_help
32 --disable-raw-api make the raw api unavailable"
33 ac_help="$ac_help
34 --enable-purify-safety purify-safe mode"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
39 build=NONE
40 cache_file=./config.cache
41 exec_prefix=NONE
42 host=NONE
43 no_create=
44 nonopt=NONE
45 no_recursion=
46 prefix=NONE
47 program_prefix=NONE
48 program_suffix=NONE
49 program_transform_name=s,x,x,
50 silent=
51 site=
52 srcdir=
53 target=NONE
54 verbose=
55 x_includes=NONE
56 x_libraries=NONE
57 bindir='${exec_prefix}/bin'
58 sbindir='${exec_prefix}/sbin'
59 libexecdir='${exec_prefix}/libexec'
60 datadir='${prefix}/share'
61 sysconfdir='${prefix}/etc'
62 sharedstatedir='${prefix}/com'
63 localstatedir='${prefix}/var'
64 libdir='${exec_prefix}/lib'
65 includedir='${prefix}/include'
66 oldincludedir='/usr/include'
67 infodir='${prefix}/info'
68 mandir='${prefix}/man'
70 # Initialize some other variables.
71 subdirs=
72 MFLAGS= MAKEFLAGS=
73 SHELL=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
75 ac_max_here_lines=12
77 ac_prev=
78 for ac_option
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
84 ac_prev=
85 continue
88 case "$ac_option" in
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 *) ac_optarg= ;;
91 esac
93 # Accept the important Cygnus configure options, so we can diagnose typos.
95 case "$ac_option" in
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 ac_prev=bindir ;;
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir="$ac_optarg" ;;
102 -build | --build | --buil | --bui | --bu)
103 ac_prev=build ;;
104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105 build="$ac_optarg" ;;
107 -cache-file | --cache-file | --cache-fil | --cache-fi \
108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109 ac_prev=cache_file ;;
110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112 cache_file="$ac_optarg" ;;
114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115 ac_prev=datadir ;;
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 | --da=*)
118 datadir="$ac_optarg" ;;
120 -disable-* | --disable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* | --enable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 case "$ac_option" in
137 *=*) ;;
138 *) ac_optarg=yes ;;
139 esac
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144 | --exec | --exe | --ex)
145 ac_prev=exec_prefix ;;
146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148 | --exec=* | --exe=* | --ex=*)
149 exec_prefix="$ac_optarg" ;;
151 -gas | --gas | --ga | --g)
152 # Obsolete; use --with-gas.
153 with_gas=yes ;;
155 -help | --help | --hel | --he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
158 cat << EOF
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
161 Configuration:
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
169 [$ac_default_prefix]
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 [same as prefix]
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
176 [PREFIX/share]
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 [PREFIX/com]
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
192 cat << EOF
193 Host type:
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
208 exit 0 ;;
210 -host | --host | --hos | --ho)
211 ac_prev=host ;;
212 -host=* | --host=* | --hos=* | --ho=*)
213 host="$ac_optarg" ;;
215 -includedir | --includedir | --includedi | --included | --include \
216 | --includ | --inclu | --incl | --inc)
217 ac_prev=includedir ;;
218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219 | --includ=* | --inclu=* | --incl=* | --inc=*)
220 includedir="$ac_optarg" ;;
222 -infodir | --infodir | --infodi | --infod | --info | --inf)
223 ac_prev=infodir ;;
224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225 infodir="$ac_optarg" ;;
227 -libdir | --libdir | --libdi | --libd)
228 ac_prev=libdir ;;
229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
230 libdir="$ac_optarg" ;;
232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233 | --libexe | --libex | --libe)
234 ac_prev=libexecdir ;;
235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236 | --libexe=* | --libex=* | --libe=*)
237 libexecdir="$ac_optarg" ;;
239 -localstatedir | --localstatedir | --localstatedi | --localstated \
240 | --localstate | --localstat | --localsta | --localst \
241 | --locals | --local | --loca | --loc | --lo)
242 ac_prev=localstatedir ;;
243 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246 localstatedir="$ac_optarg" ;;
248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249 ac_prev=mandir ;;
250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251 mandir="$ac_optarg" ;;
253 -nfp | --nfp | --nf)
254 # Obsolete; use --without-fp.
255 with_fp=no ;;
257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258 | --no-cr | --no-c)
259 no_create=yes ;;
261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263 no_recursion=yes ;;
265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267 | --oldin | --oldi | --old | --ol | --o)
268 ac_prev=oldincludedir ;;
269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272 oldincludedir="$ac_optarg" ;;
274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275 ac_prev=prefix ;;
276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277 prefix="$ac_optarg" ;;
279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
280 | --program-pre | --program-pr | --program-p)
281 ac_prev=program_prefix ;;
282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284 program_prefix="$ac_optarg" ;;
286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
287 | --program-suf | --program-su | --program-s)
288 ac_prev=program_suffix ;;
289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291 program_suffix="$ac_optarg" ;;
293 -program-transform-name | --program-transform-name \
294 | --program-transform-nam | --program-transform-na \
295 | --program-transform-n | --program-transform- \
296 | --program-transform | --program-transfor \
297 | --program-transfo | --program-transf \
298 | --program-trans | --program-tran \
299 | --progr-tra | --program-tr | --program-t)
300 ac_prev=program_transform_name ;;
301 -program-transform-name=* | --program-transform-name=* \
302 | --program-transform-nam=* | --program-transform-na=* \
303 | --program-transform-n=* | --program-transform-=* \
304 | --program-transform=* | --program-transfor=* \
305 | --program-transfo=* | --program-transf=* \
306 | --program-trans=* | --program-tran=* \
307 | --progr-tra=* | --program-tr=* | --program-t=*)
308 program_transform_name="$ac_optarg" ;;
310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311 | -silent | --silent | --silen | --sile | --sil)
312 silent=yes ;;
314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 ac_prev=sbindir ;;
316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 | --sbi=* | --sb=*)
318 sbindir="$ac_optarg" ;;
320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322 | --sharedst | --shareds | --shared | --share | --shar \
323 | --sha | --sh)
324 ac_prev=sharedstatedir ;;
325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 | --sha=* | --sh=*)
329 sharedstatedir="$ac_optarg" ;;
331 -site | --site | --sit)
332 ac_prev=site ;;
333 -site=* | --site=* | --sit=*)
334 site="$ac_optarg" ;;
336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337 ac_prev=srcdir ;;
338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339 srcdir="$ac_optarg" ;;
341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342 | --syscon | --sysco | --sysc | --sys | --sy)
343 ac_prev=sysconfdir ;;
344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346 sysconfdir="$ac_optarg" ;;
348 -target | --target | --targe | --targ | --tar | --ta | --t)
349 ac_prev=target ;;
350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351 target="$ac_optarg" ;;
353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
354 verbose=yes ;;
356 -version | --version | --versio | --versi | --vers)
357 echo "configure generated by autoconf version 2.13.1"
358 exit 0 ;;
360 -with-* | --with-*)
361 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 case "$ac_option" in
368 *=*) ;;
369 *) ac_optarg=yes ;;
370 esac
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* | --without-*)
374 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
382 --x)
383 # Obsolete; use --with-x.
384 with_x=yes ;;
386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387 | --x-incl | --x-inc | --x-in | --x-i)
388 ac_prev=x_includes ;;
389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391 x_includes="$ac_optarg" ;;
393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395 ac_prev=x_libraries ;;
396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398 x_libraries="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 nonopt="$ac_option"
413 esac
414 done
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
423 # 0 standard input
424 # 1 file creation
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
431 exec 6>/dev/null
432 else
433 exec 6>&1
435 exec 5>./config.log
437 echo "\
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
440 " 1>&5
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
444 ac_configure_args=
445 for ac_arg
447 case "$ac_arg" in
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c) ;;
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 esac
456 done
458 # NLS nuisances.
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 echo > confdefs.h
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file=fficonfig.h.in
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted=yes
480 # Try the directory containing this script, then its parent.
481 ac_prog=$0
482 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484 srcdir=$ac_confdir
485 if test ! -r $srcdir/$ac_unique_file; then
486 srcdir=..
488 else
489 ac_srcdir_defaulted=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494 else
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE; then
503 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504 else
505 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
511 . "$ac_site_file"
513 done
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
517 test -f "$cache_file" && . $cache_file
518 else
519 echo "creating cache $cache_file"
520 > $cache_file
523 ac_ext=c
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp='$CPP $CPPFLAGS'
526 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling=$ac_cv_prog_cc_cross
530 ac_exeext=
531 ac_objext=o
532 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535 ac_n= ac_c='
536 ' ac_t=' '
537 else
538 ac_n=-n ac_c= ac_t=
540 else
541 ac_n= ac_c='\c' ac_t=
549 echo "configure: warning: ***********************************************************" 1>&2
550 echo "configure: warning: ***********************************************************" 1>&2
551 echo "configure: warning: This is beta code. If you're looking for a stable release" 1>&2
552 echo "configure: warning: then use the most recent one - libffi-1.20." 1>&2
553 echo "configure: warning: ***********************************************************" 1>&2
554 echo "configure: warning: ***********************************************************" 1>&2
556 ac_aux_dir=
557 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
558 if test -f $ac_dir/install-sh; then
559 ac_aux_dir=$ac_dir
560 ac_install_sh="$ac_aux_dir/install-sh -c"
561 break
562 elif test -f $ac_dir/install.sh; then
563 ac_aux_dir=$ac_dir
564 ac_install_sh="$ac_aux_dir/install.sh -c"
565 break
567 done
568 if test -z "$ac_aux_dir"; then
569 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
571 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
572 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
573 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
576 echo $ac_n "checking host system type""... $ac_c" 1>&6
577 echo "configure:578: checking host system type" >&5
578 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
580 # Make sure we can run config.sub.
581 if $ac_config_sub sun4 >/dev/null 2>&1; then :
582 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
585 ac_cv_host_alias=$host
586 case "$ac_cv_host_alias" in
587 NONE)
588 case $nonopt in
589 NONE)
590 if ac_cv_host_alias=`$ac_config_guess`; then :
591 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
592 fi ;;
593 *) ac_cv_host_alias=$nonopt ;;
594 esac ;;
595 esac
597 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
598 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
599 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
600 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
601 else
602 echo $ac_n "(cached) $ac_c" 1>&6
605 echo "$ac_t""$ac_cv_host" 1>&6
607 host=$ac_cv_host
608 host_alias=$ac_cv_host_alias
609 host_cpu=$ac_cv_host_cpu
610 host_vendor=$ac_cv_host_vendor
611 host_os=$ac_cv_host_os
617 # Find a good install program. We prefer a C program (faster),
618 # so one script is as good as another. But avoid the broken or
619 # incompatible versions:
620 # SysV /etc/install, /usr/sbin/install
621 # SunOS /usr/etc/install
622 # IRIX /sbin/install
623 # AIX /bin/install
624 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
625 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
626 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
627 # ./install, which can be erroneously created by make from ./install.sh.
628 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
629 echo "configure:630: checking for a BSD compatible install" >&5
630 if test -z "$INSTALL"; then
631 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
632 echo $ac_n "(cached) $ac_c" 1>&6
633 else
634 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
635 for ac_dir in $PATH; do
636 # Account for people who put trailing slashes in PATH elements.
637 case "$ac_dir/" in
638 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
640 # OSF1 and SCO ODT 3.0 have their own names for install.
641 # Don't use installbsd from OSF since it installs stuff as root
642 # by default.
643 for ac_prog in ginstall scoinst install; do
644 if test -f $ac_dir/$ac_prog; then
645 if test $ac_prog = install &&
646 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
647 # AIX install. It has an incompatible calling convention.
649 elif test $ac_prog = install &&
650 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
651 # program-specific install script used by HP pwplus--don't use.
653 else
654 ac_cv_path_install="$ac_dir/$ac_prog -c"
655 break 2
658 done
660 esac
661 done
662 IFS="$ac_save_IFS"
665 if test "${ac_cv_path_install+set}" = set; then
666 INSTALL="$ac_cv_path_install"
667 else
668 # As a last resort, use the slow shell script. We don't cache a
669 # path for INSTALL within a source directory, because that will
670 # break other packages using the cache if that directory is
671 # removed, or if the path is relative.
672 INSTALL="$ac_install_sh"
675 echo "$ac_t""$INSTALL" 1>&6
677 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
678 # It thinks the first close brace ends the variable substitution.
679 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
681 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
683 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
685 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
686 echo "configure:687: checking whether build environment is sane" >&5
687 # Just in case
688 sleep 1
689 echo timestamp > conftestfile
690 # Do `set' in a subshell so we don't clobber the current shell's
691 # arguments. Must try -L first in case configure is actually a
692 # symlink; some systems play weird games with the mod time of symlinks
693 # (eg FreeBSD returns the mod time of the symlink's containing
694 # directory).
695 if (
696 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
697 if test "$*" = "X"; then
698 # -L didn't work.
699 set X `ls -t $srcdir/configure conftestfile`
701 if test "$*" != "X $srcdir/configure conftestfile" \
702 && test "$*" != "X conftestfile $srcdir/configure"; then
704 # If neither matched, then we have a broken ls. This can happen
705 # if, for instance, CONFIG_SHELL is bash and it inherits a
706 # broken ls alias from the environment. This has actually
707 # happened. Such a system could not be considered "sane".
708 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
709 alias in your environment" 1>&2; exit 1; }
712 test "$2" = conftestfile
714 then
715 # Ok.
717 else
718 { echo "configure: error: newly created file is older than distributed files!
719 Check your system clock" 1>&2; exit 1; }
721 rm -f conftest*
722 echo "$ac_t""yes" 1>&6
723 if test "$program_transform_name" = s,x,x,; then
724 program_transform_name=
725 else
726 # Double any \ or $. echo might interpret backslashes.
727 cat <<\EOF_SED > conftestsed
728 s,\\,\\\\,g; s,\$,$$,g
729 EOF_SED
730 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
731 rm -f conftestsed
733 test "$program_prefix" != NONE &&
734 program_transform_name="s,^,${program_prefix},;$program_transform_name"
735 # Use a double $ so make ignores it.
736 test "$program_suffix" != NONE &&
737 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
739 # sed with no file args requires a program.
740 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
742 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
743 echo "configure:744: checking whether ${MAKE-make} sets \${MAKE}" >&5
744 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
745 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
746 echo $ac_n "(cached) $ac_c" 1>&6
747 else
748 cat > conftestmake <<\EOF
749 all:
750 @echo 'ac_maketemp="${MAKE}"'
752 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
753 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
754 if test -n "$ac_maketemp"; then
755 eval ac_cv_prog_make_${ac_make}_set=yes
756 else
757 eval ac_cv_prog_make_${ac_make}_set=no
759 rm -f conftestmake
761 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
762 echo "$ac_t""yes" 1>&6
763 SET_MAKE=
764 else
765 echo "$ac_t""no" 1>&6
766 SET_MAKE="MAKE=${MAKE-make}"
771 PACKAGE=libffi
773 VERSION=2.00-beta
775 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
776 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
781 missing_dir=`cd $ac_aux_dir && pwd`
782 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
783 echo "configure:784: checking for working aclocal" >&5
784 # Run test in a subshell; some versions of sh will print an error if
785 # an executable is not found, even if stderr is redirected.
786 # Redirect stdin to placate older versions of autoconf. Sigh.
787 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
788 ACLOCAL=aclocal
789 echo "$ac_t""found" 1>&6
790 else
791 ACLOCAL="$missing_dir/missing aclocal"
792 echo "$ac_t""missing" 1>&6
795 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
796 echo "configure:797: checking for working autoconf" >&5
797 # Run test in a subshell; some versions of sh will print an error if
798 # an executable is not found, even if stderr is redirected.
799 # Redirect stdin to placate older versions of autoconf. Sigh.
800 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
801 AUTOCONF=autoconf
802 echo "$ac_t""found" 1>&6
803 else
804 AUTOCONF="$missing_dir/missing autoconf"
805 echo "$ac_t""missing" 1>&6
808 echo $ac_n "checking for working automake""... $ac_c" 1>&6
809 echo "configure:810: checking for working automake" >&5
810 # Run test in a subshell; some versions of sh will print an error if
811 # an executable is not found, even if stderr is redirected.
812 # Redirect stdin to placate older versions of autoconf. Sigh.
813 if (automake --version) < /dev/null > /dev/null 2>&1; then
814 AUTOMAKE=automake
815 echo "$ac_t""found" 1>&6
816 else
817 AUTOMAKE="$missing_dir/missing automake"
818 echo "$ac_t""missing" 1>&6
821 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
822 echo "configure:823: checking for working autoheader" >&5
823 # Run test in a subshell; some versions of sh will print an error if
824 # an executable is not found, even if stderr is redirected.
825 # Redirect stdin to placate older versions of autoconf. Sigh.
826 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
827 AUTOHEADER=autoheader
828 echo "$ac_t""found" 1>&6
829 else
830 AUTOHEADER="$missing_dir/missing autoheader"
831 echo "$ac_t""missing" 1>&6
834 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
835 echo "configure:836: checking for working makeinfo" >&5
836 # Run test in a subshell; some versions of sh will print an error if
837 # an executable is not found, even if stderr is redirected.
838 # Redirect stdin to placate older versions of autoconf. Sigh.
839 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
840 MAKEINFO=makeinfo
841 echo "$ac_t""found" 1>&6
842 else
843 MAKEINFO="$missing_dir/missing makeinfo"
844 echo "$ac_t""missing" 1>&6
847 install_sh="$missing_dir/install-sh"
848 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
850 for ac_prog in gnutar gtar tar
852 # Extract the first word of "$ac_prog", so it can be a program name with args.
853 set dummy $ac_prog; ac_word=$2
854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
855 echo "configure:856: checking for $ac_word" >&5
856 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
858 else
859 if test -n "$AMTAR"; then
860 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
861 else
862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
863 ac_dummy="$PATH"
864 for ac_dir in $ac_dummy; do
865 test -z "$ac_dir" && ac_dir=.
866 if test -f $ac_dir/$ac_word; then
867 ac_cv_prog_AMTAR="$ac_prog"
868 break
870 done
871 IFS="$ac_save_ifs"
874 AMTAR="$ac_cv_prog_AMTAR"
875 if test -n "$AMTAR"; then
876 echo "$ac_t""$AMTAR" 1>&6
877 else
878 echo "$ac_t""no" 1>&6
881 test -n "$AMTAR" && break
882 done
884 AMTARFLAGS=
885 if test -n "$AMTAR"; then
886 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
887 AMTARFLAGS=o
893 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
894 echo "configure:895: checking for Cygwin environment" >&5
895 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
897 else
898 cat > conftest.$ac_ext <<EOF
899 #line 900 "configure"
900 #include "confdefs.h"
902 int main() {
904 #ifndef __CYGWIN__
905 #define __CYGWIN__ __CYGWIN32__
906 #endif
907 return __CYGWIN__;
908 ; return 0; }
910 if { (eval echo configure:911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
911 rm -rf conftest*
912 ac_cv_cygwin=yes
913 else
914 echo "configure: failed program was:" >&5
915 cat conftest.$ac_ext >&5
916 rm -rf conftest*
917 ac_cv_cygwin=no
919 rm -f conftest*
922 echo "$ac_t""$ac_cv_cygwin" 1>&6
923 CYGWIN=
924 test "$ac_cv_cygwin" = yes && CYGWIN=yes
925 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
926 echo "configure:927: checking for mingw32 environment" >&5
927 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
929 else
930 cat > conftest.$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
934 int main() {
935 return __MINGW32__;
936 ; return 0; }
938 if { (eval echo configure:939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
939 rm -rf conftest*
940 ac_cv_mingw32=yes
941 else
942 echo "configure: failed program was:" >&5
943 cat conftest.$ac_ext >&5
944 rm -rf conftest*
945 ac_cv_mingw32=no
947 rm -f conftest*
950 echo "$ac_t""$ac_cv_mingw32" 1>&6
951 MINGW32=
952 test "$ac_cv_mingw32" = yes && MINGW32=yes
953 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
954 echo "configure:955: checking for EMX OS/2 environment" >&5
955 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
956 echo $ac_n "(cached) $ac_c" 1>&6
957 else
958 cat > conftest.$ac_ext <<EOF
959 #line 960 "configure"
960 #include "confdefs.h"
962 int main() {
963 return __EMX__;
964 ; return 0; }
966 if { (eval echo configure:967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
967 rm -rf conftest*
968 ac_cv_emxos2=yes
969 else
970 echo "configure: failed program was:" >&5
971 cat conftest.$ac_ext >&5
972 rm -rf conftest*
973 ac_cv_emxos2=no
975 rm -f conftest*
978 echo "$ac_t""$ac_cv_emxos2" 1>&6
979 EMXOS2=
980 test "$ac_cv_emxos2" = yes && EMXOS2=yes
984 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
985 echo "configure:986: checking for executable suffix" >&5
986 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
988 else
989 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
990 ac_cv_exeext=.exe
991 else
992 rm -f conftest*
993 echo 'int main () { return 0; }' > conftest.$ac_ext
994 ac_cv_exeext=
995 if { (eval echo configure:996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
996 for file in conftest.*; do
997 case $file in
998 *.c | *.C | *.o | *.obj | *.xcoff) ;;
999 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1000 esac
1001 done
1002 else
1003 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1005 rm -f conftest*
1006 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1010 EXEEXT=""
1011 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1012 echo "$ac_t""${ac_cv_exeext}" 1>&6
1013 ac_exeext=$EXEEXT
1015 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1016 echo "configure:1017: checking whether to enable maintainer-specific portions of Makefiles" >&5
1017 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1018 if test "${enable_maintainer_mode+set}" = set; then
1019 enableval="$enable_maintainer_mode"
1020 USE_MAINTAINER_MODE=$enableval
1021 else
1022 USE_MAINTAINER_MODE=no
1025 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1028 if test $USE_MAINTAINER_MODE = yes; then
1029 MAINTAINER_MODE_TRUE=
1030 MAINTAINER_MODE_FALSE='#'
1031 else
1032 MAINTAINER_MODE_TRUE='#'
1033 MAINTAINER_MODE_FALSE=
1035 MAINT=$MAINTAINER_MODE_TRUE
1039 # Extract the first word of "gcc", so it can be a program name with args.
1040 set dummy gcc; ac_word=$2
1041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1042 echo "configure:1043: checking for $ac_word" >&5
1043 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046 if test -n "$CC"; then
1047 ac_cv_prog_CC="$CC" # Let the user override the test.
1048 else
1049 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1050 ac_dummy="$PATH"
1051 for ac_dir in $ac_dummy; do
1052 test -z "$ac_dir" && ac_dir=.
1053 if test -f $ac_dir/$ac_word; then
1054 ac_cv_prog_CC="gcc"
1055 break
1057 done
1058 IFS="$ac_save_ifs"
1061 CC="$ac_cv_prog_CC"
1062 if test -n "$CC"; then
1063 echo "$ac_t""$CC" 1>&6
1064 else
1065 echo "$ac_t""no" 1>&6
1068 if test -z "$CC"; then
1069 # Extract the first word of "cc", so it can be a program name with args.
1070 set dummy cc; ac_word=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1075 else
1076 if test -n "$CC"; then
1077 ac_cv_prog_CC="$CC" # Let the user override the test.
1078 else
1079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1080 ac_prog_rejected=no
1081 ac_dummy="$PATH"
1082 for ac_dir in $ac_dummy; do
1083 test -z "$ac_dir" && ac_dir=.
1084 if test -f $ac_dir/$ac_word; then
1085 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1086 ac_prog_rejected=yes
1087 continue
1089 ac_cv_prog_CC="cc"
1090 break
1092 done
1093 IFS="$ac_save_ifs"
1094 if test $ac_prog_rejected = yes; then
1095 # We found a bogon in the path, so make sure we never use it.
1096 set dummy $ac_cv_prog_CC
1097 shift
1098 if test $# -gt 0; then
1099 # We chose a different compiler from the bogus one.
1100 # However, it has the same basename, so the bogon will be chosen
1101 # first if we set CC to just the basename; use the full file name.
1102 shift
1103 set dummy "$ac_dir/$ac_word" "$@"
1104 shift
1105 ac_cv_prog_CC="$@"
1110 CC="$ac_cv_prog_CC"
1111 if test -n "$CC"; then
1112 echo "$ac_t""$CC" 1>&6
1113 else
1114 echo "$ac_t""no" 1>&6
1117 if test -z "$CC"; then
1118 case "`uname -s`" in
1119 *win32* | *WIN32* | *CYGWIN*)
1120 # Extract the first word of "cl", so it can be a program name with args.
1121 set dummy cl; ac_word=$2
1122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1123 echo "configure:1124: checking for $ac_word" >&5
1124 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1126 else
1127 if test -n "$CC"; then
1128 ac_cv_prog_CC="$CC" # Let the user override the test.
1129 else
1130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1131 ac_dummy="$PATH"
1132 for ac_dir in $ac_dummy; do
1133 test -z "$ac_dir" && ac_dir=.
1134 if test -f $ac_dir/$ac_word; then
1135 ac_cv_prog_CC="cl"
1136 break
1138 done
1139 IFS="$ac_save_ifs"
1142 CC="$ac_cv_prog_CC"
1143 if test -n "$CC"; then
1144 echo "$ac_t""$CC" 1>&6
1145 else
1146 echo "$ac_t""no" 1>&6
1149 esac
1151 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1154 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1155 echo "configure:1156: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
1157 ac_ext=c
1158 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1159 ac_cpp='$CPP $CPPFLAGS'
1160 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1161 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1162 cross_compiling=$ac_cv_prog_cc_cross
1164 cat > conftest.$ac_ext << EOF
1166 #line 1167 "configure"
1167 #include "confdefs.h"
1169 main(){return(0);}
1171 if { (eval echo configure:1172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1172 ac_cv_prog_cc_works=yes
1173 # If we can't run a trivial program, we are probably using a cross compiler.
1174 if (./conftest; exit) 2>/dev/null; then
1175 ac_cv_prog_cc_cross=no
1176 else
1177 ac_cv_prog_cc_cross=yes
1179 else
1180 echo "configure: failed program was:" >&5
1181 cat conftest.$ac_ext >&5
1182 ac_cv_prog_cc_works=no
1184 rm -fr conftest*
1185 ac_ext=c
1186 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1187 ac_cpp='$CPP $CPPFLAGS'
1188 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1189 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1190 cross_compiling=$ac_cv_prog_cc_cross
1192 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1193 if test $ac_cv_prog_cc_works = no; then
1194 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1196 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
1198 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1199 cross_compiling=$ac_cv_prog_cc_cross
1201 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1202 echo "configure:1203: checking whether we are using GNU C" >&5
1203 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1205 else
1206 cat > conftest.c <<EOF
1207 #ifdef __GNUC__
1208 yes;
1209 #endif
1211 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1212 ac_cv_prog_gcc=yes
1213 else
1214 ac_cv_prog_gcc=no
1218 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1220 if test $ac_cv_prog_gcc = yes; then
1221 GCC=yes
1222 else
1223 GCC=
1226 ac_test_CFLAGS="${CFLAGS+set}"
1227 ac_save_CFLAGS="$CFLAGS"
1228 CFLAGS=
1229 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1230 echo "configure:1231: checking whether ${CC-cc} accepts -g" >&5
1231 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1233 else
1234 echo 'void f(){}' > conftest.c
1235 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1236 ac_cv_prog_cc_g=yes
1237 else
1238 ac_cv_prog_cc_g=no
1240 rm -f conftest*
1244 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1245 if test "$ac_test_CFLAGS" = set; then
1246 CFLAGS="$ac_save_CFLAGS"
1247 elif test $ac_cv_prog_cc_g = yes; then
1248 if test "$GCC" = yes; then
1249 CFLAGS="-g -O2"
1250 else
1251 CFLAGS="-g"
1253 else
1254 if test "$GCC" = yes; then
1255 CFLAGS="-O2"
1256 else
1257 CFLAGS=
1261 # Check whether --enable-shared or --disable-shared was given.
1262 if test "${enable_shared+set}" = set; then
1263 enableval="$enable_shared"
1264 p=${PACKAGE-default}
1265 case "$enableval" in
1266 yes) enable_shared=yes ;;
1267 no) enable_shared=no ;;
1269 enable_shared=no
1270 # Look at the argument we got. We use all the common list separators.
1271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1272 for pkg in $enableval; do
1273 if test "X$pkg" = "X$p"; then
1274 enable_shared=yes
1276 done
1277 IFS="$ac_save_ifs"
1279 esac
1280 else
1281 enable_shared=yes
1284 # Check whether --enable-static or --disable-static was given.
1285 if test "${enable_static+set}" = set; then
1286 enableval="$enable_static"
1287 p=${PACKAGE-default}
1288 case "$enableval" in
1289 yes) enable_static=yes ;;
1290 no) enable_static=no ;;
1292 enable_static=no
1293 # Look at the argument we got. We use all the common list separators.
1294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1295 for pkg in $enableval; do
1296 if test "X$pkg" = "X$p"; then
1297 enable_static=yes
1299 done
1300 IFS="$ac_save_ifs"
1302 esac
1303 else
1304 enable_static=yes
1307 # Check whether --enable-fast-install or --disable-fast-install was given.
1308 if test "${enable_fast_install+set}" = set; then
1309 enableval="$enable_fast_install"
1310 p=${PACKAGE-default}
1311 case "$enableval" in
1312 yes) enable_fast_install=yes ;;
1313 no) enable_fast_install=no ;;
1315 enable_fast_install=no
1316 # Look at the argument we got. We use all the common list separators.
1317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1318 for pkg in $enableval; do
1319 if test "X$pkg" = "X$p"; then
1320 enable_fast_install=yes
1322 done
1323 IFS="$ac_save_ifs"
1325 esac
1326 else
1327 enable_fast_install=yes
1331 echo $ac_n "checking build system type""... $ac_c" 1>&6
1332 echo "configure:1333: checking build system type" >&5
1333 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
1335 # Make sure we can run config.sub.
1336 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1337 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1340 ac_cv_build_alias=$build
1341 case "$ac_cv_build_alias" in
1342 NONE)
1343 case $nonopt in
1344 NONE)
1345 ac_cv_build_alias=$host_alias ;;
1347 *) ac_cv_build_alias=$nonopt ;;
1348 esac ;;
1349 esac
1351 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
1352 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1353 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1354 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1355 else
1356 echo $ac_n "(cached) $ac_c" 1>&6
1359 echo "$ac_t""$ac_cv_build" 1>&6
1361 build=$ac_cv_build
1362 build_alias=$ac_cv_build_alias
1363 build_cpu=$ac_cv_build_cpu
1364 build_vendor=$ac_cv_build_vendor
1365 build_os=$ac_cv_build_os
1370 # Extract the first word of "ranlib", so it can be a program name with args.
1371 set dummy ranlib; ac_word=$2
1372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1373 echo "configure:1374: checking for $ac_word" >&5
1374 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1376 else
1377 if test -n "$RANLIB"; then
1378 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1379 else
1380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1381 ac_dummy="$PATH"
1382 for ac_dir in $ac_dummy; do
1383 test -z "$ac_dir" && ac_dir=.
1384 if test -f $ac_dir/$ac_word; then
1385 ac_cv_prog_RANLIB="ranlib"
1386 break
1388 done
1389 IFS="$ac_save_ifs"
1390 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1393 RANLIB="$ac_cv_prog_RANLIB"
1394 if test -n "$RANLIB"; then
1395 echo "$ac_t""$RANLIB" 1>&6
1396 else
1397 echo "$ac_t""no" 1>&6
1400 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1401 if test "${with_gnu_ld+set}" = set; then
1402 withval="$with_gnu_ld"
1403 test "$withval" = no || with_gnu_ld=yes
1404 else
1405 with_gnu_ld=no
1408 ac_prog=ld
1409 if test "$ac_cv_prog_gcc" = yes; then
1410 # Check if gcc -print-prog-name=ld gives a path.
1411 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1412 echo "configure:1413: checking for ld used by GCC" >&5
1413 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1414 case "$ac_prog" in
1415 # Accept absolute paths.
1416 [\\/]* | [A-Za-z]:[\\/]*)
1417 re_direlt='/[^/][^/]*/\.\./'
1418 # Canonicalize the path of ld
1419 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1420 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1421 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1422 done
1423 test -z "$LD" && LD="$ac_prog"
1426 # If it fails, then pretend we aren't using GCC.
1427 ac_prog=ld
1430 # If it is relative, then search for the first ld in PATH.
1431 with_gnu_ld=unknown
1433 esac
1434 elif test "$with_gnu_ld" = yes; then
1435 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1436 echo "configure:1437: checking for GNU ld" >&5
1437 else
1438 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1439 echo "configure:1440: checking for non-GNU ld" >&5
1441 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1443 else
1444 if test -z "$LD"; then
1445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1446 for ac_dir in $PATH; do
1447 test -z "$ac_dir" && ac_dir=.
1448 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1449 ac_cv_path_LD="$ac_dir/$ac_prog"
1450 # Check to see if the program is GNU ld. I'd rather use --version,
1451 # but apparently some GNU ld's only accept -v.
1452 # Break only if it was the GNU/non-GNU ld that we prefer.
1453 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1454 test "$with_gnu_ld" != no && break
1455 else
1456 test "$with_gnu_ld" != yes && break
1459 done
1460 IFS="$ac_save_ifs"
1461 else
1462 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1466 LD="$ac_cv_path_LD"
1467 if test -n "$LD"; then
1468 echo "$ac_t""$LD" 1>&6
1469 else
1470 echo "$ac_t""no" 1>&6
1472 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1474 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1475 echo "configure:1476: checking if the linker ($LD) is GNU ld" >&5
1476 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1478 else
1479 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1480 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1481 ac_cv_prog_gnu_ld=yes
1482 else
1483 ac_cv_prog_gnu_ld=no
1487 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1490 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1491 echo "configure:1492: checking for BSD-compatible nm" >&5
1492 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1494 else
1495 if test -n "$NM"; then
1496 # Let the user override the test.
1497 ac_cv_path_NM="$NM"
1498 else
1499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1500 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1501 test -z "$ac_dir" && ac_dir=.
1502 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1503 # Check to see if the nm accepts a BSD-compat flag.
1504 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1505 # nm: unknown option "B" ignored
1506 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1507 ac_cv_path_NM="$ac_dir/nm -B"
1508 break
1509 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1510 ac_cv_path_NM="$ac_dir/nm -p"
1511 break
1512 else
1513 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1514 continue # so that we can try to find one that supports BSD flags
1517 done
1518 IFS="$ac_save_ifs"
1519 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1523 NM="$ac_cv_path_NM"
1524 echo "$ac_t""$NM" 1>&6
1527 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1528 echo "configure:1529: checking whether ln -s works" >&5
1529 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1531 else
1532 rm -f conftestdata
1533 if ln -s X conftestdata 2>/dev/null
1534 then
1535 rm -f conftestdata
1536 ac_cv_prog_LN_S="ln -s"
1537 else
1538 ac_cv_prog_LN_S=ln
1541 LN_S="$ac_cv_prog_LN_S"
1542 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1543 echo "$ac_t""yes" 1>&6
1544 else
1545 echo "$ac_t""no" 1>&6
1549 # Check for any special flags to pass to ltconfig.
1550 libtool_flags="--cache-file=$cache_file"
1551 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1552 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1553 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1554 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1555 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1558 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1559 if test "${enable_libtool_lock+set}" = set; then
1560 enableval="$enable_libtool_lock"
1564 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1565 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1567 # Some flags need to be propagated to the compiler or linker for good
1568 # libtool support.
1569 case "$host" in
1570 *-*-irix6*)
1571 # Find out which ABI we are using.
1572 echo '#line 1573 "configure"' > conftest.$ac_ext
1573 if { (eval echo configure:1574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1574 case "`/usr/bin/file conftest.o`" in
1575 *32-bit*)
1576 LD="${LD-ld} -32"
1578 *N32*)
1579 LD="${LD-ld} -n32"
1581 *64-bit*)
1582 LD="${LD-ld} -64"
1584 esac
1586 rm -rf conftest*
1589 *-*-sco3.2v5*)
1590 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1591 SAVE_CFLAGS="$CFLAGS"
1592 CFLAGS="$CFLAGS -belf"
1593 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1594 echo "configure:1595: checking whether the C compiler needs -belf" >&5
1595 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1597 else
1598 cat > conftest.$ac_ext <<EOF
1599 #line 1600 "configure"
1600 #include "confdefs.h"
1602 int main() {
1604 ; return 0; }
1606 if { (eval echo configure:1607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1607 rm -rf conftest*
1608 lt_cv_cc_needs_belf=yes
1609 else
1610 echo "configure: failed program was:" >&5
1611 cat conftest.$ac_ext >&5
1612 rm -rf conftest*
1613 lt_cv_cc_needs_belf=no
1615 rm -f conftest*
1618 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1619 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1620 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1621 CFLAGS="$SAVE_CFLAGS"
1626 esac
1629 # Save cache, so that ltconfig can load it
1630 cat > confcache <<\EOF
1631 # This file is a shell script that caches the results of configure
1632 # tests run on this system so they can be shared between configure
1633 # scripts and configure runs. It is not useful on other systems.
1634 # If it contains results you don't want to keep, you may remove or edit it.
1636 # By default, configure uses ./config.cache as the cache file,
1637 # creating it if it does not exist already. You can give configure
1638 # the --cache-file=FILE option to use a different cache file; that is
1639 # what configure does when it calls configure scripts in
1640 # subdirectories, so they share the cache.
1641 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1642 # config.status only pays attention to the cache file if you give it the
1643 # --recheck option to rerun configure.
1646 # The following way of writing the cache mishandles newlines in values,
1647 # but we know of no workaround that is simple, portable, and efficient.
1648 # So, don't put newlines in cache variables' values.
1649 # Ultrix sh set writes to stderr and can't be redirected directly,
1650 # and sets the high bit in the cache file unless we assign to the vars.
1651 (set) 2>&1 |
1652 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1653 *ac_space=\ *)
1654 # `set' does not quote correctly, so add quotes (double-quote substitution
1655 # turns \\\\ into \\, and sed turns \\ into \).
1656 sed -n \
1657 -e "s/'/'\\\\''/g" \
1658 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1661 # `set' quotes correctly as required by POSIX, so do not add quotes.
1662 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1664 esac >> confcache
1665 if cmp -s $cache_file confcache; then
1667 else
1668 if test -w $cache_file; then
1669 echo "updating cache $cache_file"
1670 cat confcache > $cache_file
1671 else
1672 echo "not updating unwritable cache $cache_file"
1675 rm -f confcache
1678 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1679 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1680 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1681 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1682 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1683 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1684 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1685 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1687 # Reload cache, that may have been modified by ltconfig
1688 if test -r "$cache_file"; then
1689 echo "loading cache $cache_file"
1690 test -f "$cache_file" && . $cache_file
1691 else
1692 echo "creating cache $cache_file"
1693 > $cache_file
1697 # This can be used to rebuild libtool when needed
1698 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1700 # Always use our own libtool.
1701 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1703 # Redirect the config.log output again, so that the ltconfig log is not
1704 # clobbered by the next message.
1705 exec 5>>./config.log
1708 TARGETDIR="unknown"
1709 case "$host" in
1710 mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; TARGETDIR=mips;;
1711 i*86-pc-linux*) TARGET=X86; TARGETDIR=x86;;
1712 i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
1713 sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
1714 sparc-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
1715 alpha*-*-linux* | alpha*-*-osf*) TARGET=ALPHA; TARGETDIR=alpha;;
1716 m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
1717 powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
1718 powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
1719 arm-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
1720 esac
1722 if test $TARGETDIR = unknown; then
1723 { echo "configure: error: "libffi has not been ported to $host."" 1>&2; exit 1; }
1728 if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes; then
1729 MIPS_GCC_TRUE=
1730 MIPS_GCC_FALSE='#'
1731 else
1732 MIPS_GCC_TRUE='#'
1733 MIPS_GCC_FALSE=
1737 if test ${TARGET}${ac_cv_prog_gcc} = MIPSno; then
1738 MIPS_SGI_TRUE=
1739 MIPS_SGI_FALSE='#'
1740 else
1741 MIPS_SGI_TRUE='#'
1742 MIPS_SGI_FALSE=
1746 if test x$TARGET = xSPARC; then
1747 SPARC_TRUE=
1748 SPARC_FALSE='#'
1749 else
1750 SPARC_TRUE='#'
1751 SPARC_FALSE=
1755 if test x$TARGET = xX86; then
1756 X86_TRUE=
1757 X86_FALSE='#'
1758 else
1759 X86_TRUE='#'
1760 X86_FALSE=
1764 if test x$TARGET = xALPHA; then
1765 ALPHA_TRUE=
1766 ALPHA_FALSE='#'
1767 else
1768 ALPHA_TRUE='#'
1769 ALPHA_FALSE=
1773 if test x$TARGET = xM68K; then
1774 M68K_TRUE=
1775 M68K_FALSE='#'
1776 else
1777 M68K_TRUE='#'
1778 M68K_FALSE=
1782 if test x$TARGET = xPOWERPC; then
1783 POWERPC_TRUE=
1784 POWERPC_FALSE='#'
1785 else
1786 POWERPC_TRUE='#'
1787 POWERPC_FALSE=
1791 if test x$TARGET = xARM; then
1792 ARM_TRUE=
1793 ARM_FALSE='#'
1794 else
1795 ARM_TRUE='#'
1796 ARM_FALSE=
1799 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1800 echo "configure:1801: checking how to run the C preprocessor" >&5
1801 # On Suns, sometimes $CPP names a directory.
1802 if test -n "$CPP" && test -d "$CPP"; then
1803 CPP=
1805 if test -z "$CPP"; then
1806 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1808 else
1809 # This must be in double quotes, not single quotes, because CPP may get
1810 # substituted into the Makefile and "${CC-cc}" will confuse make.
1811 CPP="${CC-cc} -E"
1812 # On the NeXT, cc -E runs the code through the compiler's parser,
1813 # not just through cpp.
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1817 #include <assert.h>
1818 Syntax Error
1820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1821 { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1823 if test -z "$ac_err"; then
1825 else
1826 echo "$ac_err" >&5
1827 echo "configure: failed program was:" >&5
1828 cat conftest.$ac_ext >&5
1829 rm -rf conftest*
1830 CPP="${CC-cc} -E -traditional-cpp"
1831 cat > conftest.$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1834 #include <assert.h>
1835 Syntax Error
1837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1838 { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1840 if test -z "$ac_err"; then
1842 else
1843 echo "$ac_err" >&5
1844 echo "configure: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1846 rm -rf conftest*
1847 CPP="${CC-cc} -nologo -E"
1848 cat > conftest.$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1851 #include <assert.h>
1852 Syntax Error
1854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1855 { (eval echo configure:1856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1857 if test -z "$ac_err"; then
1859 else
1860 echo "$ac_err" >&5
1861 echo "configure: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1863 rm -rf conftest*
1864 CPP=/lib/cpp
1866 rm -f conftest*
1868 rm -f conftest*
1870 rm -f conftest*
1871 ac_cv_prog_CPP="$CPP"
1873 CPP="$ac_cv_prog_CPP"
1874 else
1875 ac_cv_prog_CPP="$CPP"
1877 echo "$ac_t""$CPP" 1>&6
1879 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1880 echo "configure:1881: checking for ANSI C header files" >&5
1881 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1883 else
1884 cat > conftest.$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1887 #include <stdlib.h>
1888 #include <stdarg.h>
1889 #include <string.h>
1890 #include <float.h>
1892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1893 { (eval echo configure:1894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1895 if test -z "$ac_err"; then
1896 rm -rf conftest*
1897 ac_cv_header_stdc=yes
1898 else
1899 echo "$ac_err" >&5
1900 echo "configure: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1902 rm -rf conftest*
1903 ac_cv_header_stdc=no
1905 rm -f conftest*
1907 if test $ac_cv_header_stdc = yes; then
1908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1909 cat > conftest.$ac_ext <<EOF
1910 #line 1911 "configure"
1911 #include "confdefs.h"
1912 #include <string.h>
1914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1915 egrep "memchr" >/dev/null 2>&1; then
1917 else
1918 rm -rf conftest*
1919 ac_cv_header_stdc=no
1921 rm -f conftest*
1925 if test $ac_cv_header_stdc = yes; then
1926 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1927 cat > conftest.$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1930 #include <stdlib.h>
1932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1933 egrep "free" >/dev/null 2>&1; then
1935 else
1936 rm -rf conftest*
1937 ac_cv_header_stdc=no
1939 rm -f conftest*
1943 if test $ac_cv_header_stdc = yes; then
1944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1945 if test "$cross_compiling" = yes; then
1947 else
1948 cat > conftest.$ac_ext <<EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1951 #include <ctype.h>
1952 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1953 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1955 int main () { int i; for (i = 0; i < 256; i++)
1956 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1957 exit (0); }
1960 if { (eval echo configure:1961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1961 then
1963 else
1964 echo "configure: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1966 rm -fr conftest*
1967 ac_cv_header_stdc=no
1969 rm -fr conftest*
1975 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1976 if test $ac_cv_header_stdc = yes; then
1977 cat >> confdefs.h <<\EOF
1978 #define STDC_HEADERS 1
1983 for ac_func in memcpy
1985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1986 echo "configure:1987: checking for $ac_func" >&5
1987 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1989 else
1990 cat > conftest.$ac_ext <<EOF
1991 #line 1992 "configure"
1992 #include "confdefs.h"
1993 /* System header to define __stub macros and hopefully few prototypes,
1994 which can conflict with char $ac_func(); below. */
1995 #include <assert.h>
1996 /* Override any gcc2 internal prototype to avoid an error. */
1997 /* We use char because int might match the return type of a gcc2
1998 builtin and then its argument prototype would still apply. */
1999 char $ac_func();
2000 char (*f)();
2002 int main() {
2004 /* The GNU C library defines this for functions which it implements
2005 to always fail with ENOSYS. Some functions are actually named
2006 something starting with __ and the normal name is an alias. */
2007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2008 choke me
2009 #else
2010 f = $ac_func;
2011 #endif
2013 ; return 0; }
2015 if { (eval echo configure:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2016 rm -rf conftest*
2017 eval "ac_cv_func_$ac_func=yes"
2018 else
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2021 rm -rf conftest*
2022 eval "ac_cv_func_$ac_func=no"
2024 rm -f conftest*
2027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2028 echo "$ac_t""yes" 1>&6
2029 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2030 cat >> confdefs.h <<EOF
2031 #define $ac_tr_func 1
2034 else
2035 echo "$ac_t""no" 1>&6
2037 done
2039 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2040 # for constant arguments. Useless!
2041 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2042 echo "configure:2043: checking for working alloca.h" >&5
2043 if eval "test \"\${ac_cv_header_alloca_h+set}\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2045 else
2046 cat > conftest.$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2049 #include <alloca.h>
2050 int main() {
2051 char *p = alloca(2 * sizeof(int));
2052 ; return 0; }
2054 if { (eval echo configure:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2055 rm -rf conftest*
2056 ac_cv_header_alloca_h=yes
2057 else
2058 echo "configure: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2060 rm -rf conftest*
2061 ac_cv_header_alloca_h=no
2063 rm -f conftest*
2066 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2067 if test $ac_cv_header_alloca_h = yes; then
2068 cat >> confdefs.h <<\EOF
2069 #define HAVE_ALLOCA_H 1
2074 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2075 echo "configure:2076: checking for alloca" >&5
2076 if eval "test \"\${ac_cv_func_alloca_works+set}\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2078 else
2079 cat > conftest.$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2083 #ifdef __GNUC__
2084 # define alloca __builtin_alloca
2085 #else
2086 # ifdef _MSC_VER
2087 # include <malloc.h>
2088 # define alloca _alloca
2089 # else
2090 # if HAVE_ALLOCA_H
2091 # include <alloca.h>
2092 # else
2093 # ifdef _AIX
2094 #pragma alloca
2095 # else
2096 # ifndef alloca /* predefined by HP cc +Olibcalls */
2097 char *alloca ();
2098 # endif
2099 # endif
2100 # endif
2101 # endif
2102 #endif
2104 int main() {
2105 char *p = (char *) alloca(1);
2106 ; return 0; }
2108 if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2109 rm -rf conftest*
2110 ac_cv_func_alloca_works=yes
2111 else
2112 echo "configure: failed program was:" >&5
2113 cat conftest.$ac_ext >&5
2114 rm -rf conftest*
2115 ac_cv_func_alloca_works=no
2117 rm -f conftest*
2120 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2121 if test $ac_cv_func_alloca_works = yes; then
2122 cat >> confdefs.h <<\EOF
2123 #define HAVE_ALLOCA 1
2128 if test $ac_cv_func_alloca_works = no; then
2129 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2130 # that cause trouble. Some versions do not even contain alloca or
2131 # contain a buggy version. If you still want to use their alloca,
2132 # use ar to extract alloca.o from them instead of compiling alloca.c.
2133 ALLOCA=alloca.${ac_objext}
2134 cat >> confdefs.h <<\EOF
2135 #define C_ALLOCA 1
2139 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2140 echo "configure:2141: checking whether alloca needs Cray hooks" >&5
2141 if eval "test \"\${ac_cv_os_cray+set}\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2143 else
2144 cat > conftest.$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 #if defined(CRAY) && ! defined(CRAY2)
2148 webecray
2149 #else
2150 wenotbecray
2151 #endif
2154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2155 egrep "webecray" >/dev/null 2>&1; then
2156 rm -rf conftest*
2157 ac_cv_os_cray=yes
2158 else
2159 rm -rf conftest*
2160 ac_cv_os_cray=no
2162 rm -f conftest*
2166 echo "$ac_t""$ac_cv_os_cray" 1>&6
2167 if test $ac_cv_os_cray = yes; then
2168 for ac_func in _getb67 GETB67 getb67; do
2169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2170 echo "configure:2171: checking for $ac_func" >&5
2171 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2173 else
2174 cat > conftest.$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2177 /* System header to define __stub macros and hopefully few prototypes,
2178 which can conflict with char $ac_func(); below. */
2179 #include <assert.h>
2180 /* Override any gcc2 internal prototype to avoid an error. */
2181 /* We use char because int might match the return type of a gcc2
2182 builtin and then its argument prototype would still apply. */
2183 char $ac_func();
2184 char (*f)();
2186 int main() {
2188 /* The GNU C library defines this for functions which it implements
2189 to always fail with ENOSYS. Some functions are actually named
2190 something starting with __ and the normal name is an alias. */
2191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2192 choke me
2193 #else
2194 f = $ac_func;
2195 #endif
2197 ; return 0; }
2199 if { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2200 rm -rf conftest*
2201 eval "ac_cv_func_$ac_func=yes"
2202 else
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2205 rm -rf conftest*
2206 eval "ac_cv_func_$ac_func=no"
2208 rm -f conftest*
2211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2212 echo "$ac_t""yes" 1>&6
2213 cat >> confdefs.h <<EOF
2214 #define CRAY_STACKSEG_END $ac_func
2217 break
2218 else
2219 echo "$ac_t""no" 1>&6
2222 done
2225 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2226 echo "configure:2227: checking stack direction for C alloca" >&5
2227 if eval "test \"\${ac_cv_c_stack_direction+set}\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2229 else
2230 if test "$cross_compiling" = yes; then
2231 ac_cv_c_stack_direction=0
2232 else
2233 cat > conftest.$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2236 find_stack_direction ()
2238 static char *addr = 0;
2239 auto char dummy;
2240 if (addr == 0)
2242 addr = &dummy;
2243 return find_stack_direction ();
2245 else
2246 return (&dummy > addr) ? 1 : -1;
2248 main ()
2250 exit (find_stack_direction() < 0);
2253 if { (eval echo configure:2254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2254 then
2255 ac_cv_c_stack_direction=1
2256 else
2257 echo "configure: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 rm -fr conftest*
2260 ac_cv_c_stack_direction=-1
2262 rm -fr conftest*
2267 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2268 cat >> confdefs.h <<EOF
2269 #define STACK_DIRECTION $ac_cv_c_stack_direction
2275 echo $ac_n "checking size of short""... $ac_c" 1>&6
2276 echo "configure:2277: checking size of short" >&5
2277 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2279 else
2280 if test "$cross_compiling" = yes; then
2281 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2282 else
2283 cat > conftest.$ac_ext <<EOF
2284 #line 2285 "configure"
2285 #include "confdefs.h"
2286 #include <stdio.h>
2287 main()
2289 FILE *f=fopen("conftestval", "w");
2290 if (!f) exit(1);
2291 fprintf(f, "%d\n", sizeof(short));
2292 exit(0);
2295 if { (eval echo configure:2296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2296 then
2297 ac_cv_sizeof_short=`cat conftestval`
2298 else
2299 echo "configure: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2301 rm -fr conftest*
2302 ac_cv_sizeof_short=0
2304 rm -fr conftest*
2308 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2309 cat >> confdefs.h <<EOF
2310 #define SIZEOF_SHORT $ac_cv_sizeof_short
2314 echo $ac_n "checking size of int""... $ac_c" 1>&6
2315 echo "configure:2316: checking size of int" >&5
2316 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2318 else
2319 if test "$cross_compiling" = yes; then
2320 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2321 else
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2325 #include <stdio.h>
2326 main()
2328 FILE *f=fopen("conftestval", "w");
2329 if (!f) exit(1);
2330 fprintf(f, "%d\n", sizeof(int));
2331 exit(0);
2334 if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2335 then
2336 ac_cv_sizeof_int=`cat conftestval`
2337 else
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2340 rm -fr conftest*
2341 ac_cv_sizeof_int=0
2343 rm -fr conftest*
2347 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2348 cat >> confdefs.h <<EOF
2349 #define SIZEOF_INT $ac_cv_sizeof_int
2353 echo $ac_n "checking size of long""... $ac_c" 1>&6
2354 echo "configure:2355: checking size of long" >&5
2355 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2357 else
2358 if test "$cross_compiling" = yes; then
2359 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2360 else
2361 cat > conftest.$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2364 #include <stdio.h>
2365 main()
2367 FILE *f=fopen("conftestval", "w");
2368 if (!f) exit(1);
2369 fprintf(f, "%d\n", sizeof(long));
2370 exit(0);
2373 if { (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2374 then
2375 ac_cv_sizeof_long=`cat conftestval`
2376 else
2377 echo "configure: failed program was:" >&5
2378 cat conftest.$ac_ext >&5
2379 rm -fr conftest*
2380 ac_cv_sizeof_long=0
2382 rm -fr conftest*
2386 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2387 cat >> confdefs.h <<EOF
2388 #define SIZEOF_LONG $ac_cv_sizeof_long
2392 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2393 echo "configure:2394: checking size of long long" >&5
2394 if eval "test \"\${ac_cv_sizeof_long_long+set}\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2396 else
2397 if test "$cross_compiling" = yes; then
2398 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2399 else
2400 cat > conftest.$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2403 #include <stdio.h>
2404 main()
2406 FILE *f=fopen("conftestval", "w");
2407 if (!f) exit(1);
2408 fprintf(f, "%d\n", sizeof(long long));
2409 exit(0);
2412 if { (eval echo configure:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2413 then
2414 ac_cv_sizeof_long_long=`cat conftestval`
2415 else
2416 echo "configure: failed program was:" >&5
2417 cat conftest.$ac_ext >&5
2418 rm -fr conftest*
2419 ac_cv_sizeof_long_long=0
2421 rm -fr conftest*
2425 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2426 cat >> confdefs.h <<EOF
2427 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2431 echo $ac_n "checking size of float""... $ac_c" 1>&6
2432 echo "configure:2433: checking size of float" >&5
2433 if eval "test \"\${ac_cv_sizeof_float+set}\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2435 else
2436 if test "$cross_compiling" = yes; then
2437 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2438 else
2439 cat > conftest.$ac_ext <<EOF
2440 #line 2441 "configure"
2441 #include "confdefs.h"
2442 #include <stdio.h>
2443 main()
2445 FILE *f=fopen("conftestval", "w");
2446 if (!f) exit(1);
2447 fprintf(f, "%d\n", sizeof(float));
2448 exit(0);
2451 if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2452 then
2453 ac_cv_sizeof_float=`cat conftestval`
2454 else
2455 echo "configure: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2457 rm -fr conftest*
2458 ac_cv_sizeof_float=0
2460 rm -fr conftest*
2464 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
2465 cat >> confdefs.h <<EOF
2466 #define SIZEOF_FLOAT $ac_cv_sizeof_float
2470 echo $ac_n "checking size of double""... $ac_c" 1>&6
2471 echo "configure:2472: checking size of double" >&5
2472 if eval "test \"\${ac_cv_sizeof_double+set}\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2474 else
2475 if test "$cross_compiling" = yes; then
2476 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2477 else
2478 cat > conftest.$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2481 #include <stdio.h>
2482 main()
2484 FILE *f=fopen("conftestval", "w");
2485 if (!f) exit(1);
2486 fprintf(f, "%d\n", sizeof(double));
2487 exit(0);
2490 if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2491 then
2492 ac_cv_sizeof_double=`cat conftestval`
2493 else
2494 echo "configure: failed program was:" >&5
2495 cat conftest.$ac_ext >&5
2496 rm -fr conftest*
2497 ac_cv_sizeof_double=0
2499 rm -fr conftest*
2503 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
2504 cat >> confdefs.h <<EOF
2505 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
2509 echo $ac_n "checking size of long double""... $ac_c" 1>&6
2510 echo "configure:2511: checking size of long double" >&5
2511 if eval "test \"\${ac_cv_sizeof_long_double+set}\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2513 else
2514 if test "$cross_compiling" = yes; then
2515 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2516 else
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2520 #include <stdio.h>
2521 main()
2523 FILE *f=fopen("conftestval", "w");
2524 if (!f) exit(1);
2525 fprintf(f, "%d\n", sizeof(long double));
2526 exit(0);
2529 if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2530 then
2531 ac_cv_sizeof_long_double=`cat conftestval`
2532 else
2533 echo "configure: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
2535 rm -fr conftest*
2536 ac_cv_sizeof_long_double=0
2538 rm -fr conftest*
2542 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
2543 cat >> confdefs.h <<EOF
2544 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
2549 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2550 echo "configure:2551: checking size of void *" >&5
2551 if eval "test \"\${ac_cv_sizeof_void_p+set}\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2553 else
2554 if test "$cross_compiling" = yes; then
2555 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2556 else
2557 cat > conftest.$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2560 #include <stdio.h>
2561 main()
2563 FILE *f=fopen("conftestval", "w");
2564 if (!f) exit(1);
2565 fprintf(f, "%d\n", sizeof(void *));
2566 exit(0);
2569 if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2570 then
2571 ac_cv_sizeof_void_p=`cat conftestval`
2572 else
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2575 rm -fr conftest*
2576 ac_cv_sizeof_void_p=0
2578 rm -fr conftest*
2582 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2583 cat >> confdefs.h <<EOF
2584 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2588 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2589 echo "configure:2590: checking whether byte ordering is bigendian" >&5
2590 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2592 else
2593 ac_cv_c_bigendian=unknown
2594 # See if sys/param.h defines the BYTE_ORDER macro.
2595 cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2598 #include <sys/types.h>
2599 #include <sys/param.h>
2600 int main() {
2602 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2603 bogus endian macros
2604 #endif
2605 ; return 0; }
2607 if { (eval echo configure:2608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2608 rm -rf conftest*
2609 # It does; now see whether it defined to BIG_ENDIAN or not.
2610 cat > conftest.$ac_ext <<EOF
2611 #line 2612 "configure"
2612 #include "confdefs.h"
2613 #include <sys/types.h>
2614 #include <sys/param.h>
2615 int main() {
2617 #if BYTE_ORDER != BIG_ENDIAN
2618 not big endian
2619 #endif
2620 ; return 0; }
2622 if { (eval echo configure:2623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2623 rm -rf conftest*
2624 ac_cv_c_bigendian=yes
2625 else
2626 echo "configure: failed program was:" >&5
2627 cat conftest.$ac_ext >&5
2628 rm -rf conftest*
2629 ac_cv_c_bigendian=no
2631 rm -f conftest*
2632 else
2633 echo "configure: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2636 rm -f conftest*
2637 if test $ac_cv_c_bigendian = unknown; then
2638 if test "$cross_compiling" = yes; then
2639 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2640 else
2641 cat > conftest.$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2644 main () {
2645 /* Are we little or big endian? From Harbison&Steele. */
2646 union
2648 long l;
2649 char c[sizeof (long)];
2650 } u;
2651 u.l = 1;
2652 exit (u.c[sizeof (long) - 1] == 1);
2655 if { (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2656 then
2657 ac_cv_c_bigendian=no
2658 else
2659 echo "configure: failed program was:" >&5
2660 cat conftest.$ac_ext >&5
2661 rm -fr conftest*
2662 ac_cv_c_bigendian=yes
2664 rm -fr conftest*
2670 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2671 if test $ac_cv_c_bigendian = yes; then
2672 cat >> confdefs.h <<\EOF
2673 #define WORDS_BIGENDIAN 1
2684 # Check whether --enable-debug or --disable-debug was given.
2685 if test "${enable_debug+set}" = set; then
2686 enableval="$enable_debug"
2687 cat >> confdefs.h <<\EOF
2688 #define FFI_DEBUG 1
2694 # Check whether --enable-debug or --disable-debug was given.
2695 if test "${enable_debug+set}" = set; then
2696 enableval="$enable_debug"
2697 cat >> confdefs.h <<\EOF
2698 #define FFI_NO_STRUCTS 1
2704 # Check whether --enable-debug or --disable-debug was given.
2705 if test "${enable_debug+set}" = set; then
2706 enableval="$enable_debug"
2707 cat >> confdefs.h <<\EOF
2708 #define FFI_NO_RAW_API 1
2714 # Check whether --enable-purify-safety or --disable-purify-safety was given.
2715 if test "${enable_purify_safety+set}" = set; then
2716 enableval="$enable_purify_safety"
2717 cat >> confdefs.h <<\EOF
2718 #define USING_PURIFY 1
2726 if test -z "$with_cross_host"; then
2727 USE_LIBDIR_TRUE=
2728 USE_LIBDIR_FALSE='#'
2729 else
2730 USE_LIBDIR_TRUE='#'
2731 USE_LIBDIR_FALSE=
2734 trap '' 1 2 15
2735 cat > confcache <<\EOF
2736 # This file is a shell script that caches the results of configure
2737 # tests run on this system so they can be shared between configure
2738 # scripts and configure runs. It is not useful on other systems.
2739 # If it contains results you don't want to keep, you may remove or edit it.
2741 # By default, configure uses ./config.cache as the cache file,
2742 # creating it if it does not exist already. You can give configure
2743 # the --cache-file=FILE option to use a different cache file; that is
2744 # what configure does when it calls configure scripts in
2745 # subdirectories, so they share the cache.
2746 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2747 # config.status only pays attention to the cache file if you give it the
2748 # --recheck option to rerun configure.
2751 # The following way of writing the cache mishandles newlines in values,
2752 # but we know of no workaround that is simple, portable, and efficient.
2753 # So, don't put newlines in cache variables' values.
2754 # Ultrix sh set writes to stderr and can't be redirected directly,
2755 # and sets the high bit in the cache file unless we assign to the vars.
2756 (set) 2>&1 |
2757 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2758 *ac_space=\ *)
2759 # `set' does not quote correctly, so add quotes (double-quote substitution
2760 # turns \\\\ into \\, and sed turns \\ into \).
2761 sed -n \
2762 -e "s/'/'\\\\''/g" \
2763 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2766 # `set' quotes correctly as required by POSIX, so do not add quotes.
2767 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2769 esac >> confcache
2770 if cmp -s $cache_file confcache; then
2772 else
2773 if test -w $cache_file; then
2774 echo "updating cache $cache_file"
2775 cat confcache > $cache_file
2776 else
2777 echo "not updating unwritable cache $cache_file"
2780 rm -f confcache
2782 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2784 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2785 # Let make expand exec_prefix.
2786 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2788 # Any assignment to VPATH causes Sun make to only execute
2789 # the first set of double-colon rules, so remove it if not needed.
2790 # If there is a colon in the path, we need to keep it.
2791 if test "x$srcdir" = x.; then
2792 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2795 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2797 DEFS=-DHAVE_CONFIG_H
2799 # Without the "./", some shells look in PATH for config.status.
2800 : ${CONFIG_STATUS=./config.status}
2802 echo creating $CONFIG_STATUS
2803 rm -f $CONFIG_STATUS
2804 cat > $CONFIG_STATUS <<EOF
2805 #! /bin/sh
2806 # Generated automatically by configure.
2807 # Run this file to recreate the current configuration.
2808 # This directory was configured as follows,
2809 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2811 # $0 $ac_configure_args
2813 # Compiler output produced by configure, useful for debugging
2814 # configure, is in ./config.log if it exists.
2816 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2817 for ac_option
2819 case "\$ac_option" in
2820 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2821 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2822 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2823 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2824 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
2825 exit 0 ;;
2826 -help | --help | --hel | --he | --h)
2827 echo "\$ac_cs_usage"; exit 0 ;;
2828 *) echo "\$ac_cs_usage"; exit 1 ;;
2829 esac
2830 done
2832 ac_given_srcdir=$srcdir
2833 ac_given_INSTALL="$INSTALL"
2835 trap 'rm -fr `echo "include/Makefile include/ffi.h Makefile fficonfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2837 cat >> $CONFIG_STATUS <<EOF
2839 # Protect against being on the right side of a sed subst in config.status.
2840 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2841 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2842 $ac_vpsub
2843 $extrasub
2844 s%@SHELL@%$SHELL%g
2845 s%@CFLAGS@%$CFLAGS%g
2846 s%@CPPFLAGS@%$CPPFLAGS%g
2847 s%@CXXFLAGS@%$CXXFLAGS%g
2848 s%@FFLAGS@%$FFLAGS%g
2849 s%@DEFS@%$DEFS%g
2850 s%@LDFLAGS@%$LDFLAGS%g
2851 s%@LIBS@%$LIBS%g
2852 s%@exec_prefix@%$exec_prefix%g
2853 s%@prefix@%$prefix%g
2854 s%@program_transform_name@%$program_transform_name%g
2855 s%@bindir@%$bindir%g
2856 s%@sbindir@%$sbindir%g
2857 s%@libexecdir@%$libexecdir%g
2858 s%@datadir@%$datadir%g
2859 s%@sysconfdir@%$sysconfdir%g
2860 s%@sharedstatedir@%$sharedstatedir%g
2861 s%@localstatedir@%$localstatedir%g
2862 s%@libdir@%$libdir%g
2863 s%@includedir@%$includedir%g
2864 s%@oldincludedir@%$oldincludedir%g
2865 s%@infodir@%$infodir%g
2866 s%@mandir@%$mandir%g
2867 s%@host@%$host%g
2868 s%@host_alias@%$host_alias%g
2869 s%@host_cpu@%$host_cpu%g
2870 s%@host_vendor@%$host_vendor%g
2871 s%@host_os@%$host_os%g
2872 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2873 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2874 s%@INSTALL_DATA@%$INSTALL_DATA%g
2875 s%@PACKAGE@%$PACKAGE%g
2876 s%@VERSION@%$VERSION%g
2877 s%@ACLOCAL@%$ACLOCAL%g
2878 s%@AUTOCONF@%$AUTOCONF%g
2879 s%@AUTOMAKE@%$AUTOMAKE%g
2880 s%@AUTOHEADER@%$AUTOHEADER%g
2881 s%@MAKEINFO@%$MAKEINFO%g
2882 s%@install_sh@%$install_sh%g
2883 s%@AMTAR@%$AMTAR%g
2884 s%@AMTARFLAGS@%$AMTARFLAGS%g
2885 s%@SET_MAKE@%$SET_MAKE%g
2886 s%@EXEEXT@%$EXEEXT%g
2887 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2888 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2889 s%@MAINT@%$MAINT%g
2890 s%@CC@%$CC%g
2891 s%@build@%$build%g
2892 s%@build_alias@%$build_alias%g
2893 s%@build_cpu@%$build_cpu%g
2894 s%@build_vendor@%$build_vendor%g
2895 s%@build_os@%$build_os%g
2896 s%@RANLIB@%$RANLIB%g
2897 s%@LD@%$LD%g
2898 s%@NM@%$NM%g
2899 s%@LN_S@%$LN_S%g
2900 s%@LIBTOOL@%$LIBTOOL%g
2901 s%@MIPS_GCC_TRUE@%$MIPS_GCC_TRUE%g
2902 s%@MIPS_GCC_FALSE@%$MIPS_GCC_FALSE%g
2903 s%@MIPS_SGI_TRUE@%$MIPS_SGI_TRUE%g
2904 s%@MIPS_SGI_FALSE@%$MIPS_SGI_FALSE%g
2905 s%@SPARC_TRUE@%$SPARC_TRUE%g
2906 s%@SPARC_FALSE@%$SPARC_FALSE%g
2907 s%@X86_TRUE@%$X86_TRUE%g
2908 s%@X86_FALSE@%$X86_FALSE%g
2909 s%@ALPHA_TRUE@%$ALPHA_TRUE%g
2910 s%@ALPHA_FALSE@%$ALPHA_FALSE%g
2911 s%@M68K_TRUE@%$M68K_TRUE%g
2912 s%@M68K_FALSE@%$M68K_FALSE%g
2913 s%@POWERPC_TRUE@%$POWERPC_TRUE%g
2914 s%@POWERPC_FALSE@%$POWERPC_FALSE%g
2915 s%@ARM_TRUE@%$ARM_TRUE%g
2916 s%@ARM_FALSE@%$ARM_FALSE%g
2917 s%@CPP@%$CPP%g
2918 s%@ALLOCA@%$ALLOCA%g
2919 s%@TARGET@%$TARGET%g
2920 s%@TARGETDIR@%$TARGETDIR%g
2921 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
2922 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
2924 CEOF
2927 cat >> $CONFIG_STATUS <<\EOF
2929 # Split the substitutions into bite-sized pieces for seds with
2930 # small command number limits, like on Digital OSF/1 and HP-UX.
2931 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2932 ac_file=1 # Number of current file.
2933 ac_beg=1 # First line for current file.
2934 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2935 ac_more_lines=:
2936 ac_sed_cmds=""
2937 while $ac_more_lines; do
2938 if test $ac_beg -gt 1; then
2939 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2940 else
2941 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2943 if test ! -s conftest.s$ac_file; then
2944 ac_more_lines=false
2945 rm -f conftest.s$ac_file
2946 else
2947 if test -z "$ac_sed_cmds"; then
2948 ac_sed_cmds="sed -f conftest.s$ac_file"
2949 else
2950 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2952 ac_file=`expr $ac_file + 1`
2953 ac_beg=$ac_end
2954 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2956 done
2957 if test -z "$ac_sed_cmds"; then
2958 ac_sed_cmds=cat
2962 cat >> $CONFIG_STATUS <<EOF
2964 CONFIG_FILES=\${CONFIG_FILES-"include/Makefile include/ffi.h Makefile"}
2966 cat >> $CONFIG_STATUS <<\EOF
2967 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2968 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2969 case "$ac_file" in
2970 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2971 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2972 *) ac_file_in="${ac_file}.in" ;;
2973 esac
2975 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2977 # Remove last slash and all that follows it. Not all systems have dirname.
2978 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2979 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2980 # The file is in a subdirectory.
2981 test ! -d "$ac_dir" && mkdir "$ac_dir"
2982 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2983 # A "../" for each directory in $ac_dir_suffix.
2984 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2985 else
2986 ac_dir_suffix= ac_dots=
2989 case "$ac_given_srcdir" in
2990 .) srcdir=.
2991 if test -z "$ac_dots"; then top_srcdir=.
2992 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2993 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2994 *) # Relative path.
2995 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2996 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2997 esac
2999 case "$ac_given_INSTALL" in
3000 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3001 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3002 esac
3004 echo creating "$ac_file"
3005 rm -f "$ac_file"
3006 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3007 case "$ac_file" in
3008 *Makefile*) ac_comsub="1i\\
3009 # $configure_input" ;;
3010 *) ac_comsub= ;;
3011 esac
3013 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3014 sed -e "$ac_comsub
3015 s%@configure_input@%$configure_input%g
3016 s%@srcdir@%$srcdir%g
3017 s%@top_srcdir@%$top_srcdir%g
3018 s%@INSTALL@%$INSTALL%g
3019 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3020 fi; done
3021 rm -f conftest.s*
3023 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3024 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3026 # ac_d sets the value in "#define NAME VALUE" lines.
3027 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3028 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3029 ac_dC='\3'
3030 ac_dD='%g'
3031 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3032 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3033 ac_uB='\([ ]\)%\1#\2define\3'
3034 ac_uC=' '
3035 ac_uD='\4%g'
3036 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3037 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3038 ac_eB='$%\1#\2define\3'
3039 ac_eC=' '
3040 ac_eD='%g'
3042 if test "${CONFIG_HEADERS+set}" != set; then
3044 cat >> $CONFIG_STATUS <<EOF
3045 CONFIG_HEADERS="fficonfig.h"
3047 cat >> $CONFIG_STATUS <<\EOF
3049 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3050 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3051 case "$ac_file" in
3052 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3053 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3054 *) ac_file_in="${ac_file}.in" ;;
3055 esac
3057 echo creating $ac_file
3059 rm -f conftest.frag conftest.in conftest.out
3060 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3061 cat $ac_file_inputs > conftest.in
3065 # Transform confdefs.h into a sed script conftest.vals that substitutes
3066 # the proper values into config.h.in to produce config.h. And first:
3067 # Protect against being on the right side of a sed subst in config.status.
3068 # Protect against being in an unquoted here document in config.status.
3069 rm -f conftest.vals
3070 cat > conftest.hdr <<\EOF
3071 s/[\\&%]/\\&/g
3072 s%[\\$`]%\\&%g
3073 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3074 s%ac_d%ac_u%gp
3075 s%ac_u%ac_e%gp
3077 sed -n -f conftest.hdr confdefs.h > conftest.vals
3078 rm -f conftest.hdr
3080 # This sed command replaces #undef with comments. This is necessary, for
3081 # example, in the case of _POSIX_SOURCE, which is predefined and required
3082 # on some systems where configure will not decide to define it.
3083 cat >> conftest.vals <<\EOF
3084 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3087 # Break up conftest.vals because some shells have a limit on
3088 # the size of here documents, and old seds have small limits too.
3090 rm -f conftest.tail
3091 while :
3093 ac_lines=`grep -c . conftest.vals`
3094 # grep -c gives empty output for an empty file on some AIX systems.
3095 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3096 # Write a limited-size here document to conftest.frag.
3097 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3098 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3099 echo 'CEOF
3100 sed -f conftest.frag conftest.in > conftest.out
3101 rm -f conftest.in
3102 mv conftest.out conftest.in
3103 ' >> $CONFIG_STATUS
3104 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3105 rm -f conftest.vals
3106 mv conftest.tail conftest.vals
3107 done
3108 rm -f conftest.vals
3110 cat >> $CONFIG_STATUS <<\EOF
3111 rm -f conftest.frag conftest.h
3112 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3113 cat conftest.in >> conftest.h
3114 rm -f conftest.in
3115 if cmp -s $ac_file conftest.h 2>/dev/null; then
3116 echo "$ac_file is unchanged"
3117 rm -f conftest.h
3118 else
3119 # Remove last slash and all that follows it. Not all systems have dirname.
3120 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3121 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3122 # The file is in a subdirectory.
3123 test ! -d "$ac_dir" && mkdir "$ac_dir"
3125 rm -f $ac_file
3126 mv conftest.h $ac_file
3128 fi; done
3131 cat >> $CONFIG_STATUS <<EOF
3133 test ! -d include && mkdir include
3134 test ! -f include/fficonfig.h && cp fficonfig.h include/fficonfig.h
3135 if cmp -s fficonfig.h include/fficonfig.h 2>/dev/null; then
3136 echo fficonfig.h unchanged
3137 else
3138 echo Moving fficonfig.h to include/fficonfig.h
3139 cp fficonfig.h include/fficonfig.h
3143 cat >> $CONFIG_STATUS <<\EOF
3144 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3146 exit 0
3148 chmod +x $CONFIG_STATUS
3149 rm -fr confdefs* $ac_clean_files
3150 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1