OSDN Git Service

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