OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / libffi / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libffi 2.1.
4 #
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='libffi'
271 PACKAGE_TARNAME='libffi'
272 PACKAGE_VERSION='2.1'
273 PACKAGE_STRING='libffi 2.1'
274 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
275
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CCAS CCASFLAGS LN_S RANLIB ac_ct_RANLIB LIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CPP CPPFLAGS EGREP TESTSUBDIR_TRUE TESTSUBDIR_FALSE AM_RUNTESTFLAGS MIPS_IRIX_TRUE MIPS_IRIX_FALSE MIPS_LINUX_TRUE MIPS_LINUX_FALSE SPARC_TRUE SPARC_FALSE X86_TRUE X86_FALSE X86_WIN32_TRUE X86_WIN32_FALSE X86_DARWIN_TRUE X86_DARWIN_FALSE ALPHA_TRUE ALPHA_FALSE IA64_TRUE IA64_FALSE M32R_TRUE M32R_FALSE M68K_TRUE M68K_FALSE POWERPC_TRUE POWERPC_FALSE POWERPC_AIX_TRUE POWERPC_AIX_FALSE POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE POWERPC_FREEBSD_TRUE POWERPC_FREEBSD_FALSE ARM_TRUE ARM_FALSE LIBFFI_CRIS_TRUE LIBFFI_CRIS_FALSE FRV_TRUE FRV_FALSE S390_TRUE S390_FALSE X86_64_TRUE X86_64_FALSE SH_TRUE SH_FALSE SH64_TRUE SH64_FALSE PA_LINUX_TRUE PA_LINUX_FALSE PA_HPUX_TRUE PA_HPUX_FALSE PA64_HPUX_TRUE PA64_HPUX_FALSE ALLOCA HAVE_LONG_DOUBLE TARGET TARGETDIR toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CCAS_set=${CCAS+set}
755 ac_env_CCAS_value=$CCAS
756 ac_cv_env_CCAS_set=${CCAS+set}
757 ac_cv_env_CCAS_value=$CCAS
758 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
759 ac_env_CCASFLAGS_value=$CCASFLAGS
760 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
761 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770
771 #
772 # Report the --help message.
773 #
774 if test "$ac_init_help" = "long"; then
775   # Omit some internal or obsolete options to make the list less imposing.
776   # This message is too long to be a string in the A/UX 3.1 sh.
777   cat <<_ACEOF
778 \`configure' configures libffi 2.1 to adapt to many kinds of systems.
779
780 Usage: $0 [OPTION]... [VAR=VALUE]...
781
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE.  See below for descriptions of some of the useful variables.
784
785 Defaults for the options are specified in brackets.
786
787 Configuration:
788   -h, --help              display this help and exit
789       --help=short        display options specific to this package
790       --help=recursive    display the short help of all the included packages
791   -V, --version           display version information and exit
792   -q, --quiet, --silent   do not print \`checking...' messages
793       --cache-file=FILE   cache test results in FILE [disabled]
794   -C, --config-cache      alias for \`--cache-file=config.cache'
795   -n, --no-create         do not create output files
796       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
797
798 _ACEOF
799
800   cat <<_ACEOF
801 Installation directories:
802   --prefix=PREFIX         install architecture-independent files in PREFIX
803                           [$ac_default_prefix]
804   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
805                           [PREFIX]
806
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
811
812 For better control, use the options below.
813
814 Fine tuning of the installation directories:
815   --bindir=DIR           user executables [EPREFIX/bin]
816   --sbindir=DIR          system admin executables [EPREFIX/sbin]
817   --libexecdir=DIR       program executables [EPREFIX/libexec]
818   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
819   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
820   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
821   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
822   --libdir=DIR           object code libraries [EPREFIX/lib]
823   --includedir=DIR       C header files [PREFIX/include]
824   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
825   --infodir=DIR          info documentation [PREFIX/info]
826   --mandir=DIR           man documentation [PREFIX/man]
827 _ACEOF
828
829   cat <<\_ACEOF
830
831 Program names:
832   --program-prefix=PREFIX            prepend PREFIX to installed program names
833   --program-suffix=SUFFIX            append SUFFIX to installed program names
834   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
835
836 System types:
837   --build=BUILD     configure for building on BUILD [guessed]
838   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
839   --target=TARGET   configure for building compilers for TARGET [HOST]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of libffi 2.1:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-multilib       build many library versions (default)
853   --disable-dependency-tracking  speeds up one-time build
854   --enable-dependency-tracking   do not reject slow dependency extractors
855   --enable-shared=PKGS  build shared libraries default=yes
856   --enable-static=PKGS  build static libraries default=yes
857   --enable-fast-install=PKGS  optimize for fast installation default=yes
858   --disable-libtool-lock  avoid locking (might break parallel builds)
859   --enable-maintainer-mode  enable make rules and dependencies not useful
860                           (and sometimes confusing) to the casual installer
861   --enable-debug          debugging mode
862   --disable-structs       omit code for struct support
863   --disable-raw-api       make the raw api unavailable
864   --enable-purify-safety  purify-safe mode
865
866 Optional Packages:
867   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
868   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
869   --with-gnu-ld           assume the C compiler uses GNU ld default=no
870   --with-pic              try to use only PIC/non-PIC objects default=use both
871
872 Some influential environment variables:
873   CC          C compiler command
874   CFLAGS      C compiler flags
875   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
876               nonstandard directory <lib dir>
877   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
878               headers in a nonstandard directory <include dir>
879   CCAS        assembler compiler command (defaults to CC)
880   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
881   CPP         C preprocessor
882
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
885
886 Report bugs to <http://gcc.gnu.org/bugs.html>.
887 _ACEOF
888 fi
889
890 if test "$ac_init_help" = "recursive"; then
891   # If there are subdirs, report their specific --help.
892   ac_popdir=`pwd`
893   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894     test -d $ac_dir || continue
895     ac_builddir=.
896
897 if test "$ac_dir" != .; then
898   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899   # A "../" for each directory in $ac_dir_suffix.
900   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901 else
902   ac_dir_suffix= ac_top_builddir=
903 fi
904
905 case $srcdir in
906   .)  # No --srcdir option.  We are building in place.
907     ac_srcdir=.
908     if test -z "$ac_top_builddir"; then
909        ac_top_srcdir=.
910     else
911        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912     fi ;;
913   [\\/]* | ?:[\\/]* )  # Absolute path.
914     ac_srcdir=$srcdir$ac_dir_suffix;
915     ac_top_srcdir=$srcdir ;;
916   *) # Relative path.
917     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918     ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 esac
920
921 # Do not use `cd foo && pwd` to compute absolute paths, because
922 # the directories may not exist.
923 case `pwd` in
924 .) ac_abs_builddir="$ac_dir";;
925 *)
926   case "$ac_dir" in
927   .) ac_abs_builddir=`pwd`;;
928   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929   *) ac_abs_builddir=`pwd`/"$ac_dir";;
930   esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
934 *)
935   case ${ac_top_builddir}. in
936   .) ac_abs_top_builddir=$ac_abs_builddir;;
937   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939   esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
943 *)
944   case $ac_srcdir in
945   .) ac_abs_srcdir=$ac_abs_builddir;;
946   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948   esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
952 *)
953   case $ac_top_srcdir in
954   .) ac_abs_top_srcdir=$ac_abs_builddir;;
955   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957   esac;;
958 esac
959
960     cd $ac_dir
961     # Check for guested configure; otherwise get Cygnus style configure.
962     if test -f $ac_srcdir/configure.gnu; then
963       echo
964       $SHELL $ac_srcdir/configure.gnu  --help=recursive
965     elif test -f $ac_srcdir/configure; then
966       echo
967       $SHELL $ac_srcdir/configure  --help=recursive
968     elif test -f $ac_srcdir/configure.ac ||
969            test -f $ac_srcdir/configure.in; then
970       echo
971       $ac_configure --help
972     else
973       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974     fi
975     cd $ac_popdir
976   done
977 fi
978
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
981   cat <<\_ACEOF
982 libffi configure 2.1
983 generated by GNU Autoconf 2.59
984
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
988 _ACEOF
989   exit 0
990 fi
991 exec 5>config.log
992 cat >&5 <<_ACEOF
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
995
996 It was created by libffi $as_me 2.1, which was
997 generated by GNU Autoconf 2.59.  Invocation command line was
998
999   $ $0 $@
1000
1001 _ACEOF
1002 {
1003 cat <<_ASUNAME
1004 ## --------- ##
1005 ## Platform. ##
1006 ## --------- ##
1007
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1016
1017 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1018 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1021 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1022 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1023 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1024
1025 _ASUNAME
1026
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 for as_dir in $PATH
1029 do
1030   IFS=$as_save_IFS
1031   test -z "$as_dir" && as_dir=.
1032   echo "PATH: $as_dir"
1033 done
1034
1035 } >&5
1036
1037 cat >&5 <<_ACEOF
1038
1039
1040 ## ----------- ##
1041 ## Core tests. ##
1042 ## ----------- ##
1043
1044 _ACEOF
1045
1046
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_configure_args=
1053 ac_configure_args0=
1054 ac_configure_args1=
1055 ac_sep=
1056 ac_must_keep_next=false
1057 for ac_pass in 1 2
1058 do
1059   for ac_arg
1060   do
1061     case $ac_arg in
1062     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064     | -silent | --silent | --silen | --sile | --sil)
1065       continue ;;
1066     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068     esac
1069     case $ac_pass in
1070     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071     2)
1072       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073       if test $ac_must_keep_next = true; then
1074         ac_must_keep_next=false # Got value, back to normal.
1075       else
1076         case $ac_arg in
1077           *=* | --config-cache | -C | -disable-* | --disable-* \
1078           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080           | -with-* | --with-* | -without-* | --without-* | --x)
1081             case "$ac_configure_args0 " in
1082               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083             esac
1084             ;;
1085           -* ) ac_must_keep_next=true ;;
1086         esac
1087       fi
1088       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089       # Get rid of the leading space.
1090       ac_sep=" "
1091       ;;
1092     esac
1093   done
1094 done
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log.  We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104   # Save into config.log some information that might help in debugging.
1105   {
1106     echo
1107
1108     cat <<\_ASBOX
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1112 _ASBOX
1113     echo
1114     # The following way of writing the cache mishandles newlines in values,
1115 {
1116   (set) 2>&1 |
1117     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118     *ac_space=\ *)
1119       sed -n \
1120         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122       ;;
1123     *)
1124       sed -n \
1125         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126       ;;
1127     esac;
1128 }
1129     echo
1130
1131     cat <<\_ASBOX
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1135 _ASBOX
1136     echo
1137     for ac_var in $ac_subst_vars
1138     do
1139       eval ac_val=$`echo $ac_var`
1140       echo "$ac_var='"'"'$ac_val'"'"'"
1141     done | sort
1142     echo
1143
1144     if test -n "$ac_subst_files"; then
1145       cat <<\_ASBOX
1146 ## ------------- ##
1147 ## Output files. ##
1148 ## ------------- ##
1149 _ASBOX
1150       echo
1151       for ac_var in $ac_subst_files
1152       do
1153         eval ac_val=$`echo $ac_var`
1154         echo "$ac_var='"'"'$ac_val'"'"'"
1155       done | sort
1156       echo
1157     fi
1158
1159     if test -s confdefs.h; then
1160       cat <<\_ASBOX
1161 ## ----------- ##
1162 ## confdefs.h. ##
1163 ## ----------- ##
1164 _ASBOX
1165       echo
1166       sed "/^$/d" confdefs.h | sort
1167       echo
1168     fi
1169     test "$ac_signal" != 0 &&
1170       echo "$as_me: caught signal $ac_signal"
1171     echo "$as_me: exit $exit_status"
1172   } >&5
1173   rm -f core *.core &&
1174   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175     exit $exit_status
1176      ' 0
1177 for ac_signal in 1 2 13 15; do
1178   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1181
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1186
1187 # Predefined preprocessor variables.
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1212
1213
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217   if test "x$prefix" != xNONE; then
1218     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219   else
1220     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221   fi
1222 fi
1223 for ac_site_file in $CONFIG_SITE; do
1224   if test -r "$ac_site_file"; then
1225     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227     sed 's/^/| /' "$ac_site_file" >&5
1228     . "$ac_site_file"
1229   fi
1230 done
1231
1232 if test -r "$cache_file"; then
1233   # Some versions of bash will fail to source /dev/null (special
1234   # files actually), so we avoid doing that.
1235   if test -f "$cache_file"; then
1236     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238     case $cache_file in
1239       [\\/]* | ?:[\\/]* ) . $cache_file;;
1240       *)                      . ./$cache_file;;
1241     esac
1242   fi
1243 else
1244   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246   >$cache_file
1247 fi
1248
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255   eval ac_new_set=\$ac_env_${ac_var}_set
1256   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257   eval ac_new_val="\$ac_env_${ac_var}_value"
1258   case $ac_old_set,$ac_new_set in
1259     set,)
1260       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262       ac_cache_corrupted=: ;;
1263     ,set)
1264       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266       ac_cache_corrupted=: ;;
1267     ,);;
1268     *)
1269       if test "x$ac_old_val" != "x$ac_new_val"; then
1270         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1273 echo "$as_me:   former value:  $ac_old_val" >&2;}
1274         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1275 echo "$as_me:   current value: $ac_new_val" >&2;}
1276         ac_cache_corrupted=:
1277       fi;;
1278   esac
1279   # Pass precious variables to config.status.
1280   if test "$ac_new_set" = set; then
1281     case $ac_new_val in
1282     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284     *) ac_arg=$ac_var=$ac_new_val ;;
1285     esac
1286     case " $ac_configure_args " in
1287       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1288       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289     esac
1290   fi
1291 done
1292 if $ac_cache_corrupted; then
1293   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297    { (exit 1); exit 1; }; }
1298 fi
1299
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332           ac_config_headers="$ac_config_headers fficonfig.h"
1333
1334
1335 # Default to --enable-multilib
1336 # Check whether --enable-multilib or --disable-multilib was given.
1337 if test "${enable_multilib+set}" = set; then
1338   enableval="$enable_multilib"
1339   case "$enableval" in
1340   yes) multilib=yes ;;
1341   no)  multilib=no ;;
1342   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1343 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1344    { (exit 1); exit 1; }; } ;;
1345  esac
1346 else
1347   multilib=yes
1348 fi;
1349
1350 # We may get other options which we leave undocumented:
1351 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1352 # See config-ml.in if you want the gory details.
1353
1354 if test "$srcdir" = "."; then
1355   if test "$with_target_subdir" != "."; then
1356     multi_basedir="$srcdir/$with_multisrctop../.."
1357   else
1358     multi_basedir="$srcdir/$with_multisrctop.."
1359   fi
1360 else
1361   multi_basedir="$srcdir/.."
1362 fi
1363
1364
1365 # Even if the default multilib is not a cross compilation,
1366 # it may be that some of the other multilibs are.
1367 if test $cross_compiling = no && test $multilib = yes \
1368    && test "x${with_multisubdir}" != x ; then
1369    cross_compiling=maybe
1370 fi
1371
1372           ac_config_commands="$ac_config_commands default-1"
1373
1374
1375 ac_aux_dir=
1376 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1377   if test -f $ac_dir/install-sh; then
1378     ac_aux_dir=$ac_dir
1379     ac_install_sh="$ac_aux_dir/install-sh -c"
1380     break
1381   elif test -f $ac_dir/install.sh; then
1382     ac_aux_dir=$ac_dir
1383     ac_install_sh="$ac_aux_dir/install.sh -c"
1384     break
1385   elif test -f $ac_dir/shtool; then
1386     ac_aux_dir=$ac_dir
1387     ac_install_sh="$ac_aux_dir/shtool install -c"
1388     break
1389   fi
1390 done
1391 if test -z "$ac_aux_dir"; then
1392   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1393 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1394    { (exit 1); exit 1; }; }
1395 fi
1396 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1397 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1398 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1399
1400 # Make sure we can run config.sub.
1401 $ac_config_sub sun4 >/dev/null 2>&1 ||
1402   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1403 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1404    { (exit 1); exit 1; }; }
1405
1406 echo "$as_me:$LINENO: checking build system type" >&5
1407 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1408 if test "${ac_cv_build+set}" = set; then
1409   echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411   ac_cv_build_alias=$build_alias
1412 test -z "$ac_cv_build_alias" &&
1413   ac_cv_build_alias=`$ac_config_guess`
1414 test -z "$ac_cv_build_alias" &&
1415   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1416 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1417    { (exit 1); exit 1; }; }
1418 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1419   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1420 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1421    { (exit 1); exit 1; }; }
1422
1423 fi
1424 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1425 echo "${ECHO_T}$ac_cv_build" >&6
1426 build=$ac_cv_build
1427 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430
1431
1432 echo "$as_me:$LINENO: checking host system type" >&5
1433 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1434 if test "${ac_cv_host+set}" = set; then
1435   echo $ECHO_N "(cached) $ECHO_C" >&6
1436 else
1437   ac_cv_host_alias=$host_alias
1438 test -z "$ac_cv_host_alias" &&
1439   ac_cv_host_alias=$ac_cv_build_alias
1440 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1441   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1442 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1443    { (exit 1); exit 1; }; }
1444
1445 fi
1446 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1447 echo "${ECHO_T}$ac_cv_host" >&6
1448 host=$ac_cv_host
1449 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452
1453
1454 echo "$as_me:$LINENO: checking target system type" >&5
1455 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1456 if test "${ac_cv_target+set}" = set; then
1457   echo $ECHO_N "(cached) $ECHO_C" >&6
1458 else
1459   ac_cv_target_alias=$target_alias
1460 test "x$ac_cv_target_alias" = "x" &&
1461   ac_cv_target_alias=$ac_cv_host_alias
1462 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1463   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1464 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1465    { (exit 1); exit 1; }; }
1466
1467 fi
1468 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1469 echo "${ECHO_T}$ac_cv_target" >&6
1470 target=$ac_cv_target
1471 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1472 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1473 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1474
1475
1476 # The aliases save the names the user supplied, while $host etc.
1477 # will get canonicalized.
1478 test -n "$target_alias" &&
1479   test "$program_prefix$program_suffix$program_transform_name" = \
1480     NONENONEs,x,x, &&
1481   program_prefix=${target_alias}-
1482 target_alias=${target_alias-$host_alias}
1483
1484 . ${srcdir}/configure.host
1485
1486 am__api_version="1.9"
1487 # Find a good install program.  We prefer a C program (faster),
1488 # so one script is as good as another.  But avoid the broken or
1489 # incompatible versions:
1490 # SysV /etc/install, /usr/sbin/install
1491 # SunOS /usr/etc/install
1492 # IRIX /sbin/install
1493 # AIX /bin/install
1494 # AmigaOS /C/install, which installs bootblocks on floppy discs
1495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1498 # OS/2's system install, which has a completely different semantic
1499 # ./install, which can be erroneously created by make from ./install.sh.
1500 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1501 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1502 if test -z "$INSTALL"; then
1503 if test "${ac_cv_path_install+set}" = set; then
1504   echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507 for as_dir in $PATH
1508 do
1509   IFS=$as_save_IFS
1510   test -z "$as_dir" && as_dir=.
1511   # Account for people who put trailing slashes in PATH elements.
1512 case $as_dir/ in
1513   ./ | .// | /cC/* | \
1514   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1515   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1516   /usr/ucb/* ) ;;
1517   *)
1518     # OSF1 and SCO ODT 3.0 have their own names for install.
1519     # Don't use installbsd from OSF since it installs stuff as root
1520     # by default.
1521     for ac_prog in ginstall scoinst install; do
1522       for ac_exec_ext in '' $ac_executable_extensions; do
1523         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1524           if test $ac_prog = install &&
1525             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1526             # AIX install.  It has an incompatible calling convention.
1527             :
1528           elif test $ac_prog = install &&
1529             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1530             # program-specific install script used by HP pwplus--don't use.
1531             :
1532           else
1533             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1534             break 3
1535           fi
1536         fi
1537       done
1538     done
1539     ;;
1540 esac
1541 done
1542
1543
1544 fi
1545   if test "${ac_cv_path_install+set}" = set; then
1546     INSTALL=$ac_cv_path_install
1547   else
1548     # As a last resort, use the slow shell script.  We don't cache a
1549     # path for INSTALL within a source directory, because that will
1550     # break other packages using the cache if that directory is
1551     # removed, or if the path is relative.
1552     INSTALL=$ac_install_sh
1553   fi
1554 fi
1555 echo "$as_me:$LINENO: result: $INSTALL" >&5
1556 echo "${ECHO_T}$INSTALL" >&6
1557
1558 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1559 # It thinks the first close brace ends the variable substitution.
1560 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1561
1562 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1563
1564 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1565
1566 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1567 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1568 # Just in case
1569 sleep 1
1570 echo timestamp > conftest.file
1571 # Do `set' in a subshell so we don't clobber the current shell's
1572 # arguments.  Must try -L first in case configure is actually a
1573 # symlink; some systems play weird games with the mod time of symlinks
1574 # (eg FreeBSD returns the mod time of the symlink's containing
1575 # directory).
1576 if (
1577    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1578    if test "$*" = "X"; then
1579       # -L didn't work.
1580       set X `ls -t $srcdir/configure conftest.file`
1581    fi
1582    rm -f conftest.file
1583    if test "$*" != "X $srcdir/configure conftest.file" \
1584       && test "$*" != "X conftest.file $srcdir/configure"; then
1585
1586       # If neither matched, then we have a broken ls.  This can happen
1587       # if, for instance, CONFIG_SHELL is bash and it inherits a
1588       # broken ls alias from the environment.  This has actually
1589       # happened.  Such a system could not be considered "sane".
1590       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1591 alias in your environment" >&5
1592 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1593 alias in your environment" >&2;}
1594    { (exit 1); exit 1; }; }
1595    fi
1596
1597    test "$2" = conftest.file
1598    )
1599 then
1600    # Ok.
1601    :
1602 else
1603    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1604 Check your system clock" >&5
1605 echo "$as_me: error: newly created file is older than distributed files!
1606 Check your system clock" >&2;}
1607    { (exit 1); exit 1; }; }
1608 fi
1609 echo "$as_me:$LINENO: result: yes" >&5
1610 echo "${ECHO_T}yes" >&6
1611 test "$program_prefix" != NONE &&
1612   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1613 # Use a double $ so make ignores it.
1614 test "$program_suffix" != NONE &&
1615   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1616 # Double any \ or $.  echo might interpret backslashes.
1617 # By default was `s,x,x', remove it if useless.
1618 cat <<\_ACEOF >conftest.sed
1619 s/[\\$]/&&/g;s/;s,x,x,$//
1620 _ACEOF
1621 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1622 rm conftest.sed
1623
1624 # expand $ac_aux_dir to an absolute path
1625 am_aux_dir=`cd $ac_aux_dir && pwd`
1626
1627 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1628 # Use eval to expand $SHELL
1629 if eval "$MISSING --run true"; then
1630   am_missing_run="$MISSING --run "
1631 else
1632   am_missing_run=
1633   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1634 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1635 fi
1636
1637 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1638   # We used to keeping the `.' as first argument, in order to
1639   # allow $(mkdir_p) to be used without argument.  As in
1640   #   $(mkdir_p) $(somedir)
1641   # where $(somedir) is conditionally defined.  However this is wrong
1642   # for two reasons:
1643   #  1. if the package is installed by a user who cannot write `.'
1644   #     make install will fail,
1645   #  2. the above comment should most certainly read
1646   #     $(mkdir_p) $(DESTDIR)$(somedir)
1647   #     so it does not work when $(somedir) is undefined and
1648   #     $(DESTDIR) is not.
1649   #  To support the latter case, we have to write
1650   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1651   #  so the `.' trick is pointless.
1652   mkdir_p='mkdir -p --'
1653 else
1654   # On NextStep and OpenStep, the `mkdir' command does not
1655   # recognize any option.  It will interpret all options as
1656   # directories to create, and then abort because `.' already
1657   # exists.
1658   for d in ./-p ./--version;
1659   do
1660     test -d $d && rmdir $d
1661   done
1662   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1663   if test -f "$ac_aux_dir/mkinstalldirs"; then
1664     mkdir_p='$(mkinstalldirs)'
1665   else
1666     mkdir_p='$(install_sh) -d'
1667   fi
1668 fi
1669
1670 for ac_prog in gawk mawk nawk awk
1671 do
1672   # Extract the first word of "$ac_prog", so it can be a program name with args.
1673 set dummy $ac_prog; ac_word=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_AWK+set}" = set; then
1677   echo $ECHO_N "(cached) $ECHO_C" >&6
1678 else
1679   if test -n "$AWK"; then
1680   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1681 else
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 for as_dir in $PATH
1684 do
1685   IFS=$as_save_IFS
1686   test -z "$as_dir" && as_dir=.
1687   for ac_exec_ext in '' $ac_executable_extensions; do
1688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689     ac_cv_prog_AWK="$ac_prog"
1690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691     break 2
1692   fi
1693 done
1694 done
1695
1696 fi
1697 fi
1698 AWK=$ac_cv_prog_AWK
1699 if test -n "$AWK"; then
1700   echo "$as_me:$LINENO: result: $AWK" >&5
1701 echo "${ECHO_T}$AWK" >&6
1702 else
1703   echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1705 fi
1706
1707   test -n "$AWK" && break
1708 done
1709
1710 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1711 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1712 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1713 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1714   echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716   cat >conftest.make <<\_ACEOF
1717 all:
1718         @echo 'ac_maketemp="$(MAKE)"'
1719 _ACEOF
1720 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1721 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1722 if test -n "$ac_maketemp"; then
1723   eval ac_cv_prog_make_${ac_make}_set=yes
1724 else
1725   eval ac_cv_prog_make_${ac_make}_set=no
1726 fi
1727 rm -f conftest.make
1728 fi
1729 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1730   echo "$as_me:$LINENO: result: yes" >&5
1731 echo "${ECHO_T}yes" >&6
1732   SET_MAKE=
1733 else
1734   echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1736   SET_MAKE="MAKE=${MAKE-make}"
1737 fi
1738
1739 rm -rf .tst 2>/dev/null
1740 mkdir .tst 2>/dev/null
1741 if test -d .tst; then
1742   am__leading_dot=.
1743 else
1744   am__leading_dot=_
1745 fi
1746 rmdir .tst 2>/dev/null
1747
1748 # test to see if srcdir already configured
1749 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1750    test -f $srcdir/config.status; then
1751   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1752 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1753    { (exit 1); exit 1; }; }
1754 fi
1755
1756 # test whether we have cygpath
1757 if test -z "$CYGPATH_W"; then
1758   if (cygpath --version) >/dev/null 2>/dev/null; then
1759     CYGPATH_W='cygpath -w'
1760   else
1761     CYGPATH_W=echo
1762   fi
1763 fi
1764
1765
1766 # Define the identity of the package.
1767  PACKAGE='libffi'
1768  VERSION='2.1'
1769
1770
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE "$PACKAGE"
1773 _ACEOF
1774
1775
1776 cat >>confdefs.h <<_ACEOF
1777 #define VERSION "$VERSION"
1778 _ACEOF
1779
1780 # Some tools Automake needs.
1781
1782 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1783
1784
1785 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1786
1787
1788 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1789
1790
1791 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1792
1793
1794 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1795
1796 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1797
1798 # Installed binaries are usually stripped using `strip' when the user
1799 # run `make install-strip'.  However `strip' might not be the right
1800 # tool to use in cross-compilation environments, therefore Automake
1801 # will honor the `STRIP' environment variable to overrule this program.
1802 if test "$cross_compiling" != no; then
1803   if test -n "$ac_tool_prefix"; then
1804   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1805 set dummy ${ac_tool_prefix}strip; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_STRIP+set}" = set; then
1809   echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811   if test -n "$STRIP"; then
1812   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1816 do
1817   IFS=$as_save_IFS
1818   test -z "$as_dir" && as_dir=.
1819   for ac_exec_ext in '' $ac_executable_extensions; do
1820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823     break 2
1824   fi
1825 done
1826 done
1827
1828 fi
1829 fi
1830 STRIP=$ac_cv_prog_STRIP
1831 if test -n "$STRIP"; then
1832   echo "$as_me:$LINENO: result: $STRIP" >&5
1833 echo "${ECHO_T}$STRIP" >&6
1834 else
1835   echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1837 fi
1838
1839 fi
1840 if test -z "$ac_cv_prog_STRIP"; then
1841   ac_ct_STRIP=$STRIP
1842   # Extract the first word of "strip", so it can be a program name with args.
1843 set dummy strip; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1847   echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849   if test -n "$ac_ct_STRIP"; then
1850   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1851 else
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1854 do
1855   IFS=$as_save_IFS
1856   test -z "$as_dir" && as_dir=.
1857   for ac_exec_ext in '' $ac_executable_extensions; do
1858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859     ac_cv_prog_ac_ct_STRIP="strip"
1860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861     break 2
1862   fi
1863 done
1864 done
1865
1866   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1867 fi
1868 fi
1869 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1870 if test -n "$ac_ct_STRIP"; then
1871   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1872 echo "${ECHO_T}$ac_ct_STRIP" >&6
1873 else
1874   echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1876 fi
1877
1878   STRIP=$ac_ct_STRIP
1879 else
1880   STRIP="$ac_cv_prog_STRIP"
1881 fi
1882
1883 fi
1884 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1885
1886 # We need awk for the "check" target.  The system "awk" is bad on
1887 # some platforms.
1888 # Always define AMTAR for backward compatibility.
1889
1890 AMTAR=${AMTAR-"${am_missing_run}tar"}
1891
1892 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1893
1894
1895
1896
1897
1898
1899 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1900 # We must force CC to /not/ be precious variables; otherwise
1901 # the wrong, non-multilib-adjusted value will be used in multilibs.
1902 # As a side effect, we have to subst CFLAGS ourselves.
1903
1904
1905
1906 ac_ext=c
1907 ac_cpp='$CPP $CPPFLAGS'
1908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1911 if test -n "$ac_tool_prefix"; then
1912   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1913 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_CC+set}" = set; then
1917   echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919   if test -n "$CC"; then
1920   ac_cv_prog_CC="$CC" # Let the user override the test.
1921 else
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925   IFS=$as_save_IFS
1926   test -z "$as_dir" && as_dir=.
1927   for ac_exec_ext in '' $ac_executable_extensions; do
1928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931     break 2
1932   fi
1933 done
1934 done
1935
1936 fi
1937 fi
1938 CC=$ac_cv_prog_CC
1939 if test -n "$CC"; then
1940   echo "$as_me:$LINENO: result: $CC" >&5
1941 echo "${ECHO_T}$CC" >&6
1942 else
1943   echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 fi
1946
1947 fi
1948 if test -z "$ac_cv_prog_CC"; then
1949   ac_ct_CC=$CC
1950   # Extract the first word of "gcc", so it can be a program name with args.
1951 set dummy gcc; ac_word=$2
1952 echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1955   echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957   if test -n "$ac_ct_CC"; then
1958   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1959 else
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1962 do
1963   IFS=$as_save_IFS
1964   test -z "$as_dir" && as_dir=.
1965   for ac_exec_ext in '' $ac_executable_extensions; do
1966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967     ac_cv_prog_ac_ct_CC="gcc"
1968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969     break 2
1970   fi
1971 done
1972 done
1973
1974 fi
1975 fi
1976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1977 if test -n "$ac_ct_CC"; then
1978   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1979 echo "${ECHO_T}$ac_ct_CC" >&6
1980 else
1981   echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6
1983 fi
1984
1985   CC=$ac_ct_CC
1986 else
1987   CC="$ac_cv_prog_CC"
1988 fi
1989
1990 if test -z "$CC"; then
1991   if test -n "$ac_tool_prefix"; then
1992   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1993 set dummy ${ac_tool_prefix}cc; ac_word=$2
1994 echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996 if test "${ac_cv_prog_CC+set}" = set; then
1997   echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999   if test -n "$CC"; then
2000   ac_cv_prog_CC="$CC" # Let the user override the test.
2001 else
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005   IFS=$as_save_IFS
2006   test -z "$as_dir" && as_dir=.
2007   for ac_exec_ext in '' $ac_executable_extensions; do
2008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009     ac_cv_prog_CC="${ac_tool_prefix}cc"
2010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011     break 2
2012   fi
2013 done
2014 done
2015
2016 fi
2017 fi
2018 CC=$ac_cv_prog_CC
2019 if test -n "$CC"; then
2020   echo "$as_me:$LINENO: result: $CC" >&5
2021 echo "${ECHO_T}$CC" >&6
2022 else
2023   echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2025 fi
2026
2027 fi
2028 if test -z "$ac_cv_prog_CC"; then
2029   ac_ct_CC=$CC
2030   # Extract the first word of "cc", so it can be a program name with args.
2031 set dummy cc; ac_word=$2
2032 echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2035   echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037   if test -n "$ac_ct_CC"; then
2038   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2039 else
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2042 do
2043   IFS=$as_save_IFS
2044   test -z "$as_dir" && as_dir=.
2045   for ac_exec_ext in '' $ac_executable_extensions; do
2046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047     ac_cv_prog_ac_ct_CC="cc"
2048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049     break 2
2050   fi
2051 done
2052 done
2053
2054 fi
2055 fi
2056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2057 if test -n "$ac_ct_CC"; then
2058   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2059 echo "${ECHO_T}$ac_ct_CC" >&6
2060 else
2061   echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6
2063 fi
2064
2065   CC=$ac_ct_CC
2066 else
2067   CC="$ac_cv_prog_CC"
2068 fi
2069
2070 fi
2071 if test -z "$CC"; then
2072   # Extract the first word of "cc", so it can be a program name with args.
2073 set dummy cc; ac_word=$2
2074 echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076 if test "${ac_cv_prog_CC+set}" = set; then
2077   echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079   if test -n "$CC"; then
2080   ac_cv_prog_CC="$CC" # Let the user override the test.
2081 else
2082   ac_prog_rejected=no
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086   IFS=$as_save_IFS
2087   test -z "$as_dir" && as_dir=.
2088   for ac_exec_ext in '' $ac_executable_extensions; do
2089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2091        ac_prog_rejected=yes
2092        continue
2093      fi
2094     ac_cv_prog_CC="cc"
2095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096     break 2
2097   fi
2098 done
2099 done
2100
2101 if test $ac_prog_rejected = yes; then
2102   # We found a bogon in the path, so make sure we never use it.
2103   set dummy $ac_cv_prog_CC
2104   shift
2105   if test $# != 0; then
2106     # We chose a different compiler from the bogus one.
2107     # However, it has the same basename, so the bogon will be chosen
2108     # first if we set CC to just the basename; use the full file name.
2109     shift
2110     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2111   fi
2112 fi
2113 fi
2114 fi
2115 CC=$ac_cv_prog_CC
2116 if test -n "$CC"; then
2117   echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2119 else
2120   echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2122 fi
2123
2124 fi
2125 if test -z "$CC"; then
2126   if test -n "$ac_tool_prefix"; then
2127   for ac_prog in cl
2128   do
2129     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2131 echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   if test -n "$CC"; then
2137   ac_cv_prog_CC="$CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142   IFS=$as_save_IFS
2143   test -z "$as_dir" && as_dir=.
2144   for ac_exec_ext in '' $ac_executable_extensions; do
2145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148     break 2
2149   fi
2150 done
2151 done
2152
2153 fi
2154 fi
2155 CC=$ac_cv_prog_CC
2156 if test -n "$CC"; then
2157   echo "$as_me:$LINENO: result: $CC" >&5
2158 echo "${ECHO_T}$CC" >&6
2159 else
2160   echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2162 fi
2163
2164     test -n "$CC" && break
2165   done
2166 fi
2167 if test -z "$CC"; then
2168   ac_ct_CC=$CC
2169   for ac_prog in cl
2170 do
2171   # Extract the first word of "$ac_prog", so it can be a program name with args.
2172 set dummy $ac_prog; ac_word=$2
2173 echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2175 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2176   echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178   if test -n "$ac_ct_CC"; then
2179   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2180 else
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2183 do
2184   IFS=$as_save_IFS
2185   test -z "$as_dir" && as_dir=.
2186   for ac_exec_ext in '' $ac_executable_extensions; do
2187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2188     ac_cv_prog_ac_ct_CC="$ac_prog"
2189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190     break 2
2191   fi
2192 done
2193 done
2194
2195 fi
2196 fi
2197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2198 if test -n "$ac_ct_CC"; then
2199   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2200 echo "${ECHO_T}$ac_ct_CC" >&6
2201 else
2202   echo "$as_me:$LINENO: result: no" >&5
2203 echo "${ECHO_T}no" >&6
2204 fi
2205
2206   test -n "$ac_ct_CC" && break
2207 done
2208
2209   CC=$ac_ct_CC
2210 fi
2211
2212 fi
2213
2214
2215 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: no acceptable C compiler found in \$PATH
2218 See \`config.log' for more details." >&2;}
2219    { (exit 1); exit 1; }; }
2220
2221 # Provide some information about the compiler.
2222 echo "$as_me:$LINENO:" \
2223      "checking for C compiler version" >&5
2224 ac_compiler=`set X $ac_compile; echo $2`
2225 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2226   (eval $ac_compiler --version </dev/null >&5) 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); }
2230 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2231   (eval $ac_compiler -v </dev/null >&5) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }
2235 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2236   (eval $ac_compiler -V </dev/null >&5) 2>&5
2237   ac_status=$?
2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239   (exit $ac_status); }
2240
2241 cat >conftest.$ac_ext <<_ACEOF
2242 /* confdefs.h.  */
2243 _ACEOF
2244 cat confdefs.h >>conftest.$ac_ext
2245 cat >>conftest.$ac_ext <<_ACEOF
2246 /* end confdefs.h.  */
2247
2248 int
2249 main ()
2250 {
2251
2252   ;
2253   return 0;
2254 }
2255 _ACEOF
2256 ac_clean_files_save=$ac_clean_files
2257 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2258 # Try to create an executable without -o first, disregard a.out.
2259 # It will help us diagnose broken compilers, and finding out an intuition
2260 # of exeext.
2261 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2262 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2263 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2264 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2265   (eval $ac_link_default) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; then
2269   # Find the output, starting from the most likely.  This scheme is
2270 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2271 # resort.
2272
2273 # Be careful to initialize this variable, since it used to be cached.
2274 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2275 ac_cv_exeext=
2276 # b.out is created by i960 compilers.
2277 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2278 do
2279   test -f "$ac_file" || continue
2280   case $ac_file in
2281     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2282         ;;
2283     conftest.$ac_ext )
2284         # This is the source file.
2285         ;;
2286     [ab].out )
2287         # We found the default executable, but exeext='' is most
2288         # certainly right.
2289         break;;
2290     *.* )
2291         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2292         # FIXME: I believe we export ac_cv_exeext for Libtool,
2293         # but it would be cool to find out if it's true.  Does anybody
2294         # maintain Libtool? --akim.
2295         export ac_cv_exeext
2296         break;;
2297     * )
2298         break;;
2299   esac
2300 done
2301 else
2302   echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2304
2305 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: C compiler cannot create executables
2308 See \`config.log' for more details." >&2;}
2309    { (exit 77); exit 77; }; }
2310 fi
2311
2312 ac_exeext=$ac_cv_exeext
2313 echo "$as_me:$LINENO: result: $ac_file" >&5
2314 echo "${ECHO_T}$ac_file" >&6
2315
2316 # Check the compiler produces executables we can run.  If not, either
2317 # the compiler is broken, or we cross compile.
2318 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2319 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2320 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2321 # If not cross compiling, check that we can run a simple program.
2322 if test "$cross_compiling" != yes; then
2323   if { ac_try='./$ac_file'
2324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325   (eval $ac_try) 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }; }; then
2329     cross_compiling=no
2330   else
2331     if test "$cross_compiling" = maybe; then
2332         cross_compiling=yes
2333     else
2334         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2335 If you meant to cross compile, use \`--host'.
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot run C compiled programs.
2338 If you meant to cross compile, use \`--host'.
2339 See \`config.log' for more details." >&2;}
2340    { (exit 1); exit 1; }; }
2341     fi
2342   fi
2343 fi
2344 echo "$as_me:$LINENO: result: yes" >&5
2345 echo "${ECHO_T}yes" >&6
2346
2347 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2348 ac_clean_files=$ac_clean_files_save
2349 # Check the compiler produces executables we can run.  If not, either
2350 # the compiler is broken, or we cross compile.
2351 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2352 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2353 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2354 echo "${ECHO_T}$cross_compiling" >&6
2355
2356 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2357 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2359   (eval $ac_link) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; then
2363   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2364 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2365 # work properly (i.e., refer to `conftest.exe'), while it won't with
2366 # `rm'.
2367 for ac_file in conftest.exe conftest conftest.*; do
2368   test -f "$ac_file" || continue
2369   case $ac_file in
2370     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2371     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2372           export ac_cv_exeext
2373           break;;
2374     * ) break;;
2375   esac
2376 done
2377 else
2378   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&2;}
2382    { (exit 1); exit 1; }; }
2383 fi
2384
2385 rm -f conftest$ac_cv_exeext
2386 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2387 echo "${ECHO_T}$ac_cv_exeext" >&6
2388
2389 rm -f conftest.$ac_ext
2390 EXEEXT=$ac_cv_exeext
2391 ac_exeext=$EXEEXT
2392 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2393 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2394 if test "${ac_cv_objext+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h.  */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h.  */
2403
2404 int
2405 main ()
2406 {
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.o conftest.obj
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414   (eval $ac_compile) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; then
2418   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2419   case $ac_file in
2420     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2421     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2422        break;;
2423   esac
2424 done
2425 else
2426   echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2428
2429 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2430 See \`config.log' for more details." >&5
2431 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2432 See \`config.log' for more details." >&2;}
2433    { (exit 1); exit 1; }; }
2434 fi
2435
2436 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2437 fi
2438 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2439 echo "${ECHO_T}$ac_cv_objext" >&6
2440 OBJEXT=$ac_cv_objext
2441 ac_objext=$OBJEXT
2442 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2443 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2444 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2445   echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447   cat >conftest.$ac_ext <<_ACEOF
2448 /* confdefs.h.  */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h.  */
2453
2454 int
2455 main ()
2456 {
2457 #ifndef __GNUC__
2458        choke me
2459 #endif
2460
2461   ;
2462   return 0;
2463 }
2464 _ACEOF
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467   (eval $ac_compile) 2>conftest.er1
2468   ac_status=$?
2469   grep -v '^ *+' conftest.er1 >conftest.err
2470   rm -f conftest.er1
2471   cat conftest.err >&5
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); } &&
2474          { ac_try='test -z "$ac_c_werror_flag"
2475                          || test ! -s conftest.err'
2476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477   (eval $ac_try) 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; } &&
2481          { ac_try='test -s conftest.$ac_objext'
2482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483   (eval $ac_try) 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; }; then
2487   ac_compiler_gnu=yes
2488 else
2489   echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 ac_compiler_gnu=no
2493 fi
2494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2496
2497 fi
2498 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2499 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2500 GCC=`test $ac_compiler_gnu = yes && echo yes`
2501 ac_test_CFLAGS=${CFLAGS+set}
2502 ac_save_CFLAGS=$CFLAGS
2503 CFLAGS="-g"
2504 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2505 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2506 if test "${ac_cv_prog_cc_g+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   cat >conftest.$ac_ext <<_ACEOF
2510 /* confdefs.h.  */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h.  */
2515
2516 int
2517 main ()
2518 {
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526   (eval $ac_compile) 2>conftest.er1
2527   ac_status=$?
2528   grep -v '^ *+' conftest.er1 >conftest.err
2529   rm -f conftest.er1
2530   cat conftest.err >&5
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); } &&
2533          { ac_try='test -z "$ac_c_werror_flag"
2534                          || test ! -s conftest.err'
2535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536   (eval $ac_try) 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; } &&
2540          { ac_try='test -s conftest.$ac_objext'
2541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542   (eval $ac_try) 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }; }; then
2546   ac_cv_prog_cc_g=yes
2547 else
2548   echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 ac_cv_prog_cc_g=no
2552 fi
2553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554 fi
2555 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2556 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2557 if test "$ac_test_CFLAGS" = set; then
2558   CFLAGS=$ac_save_CFLAGS
2559 elif test $ac_cv_prog_cc_g = yes; then
2560   if test "$GCC" = yes; then
2561     CFLAGS="-g -O2"
2562   else
2563     CFLAGS="-g"
2564   fi
2565 else
2566   if test "$GCC" = yes; then
2567     CFLAGS="-O2"
2568   else
2569     CFLAGS=
2570   fi
2571 fi
2572 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2573 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2574 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2575   echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577   ac_cv_prog_cc_stdc=no
2578 ac_save_CC=$CC
2579 cat >conftest.$ac_ext <<_ACEOF
2580 /* confdefs.h.  */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h.  */
2585 #include <stdarg.h>
2586 #include <stdio.h>
2587 #include <sys/types.h>
2588 #include <sys/stat.h>
2589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2590 struct buf { int x; };
2591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2592 static char *e (p, i)
2593      char **p;
2594      int i;
2595 {
2596   return p[i];
2597 }
2598 static char *f (char * (*g) (char **, int), char **p, ...)
2599 {
2600   char *s;
2601   va_list v;
2602   va_start (v,p);
2603   s = g (p, va_arg (v,int));
2604   va_end (v);
2605   return s;
2606 }
2607
2608 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2609    function prototypes and stuff, but not '\xHH' hex character constants.
2610    These don't provoke an error unfortunately, instead are silently treated
2611    as 'x'.  The following induces an error, until -std1 is added to get
2612    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2613    array size at least.  It's necessary to write '\x00'==0 to get something
2614    that's true only with -std1.  */
2615 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2616
2617 int test (int i, double x);
2618 struct s1 {int (*f) (int a);};
2619 struct s2 {int (*f) (double a);};
2620 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2621 int argc;
2622 char **argv;
2623 int
2624 main ()
2625 {
2626 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2627   ;
2628   return 0;
2629 }
2630 _ACEOF
2631 # Don't try gcc -ansi; that turns off useful extensions and
2632 # breaks some systems' header files.
2633 # AIX                   -qlanglvl=ansi
2634 # Ultrix and OSF/1      -std1
2635 # HP-UX 10.20 and later -Ae
2636 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2637 # SVR4                  -Xc -D__EXTENSIONS__
2638 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2639 do
2640   CC="$ac_save_CC $ac_arg"
2641   rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643   (eval $ac_compile) 2>conftest.er1
2644   ac_status=$?
2645   grep -v '^ *+' conftest.er1 >conftest.err
2646   rm -f conftest.er1
2647   cat conftest.err >&5
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); } &&
2650          { ac_try='test -z "$ac_c_werror_flag"
2651                          || test ! -s conftest.err'
2652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653   (eval $ac_try) 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); }; } &&
2657          { ac_try='test -s conftest.$ac_objext'
2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659   (eval $ac_try) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }; }; then
2663   ac_cv_prog_cc_stdc=$ac_arg
2664 break
2665 else
2666   echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2668
2669 fi
2670 rm -f conftest.err conftest.$ac_objext
2671 done
2672 rm -f conftest.$ac_ext conftest.$ac_objext
2673 CC=$ac_save_CC
2674
2675 fi
2676
2677 case "x$ac_cv_prog_cc_stdc" in
2678   x|xno)
2679     echo "$as_me:$LINENO: result: none needed" >&5
2680 echo "${ECHO_T}none needed" >&6 ;;
2681   *)
2682     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2683 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2684     CC="$CC $ac_cv_prog_cc_stdc" ;;
2685 esac
2686
2687 # Some people use a C++ compiler to compile C.  Since we use `exit',
2688 # in C++ we need to declare it.  In case someone uses the same compiler
2689 # for both compiling C and C++ we need to have the C++ compiler decide
2690 # the declaration of exit, since it's the most demanding environment.
2691 cat >conftest.$ac_ext <<_ACEOF
2692 #ifndef __cplusplus
2693   choke me
2694 #endif
2695 _ACEOF
2696 rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698   (eval $ac_compile) 2>conftest.er1
2699   ac_status=$?
2700   grep -v '^ *+' conftest.er1 >conftest.err
2701   rm -f conftest.er1
2702   cat conftest.err >&5
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); } &&
2705          { ac_try='test -z "$ac_c_werror_flag"
2706                          || test ! -s conftest.err'
2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; } &&
2712          { ac_try='test -s conftest.$ac_objext'
2713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; }; then
2718   for ac_declaration in \
2719    '' \
2720    'extern "C" void std::exit (int) throw (); using std::exit;' \
2721    'extern "C" void std::exit (int); using std::exit;' \
2722    'extern "C" void exit (int) throw ();' \
2723    'extern "C" void exit (int);' \
2724    'void exit (int);'
2725 do
2726   cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h.  */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h.  */
2732 $ac_declaration
2733 #include <stdlib.h>
2734 int
2735 main ()
2736 {
2737 exit (42);
2738   ;
2739   return 0;
2740 }
2741 _ACEOF
2742 rm -f conftest.$ac_objext
2743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744   (eval $ac_compile) 2>conftest.er1
2745   ac_status=$?
2746   grep -v '^ *+' conftest.er1 >conftest.err
2747   rm -f conftest.er1
2748   cat conftest.err >&5
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); } &&
2751          { ac_try='test -z "$ac_c_werror_flag"
2752                          || test ! -s conftest.err'
2753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754   (eval $ac_try) 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }; } &&
2758          { ac_try='test -s conftest.$ac_objext'
2759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760   (eval $ac_try) 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); }; }; then
2764   :
2765 else
2766   echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2768
2769 continue
2770 fi
2771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2772   cat >conftest.$ac_ext <<_ACEOF
2773 /* confdefs.h.  */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h.  */
2778 $ac_declaration
2779 int
2780 main ()
2781 {
2782 exit (42);
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789   (eval $ac_compile) 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } &&
2796          { ac_try='test -z "$ac_c_werror_flag"
2797                          || test ! -s conftest.err'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; } &&
2803          { ac_try='test -s conftest.$ac_objext'
2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; }; then
2809   break
2810 else
2811   echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814 fi
2815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2816 done
2817 rm -f conftest*
2818 if test -n "$ac_declaration"; then
2819   echo '#ifdef __cplusplus' >>confdefs.h
2820   echo $ac_declaration      >>confdefs.h
2821   echo '#endif'             >>confdefs.h
2822 fi
2823
2824 else
2825   echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2827
2828 fi
2829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2830 ac_ext=c
2831 ac_cpp='$CPP $CPPFLAGS'
2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2835 DEPDIR="${am__leading_dot}deps"
2836
2837           ac_config_commands="$ac_config_commands depfiles"
2838
2839
2840 am_make=${MAKE-make}
2841 cat > confinc << 'END'
2842 am__doit:
2843         @echo done
2844 .PHONY: am__doit
2845 END
2846 # If we don't find an include directive, just comment out the code.
2847 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2848 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2849 am__include="#"
2850 am__quote=
2851 _am_result=none
2852 # First try GNU make style include.
2853 echo "include confinc" > confmf
2854 # We grep out `Entering directory' and `Leaving directory'
2855 # messages which can occur if `w' ends up in MAKEFLAGS.
2856 # In particular we don't look at `^make:' because GNU make might
2857 # be invoked under some other name (usually "gmake"), in which
2858 # case it prints its new name instead of `make'.
2859 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2860    am__include=include
2861    am__quote=
2862    _am_result=GNU
2863 fi
2864 # Now try BSD make style include.
2865 if test "$am__include" = "#"; then
2866    echo '.include "confinc"' > confmf
2867    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2868       am__include=.include
2869       am__quote="\""
2870       _am_result=BSD
2871    fi
2872 fi
2873
2874
2875 echo "$as_me:$LINENO: result: $_am_result" >&5
2876 echo "${ECHO_T}$_am_result" >&6
2877 rm -f confinc confmf
2878
2879 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2880 if test "${enable_dependency_tracking+set}" = set; then
2881   enableval="$enable_dependency_tracking"
2882
2883 fi;
2884 if test "x$enable_dependency_tracking" != xno; then
2885   am_depcomp="$ac_aux_dir/depcomp"
2886   AMDEPBACKSLASH='\'
2887 fi
2888
2889
2890 if test "x$enable_dependency_tracking" != xno; then
2891   AMDEP_TRUE=
2892   AMDEP_FALSE='#'
2893 else
2894   AMDEP_TRUE='#'
2895   AMDEP_FALSE=
2896 fi
2897
2898
2899
2900
2901 depcc="$CC"   am_compiler_list=
2902
2903 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2904 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2905 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2906   echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2909   # We make a subdir and do the tests there.  Otherwise we can end up
2910   # making bogus files that we don't know about and never remove.  For
2911   # instance it was reported that on HP-UX the gcc test will end up
2912   # making a dummy file named `D' -- because `-MD' means `put the output
2913   # in D'.
2914   mkdir conftest.dir
2915   # Copy depcomp to subdir because otherwise we won't find it if we're
2916   # using a relative directory.
2917   cp "$am_depcomp" conftest.dir
2918   cd conftest.dir
2919   # We will build objects and dependencies in a subdirectory because
2920   # it helps to detect inapplicable dependency modes.  For instance
2921   # both Tru64's cc and ICC support -MD to output dependencies as a
2922   # side effect of compilation, but ICC will put the dependencies in
2923   # the current directory while Tru64 will put them in the object
2924   # directory.
2925   mkdir sub
2926
2927   am_cv_CC_dependencies_compiler_type=none
2928   if test "$am_compiler_list" = ""; then
2929      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2930   fi
2931   for depmode in $am_compiler_list; do
2932     # Setup a source with many dependencies, because some compilers
2933     # like to wrap large dependency lists on column 80 (with \), and
2934     # we should not choose a depcomp mode which is confused by this.
2935     #
2936     # We need to recreate these files for each test, as the compiler may
2937     # overwrite some of them when testing with obscure command lines.
2938     # This happens at least with the AIX C compiler.
2939     : > sub/conftest.c
2940     for i in 1 2 3 4 5 6; do
2941       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2942       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2943       # Solaris 8's {/usr,}/bin/sh.
2944       touch sub/conftst$i.h
2945     done
2946     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2947
2948     case $depmode in
2949     nosideeffect)
2950       # after this tag, mechanisms are not by side-effect, so they'll
2951       # only be used when explicitly requested
2952       if test "x$enable_dependency_tracking" = xyes; then
2953         continue
2954       else
2955         break
2956       fi
2957       ;;
2958     none) break ;;
2959     esac
2960     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2961     # mode.  It turns out that the SunPro C++ compiler does not properly
2962     # handle `-M -o', and we need to detect this.
2963     if depmode=$depmode \
2964        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2965        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2966        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2967          >/dev/null 2>conftest.err &&
2968        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2969        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2970        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2971       # icc doesn't choke on unknown options, it will just issue warnings
2972       # or remarks (even with -Werror).  So we grep stderr for any message
2973       # that says an option was ignored or not supported.
2974       # When given -MP, icc 7.0 and 7.1 complain thusly:
2975       #   icc: Command line warning: ignoring option '-M'; no argument required
2976       # The diagnosis changed in icc 8.0:
2977       #   icc: Command line remark: option '-MP' not supported
2978       if (grep 'ignoring option' conftest.err ||
2979           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2980         am_cv_CC_dependencies_compiler_type=$depmode
2981         break
2982       fi
2983     fi
2984   done
2985
2986   cd ..
2987   rm -rf conftest.dir
2988 else
2989   am_cv_CC_dependencies_compiler_type=none
2990 fi
2991
2992 fi
2993 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2994 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2995 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2996
2997
2998
2999 if
3000   test "x$enable_dependency_tracking" != xno \
3001   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3002   am__fastdepCC_TRUE=
3003   am__fastdepCC_FALSE='#'
3004 else
3005   am__fastdepCC_TRUE='#'
3006   am__fastdepCC_FALSE=
3007 fi
3008
3009
3010
3011
3012
3013
3014 # By default we simply use the C compiler to build assembly code.
3015
3016 test "${CCAS+set}" = set || CCAS=$CC
3017 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3018
3019
3020
3021 if test "x$CC" != xcc; then
3022   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3023 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3024 else
3025   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3026 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3027 fi
3028 set dummy $CC; ac_cc=`echo $2 |
3029                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3030 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3031   echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033   cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h.  */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h.  */
3039
3040 int
3041 main ()
3042 {
3043
3044   ;
3045   return 0;
3046 }
3047 _ACEOF
3048 # Make sure it works both with $CC and with simple cc.
3049 # We do the test twice because some compilers refuse to overwrite an
3050 # existing .o file with -o, though they will create one.
3051 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3052 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053   (eval $ac_try) 2>&5
3054   ac_status=$?
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); } &&
3057    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058   (eval $ac_try) 2>&5
3059   ac_status=$?
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); };
3062 then
3063   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3064   if test "x$CC" != xcc; then
3065     # Test first that cc exists at all.
3066     if { ac_try='cc -c conftest.$ac_ext >&5'
3067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068   (eval $ac_try) 2>&5
3069   ac_status=$?
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); }; }; then
3072       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3073       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074   (eval $ac_try) 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); } &&
3078          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079   (eval $ac_try) 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); };
3083       then
3084         # cc works too.
3085         :
3086       else
3087         # cc exists but doesn't like -o.
3088         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3089       fi
3090     fi
3091   fi
3092 else
3093   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3094 fi
3095 rm -f conftest*
3096
3097 fi
3098 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3099   echo "$as_me:$LINENO: result: yes" >&5
3100 echo "${ECHO_T}yes" >&6
3101 else
3102   echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3104
3105 cat >>confdefs.h <<\_ACEOF
3106 #define NO_MINUS_C_MINUS_O 1
3107 _ACEOF
3108
3109 fi
3110
3111 # FIXME: we rely on the cache variable name because
3112 # there is no other way.
3113 set dummy $CC
3114 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3115 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3116    # Losing compiler, so override with the script.
3117    # FIXME: It is wrong to rewrite CC.
3118    # But if we don't then we get into trouble of one sort or another.
3119    # A longer-term fix would be to have automake use am__CC in this case,
3120    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3121    CC="$am_aux_dir/compile $CC"
3122 fi
3123
3124 # Check whether --enable-shared or --disable-shared was given.
3125 if test "${enable_shared+set}" = set; then
3126   enableval="$enable_shared"
3127   p=${PACKAGE-default}
3128 case $enableval in
3129 yes) enable_shared=yes ;;
3130 no) enable_shared=no ;;
3131 *)
3132   enable_shared=no
3133   # Look at the argument we got.  We use all the common list separators.
3134   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3135   for pkg in $enableval; do
3136     if test "X$pkg" = "X$p"; then
3137       enable_shared=yes
3138     fi
3139   done
3140   IFS="$ac_save_ifs"
3141   ;;
3142 esac
3143 else
3144   enable_shared=yes
3145 fi;
3146 # Check whether --enable-static or --disable-static was given.
3147 if test "${enable_static+set}" = set; then
3148   enableval="$enable_static"
3149   p=${PACKAGE-default}
3150 case $enableval in
3151 yes) enable_static=yes ;;
3152 no) enable_static=no ;;
3153 *)
3154   enable_static=no
3155   # Look at the argument we got.  We use all the common list separators.
3156   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3157   for pkg in $enableval; do
3158     if test "X$pkg" = "X$p"; then
3159       enable_static=yes
3160     fi
3161   done
3162   IFS="$ac_save_ifs"
3163   ;;
3164 esac
3165 else
3166   enable_static=yes
3167 fi;
3168 # Check whether --enable-fast-install or --disable-fast-install was given.
3169 if test "${enable_fast_install+set}" = set; then
3170   enableval="$enable_fast_install"
3171   p=${PACKAGE-default}
3172 case $enableval in
3173 yes) enable_fast_install=yes ;;
3174 no) enable_fast_install=no ;;
3175 *)
3176   enable_fast_install=no
3177   # Look at the argument we got.  We use all the common list separators.
3178   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3179   for pkg in $enableval; do
3180     if test "X$pkg" = "X$p"; then
3181       enable_fast_install=yes
3182     fi
3183   done
3184   IFS="$ac_save_ifs"
3185   ;;
3186 esac
3187 else
3188   enable_fast_install=yes
3189 fi;
3190
3191 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3192 if test "${with_gnu_ld+set}" = set; then
3193   withval="$with_gnu_ld"
3194   test "$withval" = no || with_gnu_ld=yes
3195 else
3196   with_gnu_ld=no
3197 fi;
3198 ac_prog=ld
3199 if test "$GCC" = yes; then
3200   # Check if gcc -print-prog-name=ld gives a path.
3201   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3202 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3203   case $host in
3204   *-*-mingw*)
3205     # gcc leaves a trailing carriage return which upsets mingw
3206     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3207   *)
3208     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3209   esac
3210   case $ac_prog in
3211     # Accept absolute paths.
3212     [\\/]* | [A-Za-z]:[\\/]*)
3213       re_direlt='/[^/][^/]*/\.\./'
3214       # Canonicalize the path of ld
3215       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3216       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3217         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3218       done
3219       test -z "$LD" && LD="$ac_prog"
3220       ;;
3221   "")
3222     # If it fails, then pretend we aren't using GCC.
3223     ac_prog=ld
3224     ;;
3225   *)
3226     # If it is relative, then search for the first ld in PATH.
3227     with_gnu_ld=unknown
3228     ;;
3229   esac
3230 elif test "$with_gnu_ld" = yes; then
3231   echo "$as_me:$LINENO: checking for GNU ld" >&5
3232 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3233 else
3234   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3235 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3236 fi
3237 if test "${lt_cv_path_LD+set}" = set; then
3238   echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240   if test -z "$LD"; then
3241   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3242   for ac_dir in $PATH; do
3243     test -z "$ac_dir" && ac_dir=.
3244     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3245       lt_cv_path_LD="$ac_dir/$ac_prog"
3246       # Check to see if the program is GNU ld.  I'd rather use --version,
3247       # but apparently some GNU ld's only accept -v.
3248       # Break only if it was the GNU/non-GNU ld that we prefer.
3249       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3250         test "$with_gnu_ld" != no && break
3251       else
3252         test "$with_gnu_ld" != yes && break
3253       fi
3254     fi
3255   done
3256   IFS="$ac_save_ifs"
3257 else
3258   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3259 fi
3260 fi
3261
3262 LD="$lt_cv_path_LD"
3263 if test -n "$LD"; then
3264   echo "$as_me:$LINENO: result: $LD" >&5
3265 echo "${ECHO_T}$LD" >&6
3266 else
3267   echo "$as_me:$LINENO: result: no" >&5
3268 echo "${ECHO_T}no" >&6
3269 fi
3270 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3271 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3272    { (exit 1); exit 1; }; }
3273 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3274 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3275 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3279 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3280   lt_cv_prog_gnu_ld=yes
3281 else
3282   lt_cv_prog_gnu_ld=no
3283 fi
3284 fi
3285 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3286 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3287 with_gnu_ld=$lt_cv_prog_gnu_ld
3288
3289
3290 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3291 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3292 if test "${lt_cv_ld_reload_flag+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295   lt_cv_ld_reload_flag='-r'
3296 fi
3297 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3298 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3299 reload_flag=$lt_cv_ld_reload_flag
3300 test -n "$reload_flag" && reload_flag=" $reload_flag"
3301
3302 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3303 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3304 if test "${lt_cv_path_NM+set}" = set; then
3305   echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307   if test -n "$NM"; then
3308   # Let the user override the test.
3309   lt_cv_path_NM="$NM"
3310 else
3311   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3312   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3313     test -z "$ac_dir" && ac_dir=.
3314     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3315     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3316       # Check to see if the nm accepts a BSD-compat flag.
3317       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3318       #   nm: unknown option "B" ignored
3319       # Tru64's nm complains that /dev/null is an invalid object file
3320       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3321         lt_cv_path_NM="$tmp_nm -B"
3322         break
3323       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3324         lt_cv_path_NM="$tmp_nm -p"
3325         break
3326       else
3327         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3328         continue # so that we can try to find one that supports BSD flags
3329       fi
3330     fi
3331   done
3332   IFS="$ac_save_ifs"
3333   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3334 fi
3335 fi
3336
3337 NM="$lt_cv_path_NM"
3338 echo "$as_me:$LINENO: result: $NM" >&5
3339 echo "${ECHO_T}$NM" >&6
3340
3341 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3342 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3343 LN_S=$as_ln_s
3344 if test "$LN_S" = "ln -s"; then
3345   echo "$as_me:$LINENO: result: yes" >&5
3346 echo "${ECHO_T}yes" >&6
3347 else
3348   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3349 echo "${ECHO_T}no, using $LN_S" >&6
3350 fi
3351
3352 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3353 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3354 if test "${lt_cv_deplibs_check_method+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357   lt_cv_file_magic_cmd='$MAGIC_CMD'
3358 lt_cv_file_magic_test_file=
3359 lt_cv_deplibs_check_method='unknown'
3360 # Need to set the preceding variable on all platforms that support
3361 # interlibrary dependencies.
3362 # 'none' -- dependencies not supported.
3363 # `unknown' -- same as none, but documents that we really don't know.
3364 # 'pass_all' -- all dependencies passed with no checks.
3365 # 'test_compile' -- check by making test program.
3366 # 'file_magic [regex]' -- check by looking for files in library path
3367 # which responds to the $file_magic_cmd with a given egrep regex.
3368 # If you have `file' or equivalent on your system and you're not sure
3369 # whether `pass_all' will *always* work, you probably want this one.
3370
3371 case $host_os in
3372 aix*)
3373   lt_cv_deplibs_check_method=pass_all
3374   ;;
3375
3376 beos*)
3377   lt_cv_deplibs_check_method=pass_all
3378   ;;
3379
3380 bsdi4*)
3381   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3382   lt_cv_file_magic_cmd='/usr/bin/file -L'
3383   lt_cv_file_magic_test_file=/shlib/libc.so
3384   ;;
3385
3386 cygwin* | mingw* |pw32*)
3387   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3388   lt_cv_file_magic_cmd='$OBJDUMP -f'
3389   ;;
3390
3391 darwin* | rhapsody*)
3392   # this will be overwritten by pass_all, but leave it in just in case
3393   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3394   lt_cv_file_magic_cmd='/usr/bin/file -L'
3395   case "$host_os" in
3396   rhapsody* | darwin1.012)
3397     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3398     ;;
3399   *) # Darwin 1.3 on
3400     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3401     ;;
3402   esac
3403   lt_cv_deplibs_check_method=pass_all
3404   ;;
3405
3406 freebsd* | kfreebsd*-gnu)
3407   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3408     case $host_cpu in
3409     i*86 )
3410       # Not sure whether the presence of OpenBSD here was a mistake.
3411       # Let's accept both of them until this is cleared up.
3412       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3413       lt_cv_file_magic_cmd=/usr/bin/file
3414       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3415       ;;
3416     esac
3417   else
3418     lt_cv_deplibs_check_method=pass_all
3419   fi
3420   ;;
3421
3422 gnu*)
3423   lt_cv_deplibs_check_method=pass_all
3424   ;;
3425
3426 hpux10.20*|hpux11*)
3427   case $host_cpu in
3428   hppa*)
3429     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3430     lt_cv_file_magic_cmd=/usr/bin/file
3431     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3432     ;;
3433   ia64*)
3434     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3435     lt_cv_file_magic_cmd=/usr/bin/file
3436     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3437     ;;
3438   esac
3439   ;;
3440
3441 irix5* | irix6*)
3442   case $host_os in
3443   irix5*)
3444     # this will be overridden with pass_all, but let us keep it just in case
3445     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3446     ;;
3447   *)
3448     case $LD in
3449     *-32|*"-32 ") libmagic=32-bit;;
3450     *-n32|*"-n32 ") libmagic=N32;;
3451     *-64|*"-64 ") libmagic=64-bit;;
3452     *) libmagic=never-match;;
3453     esac
3454     # this will be overridden with pass_all, but let us keep it just in case
3455     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3456     ;;
3457   esac
3458   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3459   lt_cv_deplibs_check_method=pass_all
3460   ;;
3461
3462 # This must be Linux ELF.
3463 linux-gnu*)
3464   lt_cv_deplibs_check_method=pass_all
3465   ;;
3466
3467 netbsd* | knetbsd*-gnu)
3468   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3469     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3470   else
3471     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3472   fi
3473   ;;
3474
3475 newsos6)
3476   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3477   lt_cv_file_magic_cmd=/usr/bin/file
3478   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3479   ;;
3480
3481 osf3* | osf4* | osf5*)
3482   # this will be overridden with pass_all, but let us keep it just in case
3483   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3484   lt_cv_file_magic_test_file=/shlib/libc.so
3485   lt_cv_deplibs_check_method=pass_all
3486   ;;
3487
3488 sco3.2v5*)
3489   lt_cv_deplibs_check_method=pass_all
3490   ;;
3491
3492 solaris*)
3493   lt_cv_deplibs_check_method=pass_all
3494   lt_cv_file_magic_test_file=/lib/libc.so
3495   ;;
3496
3497 sysv5uw[78]* | sysv4*uw2*)
3498   lt_cv_deplibs_check_method=pass_all
3499   ;;
3500
3501 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3502   case $host_vendor in
3503   ncr)
3504     lt_cv_deplibs_check_method=pass_all
3505     ;;
3506   motorola)
3507     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3508     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3509     ;;
3510   esac
3511   ;;
3512 esac
3513
3514 fi
3515 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3516 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3517 file_magic_cmd=$lt_cv_file_magic_cmd
3518 deplibs_check_method=$lt_cv_deplibs_check_method
3519
3520
3521
3522
3523
3524 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3525
3526 # find the maximum length of command line arguments
3527 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3528 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3529 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3530   echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532     i=0
3533   teststring="ABCD"
3534
3535   case $build_os in
3536   msdosdjgpp*)
3537     # On DJGPP, this test can blow up pretty badly due to problems in libc
3538     # (any single argument exceeding 2000 bytes causes a buffer overrun
3539     # during glob expansion).  Even if it were fixed, the result of this
3540     # check would be larger than it should be.
3541     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3542     ;;
3543
3544   cygwin* | mingw*)
3545     # On Win9x/ME, this test blows up -- it succeeds, but takes
3546     # about 5 minutes as the teststring grows exponentially.
3547     # Worse, since 9x/ME are not pre-emptively multitasking,
3548     # you end up with a "frozen" computer, even though with patience
3549     # the test eventually succeeds (with a max line length of 256k).
3550     # Instead, let's just punt: use the minimum linelength reported by
3551     # all of the supported platforms: 8192 (on NT/2K/XP).
3552     lt_cv_sys_max_cmd_len=8192;
3553     ;;
3554
3555   amigaos*)
3556     # On AmigaOS with pdksh, this test takes hours, literally.
3557     # So we just punt and use a minimum line length of 8192.
3558     lt_cv_sys_max_cmd_len=8192;
3559     ;;
3560
3561   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3562     # This has been around since 386BSD, at least.  Likely further.
3563     if test -x /sbin/sysctl; then
3564       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3565     elif test -x /usr/sbin/sysctl; then
3566       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3567     else
3568       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3569     fi
3570     # And add a safety zone
3571     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3572     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3573     ;;
3574   esac
3575
3576 fi
3577
3578 if test -n "$lt_cv_sys_max_cmd_len" ; then
3579   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3580 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3581 else
3582   echo "$as_me:$LINENO: result: none" >&5
3583 echo "${ECHO_T}none" >&6
3584 fi
3585
3586
3587 # Only perform the check for file, if the check method requires it
3588 case $deplibs_check_method in
3589 file_magic*)
3590   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3591     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3592 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3593 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596   case $MAGIC_CMD in
3597   /*)
3598   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3599   ;;
3600   ?:/*)
3601   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3602   ;;
3603   *)
3604   ac_save_MAGIC_CMD="$MAGIC_CMD"
3605   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3606   ac_dummy="/usr/bin:$PATH"
3607   for ac_dir in $ac_dummy; do
3608     test -z "$ac_dir" && ac_dir=.
3609     if test -f $ac_dir/${ac_tool_prefix}file; then
3610       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3611       if test -n "$file_magic_test_file"; then
3612         case $deplibs_check_method in
3613         "file_magic "*)
3614           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3615           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3616           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3617             egrep "$file_magic_regex" > /dev/null; then
3618             :
3619           else
3620             cat <<EOF 1>&2
3621
3622 *** Warning: the command libtool uses to detect shared libraries,
3623 *** $file_magic_cmd, produces output that libtool cannot recognize.
3624 *** The result is that libtool may fail to recognize shared libraries
3625 *** as such.  This will affect the creation of libtool libraries that
3626 *** depend on shared libraries, but programs linked with such libtool
3627 *** libraries will work regardless of this problem.  Nevertheless, you
3628 *** may want to report the problem to your system manager and/or to
3629 *** bug-libtool@gnu.org
3630
3631 EOF
3632           fi ;;
3633         esac
3634       fi
3635       break
3636     fi
3637   done
3638   IFS="$ac_save_ifs"
3639   MAGIC_CMD="$ac_save_MAGIC_CMD"
3640   ;;
3641 esac
3642 fi
3643
3644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3645 if test -n "$MAGIC_CMD"; then
3646   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3647 echo "${ECHO_T}$MAGIC_CMD" >&6
3648 else
3649   echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6
3651 fi
3652
3653 if test -z "$lt_cv_path_MAGIC_CMD"; then
3654   if test -n "$ac_tool_prefix"; then
3655     echo "$as_me:$LINENO: checking for file" >&5
3656 echo $ECHO_N "checking for file... $ECHO_C" >&6
3657 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660   case $MAGIC_CMD in
3661   /*)
3662   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3663   ;;
3664   ?:/*)
3665   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3666   ;;
3667   *)
3668   ac_save_MAGIC_CMD="$MAGIC_CMD"
3669   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3670   ac_dummy="/usr/bin:$PATH"
3671   for ac_dir in $ac_dummy; do
3672     test -z "$ac_dir" && ac_dir=.
3673     if test -f $ac_dir/file; then
3674       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3675       if test -n "$file_magic_test_file"; then
3676         case $deplibs_check_method in
3677         "file_magic "*)
3678           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3679           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3680           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3681             egrep "$file_magic_regex" > /dev/null; then
3682             :
3683           else
3684             cat <<EOF 1>&2
3685
3686 *** Warning: the command libtool uses to detect shared libraries,
3687 *** $file_magic_cmd, produces output that libtool cannot recognize.
3688 *** The result is that libtool may fail to recognize shared libraries
3689 *** as such.  This will affect the creation of libtool libraries that
3690 *** depend on shared libraries, but programs linked with such libtool
3691 *** libraries will work regardless of this problem.  Nevertheless, you
3692 *** may want to report the problem to your system manager and/or to
3693 *** bug-libtool@gnu.org
3694
3695 EOF
3696           fi ;;
3697         esac
3698       fi
3699       break
3700     fi
3701   done
3702   IFS="$ac_save_ifs"
3703   MAGIC_CMD="$ac_save_MAGIC_CMD"
3704   ;;
3705 esac
3706 fi
3707
3708 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3709 if test -n "$MAGIC_CMD"; then
3710   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3711 echo "${ECHO_T}$MAGIC_CMD" >&6
3712 else
3713   echo "$as_me:$LINENO: result: no" >&5
3714 echo "${ECHO_T}no" >&6
3715 fi
3716
3717   else
3718     MAGIC_CMD=:
3719   fi
3720 fi
3721
3722   fi
3723   ;;
3724 esac
3725
3726 if test -n "$ac_tool_prefix"; then
3727   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3729 echo "$as_me:$LINENO: checking for $ac_word" >&5
3730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3731 if test "${ac_cv_prog_RANLIB+set}" = set; then
3732   echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734   if test -n "$RANLIB"; then
3735   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740   IFS=$as_save_IFS
3741   test -z "$as_dir" && as_dir=.
3742   for ac_exec_ext in '' $ac_executable_extensions; do
3743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746     break 2
3747   fi
3748 done
3749 done
3750
3751 fi
3752 fi
3753 RANLIB=$ac_cv_prog_RANLIB
3754 if test -n "$RANLIB"; then
3755   echo "$as_me:$LINENO: result: $RANLIB" >&5
3756 echo "${ECHO_T}$RANLIB" >&6
3757 else
3758   echo "$as_me:$LINENO: result: no" >&5
3759 echo "${ECHO_T}no" >&6
3760 fi
3761
3762 fi
3763 if test -z "$ac_cv_prog_RANLIB"; then
3764   ac_ct_RANLIB=$RANLIB
3765   # Extract the first word of "ranlib", so it can be a program name with args.
3766 set dummy ranlib; ac_word=$2
3767 echo "$as_me:$LINENO: checking for $ac_word" >&5
3768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3769 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3770   echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772   if test -n "$ac_ct_RANLIB"; then
3773   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3774 else
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH
3777 do
3778   IFS=$as_save_IFS
3779   test -z "$as_dir" && as_dir=.
3780   for ac_exec_ext in '' $ac_executable_extensions; do
3781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3782     ac_cv_prog_ac_ct_RANLIB="ranlib"
3783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3784     break 2
3785   fi
3786 done
3787 done
3788
3789   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3790 fi
3791 fi
3792 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3793 if test -n "$ac_ct_RANLIB"; then
3794   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3795 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3796 else
3797   echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3799 fi
3800
3801   RANLIB=$ac_ct_RANLIB
3802 else
3803   RANLIB="$ac_cv_prog_RANLIB"
3804 fi
3805
3806 if test -n "$ac_tool_prefix"; then
3807   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}strip; ac_word=$2
3809 echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811 if test "${ac_cv_prog_STRIP+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814   if test -n "$STRIP"; then
3815   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3819 do
3820   IFS=$as_save_IFS
3821   test -z "$as_dir" && as_dir=.
3822   for ac_exec_ext in '' $ac_executable_extensions; do
3823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826     break 2
3827   fi
3828 done
3829 done
3830
3831 fi
3832 fi
3833 STRIP=$ac_cv_prog_STRIP
3834 if test -n "$STRIP"; then
3835   echo "$as_me:$LINENO: result: $STRIP" >&5
3836 echo "${ECHO_T}$STRIP" >&6
3837 else
3838   echo "$as_me:$LINENO: result: no" >&5
3839 echo "${ECHO_T}no" >&6
3840 fi
3841
3842 fi
3843 if test -z "$ac_cv_prog_STRIP"; then
3844   ac_ct_STRIP=$STRIP
3845   # Extract the first word of "strip", so it can be a program name with args.
3846 set dummy strip; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3850   echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852   if test -n "$ac_ct_STRIP"; then
3853   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858   IFS=$as_save_IFS
3859   test -z "$as_dir" && as_dir=.
3860   for ac_exec_ext in '' $ac_executable_extensions; do
3861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862     ac_cv_prog_ac_ct_STRIP="strip"
3863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864     break 2
3865   fi
3866 done
3867 done
3868
3869   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3870 fi
3871 fi
3872 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3873 if test -n "$ac_ct_STRIP"; then
3874   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3875 echo "${ECHO_T}$ac_ct_STRIP" >&6
3876 else
3877   echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3879 fi
3880
3881   STRIP=$ac_ct_STRIP
3882 else
3883   STRIP="$ac_cv_prog_STRIP"
3884 fi
3885
3886
3887 # Check for any special flags to pass to ltconfig.
3888 libtool_flags="--cache-file=$cache_file"
3889 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3890 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3891 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3892 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3893 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3894
3895
3896 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3897 if test "${enable_libtool_lock+set}" = set; then
3898   enableval="$enable_libtool_lock"
3899
3900 fi;
3901 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3902 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3903
3904
3905 # Check whether --with-pic or --without-pic was given.
3906 if test "${with_pic+set}" = set; then
3907   withval="$with_pic"
3908   pic_mode="$withval"
3909 else
3910   pic_mode=default
3911 fi;
3912 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3913 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3914
3915 # Some flags need to be propagated to the compiler or linker for good
3916 # libtool support.
3917 case $host in
3918 *-*-irix6*)
3919   # Find out which ABI we are using.
3920   echo '#line 3920 "configure"' > conftest.$ac_ext
3921   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3922   (eval $ac_compile) 2>&5
3923   ac_status=$?
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); }; then
3926    if test "$lt_cv_prog_gnu_ld" = yes; then
3927     case `/usr/bin/file conftest.$ac_objext` in
3928     *32-bit*)
3929       LD="${LD-ld} -melf32bsmip"
3930       ;;
3931     *N32*)
3932       LD="${LD-ld} -melf32bmipn32"
3933       ;;
3934     *64-bit*)
3935       LD="${LD-ld} -melf64bmip"
3936       ;;
3937     esac
3938    else
3939     case `/usr/bin/file conftest.$ac_objext` in
3940     *32-bit*)
3941       LD="${LD-ld} -32"
3942       ;;
3943     *N32*)
3944       LD="${LD-ld} -n32"
3945       ;;
3946     *64-bit*)
3947       LD="${LD-ld} -64"
3948       ;;
3949     esac
3950    fi
3951   fi
3952   rm -rf conftest*
3953   ;;
3954
3955 ia64-*-hpux*)
3956   # Find out which ABI we are using.
3957   echo 'int i;' > conftest.$ac_ext
3958   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3959   (eval $ac_compile) 2>&5
3960   ac_status=$?
3961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962   (exit $ac_status); }; then
3963     case "`/usr/bin/file conftest.o`" in
3964     *ELF-32*)
3965       HPUX_IA64_MODE="32"
3966       ;;
3967     *ELF-64*)
3968       HPUX_IA64_MODE="64"
3969       ;;
3970     esac
3971   fi
3972   rm -rf conftest*
3973   ;;
3974
3975 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3976   # Find out which ABI we are using.
3977   echo 'int i;' > conftest.$ac_ext
3978   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3979   (eval $ac_compile) 2>&5
3980   ac_status=$?
3981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982   (exit $ac_status); }; then
3983     case "`/usr/bin/file conftest.o`" in
3984     *32-bit*)
3985       case $host in
3986         x86_64-*linux*)
3987           LD="${LD-ld} -m elf_i386"
3988           ;;
3989         ppc64-*linux*|powerpc64-*linux*)
3990           LD="${LD-ld} -m elf32ppclinux"
3991           ;;
3992         s390x-*linux*)
3993           LD="${LD-ld} -m elf_s390"
3994           ;;
3995         sparc64-*linux*)
3996           LD="${LD-ld} -m elf32_sparc"
3997           ;;
3998       esac
3999       ;;
4000     *64-bit*)
4001       case $host in
4002         x86_64-*linux*)
4003           LD="${LD-ld} -m elf_x86_64"
4004           ;;
4005         ppc*-*linux*|powerpc*-*linux*)
4006           LD="${LD-ld} -m elf64ppc"
4007           ;;
4008         s390*-*linux*)
4009           LD="${LD-ld} -m elf64_s390"
4010           ;;
4011         sparc*-*linux*)
4012           LD="${LD-ld} -m elf64_sparc"
4013           ;;
4014       esac
4015       ;;
4016     esac
4017   fi
4018   rm -rf conftest*
4019   ;;
4020
4021 *-*-sco3.2v5*)
4022   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4023   SAVE_CFLAGS="$CFLAGS"
4024   CFLAGS="$CFLAGS -belf"
4025   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4026 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4027 if test "${lt_cv_cc_needs_belf+set}" = set; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030
4031
4032      ac_ext=c
4033 ac_cpp='$CPP $CPPFLAGS'
4034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037
4038      cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h.  */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h.  */
4044
4045 int
4046 main ()
4047 {
4048
4049   ;
4050   return 0;
4051 }
4052 _ACEOF
4053 rm -f conftest.$ac_objext conftest$ac_exeext
4054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4055   (eval $ac_link) 2>conftest.er1
4056   ac_status=$?
4057   grep -v '^ *+' conftest.er1 >conftest.err
4058   rm -f conftest.er1
4059   cat conftest.err >&5
4060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); } &&
4062          { ac_try='test -z "$ac_c_werror_flag"
4063                          || test ! -s conftest.err'
4064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065   (eval $ac_try) 2>&5
4066   ac_status=$?
4067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068   (exit $ac_status); }; } &&
4069          { ac_try='test -s conftest$ac_exeext'
4070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071   (eval $ac_try) 2>&5
4072   ac_status=$?
4073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074   (exit $ac_status); }; }; then
4075   lt_cv_cc_needs_belf=yes
4076 else
4077   echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4079
4080 lt_cv_cc_needs_belf=no
4081 fi
4082 rm -f conftest.err conftest.$ac_objext \
4083       conftest$ac_exeext conftest.$ac_ext
4084      ac_ext=c
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089
4090 fi
4091 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4092 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4093   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4094     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4095     CFLAGS="$SAVE_CFLAGS"
4096   fi
4097   ;;
4098
4099
4100 esac
4101
4102
4103 # Save cache, so that ltconfig can load it
4104 cat >confcache <<\_ACEOF
4105 # This file is a shell script that caches the results of configure
4106 # tests run on this system so they can be shared between configure
4107 # scripts and configure runs, see configure's option --config-cache.
4108 # It is not useful on other systems.  If it contains results you don't
4109 # want to keep, you may remove or edit it.
4110 #
4111 # config.status only pays attention to the cache file if you give it
4112 # the --recheck option to rerun configure.
4113 #
4114 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4115 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4116 # following values.
4117
4118 _ACEOF
4119
4120 # The following way of writing the cache mishandles newlines in values,
4121 # but we know of no workaround that is simple, portable, and efficient.
4122 # So, don't put newlines in cache variables' values.
4123 # Ultrix sh set writes to stderr and can't be redirected directly,
4124 # and sets the high bit in the cache file unless we assign to the vars.
4125 {
4126   (set) 2>&1 |
4127     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4128     *ac_space=\ *)
4129       # `set' does not quote correctly, so add quotes (double-quote
4130       # substitution turns \\\\ into \\, and sed turns \\ into \).
4131       sed -n \
4132         "s/'/'\\\\''/g;
4133           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4134       ;;
4135     *)
4136       # `set' quotes correctly as required by POSIX, so do not add quotes.
4137       sed -n \
4138         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4139       ;;
4140     esac;
4141 } |
4142   sed '
4143      t clear
4144      : clear
4145      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4146      t end
4147      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4148      : end' >>confcache
4149 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4150   if test -w $cache_file; then
4151     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4152     cat confcache >$cache_file
4153   else
4154     echo "not updating unwritable cache $cache_file"
4155   fi
4156 fi
4157 rm -f confcache
4158
4159 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4160 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4161 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4162 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4163 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4164 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4165 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4166 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4167 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4168 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4169 echo "$as_me: error: libtool configure failed" >&2;}
4170    { (exit 1); exit 1; }; }
4171
4172 # Reload cache, that may have been modified by ltconfig
4173 if test -r "$cache_file"; then
4174   # Some versions of bash will fail to source /dev/null (special
4175   # files actually), so we avoid doing that.
4176   if test -f "$cache_file"; then
4177     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4178 echo "$as_me: loading cache $cache_file" >&6;}
4179     case $cache_file in
4180       [\\/]* | ?:[\\/]* ) . $cache_file;;
4181       *)                      . ./$cache_file;;
4182     esac
4183   fi
4184 else
4185   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4186 echo "$as_me: creating cache $cache_file" >&6;}
4187   >$cache_file
4188 fi
4189
4190
4191 # This can be used to rebuild libtool when needed
4192 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4193
4194 # Always use our own libtool.
4195 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4196
4197 # Redirect the config.log output again, so that the ltconfig log is not
4198 # clobbered by the next message.
4199 exec 5>>./config.log
4200
4201
4202
4203
4204
4205
4206
4207 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4208 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4209     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4210 if test "${enable_maintainer_mode+set}" = set; then
4211   enableval="$enable_maintainer_mode"
4212   USE_MAINTAINER_MODE=$enableval
4213 else
4214   USE_MAINTAINER_MODE=no
4215 fi;
4216   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4217 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4218
4219
4220 if test $USE_MAINTAINER_MODE = yes; then
4221   MAINTAINER_MODE_TRUE=
4222   MAINTAINER_MODE_FALSE='#'
4223 else
4224   MAINTAINER_MODE_TRUE='#'
4225   MAINTAINER_MODE_FALSE=
4226 fi
4227
4228   MAINT=$MAINTAINER_MODE_TRUE
4229
4230
4231
4232 ac_ext=c
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4238 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4239 # On Suns, sometimes $CPP names a directory.
4240 if test -n "$CPP" && test -d "$CPP"; then
4241   CPP=
4242 fi
4243 if test -z "$CPP"; then
4244   if test "${ac_cv_prog_CPP+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247       # Double quotes because CPP needs to be expanded
4248     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4249     do
4250       ac_preproc_ok=false
4251 for ac_c_preproc_warn_flag in '' yes
4252 do
4253   # Use a header file that comes with gcc, so configuring glibc
4254   # with a fresh cross-compiler works.
4255   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4256   # <limits.h> exists even on freestanding compilers.
4257   # On the NeXT, cc -E runs the code through the compiler's parser,
4258   # not just through cpp. "Syntax error" is here to catch this case.
4259   cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h.  */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h.  */
4265 #ifdef __STDC__
4266 # include <limits.h>
4267 #else
4268 # include <assert.h>
4269 #endif
4270                      Syntax error
4271 _ACEOF
4272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4273   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4274   ac_status=$?
4275   grep -v '^ *+' conftest.er1 >conftest.err
4276   rm -f conftest.er1
4277   cat conftest.err >&5
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } >/dev/null; then
4280   if test -s conftest.err; then
4281     ac_cpp_err=$ac_c_preproc_warn_flag
4282     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4283   else
4284     ac_cpp_err=
4285   fi
4286 else
4287   ac_cpp_err=yes
4288 fi
4289 if test -z "$ac_cpp_err"; then
4290   :
4291 else
4292   echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295   # Broken: fails on valid input.
4296 continue
4297 fi
4298 rm -f conftest.err conftest.$ac_ext
4299
4300   # OK, works on sane cases.  Now check whether non-existent headers
4301   # can be detected and how.
4302   cat >conftest.$ac_ext <<_ACEOF
4303 /* confdefs.h.  */
4304 _ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h.  */
4308 #include <ac_nonexistent.h>
4309 _ACEOF
4310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4312   ac_status=$?
4313   grep -v '^ *+' conftest.er1 >conftest.err
4314   rm -f conftest.er1
4315   cat conftest.err >&5
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); } >/dev/null; then
4318   if test -s conftest.err; then
4319     ac_cpp_err=$ac_c_preproc_warn_flag
4320     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4321   else
4322     ac_cpp_err=
4323   fi
4324 else
4325   ac_cpp_err=yes
4326 fi
4327 if test -z "$ac_cpp_err"; then
4328   # Broken: success on invalid input.
4329 continue
4330 else
4331   echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4333
4334   # Passes both tests.
4335 ac_preproc_ok=:
4336 break
4337 fi
4338 rm -f conftest.err conftest.$ac_ext
4339
4340 done
4341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4342 rm -f conftest.err conftest.$ac_ext
4343 if $ac_preproc_ok; then
4344   break
4345 fi
4346
4347     done
4348     ac_cv_prog_CPP=$CPP
4349
4350 fi
4351   CPP=$ac_cv_prog_CPP
4352 else
4353   ac_cv_prog_CPP=$CPP
4354 fi
4355 echo "$as_me:$LINENO: result: $CPP" >&5
4356 echo "${ECHO_T}$CPP" >&6
4357 ac_preproc_ok=false
4358 for ac_c_preproc_warn_flag in '' yes
4359 do
4360   # Use a header file that comes with gcc, so configuring glibc
4361   # with a fresh cross-compiler works.
4362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4363   # <limits.h> exists even on freestanding compilers.
4364   # On the NeXT, cc -E runs the code through the compiler's parser,
4365   # not just through cpp. "Syntax error" is here to catch this case.
4366   cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h.  */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h.  */
4372 #ifdef __STDC__
4373 # include <limits.h>
4374 #else
4375 # include <assert.h>
4376 #endif
4377                      Syntax error
4378 _ACEOF
4379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4381   ac_status=$?
4382   grep -v '^ *+' conftest.er1 >conftest.err
4383   rm -f conftest.er1
4384   cat conftest.err >&5
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } >/dev/null; then
4387   if test -s conftest.err; then
4388     ac_cpp_err=$ac_c_preproc_warn_flag
4389     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4390   else
4391     ac_cpp_err=
4392   fi
4393 else
4394   ac_cpp_err=yes
4395 fi
4396 if test -z "$ac_cpp_err"; then
4397   :
4398 else
4399   echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402   # Broken: fails on valid input.
4403 continue
4404 fi
4405 rm -f conftest.err conftest.$ac_ext
4406
4407   # OK, works on sane cases.  Now check whether non-existent headers
4408   # can be detected and how.
4409   cat >conftest.$ac_ext <<_ACEOF
4410 /* confdefs.h.  */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h.  */
4415 #include <ac_nonexistent.h>
4416 _ACEOF
4417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4418   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4419   ac_status=$?
4420   grep -v '^ *+' conftest.er1 >conftest.err
4421   rm -f conftest.er1
4422   cat conftest.err >&5
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); } >/dev/null; then
4425   if test -s conftest.err; then
4426     ac_cpp_err=$ac_c_preproc_warn_flag
4427     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4428   else
4429     ac_cpp_err=
4430   fi
4431 else
4432   ac_cpp_err=yes
4433 fi
4434 if test -z "$ac_cpp_err"; then
4435   # Broken: success on invalid input.
4436 continue
4437 else
4438   echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441   # Passes both tests.
4442 ac_preproc_ok=:
4443 break
4444 fi
4445 rm -f conftest.err conftest.$ac_ext
4446
4447 done
4448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4449 rm -f conftest.err conftest.$ac_ext
4450 if $ac_preproc_ok; then
4451   :
4452 else
4453   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4454 See \`config.log' for more details." >&5
4455 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4456 See \`config.log' for more details." >&2;}
4457    { (exit 1); exit 1; }; }
4458 fi
4459
4460 ac_ext=c
4461 ac_cpp='$CPP $CPPFLAGS'
4462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465
4466
4467 echo "$as_me:$LINENO: checking for egrep" >&5
4468 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4469 if test "${ac_cv_prog_egrep+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4473     then ac_cv_prog_egrep='grep -E'
4474     else ac_cv_prog_egrep='egrep'
4475     fi
4476 fi
4477 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4478 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4479  EGREP=$ac_cv_prog_egrep
4480
4481
4482 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4483 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4484 if test "${ac_cv_header_stdc+set}" = set; then
4485   echo $ECHO_N "(cached) $ECHO_C" >&6
4486 else
4487   cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h.  */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h.  */
4493 #include <stdlib.h>
4494 #include <stdarg.h>
4495 #include <string.h>
4496 #include <float.h>
4497
4498 int
4499 main ()
4500 {
4501
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 rm -f conftest.$ac_objext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508   (eval $ac_compile) 2>conftest.er1
4509   ac_status=$?
4510   grep -v '^ *+' conftest.er1 >conftest.err
4511   rm -f conftest.er1
4512   cat conftest.err >&5
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); } &&
4515          { ac_try='test -z "$ac_c_werror_flag"
4516                          || test ! -s conftest.err'
4517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518   (eval $ac_try) 2>&5
4519   ac_status=$?
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); }; } &&
4522          { ac_try='test -s conftest.$ac_objext'
4523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524   (eval $ac_try) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; }; then
4528   ac_cv_header_stdc=yes
4529 else
4530   echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4532
4533 ac_cv_header_stdc=no
4534 fi
4535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536
4537 if test $ac_cv_header_stdc = yes; then
4538   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4539   cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h.  */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h.  */
4545 #include <string.h>
4546
4547 _ACEOF
4548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4549   $EGREP "memchr" >/dev/null 2>&1; then
4550   :
4551 else
4552   ac_cv_header_stdc=no
4553 fi
4554 rm -f conftest*
4555
4556 fi
4557
4558 if test $ac_cv_header_stdc = yes; then
4559   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4560   cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h.  */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h.  */
4566 #include <stdlib.h>
4567
4568 _ACEOF
4569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4570   $EGREP "free" >/dev/null 2>&1; then
4571   :
4572 else
4573   ac_cv_header_stdc=no
4574 fi
4575 rm -f conftest*
4576
4577 fi
4578
4579 if test $ac_cv_header_stdc = yes; then
4580   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4581   if test "$cross_compiling" = yes; then
4582   :
4583 else
4584   cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h.  */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h.  */
4590 #include <ctype.h>
4591 #if ((' ' & 0x0FF) == 0x020)
4592 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4593 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4594 #else
4595 # define ISLOWER(c) \
4596                    (('a' <= (c) && (c) <= 'i') \
4597                      || ('j' <= (c) && (c) <= 'r') \
4598                      || ('s' <= (c) && (c) <= 'z'))
4599 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4600 #endif
4601
4602 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4603 int
4604 main ()
4605 {
4606   int i;
4607   for (i = 0; i < 256; i++)
4608     if (XOR (islower (i), ISLOWER (i))
4609         || toupper (i) != TOUPPER (i))
4610       exit(2);
4611   exit (0);
4612 }
4613 _ACEOF
4614 rm -f conftest$ac_exeext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4616   (eval $ac_link) 2>&5
4617   ac_status=$?
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621   (eval $ac_try) 2>&5
4622   ac_status=$?
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); }; }; then
4625   :
4626 else
4627   echo "$as_me: program exited with status $ac_status" >&5
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4630
4631 ( exit $ac_status )
4632 ac_cv_header_stdc=no
4633 fi
4634 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4635 fi
4636 fi
4637 fi
4638 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4639 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4640 if test $ac_cv_header_stdc = yes; then
4641
4642 cat >>confdefs.h <<\_ACEOF
4643 #define STDC_HEADERS 1
4644 _ACEOF
4645
4646 fi
4647
4648 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4659                   inttypes.h stdint.h unistd.h
4660 do
4661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4662 echo "$as_me:$LINENO: checking for $ac_header" >&5
4663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4665   echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667   cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h.  */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h.  */
4673 $ac_includes_default
4674
4675 #include <$ac_header>
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679   (eval $ac_compile) 2>conftest.er1
4680   ac_status=$?
4681   grep -v '^ *+' conftest.er1 >conftest.err
4682   rm -f conftest.er1
4683   cat conftest.err >&5
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); } &&
4686          { ac_try='test -z "$ac_c_werror_flag"
4687                          || test ! -s conftest.err'
4688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689   (eval $ac_try) 2>&5
4690   ac_status=$?
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); }; } &&
4693          { ac_try='test -s conftest.$ac_objext'
4694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695   (eval $ac_try) 2>&5
4696   ac_status=$?
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); }; }; then
4699   eval "$as_ac_Header=yes"
4700 else
4701   echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704 eval "$as_ac_Header=no"
4705 fi
4706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4707 fi
4708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4711   cat >>confdefs.h <<_ACEOF
4712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4713 _ACEOF
4714
4715 fi
4716
4717 done
4718
4719
4720
4721 for ac_header in sys/mman.h
4722 do
4723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4725   echo "$as_me:$LINENO: checking for $ac_header" >&5
4726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4728   echo $ECHO_N "(cached) $ECHO_C" >&6
4729 fi
4730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4732 else
4733   # Is the header compilable?
4734 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4736 cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h.  */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h.  */
4742 $ac_includes_default
4743 #include <$ac_header>
4744 _ACEOF
4745 rm -f conftest.$ac_objext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747   (eval $ac_compile) 2>conftest.er1
4748   ac_status=$?
4749   grep -v '^ *+' conftest.er1 >conftest.err
4750   rm -f conftest.er1
4751   cat conftest.err >&5
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); } &&
4754          { ac_try='test -z "$ac_c_werror_flag"
4755                          || test ! -s conftest.err'
4756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757   (eval $ac_try) 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); }; } &&
4761          { ac_try='test -s conftest.$ac_objext'
4762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763   (eval $ac_try) 2>&5
4764   ac_status=$?
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); }; }; then
4767   ac_header_compiler=yes
4768 else
4769   echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 ac_header_compiler=no
4773 fi
4774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4776 echo "${ECHO_T}$ac_header_compiler" >&6
4777
4778 # Is the header present?
4779 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4781 cat >conftest.$ac_ext <<_ACEOF
4782 /* confdefs.h.  */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h.  */
4787 #include <$ac_header>
4788 _ACEOF
4789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4790   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4791   ac_status=$?
4792   grep -v '^ *+' conftest.er1 >conftest.err
4793   rm -f conftest.er1
4794   cat conftest.err >&5
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); } >/dev/null; then
4797   if test -s conftest.err; then
4798     ac_cpp_err=$ac_c_preproc_warn_flag
4799     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4800   else
4801     ac_cpp_err=
4802   fi
4803 else
4804   ac_cpp_err=yes
4805 fi
4806 if test -z "$ac_cpp_err"; then
4807   ac_header_preproc=yes
4808 else
4809   echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4811
4812   ac_header_preproc=no
4813 fi
4814 rm -f conftest.err conftest.$ac_ext
4815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4816 echo "${ECHO_T}$ac_header_preproc" >&6
4817
4818 # So?  What about this header?
4819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4820   yes:no: )
4821     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4825     ac_header_preproc=yes
4826     ;;
4827   no:yes:* )
4828     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4830     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4831 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4832     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4834     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4835 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4838     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4840     (
4841       cat <<\_ASBOX
4842 ## ------------------------------------------- ##
4843 ## Report this to http://gcc.gnu.org/bugs.html ##
4844 ## ------------------------------------------- ##
4845 _ASBOX
4846     ) |
4847       sed "s/^/$as_me: WARNING:     /" >&2
4848     ;;
4849 esac
4850 echo "$as_me:$LINENO: checking for $ac_header" >&5
4851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855   eval "$as_ac_Header=\$ac_header_preproc"
4856 fi
4857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4859
4860 fi
4861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4862   cat >>confdefs.h <<_ACEOF
4863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4864 _ACEOF
4865
4866 fi
4867
4868 done
4869
4870
4871 for ac_func in mmap
4872 do
4873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4874 echo "$as_me:$LINENO: checking for $ac_func" >&5
4875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4876 if eval "test \"\${$as_ac_var+set}\" = set"; then
4877   echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4879   cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h.  */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h.  */
4885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4887 #define $ac_func innocuous_$ac_func
4888
4889 /* System header to define __stub macros and hopefully few prototypes,
4890     which can conflict with char $ac_func (); below.
4891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4892     <limits.h> exists even on freestanding compilers.  */
4893
4894 #ifdef __STDC__
4895 # include <limits.h>
4896 #else
4897 # include <assert.h>
4898 #endif
4899
4900 #undef $ac_func
4901
4902 /* Override any gcc2 internal prototype to avoid an error.  */
4903 #ifdef __cplusplus
4904 extern "C"
4905 {
4906 #endif
4907 /* We use char because int might match the return type of a gcc2
4908    builtin and then its argument prototype would still apply.  */
4909 char $ac_func ();
4910 /* The GNU C library defines this for functions which it implements
4911     to always fail with ENOSYS.  Some functions are actually named
4912     something starting with __ and the normal name is an alias.  */
4913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4914 choke me
4915 #else
4916 char (*f) () = $ac_func;
4917 #endif
4918 #ifdef __cplusplus
4919 }
4920 #endif
4921
4922 int
4923 main ()
4924 {
4925 return f != $ac_func;
4926   ;
4927   return 0;
4928 }
4929 _ACEOF
4930 rm -f conftest.$ac_objext conftest$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932   (eval $ac_link) 2>conftest.er1
4933   ac_status=$?
4934   grep -v '^ *+' conftest.er1 >conftest.err
4935   rm -f conftest.er1
4936   cat conftest.err >&5
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); } &&
4939          { ac_try='test -z "$ac_c_werror_flag"
4940                          || test ! -s conftest.err'
4941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942   (eval $ac_try) 2>&5
4943   ac_status=$?
4944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945   (exit $ac_status); }; } &&
4946          { ac_try='test -s conftest$ac_exeext'
4947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948   (eval $ac_try) 2>&5
4949   ac_status=$?
4950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951   (exit $ac_status); }; }; then
4952   eval "$as_ac_var=yes"
4953 else
4954   echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4956
4957 eval "$as_ac_var=no"
4958 fi
4959 rm -f conftest.err conftest.$ac_objext \
4960       conftest$ac_exeext conftest.$ac_ext
4961 fi
4962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4964 if test `eval echo '${'$as_ac_var'}'` = yes; then
4965   cat >>confdefs.h <<_ACEOF
4966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4967 _ACEOF
4968
4969 fi
4970 done
4971
4972
4973 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4974   echo "$as_me:$LINENO: checking for sys/mman.h" >&5
4975 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
4976 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4977   echo $ECHO_N "(cached) $ECHO_C" >&6
4978 fi
4979 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
4980 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
4981 else
4982   # Is the header compilable?
4983 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
4984 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
4985 cat >conftest.$ac_ext <<_ACEOF
4986 /* confdefs.h.  */
4987 _ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h.  */
4991 $ac_includes_default
4992 #include <sys/mman.h>
4993 _ACEOF
4994 rm -f conftest.$ac_objext
4995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996   (eval $ac_compile) 2>conftest.er1
4997   ac_status=$?
4998   grep -v '^ *+' conftest.er1 >conftest.err
4999   rm -f conftest.er1
5000   cat conftest.err >&5
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); } &&
5003          { ac_try='test -z "$ac_c_werror_flag"
5004                          || test ! -s conftest.err'
5005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006   (eval $ac_try) 2>&5
5007   ac_status=$?
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); }; } &&
5010          { ac_try='test -s conftest.$ac_objext'
5011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012   (eval $ac_try) 2>&5
5013   ac_status=$?
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); }; }; then
5016   ac_header_compiler=yes
5017 else
5018   echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5020
5021 ac_header_compiler=no
5022 fi
5023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5025 echo "${ECHO_T}$ac_header_compiler" >&6
5026
5027 # Is the header present?
5028 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
5029 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
5030 cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h.  */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h.  */
5036 #include <sys/mman.h>
5037 _ACEOF
5038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5040   ac_status=$?
5041   grep -v '^ *+' conftest.er1 >conftest.err
5042   rm -f conftest.er1
5043   cat conftest.err >&5
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); } >/dev/null; then
5046   if test -s conftest.err; then
5047     ac_cpp_err=$ac_c_preproc_warn_flag
5048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5049   else
5050     ac_cpp_err=
5051   fi
5052 else
5053   ac_cpp_err=yes
5054 fi
5055 if test -z "$ac_cpp_err"; then
5056   ac_header_preproc=yes
5057 else
5058   echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5060
5061   ac_header_preproc=no
5062 fi
5063 rm -f conftest.err conftest.$ac_ext
5064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5065 echo "${ECHO_T}$ac_header_preproc" >&6
5066
5067 # So?  What about this header?
5068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5069   yes:no: )
5070     { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
5071 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5072     { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
5073 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
5074     ac_header_preproc=yes
5075     ;;
5076   no:yes:* )
5077     { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
5078 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
5079     { echo "$as_me:$LINENO: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&5
5080 echo "$as_me: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&2;}
5081     { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
5082 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
5083     { echo "$as_me:$LINENO: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&5
5084 echo "$as_me: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5085     { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
5086 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
5087     { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
5088 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
5089     (
5090       cat <<\_ASBOX
5091 ## ------------------------------------------- ##
5092 ## Report this to http://gcc.gnu.org/bugs.html ##
5093 ## ------------------------------------------- ##
5094 _ASBOX
5095     ) |
5096       sed "s/^/$as_me: WARNING:     /" >&2
5097     ;;
5098 esac
5099 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
5100 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
5101 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5102   echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104   ac_cv_header_sys_mman_h=$ac_header_preproc
5105 fi
5106 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
5107 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
5108
5109 fi
5110 if test $ac_cv_header_sys_mman_h = yes; then
5111   libffi_header_sys_mman_h=yes
5112 else
5113   libffi_header_sys_mman_h=no
5114 fi
5115
5116
5117 echo "$as_me:$LINENO: checking for mmap" >&5
5118 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
5119 if test "${ac_cv_func_mmap+set}" = set; then
5120   echo $ECHO_N "(cached) $ECHO_C" >&6
5121 else
5122   cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h.  */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h.  */
5128 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
5129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5130 #define mmap innocuous_mmap
5131
5132 /* System header to define __stub macros and hopefully few prototypes,
5133     which can conflict with char mmap (); below.
5134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5135     <limits.h> exists even on freestanding compilers.  */
5136
5137 #ifdef __STDC__
5138 # include <limits.h>
5139 #else
5140 # include <assert.h>
5141 #endif
5142
5143 #undef mmap
5144
5145 /* Override any gcc2 internal prototype to avoid an error.  */
5146 #ifdef __cplusplus
5147 extern "C"
5148 {
5149 #endif
5150 /* We use char because int might match the return type of a gcc2
5151    builtin and then its argument prototype would still apply.  */
5152 char mmap ();
5153 /* The GNU C library defines this for functions which it implements
5154     to always fail with ENOSYS.  Some functions are actually named
5155     something starting with __ and the normal name is an alias.  */
5156 #if defined (__stub_mmap) || defined (__stub___mmap)
5157 choke me
5158 #else
5159 char (*f) () = mmap;
5160 #endif
5161 #ifdef __cplusplus
5162 }
5163 #endif
5164
5165 int
5166 main ()
5167 {
5168 return f != mmap;
5169   ;
5170   return 0;
5171 }
5172 _ACEOF
5173 rm -f conftest.$ac_objext conftest$ac_exeext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5175   (eval $ac_link) 2>conftest.er1
5176   ac_status=$?
5177   grep -v '^ *+' conftest.er1 >conftest.err
5178   rm -f conftest.er1
5179   cat conftest.err >&5
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); } &&
5182          { ac_try='test -z "$ac_c_werror_flag"
5183                          || test ! -s conftest.err'
5184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185   (eval $ac_try) 2>&5
5186   ac_status=$?
5187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188   (exit $ac_status); }; } &&
5189          { ac_try='test -s conftest$ac_exeext'
5190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191   (eval $ac_try) 2>&5
5192   ac_status=$?
5193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194   (exit $ac_status); }; }; then
5195   ac_cv_func_mmap=yes
5196 else
5197   echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5199
5200 ac_cv_func_mmap=no
5201 fi
5202 rm -f conftest.err conftest.$ac_objext \
5203       conftest$ac_exeext conftest.$ac_ext
5204 fi
5205 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
5206 echo "${ECHO_T}$ac_cv_func_mmap" >&6
5207 if test $ac_cv_func_mmap = yes; then
5208   libffi_func_mmap=yes
5209 else
5210   libffi_func_mmap=no
5211 fi
5212
5213 if test "$libffi_header_sys_mman_h" != yes \
5214  || test "$libffi_func_mmap" != yes; then
5215    ac_cv_func_mmap_file=no
5216    ac_cv_func_mmap_dev_zero=no
5217    ac_cv_func_mmap_anon=no
5218 else
5219    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
5220 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
5221 if test "${ac_cv_func_mmap_file+set}" = set; then
5222   echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224   # Add a system to this blacklist if
5225    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
5226    # memory area containing the same data that you'd get if you applied
5227    # read() to the same fd.  The only system known to have a problem here
5228    # is VMS, where text files have record structure.
5229    case "$host_os" in
5230      vms* | ultrix*)
5231         ac_cv_func_mmap_file=no ;;
5232      *)
5233         ac_cv_func_mmap_file=yes;;
5234    esac
5235 fi
5236 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
5237 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
5238    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
5239 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
5240 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
5241   echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243   # Add a system to this blacklist if it has mmap() but /dev/zero
5244    # does not exist, or if mmapping /dev/zero does not give anonymous
5245    # zeroed pages with both the following properties:
5246    # 1. If you map N consecutive pages in with one call, and then
5247    #    unmap any subset of those pages, the pages that were not
5248    #    explicitly unmapped remain accessible.
5249    # 2. If you map two adjacent blocks of memory and then unmap them
5250    #    both at once, they must both go away.
5251    # Systems known to be in this category are Windows (all variants),
5252    # VMS, and Darwin.
5253    case "$host_os" in
5254      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
5255         ac_cv_func_mmap_dev_zero=no ;;
5256      *)
5257         ac_cv_func_mmap_dev_zero=yes;;
5258    esac
5259 fi
5260 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
5261 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
5262
5263    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5264    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
5265 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
5266 if test "${ac_cv_decl_map_anon+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h.  */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h.  */
5275 #include <sys/types.h>
5276 #include <sys/mman.h>
5277 #include <unistd.h>
5278
5279 #ifndef MAP_ANONYMOUS
5280 #define MAP_ANONYMOUS MAP_ANON
5281 #endif
5282
5283 int
5284 main ()
5285 {
5286 int n = MAP_ANONYMOUS;
5287   ;
5288   return 0;
5289 }
5290 _ACEOF
5291 rm -f conftest.$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293   (eval $ac_compile) 2>conftest.er1
5294   ac_status=$?
5295   grep -v '^ *+' conftest.er1 >conftest.err
5296   rm -f conftest.er1
5297   cat conftest.err >&5
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); } &&
5300          { ac_try='test -z "$ac_c_werror_flag"
5301                          || test ! -s conftest.err'
5302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303   (eval $ac_try) 2>&5
5304   ac_status=$?
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }; } &&
5307          { ac_try='test -s conftest.$ac_objext'
5308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309   (eval $ac_try) 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); }; }; then
5313   ac_cv_decl_map_anon=yes
5314 else
5315   echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5317
5318 ac_cv_decl_map_anon=no
5319 fi
5320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5321 fi
5322 echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
5323 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
5324
5325    if test $ac_cv_decl_map_anon = no; then
5326      ac_cv_func_mmap_anon=no
5327    else
5328      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
5329 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
5330 if test "${ac_cv_func_mmap_anon+set}" = set; then
5331   echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333   # Add a system to this blacklist if it has mmap() and MAP_ANON or
5334    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
5335    # doesn't give anonymous zeroed pages with the same properties listed
5336    # above for use of /dev/zero.
5337    # Systems known to be in this category are Windows, VMS, and SCO Unix.
5338    case "$host_os" in
5339      vms* | cygwin* | pe | mingw* | sco* | udk* )
5340         ac_cv_func_mmap_anon=no ;;
5341      *)
5342         ac_cv_func_mmap_anon=yes;;
5343    esac
5344 fi
5345 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
5346 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
5347    fi
5348 fi
5349
5350 if test $ac_cv_func_mmap_file = yes; then
5351
5352 cat >>confdefs.h <<\_ACEOF
5353 #define HAVE_MMAP_FILE 1
5354 _ACEOF
5355
5356 fi
5357 if test $ac_cv_func_mmap_dev_zero = yes; then
5358
5359 cat >>confdefs.h <<\_ACEOF
5360 #define HAVE_MMAP_DEV_ZERO 1
5361 _ACEOF
5362
5363 fi
5364 if test $ac_cv_func_mmap_anon = yes; then
5365
5366 cat >>confdefs.h <<\_ACEOF
5367 #define HAVE_MMAP_ANON 1
5368 _ACEOF
5369
5370 fi
5371
5372
5373
5374
5375 if test -d $srcdir/testsuite; then
5376   TESTSUBDIR_TRUE=
5377   TESTSUBDIR_FALSE='#'
5378 else
5379   TESTSUBDIR_TRUE='#'
5380   TESTSUBDIR_FALSE=
5381 fi
5382
5383
5384 TARGETDIR="unknown"
5385 case "$host" in
5386 i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
5387 i*86-*-gnu*) TARGET=X86; TARGETDIR=x86;;
5388 i*86-*-solaris2.1[0-9]*) TARGET=X86_64; TARGETDIR=x86;;
5389 i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
5390 i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
5391 i*86-*-darwin*) TARGET=X86_DARWIN; TARGETDIR=x86;;
5392 i*86-*-freebsd* | i*86-*-kfreebsd*-gnu) TARGET=X86; TARGETDIR=x86;;
5393 i*86-*-netbsdelf* | i*86-*-knetbsd*-gnu) TARGET=X86; TARGETDIR=x86;;
5394 i*86-*-rtems*) TARGET=X86; TARGETDIR=x86;;
5395 i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
5396 i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
5397 i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
5398 frv-*-*) TARGET=FRV; TARGETDIR=frv;;
5399 sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
5400 sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
5401 sparc-*-linux* | sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu) TARGET=SPARC; TARGETDIR=sparc;;
5402 sparc*-*-rtems*) TARGET=SPARC; TARGETDIR=sparc;;
5403 sparc64-*-linux* | sparc64-*-freebsd* | sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu) TARGET=SPARC; TARGETDIR=sparc;;
5404 alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu) TARGET=ALPHA; TARGETDIR=alpha;;
5405 ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
5406 m32r*-*-linux* ) TARGET=M32R; TARGETDIR=m32r;;
5407 m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
5408 mips64*-*);;
5409 mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS_IRIX; TARGETDIR=mips;;
5410 mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;;
5411 powerpc*-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
5412 powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
5413 powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
5414 powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
5415 powerpc-*-freebsd*) TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc;;
5416 powerpc*-*-rtems*) TARGET=POWERPC; TARGETDIR=powerpc;;
5417 rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
5418 arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
5419 arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu) TARGET=ARM; TARGETDIR=arm;;
5420 arm*-*-rtems*) TARGET=ARM; TARGETDIR=arm;;
5421 cris-*-*) TARGET=LIBFFI_CRIS; TARGETDIR=cris;;
5422 s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
5423 s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;
5424 x86_64-*-linux* | x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) TARGET=X86_64; TARGETDIR=x86;;
5425 x86_64-*-darwin*) TARGET=X86_DARWIN; TARGETDIR=x86;;
5426 sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
5427 sh-*-rtems*) TARGET=SH; TARGETDIR=sh;;
5428 sh64-*-linux* | sh5*-*-linux*) TARGET=SH64; TARGETDIR=sh64;;
5429 hppa*-*-linux* | parisc*-*-linux*) TARGET=PA_LINUX; TARGETDIR=pa;;
5430 hppa*64-*-hpux*) TARGET=PA64_HPUX; TARGETDIR=pa;;
5431 hppa*-*-hpux*) TARGET=PA_HPUX; TARGETDIR=pa;;
5432 esac
5433
5434
5435
5436 if test $TARGETDIR = unknown; then
5437   { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
5438 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
5439    { (exit 1); exit 1; }; }
5440 fi
5441
5442
5443
5444 if test x$TARGET = xMIPS_IRIX; then
5445   MIPS_IRIX_TRUE=
5446   MIPS_IRIX_FALSE='#'
5447 else
5448   MIPS_IRIX_TRUE='#'
5449   MIPS_IRIX_FALSE=
5450 fi
5451
5452
5453
5454 if test x$TARGET = xMIPS_LINUX; then
5455   MIPS_LINUX_TRUE=
5456   MIPS_LINUX_FALSE='#'
5457 else
5458   MIPS_LINUX_TRUE='#'
5459   MIPS_LINUX_FALSE=
5460 fi
5461
5462
5463
5464 if test x$TARGET = xSPARC; then
5465   SPARC_TRUE=
5466   SPARC_FALSE='#'
5467 else
5468   SPARC_TRUE='#'
5469   SPARC_FALSE=
5470 fi
5471
5472
5473
5474 if test x$TARGET = xX86; then
5475   X86_TRUE=
5476   X86_FALSE='#'
5477 else
5478   X86_TRUE='#'
5479   X86_FALSE=
5480 fi
5481
5482
5483
5484 if test x$TARGET = xX86_WIN32; then
5485   X86_WIN32_TRUE=
5486   X86_WIN32_FALSE='#'
5487 else
5488   X86_WIN32_TRUE='#'
5489   X86_WIN32_FALSE=
5490 fi
5491
5492
5493
5494 if test x$TARGET = xX86_DARWIN; then
5495   X86_DARWIN_TRUE=
5496   X86_DARWIN_FALSE='#'
5497 else
5498   X86_DARWIN_TRUE='#'
5499   X86_DARWIN_FALSE=
5500 fi
5501
5502
5503
5504 if test x$TARGET = xALPHA; then
5505   ALPHA_TRUE=
5506   ALPHA_FALSE='#'
5507 else
5508   ALPHA_TRUE='#'
5509   ALPHA_FALSE=
5510 fi
5511
5512
5513
5514 if test x$TARGET = xIA64; then
5515   IA64_TRUE=
5516   IA64_FALSE='#'
5517 else
5518   IA64_TRUE='#'
5519   IA64_FALSE=
5520 fi
5521
5522
5523
5524 if test x$TARGET = xM32R; then
5525   M32R_TRUE=
5526   M32R_FALSE='#'
5527 else
5528   M32R_TRUE='#'
5529   M32R_FALSE=
5530 fi
5531
5532
5533
5534 if test x$TARGET = xM68K; then
5535   M68K_TRUE=
5536   M68K_FALSE='#'
5537 else
5538   M68K_TRUE='#'
5539   M68K_FALSE=
5540 fi
5541
5542
5543
5544 if test x$TARGET = xPOWERPC; then
5545   POWERPC_TRUE=
5546   POWERPC_FALSE='#'
5547 else
5548   POWERPC_TRUE='#'
5549   POWERPC_FALSE=
5550 fi
5551
5552
5553
5554 if test x$TARGET = xPOWERPC_AIX; then
5555   POWERPC_AIX_TRUE=
5556   POWERPC_AIX_FALSE='#'
5557 else
5558   POWERPC_AIX_TRUE='#'
5559   POWERPC_AIX_FALSE=
5560 fi
5561
5562
5563
5564 if test x$TARGET = xPOWERPC_DARWIN; then
5565   POWERPC_DARWIN_TRUE=
5566   POWERPC_DARWIN_FALSE='#'
5567 else
5568   POWERPC_DARWIN_TRUE='#'
5569   POWERPC_DARWIN_FALSE=
5570 fi
5571
5572
5573
5574 if test x$TARGET = xPOWERPC_FREEBSD; then
5575   POWERPC_FREEBSD_TRUE=
5576   POWERPC_FREEBSD_FALSE='#'
5577 else
5578   POWERPC_FREEBSD_TRUE='#'
5579   POWERPC_FREEBSD_FALSE=
5580 fi
5581
5582
5583
5584 if test x$TARGET = xARM; then
5585   ARM_TRUE=
5586   ARM_FALSE='#'
5587 else
5588   ARM_TRUE='#'
5589   ARM_FALSE=
5590 fi
5591
5592
5593
5594 if test x$TARGET = xLIBFFI_CRIS; then
5595   LIBFFI_CRIS_TRUE=
5596   LIBFFI_CRIS_FALSE='#'
5597 else
5598   LIBFFI_CRIS_TRUE='#'
5599   LIBFFI_CRIS_FALSE=
5600 fi
5601
5602
5603
5604 if test x$TARGET = xFRV; then
5605   FRV_TRUE=
5606   FRV_FALSE='#'
5607 else
5608   FRV_TRUE='#'
5609   FRV_FALSE=
5610 fi
5611
5612
5613
5614 if test x$TARGET = xS390; then
5615   S390_TRUE=
5616   S390_FALSE='#'
5617 else
5618   S390_TRUE='#'
5619   S390_FALSE=
5620 fi
5621
5622
5623
5624 if test x$TARGET = xX86_64; then
5625   X86_64_TRUE=
5626   X86_64_FALSE='#'
5627 else
5628   X86_64_TRUE='#'
5629   X86_64_FALSE=
5630 fi
5631
5632
5633
5634 if test x$TARGET = xSH; then
5635   SH_TRUE=
5636   SH_FALSE='#'
5637 else
5638   SH_TRUE='#'
5639   SH_FALSE=
5640 fi
5641
5642
5643
5644 if test x$TARGET = xSH64; then
5645   SH64_TRUE=
5646   SH64_FALSE='#'
5647 else
5648   SH64_TRUE='#'
5649   SH64_FALSE=
5650 fi
5651
5652
5653
5654 if test x$TARGET = xPA_LINUX; then
5655   PA_LINUX_TRUE=
5656   PA_LINUX_FALSE='#'
5657 else
5658   PA_LINUX_TRUE='#'
5659   PA_LINUX_FALSE=
5660 fi
5661
5662
5663
5664 if test x$TARGET = xPA_HPUX; then
5665   PA_HPUX_TRUE=
5666   PA_HPUX_FALSE='#'
5667 else
5668   PA_HPUX_TRUE='#'
5669   PA_HPUX_FALSE=
5670 fi
5671
5672
5673
5674 if test x$TARGET = xPA64_HPUX; then
5675   PA64_HPUX_TRUE=
5676   PA64_HPUX_FALSE='#'
5677 else
5678   PA64_HPUX_TRUE='#'
5679   PA64_HPUX_FALSE=
5680 fi
5681
5682
5683 case x$TARGET in
5684   xMIPS*) TARGET=MIPS ;;
5685   *) ;;
5686 esac
5687
5688 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5689 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5690 if test "${ac_cv_header_stdc+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   cat >conftest.$ac_ext <<_ACEOF
5694 /* confdefs.h.  */
5695 _ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h.  */
5699 #include <stdlib.h>
5700 #include <stdarg.h>
5701 #include <string.h>
5702 #include <float.h>
5703
5704 int
5705 main ()
5706 {
5707
5708   ;
5709   return 0;
5710 }
5711 _ACEOF
5712 rm -f conftest.$ac_objext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714   (eval $ac_compile) 2>conftest.er1
5715   ac_status=$?
5716   grep -v '^ *+' conftest.er1 >conftest.err
5717   rm -f conftest.er1
5718   cat conftest.err >&5
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); } &&
5721          { ac_try='test -z "$ac_c_werror_flag"
5722                          || test ! -s conftest.err'
5723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724   (eval $ac_try) 2>&5
5725   ac_status=$?
5726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); }; } &&
5728          { ac_try='test -s conftest.$ac_objext'
5729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730   (eval $ac_try) 2>&5
5731   ac_status=$?
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); }; }; then
5734   ac_cv_header_stdc=yes
5735 else
5736   echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5738
5739 ac_cv_header_stdc=no
5740 fi
5741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5742
5743 if test $ac_cv_header_stdc = yes; then
5744   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5745   cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h.  */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h.  */
5751 #include <string.h>
5752
5753 _ACEOF
5754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5755   $EGREP "memchr" >/dev/null 2>&1; then
5756   :
5757 else
5758   ac_cv_header_stdc=no
5759 fi
5760 rm -f conftest*
5761
5762 fi
5763
5764 if test $ac_cv_header_stdc = yes; then
5765   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5766   cat >conftest.$ac_ext <<_ACEOF
5767 /* confdefs.h.  */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h.  */
5772 #include <stdlib.h>
5773
5774 _ACEOF
5775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5776   $EGREP "free" >/dev/null 2>&1; then
5777   :
5778 else
5779   ac_cv_header_stdc=no
5780 fi
5781 rm -f conftest*
5782
5783 fi
5784
5785 if test $ac_cv_header_stdc = yes; then
5786   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5787   if test "$cross_compiling" = yes; then
5788   :
5789 else
5790   cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h.  */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h.  */
5796 #include <ctype.h>
5797 #if ((' ' & 0x0FF) == 0x020)
5798 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5799 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5800 #else
5801 # define ISLOWER(c) \
5802                    (('a' <= (c) && (c) <= 'i') \
5803                      || ('j' <= (c) && (c) <= 'r') \
5804                      || ('s' <= (c) && (c) <= 'z'))
5805 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5806 #endif
5807
5808 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5809 int
5810 main ()
5811 {
5812   int i;
5813   for (i = 0; i < 256; i++)
5814     if (XOR (islower (i), ISLOWER (i))
5815         || toupper (i) != TOUPPER (i))
5816       exit(2);
5817   exit (0);
5818 }
5819 _ACEOF
5820 rm -f conftest$ac_exeext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5822   (eval $ac_link) 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827   (eval $ac_try) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; }; then
5831   :
5832 else
5833   echo "$as_me: program exited with status $ac_status" >&5
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5836
5837 ( exit $ac_status )
5838 ac_cv_header_stdc=no
5839 fi
5840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5841 fi
5842 fi
5843 fi
5844 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5845 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5846 if test $ac_cv_header_stdc = yes; then
5847
5848 cat >>confdefs.h <<\_ACEOF
5849 #define STDC_HEADERS 1
5850 _ACEOF
5851
5852 fi
5853
5854
5855 for ac_func in memcpy
5856 do
5857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5858 echo "$as_me:$LINENO: checking for $ac_func" >&5
5859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5860 if eval "test \"\${$as_ac_var+set}\" = set"; then
5861   echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863   cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h.  */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h.  */
5869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5871 #define $ac_func innocuous_$ac_func
5872
5873 /* System header to define __stub macros and hopefully few prototypes,
5874     which can conflict with char $ac_func (); below.
5875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5876     <limits.h> exists even on freestanding compilers.  */
5877
5878 #ifdef __STDC__
5879 # include <limits.h>
5880 #else
5881 # include <assert.h>
5882 #endif
5883
5884 #undef $ac_func
5885
5886 /* Override any gcc2 internal prototype to avoid an error.  */
5887 #ifdef __cplusplus
5888 extern "C"
5889 {
5890 #endif
5891 /* We use char because int might match the return type of a gcc2
5892    builtin and then its argument prototype would still apply.  */
5893 char $ac_func ();
5894 /* The GNU C library defines this for functions which it implements
5895     to always fail with ENOSYS.  Some functions are actually named
5896     something starting with __ and the normal name is an alias.  */
5897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5898 choke me
5899 #else
5900 char (*f) () = $ac_func;
5901 #endif
5902 #ifdef __cplusplus
5903 }
5904 #endif
5905
5906 int
5907 main ()
5908 {
5909 return f != $ac_func;
5910   ;
5911   return 0;
5912 }
5913 _ACEOF
5914 rm -f conftest.$ac_objext conftest$ac_exeext
5915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5916   (eval $ac_link) 2>conftest.er1
5917   ac_status=$?
5918   grep -v '^ *+' conftest.er1 >conftest.err
5919   rm -f conftest.er1
5920   cat conftest.err >&5
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); } &&
5923          { ac_try='test -z "$ac_c_werror_flag"
5924                          || test ! -s conftest.err'
5925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926   (eval $ac_try) 2>&5
5927   ac_status=$?
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); }; } &&
5930          { ac_try='test -s conftest$ac_exeext'
5931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932   (eval $ac_try) 2>&5
5933   ac_status=$?
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); }; }; then
5936   eval "$as_ac_var=yes"
5937 else
5938   echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5940
5941 eval "$as_ac_var=no"
5942 fi
5943 rm -f conftest.err conftest.$ac_objext \
5944       conftest$ac_exeext conftest.$ac_ext
5945 fi
5946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5948 if test `eval echo '${'$as_ac_var'}'` = yes; then
5949   cat >>confdefs.h <<_ACEOF
5950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5951 _ACEOF
5952
5953 fi
5954 done
5955
5956 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5957 # for constant arguments.  Useless!
5958 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5959 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5960 if test "${ac_cv_working_alloca_h+set}" = set; then
5961   echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963   cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h.  */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h.  */
5969 #include <alloca.h>
5970 int
5971 main ()
5972 {
5973 char *p = (char *) alloca (2 * sizeof (int));
5974   ;
5975   return 0;
5976 }
5977 _ACEOF
5978 rm -f conftest.$ac_objext conftest$ac_exeext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5980   (eval $ac_link) 2>conftest.er1
5981   ac_status=$?
5982   grep -v '^ *+' conftest.er1 >conftest.err
5983   rm -f conftest.er1
5984   cat conftest.err >&5
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); } &&
5987          { ac_try='test -z "$ac_c_werror_flag"
5988                          || test ! -s conftest.err'
5989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990   (eval $ac_try) 2>&5
5991   ac_status=$?
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); }; } &&
5994          { ac_try='test -s conftest$ac_exeext'
5995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996   (eval $ac_try) 2>&5
5997   ac_status=$?
5998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); }; }; then
6000   ac_cv_working_alloca_h=yes
6001 else
6002   echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6004
6005 ac_cv_working_alloca_h=no
6006 fi
6007 rm -f conftest.err conftest.$ac_objext \
6008       conftest$ac_exeext conftest.$ac_ext
6009 fi
6010 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6011 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6012 if test $ac_cv_working_alloca_h = yes; then
6013
6014 cat >>confdefs.h <<\_ACEOF
6015 #define HAVE_ALLOCA_H 1
6016 _ACEOF
6017
6018 fi
6019
6020 echo "$as_me:$LINENO: checking for alloca" >&5
6021 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6022 if test "${ac_cv_func_alloca_works+set}" = set; then
6023   echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025   cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h.  */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h.  */
6031 #ifdef __GNUC__
6032 # define alloca __builtin_alloca
6033 #else
6034 # ifdef _MSC_VER
6035 #  include <malloc.h>
6036 #  define alloca _alloca
6037 # else
6038 #  if HAVE_ALLOCA_H
6039 #   include <alloca.h>
6040 #  else
6041 #   ifdef _AIX
6042  #pragma alloca
6043 #   else
6044 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6045 char *alloca ();
6046 #    endif
6047 #   endif
6048 #  endif
6049 # endif
6050 #endif
6051
6052 int
6053 main ()
6054 {
6055 char *p = (char *) alloca (1);
6056   ;
6057   return 0;
6058 }
6059 _ACEOF
6060 rm -f conftest.$ac_objext conftest$ac_exeext
6061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6062   (eval $ac_link) 2>conftest.er1
6063   ac_status=$?
6064   grep -v '^ *+' conftest.er1 >conftest.err
6065   rm -f conftest.er1
6066   cat conftest.err >&5
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); } &&
6069          { ac_try='test -z "$ac_c_werror_flag"
6070                          || test ! -s conftest.err'
6071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072   (eval $ac_try) 2>&5
6073   ac_status=$?
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); }; } &&
6076          { ac_try='test -s conftest$ac_exeext'
6077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078   (eval $ac_try) 2>&5
6079   ac_status=$?
6080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); }; }; then
6082   ac_cv_func_alloca_works=yes
6083 else
6084   echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6086
6087 ac_cv_func_alloca_works=no
6088 fi
6089 rm -f conftest.err conftest.$ac_objext \
6090       conftest$ac_exeext conftest.$ac_ext
6091 fi
6092 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6093 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6094
6095 if test $ac_cv_func_alloca_works = yes; then
6096
6097 cat >>confdefs.h <<\_ACEOF
6098 #define HAVE_ALLOCA 1
6099 _ACEOF
6100
6101 else
6102   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6103 # that cause trouble.  Some versions do not even contain alloca or
6104 # contain a buggy version.  If you still want to use their alloca,
6105 # use ar to extract alloca.o from them instead of compiling alloca.c.
6106
6107 ALLOCA=alloca.$ac_objext
6108
6109 cat >>confdefs.h <<\_ACEOF
6110 #define C_ALLOCA 1
6111 _ACEOF
6112
6113
6114 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6115 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6116 if test "${ac_cv_os_cray+set}" = set; then
6117   echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119   cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h.  */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h.  */
6125 #if defined(CRAY) && ! defined(CRAY2)
6126 webecray
6127 #else
6128 wenotbecray
6129 #endif
6130
6131 _ACEOF
6132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6133   $EGREP "webecray" >/dev/null 2>&1; then
6134   ac_cv_os_cray=yes
6135 else
6136   ac_cv_os_cray=no
6137 fi
6138 rm -f conftest*
6139
6140 fi
6141 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6142 echo "${ECHO_T}$ac_cv_os_cray" >&6
6143 if test $ac_cv_os_cray = yes; then
6144   for ac_func in _getb67 GETB67 getb67; do
6145     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6146 echo "$as_me:$LINENO: checking for $ac_func" >&5
6147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6148 if eval "test \"\${$as_ac_var+set}\" = set"; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151   cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h.  */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h.  */
6157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6159 #define $ac_func innocuous_$ac_func
6160
6161 /* System header to define __stub macros and hopefully few prototypes,
6162     which can conflict with char $ac_func (); below.
6163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6164     <limits.h> exists even on freestanding compilers.  */
6165
6166 #ifdef __STDC__
6167 # include <limits.h>
6168 #else
6169 # include <assert.h>
6170 #endif
6171
6172 #undef $ac_func
6173
6174 /* Override any gcc2 internal prototype to avoid an error.  */
6175 #ifdef __cplusplus
6176 extern "C"
6177 {
6178 #endif
6179 /* We use char because int might match the return type of a gcc2
6180    builtin and then its argument prototype would still apply.  */
6181 char $ac_func ();
6182 /* The GNU C library defines this for functions which it implements
6183     to always fail with ENOSYS.  Some functions are actually named
6184     something starting with __ and the normal name is an alias.  */
6185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6186 choke me
6187 #else
6188 char (*f) () = $ac_func;
6189 #endif
6190 #ifdef __cplusplus
6191 }
6192 #endif
6193
6194 int
6195 main ()
6196 {
6197 return f != $ac_func;
6198   ;
6199   return 0;
6200 }
6201 _ACEOF
6202 rm -f conftest.$ac_objext conftest$ac_exeext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6204   (eval $ac_link) 2>conftest.er1
6205   ac_status=$?
6206   grep -v '^ *+' conftest.er1 >conftest.err
6207   rm -f conftest.er1
6208   cat conftest.err >&5
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); } &&
6211          { ac_try='test -z "$ac_c_werror_flag"
6212                          || test ! -s conftest.err'
6213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214   (eval $ac_try) 2>&5
6215   ac_status=$?
6216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217   (exit $ac_status); }; } &&
6218          { ac_try='test -s conftest$ac_exeext'
6219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220   (eval $ac_try) 2>&5
6221   ac_status=$?
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); }; }; then
6224   eval "$as_ac_var=yes"
6225 else
6226   echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6228
6229 eval "$as_ac_var=no"
6230 fi
6231 rm -f conftest.err conftest.$ac_objext \
6232       conftest$ac_exeext conftest.$ac_ext
6233 fi
6234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6236 if test `eval echo '${'$as_ac_var'}'` = yes; then
6237
6238 cat >>confdefs.h <<_ACEOF
6239 #define CRAY_STACKSEG_END $ac_func
6240 _ACEOF
6241
6242     break
6243 fi
6244
6245   done
6246 fi
6247
6248 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6249 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6250 if test "${ac_cv_c_stack_direction+set}" = set; then
6251   echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253   if test "$cross_compiling" = yes; then
6254   ac_cv_c_stack_direction=0
6255 else
6256   cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h.  */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h.  */
6262 int
6263 find_stack_direction ()
6264 {
6265   static char *addr = 0;
6266   auto char dummy;
6267   if (addr == 0)
6268     {
6269       addr = &dummy;
6270       return find_stack_direction ();
6271     }
6272   else
6273     return (&dummy > addr) ? 1 : -1;
6274 }
6275
6276 int
6277 main ()
6278 {
6279   exit (find_stack_direction () < 0);
6280 }
6281 _ACEOF
6282 rm -f conftest$ac_exeext
6283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6284   (eval $ac_link) 2>&5
6285   ac_status=$?
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289   (eval $ac_try) 2>&5
6290   ac_status=$?
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); }; }; then
6293   ac_cv_c_stack_direction=1
6294 else
6295   echo "$as_me: program exited with status $ac_status" >&5
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6298
6299 ( exit $ac_status )
6300 ac_cv_c_stack_direction=-1
6301 fi
6302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6303 fi
6304 fi
6305 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6306 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6307
6308 cat >>confdefs.h <<_ACEOF
6309 #define STACK_DIRECTION $ac_cv_c_stack_direction
6310 _ACEOF
6311
6312
6313 fi
6314
6315
6316 echo "$as_me:$LINENO: checking for double" >&5
6317 echo $ECHO_N "checking for double... $ECHO_C" >&6
6318 if test "${ac_cv_type_double+set}" = set; then
6319   echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321   cat >conftest.$ac_ext <<_ACEOF
6322 /* confdefs.h.  */
6323 _ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h.  */
6327 $ac_includes_default
6328 int
6329 main ()
6330 {
6331 if ((double *) 0)
6332   return 0;
6333 if (sizeof (double))
6334   return 0;
6335   ;
6336   return 0;
6337 }
6338 _ACEOF
6339 rm -f conftest.$ac_objext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341   (eval $ac_compile) 2>conftest.er1
6342   ac_status=$?
6343   grep -v '^ *+' conftest.er1 >conftest.err
6344   rm -f conftest.er1
6345   cat conftest.err >&5
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); } &&
6348          { ac_try='test -z "$ac_c_werror_flag"
6349                          || test ! -s conftest.err'
6350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351   (eval $ac_try) 2>&5
6352   ac_status=$?
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); }; } &&
6355          { ac_try='test -s conftest.$ac_objext'
6356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357   (eval $ac_try) 2>&5
6358   ac_status=$?
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); }; }; then
6361   ac_cv_type_double=yes
6362 else
6363   echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6365
6366 ac_cv_type_double=no
6367 fi
6368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6369 fi
6370 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
6371 echo "${ECHO_T}$ac_cv_type_double" >&6
6372
6373 echo "$as_me:$LINENO: checking size of double" >&5
6374 echo $ECHO_N "checking size of double... $ECHO_C" >&6
6375 if test "${ac_cv_sizeof_double+set}" = set; then
6376   echo $ECHO_N "(cached) $ECHO_C" >&6
6377 else
6378   if test "$ac_cv_type_double" = yes; then
6379   # The cast to unsigned long works around a bug in the HP C Compiler
6380   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6381   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6382   # This bug is HP SR number 8606223364.
6383   if test "$cross_compiling" = yes; then
6384   # Depending upon the size, compute the lo and hi bounds.
6385 cat >conftest.$ac_ext <<_ACEOF
6386 /* confdefs.h.  */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h.  */
6391 $ac_includes_default
6392 int
6393 main ()
6394 {
6395 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
6396 test_array [0] = 0
6397
6398   ;
6399   return 0;
6400 }
6401 _ACEOF
6402 rm -f conftest.$ac_objext
6403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6404   (eval $ac_compile) 2>conftest.er1
6405   ac_status=$?
6406   grep -v '^ *+' conftest.er1 >conftest.err
6407   rm -f conftest.er1
6408   cat conftest.err >&5
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); } &&
6411          { ac_try='test -z "$ac_c_werror_flag"
6412                          || test ! -s conftest.err'
6413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414   (eval $ac_try) 2>&5
6415   ac_status=$?
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); }; } &&
6418          { ac_try='test -s conftest.$ac_objext'
6419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420   (eval $ac_try) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; }; then
6424   ac_lo=0 ac_mid=0
6425   while :; do
6426     cat >conftest.$ac_ext <<_ACEOF
6427 /* confdefs.h.  */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h.  */
6432 $ac_includes_default
6433 int
6434 main ()
6435 {
6436 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6437 test_array [0] = 0
6438
6439   ;
6440   return 0;
6441 }
6442 _ACEOF
6443 rm -f conftest.$ac_objext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445   (eval $ac_compile) 2>conftest.er1
6446   ac_status=$?
6447   grep -v '^ *+' conftest.er1 >conftest.err
6448   rm -f conftest.er1
6449   cat conftest.err >&5
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); } &&
6452          { ac_try='test -z "$ac_c_werror_flag"
6453                          || test ! -s conftest.err'
6454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455   (eval $ac_try) 2>&5
6456   ac_status=$?
6457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458   (exit $ac_status); }; } &&
6459          { ac_try='test -s conftest.$ac_objext'
6460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461   (eval $ac_try) 2>&5
6462   ac_status=$?
6463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464   (exit $ac_status); }; }; then
6465   ac_hi=$ac_mid; break
6466 else
6467   echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6469
6470 ac_lo=`expr $ac_mid + 1`
6471                     if test $ac_lo -le $ac_mid; then
6472                       ac_lo= ac_hi=
6473                       break
6474                     fi
6475                     ac_mid=`expr 2 '*' $ac_mid + 1`
6476 fi
6477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6478   done
6479 else
6480   echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6482
6483 cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h.  */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h.  */
6489 $ac_includes_default
6490 int
6491 main ()
6492 {
6493 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
6494 test_array [0] = 0
6495
6496   ;
6497   return 0;
6498 }
6499 _ACEOF
6500 rm -f conftest.$ac_objext
6501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6502   (eval $ac_compile) 2>conftest.er1
6503   ac_status=$?
6504   grep -v '^ *+' conftest.er1 >conftest.err
6505   rm -f conftest.er1
6506   cat conftest.err >&5
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); } &&
6509          { ac_try='test -z "$ac_c_werror_flag"
6510                          || test ! -s conftest.err'
6511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512   (eval $ac_try) 2>&5
6513   ac_status=$?
6514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515   (exit $ac_status); }; } &&
6516          { ac_try='test -s conftest.$ac_objext'
6517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518   (eval $ac_try) 2>&5
6519   ac_status=$?
6520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521   (exit $ac_status); }; }; then
6522   ac_hi=-1 ac_mid=-1
6523   while :; do
6524     cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h.  */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h.  */
6530 $ac_includes_default
6531 int
6532 main ()
6533 {
6534 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
6535 test_array [0] = 0
6536
6537   ;
6538   return 0;
6539 }
6540 _ACEOF
6541 rm -f conftest.$ac_objext
6542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6543   (eval $ac_compile) 2>conftest.er1
6544   ac_status=$?
6545   grep -v '^ *+' conftest.er1 >conftest.err
6546   rm -f conftest.er1
6547   cat conftest.err >&5
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); } &&
6550          { ac_try='test -z "$ac_c_werror_flag"
6551                          || test ! -s conftest.err'
6552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553   (eval $ac_try) 2>&5
6554   ac_status=$?
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); }; } &&
6557          { ac_try='test -s conftest.$ac_objext'
6558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559   (eval $ac_try) 2>&5
6560   ac_status=$?
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); }; }; then
6563   ac_lo=$ac_mid; break
6564 else
6565   echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.$ac_ext >&5
6567
6568 ac_hi=`expr '(' $ac_mid ')' - 1`
6569                        if test $ac_mid -le $ac_hi; then
6570                          ac_lo= ac_hi=
6571                          break
6572                        fi
6573                        ac_mid=`expr 2 '*' $ac_mid`
6574 fi
6575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6576   done
6577 else
6578   echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6580
6581 ac_lo= ac_hi=
6582 fi
6583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6584 fi
6585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6586 # Binary search between lo and hi bounds.
6587 while test "x$ac_lo" != "x$ac_hi"; do
6588   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6589   cat >conftest.$ac_ext <<_ACEOF
6590 /* confdefs.h.  */
6591 _ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h.  */
6595 $ac_includes_default
6596 int
6597 main ()
6598 {
6599 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6600 test_array [0] = 0
6601
6602   ;
6603   return 0;
6604 }
6605 _ACEOF
6606 rm -f conftest.$ac_objext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608   (eval $ac_compile) 2>conftest.er1
6609   ac_status=$?
6610   grep -v '^ *+' conftest.er1 >conftest.err
6611   rm -f conftest.er1
6612   cat conftest.err >&5
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); } &&
6615          { ac_try='test -z "$ac_c_werror_flag"
6616                          || test ! -s conftest.err'
6617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618   (eval $ac_try) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); }; } &&
6622          { ac_try='test -s conftest.$ac_objext'
6623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624   (eval $ac_try) 2>&5
6625   ac_status=$?
6626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627   (exit $ac_status); }; }; then
6628   ac_hi=$ac_mid
6629 else
6630   echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633 ac_lo=`expr '(' $ac_mid ')' + 1`
6634 fi
6635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6636 done
6637 case $ac_lo in
6638 ?*) ac_cv_sizeof_double=$ac_lo;;
6639 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6640 See \`config.log' for more details." >&5
6641 echo "$as_me: error: cannot compute sizeof (double), 77
6642 See \`config.log' for more details." >&2;}
6643    { (exit 1); exit 1; }; } ;;
6644 esac
6645 else
6646   if test "$cross_compiling" = yes; then
6647   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6648 See \`config.log' for more details." >&5
6649 echo "$as_me: error: cannot run test program while cross compiling
6650 See \`config.log' for more details." >&2;}
6651    { (exit 1); exit 1; }; }
6652 else
6653   cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h.  */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h.  */
6659 $ac_includes_default
6660 long longval () { return (long) (sizeof (double)); }
6661 unsigned long ulongval () { return (long) (sizeof (double)); }
6662 #include <stdio.h>
6663 #include <stdlib.h>
6664 int
6665 main ()
6666 {
6667
6668   FILE *f = fopen ("conftest.val", "w");
6669   if (! f)
6670     exit (1);
6671   if (((long) (sizeof (double))) < 0)
6672     {
6673       long i = longval ();
6674       if (i != ((long) (sizeof (double))))
6675         exit (1);
6676       fprintf (f, "%ld\n", i);
6677     }
6678   else
6679     {
6680       unsigned long i = ulongval ();
6681       if (i != ((long) (sizeof (double))))
6682         exit (1);
6683       fprintf (f, "%lu\n", i);
6684     }
6685   exit (ferror (f) || fclose (f) != 0);
6686
6687   ;
6688   return 0;
6689 }
6690 _ACEOF
6691 rm -f conftest$ac_exeext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6693   (eval $ac_link) 2>&5
6694   ac_status=$?
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698   (eval $ac_try) 2>&5
6699   ac_status=$?
6700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701   (exit $ac_status); }; }; then
6702   ac_cv_sizeof_double=`cat conftest.val`
6703 else
6704   echo "$as_me: program exited with status $ac_status" >&5
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6707
6708 ( exit $ac_status )
6709 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6710 See \`config.log' for more details." >&5
6711 echo "$as_me: error: cannot compute sizeof (double), 77
6712 See \`config.log' for more details." >&2;}
6713    { (exit 1); exit 1; }; }
6714 fi
6715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6716 fi
6717 fi
6718 rm -f conftest.val
6719 else
6720   ac_cv_sizeof_double=0
6721 fi
6722 fi
6723 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6724 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6725 cat >>confdefs.h <<_ACEOF
6726 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6727 _ACEOF
6728
6729
6730 echo "$as_me:$LINENO: checking for long double" >&5
6731 echo $ECHO_N "checking for long double... $ECHO_C" >&6
6732 if test "${ac_cv_type_long_double+set}" = set; then
6733   echo $ECHO_N "(cached) $ECHO_C" >&6
6734 else
6735   cat >conftest.$ac_ext <<_ACEOF
6736 /* confdefs.h.  */
6737 _ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h.  */
6741 $ac_includes_default
6742 int
6743 main ()
6744 {
6745 if ((long double *) 0)
6746   return 0;
6747 if (sizeof (long double))
6748   return 0;
6749   ;
6750   return 0;
6751 }
6752 _ACEOF
6753 rm -f conftest.$ac_objext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6755   (eval $ac_compile) 2>conftest.er1
6756   ac_status=$?
6757   grep -v '^ *+' conftest.er1 >conftest.err
6758   rm -f conftest.er1
6759   cat conftest.err >&5
6760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761   (exit $ac_status); } &&
6762          { ac_try='test -z "$ac_c_werror_flag"
6763                          || test ! -s conftest.err'
6764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765   (eval $ac_try) 2>&5
6766   ac_status=$?
6767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768   (exit $ac_status); }; } &&
6769          { ac_try='test -s conftest.$ac_objext'
6770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771   (eval $ac_try) 2>&5
6772   ac_status=$?
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); }; }; then
6775   ac_cv_type_long_double=yes
6776 else
6777   echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6779
6780 ac_cv_type_long_double=no
6781 fi
6782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6783 fi
6784 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
6785 echo "${ECHO_T}$ac_cv_type_long_double" >&6
6786
6787 echo "$as_me:$LINENO: checking size of long double" >&5
6788 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
6789 if test "${ac_cv_sizeof_long_double+set}" = set; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   if test "$ac_cv_type_long_double" = yes; then
6793   # The cast to unsigned long works around a bug in the HP C Compiler
6794   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6795   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6796   # This bug is HP SR number 8606223364.
6797   if test "$cross_compiling" = yes; then
6798   # Depending upon the size, compute the lo and hi bounds.
6799 cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h.  */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h.  */
6805 $ac_includes_default
6806 int
6807 main ()
6808 {
6809 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
6810 test_array [0] = 0
6811
6812   ;
6813   return 0;
6814 }
6815 _ACEOF
6816 rm -f conftest.$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818   (eval $ac_compile) 2>conftest.er1
6819   ac_status=$?
6820   grep -v '^ *+' conftest.er1 >conftest.err
6821   rm -f conftest.er1
6822   cat conftest.err >&5
6823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824   (exit $ac_status); } &&
6825          { ac_try='test -z "$ac_c_werror_flag"
6826                          || test ! -s conftest.err'
6827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828   (eval $ac_try) 2>&5
6829   ac_status=$?
6830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831   (exit $ac_status); }; } &&
6832          { ac_try='test -s conftest.$ac_objext'
6833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834   (eval $ac_try) 2>&5
6835   ac_status=$?
6836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837   (exit $ac_status); }; }; then
6838   ac_lo=0 ac_mid=0
6839   while :; do
6840     cat >conftest.$ac_ext <<_ACEOF
6841 /* confdefs.h.  */
6842 _ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h.  */
6846 $ac_includes_default
6847 int
6848 main ()
6849 {
6850 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6851 test_array [0] = 0
6852
6853   ;
6854   return 0;
6855 }
6856 _ACEOF
6857 rm -f conftest.$ac_objext
6858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6859   (eval $ac_compile) 2>conftest.er1
6860   ac_status=$?
6861   grep -v '^ *+' conftest.er1 >conftest.err
6862   rm -f conftest.er1
6863   cat conftest.err >&5
6864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865   (exit $ac_status); } &&
6866          { ac_try='test -z "$ac_c_werror_flag"
6867                          || test ! -s conftest.err'
6868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869   (eval $ac_try) 2>&5
6870   ac_status=$?
6871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872   (exit $ac_status); }; } &&
6873          { ac_try='test -s conftest.$ac_objext'
6874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875   (eval $ac_try) 2>&5
6876   ac_status=$?
6877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878   (exit $ac_status); }; }; then
6879   ac_hi=$ac_mid; break
6880 else
6881   echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.$ac_ext >&5
6883
6884 ac_lo=`expr $ac_mid + 1`
6885                     if test $ac_lo -le $ac_mid; then
6886                       ac_lo= ac_hi=
6887                       break
6888                     fi
6889                     ac_mid=`expr 2 '*' $ac_mid + 1`
6890 fi
6891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6892   done
6893 else
6894   echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.$ac_ext >&5
6896
6897 cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h.  */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h.  */
6903 $ac_includes_default
6904 int
6905 main ()
6906 {
6907 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
6908 test_array [0] = 0
6909
6910   ;
6911   return 0;
6912 }
6913 _ACEOF
6914 rm -f conftest.$ac_objext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6916   (eval $ac_compile) 2>conftest.er1
6917   ac_status=$?
6918   grep -v '^ *+' conftest.er1 >conftest.err
6919   rm -f conftest.er1
6920   cat conftest.err >&5
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); } &&
6923          { ac_try='test -z "$ac_c_werror_flag"
6924                          || test ! -s conftest.err'
6925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926   (eval $ac_try) 2>&5
6927   ac_status=$?
6928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929   (exit $ac_status); }; } &&
6930          { ac_try='test -s conftest.$ac_objext'
6931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932   (eval $ac_try) 2>&5
6933   ac_status=$?
6934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935   (exit $ac_status); }; }; then
6936   ac_hi=-1 ac_mid=-1
6937   while :; do
6938     cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h.  */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h.  */
6944 $ac_includes_default
6945 int
6946 main ()
6947 {
6948 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
6949 test_array [0] = 0
6950
6951   ;
6952   return 0;
6953 }
6954 _ACEOF
6955 rm -f conftest.$ac_objext
6956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6957   (eval $ac_compile) 2>conftest.er1
6958   ac_status=$?
6959   grep -v '^ *+' conftest.er1 >conftest.err
6960   rm -f conftest.er1
6961   cat conftest.err >&5
6962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963   (exit $ac_status); } &&
6964          { ac_try='test -z "$ac_c_werror_flag"
6965                          || test ! -s conftest.err'
6966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967   (eval $ac_try) 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); }; } &&
6971          { ac_try='test -s conftest.$ac_objext'
6972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973   (eval $ac_try) 2>&5
6974   ac_status=$?
6975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976   (exit $ac_status); }; }; then
6977   ac_lo=$ac_mid; break
6978 else
6979   echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6981
6982 ac_hi=`expr '(' $ac_mid ')' - 1`
6983                        if test $ac_mid -le $ac_hi; then
6984                          ac_lo= ac_hi=
6985                          break
6986                        fi
6987                        ac_mid=`expr 2 '*' $ac_mid`
6988 fi
6989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6990   done
6991 else
6992   echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6994
6995 ac_lo= ac_hi=
6996 fi
6997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6998 fi
6999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7000 # Binary search between lo and hi bounds.
7001 while test "x$ac_lo" != "x$ac_hi"; do
7002   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7003   cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h.  */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h.  */
7009 $ac_includes_default
7010 int
7011 main ()
7012 {
7013 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
7014 test_array [0] = 0
7015
7016   ;
7017   return 0;
7018 }
7019 _ACEOF
7020 rm -f conftest.$ac_objext
7021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7022   (eval $ac_compile) 2>conftest.er1
7023   ac_status=$?
7024   grep -v '^ *+' conftest.er1 >conftest.err
7025   rm -f conftest.er1
7026   cat conftest.err >&5
7027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028   (exit $ac_status); } &&
7029          { ac_try='test -z "$ac_c_werror_flag"
7030                          || test ! -s conftest.err'
7031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032   (eval $ac_try) 2>&5
7033   ac_status=$?
7034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035   (exit $ac_status); }; } &&
7036          { ac_try='test -s conftest.$ac_objext'
7037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038   (eval $ac_try) 2>&5
7039   ac_status=$?
7040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041   (exit $ac_status); }; }; then
7042   ac_hi=$ac_mid
7043 else
7044   echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7046
7047 ac_lo=`expr '(' $ac_mid ')' + 1`
7048 fi
7049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7050 done
7051 case $ac_lo in
7052 ?*) ac_cv_sizeof_long_double=$ac_lo;;
7053 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
7054 See \`config.log' for more details." >&5
7055 echo "$as_me: error: cannot compute sizeof (long double), 77
7056 See \`config.log' for more details." >&2;}
7057    { (exit 1); exit 1; }; } ;;
7058 esac
7059 else
7060   if test "$cross_compiling" = yes; then
7061   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7062 See \`config.log' for more details." >&5
7063 echo "$as_me: error: cannot run test program while cross compiling
7064 See \`config.log' for more details." >&2;}
7065    { (exit 1); exit 1; }; }
7066 else
7067   cat >conftest.$ac_ext <<_ACEOF
7068 /* confdefs.h.  */
7069 _ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h.  */
7073 $ac_includes_default
7074 long longval () { return (long) (sizeof (long double)); }
7075 unsigned long ulongval () { return (long) (sizeof (long double)); }
7076 #include <stdio.h>
7077 #include <stdlib.h>
7078 int
7079 main ()
7080 {
7081
7082   FILE *f = fopen ("conftest.val", "w");
7083   if (! f)
7084     exit (1);
7085   if (((long) (sizeof (long double))) < 0)
7086     {
7087       long i = longval ();
7088       if (i != ((long) (sizeof (long double))))
7089         exit (1);
7090       fprintf (f, "%ld\n", i);
7091     }
7092   else
7093     {
7094       unsigned long i = ulongval ();
7095       if (i != ((long) (sizeof (long double))))
7096         exit (1);
7097       fprintf (f, "%lu\n", i);
7098     }
7099   exit (ferror (f) || fclose (f) != 0);
7100
7101   ;
7102   return 0;
7103 }
7104 _ACEOF
7105 rm -f conftest$ac_exeext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7107   (eval $ac_link) 2>&5
7108   ac_status=$?
7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112   (eval $ac_try) 2>&5
7113   ac_status=$?
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); }; }; then
7116   ac_cv_sizeof_long_double=`cat conftest.val`
7117 else
7118   echo "$as_me: program exited with status $ac_status" >&5
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7121
7122 ( exit $ac_status )
7123 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
7124 See \`config.log' for more details." >&5
7125 echo "$as_me: error: cannot compute sizeof (long double), 77
7126 See \`config.log' for more details." >&2;}
7127    { (exit 1); exit 1; }; }
7128 fi
7129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7130 fi
7131 fi
7132 rm -f conftest.val
7133 else
7134   ac_cv_sizeof_long_double=0
7135 fi
7136 fi
7137 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
7138 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
7139 cat >>confdefs.h <<_ACEOF
7140 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7141 _ACEOF
7142
7143
7144
7145 # Also AC_SUBST this variable for ffi.h.
7146 HAVE_LONG_DOUBLE=0
7147 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
7148   if test $ac_cv_sizeof_long_double != 0; then
7149     HAVE_LONG_DOUBLE=1
7150
7151 cat >>confdefs.h <<\_ACEOF
7152 #define HAVE_LONG_DOUBLE 1
7153 _ACEOF
7154
7155   fi
7156 fi
7157
7158
7159 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7160 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7161 if test "${ac_cv_c_bigendian+set}" = set; then
7162   echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164   # See if sys/param.h defines the BYTE_ORDER macro.
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h.  */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h.  */
7171 #include <sys/types.h>
7172 #include <sys/param.h>
7173
7174 int
7175 main ()
7176 {
7177 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7178  bogus endian macros
7179 #endif
7180
7181   ;
7182   return 0;
7183 }
7184 _ACEOF
7185 rm -f conftest.$ac_objext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7187   (eval $ac_compile) 2>conftest.er1
7188   ac_status=$?
7189   grep -v '^ *+' conftest.er1 >conftest.err
7190   rm -f conftest.er1
7191   cat conftest.err >&5
7192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193   (exit $ac_status); } &&
7194          { ac_try='test -z "$ac_c_werror_flag"
7195                          || test ! -s conftest.err'
7196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197   (eval $ac_try) 2>&5
7198   ac_status=$?
7199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200   (exit $ac_status); }; } &&
7201          { ac_try='test -s conftest.$ac_objext'
7202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203   (eval $ac_try) 2>&5
7204   ac_status=$?
7205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206   (exit $ac_status); }; }; then
7207   # It does; now see whether it defined to BIG_ENDIAN or not.
7208 cat >conftest.$ac_ext <<_ACEOF
7209 /* confdefs.h.  */
7210 _ACEOF
7211 cat confdefs.h >>conftest.$ac_ext
7212 cat >>conftest.$ac_ext <<_ACEOF
7213 /* end confdefs.h.  */
7214 #include <sys/types.h>
7215 #include <sys/param.h>
7216
7217 int
7218 main ()
7219 {
7220 #if BYTE_ORDER != BIG_ENDIAN
7221  not big endian
7222 #endif
7223
7224   ;
7225   return 0;
7226 }
7227 _ACEOF
7228 rm -f conftest.$ac_objext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230   (eval $ac_compile) 2>conftest.er1
7231   ac_status=$?
7232   grep -v '^ *+' conftest.er1 >conftest.err
7233   rm -f conftest.er1
7234   cat conftest.err >&5
7235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236   (exit $ac_status); } &&
7237          { ac_try='test -z "$ac_c_werror_flag"
7238                          || test ! -s conftest.err'
7239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240   (eval $ac_try) 2>&5
7241   ac_status=$?
7242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243   (exit $ac_status); }; } &&
7244          { ac_try='test -s conftest.$ac_objext'
7245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246   (eval $ac_try) 2>&5
7247   ac_status=$?
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); }; }; then
7250   ac_cv_c_bigendian=yes
7251 else
7252   echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7254
7255 ac_cv_c_bigendian=no
7256 fi
7257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7258 else
7259   echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7261
7262 # It does not; compile a test program.
7263 if test "$cross_compiling" = yes; then
7264   # try to guess the endianness by grepping values into an object file
7265   ac_cv_c_bigendian=unknown
7266   cat >conftest.$ac_ext <<_ACEOF
7267 /* confdefs.h.  */
7268 _ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h.  */
7272 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7273 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7274 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7275 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7276 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7277 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7278 int
7279 main ()
7280 {
7281  _ascii (); _ebcdic ();
7282   ;
7283   return 0;
7284 }
7285 _ACEOF
7286 rm -f conftest.$ac_objext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7288   (eval $ac_compile) 2>conftest.er1
7289   ac_status=$?
7290   grep -v '^ *+' conftest.er1 >conftest.err
7291   rm -f conftest.er1
7292   cat conftest.err >&5
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); } &&
7295          { ac_try='test -z "$ac_c_werror_flag"
7296                          || test ! -s conftest.err'
7297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298   (eval $ac_try) 2>&5
7299   ac_status=$?
7300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301   (exit $ac_status); }; } &&
7302          { ac_try='test -s conftest.$ac_objext'
7303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304   (eval $ac_try) 2>&5
7305   ac_status=$?
7306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307   (exit $ac_status); }; }; then
7308   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7309   ac_cv_c_bigendian=yes
7310 fi
7311 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7312   if test "$ac_cv_c_bigendian" = unknown; then
7313     ac_cv_c_bigendian=no
7314   else
7315     # finding both strings is unlikely to happen, but who knows?
7316     ac_cv_c_bigendian=unknown
7317   fi
7318 fi
7319 else
7320   echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7322
7323 fi
7324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7325 else
7326   cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h.  */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h.  */
7332 int
7333 main ()
7334 {
7335   /* Are we little or big endian?  From Harbison&Steele.  */
7336   union
7337   {
7338     long l;
7339     char c[sizeof (long)];
7340   } u;
7341   u.l = 1;
7342   exit (u.c[sizeof (long) - 1] == 1);
7343 }
7344 _ACEOF
7345 rm -f conftest$ac_exeext
7346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7347   (eval $ac_link) 2>&5
7348   ac_status=$?
7349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352   (eval $ac_try) 2>&5
7353   ac_status=$?
7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355   (exit $ac_status); }; }; then
7356   ac_cv_c_bigendian=no
7357 else
7358   echo "$as_me: program exited with status $ac_status" >&5
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7361
7362 ( exit $ac_status )
7363 ac_cv_c_bigendian=yes
7364 fi
7365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7366 fi
7367 fi
7368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7369 fi
7370 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7371 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7372 case $ac_cv_c_bigendian in
7373   yes)
7374
7375 cat >>confdefs.h <<\_ACEOF
7376 #define WORDS_BIGENDIAN 1
7377 _ACEOF
7378  ;;
7379   no)
7380      ;;
7381   *)
7382     { { echo "$as_me:$LINENO: error: unknown endianness
7383 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7384 echo "$as_me: error: unknown endianness
7385 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7386    { (exit 1); exit 1; }; } ;;
7387 esac
7388
7389
7390 if test x$TARGET = xSPARC; then
7391     echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
7392 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
7393 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
7394   echo $ECHO_N "(cached) $ECHO_C" >&6
7395 else
7396
7397         save_CFLAGS="$CFLAGS"
7398         save_LDFLAGS="$LDFLAGS"
7399         CFLAGS="$CFLAGS -fpic"
7400         LDFLAGS="$LDFLAGS -shared"
7401         cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h.  */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h.  */
7407 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
7408 int
7409 main ()
7410 {
7411
7412   ;
7413   return 0;
7414 }
7415 _ACEOF
7416 rm -f conftest.$ac_objext conftest$ac_exeext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7418   (eval $ac_link) 2>conftest.er1
7419   ac_status=$?
7420   grep -v '^ *+' conftest.er1 >conftest.err
7421   rm -f conftest.er1
7422   cat conftest.err >&5
7423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424   (exit $ac_status); } &&
7425          { ac_try='test -z "$ac_c_werror_flag"
7426                          || test ! -s conftest.err'
7427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428   (eval $ac_try) 2>&5
7429   ac_status=$?
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); }; } &&
7432          { ac_try='test -s conftest$ac_exeext'
7433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434   (eval $ac_try) 2>&5
7435   ac_status=$?
7436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437   (exit $ac_status); }; }; then
7438   libffi_cv_as_sparc_ua_pcrel=yes
7439 else
7440   echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7442
7443 libffi_cv_as_sparc_ua_pcrel=no
7444 fi
7445 rm -f conftest.err conftest.$ac_objext \
7446       conftest$ac_exeext conftest.$ac_ext
7447         CFLAGS="$save_CFLAGS"
7448         LDFLAGS="$save_LDFLAGS"
7449 fi
7450 echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
7451 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
7452     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
7453
7454 cat >>confdefs.h <<\_ACEOF
7455 #define HAVE_AS_SPARC_UA_PCREL 1
7456 _ACEOF
7457
7458     fi
7459
7460     echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
7461 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
7462 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
7463   echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465
7466        libffi_cv_as_register_pseudo_op=unknown
7467        # Check if we have .register
7468        cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h.  */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h.  */
7474 asm (".register %g2, #scratch");
7475 int
7476 main ()
7477 {
7478
7479   ;
7480   return 0;
7481 }
7482 _ACEOF
7483 rm -f conftest.$ac_objext
7484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7485   (eval $ac_compile) 2>conftest.er1
7486   ac_status=$?
7487   grep -v '^ *+' conftest.er1 >conftest.err
7488   rm -f conftest.er1
7489   cat conftest.err >&5
7490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491   (exit $ac_status); } &&
7492          { ac_try='test -z "$ac_c_werror_flag"
7493                          || test ! -s conftest.err'
7494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495   (eval $ac_try) 2>&5
7496   ac_status=$?
7497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498   (exit $ac_status); }; } &&
7499          { ac_try='test -s conftest.$ac_objext'
7500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501   (eval $ac_try) 2>&5
7502   ac_status=$?
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); }; }; then
7505   libffi_cv_as_register_pseudo_op=yes
7506 else
7507   echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7509
7510 libffi_cv_as_register_pseudo_op=no
7511 fi
7512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7513
7514 fi
7515 echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
7516 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
7517     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
7518
7519 cat >>confdefs.h <<\_ACEOF
7520 #define HAVE_AS_REGISTER_PSEUDO_OP 1
7521 _ACEOF
7522
7523     fi
7524 fi
7525
7526 echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
7527 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
7528 if test "${libffi_cv_ro_eh_frame+set}" = set; then
7529   echo $ECHO_N "(cached) $ECHO_C" >&6
7530 else
7531
7532         libffi_cv_ro_eh_frame=no
7533         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
7534         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
7535             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
7536                 libffi_cv_ro_eh_frame=yes
7537             elif grep '.section.*eh_frame.*#alloc' conftest.c \
7538                  | grep -v '#write' > /dev/null; then
7539                 libffi_cv_ro_eh_frame=yes
7540             fi
7541         fi
7542         rm -f conftest.*
7543
7544 fi
7545 echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
7546 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
7547 if test "x$libffi_cv_ro_eh_frame" = xyes; then
7548
7549 cat >>confdefs.h <<\_ACEOF
7550 #define HAVE_RO_EH_FRAME 1
7551 _ACEOF
7552
7553
7554 cat >>confdefs.h <<\_ACEOF
7555 #define EH_FRAME_FLAGS "a"
7556 _ACEOF
7557
7558 else
7559
7560 cat >>confdefs.h <<\_ACEOF
7561 #define EH_FRAME_FLAGS "aw"
7562 _ACEOF
7563
7564 fi
7565
7566 echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
7567 echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6
7568 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
7569   echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571
7572         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
7573         libffi_cv_hidden_visibility_attribute=no
7574         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
7575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576   (eval $ac_try) 2>&5
7577   ac_status=$?
7578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579   (exit $ac_status); }; }; then
7580             if grep '\.hidden.*foo' conftest.s >/dev/null; then
7581                 libffi_cv_hidden_visibility_attribute=yes
7582             fi
7583         fi
7584         rm -f conftest.*
7585
7586 fi
7587 echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
7588 echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6
7589 if test $libffi_cv_hidden_visibility_attribute = yes; then
7590
7591 cat >>confdefs.h <<\_ACEOF
7592 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
7593 _ACEOF
7594
7595 fi
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605 # Check whether --enable-debug or --disable-debug was given.
7606 if test "${enable_debug+set}" = set; then
7607   enableval="$enable_debug"
7608   if test "$enable_debug" = "yes"; then
7609
7610 cat >>confdefs.h <<\_ACEOF
7611 #define FFI_DEBUG 1
7612 _ACEOF
7613
7614   fi
7615 fi;
7616
7617 # Check whether --enable-structs or --disable-structs was given.
7618 if test "${enable_structs+set}" = set; then
7619   enableval="$enable_structs"
7620   if test "$enable_structs" = "no"; then
7621
7622 cat >>confdefs.h <<\_ACEOF
7623 #define FFI_NO_STRUCTS 1
7624 _ACEOF
7625
7626   fi
7627 fi;
7628
7629 # Check whether --enable-raw-api or --disable-raw-api was given.
7630 if test "${enable_raw_api+set}" = set; then
7631   enableval="$enable_raw_api"
7632   if test "$enable_raw_api" = "no"; then
7633
7634 cat >>confdefs.h <<\_ACEOF
7635 #define FFI_NO_RAW_API 1
7636 _ACEOF
7637
7638   fi
7639 fi;
7640
7641 # Check whether --enable-purify-safety or --disable-purify-safety was given.
7642 if test "${enable_purify_safety+set}" = set; then
7643   enableval="$enable_purify_safety"
7644   if test "$enable_purify_safety" = "yes"; then
7645
7646 cat >>confdefs.h <<\_ACEOF
7647 #define USING_PURIFY 1
7648 _ACEOF
7649
7650   fi
7651 fi;
7652
7653 if test -n "$with_cross_host" &&
7654    test x"$with_cross_host" != x"no"; then
7655   toolexecdir='$(exec_prefix)/$(target_alias)'
7656   toolexeclibdir='$(toolexecdir)/lib'
7657 else
7658   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
7659   toolexeclibdir='$(libdir)'
7660 fi
7661 multi_os_directory=`$CC -print-multi-os-directory`
7662 case $multi_os_directory in
7663   .) ;; # Avoid trailing /.
7664   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
7665 esac
7666
7667
7668
7669 if test "${multilib}" = "yes"; then
7670   multilib_arg="--enable-multilib"
7671 else
7672   multilib_arg=
7673 fi
7674
7675           ac_config_commands="$ac_config_commands include"
7676
7677           ac_config_commands="$ac_config_commands src"
7678
7679
7680           ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
7681
7682
7683                                         ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
7684
7685
7686 cat >confcache <<\_ACEOF
7687 # This file is a shell script that caches the results of configure
7688 # tests run on this system so they can be shared between configure
7689 # scripts and configure runs, see configure's option --config-cache.
7690 # It is not useful on other systems.  If it contains results you don't
7691 # want to keep, you may remove or edit it.
7692 #
7693 # config.status only pays attention to the cache file if you give it
7694 # the --recheck option to rerun configure.
7695 #
7696 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7697 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7698 # following values.
7699
7700 _ACEOF
7701
7702 # The following way of writing the cache mishandles newlines in values,
7703 # but we know of no workaround that is simple, portable, and efficient.
7704 # So, don't put newlines in cache variables' values.
7705 # Ultrix sh set writes to stderr and can't be redirected directly,
7706 # and sets the high bit in the cache file unless we assign to the vars.
7707 {
7708   (set) 2>&1 |
7709     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7710     *ac_space=\ *)
7711       # `set' does not quote correctly, so add quotes (double-quote
7712       # substitution turns \\\\ into \\, and sed turns \\ into \).
7713       sed -n \
7714         "s/'/'\\\\''/g;
7715           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7716       ;;
7717     *)
7718       # `set' quotes correctly as required by POSIX, so do not add quotes.
7719       sed -n \
7720         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7721       ;;
7722     esac;
7723 } |
7724   sed '
7725      t clear
7726      : clear
7727      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7728      t end
7729      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7730      : end' >>confcache
7731 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7732   if test -w $cache_file; then
7733     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7734     cat confcache >$cache_file
7735   else
7736     echo "not updating unwritable cache $cache_file"
7737   fi
7738 fi
7739 rm -f confcache
7740
7741 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7742 # Let make expand exec_prefix.
7743 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7744
7745 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7746 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7747 # trailing colons and then remove the whole line if VPATH becomes empty
7748 # (actually we leave an empty line to preserve line numbers).
7749 if test "x$srcdir" = x.; then
7750   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7751 s/:*\$(srcdir):*/:/;
7752 s/:*\${srcdir}:*/:/;
7753 s/:*@srcdir@:*/:/;
7754 s/^\([^=]*=[     ]*\):*/\1/;
7755 s/:*$//;
7756 s/^[^=]*=[       ]*$//;
7757 }'
7758 fi
7759
7760 DEFS=-DHAVE_CONFIG_H
7761
7762 ac_libobjs=
7763 ac_ltlibobjs=
7764 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7765   # 1. Remove the extension, and $U if already installed.
7766   ac_i=`echo "$ac_i" |
7767          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7768   # 2. Add them.
7769   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7770   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7771 done
7772 LIBOBJS=$ac_libobjs
7773
7774 LTLIBOBJS=$ac_ltlibobjs
7775
7776
7777 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7778   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7779 Usually this means the macro was only invoked conditionally." >&5
7780 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7781 Usually this means the macro was only invoked conditionally." >&2;}
7782    { (exit 1); exit 1; }; }
7783 fi
7784 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7785   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7786 Usually this means the macro was only invoked conditionally." >&5
7787 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7788 Usually this means the macro was only invoked conditionally." >&2;}
7789    { (exit 1); exit 1; }; }
7790 fi
7791 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7792   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7793 Usually this means the macro was only invoked conditionally." >&5
7794 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7795 Usually this means the macro was only invoked conditionally." >&2;}
7796    { (exit 1); exit 1; }; }
7797 fi
7798 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
7799   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
7800 Usually this means the macro was only invoked conditionally." >&5
7801 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
7802 Usually this means the macro was only invoked conditionally." >&2;}
7803    { (exit 1); exit 1; }; }
7804 fi
7805 if test -z "${MIPS_IRIX_TRUE}" && test -z "${MIPS_IRIX_FALSE}"; then
7806   { { echo "$as_me:$LINENO: error: conditional \"MIPS_IRIX\" was never defined.
7807 Usually this means the macro was only invoked conditionally." >&5
7808 echo "$as_me: error: conditional \"MIPS_IRIX\" was never defined.
7809 Usually this means the macro was only invoked conditionally." >&2;}
7810    { (exit 1); exit 1; }; }
7811 fi
7812 if test -z "${MIPS_LINUX_TRUE}" && test -z "${MIPS_LINUX_FALSE}"; then
7813   { { echo "$as_me:$LINENO: error: conditional \"MIPS_LINUX\" was never defined.
7814 Usually this means the macro was only invoked conditionally." >&5
7815 echo "$as_me: error: conditional \"MIPS_LINUX\" was never defined.
7816 Usually this means the macro was only invoked conditionally." >&2;}
7817    { (exit 1); exit 1; }; }
7818 fi
7819 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
7820   { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
7821 Usually this means the macro was only invoked conditionally." >&5
7822 echo "$as_me: error: conditional \"SPARC\" was never defined.
7823 Usually this means the macro was only invoked conditionally." >&2;}
7824    { (exit 1); exit 1; }; }
7825 fi
7826 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
7827   { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
7828 Usually this means the macro was only invoked conditionally." >&5
7829 echo "$as_me: error: conditional \"X86\" was never defined.
7830 Usually this means the macro was only invoked conditionally." >&2;}
7831    { (exit 1); exit 1; }; }
7832 fi
7833 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
7834   { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
7835 Usually this means the macro was only invoked conditionally." >&5
7836 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
7837 Usually this means the macro was only invoked conditionally." >&2;}
7838    { (exit 1); exit 1; }; }
7839 fi
7840 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
7841   { { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
7842 Usually this means the macro was only invoked conditionally." >&5
7843 echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
7844 Usually this means the macro was only invoked conditionally." >&2;}
7845    { (exit 1); exit 1; }; }
7846 fi
7847 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
7848   { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
7849 Usually this means the macro was only invoked conditionally." >&5
7850 echo "$as_me: error: conditional \"ALPHA\" was never defined.
7851 Usually this means the macro was only invoked conditionally." >&2;}
7852    { (exit 1); exit 1; }; }
7853 fi
7854 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
7855   { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
7856 Usually this means the macro was only invoked conditionally." >&5
7857 echo "$as_me: error: conditional \"IA64\" was never defined.
7858 Usually this means the macro was only invoked conditionally." >&2;}
7859    { (exit 1); exit 1; }; }
7860 fi
7861 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
7862   { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
7863 Usually this means the macro was only invoked conditionally." >&5
7864 echo "$as_me: error: conditional \"M32R\" was never defined.
7865 Usually this means the macro was only invoked conditionally." >&2;}
7866    { (exit 1); exit 1; }; }
7867 fi
7868 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
7869   { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
7870 Usually this means the macro was only invoked conditionally." >&5
7871 echo "$as_me: error: conditional \"M68K\" was never defined.
7872 Usually this means the macro was only invoked conditionally." >&2;}
7873    { (exit 1); exit 1; }; }
7874 fi
7875 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
7876   { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
7877 Usually this means the macro was only invoked conditionally." >&5
7878 echo "$as_me: error: conditional \"POWERPC\" was never defined.
7879 Usually this means the macro was only invoked conditionally." >&2;}
7880    { (exit 1); exit 1; }; }
7881 fi
7882 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
7883   { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
7884 Usually this means the macro was only invoked conditionally." >&5
7885 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
7886 Usually this means the macro was only invoked conditionally." >&2;}
7887    { (exit 1); exit 1; }; }
7888 fi
7889 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
7890   { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
7891 Usually this means the macro was only invoked conditionally." >&5
7892 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
7893 Usually this means the macro was only invoked conditionally." >&2;}
7894    { (exit 1); exit 1; }; }
7895 fi
7896 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
7897   { { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
7898 Usually this means the macro was only invoked conditionally." >&5
7899 echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
7900 Usually this means the macro was only invoked conditionally." >&2;}
7901    { (exit 1); exit 1; }; }
7902 fi
7903 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
7904   { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
7905 Usually this means the macro was only invoked conditionally." >&5
7906 echo "$as_me: error: conditional \"ARM\" was never defined.
7907 Usually this means the macro was only invoked conditionally." >&2;}
7908    { (exit 1); exit 1; }; }
7909 fi
7910 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
7911   { { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
7912 Usually this means the macro was only invoked conditionally." >&5
7913 echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
7914 Usually this means the macro was only invoked conditionally." >&2;}
7915    { (exit 1); exit 1; }; }
7916 fi
7917 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
7918   { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
7919 Usually this means the macro was only invoked conditionally." >&5
7920 echo "$as_me: error: conditional \"FRV\" was never defined.
7921 Usually this means the macro was only invoked conditionally." >&2;}
7922    { (exit 1); exit 1; }; }
7923 fi
7924 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
7925   { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
7926 Usually this means the macro was only invoked conditionally." >&5
7927 echo "$as_me: error: conditional \"S390\" was never defined.
7928 Usually this means the macro was only invoked conditionally." >&2;}
7929    { (exit 1); exit 1; }; }
7930 fi
7931 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
7932   { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
7933 Usually this means the macro was only invoked conditionally." >&5
7934 echo "$as_me: error: conditional \"X86_64\" was never defined.
7935 Usually this means the macro was only invoked conditionally." >&2;}
7936    { (exit 1); exit 1; }; }
7937 fi
7938 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
7939   { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
7940 Usually this means the macro was only invoked conditionally." >&5
7941 echo "$as_me: error: conditional \"SH\" was never defined.
7942 Usually this means the macro was only invoked conditionally." >&2;}
7943    { (exit 1); exit 1; }; }
7944 fi
7945 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
7946   { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
7947 Usually this means the macro was only invoked conditionally." >&5
7948 echo "$as_me: error: conditional \"SH64\" was never defined.
7949 Usually this means the macro was only invoked conditionally." >&2;}
7950    { (exit 1); exit 1; }; }
7951 fi
7952 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
7953   { { echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
7954 Usually this means the macro was only invoked conditionally." >&5
7955 echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
7956 Usually this means the macro was only invoked conditionally." >&2;}
7957    { (exit 1); exit 1; }; }
7958 fi
7959 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
7960   { { echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
7961 Usually this means the macro was only invoked conditionally." >&5
7962 echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
7963 Usually this means the macro was only invoked conditionally." >&2;}
7964    { (exit 1); exit 1; }; }
7965 fi
7966 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
7967   { { echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
7968 Usually this means the macro was only invoked conditionally." >&5
7969 echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
7970 Usually this means the macro was only invoked conditionally." >&2;}
7971    { (exit 1); exit 1; }; }
7972 fi
7973
7974 : ${CONFIG_STATUS=./config.status}
7975 ac_clean_files_save=$ac_clean_files
7976 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7977 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7978 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7979 cat >$CONFIG_STATUS <<_ACEOF
7980 #! $SHELL
7981 # Generated by $as_me.
7982 # Run this file to recreate the current configuration.
7983 # Compiler output produced by configure, useful for debugging
7984 # configure, is in config.log if it exists.
7985
7986 debug=false
7987 ac_cs_recheck=false
7988 ac_cs_silent=false
7989 SHELL=\${CONFIG_SHELL-$SHELL}
7990 _ACEOF
7991
7992 cat >>$CONFIG_STATUS <<\_ACEOF
7993 ## --------------------- ##
7994 ## M4sh Initialization.  ##
7995 ## --------------------- ##
7996
7997 # Be Bourne compatible
7998 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7999   emulate sh
8000   NULLCMD=:
8001   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8002   # is contrary to our usage.  Disable this feature.
8003   alias -g '${1+"$@"}'='"$@"'
8004 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8005   set -o posix
8006 fi
8007 DUALCASE=1; export DUALCASE # for MKS sh
8008
8009 # Support unset when possible.
8010 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8011   as_unset=unset
8012 else
8013   as_unset=false
8014 fi
8015
8016
8017 # Work around bugs in pre-3.0 UWIN ksh.
8018 $as_unset ENV MAIL MAILPATH
8019 PS1='$ '
8020 PS2='> '
8021 PS4='+ '
8022
8023 # NLS nuisances.
8024 for as_var in \
8025   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8026   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8027   LC_TELEPHONE LC_TIME
8028 do
8029   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8030     eval $as_var=C; export $as_var
8031   else
8032     $as_unset $as_var
8033   fi
8034 done
8035
8036 # Required to use basename.
8037 if expr a : '\(a\)' >/dev/null 2>&1; then
8038   as_expr=expr
8039 else
8040   as_expr=false
8041 fi
8042
8043 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8044   as_basename=basename
8045 else
8046   as_basename=false
8047 fi
8048
8049
8050 # Name of the executable.
8051 as_me=`$as_basename "$0" ||
8052 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8053          X"$0" : 'X\(//\)$' \| \
8054          X"$0" : 'X\(/\)$' \| \
8055          .     : '\(.\)' 2>/dev/null ||
8056 echo X/"$0" |
8057     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8058           /^X\/\(\/\/\)$/{ s//\1/; q; }
8059           /^X\/\(\/\).*/{ s//\1/; q; }
8060           s/.*/./; q'`
8061
8062
8063 # PATH needs CR, and LINENO needs CR and PATH.
8064 # Avoid depending upon Character Ranges.
8065 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8066 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8067 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8068 as_cr_digits='0123456789'
8069 as_cr_alnum=$as_cr_Letters$as_cr_digits
8070
8071 # The user is always right.
8072 if test "${PATH_SEPARATOR+set}" != set; then
8073   echo "#! /bin/sh" >conf$$.sh
8074   echo  "exit 0"   >>conf$$.sh
8075   chmod +x conf$$.sh
8076   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8077     PATH_SEPARATOR=';'
8078   else
8079     PATH_SEPARATOR=:
8080   fi
8081   rm -f conf$$.sh
8082 fi
8083
8084
8085   as_lineno_1=$LINENO
8086   as_lineno_2=$LINENO
8087   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8088   test "x$as_lineno_1" != "x$as_lineno_2" &&
8089   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8090   # Find who we are.  Look in the path if we contain no path at all
8091   # relative or not.
8092   case $0 in
8093     *[\\/]* ) as_myself=$0 ;;
8094     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8096 do
8097   IFS=$as_save_IFS
8098   test -z "$as_dir" && as_dir=.
8099   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8100 done
8101
8102        ;;
8103   esac
8104   # We did not find ourselves, most probably we were run as `sh COMMAND'
8105   # in which case we are not to be found in the path.
8106   if test "x$as_myself" = x; then
8107     as_myself=$0
8108   fi
8109   if test ! -f "$as_myself"; then
8110     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8111 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8112    { (exit 1); exit 1; }; }
8113   fi
8114   case $CONFIG_SHELL in
8115   '')
8116     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8118 do
8119   IFS=$as_save_IFS
8120   test -z "$as_dir" && as_dir=.
8121   for as_base in sh bash ksh sh5; do
8122          case $as_dir in
8123          /*)
8124            if ("$as_dir/$as_base" -c '
8125   as_lineno_1=$LINENO
8126   as_lineno_2=$LINENO
8127   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8128   test "x$as_lineno_1" != "x$as_lineno_2" &&
8129   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8130              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8131              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8132              CONFIG_SHELL=$as_dir/$as_base
8133              export CONFIG_SHELL
8134              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8135            fi;;
8136          esac
8137        done
8138 done
8139 ;;
8140   esac
8141
8142   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8143   # uniformly replaced by the line number.  The first 'sed' inserts a
8144   # line-number line before each line; the second 'sed' does the real
8145   # work.  The second script uses 'N' to pair each line-number line
8146   # with the numbered line, and appends trailing '-' during
8147   # substitution so that $LINENO is not a special case at line end.
8148   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8149   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8150   sed '=' <$as_myself |
8151     sed '
8152       N
8153       s,$,-,
8154       : loop
8155       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8156       t loop
8157       s,-$,,
8158       s,^['$as_cr_digits']*\n,,
8159     ' >$as_me.lineno &&
8160   chmod +x $as_me.lineno ||
8161     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8162 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8163    { (exit 1); exit 1; }; }
8164
8165   # Don't try to exec as it changes $[0], causing all sort of problems
8166   # (the dirname of $[0] is not the place where we might find the
8167   # original and so on.  Autoconf is especially sensible to this).
8168   . ./$as_me.lineno
8169   # Exit status is that of the last command.
8170   exit
8171 }
8172
8173
8174 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8175   *c*,-n*) ECHO_N= ECHO_C='
8176 ' ECHO_T='      ' ;;
8177   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8178   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8179 esac
8180
8181 if expr a : '\(a\)' >/dev/null 2>&1; then
8182   as_expr=expr
8183 else
8184   as_expr=false
8185 fi
8186
8187 rm -f conf$$ conf$$.exe conf$$.file
8188 echo >conf$$.file
8189 if ln -s conf$$.file conf$$ 2>/dev/null; then
8190   # We could just check for DJGPP; but this test a) works b) is more generic
8191   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8192   if test -f conf$$.exe; then
8193     # Don't use ln at all; we don't have any links
8194     as_ln_s='cp -p'
8195   else
8196     as_ln_s='ln -s'
8197   fi
8198 elif ln conf$$.file conf$$ 2>/dev/null; then
8199   as_ln_s=ln
8200 else
8201   as_ln_s='cp -p'
8202 fi
8203 rm -f conf$$ conf$$.exe conf$$.file
8204
8205 if mkdir -p . 2>/dev/null; then
8206   as_mkdir_p=:
8207 else
8208   test -d ./-p && rmdir ./-p
8209   as_mkdir_p=false
8210 fi
8211
8212 as_executable_p="test -f"
8213
8214 # Sed expression to map a string onto a valid CPP name.
8215 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8216
8217 # Sed expression to map a string onto a valid variable name.
8218 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8219
8220
8221 # IFS
8222 # We need space, tab and new line, in precisely that order.
8223 as_nl='
8224 '
8225 IFS="   $as_nl"
8226
8227 # CDPATH.
8228 $as_unset CDPATH
8229
8230 exec 6>&1
8231
8232 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8233 # report actual input values of CONFIG_FILES etc. instead of their
8234 # values after options handling.  Logging --version etc. is OK.
8235 exec 5>>config.log
8236 {
8237   echo
8238   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8239 ## Running $as_me. ##
8240 _ASBOX
8241 } >&5
8242 cat >&5 <<_CSEOF
8243
8244 This file was extended by libffi $as_me 2.1, which was
8245 generated by GNU Autoconf 2.59.  Invocation command line was
8246
8247   CONFIG_FILES    = $CONFIG_FILES
8248   CONFIG_HEADERS  = $CONFIG_HEADERS
8249   CONFIG_LINKS    = $CONFIG_LINKS
8250   CONFIG_COMMANDS = $CONFIG_COMMANDS
8251   $ $0 $@
8252
8253 _CSEOF
8254 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8255 echo >&5
8256 _ACEOF
8257
8258 # Files that config.status was made for.
8259 if test -n "$ac_config_files"; then
8260   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8261 fi
8262
8263 if test -n "$ac_config_headers"; then
8264   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8265 fi
8266
8267 if test -n "$ac_config_links"; then
8268   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8269 fi
8270
8271 if test -n "$ac_config_commands"; then
8272   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8273 fi
8274
8275 cat >>$CONFIG_STATUS <<\_ACEOF
8276
8277 ac_cs_usage="\
8278 \`$as_me' instantiates files from templates according to the
8279 current configuration.
8280
8281 Usage: $0 [OPTIONS] [FILE]...
8282
8283   -h, --help       print this help, then exit
8284   -V, --version    print version number, then exit
8285   -q, --quiet      do not print progress messages
8286   -d, --debug      don't remove temporary files
8287       --recheck    update $as_me by reconfiguring in the same conditions
8288   --file=FILE[:TEMPLATE]
8289                    instantiate the configuration file FILE
8290   --header=FILE[:TEMPLATE]
8291                    instantiate the configuration header FILE
8292
8293 Configuration files:
8294 $config_files
8295
8296 Configuration headers:
8297 $config_headers
8298
8299 Configuration links:
8300 $config_links
8301
8302 Configuration commands:
8303 $config_commands
8304
8305 Report bugs to <bug-autoconf@gnu.org>."
8306 _ACEOF
8307
8308 cat >>$CONFIG_STATUS <<_ACEOF
8309 ac_cs_version="\\
8310 libffi config.status 2.1
8311 configured by $0, generated by GNU Autoconf 2.59,
8312   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8313
8314 Copyright (C) 2003 Free Software Foundation, Inc.
8315 This config.status script is free software; the Free Software Foundation
8316 gives unlimited permission to copy, distribute and modify it."
8317 srcdir=$srcdir
8318 INSTALL="$INSTALL"
8319 _ACEOF
8320
8321 cat >>$CONFIG_STATUS <<\_ACEOF
8322 # If no file are specified by the user, then we need to provide default
8323 # value.  By we need to know if files were specified by the user.
8324 ac_need_defaults=:
8325 while test $# != 0
8326 do
8327   case $1 in
8328   --*=*)
8329     ac_option=`expr "x$1" : 'x\([^=]*\)='`
8330     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8331     ac_shift=:
8332     ;;
8333   -*)
8334     ac_option=$1
8335     ac_optarg=$2
8336     ac_shift=shift
8337     ;;
8338   *) # This is not an option, so the user has probably given explicit
8339      # arguments.
8340      ac_option=$1
8341      ac_need_defaults=false;;
8342   esac
8343
8344   case $ac_option in
8345   # Handling of the options.
8346 _ACEOF
8347 cat >>$CONFIG_STATUS <<\_ACEOF
8348   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8349     ac_cs_recheck=: ;;
8350   --version | --vers* | -V )
8351     echo "$ac_cs_version"; exit 0 ;;
8352   --he | --h)
8353     # Conflict between --help and --header
8354     { { echo "$as_me:$LINENO: error: ambiguous option: $1
8355 Try \`$0 --help' for more information." >&5
8356 echo "$as_me: error: ambiguous option: $1
8357 Try \`$0 --help' for more information." >&2;}
8358    { (exit 1); exit 1; }; };;
8359   --help | --hel | -h )
8360     echo "$ac_cs_usage"; exit 0 ;;
8361   --debug | --d* | -d )
8362     debug=: ;;
8363   --file | --fil | --fi | --f )
8364     $ac_shift
8365     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8366     ac_need_defaults=false;;
8367   --header | --heade | --head | --hea )
8368     $ac_shift
8369     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8370     ac_need_defaults=false;;
8371   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8372   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8373     ac_cs_silent=: ;;
8374
8375   # This is an error.
8376   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8377 Try \`$0 --help' for more information." >&5
8378 echo "$as_me: error: unrecognized option: $1
8379 Try \`$0 --help' for more information." >&2;}
8380    { (exit 1); exit 1; }; } ;;
8381
8382   *) ac_config_targets="$ac_config_targets $1" ;;
8383
8384   esac
8385   shift
8386 done
8387
8388 ac_configure_extra_args=
8389
8390 if $ac_cs_silent; then
8391   exec 6>/dev/null
8392   ac_configure_extra_args="$ac_configure_extra_args --silent"
8393 fi
8394
8395 _ACEOF
8396 cat >>$CONFIG_STATUS <<_ACEOF
8397 if \$ac_cs_recheck; then
8398   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8399   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8400 fi
8401
8402 _ACEOF
8403
8404 cat >>$CONFIG_STATUS <<_ACEOF
8405 #
8406 # INIT-COMMANDS section.
8407 #
8408
8409
8410 srcdir="$srcdir"
8411 host="$host"
8412 target="$target"
8413 with_multisubdir="$with_multisubdir"
8414 with_multisrctop="$with_multisrctop"
8415 with_target_subdir="$with_target_subdir"
8416 ac_configure_args="${multilib_arg} ${ac_configure_args}"
8417 multi_basedir="$multi_basedir"
8418 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
8419 CC="$CC"
8420 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8421 TARGETDIR="$TARGETDIR"
8422
8423 _ACEOF
8424
8425
8426
8427 cat >>$CONFIG_STATUS <<\_ACEOF
8428 for ac_config_target in $ac_config_targets
8429 do
8430   case "$ac_config_target" in
8431   # Handling of arguments.
8432   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8433   "include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
8434   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8435   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
8436   "include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
8437   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8438   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8439   "include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
8440   "src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
8441   "fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
8442   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8443 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8444    { (exit 1); exit 1; }; };;
8445   esac
8446 done
8447
8448 # If the user did not use the arguments to specify the items to instantiate,
8449 # then the envvar interface is used.  Set only those that are not.
8450 # We use the long form for the default assignment because of an extremely
8451 # bizarre bug on SunOS 4.1.3.
8452 if $ac_need_defaults; then
8453   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8454   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8455   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8456   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8457 fi
8458
8459 # Have a temporary directory for convenience.  Make it in the build tree
8460 # simply because there is no reason to put it here, and in addition,
8461 # creating and moving files from /tmp can sometimes cause problems.
8462 # Create a temporary directory, and hook for its removal unless debugging.
8463 $debug ||
8464 {
8465   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8466   trap '{ (exit 1); exit 1; }' 1 2 13 15
8467 }
8468
8469 # Create a (secure) tmp directory for tmp files.
8470
8471 {
8472   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8473   test -n "$tmp" && test -d "$tmp"
8474 }  ||
8475 {
8476   tmp=./confstat$$-$RANDOM
8477   (umask 077 && mkdir $tmp)
8478 } ||
8479 {
8480    echo "$me: cannot create a temporary directory in ." >&2
8481    { (exit 1); exit 1; }
8482 }
8483
8484 _ACEOF
8485
8486 cat >>$CONFIG_STATUS <<_ACEOF
8487
8488 #
8489 # CONFIG_FILES section.
8490 #
8491
8492 # No need to generate the scripts if there are no CONFIG_FILES.
8493 # This happens for instance when ./config.status config.h
8494 if test -n "\$CONFIG_FILES"; then
8495   # Protect against being on the right side of a sed subst in config.status.
8496   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8497    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8498 s,@SHELL@,$SHELL,;t t
8499 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8500 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8501 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8502 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8503 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8504 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8505 s,@exec_prefix@,$exec_prefix,;t t
8506 s,@prefix@,$prefix,;t t
8507 s,@program_transform_name@,$program_transform_name,;t t
8508 s,@bindir@,$bindir,;t t
8509 s,@sbindir@,$sbindir,;t t
8510 s,@libexecdir@,$libexecdir,;t t
8511 s,@datadir@,$datadir,;t t
8512 s,@sysconfdir@,$sysconfdir,;t t
8513 s,@sharedstatedir@,$sharedstatedir,;t t
8514 s,@localstatedir@,$localstatedir,;t t
8515 s,@libdir@,$libdir,;t t
8516 s,@includedir@,$includedir,;t t
8517 s,@oldincludedir@,$oldincludedir,;t t
8518 s,@infodir@,$infodir,;t t
8519 s,@mandir@,$mandir,;t t
8520 s,@build_alias@,$build_alias,;t t
8521 s,@host_alias@,$host_alias,;t t
8522 s,@target_alias@,$target_alias,;t t
8523 s,@DEFS@,$DEFS,;t t
8524 s,@ECHO_C@,$ECHO_C,;t t
8525 s,@ECHO_N@,$ECHO_N,;t t
8526 s,@ECHO_T@,$ECHO_T,;t t
8527 s,@LIBS@,$LIBS,;t t
8528 s,@multi_basedir@,$multi_basedir,;t t
8529 s,@build@,$build,;t t
8530 s,@build_cpu@,$build_cpu,;t t
8531 s,@build_vendor@,$build_vendor,;t t
8532 s,@build_os@,$build_os,;t t
8533 s,@host@,$host,;t t
8534 s,@host_cpu@,$host_cpu,;t t
8535 s,@host_vendor@,$host_vendor,;t t
8536 s,@host_os@,$host_os,;t t
8537 s,@target@,$target,;t t
8538 s,@target_cpu@,$target_cpu,;t t
8539 s,@target_vendor@,$target_vendor,;t t
8540 s,@target_os@,$target_os,;t t
8541 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8542 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8543 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8544 s,@CYGPATH_W@,$CYGPATH_W,;t t
8545 s,@PACKAGE@,$PACKAGE,;t t
8546 s,@VERSION@,$VERSION,;t t
8547 s,@ACLOCAL@,$ACLOCAL,;t t
8548 s,@AUTOCONF@,$AUTOCONF,;t t
8549 s,@AUTOMAKE@,$AUTOMAKE,;t t
8550 s,@AUTOHEADER@,$AUTOHEADER,;t t
8551 s,@MAKEINFO@,$MAKEINFO,;t t
8552 s,@install_sh@,$install_sh,;t t
8553 s,@STRIP@,$STRIP,;t t
8554 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8555 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8556 s,@mkdir_p@,$mkdir_p,;t t
8557 s,@AWK@,$AWK,;t t
8558 s,@SET_MAKE@,$SET_MAKE,;t t
8559 s,@am__leading_dot@,$am__leading_dot,;t t
8560 s,@AMTAR@,$AMTAR,;t t
8561 s,@am__tar@,$am__tar,;t t
8562 s,@am__untar@,$am__untar,;t t
8563 s,@CC@,$CC,;t t
8564 s,@ac_ct_CC@,$ac_ct_CC,;t t
8565 s,@EXEEXT@,$EXEEXT,;t t
8566 s,@OBJEXT@,$OBJEXT,;t t
8567 s,@DEPDIR@,$DEPDIR,;t t
8568 s,@am__include@,$am__include,;t t
8569 s,@am__quote@,$am__quote,;t t
8570 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8571 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8572 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8573 s,@CCDEPMODE@,$CCDEPMODE,;t t
8574 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8575 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8576 s,@CFLAGS@,$CFLAGS,;t t
8577 s,@CCAS@,$CCAS,;t t
8578 s,@CCASFLAGS@,$CCASFLAGS,;t t
8579 s,@LN_S@,$LN_S,;t t
8580 s,@RANLIB@,$RANLIB,;t t
8581 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8582 s,@LIBTOOL@,$LIBTOOL,;t t
8583 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8584 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8585 s,@MAINT@,$MAINT,;t t
8586 s,@CPP@,$CPP,;t t
8587 s,@CPPFLAGS@,$CPPFLAGS,;t t
8588 s,@EGREP@,$EGREP,;t t
8589 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
8590 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
8591 s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
8592 s,@MIPS_IRIX_TRUE@,$MIPS_IRIX_TRUE,;t t
8593 s,@MIPS_IRIX_FALSE@,$MIPS_IRIX_FALSE,;t t
8594 s,@MIPS_LINUX_TRUE@,$MIPS_LINUX_TRUE,;t t
8595 s,@MIPS_LINUX_FALSE@,$MIPS_LINUX_FALSE,;t t
8596 s,@SPARC_TRUE@,$SPARC_TRUE,;t t
8597 s,@SPARC_FALSE@,$SPARC_FALSE,;t t
8598 s,@X86_TRUE@,$X86_TRUE,;t t
8599 s,@X86_FALSE@,$X86_FALSE,;t t
8600 s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
8601 s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
8602 s,@X86_DARWIN_TRUE@,$X86_DARWIN_TRUE,;t t
8603 s,@X86_DARWIN_FALSE@,$X86_DARWIN_FALSE,;t t
8604 s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
8605 s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
8606 s,@IA64_TRUE@,$IA64_TRUE,;t t
8607 s,@IA64_FALSE@,$IA64_FALSE,;t t
8608 s,@M32R_TRUE@,$M32R_TRUE,;t t
8609 s,@M32R_FALSE@,$M32R_FALSE,;t t
8610 s,@M68K_TRUE@,$M68K_TRUE,;t t
8611 s,@M68K_FALSE@,$M68K_FALSE,;t t
8612 s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
8613 s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
8614 s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
8615 s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
8616 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
8617 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
8618 s,@POWERPC_FREEBSD_TRUE@,$POWERPC_FREEBSD_TRUE,;t t
8619 s,@POWERPC_FREEBSD_FALSE@,$POWERPC_FREEBSD_FALSE,;t t
8620 s,@ARM_TRUE@,$ARM_TRUE,;t t
8621 s,@ARM_FALSE@,$ARM_FALSE,;t t
8622 s,@LIBFFI_CRIS_TRUE@,$LIBFFI_CRIS_TRUE,;t t
8623 s,@LIBFFI_CRIS_FALSE@,$LIBFFI_CRIS_FALSE,;t t
8624 s,@FRV_TRUE@,$FRV_TRUE,;t t
8625 s,@FRV_FALSE@,$FRV_FALSE,;t t
8626 s,@S390_TRUE@,$S390_TRUE,;t t
8627 s,@S390_FALSE@,$S390_FALSE,;t t
8628 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
8629 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
8630 s,@SH_TRUE@,$SH_TRUE,;t t
8631 s,@SH_FALSE@,$SH_FALSE,;t t
8632 s,@SH64_TRUE@,$SH64_TRUE,;t t
8633 s,@SH64_FALSE@,$SH64_FALSE,;t t
8634 s,@PA_LINUX_TRUE@,$PA_LINUX_TRUE,;t t
8635 s,@PA_LINUX_FALSE@,$PA_LINUX_FALSE,;t t
8636 s,@PA_HPUX_TRUE@,$PA_HPUX_TRUE,;t t
8637 s,@PA_HPUX_FALSE@,$PA_HPUX_FALSE,;t t
8638 s,@PA64_HPUX_TRUE@,$PA64_HPUX_TRUE,;t t
8639 s,@PA64_HPUX_FALSE@,$PA64_HPUX_FALSE,;t t
8640 s,@ALLOCA@,$ALLOCA,;t t
8641 s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
8642 s,@TARGET@,$TARGET,;t t
8643 s,@TARGETDIR@,$TARGETDIR,;t t
8644 s,@toolexecdir@,$toolexecdir,;t t
8645 s,@toolexeclibdir@,$toolexeclibdir,;t t
8646 s,@LIBOBJS@,$LIBOBJS,;t t
8647 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8648 CEOF
8649
8650 _ACEOF
8651
8652   cat >>$CONFIG_STATUS <<\_ACEOF
8653   # Split the substitutions into bite-sized pieces for seds with
8654   # small command number limits, like on Digital OSF/1 and HP-UX.
8655   ac_max_sed_lines=48
8656   ac_sed_frag=1 # Number of current file.
8657   ac_beg=1 # First line for current file.
8658   ac_end=$ac_max_sed_lines # Line after last line for current file.
8659   ac_more_lines=:
8660   ac_sed_cmds=
8661   while $ac_more_lines; do
8662     if test $ac_beg -gt 1; then
8663       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8664     else
8665       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8666     fi
8667     if test ! -s $tmp/subs.frag; then
8668       ac_more_lines=false
8669     else
8670       # The purpose of the label and of the branching condition is to
8671       # speed up the sed processing (if there are no `@' at all, there
8672       # is no need to browse any of the substitutions).
8673       # These are the two extra sed commands mentioned above.
8674       (echo ':t
8675   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8676       if test -z "$ac_sed_cmds"; then
8677         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8678       else
8679         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8680       fi
8681       ac_sed_frag=`expr $ac_sed_frag + 1`
8682       ac_beg=$ac_end
8683       ac_end=`expr $ac_end + $ac_max_sed_lines`
8684     fi
8685   done
8686   if test -z "$ac_sed_cmds"; then
8687     ac_sed_cmds=cat
8688   fi
8689 fi # test -n "$CONFIG_FILES"
8690
8691 _ACEOF
8692 cat >>$CONFIG_STATUS <<\_ACEOF
8693 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8694   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8695   case $ac_file in
8696   - | *:- | *:-:* ) # input from stdin
8697         cat >$tmp/stdin
8698         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8699         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8700   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8701         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8702   * )   ac_file_in=$ac_file.in ;;
8703   esac
8704
8705   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8706   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8707 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8708          X"$ac_file" : 'X\(//\)[^/]' \| \
8709          X"$ac_file" : 'X\(//\)$' \| \
8710          X"$ac_file" : 'X\(/\)' \| \
8711          .     : '\(.\)' 2>/dev/null ||
8712 echo X"$ac_file" |
8713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8714           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8715           /^X\(\/\/\)$/{ s//\1/; q; }
8716           /^X\(\/\).*/{ s//\1/; q; }
8717           s/.*/./; q'`
8718   { if $as_mkdir_p; then
8719     mkdir -p "$ac_dir"
8720   else
8721     as_dir="$ac_dir"
8722     as_dirs=
8723     while test ! -d "$as_dir"; do
8724       as_dirs="$as_dir $as_dirs"
8725       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8726 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8727          X"$as_dir" : 'X\(//\)[^/]' \| \
8728          X"$as_dir" : 'X\(//\)$' \| \
8729          X"$as_dir" : 'X\(/\)' \| \
8730          .     : '\(.\)' 2>/dev/null ||
8731 echo X"$as_dir" |
8732     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8733           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8734           /^X\(\/\/\)$/{ s//\1/; q; }
8735           /^X\(\/\).*/{ s//\1/; q; }
8736           s/.*/./; q'`
8737     done
8738     test ! -n "$as_dirs" || mkdir $as_dirs
8739   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8740 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8741    { (exit 1); exit 1; }; }; }
8742
8743   ac_builddir=.
8744
8745 if test "$ac_dir" != .; then
8746   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8747   # A "../" for each directory in $ac_dir_suffix.
8748   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8749 else
8750   ac_dir_suffix= ac_top_builddir=
8751 fi
8752
8753 case $srcdir in
8754   .)  # No --srcdir option.  We are building in place.
8755     ac_srcdir=.
8756     if test -z "$ac_top_builddir"; then
8757        ac_top_srcdir=.
8758     else
8759        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8760     fi ;;
8761   [\\/]* | ?:[\\/]* )  # Absolute path.
8762     ac_srcdir=$srcdir$ac_dir_suffix;
8763     ac_top_srcdir=$srcdir ;;
8764   *) # Relative path.
8765     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8766     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8767 esac
8768
8769 # Do not use `cd foo && pwd` to compute absolute paths, because
8770 # the directories may not exist.
8771 case `pwd` in
8772 .) ac_abs_builddir="$ac_dir";;
8773 *)
8774   case "$ac_dir" in
8775   .) ac_abs_builddir=`pwd`;;
8776   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8777   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8778   esac;;
8779 esac
8780 case $ac_abs_builddir in
8781 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8782 *)
8783   case ${ac_top_builddir}. in
8784   .) ac_abs_top_builddir=$ac_abs_builddir;;
8785   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8786   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8787   esac;;
8788 esac
8789 case $ac_abs_builddir in
8790 .) ac_abs_srcdir=$ac_srcdir;;
8791 *)
8792   case $ac_srcdir in
8793   .) ac_abs_srcdir=$ac_abs_builddir;;
8794   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8795   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8796   esac;;
8797 esac
8798 case $ac_abs_builddir in
8799 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8800 *)
8801   case $ac_top_srcdir in
8802   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8803   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8804   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8805   esac;;
8806 esac
8807
8808
8809   case $INSTALL in
8810   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8811   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8812   esac
8813
8814   if test x"$ac_file" != x-; then
8815     { echo "$as_me:$LINENO: creating $ac_file" >&5
8816 echo "$as_me: creating $ac_file" >&6;}
8817     rm -f "$ac_file"
8818   fi
8819   # Let's still pretend it is `configure' which instantiates (i.e., don't
8820   # use $as_me), people would be surprised to read:
8821   #    /* config.h.  Generated by config.status.  */
8822   if test x"$ac_file" = x-; then
8823     configure_input=
8824   else
8825     configure_input="$ac_file.  "
8826   fi
8827   configure_input=$configure_input"Generated from `echo $ac_file_in |
8828                                      sed 's,.*/,,'` by configure."
8829
8830   # First look for the input files in the build tree, otherwise in the
8831   # src tree.
8832   ac_file_inputs=`IFS=:
8833     for f in $ac_file_in; do
8834       case $f in
8835       -) echo $tmp/stdin ;;
8836       [\\/$]*)
8837          # Absolute (can't be DOS-style, as IFS=:)
8838          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8839 echo "$as_me: error: cannot find input file: $f" >&2;}
8840    { (exit 1); exit 1; }; }
8841          echo "$f";;
8842       *) # Relative
8843          if test -f "$f"; then
8844            # Build tree
8845            echo "$f"
8846          elif test -f "$srcdir/$f"; then
8847            # Source tree
8848            echo "$srcdir/$f"
8849          else
8850            # /dev/null tree
8851            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8852 echo "$as_me: error: cannot find input file: $f" >&2;}
8853    { (exit 1); exit 1; }; }
8854          fi;;
8855       esac
8856     done` || { (exit 1); exit 1; }
8857 _ACEOF
8858 cat >>$CONFIG_STATUS <<_ACEOF
8859   sed "$ac_vpsub
8860 $extrasub
8861 _ACEOF
8862 cat >>$CONFIG_STATUS <<\_ACEOF
8863 :t
8864 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8865 s,@configure_input@,$configure_input,;t t
8866 s,@srcdir@,$ac_srcdir,;t t
8867 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8868 s,@top_srcdir@,$ac_top_srcdir,;t t
8869 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8870 s,@builddir@,$ac_builddir,;t t
8871 s,@abs_builddir@,$ac_abs_builddir,;t t
8872 s,@top_builddir@,$ac_top_builddir,;t t
8873 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8874 s,@INSTALL@,$ac_INSTALL,;t t
8875 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8876   rm -f $tmp/stdin
8877   if test x"$ac_file" != x-; then
8878     mv $tmp/out $ac_file
8879   else
8880     cat $tmp/out
8881     rm -f $tmp/out
8882   fi
8883
8884 done
8885 _ACEOF
8886 cat >>$CONFIG_STATUS <<\_ACEOF
8887
8888 #
8889 # CONFIG_HEADER section.
8890 #
8891
8892 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8893 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8894 #
8895 # ac_d sets the value in "#define NAME VALUE" lines.
8896 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8897 ac_dB='[         ].*$,\1#\2'
8898 ac_dC=' '
8899 ac_dD=',;t'
8900 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8901 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8902 ac_uB='$,\1#\2define\3'
8903 ac_uC=' '
8904 ac_uD=',;t'
8905
8906 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8907   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8908   case $ac_file in
8909   - | *:- | *:-:* ) # input from stdin
8910         cat >$tmp/stdin
8911         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8912         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8913   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8914         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8915   * )   ac_file_in=$ac_file.in ;;
8916   esac
8917
8918   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8919 echo "$as_me: creating $ac_file" >&6;}
8920
8921   # First look for the input files in the build tree, otherwise in the
8922   # src tree.
8923   ac_file_inputs=`IFS=:
8924     for f in $ac_file_in; do
8925       case $f in
8926       -) echo $tmp/stdin ;;
8927       [\\/$]*)
8928          # Absolute (can't be DOS-style, as IFS=:)
8929          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8930 echo "$as_me: error: cannot find input file: $f" >&2;}
8931    { (exit 1); exit 1; }; }
8932          # Do quote $f, to prevent DOS paths from being IFS'd.
8933          echo "$f";;
8934       *) # Relative
8935          if test -f "$f"; then
8936            # Build tree
8937            echo "$f"
8938          elif test -f "$srcdir/$f"; then
8939            # Source tree
8940            echo "$srcdir/$f"
8941          else
8942            # /dev/null tree
8943            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8944 echo "$as_me: error: cannot find input file: $f" >&2;}
8945    { (exit 1); exit 1; }; }
8946          fi;;
8947       esac
8948     done` || { (exit 1); exit 1; }
8949   # Remove the trailing spaces.
8950   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8951
8952 _ACEOF
8953
8954 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8955 # `conftest.undefs', that substitutes the proper values into
8956 # config.h.in to produce config.h.  The first handles `#define'
8957 # templates, and the second `#undef' templates.
8958 # And first: Protect against being on the right side of a sed subst in
8959 # config.status.  Protect against being in an unquoted here document
8960 # in config.status.
8961 rm -f conftest.defines conftest.undefs
8962 # Using a here document instead of a string reduces the quoting nightmare.
8963 # Putting comments in sed scripts is not portable.
8964 #
8965 # `end' is used to avoid that the second main sed command (meant for
8966 # 0-ary CPP macros) applies to n-ary macro definitions.
8967 # See the Autoconf documentation for `clear'.
8968 cat >confdef2sed.sed <<\_ACEOF
8969 s/[\\&,]/\\&/g
8970 s,[\\$`],\\&,g
8971 t clear
8972 : clear
8973 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8974 t end
8975 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8976 : end
8977 _ACEOF
8978 # If some macros were called several times there might be several times
8979 # the same #defines, which is useless.  Nevertheless, we may not want to
8980 # sort them, since we want the *last* AC-DEFINE to be honored.
8981 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8982 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8983 rm -f confdef2sed.sed
8984
8985 # This sed command replaces #undef with comments.  This is necessary, for
8986 # example, in the case of _POSIX_SOURCE, which is predefined and required
8987 # on some systems where configure will not decide to define it.
8988 cat >>conftest.undefs <<\_ACEOF
8989 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8990 _ACEOF
8991
8992 # Break up conftest.defines because some shells have a limit on the size
8993 # of here documents, and old seds have small limits too (100 cmds).
8994 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8995 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8996 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8997 echo '  :' >>$CONFIG_STATUS
8998 rm -f conftest.tail
8999 while grep . conftest.defines >/dev/null
9000 do
9001   # Write a limited-size here document to $tmp/defines.sed.
9002   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9003   # Speed up: don't consider the non `#define' lines.
9004   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
9005   # Work around the forget-to-reset-the-flag bug.
9006   echo 't clr' >>$CONFIG_STATUS
9007   echo ': clr' >>$CONFIG_STATUS
9008   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9009   echo 'CEOF
9010   sed -f $tmp/defines.sed $tmp/in >$tmp/out
9011   rm -f $tmp/in
9012   mv $tmp/out $tmp/in
9013 ' >>$CONFIG_STATUS
9014   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9015   rm -f conftest.defines
9016   mv conftest.tail conftest.defines
9017 done
9018 rm -f conftest.defines
9019 echo '  fi # grep' >>$CONFIG_STATUS
9020 echo >>$CONFIG_STATUS
9021
9022 # Break up conftest.undefs because some shells have a limit on the size
9023 # of here documents, and old seds have small limits too (100 cmds).
9024 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9025 rm -f conftest.tail
9026 while grep . conftest.undefs >/dev/null
9027 do
9028   # Write a limited-size here document to $tmp/undefs.sed.
9029   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9030   # Speed up: don't consider the non `#undef'
9031   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9032   # Work around the forget-to-reset-the-flag bug.
9033   echo 't clr' >>$CONFIG_STATUS
9034   echo ': clr' >>$CONFIG_STATUS
9035   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9036   echo 'CEOF
9037   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9038   rm -f $tmp/in
9039   mv $tmp/out $tmp/in
9040 ' >>$CONFIG_STATUS
9041   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9042   rm -f conftest.undefs
9043   mv conftest.tail conftest.undefs
9044 done
9045 rm -f conftest.undefs
9046
9047 cat >>$CONFIG_STATUS <<\_ACEOF
9048   # Let's still pretend it is `configure' which instantiates (i.e., don't
9049   # use $as_me), people would be surprised to read:
9050   #    /* config.h.  Generated by config.status.  */
9051   if test x"$ac_file" = x-; then
9052     echo "/* Generated by configure.  */" >$tmp/config.h
9053   else
9054     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9055   fi
9056   cat $tmp/in >>$tmp/config.h
9057   rm -f $tmp/in
9058   if test x"$ac_file" != x-; then
9059     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9060       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9061 echo "$as_me: $ac_file is unchanged" >&6;}
9062     else
9063       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9065          X"$ac_file" : 'X\(//\)[^/]' \| \
9066          X"$ac_file" : 'X\(//\)$' \| \
9067          X"$ac_file" : 'X\(/\)' \| \
9068          .     : '\(.\)' 2>/dev/null ||
9069 echo X"$ac_file" |
9070     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9071           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9072           /^X\(\/\/\)$/{ s//\1/; q; }
9073           /^X\(\/\).*/{ s//\1/; q; }
9074           s/.*/./; q'`
9075       { if $as_mkdir_p; then
9076     mkdir -p "$ac_dir"
9077   else
9078     as_dir="$ac_dir"
9079     as_dirs=
9080     while test ! -d "$as_dir"; do
9081       as_dirs="$as_dir $as_dirs"
9082       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9084          X"$as_dir" : 'X\(//\)[^/]' \| \
9085          X"$as_dir" : 'X\(//\)$' \| \
9086          X"$as_dir" : 'X\(/\)' \| \
9087          .     : '\(.\)' 2>/dev/null ||
9088 echo X"$as_dir" |
9089     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9090           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9091           /^X\(\/\/\)$/{ s//\1/; q; }
9092           /^X\(\/\).*/{ s//\1/; q; }
9093           s/.*/./; q'`
9094     done
9095     test ! -n "$as_dirs" || mkdir $as_dirs
9096   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9097 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9098    { (exit 1); exit 1; }; }; }
9099
9100       rm -f $ac_file
9101       mv $tmp/config.h $ac_file
9102     fi
9103   else
9104     cat $tmp/config.h
9105     rm -f $tmp/config.h
9106   fi
9107 # Compute $ac_file's index in $config_headers.
9108 _am_stamp_count=1
9109 for _am_header in $config_headers :; do
9110   case $_am_header in
9111     $ac_file | $ac_file:* )
9112       break ;;
9113     * )
9114       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9115   esac
9116 done
9117 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9118 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9119          X$ac_file : 'X\(//\)[^/]' \| \
9120          X$ac_file : 'X\(//\)$' \| \
9121          X$ac_file : 'X\(/\)' \| \
9122          .     : '\(.\)' 2>/dev/null ||
9123 echo X$ac_file |
9124     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9125           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9126           /^X\(\/\/\)$/{ s//\1/; q; }
9127           /^X\(\/\).*/{ s//\1/; q; }
9128           s/.*/./; q'`/stamp-h$_am_stamp_count
9129 done
9130 _ACEOF
9131 cat >>$CONFIG_STATUS <<\_ACEOF
9132
9133 #
9134 # CONFIG_LINKS section.
9135 #
9136
9137 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
9138   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9139   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9140
9141   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9142 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9143
9144   if test ! -r $srcdir/$ac_source; then
9145     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9146 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9147    { (exit 1); exit 1; }; }
9148   fi
9149   rm -f $ac_dest
9150
9151   # Make relative symlinks.
9152   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
9153 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9154          X"$ac_dest" : 'X\(//\)[^/]' \| \
9155          X"$ac_dest" : 'X\(//\)$' \| \
9156          X"$ac_dest" : 'X\(/\)' \| \
9157          .     : '\(.\)' 2>/dev/null ||
9158 echo X"$ac_dest" |
9159     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9160           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9161           /^X\(\/\/\)$/{ s//\1/; q; }
9162           /^X\(\/\).*/{ s//\1/; q; }
9163           s/.*/./; q'`
9164   { if $as_mkdir_p; then
9165     mkdir -p "$ac_dest_dir"
9166   else
9167     as_dir="$ac_dest_dir"
9168     as_dirs=
9169     while test ! -d "$as_dir"; do
9170       as_dirs="$as_dir $as_dirs"
9171       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9173          X"$as_dir" : 'X\(//\)[^/]' \| \
9174          X"$as_dir" : 'X\(//\)$' \| \
9175          X"$as_dir" : 'X\(/\)' \| \
9176          .     : '\(.\)' 2>/dev/null ||
9177 echo X"$as_dir" |
9178     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9179           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9180           /^X\(\/\/\)$/{ s//\1/; q; }
9181           /^X\(\/\).*/{ s//\1/; q; }
9182           s/.*/./; q'`
9183     done
9184     test ! -n "$as_dirs" || mkdir $as_dirs
9185   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9186 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9187    { (exit 1); exit 1; }; }; }
9188
9189   ac_builddir=.
9190
9191 if test "$ac_dest_dir" != .; then
9192   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9193   # A "../" for each directory in $ac_dir_suffix.
9194   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9195 else
9196   ac_dir_suffix= ac_top_builddir=
9197 fi
9198
9199 case $srcdir in
9200   .)  # No --srcdir option.  We are building in place.
9201     ac_srcdir=.
9202     if test -z "$ac_top_builddir"; then
9203        ac_top_srcdir=.
9204     else
9205        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9206     fi ;;
9207   [\\/]* | ?:[\\/]* )  # Absolute path.
9208     ac_srcdir=$srcdir$ac_dir_suffix;
9209     ac_top_srcdir=$srcdir ;;
9210   *) # Relative path.
9211     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9212     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9213 esac
9214
9215 # Do not use `cd foo && pwd` to compute absolute paths, because
9216 # the directories may not exist.
9217 case `pwd` in
9218 .) ac_abs_builddir="$ac_dest_dir";;
9219 *)
9220   case "$ac_dest_dir" in
9221   .) ac_abs_builddir=`pwd`;;
9222   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
9223   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
9224   esac;;
9225 esac
9226 case $ac_abs_builddir in
9227 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9228 *)
9229   case ${ac_top_builddir}. in
9230   .) ac_abs_top_builddir=$ac_abs_builddir;;
9231   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9232   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9233   esac;;
9234 esac
9235 case $ac_abs_builddir in
9236 .) ac_abs_srcdir=$ac_srcdir;;
9237 *)
9238   case $ac_srcdir in
9239   .) ac_abs_srcdir=$ac_abs_builddir;;
9240   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9241   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9242   esac;;
9243 esac
9244 case $ac_abs_builddir in
9245 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9246 *)
9247   case $ac_top_srcdir in
9248   .) ac_abs_top_srcdir=$ac_abs_builddir;;
9249   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9250   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9251   esac;;
9252 esac
9253
9254
9255   case $srcdir in
9256   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9257       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
9258   esac
9259
9260   # Try a symlink, then a hard link, then a copy.
9261   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9262     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
9263     cp -p $srcdir/$ac_source $ac_dest ||
9264     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9265 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9266    { (exit 1); exit 1; }; }
9267 done
9268 _ACEOF
9269 cat >>$CONFIG_STATUS <<\_ACEOF
9270
9271 #
9272 # CONFIG_COMMANDS section.
9273 #
9274 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9275   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9276   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9277   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9278 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9279          X"$ac_dest" : 'X\(//\)[^/]' \| \
9280          X"$ac_dest" : 'X\(//\)$' \| \
9281          X"$ac_dest" : 'X\(/\)' \| \
9282          .     : '\(.\)' 2>/dev/null ||
9283 echo X"$ac_dest" |
9284     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9285           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9286           /^X\(\/\/\)$/{ s//\1/; q; }
9287           /^X\(\/\).*/{ s//\1/; q; }
9288           s/.*/./; q'`
9289   { if $as_mkdir_p; then
9290     mkdir -p "$ac_dir"
9291   else
9292     as_dir="$ac_dir"
9293     as_dirs=
9294     while test ! -d "$as_dir"; do
9295       as_dirs="$as_dir $as_dirs"
9296       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9298          X"$as_dir" : 'X\(//\)[^/]' \| \
9299          X"$as_dir" : 'X\(//\)$' \| \
9300          X"$as_dir" : 'X\(/\)' \| \
9301          .     : '\(.\)' 2>/dev/null ||
9302 echo X"$as_dir" |
9303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9304           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9305           /^X\(\/\/\)$/{ s//\1/; q; }
9306           /^X\(\/\).*/{ s//\1/; q; }
9307           s/.*/./; q'`
9308     done
9309     test ! -n "$as_dirs" || mkdir $as_dirs
9310   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9311 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9312    { (exit 1); exit 1; }; }; }
9313
9314   ac_builddir=.
9315
9316 if test "$ac_dir" != .; then
9317   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9318   # A "../" for each directory in $ac_dir_suffix.
9319   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9320 else
9321   ac_dir_suffix= ac_top_builddir=
9322 fi
9323
9324 case $srcdir in
9325   .)  # No --srcdir option.  We are building in place.
9326     ac_srcdir=.
9327     if test -z "$ac_top_builddir"; then
9328        ac_top_srcdir=.
9329     else
9330        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9331     fi ;;
9332   [\\/]* | ?:[\\/]* )  # Absolute path.
9333     ac_srcdir=$srcdir$ac_dir_suffix;
9334     ac_top_srcdir=$srcdir ;;
9335   *) # Relative path.
9336     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9337     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9338 esac
9339
9340 # Do not use `cd foo && pwd` to compute absolute paths, because
9341 # the directories may not exist.
9342 case `pwd` in
9343 .) ac_abs_builddir="$ac_dir";;
9344 *)
9345   case "$ac_dir" in
9346   .) ac_abs_builddir=`pwd`;;
9347   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9348   *) ac_abs_builddir=`pwd`/"$ac_dir";;
9349   esac;;
9350 esac
9351 case $ac_abs_builddir in
9352 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9353 *)
9354   case ${ac_top_builddir}. in
9355   .) ac_abs_top_builddir=$ac_abs_builddir;;
9356   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9357   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9358   esac;;
9359 esac
9360 case $ac_abs_builddir in
9361 .) ac_abs_srcdir=$ac_srcdir;;
9362 *)
9363   case $ac_srcdir in
9364   .) ac_abs_srcdir=$ac_abs_builddir;;
9365   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9366   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9367   esac;;
9368 esac
9369 case $ac_abs_builddir in
9370 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9371 *)
9372   case $ac_top_srcdir in
9373   .) ac_abs_top_srcdir=$ac_abs_builddir;;
9374   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9375   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9376   esac;;
9377 esac
9378
9379
9380   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9381 echo "$as_me: executing $ac_dest commands" >&6;}
9382   case $ac_dest in
9383     default-1 )
9384 # Only add multilib support code if we just rebuilt the top-level
9385 # Makefile.
9386 case " $CONFIG_FILES " in
9387  *" Makefile "*)
9388    ac_file=Makefile . ${multi_basedir}/config-ml.in
9389    ;;
9390 esac ;;
9391     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9392   # Strip MF so we end up with the name of the file.
9393   mf=`echo "$mf" | sed -e 's/:.*$//'`
9394   # Check whether this is an Automake generated Makefile or not.
9395   # We used to match only the files named `Makefile.in', but
9396   # some people rename them; so instead we look at the file content.
9397   # Grep'ing the first line is not enough: some people post-process
9398   # each Makefile.in and add a new line on top of each file to say so.
9399   # So let's grep whole file.
9400   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9401     dirpart=`(dirname "$mf") 2>/dev/null ||
9402 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9403          X"$mf" : 'X\(//\)[^/]' \| \
9404          X"$mf" : 'X\(//\)$' \| \
9405          X"$mf" : 'X\(/\)' \| \
9406          .     : '\(.\)' 2>/dev/null ||
9407 echo X"$mf" |
9408     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9409           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9410           /^X\(\/\/\)$/{ s//\1/; q; }
9411           /^X\(\/\).*/{ s//\1/; q; }
9412           s/.*/./; q'`
9413   else
9414     continue
9415   fi
9416   # Extract the definition of DEPDIR, am__include, and am__quote
9417   # from the Makefile without running `make'.
9418   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9419   test -z "$DEPDIR" && continue
9420   am__include=`sed -n 's/^am__include = //p' < "$mf"`
9421   test -z "am__include" && continue
9422   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9423   # When using ansi2knr, U may be empty or an underscore; expand it
9424   U=`sed -n 's/^U = //p' < "$mf"`
9425   # Find all dependency output files, they are included files with
9426   # $(DEPDIR) in their names.  We invoke sed twice because it is the
9427   # simplest approach to changing $(DEPDIR) to its actual value in the
9428   # expansion.
9429   for file in `sed -n "
9430     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9431        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9432     # Make sure the directory exists.
9433     test -f "$dirpart/$file" && continue
9434     fdir=`(dirname "$file") 2>/dev/null ||
9435 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9436          X"$file" : 'X\(//\)[^/]' \| \
9437          X"$file" : 'X\(//\)$' \| \
9438          X"$file" : 'X\(/\)' \| \
9439          .     : '\(.\)' 2>/dev/null ||
9440 echo X"$file" |
9441     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9442           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9443           /^X\(\/\/\)$/{ s//\1/; q; }
9444           /^X\(\/\).*/{ s//\1/; q; }
9445           s/.*/./; q'`
9446     { if $as_mkdir_p; then
9447     mkdir -p $dirpart/$fdir
9448   else
9449     as_dir=$dirpart/$fdir
9450     as_dirs=
9451     while test ! -d "$as_dir"; do
9452       as_dirs="$as_dir $as_dirs"
9453       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9455          X"$as_dir" : 'X\(//\)[^/]' \| \
9456          X"$as_dir" : 'X\(//\)$' \| \
9457          X"$as_dir" : 'X\(/\)' \| \
9458          .     : '\(.\)' 2>/dev/null ||
9459 echo X"$as_dir" |
9460     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9461           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9462           /^X\(\/\/\)$/{ s//\1/; q; }
9463           /^X\(\/\).*/{ s//\1/; q; }
9464           s/.*/./; q'`
9465     done
9466     test ! -n "$as_dirs" || mkdir $as_dirs
9467   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9468 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9469    { (exit 1); exit 1; }; }; }
9470
9471     # echo "creating $dirpart/$file"
9472     echo '# dummy' > "$dirpart/$file"
9473   done
9474 done
9475  ;;
9476     include ) test -d include || mkdir include ;;
9477     src )
9478 test -d src || mkdir src
9479 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
9480  ;;
9481   esac
9482 done
9483 _ACEOF
9484
9485 cat >>$CONFIG_STATUS <<\_ACEOF
9486
9487 { (exit 0); exit 0; }
9488 _ACEOF
9489 chmod +x $CONFIG_STATUS
9490 ac_clean_files=$ac_clean_files_save
9491
9492
9493 # configure is writing to config.log, and then calls config.status.
9494 # config.status does its own redirection, appending to config.log.
9495 # Unfortunately, on DOS this fails, as config.log is still kept open
9496 # by configure, so config.status won't be able to write to it; its
9497 # output is simply discarded.  So we exec the FD to /dev/null,
9498 # effectively closing config.log, so it can be properly (re)opened and
9499 # appended to by config.status.  When coming back to configure, we
9500 # need to make the FD available again.
9501 if test "$no_create" != yes; then
9502   ac_cs_success=:
9503   ac_config_status_args=
9504   test "$silent" = yes &&
9505     ac_config_status_args="$ac_config_status_args --quiet"
9506   exec 5>/dev/null
9507   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9508   exec 5>>config.log
9509   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9510   # would make configure fail if this is the last instruction.
9511   $ac_cs_success || { (exit 1); exit 1; }
9512 fi
9513