]> gcc.gnu.org Git - gcc.git/blame - libffi/configure
optc-gen.awk: No need to duplicate option flags twice.
[gcc.git] / libffi / configure
CommitLineData
63e5e3e0 1#! /bin/sh
63e5e3e0 2# Guess values for system-dependent variables and create Makefiles.
3ed8e5b6
AT
3# Generated by GNU Autoconf 2.59 for libffi 2.1.
4#
5# Report bugs to <http://gcc.gnu.org/bugs.html>.
63e5e3e0 6#
3ed8e5b6 7# Copyright (C) 2003 Free Software Foundation, Inc.
63e5e3e0
AG
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
3ed8e5b6
AT
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if 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+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for 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
45do
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
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo 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.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if 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
99fi
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
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
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
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
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
154done
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
189case `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= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if 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
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_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.
233as_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.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
1cf3d07d
SE
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$lt_ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257ECHO=${lt_ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $ECHO works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<_LT_EOF
276$*
277_LT_EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$lt_ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
291 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
292 then
293 break
294 fi
295 done
296 fi
297
298 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302 else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
311 IFS="$lt_save_ifs"
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 ECHO="$dir/echo"
317 break
318 fi
319 done
320 IFS="$lt_save_ifs"
321
322 if test "X$ECHO" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 ECHO='print -r'
329 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 ECHO='printf %s\n'
340 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 ECHO="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 ECHO="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 ECHO=echo
378 fi
379 fi
380 fi
381 fi
382 fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387lt_ECHO=$ECHO
388if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
394
3ed8e5b6
AT
395# Name of the host.
396# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
397# so uname gets run too.
398ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
63e5e3e0 399
3ed8e5b6
AT
400exec 6>&1
401
402#
403# Initializations.
404#
63e5e3e0 405ac_default_prefix=/usr/local
3ed8e5b6
AT
406ac_config_libobj_dir=.
407cross_compiling=no
408subdirs=
409MFLAGS=
410MAKEFLAGS=
411SHELL=${CONFIG_SHELL-/bin/sh}
412
413# Maximum number of lines to put in a shell here document.
414# This variable seems obsolete. It should probably be removed, and
415# only ac_max_sed_lines should be used.
416: ${ac_max_here_lines=38}
417
418# Identity of this package.
419PACKAGE_NAME='libffi'
420PACKAGE_TARNAME='libffi'
421PACKAGE_VERSION='2.1'
422PACKAGE_STRING='libffi 2.1'
423PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
424
c9b93377
JB
425# Factoring default headers for most tests.
426ac_includes_default="\
427#include <stdio.h>
428#if HAVE_SYS_TYPES_H
429# include <sys/types.h>
430#endif
431#if HAVE_SYS_STAT_H
432# include <sys/stat.h>
433#endif
434#if STDC_HEADERS
435# include <stdlib.h>
436# include <stddef.h>
437#else
438# if HAVE_STDLIB_H
439# include <stdlib.h>
440# endif
441#endif
442#if HAVE_STRING_H
443# if !STDC_HEADERS && HAVE_MEMORY_H
444# include <memory.h>
445# endif
446# include <string.h>
447#endif
448#if HAVE_STRINGS_H
449# include <strings.h>
450#endif
451#if HAVE_INTTYPES_H
452# include <inttypes.h>
453#else
454# if HAVE_STDINT_H
455# include <stdint.h>
456# endif
457#endif
458#if HAVE_UNISTD_H
459# include <unistd.h>
460#endif"
461
80c6c2cb 462ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CCAS CCASFLAGS LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT TESTSUBDIR_TRUE TESTSUBDIR_FALSE AM_RUNTESTFLAGS MIPS_TRUE MIPS_FALSE SPARC_TRUE SPARC_FALSE X86_TRUE X86_FALSE X86_WIN32_TRUE X86_WIN32_FALSE X86_DARWIN_TRUE X86_DARWIN_FALSE ALPHA_TRUE ALPHA_FALSE IA64_TRUE IA64_FALSE M32R_TRUE M32R_FALSE M68K_TRUE M68K_FALSE POWERPC_TRUE POWERPC_FALSE POWERPC_AIX_TRUE POWERPC_AIX_FALSE POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE POWERPC_FREEBSD_TRUE POWERPC_FREEBSD_FALSE ARM_TRUE ARM_FALSE LIBFFI_CRIS_TRUE LIBFFI_CRIS_FALSE FRV_TRUE FRV_FALSE S390_TRUE S390_FALSE X86_64_TRUE X86_64_FALSE SH_TRUE SH_FALSE SH64_TRUE SH64_FALSE PA_LINUX_TRUE PA_LINUX_FALSE PA_HPUX_TRUE PA_HPUX_FALSE PA64_HPUX_TRUE PA64_HPUX_FALSE ALLOCA HAVE_LONG_DOUBLE TARGET TARGETDIR toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
3ed8e5b6 463ac_subst_files=''
18c04407 464ac_pwd=`pwd`
63e5e3e0
AG
465
466# Initialize some variables set by options.
3ed8e5b6
AT
467ac_init_help=
468ac_init_version=false
63e5e3e0
AG
469# The variables have the same names as the options, with
470# dashes changed to underlines.
3ed8e5b6 471cache_file=/dev/null
63e5e3e0 472exec_prefix=NONE
63e5e3e0 473no_create=
63e5e3e0
AG
474no_recursion=
475prefix=NONE
476program_prefix=NONE
477program_suffix=NONE
478program_transform_name=s,x,x,
479silent=
480site=
481srcdir=
63e5e3e0
AG
482verbose=
483x_includes=NONE
484x_libraries=NONE
3ed8e5b6
AT
485
486# Installation directory options.
487# These are left unexpanded so users can "make install exec_prefix=/foo"
488# and all the variables that are supposed to be based on exec_prefix
489# by default will actually change.
490# Use braces instead of parens because sh, perl, etc. also accept them.
63e5e3e0
AG
491bindir='${exec_prefix}/bin'
492sbindir='${exec_prefix}/sbin'
493libexecdir='${exec_prefix}/libexec'
494datadir='${prefix}/share'
495sysconfdir='${prefix}/etc'
496sharedstatedir='${prefix}/com'
497localstatedir='${prefix}/var'
498libdir='${exec_prefix}/lib'
499includedir='${prefix}/include'
500oldincludedir='/usr/include'
501infodir='${prefix}/info'
502mandir='${prefix}/man'
503
63e5e3e0
AG
504ac_prev=
505for ac_option
506do
63e5e3e0
AG
507 # If the previous option needs an argument, assign it.
508 if test -n "$ac_prev"; then
509 eval "$ac_prev=\$ac_option"
510 ac_prev=
511 continue
512 fi
513
3ed8e5b6 514 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
63e5e3e0
AG
515
516 # Accept the important Cygnus configure options, so we can diagnose typos.
517
3ed8e5b6 518 case $ac_option in
63e5e3e0
AG
519
520 -bindir | --bindir | --bindi | --bind | --bin | --bi)
521 ac_prev=bindir ;;
522 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
3ed8e5b6 523 bindir=$ac_optarg ;;
63e5e3e0
AG
524
525 -build | --build | --buil | --bui | --bu)
3ed8e5b6 526 ac_prev=build_alias ;;
63e5e3e0 527 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
3ed8e5b6 528 build_alias=$ac_optarg ;;
63e5e3e0
AG
529
530 -cache-file | --cache-file | --cache-fil | --cache-fi \
531 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
532 ac_prev=cache_file ;;
533 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
534 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3ed8e5b6
AT
535 cache_file=$ac_optarg ;;
536
537 --config-cache | -C)
538 cache_file=config.cache ;;
63e5e3e0
AG
539
540 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 ac_prev=datadir ;;
542 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 | --da=*)
3ed8e5b6 544 datadir=$ac_optarg ;;
63e5e3e0
AG
545
546 -disable-* | --disable-*)
3ed8e5b6 547 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
63e5e3e0 548 # Reject names that are not valid shell variable names.
3ed8e5b6
AT
549 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
550 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
551 { (exit 1); exit 1; }; }
552 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
553 eval "enable_$ac_feature=no" ;;
63e5e3e0
AG
554
555 -enable-* | --enable-*)
3ed8e5b6 556 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
63e5e3e0 557 # Reject names that are not valid shell variable names.
3ed8e5b6
AT
558 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560 { (exit 1); exit 1; }; }
561 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 case $ac_option in
563 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
63e5e3e0
AG
564 *) ac_optarg=yes ;;
565 esac
3ed8e5b6 566 eval "enable_$ac_feature='$ac_optarg'" ;;
63e5e3e0
AG
567
568 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
569 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
570 | --exec | --exe | --ex)
571 ac_prev=exec_prefix ;;
572 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
573 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
574 | --exec=* | --exe=* | --ex=*)
3ed8e5b6 575 exec_prefix=$ac_optarg ;;
63e5e3e0
AG
576
577 -gas | --gas | --ga | --g)
578 # Obsolete; use --with-gas.
579 with_gas=yes ;;
580
3ed8e5b6
AT
581 -help | --help | --hel | --he | -h)
582 ac_init_help=long ;;
583 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
584 ac_init_help=recursive ;;
585 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
586 ac_init_help=short ;;
63e5e3e0
AG
587
588 -host | --host | --hos | --ho)
3ed8e5b6 589 ac_prev=host_alias ;;
63e5e3e0 590 -host=* | --host=* | --hos=* | --ho=*)
3ed8e5b6 591 host_alias=$ac_optarg ;;
63e5e3e0
AG
592
593 -includedir | --includedir | --includedi | --included | --include \
594 | --includ | --inclu | --incl | --inc)
595 ac_prev=includedir ;;
596 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
597 | --includ=* | --inclu=* | --incl=* | --inc=*)
3ed8e5b6 598 includedir=$ac_optarg ;;
63e5e3e0
AG
599
600 -infodir | --infodir | --infodi | --infod | --info | --inf)
601 ac_prev=infodir ;;
602 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
3ed8e5b6 603 infodir=$ac_optarg ;;
63e5e3e0
AG
604
605 -libdir | --libdir | --libdi | --libd)
606 ac_prev=libdir ;;
607 -libdir=* | --libdir=* | --libdi=* | --libd=*)
3ed8e5b6 608 libdir=$ac_optarg ;;
63e5e3e0
AG
609
610 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
611 | --libexe | --libex | --libe)
612 ac_prev=libexecdir ;;
613 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
614 | --libexe=* | --libex=* | --libe=*)
3ed8e5b6 615 libexecdir=$ac_optarg ;;
63e5e3e0
AG
616
617 -localstatedir | --localstatedir | --localstatedi | --localstated \
618 | --localstate | --localstat | --localsta | --localst \
619 | --locals | --local | --loca | --loc | --lo)
620 ac_prev=localstatedir ;;
621 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
622 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
623 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
3ed8e5b6 624 localstatedir=$ac_optarg ;;
63e5e3e0
AG
625
626 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627 ac_prev=mandir ;;
628 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3ed8e5b6 629 mandir=$ac_optarg ;;
63e5e3e0
AG
630
631 -nfp | --nfp | --nf)
632 # Obsolete; use --without-fp.
633 with_fp=no ;;
634
635 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
3ed8e5b6 636 | --no-cr | --no-c | -n)
63e5e3e0
AG
637 no_create=yes ;;
638
639 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
640 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
641 no_recursion=yes ;;
642
643 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
644 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
645 | --oldin | --oldi | --old | --ol | --o)
646 ac_prev=oldincludedir ;;
647 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
648 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
649 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
3ed8e5b6 650 oldincludedir=$ac_optarg ;;
63e5e3e0
AG
651
652 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653 ac_prev=prefix ;;
654 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3ed8e5b6 655 prefix=$ac_optarg ;;
63e5e3e0
AG
656
657 -program-prefix | --program-prefix | --program-prefi | --program-pref \
658 | --program-pre | --program-pr | --program-p)
659 ac_prev=program_prefix ;;
660 -program-prefix=* | --program-prefix=* | --program-prefi=* \
661 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
3ed8e5b6 662 program_prefix=$ac_optarg ;;
63e5e3e0
AG
663
664 -program-suffix | --program-suffix | --program-suffi | --program-suff \
665 | --program-suf | --program-su | --program-s)
666 ac_prev=program_suffix ;;
667 -program-suffix=* | --program-suffix=* | --program-suffi=* \
668 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
3ed8e5b6 669 program_suffix=$ac_optarg ;;
63e5e3e0
AG
670
671 -program-transform-name | --program-transform-name \
672 | --program-transform-nam | --program-transform-na \
673 | --program-transform-n | --program-transform- \
674 | --program-transform | --program-transfor \
675 | --program-transfo | --program-transf \
676 | --program-trans | --program-tran \
677 | --progr-tra | --program-tr | --program-t)
678 ac_prev=program_transform_name ;;
679 -program-transform-name=* | --program-transform-name=* \
680 | --program-transform-nam=* | --program-transform-na=* \
681 | --program-transform-n=* | --program-transform-=* \
682 | --program-transform=* | --program-transfor=* \
683 | --program-transfo=* | --program-transf=* \
684 | --program-trans=* | --program-tran=* \
685 | --progr-tra=* | --program-tr=* | --program-t=*)
3ed8e5b6 686 program_transform_name=$ac_optarg ;;
63e5e3e0
AG
687
688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
689 | -silent | --silent | --silen | --sile | --sil)
690 silent=yes ;;
691
692 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693 ac_prev=sbindir ;;
694 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695 | --sbi=* | --sb=*)
3ed8e5b6 696 sbindir=$ac_optarg ;;
63e5e3e0
AG
697
698 -sharedstatedir | --sharedstatedir | --sharedstatedi \
699 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
700 | --sharedst | --shareds | --shared | --share | --shar \
701 | --sha | --sh)
702 ac_prev=sharedstatedir ;;
703 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
704 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
705 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706 | --sha=* | --sh=*)
3ed8e5b6 707 sharedstatedir=$ac_optarg ;;
63e5e3e0
AG
708
709 -site | --site | --sit)
710 ac_prev=site ;;
711 -site=* | --site=* | --sit=*)
3ed8e5b6 712 site=$ac_optarg ;;
63e5e3e0
AG
713
714 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715 ac_prev=srcdir ;;
716 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3ed8e5b6 717 srcdir=$ac_optarg ;;
63e5e3e0
AG
718
719 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
720 | --syscon | --sysco | --sysc | --sys | --sy)
721 ac_prev=sysconfdir ;;
722 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
723 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3ed8e5b6 724 sysconfdir=$ac_optarg ;;
63e5e3e0
AG
725
726 -target | --target | --targe | --targ | --tar | --ta | --t)
3ed8e5b6 727 ac_prev=target_alias ;;
63e5e3e0 728 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
3ed8e5b6 729 target_alias=$ac_optarg ;;
63e5e3e0
AG
730
731 -v | -verbose | --verbose | --verbos | --verbo | --verb)
732 verbose=yes ;;
733
3ed8e5b6
AT
734 -version | --version | --versio | --versi | --vers | -V)
735 ac_init_version=: ;;
63e5e3e0
AG
736
737 -with-* | --with-*)
3ed8e5b6 738 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
63e5e3e0 739 # Reject names that are not valid shell variable names.
3ed8e5b6
AT
740 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
741 { echo "$as_me: error: invalid package name: $ac_package" >&2
742 { (exit 1); exit 1; }; }
63e5e3e0 743 ac_package=`echo $ac_package| sed 's/-/_/g'`
3ed8e5b6
AT
744 case $ac_option in
745 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
63e5e3e0
AG
746 *) ac_optarg=yes ;;
747 esac
3ed8e5b6 748 eval "with_$ac_package='$ac_optarg'" ;;
63e5e3e0
AG
749
750 -without-* | --without-*)
3ed8e5b6 751 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
63e5e3e0 752 # Reject names that are not valid shell variable names.
3ed8e5b6
AT
753 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754 { echo "$as_me: error: invalid package name: $ac_package" >&2
755 { (exit 1); exit 1; }; }
756 ac_package=`echo $ac_package | sed 's/-/_/g'`
757 eval "with_$ac_package=no" ;;
63e5e3e0
AG
758
759 --x)
760 # Obsolete; use --with-x.
761 with_x=yes ;;
762
763 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
764 | --x-incl | --x-inc | --x-in | --x-i)
765 ac_prev=x_includes ;;
766 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
767 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
3ed8e5b6 768 x_includes=$ac_optarg ;;
63e5e3e0
AG
769
770 -x-libraries | --x-libraries | --x-librarie | --x-librari \
771 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
772 ac_prev=x_libraries ;;
773 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
774 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
3ed8e5b6 775 x_libraries=$ac_optarg ;;
63e5e3e0 776
3ed8e5b6
AT
777 -*) { echo "$as_me: error: unrecognized option: $ac_option
778Try \`$0 --help' for more information." >&2
779 { (exit 1); exit 1; }; }
63e5e3e0
AG
780 ;;
781
3ed8e5b6
AT
782 *=*)
783 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
784 # Reject names that are not valid shell variable names.
785 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
786 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
787 { (exit 1); exit 1; }; }
788 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
789 eval "$ac_envvar='$ac_optarg'"
790 export $ac_envvar ;;
791
63e5e3e0 792 *)
3ed8e5b6
AT
793 # FIXME: should be removed in autoconf 3.0.
794 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
795 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
796 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
797 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
63e5e3e0
AG
798 ;;
799
800 esac
801done
802
803if test -n "$ac_prev"; then
3ed8e5b6
AT
804 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
805 { echo "$as_me: error: missing argument to $ac_option" >&2
806 { (exit 1); exit 1; }; }
63e5e3e0 807fi
63e5e3e0 808
3ed8e5b6
AT
809# Be sure to have absolute paths.
810for ac_var in exec_prefix prefix
811do
812 eval ac_val=$`echo $ac_var`
813 case $ac_val in
814 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
815 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
816 { (exit 1); exit 1; }; };;
817 esac
818done
63e5e3e0 819
3ed8e5b6
AT
820# Be sure to have absolute paths.
821for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
822 localstatedir libdir includedir oldincludedir infodir mandir
63e5e3e0 823do
3ed8e5b6
AT
824 eval ac_val=$`echo $ac_var`
825 case $ac_val in
826 [\\/$]* | ?:[\\/]* ) ;;
827 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828 { (exit 1); exit 1; }; };;
63e5e3e0
AG
829 esac
830done
831
3ed8e5b6
AT
832# There might be people who depend on the old broken behavior: `$host'
833# used to hold the argument of --host etc.
834# FIXME: To remove some day.
835build=$build_alias
836host=$host_alias
837target=$target_alias
838
839# FIXME: To remove some day.
840if test "x$host_alias" != x; then
841 if test "x$build_alias" = x; then
842 cross_compiling=maybe
843 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
844 If a cross compiler is detected then cross compile mode will be used." >&2
845 elif test "x$build_alias" != "x$host_alias"; then
846 cross_compiling=yes
847 fi
848fi
63e5e3e0 849
3ed8e5b6
AT
850ac_tool_prefix=
851test -n "$host_alias" && ac_tool_prefix=$host_alias-
852
853test "$silent" = yes && exec 6>/dev/null
63e5e3e0 854
63e5e3e0
AG
855
856# Find the source files, if location was not specified.
857if test -z "$srcdir"; then
858 ac_srcdir_defaulted=yes
859 # Try the directory containing this script, then its parent.
3ed8e5b6
AT
860 ac_confdir=`(dirname "$0") 2>/dev/null ||
861$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
862 X"$0" : 'X\(//\)[^/]' \| \
863 X"$0" : 'X\(//\)$' \| \
864 X"$0" : 'X\(/\)' \| \
865 . : '\(.\)' 2>/dev/null ||
866echo X"$0" |
867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
868 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
869 /^X\(\/\/\)$/{ s//\1/; q; }
870 /^X\(\/\).*/{ s//\1/; q; }
871 s/.*/./; q'`
63e5e3e0
AG
872 srcdir=$ac_confdir
873 if test ! -r $srcdir/$ac_unique_file; then
874 srcdir=..
875 fi
876else
877 ac_srcdir_defaulted=no
878fi
879if test ! -r $srcdir/$ac_unique_file; then
880 if test "$ac_srcdir_defaulted" = yes; then
3ed8e5b6
AT
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
882 { (exit 1); exit 1; }; }
63e5e3e0 883 else
3ed8e5b6
AT
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
885 { (exit 1); exit 1; }; }
63e5e3e0
AG
886 fi
887fi
3ed8e5b6
AT
888(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
889 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
890 { (exit 1); exit 1; }; }
891srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
892ac_env_build_alias_set=${build_alias+set}
893ac_env_build_alias_value=$build_alias
894ac_cv_env_build_alias_set=${build_alias+set}
895ac_cv_env_build_alias_value=$build_alias
896ac_env_host_alias_set=${host_alias+set}
897ac_env_host_alias_value=$host_alias
898ac_cv_env_host_alias_set=${host_alias+set}
899ac_cv_env_host_alias_value=$host_alias
900ac_env_target_alias_set=${target_alias+set}
901ac_env_target_alias_value=$target_alias
902ac_cv_env_target_alias_set=${target_alias+set}
903ac_cv_env_target_alias_value=$target_alias
076e5443
PB
904ac_env_CCAS_set=${CCAS+set}
905ac_env_CCAS_value=$CCAS
906ac_cv_env_CCAS_set=${CCAS+set}
907ac_cv_env_CCAS_value=$CCAS
908ac_env_CCASFLAGS_set=${CCASFLAGS+set}
909ac_env_CCASFLAGS_value=$CCASFLAGS
910ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
911ac_cv_env_CCASFLAGS_value=$CCASFLAGS
3ed8e5b6
AT
912ac_env_CPP_set=${CPP+set}
913ac_env_CPP_value=$CPP
914ac_cv_env_CPP_set=${CPP+set}
915ac_cv_env_CPP_value=$CPP
916ac_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_env_CPPFLAGS_value=$CPPFLAGS
918ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
919ac_cv_env_CPPFLAGS_value=$CPPFLAGS
63e5e3e0 920
3ed8e5b6
AT
921#
922# Report the --help message.
923#
924if test "$ac_init_help" = "long"; then
925 # Omit some internal or obsolete options to make the list less imposing.
926 # This message is too long to be a string in the A/UX 3.1 sh.
927 cat <<_ACEOF
928\`configure' configures libffi 2.1 to adapt to many kinds of systems.
63e5e3e0 929
3ed8e5b6
AT
930Usage: $0 [OPTION]... [VAR=VALUE]...
931
932To assign environment variables (e.g., CC, CFLAGS...), specify them as
933VAR=VALUE. See below for descriptions of some of the useful variables.
934
935Defaults for the options are specified in brackets.
936
937Configuration:
938 -h, --help display this help and exit
939 --help=short display options specific to this package
940 --help=recursive display the short help of all the included packages
941 -V, --version display version information and exit
942 -q, --quiet, --silent do not print \`checking...' messages
943 --cache-file=FILE cache test results in FILE [disabled]
944 -C, --config-cache alias for \`--cache-file=config.cache'
945 -n, --no-create do not create output files
946 --srcdir=DIR find the sources in DIR [configure dir or \`..']
947
948_ACEOF
949
950 cat <<_ACEOF
951Installation directories:
952 --prefix=PREFIX install architecture-independent files in PREFIX
953 [$ac_default_prefix]
954 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
955 [PREFIX]
956
957By default, \`make install' will install all the files in
958\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
959an installation prefix other than \`$ac_default_prefix' using \`--prefix',
960for instance \`--prefix=\$HOME'.
961
962For better control, use the options below.
963
964Fine tuning of the installation directories:
965 --bindir=DIR user executables [EPREFIX/bin]
966 --sbindir=DIR system admin executables [EPREFIX/sbin]
967 --libexecdir=DIR program executables [EPREFIX/libexec]
968 --datadir=DIR read-only architecture-independent data [PREFIX/share]
969 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
970 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
971 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
972 --libdir=DIR object code libraries [EPREFIX/lib]
973 --includedir=DIR C header files [PREFIX/include]
974 --oldincludedir=DIR C header files for non-gcc [/usr/include]
975 --infodir=DIR info documentation [PREFIX/info]
976 --mandir=DIR man documentation [PREFIX/man]
977_ACEOF
978
979 cat <<\_ACEOF
980
981Program names:
982 --program-prefix=PREFIX prepend PREFIX to installed program names
983 --program-suffix=SUFFIX append SUFFIX to installed program names
984 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
985
986System types:
987 --build=BUILD configure for building on BUILD [guessed]
988 --host=HOST cross-compile to build programs to run on HOST [BUILD]
989 --target=TARGET configure for building compilers for TARGET [HOST]
990_ACEOF
991fi
992
993if test -n "$ac_init_help"; then
994 case $ac_init_help in
995 short | recursive ) echo "Configuration of libffi 2.1:";;
996 esac
997 cat <<\_ACEOF
998
999Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
076e5443
PB
1002 --enable-multilib build many library versions (default)
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1cf3d07d
SE
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=yes]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
3ed8e5b6 1011 --disable-libtool-lock avoid locking (might break parallel builds)
076e5443
PB
1012 --enable-maintainer-mode enable make rules and dependencies not useful
1013 (and sometimes confusing) to the casual installer
3ed8e5b6
AT
1014 --enable-debug debugging mode
1015 --disable-structs omit code for struct support
1016 --disable-raw-api make the raw api unavailable
1017 --enable-purify-safety purify-safe mode
1018
1019Optional Packages:
1020 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1021 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
1022 --with-pic try to use only PIC/non-PIC objects [default=use
1023 both]
1024 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3ed8e5b6
AT
1025
1026Some influential environment variables:
1027 CC C compiler command
1028 CFLAGS C compiler flags
1029 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1030 nonstandard directory <lib dir>
1031 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1032 headers in a nonstandard directory <include dir>
076e5443
PB
1033 CCAS assembler compiler command (defaults to CC)
1034 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
3ed8e5b6
AT
1035 CPP C preprocessor
1036
1037Use these variables to override the choices made by `configure' or to help
1038it to find libraries and programs with nonstandard names/locations.
1039
1040Report bugs to <http://gcc.gnu.org/bugs.html>.
1041_ACEOF
63e5e3e0
AG
1042fi
1043
3ed8e5b6
AT
1044if test "$ac_init_help" = "recursive"; then
1045 # If there are subdirs, report their specific --help.
1046 ac_popdir=`pwd`
1047 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1048 test -d $ac_dir || continue
1049 ac_builddir=.
1050
1051if test "$ac_dir" != .; then
1052 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1053 # A "../" for each directory in $ac_dir_suffix.
1054 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
63e5e3e0 1055else
3ed8e5b6 1056 ac_dir_suffix= ac_top_builddir=
63e5e3e0
AG
1057fi
1058
3ed8e5b6
AT
1059case $srcdir in
1060 .) # No --srcdir option. We are building in place.
1061 ac_srcdir=.
1062 if test -z "$ac_top_builddir"; then
1063 ac_top_srcdir=.
1064 else
1065 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1066 fi ;;
1067 [\\/]* | ?:[\\/]* ) # Absolute path.
1068 ac_srcdir=$srcdir$ac_dir_suffix;
1069 ac_top_srcdir=$srcdir ;;
1070 *) # Relative path.
1071 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1072 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1073esac
675cdab3 1074
3ed8e5b6
AT
1075# Do not use `cd foo && pwd` to compute absolute paths, because
1076# the directories may not exist.
1077case `pwd` in
1078.) ac_abs_builddir="$ac_dir";;
1079*)
1080 case "$ac_dir" in
1081 .) ac_abs_builddir=`pwd`;;
1082 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1083 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1084 esac;;
1085esac
1086case $ac_abs_builddir in
1087.) ac_abs_top_builddir=${ac_top_builddir}.;;
1088*)
1089 case ${ac_top_builddir}. in
1090 .) ac_abs_top_builddir=$ac_abs_builddir;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1092 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1093 esac;;
1094esac
1095case $ac_abs_builddir in
1096.) ac_abs_srcdir=$ac_srcdir;;
1097*)
1098 case $ac_srcdir in
1099 .) ac_abs_srcdir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1101 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1102 esac;;
1103esac
1104case $ac_abs_builddir in
1105.) ac_abs_top_srcdir=$ac_top_srcdir;;
1106*)
1107 case $ac_top_srcdir in
1108 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1110 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1111 esac;;
1112esac
675cdab3 1113
3ed8e5b6
AT
1114 cd $ac_dir
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1117 echo
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1120 echo
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1124 echo
1125 $ac_configure --help
1126 else
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128 fi
88d8c771 1129 cd $ac_popdir
3ed8e5b6 1130 done
675cdab3
BM
1131fi
1132
3ed8e5b6
AT
1133test -n "$ac_init_help" && exit 0
1134if $ac_init_version; then
1135 cat <<\_ACEOF
1136libffi configure 2.1
1137generated by GNU Autoconf 2.59
675cdab3 1138
3ed8e5b6
AT
1139Copyright (C) 2003 Free Software Foundation, Inc.
1140This configure script is free software; the Free Software Foundation
1141gives unlimited permission to copy, distribute and modify it.
1142_ACEOF
1143 exit 0
675cdab3 1144fi
3ed8e5b6
AT
1145exec 5>config.log
1146cat >&5 <<_ACEOF
1147This file contains any messages produced by compilers while
1148running configure, to aid debugging if configure makes a mistake.
675cdab3 1149
3ed8e5b6
AT
1150It was created by libffi $as_me 2.1, which was
1151generated by GNU Autoconf 2.59. Invocation command line was
63e5e3e0 1152
3ed8e5b6 1153 $ $0 $@
63e5e3e0 1154
3ed8e5b6
AT
1155_ACEOF
1156{
1157cat <<_ASUNAME
1158## --------- ##
1159## Platform. ##
1160## --------- ##
1161
1162hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170
1171/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178
1179_ASUNAME
1180
1181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182for as_dir in $PATH
1183do
1184 IFS=$as_save_IFS
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1187done
63e5e3e0 1188
3ed8e5b6 1189} >&5
63e5e3e0 1190
3ed8e5b6 1191cat >&5 <<_ACEOF
63e5e3e0 1192
6706f116 1193
3ed8e5b6
AT
1194## ----------- ##
1195## Core tests. ##
1196## ----------- ##
3c18f2d1 1197
3ed8e5b6 1198_ACEOF
3c18f2d1 1199
3c18f2d1 1200
3ed8e5b6
AT
1201# Keep a trace of the command line.
1202# Strip out --no-create and --no-recursion so they do not pile up.
1203# Strip out --silent because we don't want to record it for future runs.
1204# Also quote any args containing shell meta-characters.
1205# Make two passes to allow for proper duplicate-argument suppression.
1206ac_configure_args=
1207ac_configure_args0=
1208ac_configure_args1=
1209ac_sep=
1210ac_must_keep_next=false
1211for ac_pass in 1 2
1212do
1213 for ac_arg
1214 do
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 2)
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1238 ;;
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1241 fi
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
1245 ;;
1246 esac
1247 done
63e5e3e0 1248done
3ed8e5b6
AT
1249$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252# When interrupted or exit'd, cleanup temporary files, and complete
1253# config.log. We remove comments because anyway the quotes in there
1254# would cause problems or look ugly.
1255# WARNING: Be sure not to use single quotes in there, as some shells,
1256# such as our DU 5.0 friend, will then `close' the trap.
1257trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1259 {
1260 echo
1261
1262 cat <<\_ASBOX
1263## ---------------- ##
1264## Cache variables. ##
1265## ---------------- ##
1266_ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
1269{
1270 (set) 2>&1 |
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
1273 sed -n \
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 ;;
1277 *)
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280 ;;
1281 esac;
1282}
1283 echo
1284
1285 cat <<\_ASBOX
1286## ----------------- ##
1287## Output variables. ##
1288## ----------------- ##
1289_ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1292 do
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1297
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
1300## ------------- ##
1301## Output files. ##
1302## ------------- ##
1303_ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1306 do
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1311 fi
63e5e3e0 1312
3ed8e5b6
AT
1313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315## ----------- ##
1316## confdefs.h. ##
1317## ----------- ##
1318_ASBOX
1319 echo
1320 sed "/^$/d" confdefs.h | sort
1321 echo
1322 fi
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
1327 rm -f core *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 exit $exit_status
1330 ' 0
1331for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333done
1334ac_signal=0
63e5e3e0 1335
3ed8e5b6
AT
1336# confdefs.h avoids OS command line length limits that DEFS can exceed.
1337rm -rf conftest* confdefs.h
1338# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339echo >confdefs.h
6bee5372 1340
3ed8e5b6 1341# Predefined preprocessor variables.
bbf3057b 1342
3ed8e5b6
AT
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_NAME "$PACKAGE_NAME"
1345_ACEOF
bbf3057b
AT
1346
1347
3ed8e5b6
AT
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350_ACEOF
63e5e3e0 1351
63e5e3e0 1352
3ed8e5b6
AT
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_VERSION "$PACKAGE_VERSION"
1355_ACEOF
63e5e3e0 1356
bbf3057b 1357
3ed8e5b6
AT
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_STRING "$PACKAGE_STRING"
1360_ACEOF
bbf3057b 1361
bbf3057b 1362
3ed8e5b6
AT
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365_ACEOF
1366
1367
1368# Let the site file select an alternate cache file if it wants to.
1369# Prefer explicitly selected file to automatically selected ones.
1370if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375 fi
1376fi
1377for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1383 fi
1384done
1385
1386if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1395 esac
1396 fi
1397else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1401fi
1402
1403# Check that the precious variables saved in the cache have kept the same
1404# value.
1405ac_cache_corrupted=false
1406for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1422 *)
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
deb984e6
PB
1424 # differences in whitespace do not lead to failure.
1425 ac_old_val_w=`echo x $ac_old_val`
1426 ac_new_val_w=`echo x $ac_new_val`
1427 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
3ed8e5b6 1429echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
deb984e6
PB
1430 ac_cache_corrupted=:
1431 else
1432 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1433echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1434 eval $ac_var=\$ac_old_val
1435 fi
1436 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1437echo "$as_me: former value: \`$ac_old_val'" >&2;}
1438 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1439echo "$as_me: current value: \`$ac_new_val'" >&2;}
3ed8e5b6
AT
1440 fi;;
1441 esac
1442 # Pass precious variables to config.status.
1443 if test "$ac_new_set" = set; then
1444 case $ac_new_val in
1445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1446 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 *) ac_arg=$ac_var=$ac_new_val ;;
1448 esac
1449 case " $ac_configure_args " in
1450 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1451 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1452 esac
1453 fi
1454done
1455if $ac_cache_corrupted; then
18c04407
RW
1456 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1457echo "$as_me: error: in \`$ac_pwd':" >&2;}
3ed8e5b6
AT
1458 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1459echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1460 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1461echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1462 { (exit 1); exit 1; }; }
1463fi
1464
1465ac_ext=c
1466ac_cpp='$CPP $CPPFLAGS'
1467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
18c04407
RW
1493
1494
1495
3ed8e5b6
AT
1496
1497
1498
1499
1500 ac_config_headers="$ac_config_headers fficonfig.h"
1501
1502
1503# Default to --enable-multilib
1504# Check whether --enable-multilib or --disable-multilib was given.
1505if test "${enable_multilib+set}" = set; then
1506 enableval="$enable_multilib"
1507 case "$enableval" in
1508 yes) multilib=yes ;;
1509 no) multilib=no ;;
1510 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1511echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1512 { (exit 1); exit 1; }; } ;;
1513 esac
1514else
1515 multilib=yes
1516fi;
1517
1518# We may get other options which we leave undocumented:
1519# --with-target-subdir, --with-multisrctop, --with-multisubdir
1520# See config-ml.in if you want the gory details.
1521
1522if test "$srcdir" = "."; then
1523 if test "$with_target_subdir" != "."; then
1524 multi_basedir="$srcdir/$with_multisrctop../.."
1525 else
1526 multi_basedir="$srcdir/$with_multisrctop.."
1527 fi
1528else
1529 multi_basedir="$srcdir/.."
1530fi
1531
1532
8a489465
JH
1533# Even if the default multilib is not a cross compilation,
1534# it may be that some of the other multilibs are.
1535if test $cross_compiling = no && test $multilib = yes \
1536 && test "x${with_multisubdir}" != x ; then
1537 cross_compiling=maybe
1538fi
1539
3ed8e5b6
AT
1540 ac_config_commands="$ac_config_commands default-1"
1541
3ed8e5b6 1542
076e5443
PB
1543ac_aux_dir=
1544for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3ed8e5b6
AT
1545 if test -f $ac_dir/install-sh; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 break
1549 elif test -f $ac_dir/install.sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 break
1553 elif test -f $ac_dir/shtool; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 break
1557 fi
1558done
1559if test -z "$ac_aux_dir"; then
076e5443
PB
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3ed8e5b6
AT
1562 { (exit 1); exit 1; }; }
1563fi
1564ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1567
3ed8e5b6
AT
1568# Make sure we can run config.sub.
1569$ac_config_sub sun4 >/dev/null 2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1573
1574echo "$as_me:$LINENO: checking build system type" >&5
1575echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579 ac_cv_build_alias=$build_alias
1580test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias=`$ac_config_guess`
1582test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1590
1591fi
1592echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593echo "${ECHO_T}$ac_cv_build" >&6
1594build=$ac_cv_build
1595build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598
1599
1600echo "$as_me:$LINENO: checking host system type" >&5
1601echo $ECHO_N "checking host system type... $ECHO_C" >&6
1602if test "${ac_cv_host+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604else
1605 ac_cv_host_alias=$host_alias
1606test -z "$ac_cv_host_alias" &&
1607 ac_cv_host_alias=$ac_cv_build_alias
1608ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1610echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1612
1613fi
1614echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1615echo "${ECHO_T}$ac_cv_host" >&6
1616host=$ac_cv_host
1617host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1620
1621
1622echo "$as_me:$LINENO: checking target system type" >&5
1623echo $ECHO_N "checking target system type... $ECHO_C" >&6
1624if test "${ac_cv_target+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627 ac_cv_target_alias=$target_alias
1628test "x$ac_cv_target_alias" = "x" &&
1629 ac_cv_target_alias=$ac_cv_host_alias
1630ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1631 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1632echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1633 { (exit 1); exit 1; }; }
1634
1635fi
1636echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1637echo "${ECHO_T}$ac_cv_target" >&6
1638target=$ac_cv_target
1639target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1640target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1641target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1642
1643
1644# The aliases save the names the user supplied, while $host etc.
1645# will get canonicalized.
1646test -n "$target_alias" &&
bbf3057b
AT
1647 test "$program_prefix$program_suffix$program_transform_name" = \
1648 NONENONEs,x,x, &&
1649 program_prefix=${target_alias}-
3ed8e5b6
AT
1650target_alias=${target_alias-$host_alias}
1651
88d8c771
AG
1652. ${srcdir}/configure.host
1653
b85e31b9 1654am__api_version="1.9"
3ed8e5b6
AT
1655# Find a good install program. We prefer a C program (faster),
1656# so one script is as good as another. But avoid the broken or
1657# incompatible versions:
1658# SysV /etc/install, /usr/sbin/install
1659# SunOS /usr/etc/install
1660# IRIX /sbin/install
1661# AIX /bin/install
1662# AmigaOS /C/install, which installs bootblocks on floppy discs
1663# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1664# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1665# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1666# OS/2's system install, which has a completely different semantic
1667# ./install, which can be erroneously created by make from ./install.sh.
38d24731 1668# Reject install programs that cannot install multiple files.
3ed8e5b6
AT
1669echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1670echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1671if test -z "$INSTALL"; then
1672if test "${ac_cv_path_install+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676for as_dir in $PATH
1677do
1678 IFS=$as_save_IFS
1679 test -z "$as_dir" && as_dir=.
1680 # Account for people who put trailing slashes in PATH elements.
1681case $as_dir/ in
1682 ./ | .// | /cC/* | \
1683 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1684 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1685 /usr/ucb/* ) ;;
1686 *)
1687 # OSF1 and SCO ODT 3.0 have their own names for install.
1688 # Don't use installbsd from OSF since it installs stuff as root
1689 # by default.
1690 for ac_prog in ginstall scoinst install; do
1691 for ac_exec_ext in '' $ac_executable_extensions; do
1692 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1693 if test $ac_prog = install &&
1694 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1695 # AIX install. It has an incompatible calling convention.
1696 :
1697 elif test $ac_prog = install &&
1698 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1699 # program-specific install script used by HP pwplus--don't use.
1700 :
1701 else
38d24731
RW
1702 rm -rf conftest.one conftest.two conftest.dir
1703 echo one > conftest.one
1704 echo two > conftest.two
1705 mkdir conftest.dir
1706 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1707 test -s conftest.one && test -s conftest.two &&
1708 test -s conftest.dir/conftest.one &&
1709 test -s conftest.dir/conftest.two
1710 then
1711 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1712 break 3
1713 fi
3ed8e5b6
AT
1714 fi
1715 fi
1716 done
1717 done
1718 ;;
1719esac
1720done
1721
38d24731 1722rm -rf conftest.one conftest.two conftest.dir
3ed8e5b6
AT
1723
1724fi
1725 if test "${ac_cv_path_install+set}" = set; then
1726 INSTALL=$ac_cv_path_install
1727 else
38d24731
RW
1728 # As a last resort, use the slow shell script. Don't cache a
1729 # value for INSTALL within a source directory, because that will
3ed8e5b6 1730 # break other packages using the cache if that directory is
38d24731 1731 # removed, or if the value is a relative name.
3ed8e5b6
AT
1732 INSTALL=$ac_install_sh
1733 fi
1734fi
1735echo "$as_me:$LINENO: result: $INSTALL" >&5
1736echo "${ECHO_T}$INSTALL" >&6
1737
1738# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1739# It thinks the first close brace ends the variable substitution.
1740test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1741
1742test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1743
1744test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1745
1746echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1747echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1748# Just in case
1749sleep 1
1750echo timestamp > conftest.file
1751# Do `set' in a subshell so we don't clobber the current shell's
1752# arguments. Must try -L first in case configure is actually a
1753# symlink; some systems play weird games with the mod time of symlinks
1754# (eg FreeBSD returns the mod time of the symlink's containing
1755# directory).
1756if (
1757 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1758 if test "$*" = "X"; then
1759 # -L didn't work.
1760 set X `ls -t $srcdir/configure conftest.file`
1761 fi
1762 rm -f conftest.file
1763 if test "$*" != "X $srcdir/configure conftest.file" \
1764 && test "$*" != "X conftest.file $srcdir/configure"; then
1765
1766 # If neither matched, then we have a broken ls. This can happen
1767 # if, for instance, CONFIG_SHELL is bash and it inherits a
1768 # broken ls alias from the environment. This has actually
1769 # happened. Such a system could not be considered "sane".
1770 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1771alias in your environment" >&5
1772echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1773alias in your environment" >&2;}
1774 { (exit 1); exit 1; }; }
1775 fi
1776
1777 test "$2" = conftest.file
1778 )
1779then
1780 # Ok.
1781 :
1782else
1783 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1784Check your system clock" >&5
1785echo "$as_me: error: newly created file is older than distributed files!
1786Check your system clock" >&2;}
1787 { (exit 1); exit 1; }; }
1788fi
1789echo "$as_me:$LINENO: result: yes" >&5
1790echo "${ECHO_T}yes" >&6
1791test "$program_prefix" != NONE &&
1792 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1793# Use a double $ so make ignores it.
1794test "$program_suffix" != NONE &&
1795 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1796# Double any \ or $. echo might interpret backslashes.
1797# By default was `s,x,x', remove it if useless.
1798cat <<\_ACEOF >conftest.sed
1799s/[\\$]/&&/g;s/;s,x,x,$//
1800_ACEOF
1801program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1802rm conftest.sed
1803
3ed8e5b6
AT
1804# expand $ac_aux_dir to an absolute path
1805am_aux_dir=`cd $ac_aux_dir && pwd`
1806
1807test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1808# Use eval to expand $SHELL
1809if eval "$MISSING --run true"; then
1810 am_missing_run="$MISSING --run "
1811else
1812 am_missing_run=
1813 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1814echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1815fi
1816
076e5443 1817if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
b85e31b9
KC
1818 # We used to keeping the `.' as first argument, in order to
1819 # allow $(mkdir_p) to be used without argument. As in
076e5443 1820 # $(mkdir_p) $(somedir)
b85e31b9
KC
1821 # where $(somedir) is conditionally defined. However this is wrong
1822 # for two reasons:
1823 # 1. if the package is installed by a user who cannot write `.'
1824 # make install will fail,
1825 # 2. the above comment should most certainly read
1826 # $(mkdir_p) $(DESTDIR)$(somedir)
1827 # so it does not work when $(somedir) is undefined and
1828 # $(DESTDIR) is not.
1829 # To support the latter case, we have to write
1830 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1831 # so the `.' trick is pointless.
1832 mkdir_p='mkdir -p --'
076e5443
PB
1833else
1834 # On NextStep and OpenStep, the `mkdir' command does not
1835 # recognize any option. It will interpret all options as
1836 # directories to create, and then abort because `.' already
1837 # exists.
1838 for d in ./-p ./--version;
1839 do
1840 test -d $d && rmdir $d
1841 done
1842 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1843 if test -f "$ac_aux_dir/mkinstalldirs"; then
1844 mkdir_p='$(mkinstalldirs)'
1845 else
1846 mkdir_p='$(install_sh) -d'
1847 fi
1848fi
1849
3ed8e5b6
AT
1850for ac_prog in gawk mawk nawk awk
1851do
1852 # Extract the first word of "$ac_prog", so it can be a program name with args.
1853set dummy $ac_prog; ac_word=$2
1854echo "$as_me:$LINENO: checking for $ac_word" >&5
1855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856if test "${ac_cv_prog_AWK+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858else
1859 if test -n "$AWK"; then
1860 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1861else
1862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863for as_dir in $PATH
1864do
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_AWK="$ac_prog"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 break 2
1872 fi
1873done
1874done
1875
1876fi
1877fi
1878AWK=$ac_cv_prog_AWK
1879if test -n "$AWK"; then
1880 echo "$as_me:$LINENO: result: $AWK" >&5
1881echo "${ECHO_T}$AWK" >&6
1882else
1883 echo "$as_me:$LINENO: result: no" >&5
1884echo "${ECHO_T}no" >&6
1885fi
1886
1887 test -n "$AWK" && break
1888done
1889
1890echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1891echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1892set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1893if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1895else
1896 cat >conftest.make <<\_ACEOF
1897all:
1898 @echo 'ac_maketemp="$(MAKE)"'
1899_ACEOF
1900# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1901eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1902if test -n "$ac_maketemp"; then
1903 eval ac_cv_prog_make_${ac_make}_set=yes
1904else
1905 eval ac_cv_prog_make_${ac_make}_set=no
1906fi
1907rm -f conftest.make
1908fi
1909if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1910 echo "$as_me:$LINENO: result: yes" >&5
1911echo "${ECHO_T}yes" >&6
1912 SET_MAKE=
1913else
1914 echo "$as_me:$LINENO: result: no" >&5
1915echo "${ECHO_T}no" >&6
1916 SET_MAKE="MAKE=${MAKE-make}"
1917fi
1918
1919rm -rf .tst 2>/dev/null
1920mkdir .tst 2>/dev/null
1921if test -d .tst; then
1922 am__leading_dot=.
1923else
1924 am__leading_dot=_
1925fi
1926rmdir .tst 2>/dev/null
1927
076e5443 1928# test to see if srcdir already configured
3ed8e5b6
AT
1929if test "`cd $srcdir && pwd`" != "`pwd`" &&
1930 test -f $srcdir/config.status; then
1931 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1932echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1933 { (exit 1); exit 1; }; }
1934fi
1935
1936# test whether we have cygpath
1937if test -z "$CYGPATH_W"; then
1938 if (cygpath --version) >/dev/null 2>/dev/null; then
1939 CYGPATH_W='cygpath -w'
1940 else
1941 CYGPATH_W=echo
1942 fi
1943fi
1944
1945
1946# Define the identity of the package.
1947 PACKAGE='libffi'
1948 VERSION='2.1'
1949
1950
1951cat >>confdefs.h <<_ACEOF
1952#define PACKAGE "$PACKAGE"
1953_ACEOF
1954
1955
1956cat >>confdefs.h <<_ACEOF
1957#define VERSION "$VERSION"
1958_ACEOF
1959
1960# Some tools Automake needs.
1961
1962ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1963
1964
1965AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1966
1967
1968AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1969
1970
1971AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1972
1973
1974MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1975
3ed8e5b6
AT
1976install_sh=${install_sh-"$am_aux_dir/install-sh"}
1977
1978# Installed binaries are usually stripped using `strip' when the user
1979# run `make install-strip'. However `strip' might not be the right
1980# tool to use in cross-compilation environments, therefore Automake
1981# will honor the `STRIP' environment variable to overrule this program.
1982if test "$cross_compiling" != no; then
1983 if test -n "$ac_tool_prefix"; then
1984 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1985set dummy ${ac_tool_prefix}strip; ac_word=$2
1986echo "$as_me:$LINENO: checking for $ac_word" >&5
1987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988if test "${ac_cv_prog_STRIP+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990else
1991 if test -n "$STRIP"; then
1992 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1993else
1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995for as_dir in $PATH
1996do
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 break 2
2004 fi
2005done
2006done
2007
2008fi
2009fi
2010STRIP=$ac_cv_prog_STRIP
2011if test -n "$STRIP"; then
2012 echo "$as_me:$LINENO: result: $STRIP" >&5
2013echo "${ECHO_T}$STRIP" >&6
2014else
2015 echo "$as_me:$LINENO: result: no" >&5
2016echo "${ECHO_T}no" >&6
2017fi
2018
2019fi
2020if test -z "$ac_cv_prog_STRIP"; then
2021 ac_ct_STRIP=$STRIP
2022 # Extract the first word of "strip", so it can be a program name with args.
2023set dummy strip; ac_word=$2
2024echo "$as_me:$LINENO: checking for $ac_word" >&5
2025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2026if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028else
2029 if test -n "$ac_ct_STRIP"; then
2030 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2031else
2032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033for as_dir in $PATH
2034do
2035 IFS=$as_save_IFS
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2039 ac_cv_prog_ac_ct_STRIP="strip"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 break 2
2042 fi
2043done
2044done
2045
2046 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2047fi
2048fi
2049ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2050if test -n "$ac_ct_STRIP"; then
2051 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2052echo "${ECHO_T}$ac_ct_STRIP" >&6
2053else
2054 echo "$as_me:$LINENO: result: no" >&5
2055echo "${ECHO_T}no" >&6
2056fi
2057
2058 STRIP=$ac_ct_STRIP
2059else
2060 STRIP="$ac_cv_prog_STRIP"
2061fi
2062
2063fi
2064INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2065
2066# We need awk for the "check" target. The system "awk" is bad on
2067# some platforms.
b85e31b9
KC
2068# Always define AMTAR for backward compatibility.
2069
2070AMTAR=${AMTAR-"${am_missing_run}tar"}
2071
2072am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2073
2074
3ed8e5b6
AT
2075
2076
2077
2078
2079# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2080# We must force CC to /not/ be precious variables; otherwise
2081# the wrong, non-multilib-adjusted value will be used in multilibs.
2082# As a side effect, we have to subst CFLAGS ourselves.
2083
2084
2085
2086ac_ext=c
2087ac_cpp='$CPP $CPPFLAGS'
2088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2090ac_compiler_gnu=$ac_cv_c_compiler_gnu
2091if test -n "$ac_tool_prefix"; then
2092 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2093set dummy ${ac_tool_prefix}gcc; ac_word=$2
2094echo "$as_me:$LINENO: checking for $ac_word" >&5
2095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096if test "${ac_cv_prog_CC+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099 if test -n "$CC"; then
2100 ac_cv_prog_CC="$CC" # Let the user override the test.
2101else
2102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103for as_dir in $PATH
2104do
2105 IFS=$as_save_IFS
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
2108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111 break 2
2112 fi
2113done
2114done
2115
2116fi
2117fi
2118CC=$ac_cv_prog_CC
2119if test -n "$CC"; then
2120 echo "$as_me:$LINENO: result: $CC" >&5
2121echo "${ECHO_T}$CC" >&6
2122else
2123 echo "$as_me:$LINENO: result: no" >&5
2124echo "${ECHO_T}no" >&6
2125fi
2126
2127fi
2128if test -z "$ac_cv_prog_CC"; then
2129 ac_ct_CC=$CC
2130 # Extract the first word of "gcc", so it can be a program name with args.
2131set dummy gcc; ac_word=$2
2132echo "$as_me:$LINENO: checking for $ac_word" >&5
2133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136else
2137 if test -n "$ac_ct_CC"; then
2138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2139else
2140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141for as_dir in $PATH
2142do
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147 ac_cv_prog_ac_ct_CC="gcc"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 break 2
2150 fi
2151done
2152done
2153
2154fi
2155fi
2156ac_ct_CC=$ac_cv_prog_ac_ct_CC
2157if test -n "$ac_ct_CC"; then
2158 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2159echo "${ECHO_T}$ac_ct_CC" >&6
2160else
2161 echo "$as_me:$LINENO: result: no" >&5
2162echo "${ECHO_T}no" >&6
2163fi
2164
2165 CC=$ac_ct_CC
2166else
2167 CC="$ac_cv_prog_CC"
2168fi
2169
2170if test -z "$CC"; then
2171 if test -n "$ac_tool_prefix"; then
2172 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2173set dummy ${ac_tool_prefix}cc; ac_word=$2
2174echo "$as_me:$LINENO: checking for $ac_word" >&5
2175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2176if test "${ac_cv_prog_CC+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178else
2179 if test -n "$CC"; then
2180 ac_cv_prog_CC="$CC" # Let the user override the test.
2181else
2182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183for as_dir in $PATH
2184do
2185 IFS=$as_save_IFS
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
2188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2189 ac_cv_prog_CC="${ac_tool_prefix}cc"
2190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 break 2
2192 fi
2193done
2194done
2195
2196fi
2197fi
2198CC=$ac_cv_prog_CC
2199if test -n "$CC"; then
2200 echo "$as_me:$LINENO: result: $CC" >&5
2201echo "${ECHO_T}$CC" >&6
2202else
2203 echo "$as_me:$LINENO: result: no" >&5
2204echo "${ECHO_T}no" >&6
2205fi
2206
2207fi
2208if test -z "$ac_cv_prog_CC"; then
2209 ac_ct_CC=$CC
2210 # Extract the first word of "cc", so it can be a program name with args.
2211set dummy cc; ac_word=$2
2212echo "$as_me:$LINENO: checking for $ac_word" >&5
2213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2214if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216else
2217 if test -n "$ac_ct_CC"; then
2218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2219else
2220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221for as_dir in $PATH
2222do
2223 IFS=$as_save_IFS
2224 test -z "$as_dir" && as_dir=.
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227 ac_cv_prog_ac_ct_CC="cc"
2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229 break 2
2230 fi
2231done
2232done
2233
2234fi
2235fi
2236ac_ct_CC=$ac_cv_prog_ac_ct_CC
2237if test -n "$ac_ct_CC"; then
2238 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2239echo "${ECHO_T}$ac_ct_CC" >&6
2240else
2241 echo "$as_me:$LINENO: result: no" >&5
2242echo "${ECHO_T}no" >&6
2243fi
2244
2245 CC=$ac_ct_CC
2246else
2247 CC="$ac_cv_prog_CC"
2248fi
2249
2250fi
2251if test -z "$CC"; then
2252 # Extract the first word of "cc", so it can be a program name with args.
2253set dummy cc; ac_word=$2
2254echo "$as_me:$LINENO: checking for $ac_word" >&5
2255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256if test "${ac_cv_prog_CC+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258else
2259 if test -n "$CC"; then
2260 ac_cv_prog_CC="$CC" # Let the user override the test.
2261else
2262 ac_prog_rejected=no
2263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264for as_dir in $PATH
2265do
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2270 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2271 ac_prog_rejected=yes
2272 continue
2273 fi
2274 ac_cv_prog_CC="cc"
2275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276 break 2
2277 fi
2278done
2279done
2280
2281if test $ac_prog_rejected = yes; then
2282 # We found a bogon in the path, so make sure we never use it.
2283 set dummy $ac_cv_prog_CC
2284 shift
2285 if test $# != 0; then
2286 # We chose a different compiler from the bogus one.
2287 # However, it has the same basename, so the bogon will be chosen
2288 # first if we set CC to just the basename; use the full file name.
2289 shift
2290 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2291 fi
2292fi
2293fi
2294fi
2295CC=$ac_cv_prog_CC
2296if test -n "$CC"; then
2297 echo "$as_me:$LINENO: result: $CC" >&5
2298echo "${ECHO_T}$CC" >&6
2299else
2300 echo "$as_me:$LINENO: result: no" >&5
2301echo "${ECHO_T}no" >&6
2302fi
2303
2304fi
2305if test -z "$CC"; then
2306 if test -n "$ac_tool_prefix"; then
2307 for ac_prog in cl
2308 do
2309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2310set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2311echo "$as_me:$LINENO: checking for $ac_word" >&5
2312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2313if test "${ac_cv_prog_CC+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2315else
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2318else
2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320for as_dir in $PATH
2321do
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2329 fi
2330done
2331done
2332
2333fi
2334fi
2335CC=$ac_cv_prog_CC
2336if test -n "$CC"; then
2337 echo "$as_me:$LINENO: result: $CC" >&5
2338echo "${ECHO_T}$CC" >&6
2339else
2340 echo "$as_me:$LINENO: result: no" >&5
2341echo "${ECHO_T}no" >&6
2342fi
2343
2344 test -n "$CC" && break
2345 done
2346fi
2347if test -z "$CC"; then
2348 ac_ct_CC=$CC
2349 for ac_prog in cl
2350do
2351 # Extract the first word of "$ac_prog", so it can be a program name with args.
2352set dummy $ac_prog; ac_word=$2
2353echo "$as_me:$LINENO: checking for $ac_word" >&5
2354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2355if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2357else
2358 if test -n "$ac_ct_CC"; then
2359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2360else
2361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362for as_dir in $PATH
2363do
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
2366 for ac_exec_ext in '' $ac_executable_extensions; do
2367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2368 ac_cv_prog_ac_ct_CC="$ac_prog"
2369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 break 2
2371 fi
2372done
2373done
2374
2375fi
2376fi
2377ac_ct_CC=$ac_cv_prog_ac_ct_CC
2378if test -n "$ac_ct_CC"; then
2379 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2380echo "${ECHO_T}$ac_ct_CC" >&6
2381else
2382 echo "$as_me:$LINENO: result: no" >&5
2383echo "${ECHO_T}no" >&6
2384fi
2385
2386 test -n "$ac_ct_CC" && break
2387done
2388
2389 CC=$ac_ct_CC
2390fi
2391
2392fi
2393
2394
18c04407
RW
2395test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2396echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3ed8e5b6
AT
2398See \`config.log' for more details." >&5
2399echo "$as_me: error: no acceptable C compiler found in \$PATH
2400See \`config.log' for more details." >&2;}
18c04407 2401 { (exit 1); exit 1; }; }; }
3ed8e5b6
AT
2402
2403# Provide some information about the compiler.
2404echo "$as_me:$LINENO:" \
2405 "checking for C compiler version" >&5
2406ac_compiler=`set X $ac_compile; echo $2`
2407{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2408 (eval $ac_compiler --version </dev/null >&5) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }
2412{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2413 (eval $ac_compiler -v </dev/null >&5) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }
2417{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2418 (eval $ac_compiler -V </dev/null >&5) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }
2422
2423cat >conftest.$ac_ext <<_ACEOF
2424/* confdefs.h. */
2425_ACEOF
2426cat confdefs.h >>conftest.$ac_ext
2427cat >>conftest.$ac_ext <<_ACEOF
2428/* end confdefs.h. */
2429
2430int
2431main ()
2432{
2433
2434 ;
2435 return 0;
2436}
2437_ACEOF
2438ac_clean_files_save=$ac_clean_files
2439ac_clean_files="$ac_clean_files a.out a.exe b.out"
2440# Try to create an executable without -o first, disregard a.out.
2441# It will help us diagnose broken compilers, and finding out an intuition
2442# of exeext.
2443echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2444echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2445ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2446if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2447 (eval $ac_link_default) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; then
2451 # Find the output, starting from the most likely. This scheme is
2452# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2453# resort.
2454
2455# Be careful to initialize this variable, since it used to be cached.
2456# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2457ac_cv_exeext=
2458# b.out is created by i960 compilers.
2459for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2460do
2461 test -f "$ac_file" || continue
2462 case $ac_file in
2463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2464 ;;
2465 conftest.$ac_ext )
2466 # This is the source file.
2467 ;;
2468 [ab].out )
2469 # We found the default executable, but exeext='' is most
2470 # certainly right.
2471 break;;
2472 *.* )
2473 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2474 # FIXME: I believe we export ac_cv_exeext for Libtool,
2475 # but it would be cool to find out if it's true. Does anybody
2476 # maintain Libtool? --akim.
2477 export ac_cv_exeext
2478 break;;
2479 * )
2480 break;;
2481 esac
2482done
2483else
2484 echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
18c04407
RW
2487{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2488echo "$as_me: error: in \`$ac_pwd':" >&2;}
3ed8e5b6
AT
2489{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2490See \`config.log' for more details." >&5
2491echo "$as_me: error: C compiler cannot create executables
2492See \`config.log' for more details." >&2;}
18c04407 2493 { (exit 77); exit 77; }; }; }
3ed8e5b6
AT
2494fi
2495
2496ac_exeext=$ac_cv_exeext
2497echo "$as_me:$LINENO: result: $ac_file" >&5
2498echo "${ECHO_T}$ac_file" >&6
2499
2500# Check the compiler produces executables we can run. If not, either
2501# the compiler is broken, or we cross compile.
2502echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2503echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2504# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2505# If not cross compiling, check that we can run a simple program.
2506if test "$cross_compiling" != yes; then
2507 if { ac_try='./$ac_file'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2513 cross_compiling=no
2514 else
2515 if test "$cross_compiling" = maybe; then
2516 cross_compiling=yes
2517 else
18c04407
RW
2518 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2519echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3ed8e5b6
AT
2521If you meant to cross compile, use \`--host'.
2522See \`config.log' for more details." >&5
2523echo "$as_me: error: cannot run C compiled programs.
2524If you meant to cross compile, use \`--host'.
2525See \`config.log' for more details." >&2;}
18c04407 2526 { (exit 1); exit 1; }; }; }
3ed8e5b6
AT
2527 fi
2528 fi
2529fi
2530echo "$as_me:$LINENO: result: yes" >&5
2531echo "${ECHO_T}yes" >&6
2532
2533rm -f a.out a.exe conftest$ac_cv_exeext b.out
2534ac_clean_files=$ac_clean_files_save
2535# Check the compiler produces executables we can run. If not, either
2536# the compiler is broken, or we cross compile.
2537echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2538echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2539echo "$as_me:$LINENO: result: $cross_compiling" >&5
2540echo "${ECHO_T}$cross_compiling" >&6
2541
2542echo "$as_me:$LINENO: checking for suffix of executables" >&5
2543echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2545 (eval $ac_link) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2550# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2551# work properly (i.e., refer to `conftest.exe'), while it won't with
2552# `rm'.
2553for ac_file in conftest.exe conftest conftest.*; do
2554 test -f "$ac_file" || continue
2555 case $ac_file in
2556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2557 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2558 export ac_cv_exeext
2559 break;;
2560 * ) break;;
2561 esac
2562done
2563else
18c04407
RW
2564 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2565echo "$as_me: error: in \`$ac_pwd':" >&2;}
2566{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3ed8e5b6
AT
2567See \`config.log' for more details." >&5
2568echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2569See \`config.log' for more details." >&2;}
18c04407 2570 { (exit 1); exit 1; }; }; }
3ed8e5b6
AT
2571fi
2572
2573rm -f conftest$ac_cv_exeext
2574echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2575echo "${ECHO_T}$ac_cv_exeext" >&6
2576
2577rm -f conftest.$ac_ext
2578EXEEXT=$ac_cv_exeext
2579ac_exeext=$EXEEXT
2580echo "$as_me:$LINENO: checking for suffix of object files" >&5
2581echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2582if test "${ac_cv_objext+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2584else
2585 cat >conftest.$ac_ext <<_ACEOF
2586/* confdefs.h. */
2587_ACEOF
2588cat confdefs.h >>conftest.$ac_ext
2589cat >>conftest.$ac_ext <<_ACEOF
2590/* end confdefs.h. */
2591
2592int
2593main ()
2594{
2595
2596 ;
2597 return 0;
2598}
2599_ACEOF
2600rm -f conftest.o conftest.obj
2601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; then
2606 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2607 case $ac_file in
2608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2609 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2610 break;;
2611 esac
2612done
2613else
2614 echo "$as_me: failed program was:" >&5
2615sed 's/^/| /' conftest.$ac_ext >&5
2616
18c04407
RW
2617{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2618echo "$as_me: error: in \`$ac_pwd':" >&2;}
3ed8e5b6
AT
2619{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2620See \`config.log' for more details." >&5
2621echo "$as_me: error: cannot compute suffix of object files: cannot compile
2622See \`config.log' for more details." >&2;}
18c04407 2623 { (exit 1); exit 1; }; }; }
3ed8e5b6
AT
2624fi
2625
2626rm -f conftest.$ac_cv_objext conftest.$ac_ext
2627fi
2628echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2629echo "${ECHO_T}$ac_cv_objext" >&6
2630OBJEXT=$ac_cv_objext
2631ac_objext=$OBJEXT
2632echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2633echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2634if test "${ac_cv_c_compiler_gnu+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637 cat >conftest.$ac_ext <<_ACEOF
2638/* confdefs.h. */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
2642/* end confdefs.h. */
2643
2644int
2645main ()
2646{
2647#ifndef __GNUC__
2648 choke me
2649#endif
2650
2651 ;
2652 return 0;
2653}
2654_ACEOF
2655rm -f conftest.$ac_objext
2656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>conftest.er1
2658 ac_status=$?
2659 grep -v '^ *+' conftest.er1 >conftest.err
2660 rm -f conftest.er1
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
88d8c771
AG
2664 { ac_try='test -z "$ac_c_werror_flag"
2665 || test ! -s conftest.err'
3ed8e5b6
AT
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 ac_compiler_gnu=yes
2678else
2679 echo "$as_me: failed program was:" >&5
2680sed 's/^/| /' conftest.$ac_ext >&5
2681
2682ac_compiler_gnu=no
2683fi
2684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685ac_cv_c_compiler_gnu=$ac_compiler_gnu
2686
2687fi
2688echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2689echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2690GCC=`test $ac_compiler_gnu = yes && echo yes`
2691ac_test_CFLAGS=${CFLAGS+set}
2692ac_save_CFLAGS=$CFLAGS
2693CFLAGS="-g"
2694echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2695echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2696if test "${ac_cv_prog_cc_g+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699 cat >conftest.$ac_ext <<_ACEOF
2700/* confdefs.h. */
2701_ACEOF
2702cat confdefs.h >>conftest.$ac_ext
2703cat >>conftest.$ac_ext <<_ACEOF
2704/* end confdefs.h. */
2705
2706int
2707main ()
2708{
2709
2710 ;
2711 return 0;
2712}
2713_ACEOF
2714rm -f conftest.$ac_objext
2715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>conftest.er1
2717 ac_status=$?
2718 grep -v '^ *+' conftest.er1 >conftest.err
2719 rm -f conftest.er1
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
88d8c771
AG
2723 { ac_try='test -z "$ac_c_werror_flag"
2724 || test ! -s conftest.err'
3ed8e5b6
AT
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 (eval $ac_try) 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; } &&
2730 { ac_try='test -s conftest.$ac_objext'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 (eval $ac_try) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; }; then
2736 ac_cv_prog_cc_g=yes
2737else
2738 echo "$as_me: failed program was:" >&5
2739sed 's/^/| /' conftest.$ac_ext >&5
2740
2741ac_cv_prog_cc_g=no
2742fi
2743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744fi
2745echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2746echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2747if test "$ac_test_CFLAGS" = set; then
2748 CFLAGS=$ac_save_CFLAGS
2749elif test $ac_cv_prog_cc_g = yes; then
2750 if test "$GCC" = yes; then
2751 CFLAGS="-g -O2"
2752 else
2753 CFLAGS="-g"
2754 fi
2755else
2756 if test "$GCC" = yes; then
2757 CFLAGS="-O2"
2758 else
2759 CFLAGS=
2760 fi
2761fi
2762echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2763echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2764if test "${ac_cv_prog_cc_stdc+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766else
2767 ac_cv_prog_cc_stdc=no
2768ac_save_CC=$CC
2769cat >conftest.$ac_ext <<_ACEOF
2770/* confdefs.h. */
2771_ACEOF
2772cat confdefs.h >>conftest.$ac_ext
2773cat >>conftest.$ac_ext <<_ACEOF
2774/* end confdefs.h. */
2775#include <stdarg.h>
2776#include <stdio.h>
2777#include <sys/types.h>
2778#include <sys/stat.h>
2779/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2780struct buf { int x; };
2781FILE * (*rcsopen) (struct buf *, struct stat *, int);
2782static char *e (p, i)
2783 char **p;
2784 int i;
2785{
2786 return p[i];
2787}
2788static char *f (char * (*g) (char **, int), char **p, ...)
2789{
2790 char *s;
2791 va_list v;
2792 va_start (v,p);
2793 s = g (p, va_arg (v,int));
2794 va_end (v);
2795 return s;
2796}
2797
2798/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2799 function prototypes and stuff, but not '\xHH' hex character constants.
2800 These don't provoke an error unfortunately, instead are silently treated
2801 as 'x'. The following induces an error, until -std1 is added to get
2802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2803 array size at least. It's necessary to write '\x00'==0 to get something
2804 that's true only with -std1. */
2805int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2806
2807int test (int i, double x);
2808struct s1 {int (*f) (int a);};
2809struct s2 {int (*f) (double a);};
2810int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2811int argc;
2812char **argv;
2813int
2814main ()
2815{
2816return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2817 ;
2818 return 0;
2819}
2820_ACEOF
2821# Don't try gcc -ansi; that turns off useful extensions and
2822# breaks some systems' header files.
2823# AIX -qlanglvl=ansi
2824# Ultrix and OSF/1 -std1
2825# HP-UX 10.20 and later -Ae
2826# HP-UX older versions -Aa -D_HPUX_SOURCE
2827# SVR4 -Xc -D__EXTENSIONS__
2828for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2829do
2830 CC="$ac_save_CC $ac_arg"
2831 rm -f conftest.$ac_objext
2832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>conftest.er1
2834 ac_status=$?
2835 grep -v '^ *+' conftest.er1 >conftest.err
2836 rm -f conftest.er1
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
88d8c771
AG
2840 { ac_try='test -z "$ac_c_werror_flag"
2841 || test ! -s conftest.err'
3ed8e5b6
AT
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest.$ac_objext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 ac_cv_prog_cc_stdc=$ac_arg
2854break
2855else
2856 echo "$as_me: failed program was:" >&5
2857sed 's/^/| /' conftest.$ac_ext >&5
2858
2859fi
2860rm -f conftest.err conftest.$ac_objext
2861done
2862rm -f conftest.$ac_ext conftest.$ac_objext
2863CC=$ac_save_CC
2864
2865fi
2866
2867case "x$ac_cv_prog_cc_stdc" in
2868 x|xno)
2869 echo "$as_me:$LINENO: result: none needed" >&5
2870echo "${ECHO_T}none needed" >&6 ;;
2871 *)
2872 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2873echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2874 CC="$CC $ac_cv_prog_cc_stdc" ;;
2875esac
2876
2877# Some people use a C++ compiler to compile C. Since we use `exit',
2878# in C++ we need to declare it. In case someone uses the same compiler
2879# for both compiling C and C++ we need to have the C++ compiler decide
2880# the declaration of exit, since it's the most demanding environment.
2881cat >conftest.$ac_ext <<_ACEOF
2882#ifndef __cplusplus
2883 choke me
2884#endif
2885_ACEOF
2886rm -f conftest.$ac_objext
2887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2888 (eval $ac_compile) 2>conftest.er1
2889 ac_status=$?
2890 grep -v '^ *+' conftest.er1 >conftest.err
2891 rm -f conftest.er1
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
88d8c771
AG
2895 { ac_try='test -z "$ac_c_werror_flag"
2896 || test ! -s conftest.err'
3ed8e5b6
AT
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 (eval $ac_try) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; } &&
2902 { ac_try='test -s conftest.$ac_objext'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 (eval $ac_try) 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2908 for ac_declaration in \
2909 '' \
2910 'extern "C" void std::exit (int) throw (); using std::exit;' \
2911 'extern "C" void std::exit (int); using std::exit;' \
2912 'extern "C" void exit (int) throw ();' \
2913 'extern "C" void exit (int);' \
2914 'void exit (int);'
2915do
2916 cat >conftest.$ac_ext <<_ACEOF
2917/* confdefs.h. */
2918_ACEOF
2919cat confdefs.h >>conftest.$ac_ext
2920cat >>conftest.$ac_ext <<_ACEOF
2921/* end confdefs.h. */
2922$ac_declaration
2923#include <stdlib.h>
2924int
2925main ()
2926{
2927exit (42);
2928 ;
2929 return 0;
2930}
2931_ACEOF
2932rm -f conftest.$ac_objext
2933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2934 (eval $ac_compile) 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
88d8c771
AG
2941 { ac_try='test -z "$ac_c_werror_flag"
2942 || test ! -s conftest.err'
3ed8e5b6
AT
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 (eval $ac_try) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2954 :
2955else
2956 echo "$as_me: failed program was:" >&5
2957sed 's/^/| /' conftest.$ac_ext >&5
2958
2959continue
2960fi
2961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962 cat >conftest.$ac_ext <<_ACEOF
2963/* confdefs.h. */
2964_ACEOF
2965cat confdefs.h >>conftest.$ac_ext
2966cat >>conftest.$ac_ext <<_ACEOF
2967/* end confdefs.h. */
2968$ac_declaration
2969int
2970main ()
2971{
2972exit (42);
2973 ;
2974 return 0;
2975}
2976_ACEOF
2977rm -f conftest.$ac_objext
2978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979 (eval $ac_compile) 2>conftest.er1
2980 ac_status=$?
2981 grep -v '^ *+' conftest.er1 >conftest.err
2982 rm -f conftest.er1
2983 cat conftest.err >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } &&
88d8c771
AG
2986 { ac_try='test -z "$ac_c_werror_flag"
2987 || test ! -s conftest.err'
3ed8e5b6
AT
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 (eval $ac_try) 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 break
3000else
3001 echo "$as_me: failed program was:" >&5
3002sed 's/^/| /' conftest.$ac_ext >&5
3003
3004fi
3005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006done
3007rm -f conftest*
3008if test -n "$ac_declaration"; then
3009 echo '#ifdef __cplusplus' >>confdefs.h
3010 echo $ac_declaration >>confdefs.h
3011 echo '#endif' >>confdefs.h
3012fi
3013
3014else
3015 echo "$as_me: failed program was:" >&5
3016sed 's/^/| /' conftest.$ac_ext >&5
3017
3018fi
3019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3020ac_ext=c
3021ac_cpp='$CPP $CPPFLAGS'
3022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025DEPDIR="${am__leading_dot}deps"
3026
3027 ac_config_commands="$ac_config_commands depfiles"
3028
3029
3030am_make=${MAKE-make}
3031cat > confinc << 'END'
3032am__doit:
3033 @echo done
3034.PHONY: am__doit
3035END
3036# If we don't find an include directive, just comment out the code.
3037echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3038echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3039am__include="#"
3040am__quote=
3041_am_result=none
3042# First try GNU make style include.
3043echo "include confinc" > confmf
3044# We grep out `Entering directory' and `Leaving directory'
3045# messages which can occur if `w' ends up in MAKEFLAGS.
3046# In particular we don't look at `^make:' because GNU make might
3047# be invoked under some other name (usually "gmake"), in which
3048# case it prints its new name instead of `make'.
3049if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3050 am__include=include
3051 am__quote=
3052 _am_result=GNU
3053fi
3054# Now try BSD make style include.
3055if test "$am__include" = "#"; then
3056 echo '.include "confinc"' > confmf
3057 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3058 am__include=.include
3059 am__quote="\""
3060 _am_result=BSD
3061 fi
3062fi
3063
3064
3065echo "$as_me:$LINENO: result: $_am_result" >&5
3066echo "${ECHO_T}$_am_result" >&6
3067rm -f confinc confmf
3068
3069# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3070if test "${enable_dependency_tracking+set}" = set; then
3071 enableval="$enable_dependency_tracking"
3072
3073fi;
3074if test "x$enable_dependency_tracking" != xno; then
3075 am_depcomp="$ac_aux_dir/depcomp"
3076 AMDEPBACKSLASH='\'
3077fi
3078
3079
3080if test "x$enable_dependency_tracking" != xno; then
3081 AMDEP_TRUE=
3082 AMDEP_FALSE='#'
3083else
3084 AMDEP_TRUE='#'
3085 AMDEP_FALSE=
3086fi
3087
3088
3089
3090
3091depcc="$CC" am_compiler_list=
3092
3093echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3094echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3095if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3097else
3098 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3099 # We make a subdir and do the tests there. Otherwise we can end up
3100 # making bogus files that we don't know about and never remove. For
3101 # instance it was reported that on HP-UX the gcc test will end up
3102 # making a dummy file named `D' -- because `-MD' means `put the output
3103 # in D'.
3104 mkdir conftest.dir
3105 # Copy depcomp to subdir because otherwise we won't find it if we're
3106 # using a relative directory.
3107 cp "$am_depcomp" conftest.dir
3108 cd conftest.dir
3109 # We will build objects and dependencies in a subdirectory because
3110 # it helps to detect inapplicable dependency modes. For instance
3111 # both Tru64's cc and ICC support -MD to output dependencies as a
3112 # side effect of compilation, but ICC will put the dependencies in
3113 # the current directory while Tru64 will put them in the object
3114 # directory.
3115 mkdir sub
3116
3117 am_cv_CC_dependencies_compiler_type=none
3118 if test "$am_compiler_list" = ""; then
3119 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3120 fi
3121 for depmode in $am_compiler_list; do
3122 # Setup a source with many dependencies, because some compilers
3123 # like to wrap large dependency lists on column 80 (with \), and
3124 # we should not choose a depcomp mode which is confused by this.
3125 #
3126 # We need to recreate these files for each test, as the compiler may
3127 # overwrite some of them when testing with obscure command lines.
3128 # This happens at least with the AIX C compiler.
3129 : > sub/conftest.c
3130 for i in 1 2 3 4 5 6; do
3131 echo '#include "conftst'$i'.h"' >> sub/conftest.c
076e5443
PB
3132 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3133 # Solaris 8's {/usr,}/bin/sh.
3134 touch sub/conftst$i.h
3ed8e5b6
AT
3135 done
3136 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3137
3138 case $depmode in
3139 nosideeffect)
3140 # after this tag, mechanisms are not by side-effect, so they'll
3141 # only be used when explicitly requested
3142 if test "x$enable_dependency_tracking" = xyes; then
3143 continue
3144 else
3145 break
3146 fi
3147 ;;
3148 none) break ;;
3149 esac
3150 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3151 # mode. It turns out that the SunPro C++ compiler does not properly
3152 # handle `-M -o', and we need to detect this.
3153 if depmode=$depmode \
3154 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3155 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3156 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3157 >/dev/null 2>conftest.err &&
3158 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3159 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3160 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3161 # icc doesn't choke on unknown options, it will just issue warnings
b85e31b9
KC
3162 # or remarks (even with -Werror). So we grep stderr for any message
3163 # that says an option was ignored or not supported.
3164 # When given -MP, icc 7.0 and 7.1 complain thusly:
3165 # icc: Command line warning: ignoring option '-M'; no argument required
3166 # The diagnosis changed in icc 8.0:
3167 # icc: Command line remark: option '-MP' not supported
3168 if (grep 'ignoring option' conftest.err ||
3169 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3ed8e5b6
AT
3170 am_cv_CC_dependencies_compiler_type=$depmode
3171 break
3172 fi
3173 fi
3174 done
bbf3057b 3175
3ed8e5b6
AT
3176 cd ..
3177 rm -rf conftest.dir
3178else
3179 am_cv_CC_dependencies_compiler_type=none
3180fi
3181
3182fi
3183echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3184echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3185CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3186
3187
3188
3189if
3190 test "x$enable_dependency_tracking" != xno \
3191 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3192 am__fastdepCC_TRUE=
3193 am__fastdepCC_FALSE='#'
3194else
3195 am__fastdepCC_TRUE='#'
3196 am__fastdepCC_FALSE=
3197fi
3198
3199
3200
3201
3202
3203
3204# By default we simply use the C compiler to build assembly code.
3205
076e5443
PB
3206test "${CCAS+set}" = set || CCAS=$CC
3207test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3208
3ed8e5b6
AT
3209
3210
3211if test "x$CC" != xcc; then
3212 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3213echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3214else
3215 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3216echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3217fi
3218set dummy $CC; ac_cc=`echo $2 |
3219 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3220if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3222else
3223 cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h. */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h. */
3229
3230int
3231main ()
3232{
3233
3234 ;
3235 return 0;
3236}
3237_ACEOF
3238# Make sure it works both with $CC and with simple cc.
3239# We do the test twice because some compilers refuse to overwrite an
3240# existing .o file with -o, though they will create one.
3241ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3242if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 (eval $ac_try) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 (eval $ac_try) 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); };
3252then
3253 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3254 if test "x$CC" != xcc; then
3255 # Test first that cc exists at all.
3256 if { ac_try='cc -c conftest.$ac_ext >&5'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 (eval $ac_try) 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3262 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3263 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 (eval $ac_try) 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } &&
3268 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 (eval $ac_try) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); };
3273 then
3274 # cc works too.
3275 :
3276 else
3277 # cc exists but doesn't like -o.
3278 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3279 fi
3280 fi
3281 fi
3282else
3283 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3284fi
3285rm -f conftest*
3286
3287fi
3288if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3289 echo "$as_me:$LINENO: result: yes" >&5
3290echo "${ECHO_T}yes" >&6
3291else
3292 echo "$as_me:$LINENO: result: no" >&5
3293echo "${ECHO_T}no" >&6
3294
3295cat >>confdefs.h <<\_ACEOF
3296#define NO_MINUS_C_MINUS_O 1
3297_ACEOF
3298
3299fi
3300
3301# FIXME: we rely on the cache variable name because
3302# there is no other way.
3303set dummy $CC
3304ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3305if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3306 # Losing compiler, so override with the script.
3307 # FIXME: It is wrong to rewrite CC.
3308 # But if we don't then we get into trouble of one sort or another.
3309 # A longer-term fix would be to have automake use am__CC in this case,
3310 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3311 CC="$am_aux_dir/compile $CC"
3312fi
63e5e3e0 3313
80c6c2cb
PG
3314case `pwd` in
3315 *\ * | *\ *)
3316 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3317echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3318esac
1cf3d07d
SE
3319
3320
1cf3d07d 3321
80c6c2cb
PG
3322macro_version='2.2.6'
3323macro_revision='1.3012'
1cf3d07d
SE
3324
3325
3326
3327
3328
3329
63e5e3e0 3330
1cf3d07d
SE
3331
3332
3333
3334
3335
3336
80c6c2cb 3337ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d
SE
3338
3339echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3340echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3341if test "${lt_cv_path_SED+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343else
3344 # Loop through the user's path and test for sed and gsed.
3345# Then use that list of sed's as ones to test for truncation.
3346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347for as_dir in $PATH
3348do
3349 IFS=$as_save_IFS
3350 test -z "$as_dir" && as_dir=.
3351 for lt_ac_prog in sed gsed; do
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3354 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3355 fi
3356 done
3357 done
3358done
3359IFS=$as_save_IFS
3360lt_ac_max=0
3361lt_ac_count=0
3362# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3363# along with /bin/sed that truncates output.
3364for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3365 test ! -f $lt_ac_sed && continue
3366 cat /dev/null > conftest.in
3367 lt_ac_count=0
3368 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3369 # Check for GNU sed and select it if it is found.
3370 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3371 lt_cv_path_SED=$lt_ac_sed
3372 break
3373 fi
3374 while true; do
3375 cat conftest.in conftest.in >conftest.tmp
3376 mv conftest.tmp conftest.in
3377 cp conftest.in conftest.nl
3378 echo >>conftest.nl
3379 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3380 cmp -s conftest.out conftest.nl || break
3381 # 10000 chars as input seems more than enough
3382 test $lt_ac_count -gt 10 && break
3383 lt_ac_count=`expr $lt_ac_count + 1`
3384 if test $lt_ac_count -gt $lt_ac_max; then
3385 lt_ac_max=$lt_ac_count
3386 lt_cv_path_SED=$lt_ac_sed
3387 fi
3388 done
3389done
3390
3391fi
3392
3393SED=$lt_cv_path_SED
3394
3395echo "$as_me:$LINENO: result: $SED" >&5
3396echo "${ECHO_T}$SED" >&6
3397
3398test -z "$SED" && SED=sed
3399Xsed="$SED -e 1s/^X//"
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411echo "$as_me:$LINENO: checking for egrep" >&5
3412echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3413if test "${ac_cv_prog_egrep+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415else
3416 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3417 then ac_cv_prog_egrep='grep -E'
3418 else ac_cv_prog_egrep='egrep'
3419 fi
3420fi
3421echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3422echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3423 EGREP=$ac_cv_prog_egrep
3424
3425
3426echo "$as_me:$LINENO: checking for fgrep" >&5
3427echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3428if test "${ac_cv_prog_fgrep+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3430else
3431 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3432 then ac_cv_prog_fgrep='grep -F'
3433 else ac_cv_prog_fgrep='fgrep'
3434 fi
3435fi
3436echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3437echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3438 FGREP=$ac_cv_prog_fgrep
3439
3440
3441test -z "$GREP" && GREP=grep
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
675cdab3
BM
3461# Check whether --with-gnu-ld or --without-gnu-ld was given.
3462if test "${with_gnu_ld+set}" = set; then
3463 withval="$with_gnu_ld"
3464 test "$withval" = no || with_gnu_ld=yes
63e5e3e0 3465else
675cdab3 3466 with_gnu_ld=no
3ed8e5b6 3467fi;
63e5e3e0 3468ac_prog=ld
675cdab3 3469if test "$GCC" = yes; then
63e5e3e0 3470 # Check if gcc -print-prog-name=ld gives a path.
1cf3d07d
SE
3471 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3472echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2f7bf5b7
AO
3473 case $host in
3474 *-*-mingw*)
3475 # gcc leaves a trailing carriage return which upsets mingw
3476 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3477 *)
3478 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3479 esac
675cdab3 3480 case $ac_prog in
63e5e3e0 3481 # Accept absolute paths.
1cf3d07d 3482 [\\/]* | ?:[\\/]*)
63e5e3e0 3483 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
3484 # Canonicalize the pathname of ld
3485 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3486 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3487 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
63e5e3e0
AG
3488 done
3489 test -z "$LD" && LD="$ac_prog"
3490 ;;
3491 "")
3492 # If it fails, then pretend we aren't using GCC.
3493 ac_prog=ld
3494 ;;
3495 *)
3496 # If it is relative, then search for the first ld in PATH.
3497 with_gnu_ld=unknown
3498 ;;
3499 esac
3500elif test "$with_gnu_ld" = yes; then
3ed8e5b6
AT
3501 echo "$as_me:$LINENO: checking for GNU ld" >&5
3502echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
63e5e3e0 3503else
3ed8e5b6
AT
3504 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3505echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
63e5e3e0 3506fi
3ed8e5b6
AT
3507if test "${lt_cv_path_LD+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0
AG
3509else
3510 if test -z "$LD"; then
1cf3d07d 3511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
63e5e3e0 3512 for ac_dir in $PATH; do
1cf3d07d 3513 IFS="$lt_save_ifs"
63e5e3e0 3514 test -z "$ac_dir" && ac_dir=.
6ba9e3b0 3515 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
675cdab3 3516 lt_cv_path_LD="$ac_dir/$ac_prog"
63e5e3e0 3517 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 3518 # but apparently some variants of GNU ld only accept -v.
63e5e3e0 3519 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
3520 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3521 *GNU* | *'with BFD'*)
63e5e3e0 3522 test "$with_gnu_ld" != no && break
1cf3d07d
SE
3523 ;;
3524 *)
63e5e3e0 3525 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
3526 ;;
3527 esac
63e5e3e0
AG
3528 fi
3529 done
1cf3d07d 3530 IFS="$lt_save_ifs"
63e5e3e0 3531else
675cdab3 3532 lt_cv_path_LD="$LD" # Let the user override the test with a path.
63e5e3e0
AG
3533fi
3534fi
3535
675cdab3 3536LD="$lt_cv_path_LD"
63e5e3e0 3537if test -n "$LD"; then
3ed8e5b6
AT
3538 echo "$as_me:$LINENO: result: $LD" >&5
3539echo "${ECHO_T}$LD" >&6
63e5e3e0 3540else
3ed8e5b6
AT
3541 echo "$as_me:$LINENO: result: no" >&5
3542echo "${ECHO_T}no" >&6
63e5e3e0 3543fi
3ed8e5b6
AT
3544test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3545echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3546 { (exit 1); exit 1; }; }
3547echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3548echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3549if test "${lt_cv_prog_gnu_ld+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 3551else
1cf3d07d
SE
3552 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3553case `$LD -v 2>&1 </dev/null` in
3554*GNU* | *'with BFD'*)
675cdab3 3555 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
3556 ;;
3557*)
675cdab3 3558 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
3559 ;;
3560esac
63e5e3e0 3561fi
3ed8e5b6
AT
3562echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3563echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
675cdab3 3564with_gnu_ld=$lt_cv_prog_gnu_ld
2f7bf5b7 3565
63e5e3e0
AG
3566
3567
1cf3d07d
SE
3568
3569
3570
3571
3572
3573
1cf3d07d
SE
3574echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3575echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3ed8e5b6
AT
3576if test "${lt_cv_path_NM+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0
AG
3578else
3579 if test -n "$NM"; then
3580 # Let the user override the test.
675cdab3 3581 lt_cv_path_NM="$NM"
63e5e3e0 3582else
1cf3d07d
SE
3583 lt_nm_to_check="${ac_tool_prefix}nm"
3584 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3585 lt_nm_to_check="$lt_nm_to_check nm"
3586 fi
3587 for lt_tmp_nm in $lt_nm_to_check; do
3588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3589 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3590 IFS="$lt_save_ifs"
3591 test -z "$ac_dir" && ac_dir=.
3592 tmp_nm="$ac_dir/$lt_tmp_nm"
3593 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3594 # Check to see if the nm accepts a BSD-compat flag.
3595 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3596 # nm: unknown option "B" ignored
3597 # Tru64's nm complains that /dev/null is an invalid object file
3598 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3599 */dev/null* | *'Invalid file or object type'*)
3600 lt_cv_path_NM="$tmp_nm -B"
3601 break
3602 ;;
3603 *)
3604 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3605 */dev/null*)
3606 lt_cv_path_NM="$tmp_nm -p"
3607 break
3608 ;;
3609 *)
3610 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3611 continue # so that we can try to find one that supports BSD flags
3612 ;;
3613 esac
3614 ;;
3615 esac
63e5e3e0 3616 fi
1cf3d07d
SE
3617 done
3618 IFS="$lt_save_ifs"
63e5e3e0 3619 done
1cf3d07d 3620 : ${lt_cv_path_NM=no}
63e5e3e0
AG
3621fi
3622fi
1cf3d07d
SE
3623echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3624echo "${ECHO_T}$lt_cv_path_NM" >&6
3625if test "$lt_cv_path_NM" != "no"; then
3626 NM="$lt_cv_path_NM"
63e5e3e0 3627else
1cf3d07d
SE
3628 # Didn't find any BSD compatible name lister, look for dumpbin.
3629 if test -n "$ac_tool_prefix"; then
3630 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3631 do
3632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3633set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3634echo "$as_me:$LINENO: checking for $ac_word" >&5
3635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3636if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3ed8e5b6 3637 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 3638else
1cf3d07d
SE
3639 if test -n "$DUMPBIN"; then
3640 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3641else
3642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643for as_dir in $PATH
3644do
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3652 fi
3653done
3654done
2f7bf5b7 3655
1cf3d07d
SE
3656fi
3657fi
3658DUMPBIN=$ac_cv_prog_DUMPBIN
3659if test -n "$DUMPBIN"; then
3660 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3661echo "${ECHO_T}$DUMPBIN" >&6
3662else
3663 echo "$as_me:$LINENO: result: no" >&5
3664echo "${ECHO_T}no" >&6
3665fi
675cdab3 3666
1cf3d07d
SE
3667 test -n "$DUMPBIN" && break
3668 done
3669fi
3670if test -z "$DUMPBIN"; then
3671 ac_ct_DUMPBIN=$DUMPBIN
3672 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3673do
3674 # Extract the first word of "$ac_prog", so it can be a program name with args.
3675set dummy $ac_prog; ac_word=$2
3676echo "$as_me:$LINENO: checking for $ac_word" >&5
3677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3678if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680else
3681 if test -n "$ac_ct_DUMPBIN"; then
3682 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3683else
3684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685for as_dir in $PATH
3686do
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 break 2
2f7bf5b7 3694 fi
1cf3d07d
SE
3695done
3696done
2f7bf5b7 3697
1cf3d07d
SE
3698fi
3699fi
3700ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3701if test -n "$ac_ct_DUMPBIN"; then
3702 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3703echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3704else
3705 echo "$as_me:$LINENO: result: no" >&5
3706echo "${ECHO_T}no" >&6
3707fi
2f7bf5b7 3708
1cf3d07d
SE
3709 test -n "$ac_ct_DUMPBIN" && break
3710done
3711test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
2f7bf5b7 3712
1cf3d07d
SE
3713 DUMPBIN=$ac_ct_DUMPBIN
3714fi
2f7bf5b7 3715
2f7bf5b7 3716
1cf3d07d
SE
3717 if test "$DUMPBIN" != ":"; then
3718 NM="$DUMPBIN"
2f7bf5b7 3719 fi
1cf3d07d
SE
3720fi
3721test -z "$NM" && NM=nm
2f7bf5b7 3722
2f7bf5b7 3723
2f7bf5b7 3724
2f7bf5b7 3725
33456445 3726
2f7bf5b7 3727
1cf3d07d
SE
3728echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3729echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3730if test "${lt_cv_nm_interface+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3732else
3733 lt_cv_nm_interface="BSD nm"
3734 echo "int some_variable = 0;" > conftest.$ac_ext
80c6c2cb 3735 (eval echo "\"\$as_me:3735: $ac_compile\"" >&5)
1cf3d07d
SE
3736 (eval "$ac_compile" 2>conftest.err)
3737 cat conftest.err >&5
80c6c2cb 3738 (eval echo "\"\$as_me:3738: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
3739 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3740 cat conftest.err >&5
80c6c2cb 3741 (eval echo "\"\$as_me:3741: output\"" >&5)
1cf3d07d
SE
3742 cat conftest.out >&5
3743 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3744 lt_cv_nm_interface="MS dumpbin"
3745 fi
3746 rm -f conftest*
2f7bf5b7 3747fi
1cf3d07d
SE
3748echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3749echo "${ECHO_T}$lt_cv_nm_interface" >&6
2f7bf5b7 3750
1cf3d07d
SE
3751echo "$as_me:$LINENO: checking whether ln -s works" >&5
3752echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3753LN_S=$as_ln_s
3754if test "$LN_S" = "ln -s"; then
3755 echo "$as_me:$LINENO: result: yes" >&5
3756echo "${ECHO_T}yes" >&6
3757else
3758 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3759echo "${ECHO_T}no, using $LN_S" >&6
3760fi
2f7bf5b7 3761
6dab073b
MS
3762# find the maximum length of command line arguments
3763echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3764echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3765if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767else
3768 i=0
3769 teststring="ABCD"
3770
3771 case $build_os in
3772 msdosdjgpp*)
3773 # On DJGPP, this test can blow up pretty badly due to problems in libc
3774 # (any single argument exceeding 2000 bytes causes a buffer overrun
3775 # during glob expansion). Even if it were fixed, the result of this
3776 # check would be larger than it should be.
3777 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3778 ;;
3779
1cf3d07d
SE
3780 gnu*)
3781 # Under GNU Hurd, this test is not required because there is
3782 # no limit to the length of command line arguments.
3783 # Libtool will interpret -1 as no limit whatsoever
3784 lt_cv_sys_max_cmd_len=-1;
3785 ;;
3786
80c6c2cb 3787 cygwin* | mingw* | cegcc*)
6dab073b
MS
3788 # On Win9x/ME, this test blows up -- it succeeds, but takes
3789 # about 5 minutes as the teststring grows exponentially.
3790 # Worse, since 9x/ME are not pre-emptively multitasking,
3791 # you end up with a "frozen" computer, even though with patience
3792 # the test eventually succeeds (with a max line length of 256k).
3793 # Instead, let's just punt: use the minimum linelength reported by
3794 # all of the supported platforms: 8192 (on NT/2K/XP).
3795 lt_cv_sys_max_cmd_len=8192;
3796 ;;
3797
3798 amigaos*)
3799 # On AmigaOS with pdksh, this test takes hours, literally.
3800 # So we just punt and use a minimum line length of 8192.
3801 lt_cv_sys_max_cmd_len=8192;
3802 ;;
3803
3804 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3805 # This has been around since 386BSD, at least. Likely further.
3806 if test -x /sbin/sysctl; then
3807 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3808 elif test -x /usr/sbin/sysctl; then
3809 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3810 else
1cf3d07d 3811 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
3812 fi
3813 # And add a safety zone
3814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3816 ;;
1cf3d07d
SE
3817
3818 interix*)
3819 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3820 lt_cv_sys_max_cmd_len=196608
3821 ;;
3822
3823 osf*)
3824 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3825 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3826 # nice to cause kernel panics so lets avoid the loop below.
3827 # First set a reasonable default.
3828 lt_cv_sys_max_cmd_len=16384
3829 #
3830 if test -x /sbin/sysconfig; then
3831 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3832 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3833 esac
3834 fi
3835 ;;
3836 sco3.2v5*)
3837 lt_cv_sys_max_cmd_len=102400
3838 ;;
3839 sysv5* | sco5v6* | sysv4.2uw2*)
3840 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3841 if test -n "$kargmax"; then
3842 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3843 else
3844 lt_cv_sys_max_cmd_len=32768
3845 fi
3846 ;;
3847 *)
80c6c2cb
PG
3848 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3849 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
3850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3852 else
3853 # Make teststring a little bigger before we do anything with it.
3854 # a 1K string should be a reasonable start.
3855 for i in 1 2 3 4 5 6 7 8 ; do
3856 teststring=$teststring$teststring
3857 done
3858 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3859 # If test is not a shell built-in, we'll probably end up computing a
3860 # maximum length that is only half of the actual maximum length, but
3861 # we can't tell.
3862 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3863 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3864 test $i != 17 # 1/2 MB should be enough
3865 do
3866 i=`expr $i + 1`
3867 teststring=$teststring$teststring
3868 done
3869 # Only check the string length outside the loop.
3870 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3871 teststring=
3872 # Add a significant safety factor because C++ compilers can tack on
3873 # massive amounts of additional arguments before passing them to the
3874 # linker. It appears as though 1/2 is a usable value.
3875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3876 fi
1cf3d07d 3877 ;;
6dab073b
MS
3878 esac
3879
3880fi
3881
1cf3d07d 3882if test -n $lt_cv_sys_max_cmd_len ; then
6dab073b
MS
3883 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3884echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3885else
3886 echo "$as_me:$LINENO: result: none" >&5
3887echo "${ECHO_T}none" >&6
3888fi
1cf3d07d 3889max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
3890
3891
2f7bf5b7 3892
2f7bf5b7 3893
2f7bf5b7 3894
1cf3d07d 3895
1cf3d07d
SE
3896: ${CP="cp -f"}
3897: ${MV="mv -f"}
3898: ${RM="rm -f"}
3899
3900echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3901echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3902# Try some XSI features
3903xsi_shell=no
3904( _lt_dummy="a/b/c"
3905 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
80c6c2cb
PG
3906 = c,a/b,, \
3907 && eval 'test $(( 1 + 1 )) -eq 2 \
3908 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d
SE
3909 && xsi_shell=yes
3910echo "$as_me:$LINENO: result: $xsi_shell" >&5
3911echo "${ECHO_T}$xsi_shell" >&6
3912
3913
3914echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3915echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3916lt_shell_append=no
3917( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3918 >/dev/null 2>&1 \
3919 && lt_shell_append=yes
3920echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3921echo "${ECHO_T}$lt_shell_append" >&6
3922
3923
3924if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3925 lt_unset=unset
2f7bf5b7 3926else
1cf3d07d 3927 lt_unset=false
2f7bf5b7
AO
3928fi
3929
1cf3d07d
SE
3930
3931
3932
3933
3934# test EBCDIC or ASCII
3935case `echo X|tr X '\101'` in
3936 A) # ASCII based system
3937 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3938 lt_SP2NL='tr \040 \012'
3939 lt_NL2SP='tr \015\012 \040\040'
3940 ;;
3941 *) # EBCDIC based system
3942 lt_SP2NL='tr \100 \n'
3943 lt_NL2SP='tr \r\n \100\100'
3944 ;;
3945esac
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3956echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3957if test "${lt_cv_ld_reload_flag+set}" = set; then
3ed8e5b6 3958 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 3959else
1cf3d07d
SE
3960 lt_cv_ld_reload_flag='-r'
3961fi
3962echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3963echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3964reload_flag=$lt_cv_ld_reload_flag
3965case $reload_flag in
3966"" | " "*) ;;
3967*) reload_flag=" $reload_flag" ;;
3968esac
3969reload_cmds='$LD$reload_flag -o $output$reload_objs'
3970case $host_os in
3971 darwin*)
3972 if test "$GCC" = yes; then
3973 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3974 else
3975 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3976 fi
3977 ;;
3978esac
3979
3980
3981
3982
3983
3984
3985
3986
3987
80c6c2cb
PG
3988if test -n "$ac_tool_prefix"; then
3989 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3990set dummy ${ac_tool_prefix}objdump; ac_word=$2
3991echo "$as_me:$LINENO: checking for $ac_word" >&5
3992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995else
3996 if test -n "$OBJDUMP"; then
3997 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3998else
3999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000for as_dir in $PATH
4001do
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 break 2
4009 fi
4010done
4011done
4012
4013fi
4014fi
4015OBJDUMP=$ac_cv_prog_OBJDUMP
4016if test -n "$OBJDUMP"; then
4017 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4018echo "${ECHO_T}$OBJDUMP" >&6
4019else
4020 echo "$as_me:$LINENO: result: no" >&5
4021echo "${ECHO_T}no" >&6
4022fi
4023
4024fi
4025if test -z "$ac_cv_prog_OBJDUMP"; then
4026 ac_ct_OBJDUMP=$OBJDUMP
4027 # Extract the first word of "objdump", so it can be a program name with args.
4028set dummy objdump; ac_word=$2
4029echo "$as_me:$LINENO: checking for $ac_word" >&5
4030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4031if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033else
4034 if test -n "$ac_ct_OBJDUMP"; then
4035 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4036else
4037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038for as_dir in $PATH
4039do
4040 IFS=$as_save_IFS
4041 test -z "$as_dir" && as_dir=.
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4044 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 break 2
4047 fi
4048done
4049done
4050
4051 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4052fi
4053fi
4054ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4055if test -n "$ac_ct_OBJDUMP"; then
4056 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4057echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4058else
4059 echo "$as_me:$LINENO: result: no" >&5
4060echo "${ECHO_T}no" >&6
4061fi
4062
4063 OBJDUMP=$ac_ct_OBJDUMP
4064else
4065 OBJDUMP="$ac_cv_prog_OBJDUMP"
4066fi
4067
4068test -z "$OBJDUMP" && OBJDUMP=objdump
4069
4070
4071
4072
4073
4074
4075
4076
1cf3d07d
SE
4077
4078echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4079echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4080if test "${lt_cv_deplibs_check_method+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082else
4083 lt_cv_file_magic_cmd='$MAGIC_CMD'
4084lt_cv_file_magic_test_file=
4085lt_cv_deplibs_check_method='unknown'
4086# Need to set the preceding variable on all platforms that support
4087# interlibrary dependencies.
4088# 'none' -- dependencies not supported.
4089# `unknown' -- same as none, but documents that we really don't know.
4090# 'pass_all' -- all dependencies passed with no checks.
4091# 'test_compile' -- check by making test program.
4092# 'file_magic [[regex]]' -- check by looking for files in library path
4093# which responds to the $file_magic_cmd with a given extended regex.
4094# If you have `file' or equivalent on your system and you're not sure
4095# whether `pass_all' will *always* work, you probably want this one.
4096
4097case $host_os in
95d4f544 4098aix[4-9]*)
1cf3d07d
SE
4099 lt_cv_deplibs_check_method=pass_all
4100 ;;
4101
4102beos*)
4103 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 4104 ;;
1cf3d07d
SE
4105
4106bsdi[45]*)
4107 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4108 lt_cv_file_magic_cmd='/usr/bin/file -L'
4109 lt_cv_file_magic_test_file=/shlib/libc.so
4110 ;;
4111
4112cygwin*)
4113 # func_win32_libid is a shell function defined in ltmain.sh
4114 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4115 lt_cv_file_magic_cmd='func_win32_libid'
4116 ;;
4117
4118mingw* | pw32*)
4119 # Base MSYS/MinGW do not provide the 'file' command needed by
4120 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4121 # unless we find 'file', for example because we are cross-compiling.
4122 if ( file / ) >/dev/null 2>&1; then
4123 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4124 lt_cv_file_magic_cmd='func_win32_libid'
4125 else
4126 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4127 lt_cv_file_magic_cmd='$OBJDUMP -f'
4128 fi
4129 ;;
4130
80c6c2cb
PG
4131cegcc)
4132 # use the weaker test based on 'objdump'. See mingw*.
4133 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4134 lt_cv_file_magic_cmd='$OBJDUMP -f'
4135 ;;
4136
1cf3d07d
SE
4137darwin* | rhapsody*)
4138 lt_cv_deplibs_check_method=pass_all
4139 ;;
4140
4141freebsd* | dragonfly*)
4142 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4143 case $host_cpu in
4144 i*86 )
4145 # Not sure whether the presence of OpenBSD here was a mistake.
4146 # Let's accept both of them until this is cleared up.
4147 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4148 lt_cv_file_magic_cmd=/usr/bin/file
4149 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4150 ;;
4151 esac
4152 else
4153 lt_cv_deplibs_check_method=pass_all
4154 fi
4155 ;;
4156
4157gnu*)
4158 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 4159 ;;
1cf3d07d
SE
4160
4161hpux10.20* | hpux11*)
4162 lt_cv_file_magic_cmd=/usr/bin/file
4163 case $host_cpu in
4164 ia64*)
4165 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4166 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4167 ;;
4168 hppa*64*)
4169 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4170 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4171 ;;
2f7bf5b7 4172 *)
1cf3d07d
SE
4173 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4174 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4175 ;;
4176 esac
4177 ;;
2f7bf5b7 4178
1cf3d07d
SE
4179interix[3-9]*)
4180 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4182 ;;
2f7bf5b7 4183
1cf3d07d
SE
4184irix5* | irix6* | nonstopux*)
4185 case $LD in
4186 *-32|*"-32 ") libmagic=32-bit;;
4187 *-n32|*"-n32 ") libmagic=N32;;
4188 *-64|*"-64 ") libmagic=64-bit;;
4189 *) libmagic=never-match;;
4190 esac
4191 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 4192 ;;
2f7bf5b7 4193
1cf3d07d
SE
4194# This must be Linux ELF.
4195linux* | k*bsd*-gnu)
4196 lt_cv_deplibs_check_method=pass_all
4197 ;;
2f7bf5b7 4198
1cf3d07d
SE
4199netbsd*)
4200 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7 4202 else
1cf3d07d 4203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2f7bf5b7 4204 fi
1cf3d07d
SE
4205 ;;
4206
4207newos6*)
4208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4209 lt_cv_file_magic_cmd=/usr/bin/file
4210 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4211 ;;
4212
4213*nto* | *qnx*)
4214 lt_cv_deplibs_check_method=pass_all
4215 ;;
63e5e3e0 4216
1cf3d07d
SE
4217openbsd*)
4218 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4220 else
4221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7
AO
4222 fi
4223 ;;
1cf3d07d
SE
4224
4225osf3* | osf4* | osf5*)
4226 lt_cv_deplibs_check_method=pass_all
4227 ;;
4228
4229rdos*)
4230 lt_cv_deplibs_check_method=pass_all
4231 ;;
4232
4233solaris*)
4234 lt_cv_deplibs_check_method=pass_all
4235 ;;
4236
4237sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4238 lt_cv_deplibs_check_method=pass_all
4239 ;;
4240
4241sysv4 | sysv4.3*)
4242 case $host_vendor in
4243 motorola)
4244 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]'
4245 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4246 ;;
4247 ncr)
4248 lt_cv_deplibs_check_method=pass_all
4249 ;;
4250 sequent)
4251 lt_cv_file_magic_cmd='/bin/file'
4252 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4253 ;;
4254 sni)
4255 lt_cv_file_magic_cmd='/bin/file'
4256 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4257 lt_cv_file_magic_test_file=/lib/libc.so
4258 ;;
4259 siemens)
4260 lt_cv_deplibs_check_method=pass_all
4261 ;;
4262 pc)
4263 lt_cv_deplibs_check_method=pass_all
4264 ;;
4265 esac
4266 ;;
4267
4268tpf*)
4269 lt_cv_deplibs_check_method=pass_all
4270 ;;
dc5de370
HB
4271esac
4272
1cf3d07d
SE
4273fi
4274echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4275echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4276file_magic_cmd=$lt_cv_file_magic_cmd
4277deplibs_check_method=$lt_cv_deplibs_check_method
4278test -z "$deplibs_check_method" && deplibs_check_method=unknown
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
3ed8e5b6 4291if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
4292 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4293set dummy ${ac_tool_prefix}ar; ac_word=$2
3ed8e5b6
AT
4294echo "$as_me:$LINENO: checking for $ac_word" >&5
4295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4296if test "${ac_cv_prog_AR+set}" = set; then
3ed8e5b6 4297 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4298else
1cf3d07d
SE
4299 if test -n "$AR"; then
4300 ac_cv_prog_AR="$AR" # Let the user override the test.
2f7bf5b7 4301else
3ed8e5b6
AT
4302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303for as_dir in $PATH
4304do
4305 IFS=$as_save_IFS
4306 test -z "$as_dir" && as_dir=.
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4309 ac_cv_prog_AR="${ac_tool_prefix}ar"
3ed8e5b6
AT
4310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 break 2
4312 fi
4313done
4314done
4315
2f7bf5b7
AO
4316fi
4317fi
1cf3d07d
SE
4318AR=$ac_cv_prog_AR
4319if test -n "$AR"; then
4320 echo "$as_me:$LINENO: result: $AR" >&5
4321echo "${ECHO_T}$AR" >&6
2f7bf5b7 4322else
3ed8e5b6
AT
4323 echo "$as_me:$LINENO: result: no" >&5
4324echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4325fi
4326
3ed8e5b6 4327fi
1cf3d07d
SE
4328if test -z "$ac_cv_prog_AR"; then
4329 ac_ct_AR=$AR
4330 # Extract the first word of "ar", so it can be a program name with args.
4331set dummy ar; ac_word=$2
3ed8e5b6
AT
4332echo "$as_me:$LINENO: checking for $ac_word" >&5
4333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4334if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3ed8e5b6 4335 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4336else
1cf3d07d
SE
4337 if test -n "$ac_ct_AR"; then
4338 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2f7bf5b7 4339else
3ed8e5b6
AT
4340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH
4342do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4347 ac_cv_prog_ac_ct_AR="ar"
3ed8e5b6
AT
4348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 break 2
4350 fi
4351done
4352done
4353
1cf3d07d 4354 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
2f7bf5b7
AO
4355fi
4356fi
1cf3d07d
SE
4357ac_ct_AR=$ac_cv_prog_ac_ct_AR
4358if test -n "$ac_ct_AR"; then
4359 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4360echo "${ECHO_T}$ac_ct_AR" >&6
2f7bf5b7 4361else
3ed8e5b6
AT
4362 echo "$as_me:$LINENO: result: no" >&5
4363echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4364fi
4365
1cf3d07d 4366 AR=$ac_ct_AR
2f7bf5b7 4367else
1cf3d07d 4368 AR="$ac_cv_prog_AR"
2f7bf5b7
AO
4369fi
4370
1cf3d07d
SE
4371test -z "$AR" && AR=ar
4372test -z "$AR_FLAGS" && AR_FLAGS=cru
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
3ed8e5b6
AT
4384if test -n "$ac_tool_prefix"; then
4385 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2f7bf5b7 4386set dummy ${ac_tool_prefix}strip; ac_word=$2
3ed8e5b6
AT
4387echo "$as_me:$LINENO: checking for $ac_word" >&5
4388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4389if test "${ac_cv_prog_STRIP+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7
AO
4391else
4392 if test -n "$STRIP"; then
4393 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4394else
3ed8e5b6
AT
4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4405 fi
4406done
4407done
4408
2f7bf5b7
AO
4409fi
4410fi
3ed8e5b6 4411STRIP=$ac_cv_prog_STRIP
2f7bf5b7 4412if test -n "$STRIP"; then
3ed8e5b6
AT
4413 echo "$as_me:$LINENO: result: $STRIP" >&5
4414echo "${ECHO_T}$STRIP" >&6
2f7bf5b7 4415else
3ed8e5b6
AT
4416 echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4418fi
4419
3ed8e5b6 4420fi
2f7bf5b7 4421if test -z "$ac_cv_prog_STRIP"; then
3ed8e5b6 4422 ac_ct_STRIP=$STRIP
2f7bf5b7
AO
4423 # Extract the first word of "strip", so it can be a program name with args.
4424set dummy strip; ac_word=$2
3ed8e5b6
AT
4425echo "$as_me:$LINENO: checking for $ac_word" >&5
4426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4427if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4429else
3ed8e5b6
AT
4430 if test -n "$ac_ct_STRIP"; then
4431 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2f7bf5b7 4432else
3ed8e5b6
AT
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_ac_ct_STRIP="strip"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444done
4445done
4446
4447 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2f7bf5b7
AO
4448fi
4449fi
3ed8e5b6
AT
4450ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4451if test -n "$ac_ct_STRIP"; then
4452 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4453echo "${ECHO_T}$ac_ct_STRIP" >&6
675cdab3 4454else
3ed8e5b6
AT
4455 echo "$as_me:$LINENO: result: no" >&5
4456echo "${ECHO_T}no" >&6
675cdab3
BM
4457fi
4458
3ed8e5b6 4459 STRIP=$ac_ct_STRIP
675cdab3 4460else
3ed8e5b6 4461 STRIP="$ac_cv_prog_STRIP"
675cdab3
BM
4462fi
4463
1cf3d07d 4464test -z "$STRIP" && STRIP=:
675cdab3 4465
675cdab3
BM
4466
4467
675cdab3 4468
675cdab3 4469
3ed8e5b6 4470
1cf3d07d
SE
4471if test -n "$ac_tool_prefix"; then
4472 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4473set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4474echo "$as_me:$LINENO: checking for $ac_word" >&5
4475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476if test "${ac_cv_prog_RANLIB+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
675cdab3 4478else
1cf3d07d
SE
4479 if test -n "$RANLIB"; then
4480 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4481else
4482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH
4484do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4492 fi
4493done
4494done
4495
4496fi
4497fi
4498RANLIB=$ac_cv_prog_RANLIB
4499if test -n "$RANLIB"; then
4500 echo "$as_me:$LINENO: result: $RANLIB" >&5
4501echo "${ECHO_T}$RANLIB" >&6
4502else
4503 echo "$as_me:$LINENO: result: no" >&5
4504echo "${ECHO_T}no" >&6
4505fi
4506
4507fi
4508if test -z "$ac_cv_prog_RANLIB"; then
4509 ac_ct_RANLIB=$RANLIB
4510 # Extract the first word of "ranlib", so it can be a program name with args.
4511set dummy ranlib; ac_word=$2
4512echo "$as_me:$LINENO: checking for $ac_word" >&5
4513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4514if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517 if test -n "$ac_ct_RANLIB"; then
4518 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4519else
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527 ac_cv_prog_ac_ct_RANLIB="ranlib"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4530 fi
4531done
4532done
4533
4534 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4535fi
4536fi
4537ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4538if test -n "$ac_ct_RANLIB"; then
4539 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4540echo "${ECHO_T}$ac_ct_RANLIB" >&6
4541else
4542 echo "$as_me:$LINENO: result: no" >&5
4543echo "${ECHO_T}no" >&6
4544fi
4545
4546 RANLIB=$ac_ct_RANLIB
4547else
4548 RANLIB="$ac_cv_prog_RANLIB"
4549fi
4550
4551test -z "$RANLIB" && RANLIB=:
4552
4553
4554
4555
4556
4557
4558# Determine commands to create old-style static archives.
80c6c2cb 4559old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
4560old_postinstall_cmds='chmod 644 $oldlib'
4561old_postuninstall_cmds=
4562
4563if test -n "$RANLIB"; then
4564 case $host_os in
4565 openbsd*)
4566 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4567 ;;
4568 *)
4569 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4570 ;;
4571 esac
4572 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4573fi
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608# If no C compiler was specified, use CC.
4609LTCC=${LTCC-"$CC"}
4610
4611# If no C compiler flags were specified, use CFLAGS.
4612LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4613
4614# Allow CC to be a program name with arguments.
4615compiler=$CC
4616
4617
4618# Check for command to grab the raw symbol name followed by C symbol from nm.
4619echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4620echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4621if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623else
4624
4625# These are sane defaults that work on at least a few old systems.
4626# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4627
4628# Character class describing NM global symbol codes.
4629symcode='[BCDEGRST]'
4630
4631# Regexp to match symbols that can be accessed directly from C.
4632sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4633
4634# Define system-specific variables.
4635case $host_os in
4636aix*)
4637 symcode='[BCDT]'
4638 ;;
80c6c2cb 4639cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
4640 symcode='[ABCDGISTW]'
4641 ;;
4642hpux*)
4643 if test "$host_cpu" = ia64; then
4644 symcode='[ABCDEGRST]'
4645 fi
4646 ;;
4647irix* | nonstopux*)
4648 symcode='[BCDEGRST]'
4649 ;;
4650osf*)
4651 symcode='[BCDEGQRST]'
4652 ;;
4653solaris*)
4654 symcode='[BDRT]'
4655 ;;
4656sco3.2v5*)
4657 symcode='[DT]'
4658 ;;
4659sysv4.2uw2*)
4660 symcode='[DT]'
4661 ;;
4662sysv5* | sco5v6* | unixware* | OpenUNIX*)
4663 symcode='[ABDT]'
4664 ;;
4665sysv4)
4666 symcode='[DFNSTU]'
4667 ;;
4668esac
4669
4670# If we're using GNU nm, then use its standard symbol codes.
4671case `$NM -V 2>&1` in
4672*GNU* | *'with BFD'*)
4673 symcode='[ABCDGIRSTW]' ;;
4674esac
4675
4676# Transform an extracted symbol line into a proper C declaration.
4677# Some systems (esp. on ia64) link data and code symbols differently,
4678# so use this general approach.
4679lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4680
4681# Transform an extracted symbol line into symbol name and symbol address
4682lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
80c6c2cb 4683lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
1cf3d07d
SE
4684
4685# Handle CRLF in mingw tool chain
4686opt_cr=
4687case $build_os in
4688mingw*)
4689 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4690 ;;
4691esac
4692
4693# Try without a prefix underscore, then with it.
4694for ac_symprfx in "" "_"; do
4695
4696 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4697 symxfrm="\\1 $ac_symprfx\\2 \\2"
4698
4699 # Write the raw and C identifiers.
4700 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4701 # Fake it for dumpbin and say T for any non-static function
4702 # and D for any global variable.
4703 # Also find C++ and __fastcall symbols from MSVC++,
4704 # which start with @ or ?.
4705 lt_cv_sys_global_symbol_pipe="$AWK '"\
4706" {last_section=section; section=\$ 3};"\
4707" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4708" \$ 0!~/External *\|/{next};"\
4709" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4710" {if(hide[section]) next};"\
4711" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4712" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4713" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4714" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4715" ' prfx=^$ac_symprfx"
4716 else
4717 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4718 fi
4719
4720 # Check to see that the pipe works correctly.
4721 pipe_works=no
4722
4723 rm -f conftest*
4724 cat > conftest.$ac_ext <<_LT_EOF
4725#ifdef __cplusplus
4726extern "C" {
4727#endif
4728char nm_test_var;
4729void nm_test_func(void);
4730void nm_test_func(void){}
4731#ifdef __cplusplus
4732}
4733#endif
4734int main(){nm_test_var='a';nm_test_func();return(0);}
4735_LT_EOF
4736
4737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4738 (eval $ac_compile) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; then
4742 # Now try to grab the symbols.
4743 nlist=conftest.nm
4744 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4745 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } && test -s "$nlist"; then
4749 # Try sorting and uniquifying the output.
4750 if sort "$nlist" | uniq > "$nlist"T; then
4751 mv -f "$nlist"T "$nlist"
4752 else
4753 rm -f "$nlist"T
4754 fi
4755
4756 # Make sure that we snagged all the symbols we need.
4757 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4758 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4759 cat <<_LT_EOF > conftest.$ac_ext
4760#ifdef __cplusplus
4761extern "C" {
4762#endif
4763
4764_LT_EOF
4765 # Now generate the symbol file.
4766 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4767
4768 cat <<_LT_EOF >> conftest.$ac_ext
4769
4770/* The mapping between symbol names and symbols. */
4771const struct {
4772 const char *name;
4773 void *address;
4774}
4775lt__PROGRAM__LTX_preloaded_symbols[] =
4776{
4777 { "@PROGRAM@", (void *) 0 },
4778_LT_EOF
4779 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4780 cat <<\_LT_EOF >> conftest.$ac_ext
4781 {0, (void *) 0}
4782};
4783
4784/* This works around a problem in FreeBSD linker */
4785#ifdef FREEBSD_WORKAROUND
4786static const void *lt_preloaded_setup() {
4787 return lt__PROGRAM__LTX_preloaded_symbols;
4788}
4789#endif
4790
4791#ifdef __cplusplus
4792}
4793#endif
4794_LT_EOF
4795 # Now try linking the two files.
4796 mv conftest.$ac_objext conftstm.$ac_objext
4797 lt_save_LIBS="$LIBS"
4798 lt_save_CFLAGS="$CFLAGS"
4799 LIBS="conftstm.$ac_objext"
4800 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4802 (eval $ac_link) 2>&5
4803 ac_status=$?
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4806 pipe_works=yes
4807 fi
4808 LIBS="$lt_save_LIBS"
4809 CFLAGS="$lt_save_CFLAGS"
4810 else
4811 echo "cannot find nm_test_func in $nlist" >&5
4812 fi
4813 else
4814 echo "cannot find nm_test_var in $nlist" >&5
4815 fi
4816 else
4817 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4818 fi
4819 else
4820 echo "$progname: failed program was:" >&5
4821 cat conftest.$ac_ext >&5
4822 fi
80c6c2cb 4823 rm -rf conftest* conftst*
1cf3d07d
SE
4824
4825 # Do not use the global_symbol_pipe unless it works.
4826 if test "$pipe_works" = yes; then
4827 break
4828 else
4829 lt_cv_sys_global_symbol_pipe=
4830 fi
4831done
4832
4833fi
4834
4835if test -z "$lt_cv_sys_global_symbol_pipe"; then
4836 lt_cv_sys_global_symbol_to_cdecl=
4837fi
4838if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4839 echo "$as_me:$LINENO: result: failed" >&5
4840echo "${ECHO_T}failed" >&6
4841else
4842 echo "$as_me:$LINENO: result: ok" >&5
4843echo "${ECHO_T}ok" >&6
4844fi
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
80c6c2cb
PG
4860
4861
4862
4863
4864
1cf3d07d
SE
4865
4866
4867
4868# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4869if test "${enable_libtool_lock+set}" = set; then
4870 enableval="$enable_libtool_lock"
4871
3ed8e5b6 4872fi;
1cf3d07d 4873test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
675cdab3
BM
4874
4875# Some flags need to be propagated to the compiler or linker for good
4876# libtool support.
4877case $host in
1cf3d07d 4878ia64-*-hpux*)
675cdab3 4879 # Find out which ABI we are using.
1cf3d07d 4880 echo 'int i;' > conftest.$ac_ext
3ed8e5b6
AT
4881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4882 (eval $ac_compile) 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; then
675cdab3 4886 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
4887 *ELF-32*)
4888 HPUX_IA64_MODE="32"
4889 ;;
4890 *ELF-64*)
4891 HPUX_IA64_MODE="64"
4892 ;;
3ed8e5b6 4893 esac
3ed8e5b6
AT
4894 fi
4895 rm -rf conftest*
4896 ;;
1cf3d07d
SE
4897*-*-irix6*)
4898 # Find out which ABI we are using.
80c6c2cb 4899 echo '#line 4899 "configure"' > conftest.$ac_ext
1cf3d07d
SE
4900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4901 (eval $ac_compile) 2>&5
4902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; then
4905 if test "$lt_cv_prog_gnu_ld" = yes; then
4906 case `/usr/bin/file conftest.$ac_objext` in
4907 *32-bit*)
4908 LD="${LD-ld} -melf32bsmip"
4909 ;;
4910 *N32*)
4911 LD="${LD-ld} -melf32bmipn32"
4912 ;;
4913 *64-bit*)
4914 LD="${LD-ld} -melf64bmip"
4915 ;;
4916 esac
4917 else
4918 case `/usr/bin/file conftest.$ac_objext` in
4919 *32-bit*)
4920 LD="${LD-ld} -32"
4921 ;;
4922 *N32*)
4923 LD="${LD-ld} -n32"
4924 ;;
4925 *64-bit*)
4926 LD="${LD-ld} -64"
4927 ;;
4928 esac
4929 fi
4930 fi
4931 rm -rf conftest*
4932 ;;
4933
4934x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4935s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4936 # Find out which ABI we are using.
4937 echo 'int i;' > conftest.$ac_ext
4938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4939 (eval $ac_compile) 2>&5
4940 ac_status=$?
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; then
4943 case `/usr/bin/file conftest.o` in
4944 *32-bit*)
4945 case $host in
4946 x86_64-*kfreebsd*-gnu)
4947 LD="${LD-ld} -m elf_i386_fbsd"
4948 ;;
4949 x86_64-*linux*)
4950 LD="${LD-ld} -m elf_i386"
4951 ;;
4952 ppc64-*linux*|powerpc64-*linux*)
4953 LD="${LD-ld} -m elf32ppclinux"
4954 ;;
4955 s390x-*linux*)
4956 LD="${LD-ld} -m elf_s390"
4957 ;;
4958 sparc64-*linux*)
4959 LD="${LD-ld} -m elf32_sparc"
4960 ;;
4961 esac
4962 ;;
4963 *64-bit*)
4964 case $host in
4965 x86_64-*kfreebsd*-gnu)
4966 LD="${LD-ld} -m elf_x86_64_fbsd"
4967 ;;
4968 x86_64-*linux*)
4969 LD="${LD-ld} -m elf_x86_64"
4970 ;;
4971 ppc*-*linux*|powerpc*-*linux*)
4972 LD="${LD-ld} -m elf64ppc"
4973 ;;
4974 s390*-*linux*|s390*-*tpf*)
4975 LD="${LD-ld} -m elf64_s390"
4976 ;;
4977 sparc*-*linux*)
4978 LD="${LD-ld} -m elf64_sparc"
4979 ;;
4980 esac
4981 ;;
4982 esac
4983 fi
4984 rm -rf conftest*
4985 ;;
4986
4987*-*-sco3.2v5*)
4988 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4989 SAVE_CFLAGS="$CFLAGS"
4990 CFLAGS="$CFLAGS -belf"
4991 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4992echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4993if test "${lt_cv_cc_needs_belf+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4995else
4996 ac_ext=c
4997ac_cpp='$CPP $CPPFLAGS'
4998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5000ac_compiler_gnu=$ac_cv_c_compiler_gnu
5001
5002 cat >conftest.$ac_ext <<_ACEOF
5003/* confdefs.h. */
5004_ACEOF
5005cat confdefs.h >>conftest.$ac_ext
5006cat >>conftest.$ac_ext <<_ACEOF
5007/* end confdefs.h. */
5008
5009int
5010main ()
5011{
5012
5013 ;
5014 return 0;
5015}
5016_ACEOF
5017rm -f conftest.$ac_objext conftest$ac_exeext
5018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5019 (eval $ac_link) 2>conftest.er1
5020 ac_status=$?
5021 grep -v '^ *+' conftest.er1 >conftest.err
5022 rm -f conftest.er1
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } &&
5026 { ac_try='test -z "$ac_c_werror_flag"
5027 || test ! -s conftest.err'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 (eval $ac_try) 2>&5
5030 ac_status=$?
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; } &&
5033 { ac_try='test -s conftest$ac_exeext'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 (eval $ac_try) 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; }; then
5039 lt_cv_cc_needs_belf=yes
5040else
5041 echo "$as_me: failed program was:" >&5
5042sed 's/^/| /' conftest.$ac_ext >&5
5043
5044lt_cv_cc_needs_belf=no
5045fi
5046rm -f conftest.err conftest.$ac_objext \
5047 conftest$ac_exeext conftest.$ac_ext
5048 ac_ext=c
5049ac_cpp='$CPP $CPPFLAGS'
5050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052ac_compiler_gnu=$ac_cv_c_compiler_gnu
5053
5054fi
5055echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5056echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5057 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5058 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5059 CFLAGS="$SAVE_CFLAGS"
5060 fi
5061 ;;
5062sparc*-*solaris*)
5063 # Find out which ABI we are using.
5064 echo 'int i;' > conftest.$ac_ext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066 (eval $ac_compile) 2>&5
5067 ac_status=$?
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; then
5070 case `/usr/bin/file conftest.o` in
5071 *64-bit*)
5072 case $lt_cv_prog_gnu_ld in
5073 yes*) LD="${LD-ld} -m elf64_sparc" ;;
80c6c2cb
PG
5074 *)
5075 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5076 LD="${LD-ld} -64"
5077 fi
5078 ;;
1cf3d07d
SE
5079 esac
5080 ;;
5081 esac
5082 fi
5083 rm -rf conftest*
5084 ;;
5085esac
5086
5087need_locks="$enable_libtool_lock"
5088
80c6c2cb
PG
5089
5090 case $host_os in
5091 rhapsody* | darwin*)
5092 if test -n "$ac_tool_prefix"; then
5093 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5094set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5095echo "$as_me:$LINENO: checking for $ac_word" >&5
5096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5097if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
1cf3d07d
SE
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
80c6c2cb
PG
5100 if test -n "$DSYMUTIL"; then
5101 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5102else
5103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH
1cf3d07d 5105do
80c6c2cb
PG
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5110 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 break 2
1cf3d07d 5113 fi
80c6c2cb
PG
5114done
5115done
5116
5117fi
5118fi
5119DSYMUTIL=$ac_cv_prog_DSYMUTIL
5120if test -n "$DSYMUTIL"; then
5121 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5122echo "${ECHO_T}$DSYMUTIL" >&6
5123else
5124 echo "$as_me:$LINENO: result: no" >&5
5125echo "${ECHO_T}no" >&6
5126fi
5127
5128fi
5129if test -z "$ac_cv_prog_DSYMUTIL"; then
5130 ac_ct_DSYMUTIL=$DSYMUTIL
5131 # Extract the first word of "dsymutil", so it can be a program name with args.
5132set dummy dsymutil; ac_word=$2
5133echo "$as_me:$LINENO: checking for $ac_word" >&5
5134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5135if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138 if test -n "$ac_ct_DSYMUTIL"; then
5139 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5140else
5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5151 fi
5152done
5153done
5154
5155 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
5156fi
5157fi
5158ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5159if test -n "$ac_ct_DSYMUTIL"; then
5160 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5161echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
5162else
5163 echo "$as_me:$LINENO: result: no" >&5
5164echo "${ECHO_T}no" >&6
5165fi
5166
5167 DSYMUTIL=$ac_ct_DSYMUTIL
5168else
5169 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5170fi
5171
5172 if test -n "$ac_tool_prefix"; then
5173 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5174set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5175echo "$as_me:$LINENO: checking for $ac_word" >&5
5176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5177if test "${ac_cv_prog_NMEDIT+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5179else
5180 if test -n "$NMEDIT"; then
5181 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5182else
5183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184for as_dir in $PATH
5185do
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 break 2
5193 fi
5194done
5195done
5196
5197fi
5198fi
5199NMEDIT=$ac_cv_prog_NMEDIT
5200if test -n "$NMEDIT"; then
5201 echo "$as_me:$LINENO: result: $NMEDIT" >&5
5202echo "${ECHO_T}$NMEDIT" >&6
5203else
5204 echo "$as_me:$LINENO: result: no" >&5
5205echo "${ECHO_T}no" >&6
5206fi
5207
5208fi
5209if test -z "$ac_cv_prog_NMEDIT"; then
5210 ac_ct_NMEDIT=$NMEDIT
5211 # Extract the first word of "nmedit", so it can be a program name with args.
5212set dummy nmedit; ac_word=$2
5213echo "$as_me:$LINENO: checking for $ac_word" >&5
5214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5215if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217else
5218 if test -n "$ac_ct_NMEDIT"; then
5219 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5220else
5221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232done
5233done
5234
5235 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
5236fi
5237fi
5238ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5239if test -n "$ac_ct_NMEDIT"; then
5240 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5241echo "${ECHO_T}$ac_ct_NMEDIT" >&6
5242else
5243 echo "$as_me:$LINENO: result: no" >&5
5244echo "${ECHO_T}no" >&6
5245fi
5246
5247 NMEDIT=$ac_ct_NMEDIT
5248else
5249 NMEDIT="$ac_cv_prog_NMEDIT"
5250fi
5251
5252 if test -n "$ac_tool_prefix"; then
5253 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5254set dummy ${ac_tool_prefix}lipo; ac_word=$2
5255echo "$as_me:$LINENO: checking for $ac_word" >&5
5256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5257if test "${ac_cv_prog_LIPO+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259else
5260 if test -n "$LIPO"; then
5261 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5262else
5263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH
5265do
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5273 fi
5274done
5275done
5276
5277fi
5278fi
5279LIPO=$ac_cv_prog_LIPO
5280if test -n "$LIPO"; then
5281 echo "$as_me:$LINENO: result: $LIPO" >&5
5282echo "${ECHO_T}$LIPO" >&6
5283else
5284 echo "$as_me:$LINENO: result: no" >&5
5285echo "${ECHO_T}no" >&6
5286fi
5287
5288fi
5289if test -z "$ac_cv_prog_LIPO"; then
5290 ac_ct_LIPO=$LIPO
5291 # Extract the first word of "lipo", so it can be a program name with args.
5292set dummy lipo; ac_word=$2
5293echo "$as_me:$LINENO: checking for $ac_word" >&5
5294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5295if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5297else
5298 if test -n "$ac_ct_LIPO"; then
5299 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5300else
5301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302for as_dir in $PATH
5303do
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308 ac_cv_prog_ac_ct_LIPO="lipo"
5309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5311 fi
5312done
5313done
5314
5315 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
5316fi
5317fi
5318ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5319if test -n "$ac_ct_LIPO"; then
5320 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5321echo "${ECHO_T}$ac_ct_LIPO" >&6
5322else
5323 echo "$as_me:$LINENO: result: no" >&5
5324echo "${ECHO_T}no" >&6
5325fi
5326
5327 LIPO=$ac_ct_LIPO
5328else
5329 LIPO="$ac_cv_prog_LIPO"
5330fi
5331
5332 if test -n "$ac_tool_prefix"; then
5333 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5334set dummy ${ac_tool_prefix}otool; ac_word=$2
5335echo "$as_me:$LINENO: checking for $ac_word" >&5
5336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5337if test "${ac_cv_prog_OTOOL+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5339else
5340 if test -n "$OTOOL"; then
5341 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5342else
5343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344for as_dir in $PATH
5345do
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5353 fi
5354done
5355done
5356
5357fi
5358fi
5359OTOOL=$ac_cv_prog_OTOOL
5360if test -n "$OTOOL"; then
5361 echo "$as_me:$LINENO: result: $OTOOL" >&5
5362echo "${ECHO_T}$OTOOL" >&6
5363else
5364 echo "$as_me:$LINENO: result: no" >&5
5365echo "${ECHO_T}no" >&6
5366fi
5367
5368fi
5369if test -z "$ac_cv_prog_OTOOL"; then
5370 ac_ct_OTOOL=$OTOOL
5371 # Extract the first word of "otool", so it can be a program name with args.
5372set dummy otool; ac_word=$2
5373echo "$as_me:$LINENO: checking for $ac_word" >&5
5374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5375if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377else
5378 if test -n "$ac_ct_OTOOL"; then
5379 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5380else
5381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382for as_dir in $PATH
5383do
5384 IFS=$as_save_IFS
5385 test -z "$as_dir" && as_dir=.
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5388 ac_cv_prog_ac_ct_OTOOL="otool"
5389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 break 2
5391 fi
5392done
5393done
5394
5395 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
5396fi
5397fi
5398ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5399if test -n "$ac_ct_OTOOL"; then
5400 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5401echo "${ECHO_T}$ac_ct_OTOOL" >&6
5402else
5403 echo "$as_me:$LINENO: result: no" >&5
5404echo "${ECHO_T}no" >&6
5405fi
5406
5407 OTOOL=$ac_ct_OTOOL
5408else
5409 OTOOL="$ac_cv_prog_OTOOL"
5410fi
5411
5412 if test -n "$ac_tool_prefix"; then
5413 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5414set dummy ${ac_tool_prefix}otool64; ac_word=$2
5415echo "$as_me:$LINENO: checking for $ac_word" >&5
5416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5417if test "${ac_cv_prog_OTOOL64+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419else
5420 if test -n "$OTOOL64"; then
5421 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5422else
5423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424for as_dir in $PATH
5425do
5426 IFS=$as_save_IFS
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 break 2
5433 fi
5434done
5435done
5436
5437fi
5438fi
5439OTOOL64=$ac_cv_prog_OTOOL64
5440if test -n "$OTOOL64"; then
5441 echo "$as_me:$LINENO: result: $OTOOL64" >&5
5442echo "${ECHO_T}$OTOOL64" >&6
5443else
5444 echo "$as_me:$LINENO: result: no" >&5
5445echo "${ECHO_T}no" >&6
5446fi
5447
5448fi
5449if test -z "$ac_cv_prog_OTOOL64"; then
5450 ac_ct_OTOOL64=$OTOOL64
5451 # Extract the first word of "otool64", so it can be a program name with args.
5452set dummy otool64; ac_word=$2
5453echo "$as_me:$LINENO: checking for $ac_word" >&5
5454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5455if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457else
5458 if test -n "$ac_ct_OTOOL64"; then
5459 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5460else
5461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462for as_dir in $PATH
5463do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468 ac_cv_prog_ac_ct_OTOOL64="otool64"
5469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5471 fi
5472done
5473done
5474
5475 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
5476fi
5477fi
5478ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5479if test -n "$ac_ct_OTOOL64"; then
5480 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5481echo "${ECHO_T}$ac_ct_OTOOL64" >&6
5482else
5483 echo "$as_me:$LINENO: result: no" >&5
5484echo "${ECHO_T}no" >&6
5485fi
5486
5487 OTOOL64=$ac_ct_OTOOL64
5488else
5489 OTOOL64="$ac_cv_prog_OTOOL64"
5490fi
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5519echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
5520if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5522else
5523 lt_cv_apple_cc_single_mod=no
5524 if test -z "${LT_MULTI_MODULE}"; then
5525 # By default we will add the -single_module flag. You can override
5526 # by either setting the environment variable LT_MULTI_MODULE
5527 # non-empty at configure time, or by adding -multi_module to the
5528 # link flags.
5529 rm -rf libconftest.dylib*
5530 echo "int foo(void){return 1;}" > conftest.c
5531 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5532-dynamiclib -Wl,-single_module conftest.c" >&5
5533 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5534 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5535 _lt_result=$?
5536 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5537 lt_cv_apple_cc_single_mod=yes
5538 else
5539 cat conftest.err >&5
5540 fi
5541 rm -rf libconftest.dylib*
5542 rm -f conftest.*
5543 fi
5544fi
5545echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5546echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
5547 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5548echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
5549if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5551else
5552 lt_cv_ld_exported_symbols_list=no
5553 save_LDFLAGS=$LDFLAGS
5554 echo "_main" > conftest.sym
5555 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5556 cat >conftest.$ac_ext <<_ACEOF
5557/* confdefs.h. */
5558_ACEOF
5559cat confdefs.h >>conftest.$ac_ext
5560cat >>conftest.$ac_ext <<_ACEOF
5561/* end confdefs.h. */
5562
5563int
5564main ()
5565{
5566
5567 ;
5568 return 0;
5569}
5570_ACEOF
5571rm -f conftest.$ac_objext conftest$ac_exeext
5572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5573 (eval $ac_link) 2>conftest.er1
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } &&
5580 { ac_try='test -z "$ac_c_werror_flag"
5581 || test ! -s conftest.err'
5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583 (eval $ac_try) 2>&5
5584 ac_status=$?
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; } &&
5587 { ac_try='test -s conftest$ac_exeext'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 (eval $ac_try) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5593 lt_cv_ld_exported_symbols_list=yes
5594else
5595 echo "$as_me: failed program was:" >&5
5596sed 's/^/| /' conftest.$ac_ext >&5
5597
5598lt_cv_ld_exported_symbols_list=no
5599fi
5600rm -f conftest.err conftest.$ac_objext \
5601 conftest$ac_exeext conftest.$ac_ext
5602 LDFLAGS="$save_LDFLAGS"
5603
5604fi
5605echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5606echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
5607 case $host_os in
5608 rhapsody* | darwin1.[012])
5609 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5610 darwin1.*)
5611 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5612 darwin*) # darwin 5.x on
5613 # if running on 10.5 or later, the deployment target defaults
5614 # to the OS version, if on x86, and 10.4, the deployment
5615 # target defaults to 10.4. Don't you love it?
5616 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5617 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5618 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5619 10.[012]*)
5620 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5621 10.*)
5622 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5623 esac
5624 ;;
5625 esac
5626 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5627 _lt_dar_single_mod='$single_module'
5628 fi
5629 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5630 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5631 else
5632 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5633 fi
5634 if test "$DSYMUTIL" != ":"; then
5635 _lt_dsymutil='~$DSYMUTIL $lib || :'
5636 else
5637 _lt_dsymutil=
5638 fi
5639 ;;
5640 esac
5641
5642ac_ext=c
5643ac_cpp='$CPP $CPPFLAGS'
5644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646ac_compiler_gnu=$ac_cv_c_compiler_gnu
5647echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5648echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5649# On Suns, sometimes $CPP names a directory.
5650if test -n "$CPP" && test -d "$CPP"; then
5651 CPP=
5652fi
5653if test -z "$CPP"; then
5654 if test "${ac_cv_prog_CPP+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656else
5657 # Double quotes because CPP needs to be expanded
5658 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5659 do
5660 ac_preproc_ok=false
5661for ac_c_preproc_warn_flag in '' yes
5662do
5663 # Use a header file that comes with gcc, so configuring glibc
5664 # with a fresh cross-compiler works.
5665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5666 # <limits.h> exists even on freestanding compilers.
5667 # On the NeXT, cc -E runs the code through the compiler's parser,
5668 # not just through cpp. "Syntax error" is here to catch this case.
5669 cat >conftest.$ac_ext <<_ACEOF
5670/* confdefs.h. */
5671_ACEOF
5672cat confdefs.h >>conftest.$ac_ext
5673cat >>conftest.$ac_ext <<_ACEOF
5674/* end confdefs.h. */
5675#ifdef __STDC__
5676# include <limits.h>
5677#else
5678# include <assert.h>
5679#endif
5680 Syntax error
5681_ACEOF
5682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } >/dev/null; then
5690 if test -s conftest.err; then
5691 ac_cpp_err=$ac_c_preproc_warn_flag
5692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5693 else
5694 ac_cpp_err=
5695 fi
5696else
5697 ac_cpp_err=yes
1cf3d07d
SE
5698fi
5699if test -z "$ac_cpp_err"; then
5700 :
5701else
5702 echo "$as_me: failed program was:" >&5
5703sed 's/^/| /' conftest.$ac_ext >&5
5704
5705 # Broken: fails on valid input.
5706continue
5707fi
5708rm -f conftest.err conftest.$ac_ext
5709
5710 # OK, works on sane cases. Now check whether non-existent headers
5711 # can be detected and how.
5712 cat >conftest.$ac_ext <<_ACEOF
5713/* confdefs.h. */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h. */
5718#include <ac_nonexistent.h>
5719_ACEOF
5720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5722 ac_status=$?
5723 grep -v '^ *+' conftest.er1 >conftest.err
5724 rm -f conftest.er1
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } >/dev/null; then
5728 if test -s conftest.err; then
5729 ac_cpp_err=$ac_c_preproc_warn_flag
5730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5731 else
5732 ac_cpp_err=
5733 fi
5734else
5735 ac_cpp_err=yes
5736fi
5737if test -z "$ac_cpp_err"; then
5738 # Broken: success on invalid input.
5739continue
5740else
5741 echo "$as_me: failed program was:" >&5
5742sed 's/^/| /' conftest.$ac_ext >&5
5743
5744 # Passes both tests.
5745ac_preproc_ok=:
5746break
5747fi
5748rm -f conftest.err conftest.$ac_ext
5749
5750done
5751# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5752rm -f conftest.err conftest.$ac_ext
5753if $ac_preproc_ok; then
5754 break
5755fi
5756
5757 done
5758 ac_cv_prog_CPP=$CPP
5759
5760fi
5761 CPP=$ac_cv_prog_CPP
5762else
5763 ac_cv_prog_CPP=$CPP
5764fi
5765echo "$as_me:$LINENO: result: $CPP" >&5
5766echo "${ECHO_T}$CPP" >&6
5767ac_preproc_ok=false
5768for ac_c_preproc_warn_flag in '' yes
5769do
5770 # Use a header file that comes with gcc, so configuring glibc
5771 # with a fresh cross-compiler works.
5772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5773 # <limits.h> exists even on freestanding compilers.
5774 # On the NeXT, cc -E runs the code through the compiler's parser,
5775 # not just through cpp. "Syntax error" is here to catch this case.
5776 cat >conftest.$ac_ext <<_ACEOF
5777/* confdefs.h. */
5778_ACEOF
5779cat confdefs.h >>conftest.$ac_ext
5780cat >>conftest.$ac_ext <<_ACEOF
5781/* end confdefs.h. */
5782#ifdef __STDC__
5783# include <limits.h>
5784#else
5785# include <assert.h>
5786#endif
5787 Syntax error
5788_ACEOF
5789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } >/dev/null; then
5797 if test -s conftest.err; then
5798 ac_cpp_err=$ac_c_preproc_warn_flag
5799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5800 else
5801 ac_cpp_err=
5802 fi
5803else
5804 ac_cpp_err=yes
5805fi
5806if test -z "$ac_cpp_err"; then
5807 :
5808else
5809 echo "$as_me: failed program was:" >&5
5810sed 's/^/| /' conftest.$ac_ext >&5
5811
5812 # Broken: fails on valid input.
5813continue
5814fi
5815rm -f conftest.err conftest.$ac_ext
5816
5817 # OK, works on sane cases. Now check whether non-existent headers
5818 # can be detected and how.
5819 cat >conftest.$ac_ext <<_ACEOF
5820/* confdefs.h. */
5821_ACEOF
5822cat confdefs.h >>conftest.$ac_ext
5823cat >>conftest.$ac_ext <<_ACEOF
5824/* end confdefs.h. */
5825#include <ac_nonexistent.h>
5826_ACEOF
5827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } >/dev/null; then
5835 if test -s conftest.err; then
5836 ac_cpp_err=$ac_c_preproc_warn_flag
5837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5838 else
5839 ac_cpp_err=
5840 fi
5841else
5842 ac_cpp_err=yes
5843fi
5844if test -z "$ac_cpp_err"; then
5845 # Broken: success on invalid input.
5846continue
5847else
5848 echo "$as_me: failed program was:" >&5
5849sed 's/^/| /' conftest.$ac_ext >&5
5850
5851 # Passes both tests.
5852ac_preproc_ok=:
5853break
5854fi
5855rm -f conftest.err conftest.$ac_ext
5856
5857done
5858# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5859rm -f conftest.err conftest.$ac_ext
5860if $ac_preproc_ok; then
5861 :
5862else
18c04407
RW
5863 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5864echo "$as_me: error: in \`$ac_pwd':" >&2;}
5865{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1cf3d07d
SE
5866See \`config.log' for more details." >&5
5867echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5868See \`config.log' for more details." >&2;}
18c04407 5869 { (exit 1); exit 1; }; }; }
1cf3d07d
SE
5870fi
5871
5872ac_ext=c
5873ac_cpp='$CPP $CPPFLAGS'
5874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876ac_compiler_gnu=$ac_cv_c_compiler_gnu
5877
5878
5879echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5880echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5881if test "${ac_cv_header_stdc+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883else
5884 cat >conftest.$ac_ext <<_ACEOF
5885/* confdefs.h. */
5886_ACEOF
5887cat confdefs.h >>conftest.$ac_ext
5888cat >>conftest.$ac_ext <<_ACEOF
5889/* end confdefs.h. */
5890#include <stdlib.h>
5891#include <stdarg.h>
5892#include <string.h>
5893#include <float.h>
5894
5895int
5896main ()
5897{
5898
5899 ;
5900 return 0;
5901}
5902_ACEOF
5903rm -f conftest.$ac_objext
5904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5905 (eval $ac_compile) 2>conftest.er1
5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_c_werror_flag"
5913 || test ! -s conftest.err'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 (eval $ac_try) 2>&5
5916 ac_status=$?
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try='test -s conftest.$ac_objext'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 (eval $ac_try) 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 ac_cv_header_stdc=yes
5926else
5927 echo "$as_me: failed program was:" >&5
5928sed 's/^/| /' conftest.$ac_ext >&5
5929
5930ac_cv_header_stdc=no
5931fi
5932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5933
5934if test $ac_cv_header_stdc = yes; then
5935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5936 cat >conftest.$ac_ext <<_ACEOF
5937/* confdefs.h. */
5938_ACEOF
5939cat confdefs.h >>conftest.$ac_ext
5940cat >>conftest.$ac_ext <<_ACEOF
5941/* end confdefs.h. */
5942#include <string.h>
5943
5944_ACEOF
5945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5946 $EGREP "memchr" >/dev/null 2>&1; then
5947 :
5948else
5949 ac_cv_header_stdc=no
5950fi
5951rm -f conftest*
5952
5953fi
5954
5955if test $ac_cv_header_stdc = yes; then
5956 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5957 cat >conftest.$ac_ext <<_ACEOF
5958/* confdefs.h. */
5959_ACEOF
5960cat confdefs.h >>conftest.$ac_ext
5961cat >>conftest.$ac_ext <<_ACEOF
5962/* end confdefs.h. */
5963#include <stdlib.h>
5964
5965_ACEOF
5966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5967 $EGREP "free" >/dev/null 2>&1; then
5968 :
5969else
5970 ac_cv_header_stdc=no
5971fi
5972rm -f conftest*
5973
5974fi
5975
5976if test $ac_cv_header_stdc = yes; then
5977 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5978 if test "$cross_compiling" = yes; then
5979 :
5980else
5981 cat >conftest.$ac_ext <<_ACEOF
5982/* confdefs.h. */
5983_ACEOF
5984cat confdefs.h >>conftest.$ac_ext
5985cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h. */
5987#include <ctype.h>
5988#if ((' ' & 0x0FF) == 0x020)
5989# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5990# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5991#else
5992# define ISLOWER(c) \
5993 (('a' <= (c) && (c) <= 'i') \
5994 || ('j' <= (c) && (c) <= 'r') \
5995 || ('s' <= (c) && (c) <= 'z'))
5996# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5997#endif
5998
5999#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6000int
6001main ()
6002{
6003 int i;
6004 for (i = 0; i < 256; i++)
6005 if (XOR (islower (i), ISLOWER (i))
6006 || toupper (i) != TOUPPER (i))
6007 exit(2);
6008 exit (0);
6009}
6010_ACEOF
6011rm -f conftest$ac_exeext
6012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013 (eval $ac_link) 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 :
6023else
6024 echo "$as_me: program exited with status $ac_status" >&5
6025echo "$as_me: failed program was:" >&5
6026sed 's/^/| /' conftest.$ac_ext >&5
6027
6028( exit $ac_status )
6029ac_cv_header_stdc=no
6030fi
6031rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6032fi
6033fi
6034fi
6035echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6036echo "${ECHO_T}$ac_cv_header_stdc" >&6
6037if test $ac_cv_header_stdc = yes; then
6038
6039cat >>confdefs.h <<\_ACEOF
6040#define STDC_HEADERS 1
6041_ACEOF
6042
6043fi
6044
6045# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6056 inttypes.h stdint.h unistd.h
6057do
6058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6059echo "$as_me:$LINENO: checking for $ac_header" >&5
6060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6061if eval "test \"\${$as_ac_Header+set}\" = set"; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063else
6064 cat >conftest.$ac_ext <<_ACEOF
6065/* confdefs.h. */
6066_ACEOF
6067cat confdefs.h >>conftest.$ac_ext
6068cat >>conftest.$ac_ext <<_ACEOF
6069/* end confdefs.h. */
6070$ac_includes_default
6071
6072#include <$ac_header>
6073_ACEOF
6074rm -f conftest.$ac_objext
6075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076 (eval $ac_compile) 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try='test -z "$ac_c_werror_flag"
6084 || test ! -s conftest.err'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try='test -s conftest.$ac_objext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 eval "$as_ac_Header=yes"
6097else
80c6c2cb
PG
6098 echo "$as_me: failed program was:" >&5
6099sed 's/^/| /' conftest.$ac_ext >&5
6100
6101eval "$as_ac_Header=no"
6102fi
6103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6104fi
6105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6107if test `eval echo '${'$as_ac_Header'}'` = yes; then
6108 cat >>confdefs.h <<_ACEOF
6109#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6110_ACEOF
6111
6112fi
6113
6114done
6115
6116
6117
6118for ac_header in dlfcn.h
6119do
6120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6121echo "$as_me:$LINENO: checking for $ac_header" >&5
6122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6123if eval "test \"\${$as_ac_Header+set}\" = set"; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125else
6126 cat >conftest.$ac_ext <<_ACEOF
6127/* confdefs.h. */
6128_ACEOF
6129cat confdefs.h >>conftest.$ac_ext
6130cat >>conftest.$ac_ext <<_ACEOF
6131/* end confdefs.h. */
6132$ac_includes_default
6133
6134#include <$ac_header>
6135_ACEOF
6136rm -f conftest.$ac_objext
6137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138 (eval $ac_compile) 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -z "$ac_c_werror_flag"
6146 || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest.$ac_objext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 (eval $ac_try) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 eval "$as_ac_Header=yes"
6159else
6160 echo "$as_me: failed program was:" >&5
6161sed 's/^/| /' conftest.$ac_ext >&5
6162
6163eval "$as_ac_Header=no"
6164fi
6165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6166fi
6167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6168echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6169if test `eval echo '${'$as_ac_Header'}'` = yes; then
6170 cat >>confdefs.h <<_ACEOF
6171#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6172_ACEOF
6173
6174fi
6175
6176done
6177
6178
6179
6180# Set options
6181
6182
6183
6184 enable_dlopen=no
6185
6186
6187 enable_win32_dll=no
6188
6189
6190 # Check whether --enable-shared or --disable-shared was given.
6191if test "${enable_shared+set}" = set; then
6192 enableval="$enable_shared"
6193 p=${PACKAGE-default}
6194 case $enableval in
6195 yes) enable_shared=yes ;;
6196 no) enable_shared=no ;;
6197 *)
6198 enable_shared=no
6199 # Look at the argument we got. We use all the common list separators.
6200 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6201 for pkg in $enableval; do
6202 IFS="$lt_save_ifs"
6203 if test "X$pkg" = "X$p"; then
6204 enable_shared=yes
6205 fi
6206 done
6207 IFS="$lt_save_ifs"
6208 ;;
6209 esac
6210else
6211 enable_shared=yes
6212fi;
6213
6214
6215
6216
6217
6218
6219
6220
6221 # Check whether --enable-static or --disable-static was given.
6222if test "${enable_static+set}" = set; then
6223 enableval="$enable_static"
6224 p=${PACKAGE-default}
6225 case $enableval in
6226 yes) enable_static=yes ;;
6227 no) enable_static=no ;;
6228 *)
6229 enable_static=no
6230 # Look at the argument we got. We use all the common list separators.
6231 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6232 for pkg in $enableval; do
6233 IFS="$lt_save_ifs"
6234 if test "X$pkg" = "X$p"; then
6235 enable_static=yes
6236 fi
6237 done
6238 IFS="$lt_save_ifs"
6239 ;;
6240 esac
6241else
6242 enable_static=yes
6243fi;
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253# Check whether --with-pic or --without-pic was given.
6254if test "${with_pic+set}" = set; then
6255 withval="$with_pic"
6256 pic_mode="$withval"
6257else
6258 pic_mode=default
6259fi;
1cf3d07d 6260
80c6c2cb 6261test -z "$pic_mode" && pic_mode=default
1cf3d07d 6262
1cf3d07d 6263
1cf3d07d
SE
6264
6265
6266
1cf3d07d 6267
80c6c2cb
PG
6268
6269 # Check whether --enable-fast-install or --disable-fast-install was given.
6270if test "${enable_fast_install+set}" = set; then
6271 enableval="$enable_fast_install"
6272 p=${PACKAGE-default}
6273 case $enableval in
6274 yes) enable_fast_install=yes ;;
6275 no) enable_fast_install=no ;;
6276 *)
6277 enable_fast_install=no
6278 # Look at the argument we got. We use all the common list separators.
6279 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6280 for pkg in $enableval; do
6281 IFS="$lt_save_ifs"
6282 if test "X$pkg" = "X$p"; then
6283 enable_fast_install=yes
6284 fi
6285 done
6286 IFS="$lt_save_ifs"
6287 ;;
6288 esac
1cf3d07d 6289else
80c6c2cb
PG
6290 enable_fast_install=yes
6291fi;
6292
6293
6294
6295
1cf3d07d 6296
1cf3d07d 6297
1cf3d07d 6298
1cf3d07d
SE
6299
6300
6301
6302# This can be used to rebuild libtool when needed
6303LIBTOOL_DEPS="$ltmain"
6304
6305# Always use our own libtool.
6306LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332test -z "$LN_S" && LN_S="ln -s"
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347if test -n "${ZSH_VERSION+set}" ; then
6348 setopt NO_GLOB_SUBST
6349fi
6350
6351echo "$as_me:$LINENO: checking for objdir" >&5
6352echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6353if test "${lt_cv_objdir+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355else
6356 rm -f .libs 2>/dev/null
6357mkdir .libs 2>/dev/null
6358if test -d .libs; then
6359 lt_cv_objdir=.libs
6360else
6361 # MS-DOS does not allow filenames that begin with a dot.
6362 lt_cv_objdir=_libs
6363fi
6364rmdir .libs 2>/dev/null
6365fi
6366echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6367echo "${ECHO_T}$lt_cv_objdir" >&6
6368objdir=$lt_cv_objdir
6369
6370
6371
6372
6373
6374cat >>confdefs.h <<_ACEOF
6375#define LT_OBJDIR "$lt_cv_objdir/"
6376_ACEOF
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394case $host_os in
6395aix3*)
6396 # AIX sometimes has problems with the GCC collect2 program. For some
6397 # reason, if we set the COLLECT_NAMES environment variable, the problems
6398 # vanish in a puff of smoke.
6399 if test "X${COLLECT_NAMES+set}" != Xset; then
6400 COLLECT_NAMES=
6401 export COLLECT_NAMES
6402 fi
6403 ;;
6404esac
6405
6406# Sed substitution that helps us do robust quoting. It backslashifies
6407# metacharacters that are still active within double-quoted strings.
6408sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6409
6410# Same as above, but do not quote variable references.
6411double_quote_subst='s/\(["`\\]\)/\\\1/g'
6412
6413# Sed substitution to delay expansion of an escaped shell variable in a
6414# double_quote_subst'ed string.
6415delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6416
6417# Sed substitution to delay expansion of an escaped single quote.
6418delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6419
6420# Sed substitution to avoid accidental globbing in evaled expressions
6421no_glob_subst='s/\*/\\\*/g'
6422
6423# Global variables:
6424ofile=libtool
6425can_build_shared=yes
6426
6427# All known linkers require a `.a' archive for static linking (except MSVC,
6428# which needs '.lib').
6429libext=a
6430
6431with_gnu_ld="$lt_cv_prog_gnu_ld"
6432
6433old_CC="$CC"
6434old_CFLAGS="$CFLAGS"
6435
6436# Set sane defaults for various variables
6437test -z "$CC" && CC=cc
6438test -z "$LTCC" && LTCC=$CC
6439test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6440test -z "$LD" && LD=ld
6441test -z "$ac_objext" && ac_objext=o
6442
6443for cc_temp in $compiler""; do
6444 case $cc_temp in
6445 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6446 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6447 \-*) ;;
6448 *) break;;
6449 esac
6450done
6451cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6452
6453
6454# Only perform the check for file, if the check method requires it
6455test -z "$MAGIC_CMD" && MAGIC_CMD=file
6456case $deplibs_check_method in
6457file_magic*)
6458 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6459 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6460echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6461if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6463else
6464 case $MAGIC_CMD in
6465[\\/*] | ?:[\\/]*)
6466 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6467 ;;
6468*)
6469 lt_save_MAGIC_CMD="$MAGIC_CMD"
6470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6471 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6472 for ac_dir in $ac_dummy; do
6473 IFS="$lt_save_ifs"
6474 test -z "$ac_dir" && ac_dir=.
6475 if test -f $ac_dir/${ac_tool_prefix}file; then
6476 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6477 if test -n "$file_magic_test_file"; then
6478 case $deplibs_check_method in
6479 "file_magic "*)
6480 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6482 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6483 $EGREP "$file_magic_regex" > /dev/null; then
6484 :
6485 else
6486 cat <<_LT_EOF 1>&2
6487
6488*** Warning: the command libtool uses to detect shared libraries,
6489*** $file_magic_cmd, produces output that libtool cannot recognize.
6490*** The result is that libtool may fail to recognize shared libraries
6491*** as such. This will affect the creation of libtool libraries that
6492*** depend on shared libraries, but programs linked with such libtool
6493*** libraries will work regardless of this problem. Nevertheless, you
6494*** may want to report the problem to your system manager and/or to
6495*** bug-libtool@gnu.org
6496
6497_LT_EOF
6498 fi ;;
6499 esac
6500 fi
6501 break
6502 fi
6503 done
6504 IFS="$lt_save_ifs"
6505 MAGIC_CMD="$lt_save_MAGIC_CMD"
6506 ;;
6507esac
6508fi
6509
6510MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6511if test -n "$MAGIC_CMD"; then
6512 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6513echo "${ECHO_T}$MAGIC_CMD" >&6
6514else
6515 echo "$as_me:$LINENO: result: no" >&5
6516echo "${ECHO_T}no" >&6
6517fi
6518
6519
6520
6521
6522
6523if test -z "$lt_cv_path_MAGIC_CMD"; then
6524 if test -n "$ac_tool_prefix"; then
6525 echo "$as_me:$LINENO: checking for file" >&5
6526echo $ECHO_N "checking for file... $ECHO_C" >&6
6527if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6529else
6530 case $MAGIC_CMD in
6531[\\/*] | ?:[\\/]*)
6532 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6533 ;;
6534*)
6535 lt_save_MAGIC_CMD="$MAGIC_CMD"
6536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6537 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6538 for ac_dir in $ac_dummy; do
6539 IFS="$lt_save_ifs"
6540 test -z "$ac_dir" && ac_dir=.
6541 if test -f $ac_dir/file; then
6542 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6543 if test -n "$file_magic_test_file"; then
6544 case $deplibs_check_method in
6545 "file_magic "*)
6546 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6548 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6549 $EGREP "$file_magic_regex" > /dev/null; then
6550 :
6551 else
6552 cat <<_LT_EOF 1>&2
6553
6554*** Warning: the command libtool uses to detect shared libraries,
6555*** $file_magic_cmd, produces output that libtool cannot recognize.
6556*** The result is that libtool may fail to recognize shared libraries
6557*** as such. This will affect the creation of libtool libraries that
6558*** depend on shared libraries, but programs linked with such libtool
6559*** libraries will work regardless of this problem. Nevertheless, you
6560*** may want to report the problem to your system manager and/or to
6561*** bug-libtool@gnu.org
6562
6563_LT_EOF
6564 fi ;;
6565 esac
6566 fi
6567 break
6568 fi
6569 done
6570 IFS="$lt_save_ifs"
6571 MAGIC_CMD="$lt_save_MAGIC_CMD"
6572 ;;
6573esac
6574fi
6575
6576MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6577if test -n "$MAGIC_CMD"; then
6578 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6579echo "${ECHO_T}$MAGIC_CMD" >&6
6580else
6581 echo "$as_me:$LINENO: result: no" >&5
6582echo "${ECHO_T}no" >&6
6583fi
6584
6585
6586 else
6587 MAGIC_CMD=:
6588 fi
6589fi
6590
6591 fi
6592 ;;
6593esac
6594
6595# Use C for the default configuration in the libtool script
6596
6597lt_save_CC="$CC"
6598ac_ext=c
6599ac_cpp='$CPP $CPPFLAGS'
6600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602ac_compiler_gnu=$ac_cv_c_compiler_gnu
6603
6604
6605# Source file extension for C test sources.
6606ac_ext=c
6607
6608# Object file extension for compiled C test sources.
6609objext=o
6610objext=$objext
6611
6612# Code to be used in simple compile tests
6613lt_simple_compile_test_code="int some_variable = 0;"
6614
6615# Code to be used in simple link tests
6616lt_simple_link_test_code='int main(){return(0);}'
6617
6618
6619
6620
6621
6622
6623
6624# If no C compiler was specified, use CC.
6625LTCC=${LTCC-"$CC"}
6626
6627# If no C compiler flags were specified, use CFLAGS.
6628LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6629
6630# Allow CC to be a program name with arguments.
6631compiler=$CC
6632
6633# Save the default compiler, since it gets overwritten when the other
6634# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6635compiler_DEFAULT=$CC
6636
6637# save warnings/boilerplate of simple test code
6638ac_outfile=conftest.$ac_objext
6639echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6640eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6641_lt_compiler_boilerplate=`cat conftest.err`
6642$RM conftest*
6643
6644ac_outfile=conftest.$ac_objext
6645echo "$lt_simple_link_test_code" >conftest.$ac_ext
6646eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6647_lt_linker_boilerplate=`cat conftest.err`
80c6c2cb 6648$RM -r conftest*
1cf3d07d
SE
6649
6650
6651## CAVEAT EMPTOR:
6652## There is no encapsulation within the following macros, do not change
6653## the running order or otherwise move them around unless you know exactly
6654## what you are doing...
6655if test -n "$compiler"; then
6656
6657lt_prog_compiler_no_builtin_flag=
6658
6659if test "$GCC" = yes; then
6660 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6661
6662 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6663echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6664if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666else
6667 lt_cv_prog_compiler_rtti_exceptions=no
6668 ac_outfile=conftest.$ac_objext
6669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6670 lt_compiler_flag="-fno-rtti -fno-exceptions"
6671 # Insert the option either (1) after the last *FLAGS variable, or
6672 # (2) before a word containing "conftest.", or (3) at the end.
6673 # Note that $ac_compile itself does not contain backslashes and begins
6674 # with a dollar sign (not a hyphen), so the echo should work correctly.
6675 # The option is referenced via a variable to avoid confusing sed.
6676 lt_compile=`echo "$ac_compile" | $SED \
6677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6679 -e 's:$: $lt_compiler_flag:'`
80c6c2cb 6680 (eval echo "\"\$as_me:6680: $lt_compile\"" >&5)
1cf3d07d
SE
6681 (eval "$lt_compile" 2>conftest.err)
6682 ac_status=$?
6683 cat conftest.err >&5
80c6c2cb 6684 echo "$as_me:6684: \$? = $ac_status" >&5
1cf3d07d
SE
6685 if (exit $ac_status) && test -s "$ac_outfile"; then
6686 # The compiler can only warn and ignore the option if not recognized
6687 # So say no if there are warnings other than the usual output.
6688 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6690 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6691 lt_cv_prog_compiler_rtti_exceptions=yes
6692 fi
6693 fi
6694 $RM conftest*
6695
6696fi
6697echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6698echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6699
6700if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6701 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6702else
6703 :
6704fi
6705
6706fi
6707
6708
6709
6710
6711
6712
6713 lt_prog_compiler_wl=
6714lt_prog_compiler_pic=
6715lt_prog_compiler_static=
6716
6717echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6718echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6719
6720 if test "$GCC" = yes; then
6721 lt_prog_compiler_wl='-Wl,'
6722 lt_prog_compiler_static='-static'
6723
6724 case $host_os in
6725 aix*)
6726 # All AIX code is PIC.
6727 if test "$host_cpu" = ia64; then
6728 # AIX 5 now supports IA64 processor
6729 lt_prog_compiler_static='-Bstatic'
6730 fi
6731 ;;
6732
6733 amigaos*)
80c6c2cb
PG
6734 case $host_cpu in
6735 powerpc)
6736 # see comment about AmigaOS4 .so support
6737 lt_prog_compiler_pic='-fPIC'
6738 ;;
6739 m68k)
6740 # FIXME: we need at least 68020 code to build shared libraries, but
6741 # adding the `-m68020' flag to GCC prevents building anything better,
6742 # like `-m68040'.
6743 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6744 ;;
6745 esac
1cf3d07d
SE
6746 ;;
6747
6748 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6749 # PIC is the default for these OSes.
6750 ;;
6751
80c6c2cb 6752 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
6753 # This hack is so that the source file can tell whether it is being
6754 # built for inclusion in a dll (and should export symbols for example).
6755 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6756 # (--disable-auto-import) libraries
6757 lt_prog_compiler_pic='-DDLL_EXPORT'
6758 ;;
6759
6760 darwin* | rhapsody*)
6761 # PIC is the default on this platform
6762 # Common symbols not allowed in MH_DYLIB files
6763 lt_prog_compiler_pic='-fno-common'
6764 ;;
6765
6766 hpux*)
80c6c2cb
PG
6767 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6768 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6769 # sets the default TLS model and affects inlining.
1cf3d07d 6770 case $host_cpu in
80c6c2cb 6771 hppa*64*)
1cf3d07d
SE
6772 # +Z the default
6773 ;;
6774 *)
6775 lt_prog_compiler_pic='-fPIC'
6776 ;;
6777 esac
6778 ;;
6779
6780 interix[3-9]*)
6781 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6782 # Instead, we relocate shared libraries at runtime.
6783 ;;
6784
6785 msdosdjgpp*)
6786 # Just because we use GCC doesn't mean we suddenly get shared libraries
6787 # on systems that don't support them.
6788 lt_prog_compiler_can_build_shared=no
6789 enable_shared=no
6790 ;;
6791
6792 *nto* | *qnx*)
6793 # QNX uses GNU C++, but need to define -shared option too, otherwise
6794 # it will coredump.
6795 lt_prog_compiler_pic='-fPIC -shared'
6796 ;;
6797
6798 sysv4*MP*)
6799 if test -d /usr/nec; then
6800 lt_prog_compiler_pic=-Kconform_pic
6801 fi
6802 ;;
6803
6804 *)
6805 lt_prog_compiler_pic='-fPIC'
6806 ;;
6807 esac
6808 else
6809 # PORTME Check for flag to pass linker flags through the system compiler.
6810 case $host_os in
6811 aix*)
6812 lt_prog_compiler_wl='-Wl,'
6813 if test "$host_cpu" = ia64; then
6814 # AIX 5 now supports IA64 processor
6815 lt_prog_compiler_static='-Bstatic'
6816 else
6817 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6818 fi
6819 ;;
1cf3d07d 6820
80c6c2cb 6821 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
6822 # This hack is so that the source file can tell whether it is being
6823 # built for inclusion in a dll (and should export symbols for example).
6824 lt_prog_compiler_pic='-DDLL_EXPORT'
6825 ;;
6826
6827 hpux9* | hpux10* | hpux11*)
6828 lt_prog_compiler_wl='-Wl,'
6829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6830 # not for PA HP-UX.
6831 case $host_cpu in
6832 hppa*64*|ia64*)
6833 # +Z the default
6834 ;;
6835 *)
6836 lt_prog_compiler_pic='+Z'
6837 ;;
6838 esac
6839 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6840 lt_prog_compiler_static='${wl}-a ${wl}archive'
6841 ;;
6842
6843 irix5* | irix6* | nonstopux*)
6844 lt_prog_compiler_wl='-Wl,'
6845 # PIC (with -KPIC) is the default.
6846 lt_prog_compiler_static='-non_shared'
6847 ;;
6848
6849 linux* | k*bsd*-gnu)
6850 case $cc_basename in
80c6c2cb
PG
6851 # old Intel for x86_64 which still supported -KPIC.
6852 ecc*)
1cf3d07d
SE
6853 lt_prog_compiler_wl='-Wl,'
6854 lt_prog_compiler_pic='-KPIC'
6855 lt_prog_compiler_static='-static'
6856 ;;
80c6c2cb
PG
6857 # icc used to be incompatible with GCC.
6858 # ICC 10 doesn't accept -KPIC any more.
6859 icc* | ifort*)
6860 lt_prog_compiler_wl='-Wl,'
6861 lt_prog_compiler_pic='-fPIC'
6862 lt_prog_compiler_static='-static'
6863 ;;
6864 # Lahey Fortran 8.1.
6865 lf95*)
6866 lt_prog_compiler_wl='-Wl,'
6867 lt_prog_compiler_pic='--shared'
6868 lt_prog_compiler_static='--static'
6869 ;;
1cf3d07d
SE
6870 pgcc* | pgf77* | pgf90* | pgf95*)
6871 # Portland Group compilers (*not* the Pentium gcc compiler,
6872 # which looks to be a dead project)
6873 lt_prog_compiler_wl='-Wl,'
6874 lt_prog_compiler_pic='-fpic'
6875 lt_prog_compiler_static='-Bstatic'
6876 ;;
6877 ccc*)
6878 lt_prog_compiler_wl='-Wl,'
6879 # All Alpha code is PIC.
6880 lt_prog_compiler_static='-non_shared'
6881 ;;
80c6c2cb
PG
6882 xl*)
6883 # IBM XL C 8.0/Fortran 10.1 on PPC
6884 lt_prog_compiler_wl='-Wl,'
6885 lt_prog_compiler_pic='-qpic'
6886 lt_prog_compiler_static='-qstaticlink'
6887 ;;
1cf3d07d
SE
6888 *)
6889 case `$CC -V 2>&1 | sed 5q` in
6890 *Sun\ C*)
6891 # Sun C 5.9
6892 lt_prog_compiler_pic='-KPIC'
6893 lt_prog_compiler_static='-Bstatic'
6894 lt_prog_compiler_wl='-Wl,'
6895 ;;
6896 *Sun\ F*)
6897 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6898 lt_prog_compiler_pic='-KPIC'
6899 lt_prog_compiler_static='-Bstatic'
6900 lt_prog_compiler_wl=''
6901 ;;
6902 esac
6903 ;;
6904 esac
6905 ;;
6906
6907 newsos6)
6908 lt_prog_compiler_pic='-KPIC'
6909 lt_prog_compiler_static='-Bstatic'
6910 ;;
6911
6912 *nto* | *qnx*)
6913 # QNX uses GNU C++, but need to define -shared option too, otherwise
6914 # it will coredump.
6915 lt_prog_compiler_pic='-fPIC -shared'
6916 ;;
6917
6918 osf3* | osf4* | osf5*)
6919 lt_prog_compiler_wl='-Wl,'
6920 # All OSF/1 code is PIC.
6921 lt_prog_compiler_static='-non_shared'
6922 ;;
6923
6924 rdos*)
6925 lt_prog_compiler_static='-non_shared'
6926 ;;
6927
6928 solaris*)
6929 lt_prog_compiler_pic='-KPIC'
6930 lt_prog_compiler_static='-Bstatic'
6931 case $cc_basename in
6932 f77* | f90* | f95*)
6933 lt_prog_compiler_wl='-Qoption ld ';;
6934 *)
6935 lt_prog_compiler_wl='-Wl,';;
6936 esac
6937 ;;
6938
6939 sunos4*)
6940 lt_prog_compiler_wl='-Qoption ld '
6941 lt_prog_compiler_pic='-PIC'
6942 lt_prog_compiler_static='-Bstatic'
6943 ;;
6944
6945 sysv4 | sysv4.2uw2* | sysv4.3*)
6946 lt_prog_compiler_wl='-Wl,'
6947 lt_prog_compiler_pic='-KPIC'
6948 lt_prog_compiler_static='-Bstatic'
6949 ;;
6950
6951 sysv4*MP*)
6952 if test -d /usr/nec ;then
6953 lt_prog_compiler_pic='-Kconform_pic'
6954 lt_prog_compiler_static='-Bstatic'
6955 fi
6956 ;;
6957
6958 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6959 lt_prog_compiler_wl='-Wl,'
6960 lt_prog_compiler_pic='-KPIC'
6961 lt_prog_compiler_static='-Bstatic'
6962 ;;
6963
6964 unicos*)
6965 lt_prog_compiler_wl='-Wl,'
6966 lt_prog_compiler_can_build_shared=no
6967 ;;
6968
6969 uts4*)
6970 lt_prog_compiler_pic='-pic'
6971 lt_prog_compiler_static='-Bstatic'
6972 ;;
6973
6974 *)
6975 lt_prog_compiler_can_build_shared=no
6976 ;;
6977 esac
6978 fi
6979
6980case $host_os in
6981 # For platforms which do not support PIC, -DPIC is meaningless:
6982 *djgpp*)
6983 lt_prog_compiler_pic=
6984 ;;
6985 *)
6986 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6987 ;;
6988esac
6989echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6990echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6991
6992
6993
6994
6995
6996
6997#
6998# Check to make sure the PIC flag actually works.
6999#
7000if test -n "$lt_prog_compiler_pic"; then
7001 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7002echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
80c6c2cb 7003if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
1cf3d07d
SE
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7005else
80c6c2cb 7006 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
7007 ac_outfile=conftest.$ac_objext
7008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7009 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7010 # Insert the option either (1) after the last *FLAGS variable, or
7011 # (2) before a word containing "conftest.", or (3) at the end.
7012 # Note that $ac_compile itself does not contain backslashes and begins
7013 # with a dollar sign (not a hyphen), so the echo should work correctly.
7014 # The option is referenced via a variable to avoid confusing sed.
7015 lt_compile=`echo "$ac_compile" | $SED \
7016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7018 -e 's:$: $lt_compiler_flag:'`
80c6c2cb 7019 (eval echo "\"\$as_me:7019: $lt_compile\"" >&5)
1cf3d07d
SE
7020 (eval "$lt_compile" 2>conftest.err)
7021 ac_status=$?
7022 cat conftest.err >&5
80c6c2cb 7023 echo "$as_me:7023: \$? = $ac_status" >&5
1cf3d07d
SE
7024 if (exit $ac_status) && test -s "$ac_outfile"; then
7025 # The compiler can only warn and ignore the option if not recognized
7026 # So say no if there are warnings other than the usual output.
7027 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
80c6c2cb 7030 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
7031 fi
7032 fi
7033 $RM conftest*
7034
7035fi
80c6c2cb
PG
7036echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7037echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
1cf3d07d 7038
80c6c2cb 7039if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
7040 case $lt_prog_compiler_pic in
7041 "" | " "*) ;;
7042 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7043 esac
7044else
7045 lt_prog_compiler_pic=
7046 lt_prog_compiler_can_build_shared=no
7047fi
7048
7049fi
7050
7051
7052
7053
7054
7055
7056#
7057# Check to make sure the static flag actually works.
7058#
7059wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7060echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7061echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
80c6c2cb 7062if test "${lt_cv_prog_compiler_static_works+set}" = set; then
1cf3d07d
SE
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064else
80c6c2cb 7065 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
7066 save_LDFLAGS="$LDFLAGS"
7067 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7068 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7069 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7070 # The linker can only warn and ignore the option if not recognized
7071 # So say no if there are warnings
7072 if test -s conftest.err; then
7073 # Append any errors to the config.log.
7074 cat conftest.err 1>&5
7075 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7077 if diff conftest.exp conftest.er2 >/dev/null; then
80c6c2cb 7078 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
7079 fi
7080 else
80c6c2cb 7081 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
7082 fi
7083 fi
80c6c2cb 7084 $RM -r conftest*
1cf3d07d
SE
7085 LDFLAGS="$save_LDFLAGS"
7086
7087fi
80c6c2cb
PG
7088echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7089echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
1cf3d07d 7090
80c6c2cb 7091if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
7092 :
7093else
7094 lt_prog_compiler_static=
7095fi
7096
7097
7098
7099
7100
7101
7102
7103 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7104echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7105if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7107else
7108 lt_cv_prog_compiler_c_o=no
7109 $RM -r conftest 2>/dev/null
7110 mkdir conftest
7111 cd conftest
7112 mkdir out
7113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7114
7115 lt_compiler_flag="-o out/conftest2.$ac_objext"
7116 # Insert the option either (1) after the last *FLAGS variable, or
7117 # (2) before a word containing "conftest.", or (3) at the end.
7118 # Note that $ac_compile itself does not contain backslashes and begins
7119 # with a dollar sign (not a hyphen), so the echo should work correctly.
7120 lt_compile=`echo "$ac_compile" | $SED \
7121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7123 -e 's:$: $lt_compiler_flag:'`
80c6c2cb 7124 (eval echo "\"\$as_me:7124: $lt_compile\"" >&5)
1cf3d07d
SE
7125 (eval "$lt_compile" 2>out/conftest.err)
7126 ac_status=$?
7127 cat out/conftest.err >&5
80c6c2cb 7128 echo "$as_me:7128: \$? = $ac_status" >&5
1cf3d07d
SE
7129 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7130 then
7131 # The compiler can only warn and ignore the option if not recognized
7132 # So say no if there are warnings
7133 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7134 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7135 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7136 lt_cv_prog_compiler_c_o=yes
7137 fi
7138 fi
7139 chmod u+w . 2>&5
7140 $RM conftest*
7141 # SGI C++ compiler will create directory out/ii_files/ for
7142 # template instantiation
7143 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7144 $RM out/* && rmdir out
7145 cd ..
7146 $RM -r conftest
7147 $RM conftest*
7148
7149fi
7150echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7151echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7152
7153
7154
7155
7156
7157
7158 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7159echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7160if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7162else
7163 lt_cv_prog_compiler_c_o=no
7164 $RM -r conftest 2>/dev/null
7165 mkdir conftest
7166 cd conftest
7167 mkdir out
7168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7169
7170 lt_compiler_flag="-o out/conftest2.$ac_objext"
7171 # Insert the option either (1) after the last *FLAGS variable, or
7172 # (2) before a word containing "conftest.", or (3) at the end.
7173 # Note that $ac_compile itself does not contain backslashes and begins
7174 # with a dollar sign (not a hyphen), so the echo should work correctly.
7175 lt_compile=`echo "$ac_compile" | $SED \
7176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7178 -e 's:$: $lt_compiler_flag:'`
80c6c2cb 7179 (eval echo "\"\$as_me:7179: $lt_compile\"" >&5)
1cf3d07d
SE
7180 (eval "$lt_compile" 2>out/conftest.err)
7181 ac_status=$?
7182 cat out/conftest.err >&5
80c6c2cb 7183 echo "$as_me:7183: \$? = $ac_status" >&5
1cf3d07d
SE
7184 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7185 then
7186 # The compiler can only warn and ignore the option if not recognized
7187 # So say no if there are warnings
7188 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7189 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7190 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7191 lt_cv_prog_compiler_c_o=yes
7192 fi
7193 fi
7194 chmod u+w . 2>&5
7195 $RM conftest*
7196 # SGI C++ compiler will create directory out/ii_files/ for
7197 # template instantiation
7198 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7199 $RM out/* && rmdir out
7200 cd ..
7201 $RM -r conftest
7202 $RM conftest*
7203
7204fi
7205echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7206echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7207
7208
7209
7210
7211hard_links="nottested"
7212if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7213 # do not overwrite the value of need_locks provided by the user
7214 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7215echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7216 hard_links=yes
7217 $RM conftest*
7218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7219 touch conftest.a
7220 ln conftest.a conftest.b 2>&5 || hard_links=no
7221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7222 echo "$as_me:$LINENO: result: $hard_links" >&5
7223echo "${ECHO_T}$hard_links" >&6
7224 if test "$hard_links" = no; then
7225 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7226echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7227 need_locks=warn
7228 fi
7229else
7230 need_locks=no
7231fi
7232
7233
7234
7235
7236
7237
7238 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7239echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7240
7241 runpath_var=
7242 allow_undefined_flag=
7243 always_export_symbols=no
7244 archive_cmds=
7245 archive_expsym_cmds=
7246 compiler_needs_object=no
7247 enable_shared_with_static_runtimes=no
7248 export_dynamic_flag_spec=
7249 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7250 hardcode_automatic=no
7251 hardcode_direct=no
7252 hardcode_direct_absolute=no
7253 hardcode_libdir_flag_spec=
7254 hardcode_libdir_flag_spec_ld=
7255 hardcode_libdir_separator=
7256 hardcode_minus_L=no
7257 hardcode_shlibpath_var=unsupported
7258 inherit_rpath=no
7259 link_all_deplibs=unknown
7260 module_cmds=
7261 module_expsym_cmds=
7262 old_archive_from_new_cmds=
7263 old_archive_from_expsyms_cmds=
7264 thread_safe_flag_spec=
7265 whole_archive_flag_spec=
7266 # include_expsyms should be a list of space-separated symbols to be *always*
7267 # included in the symbol list
7268 include_expsyms=
7269 # exclude_expsyms can be an extended regexp of symbols to exclude
7270 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7271 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7272 # as well as any symbol that contains `d'.
80c6c2cb 7273 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
7274 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7275 # platforms (ab)use it in PIC code, but their linkers get confused if
7276 # the symbol is explicitly referenced. Since portable code cannot
7277 # rely on this symbol name, it's probably fine to never include it in
7278 # preloaded symbol tables.
80c6c2cb 7279 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
7280 extract_expsyms_cmds=
7281
7282 case $host_os in
80c6c2cb 7283 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7284 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7285 # When not using gcc, we currently assume that we are using
7286 # Microsoft Visual C++.
7287 if test "$GCC" != yes; then
7288 with_gnu_ld=no
7289 fi
7290 ;;
7291 interix*)
7292 # we just hope/assume this is gcc and not c89 (= MSVC++)
7293 with_gnu_ld=yes
7294 ;;
7295 openbsd*)
7296 with_gnu_ld=no
7297 ;;
7298 esac
7299
7300 ld_shlibs=yes
7301 if test "$with_gnu_ld" = yes; then
7302 # If archive_cmds runs LD, not CC, wlarc should be empty
7303 wlarc='${wl}'
7304
7305 # Set some defaults for GNU ld with shared library support. These
7306 # are reset later if shared libraries are not supported. Putting them
7307 # here allows them to be overridden if necessary.
7308 runpath_var=LD_RUN_PATH
7309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7310 export_dynamic_flag_spec='${wl}--export-dynamic'
7311 # ancient GNU ld didn't support --whole-archive et. al.
7312 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7313 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7314 else
7315 whole_archive_flag_spec=
7316 fi
7317 supports_anon_versioning=no
7318 case `$LD -v 2>&1` in
7319 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7320 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7321 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7322 *\ 2.11.*) ;; # other 2.11 versions
7323 *) supports_anon_versioning=yes ;;
7324 esac
7325
7326 # See if GNU ld supports shared libraries.
7327 case $host_os in
95d4f544 7328 aix[3-9]*)
1cf3d07d
SE
7329 # On AIX/PPC, the GNU linker is very broken
7330 if test "$host_cpu" != ia64; then
7331 ld_shlibs=no
7332 cat <<_LT_EOF 1>&2
7333
7334*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7335*** to be unable to reliably create shared libraries on AIX.
7336*** Therefore, libtool is disabling shared libraries support. If you
7337*** really care for shared libraries, you may want to modify your PATH
7338*** so that a non-GNU linker is found, and then restart.
7339
7340_LT_EOF
7341 fi
7342 ;;
7343
7344 amigaos*)
80c6c2cb
PG
7345 case $host_cpu in
7346 powerpc)
7347 # see comment about AmigaOS4 .so support
7348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7349 archive_expsym_cmds=''
7350 ;;
7351 m68k)
7352 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7353 hardcode_libdir_flag_spec='-L$libdir'
7354 hardcode_minus_L=yes
7355 ;;
7356 esac
1cf3d07d
SE
7357 ;;
7358
7359 beos*)
7360 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7361 allow_undefined_flag=unsupported
7362 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7363 # support --undefined. This deserves some investigation. FIXME
7364 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7365 else
7366 ld_shlibs=no
7367 fi
7368 ;;
7369
80c6c2cb 7370 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7371 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7372 # as there is no search path for DLLs.
7373 hardcode_libdir_flag_spec='-L$libdir'
7374 allow_undefined_flag=unsupported
7375 always_export_symbols=no
7376 enable_shared_with_static_runtimes=yes
7377 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7378
7379 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7381 # If the export-symbols file already is a .def file (1st line
7382 # is EXPORTS), use it as is; otherwise, prepend...
7383 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7384 cp $export_symbols $output_objdir/$soname.def;
7385 else
7386 echo EXPORTS > $output_objdir/$soname.def;
7387 cat $export_symbols >> $output_objdir/$soname.def;
7388 fi~
7389 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7390 else
7391 ld_shlibs=no
7392 fi
7393 ;;
7394
7395 interix[3-9]*)
7396 hardcode_direct=no
7397 hardcode_shlibpath_var=no
7398 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7399 export_dynamic_flag_spec='${wl}-E'
7400 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7401 # Instead, shared libraries are loaded at an image base (0x10000000 by
7402 # default) and relocated if they conflict, which is a slow very memory
7403 # consuming and fragmenting process. To avoid this, we pick a random,
7404 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7405 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7406 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7407 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7408 ;;
7409
7410 gnu* | linux* | tpf* | k*bsd*-gnu)
7411 tmp_diet=no
7412 if test "$host_os" = linux-dietlibc; then
7413 case $cc_basename in
7414 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7415 esac
7416 fi
7417 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7418 && test "$tmp_diet" = no
7419 then
7420 tmp_addflag=
80c6c2cb 7421 tmp_sharedflag='-shared'
1cf3d07d
SE
7422 case $cc_basename,$host_cpu in
7423 pgcc*) # Portland Group C compiler
7424 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7425 tmp_addflag=' $pic_flag'
7426 ;;
7427 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7428 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7429 tmp_addflag=' $pic_flag -Mnomain' ;;
7430 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7431 tmp_addflag=' -i_dynamic' ;;
7432 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7433 tmp_addflag=' -i_dynamic -nofor_main' ;;
7434 ifc* | ifort*) # Intel Fortran compiler
7435 tmp_addflag=' -nofor_main' ;;
80c6c2cb
PG
7436 lf95*) # Lahey Fortran 8.1
7437 whole_archive_flag_spec=
7438 tmp_sharedflag='--shared' ;;
7439 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7440 tmp_sharedflag='-qmkshrobj'
7441 tmp_addflag= ;;
1cf3d07d
SE
7442 esac
7443 case `$CC -V 2>&1 | sed 5q` in
7444 *Sun\ C*) # Sun C 5.9
7445 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7446 compiler_needs_object=yes
7447 tmp_sharedflag='-G' ;;
7448 *Sun\ F*) # Sun Fortran 8.3
7449 tmp_sharedflag='-G' ;;
1cf3d07d
SE
7450 esac
7451 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7452
7453 if test "x$supports_anon_versioning" = xyes; then
7454 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7456 echo "local: *; };" >> $output_objdir/$libname.ver~
7457 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7458 fi
80c6c2cb
PG
7459
7460 case $cc_basename in
7461 xlf*)
7462 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7463 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7464 hardcode_libdir_flag_spec=
7465 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7466 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7467 if test "x$supports_anon_versioning" = xyes; then
7468 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7469 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7470 echo "local: *; };" >> $output_objdir/$libname.ver~
7471 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7472 fi
7473 ;;
7474 esac
1cf3d07d
SE
7475 else
7476 ld_shlibs=no
7477 fi
7478 ;;
7479
7480 netbsd*)
7481 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7482 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7483 wlarc=
7484 else
7485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7487 fi
7488 ;;
7489
7490 solaris*)
7491 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7492 ld_shlibs=no
7493 cat <<_LT_EOF 1>&2
7494
7495*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7496*** create shared libraries on Solaris systems. Therefore, libtool
7497*** is disabling shared libraries support. We urge you to upgrade GNU
7498*** binutils to release 2.9.1 or newer. Another option is to modify
7499*** your PATH or compiler configuration so that the native linker is
7500*** used, and then restart.
7501
7502_LT_EOF
7503 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7505 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7506 else
7507 ld_shlibs=no
7508 fi
7509 ;;
7510
7511 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7512 case `$LD -v 2>&1` in
7513 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7514 ld_shlibs=no
7515 cat <<_LT_EOF 1>&2
7516
7517*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7518*** reliably create shared libraries on SCO systems. Therefore, libtool
7519*** is disabling shared libraries support. We urge you to upgrade GNU
7520*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7521*** your PATH or compiler configuration so that the native linker is
7522*** used, and then restart.
7523
7524_LT_EOF
7525 ;;
7526 *)
7527 # For security reasons, it is highly recommended that you always
7528 # use absolute paths for naming shared libraries, and exclude the
7529 # DT_RUNPATH tag from executables and libraries. But doing so
7530 # requires that you compile everything twice, which is a pain.
7531 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7534 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7535 else
7536 ld_shlibs=no
7537 fi
7538 ;;
7539 esac
7540 ;;
7541
7542 sunos4*)
7543 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7544 wlarc=
7545 hardcode_direct=yes
7546 hardcode_shlibpath_var=no
7547 ;;
7548
7549 *)
7550 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7552 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7553 else
7554 ld_shlibs=no
7555 fi
7556 ;;
7557 esac
7558
7559 if test "$ld_shlibs" = no; then
7560 runpath_var=
7561 hardcode_libdir_flag_spec=
7562 export_dynamic_flag_spec=
7563 whole_archive_flag_spec=
7564 fi
7565 else
7566 # PORTME fill in a description of your system's linker (not GNU ld)
7567 case $host_os in
7568 aix3*)
7569 allow_undefined_flag=unsupported
7570 always_export_symbols=yes
7571 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7572 # Note: this linker hardcodes the directories in LIBPATH if there
7573 # are no directories specified by -L.
7574 hardcode_minus_L=yes
7575 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7576 # Neither direct hardcoding nor static linking is supported with a
7577 # broken collect2.
7578 hardcode_direct=unsupported
7579 fi
7580 ;;
7581
95d4f544 7582 aix[4-9]*)
1cf3d07d
SE
7583 if test "$host_cpu" = ia64; then
7584 # On IA64, the linker does run time linking by default, so we don't
7585 # have to do anything special.
7586 aix_use_runtimelinking=no
7587 exp_sym_flag='-Bexport'
7588 no_entry_flag=""
7589 else
7590 # If we're using GNU nm, then we don't want the "-C" option.
7591 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7592 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7593 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7594 else
7595 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7596 fi
7597 aix_use_runtimelinking=no
7598
7599 # Test if we are trying to use run time linking or normal
7600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7601 # need to do runtime linking.
95d4f544 7602 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
7603 for ld_flag in $LDFLAGS; do
7604 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7605 aix_use_runtimelinking=yes
7606 break
7607 fi
7608 done
7609 ;;
7610 esac
7611
7612 exp_sym_flag='-bexport'
7613 no_entry_flag='-bnoentry'
7614 fi
7615
7616 # When large executables or shared objects are built, AIX ld can
7617 # have problems creating the table of contents. If linking a library
7618 # or program results in "error TOC overflow" add -mminimal-toc to
7619 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7620 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7621
7622 archive_cmds=''
7623 hardcode_direct=yes
7624 hardcode_direct_absolute=yes
7625 hardcode_libdir_separator=':'
7626 link_all_deplibs=yes
7627 file_list_spec='${wl}-f,'
7628
7629 if test "$GCC" = yes; then
7630 case $host_os in aix4.[012]|aix4.[012].*)
7631 # We only want to do this on AIX 4.2 and lower, the check
7632 # below for broken collect2 doesn't work under 4.3+
7633 collect2name=`${CC} -print-prog-name=collect2`
7634 if test -f "$collect2name" &&
7635 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7636 then
7637 # We have reworked collect2
7638 :
7639 else
7640 # We have old collect2
7641 hardcode_direct=unsupported
7642 # It fails to find uninstalled libraries when the uninstalled
7643 # path is not listed in the libpath. Setting hardcode_minus_L
7644 # to unsupported forces relinking
7645 hardcode_minus_L=yes
7646 hardcode_libdir_flag_spec='-L$libdir'
7647 hardcode_libdir_separator=
7648 fi
7649 ;;
7650 esac
7651 shared_flag='-shared'
7652 if test "$aix_use_runtimelinking" = yes; then
7653 shared_flag="$shared_flag "'${wl}-G'
7654 fi
7655 else
7656 # not using gcc
7657 if test "$host_cpu" = ia64; then
7658 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7659 # chokes on -Wl,-G. The following line is correct:
7660 shared_flag='-G'
7661 else
7662 if test "$aix_use_runtimelinking" = yes; then
7663 shared_flag='${wl}-G'
7664 else
7665 shared_flag='${wl}-bM:SRE'
7666 fi
7667 fi
7668 fi
7669
80c6c2cb 7670 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
7671 # It seems that -bexpall does not export symbols beginning with
7672 # underscore (_), so it is better to generate a list of symbols to export.
7673 always_export_symbols=yes
7674 if test "$aix_use_runtimelinking" = yes; then
7675 # Warning - without using the other runtime loading flags (-brtl),
7676 # -berok will link without error, but may produce a broken library.
7677 allow_undefined_flag='-berok'
7678 # Determine the default libpath from the value encoded in an
7679 # empty executable.
7680 cat >conftest.$ac_ext <<_ACEOF
7681/* confdefs.h. */
7682_ACEOF
7683cat confdefs.h >>conftest.$ac_ext
7684cat >>conftest.$ac_ext <<_ACEOF
7685/* end confdefs.h. */
7686
7687int
7688main ()
7689{
7690
7691 ;
7692 return 0;
7693}
7694_ACEOF
7695rm -f conftest.$ac_objext conftest$ac_exeext
7696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7697 (eval $ac_link) 2>conftest.er1
7698 ac_status=$?
7699 grep -v '^ *+' conftest.er1 >conftest.err
7700 rm -f conftest.er1
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } &&
7704 { ac_try='test -z "$ac_c_werror_flag"
7705 || test ! -s conftest.err'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 (eval $ac_try) 2>&5
7708 ac_status=$?
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; } &&
7711 { ac_try='test -s conftest$ac_exeext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 (eval $ac_try) 2>&5
7714 ac_status=$?
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
7717
7718lt_aix_libpath_sed='
7719 /Import File Strings/,/^$/ {
7720 /^0/ {
7721 s/^0 *\(.*\)$/\1/
7722 p
7723 }
7724 }'
7725aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7726# Check for a 64-bit object if we didn't find anything.
7727if test -z "$aix_libpath"; then
7728 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7729fi
7730else
7731 echo "$as_me: failed program was:" >&5
7732sed 's/^/| /' conftest.$ac_ext >&5
7733
7734fi
7735rm -f conftest.err conftest.$ac_objext \
7736 conftest$ac_exeext conftest.$ac_ext
7737if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7738
7739 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7740 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7741 else
7742 if test "$host_cpu" = ia64; then
7743 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7744 allow_undefined_flag="-z nodefs"
7745 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7746 else
7747 # Determine the default libpath from the value encoded in an
7748 # empty executable.
7749 cat >conftest.$ac_ext <<_ACEOF
7750/* confdefs.h. */
7751_ACEOF
7752cat confdefs.h >>conftest.$ac_ext
7753cat >>conftest.$ac_ext <<_ACEOF
7754/* end confdefs.h. */
7755
7756int
7757main ()
7758{
7759
7760 ;
7761 return 0;
7762}
7763_ACEOF
7764rm -f conftest.$ac_objext conftest$ac_exeext
7765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7766 (eval $ac_link) 2>conftest.er1
7767 ac_status=$?
7768 grep -v '^ *+' conftest.er1 >conftest.err
7769 rm -f conftest.er1
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } &&
7773 { ac_try='test -z "$ac_c_werror_flag"
7774 || test ! -s conftest.err'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776 (eval $ac_try) 2>&5
7777 ac_status=$?
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; } &&
7780 { ac_try='test -s conftest$ac_exeext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782 (eval $ac_try) 2>&5
7783 ac_status=$?
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786
7787lt_aix_libpath_sed='
7788 /Import File Strings/,/^$/ {
7789 /^0/ {
7790 s/^0 *\(.*\)$/\1/
7791 p
7792 }
7793 }'
7794aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7795# Check for a 64-bit object if we didn't find anything.
7796if test -z "$aix_libpath"; then
7797 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7798fi
7799else
7800 echo "$as_me: failed program was:" >&5
7801sed 's/^/| /' conftest.$ac_ext >&5
7802
7803fi
7804rm -f conftest.err conftest.$ac_objext \
7805 conftest$ac_exeext conftest.$ac_ext
7806if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7807
7808 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7809 # Warning - without using the other run time loading flags,
7810 # -berok will link without error, but may produce a broken library.
7811 no_undefined_flag=' ${wl}-bernotok'
7812 allow_undefined_flag=' ${wl}-berok'
7813 # Exported symbols can be pulled into shared objects from archives
7814 whole_archive_flag_spec='$convenience'
7815 archive_cmds_need_lc=yes
7816 # This is similar to how AIX traditionally builds its shared libraries.
7817 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7818 fi
7819 fi
7820 ;;
7821
7822 amigaos*)
80c6c2cb
PG
7823 case $host_cpu in
7824 powerpc)
7825 # see comment about AmigaOS4 .so support
7826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7827 archive_expsym_cmds=''
7828 ;;
7829 m68k)
7830 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7831 hardcode_libdir_flag_spec='-L$libdir'
7832 hardcode_minus_L=yes
7833 ;;
7834 esac
1cf3d07d
SE
7835 ;;
7836
7837 bsdi[45]*)
7838 export_dynamic_flag_spec=-rdynamic
7839 ;;
7840
80c6c2cb 7841 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
7842 # When not using gcc, we currently assume that we are using
7843 # Microsoft Visual C++.
7844 # hardcode_libdir_flag_spec is actually meaningless, as there is
7845 # no search path for DLLs.
7846 hardcode_libdir_flag_spec=' '
7847 allow_undefined_flag=unsupported
7848 # Tell ltmain to make .lib files, not .a files.
7849 libext=lib
7850 # Tell ltmain to make .dll files, not .so files.
7851 shrext_cmds=".dll"
7852 # FIXME: Setting linknames here is a bad hack.
7853 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7854 # The linker will automatically build a .lib file if we build a DLL.
7855 old_archive_from_new_cmds='true'
7856 # FIXME: Should let the user specify the lib program.
7857 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7858 fix_srcfile_path='`cygpath -w "$srcfile"`'
7859 enable_shared_with_static_runtimes=yes
7860 ;;
7861
7862 darwin* | rhapsody*)
1cf3d07d 7863
80c6c2cb
PG
7864
7865 archive_cmds_need_lc=no
7866 hardcode_direct=no
7867 hardcode_automatic=yes
7868 hardcode_shlibpath_var=unsupported
7869 whole_archive_flag_spec=''
7870 link_all_deplibs=yes
7871 allow_undefined_flag="$_lt_dar_allow_undefined"
7872 case $cc_basename in
7873 ifort*) _lt_dar_can_shared=yes ;;
7874 *) _lt_dar_can_shared=$GCC ;;
7875 esac
7876 if test "$_lt_dar_can_shared" = "yes"; then
7877 output_verbose_link_cmd=echo
7878 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7879 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7880 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
7881 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
7882
7883 else
7884 ld_shlibs=no
7885 fi
7886
1cf3d07d
SE
7887 ;;
7888
7889 dgux*)
7890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891 hardcode_libdir_flag_spec='-L$libdir'
7892 hardcode_shlibpath_var=no
7893 ;;
7894
7895 freebsd1*)
7896 ld_shlibs=no
7897 ;;
7898
7899 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7900 # support. Future versions do this automatically, but an explicit c++rt0.o
7901 # does not break anything, and helps significantly (at the cost of a little
7902 # extra space).
7903 freebsd2.2*)
7904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7905 hardcode_libdir_flag_spec='-R$libdir'
7906 hardcode_direct=yes
7907 hardcode_shlibpath_var=no
7908 ;;
7909
7910 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7911 freebsd2*)
7912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7913 hardcode_direct=yes
7914 hardcode_minus_L=yes
7915 hardcode_shlibpath_var=no
7916 ;;
7917
7918 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7919 freebsd* | dragonfly*)
7920 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7921 hardcode_libdir_flag_spec='-R$libdir'
7922 hardcode_direct=yes
7923 hardcode_shlibpath_var=no
7924 ;;
7925
7926 hpux9*)
7927 if test "$GCC" = yes; then
7928 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7929 else
7930 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7931 fi
7932 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7933 hardcode_libdir_separator=:
7934 hardcode_direct=yes
7935
7936 # hardcode_minus_L: Not really in the search PATH,
7937 # but as the default location of the library.
7938 hardcode_minus_L=yes
7939 export_dynamic_flag_spec='${wl}-E'
7940 ;;
7941
7942 hpux10*)
7943 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7944 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7945 else
7946 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7947 fi
7948 if test "$with_gnu_ld" = no; then
7949 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7950 hardcode_libdir_flag_spec_ld='+b $libdir'
7951 hardcode_libdir_separator=:
7952 hardcode_direct=yes
7953 hardcode_direct_absolute=yes
7954 export_dynamic_flag_spec='${wl}-E'
7955 # hardcode_minus_L: Not really in the search PATH,
7956 # but as the default location of the library.
7957 hardcode_minus_L=yes
7958 fi
7959 ;;
7960
7961 hpux11*)
7962 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7963 case $host_cpu in
7964 hppa*64*)
7965 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7966 ;;
7967 ia64*)
80c6c2cb 7968 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
7969 ;;
7970 *)
7971 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7972 ;;
7973 esac
7974 else
7975 case $host_cpu in
7976 hppa*64*)
7977 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7978 ;;
7979 ia64*)
7980 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7981 ;;
7982 *)
7983 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7984 ;;
7985 esac
7986 fi
7987 if test "$with_gnu_ld" = no; then
7988 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7989 hardcode_libdir_separator=:
7990
7991 case $host_cpu in
7992 hppa*64*|ia64*)
7993 hardcode_direct=no
7994 hardcode_shlibpath_var=no
7995 ;;
7996 *)
7997 hardcode_direct=yes
7998 hardcode_direct_absolute=yes
7999 export_dynamic_flag_spec='${wl}-E'
8000
8001 # hardcode_minus_L: Not really in the search PATH,
8002 # but as the default location of the library.
8003 hardcode_minus_L=yes
8004 ;;
8005 esac
8006 fi
8007 ;;
8008
8009 irix5* | irix6* | nonstopux*)
8010 if test "$GCC" = yes; then
8011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8012 # Try to use the -exported_symbol ld option, if it does not
8013 # work, assume that -exports_file does not work either and
8014 # implicitly export all symbols.
8015 save_LDFLAGS="$LDFLAGS"
8016 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8017 cat >conftest.$ac_ext <<_ACEOF
8018int foo(void) {}
8019_ACEOF
8020rm -f conftest.$ac_objext conftest$ac_exeext
8021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022 (eval $ac_link) 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
8029 { ac_try='test -z "$ac_c_werror_flag"
8030 || test ! -s conftest.err'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 (eval $ac_try) 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; } &&
8036 { ac_try='test -s conftest$ac_exeext'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 (eval $ac_try) 2>&5
8039 ac_status=$?
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; }; then
8042 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8043
8044else
8045 echo "$as_me: failed program was:" >&5
8046sed 's/^/| /' conftest.$ac_ext >&5
8047
8048fi
8049rm -f conftest.err conftest.$ac_objext \
8050 conftest$ac_exeext conftest.$ac_ext
8051 LDFLAGS="$save_LDFLAGS"
8052 else
8053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8054 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8055 fi
8056 archive_cmds_need_lc='no'
8057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8058 hardcode_libdir_separator=:
8059 inherit_rpath=yes
8060 link_all_deplibs=yes
8061 ;;
8062
8063 netbsd*)
8064 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8065 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8066 else
8067 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8068 fi
8069 hardcode_libdir_flag_spec='-R$libdir'
8070 hardcode_direct=yes
8071 hardcode_shlibpath_var=no
8072 ;;
8073
8074 newsos6)
8075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8076 hardcode_direct=yes
8077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8078 hardcode_libdir_separator=:
8079 hardcode_shlibpath_var=no
8080 ;;
8081
8082 *nto* | *qnx*)
8083 ;;
8084
8085 openbsd*)
80c6c2cb
PG
8086 if test -f /usr/libexec/ld.so; then
8087 hardcode_direct=yes
8088 hardcode_shlibpath_var=no
8089 hardcode_direct_absolute=yes
8090 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 8091 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
80c6c2cb 8092 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 8093 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
80c6c2cb
PG
8094 export_dynamic_flag_spec='${wl}-E'
8095 else
8096 case $host_os in
8097 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8098 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8099 hardcode_libdir_flag_spec='-R$libdir'
8100 ;;
8101 *)
8102 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8103 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8104 ;;
8105 esac
8106 fi
8107 else
8108 ld_shlibs=no
1cf3d07d
SE
8109 fi
8110 ;;
8111
8112 os2*)
8113 hardcode_libdir_flag_spec='-L$libdir'
8114 hardcode_minus_L=yes
8115 allow_undefined_flag=unsupported
8116 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8117 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8118 ;;
8119
8120 osf3*)
8121 if test "$GCC" = yes; then
8122 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8123 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8124 else
8125 allow_undefined_flag=' -expect_unresolved \*'
8126 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8127 fi
8128 archive_cmds_need_lc='no'
8129 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8130 hardcode_libdir_separator=:
8131 ;;
8132
8133 osf4* | osf5*) # as osf3* with the addition of -msym flag
8134 if test "$GCC" = yes; then
8135 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8136 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8138 else
8139 allow_undefined_flag=' -expect_unresolved \*'
8140 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8141 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8142 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8143
8144 # Both c and cxx compiler support -rpath directly
8145 hardcode_libdir_flag_spec='-rpath $libdir'
8146 fi
8147 archive_cmds_need_lc='no'
8148 hardcode_libdir_separator=:
8149 ;;
8150
8151 solaris*)
8152 no_undefined_flag=' -z defs'
8153 if test "$GCC" = yes; then
8154 wlarc='${wl}'
8155 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8156 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8157 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8158 else
8159 case `$CC -V 2>&1` in
8160 *"Compilers 5.0"*)
8161 wlarc=''
8162 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8163 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8164 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8165 ;;
8166 *)
8167 wlarc='${wl}'
8168 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8170 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8171 ;;
8172 esac
8173 fi
8174 hardcode_libdir_flag_spec='-R$libdir'
8175 hardcode_shlibpath_var=no
8176 case $host_os in
8177 solaris2.[0-5] | solaris2.[0-5].*) ;;
8178 *)
8179 # The compiler driver will combine and reorder linker options,
8180 # but understands `-z linker_flag'. GCC discards it without `$wl',
8181 # but is careful enough not to reorder.
8182 # Supported since Solaris 2.6 (maybe 2.5.1?)
8183 if test "$GCC" = yes; then
8184 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8185 else
8186 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8187 fi
8188 ;;
8189 esac
8190 link_all_deplibs=yes
8191 ;;
8192
8193 sunos4*)
8194 if test "x$host_vendor" = xsequent; then
8195 # Use $CC to link under sequent, because it throws in some extra .o
8196 # files that make .init and .fini sections work.
8197 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8198 else
8199 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8200 fi
8201 hardcode_libdir_flag_spec='-L$libdir'
8202 hardcode_direct=yes
8203 hardcode_minus_L=yes
8204 hardcode_shlibpath_var=no
8205 ;;
8206
8207 sysv4)
8208 case $host_vendor in
8209 sni)
8210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8211 hardcode_direct=yes # is this really true???
8212 ;;
8213 siemens)
8214 ## LD is ld it makes a PLAMLIB
8215 ## CC just makes a GrossModule.
8216 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8217 reload_cmds='$CC -r -o $output$reload_objs'
8218 hardcode_direct=no
8219 ;;
8220 motorola)
8221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8222 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8223 ;;
8224 esac
8225 runpath_var='LD_RUN_PATH'
8226 hardcode_shlibpath_var=no
8227 ;;
8228
8229 sysv4.3*)
8230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8231 hardcode_shlibpath_var=no
8232 export_dynamic_flag_spec='-Bexport'
8233 ;;
8234
8235 sysv4*MP*)
8236 if test -d /usr/nec; then
8237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8238 hardcode_shlibpath_var=no
8239 runpath_var=LD_RUN_PATH
8240 hardcode_runpath_var=yes
8241 ld_shlibs=yes
8242 fi
8243 ;;
8244
8245 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8246 no_undefined_flag='${wl}-z,text'
8247 archive_cmds_need_lc=no
8248 hardcode_shlibpath_var=no
8249 runpath_var='LD_RUN_PATH'
8250
8251 if test "$GCC" = yes; then
8252 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8253 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8254 else
8255 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8256 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8257 fi
8258 ;;
8259
8260 sysv5* | sco3.2v5* | sco5v6*)
8261 # Note: We can NOT use -z defs as we might desire, because we do not
8262 # link with -lc, and that would cause any symbols used from libc to
8263 # always be unresolved, which means just about no library would
8264 # ever link correctly. If we're not using GNU ld we use -z text
8265 # though, which does catch some bad symbols but isn't as heavy-handed
8266 # as -z defs.
8267 no_undefined_flag='${wl}-z,text'
8268 allow_undefined_flag='${wl}-z,nodefs'
8269 archive_cmds_need_lc=no
8270 hardcode_shlibpath_var=no
8271 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8272 hardcode_libdir_separator=':'
8273 link_all_deplibs=yes
8274 export_dynamic_flag_spec='${wl}-Bexport'
8275 runpath_var='LD_RUN_PATH'
8276
8277 if test "$GCC" = yes; then
8278 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8279 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8280 else
8281 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8282 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8283 fi
8284 ;;
8285
8286 uts4*)
8287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8288 hardcode_libdir_flag_spec='-L$libdir'
8289 hardcode_shlibpath_var=no
8290 ;;
8291
8292 *)
8293 ld_shlibs=no
8294 ;;
8295 esac
8296
8297 if test x$host_vendor = xsni; then
8298 case $host in
8299 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8300 export_dynamic_flag_spec='${wl}-Blargedynsym'
8301 ;;
8302 esac
8303 fi
8304 fi
8305
8306echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8307echo "${ECHO_T}$ld_shlibs" >&6
8308test "$ld_shlibs" = no && can_build_shared=no
8309
8310with_gnu_ld=$with_gnu_ld
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326#
8327# Do we need to explicitly link libc?
8328#
8329case "x$archive_cmds_need_lc" in
8330x|xyes)
8331 # Assume -lc should be added
8332 archive_cmds_need_lc=yes
8333
8334 if test "$enable_shared" = yes && test "$GCC" = yes; then
8335 case $archive_cmds in
8336 *'~'*)
8337 # FIXME: we may have to deal with multi-command sequences.
8338 ;;
8339 '$CC '*)
8340 # Test whether the compiler implicitly links with -lc since on some
8341 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8342 # to ld, don't add -lc before -lgcc.
8343 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8344echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
baafc534
RW
8345if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8347else
8348 $RM conftest*
8349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 8350
baafc534 8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1cf3d07d
SE
8352 (eval $ac_compile) 2>&5
8353 ac_status=$?
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } 2>conftest.err; then
baafc534
RW
8356 soname=conftest
8357 lib=conftest
8358 libobjs=conftest.$ac_objext
8359 deplibs=
8360 wl=$lt_prog_compiler_wl
8361 pic_flag=$lt_prog_compiler_pic
8362 compiler_flags=-v
8363 linker_flags=-v
8364 verstring=
8365 output_objdir=.
8366 libname=conftest
8367 lt_save_allow_undefined_flag=$allow_undefined_flag
8368 allow_undefined_flag=
8369 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
1cf3d07d
SE
8370 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8371 ac_status=$?
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }
baafc534
RW
8374 then
8375 lt_cv_archive_cmds_need_lc=no
8376 else
8377 lt_cv_archive_cmds_need_lc=yes
8378 fi
8379 allow_undefined_flag=$lt_save_allow_undefined_flag
8380 else
8381 cat conftest.err 1>&5
8382 fi
8383 $RM conftest*
8384
8385fi
8386echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8387echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8388 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
8389 ;;
8390 esac
8391 fi
8392 ;;
8393esac
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8552echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
80c6c2cb
PG
8553
8554if test "$GCC" = yes; then
1cf3d07d
SE
8555 case $host_os in
8556 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8557 *) lt_awk_arg="/^libraries:/" ;;
8558 esac
8559 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8560 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8561 # if the path contains ";" then we assume it to be the separator
8562 # otherwise default to the standard path separator (i.e. ":") - it is
8563 # assumed that no part of a normal pathname contains ";" but that should
8564 # okay in the real world where ";" in dirpaths is itself problematic.
8565 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8566 else
8567 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8568 fi
8569 # Ok, now we have the path, separated by spaces, we can step through it
8570 # and add multilib dir if necessary.
8571 lt_tmp_lt_search_path_spec=
8572 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8573 for lt_sys_path in $lt_search_path_spec; do
8574 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8575 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8576 else
8577 test -d "$lt_sys_path" && \
8578 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8579 fi
8580 done
8581 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8582BEGIN {RS=" "; FS="/|\n";} {
8583 lt_foo="";
8584 lt_count=0;
8585 for (lt_i = NF; lt_i > 0; lt_i--) {
8586 if ($lt_i != "" && $lt_i != ".") {
8587 if ($lt_i == "..") {
8588 lt_count++;
8589 } else {
8590 if (lt_count == 0) {
8591 lt_foo="/" $lt_i lt_foo;
8592 } else {
8593 lt_count--;
8594 }
8595 }
8596 }
8597 }
8598 if (lt_foo != "") { lt_freq[lt_foo]++; }
8599 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8600}'`
8601 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8602else
8603 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8604fi
8605library_names_spec=
8606libname_spec='lib$name'
8607soname_spec=
8608shrext_cmds=".so"
8609postinstall_cmds=
8610postuninstall_cmds=
8611finish_cmds=
8612finish_eval=
8613shlibpath_var=
8614shlibpath_overrides_runpath=unknown
8615version_type=none
8616dynamic_linker="$host_os ld.so"
8617sys_lib_dlsearch_path_spec="/lib /usr/lib"
8618need_lib_prefix=unknown
8619hardcode_into_libs=no
8620
8621# when you set need_version to no, make sure it does not cause -set_version
8622# flags to be left without arguments
8623need_version=unknown
8624
8625case $host_os in
8626aix3*)
8627 version_type=linux
8628 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8629 shlibpath_var=LIBPATH
8630
8631 # AIX 3 has no versioning support, so we append a major version to the name.
8632 soname_spec='${libname}${release}${shared_ext}$major'
8633 ;;
8634
95d4f544 8635aix[4-9]*)
1cf3d07d
SE
8636 version_type=linux
8637 need_lib_prefix=no
8638 need_version=no
8639 hardcode_into_libs=yes
8640 if test "$host_cpu" = ia64; then
8641 # AIX 5 supports IA64
8642 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8643 shlibpath_var=LD_LIBRARY_PATH
8644 else
8645 # With GCC up to 2.95.x, collect2 would create an import file
8646 # for dependence libraries. The import file would start with
8647 # the line `#! .'. This would cause the generated library to
8648 # depend on `.', always an invalid library. This was fixed in
8649 # development snapshots of GCC prior to 3.0.
8650 case $host_os in
8651 aix4 | aix4.[01] | aix4.[01].*)
8652 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8653 echo ' yes '
8654 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8655 :
8656 else
8657 can_build_shared=no
8658 fi
8659 ;;
8660 esac
8661 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8662 # soname into executable. Probably we can add versioning support to
8663 # collect2, so additional links can be useful in future.
8664 if test "$aix_use_runtimelinking" = yes; then
8665 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8666 # instead of lib<name>.a to let people know that these are not
8667 # typical AIX shared libraries.
8668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8669 else
8670 # We preserve .a as extension for shared libraries through AIX4.2
8671 # and later when we are not doing run time linking.
8672 library_names_spec='${libname}${release}.a $libname.a'
8673 soname_spec='${libname}${release}${shared_ext}$major'
8674 fi
8675 shlibpath_var=LIBPATH
8676 fi
8677 ;;
8678
8679amigaos*)
80c6c2cb
PG
8680 case $host_cpu in
8681 powerpc)
8682 # Since July 2007 AmigaOS4 officially supports .so libraries.
8683 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8685 ;;
8686 m68k)
1cf3d07d
SE
8687 library_names_spec='$libname.ixlibrary $libname.a'
8688 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8689 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
80c6c2cb
PG
8690 ;;
8691 esac
1cf3d07d
SE
8692 ;;
8693
8694beos*)
8695 library_names_spec='${libname}${shared_ext}'
8696 dynamic_linker="$host_os ld.so"
8697 shlibpath_var=LIBRARY_PATH
8698 ;;
8699
8700bsdi[45]*)
8701 version_type=linux
8702 need_version=no
8703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8704 soname_spec='${libname}${release}${shared_ext}$major'
8705 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8706 shlibpath_var=LD_LIBRARY_PATH
8707 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8708 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8709 # the default ld.so.conf also contains /usr/contrib/lib and
8710 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8711 # libtool to hard-code these into programs
8712 ;;
8713
80c6c2cb 8714cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8715 version_type=windows
8716 shrext_cmds=".dll"
8717 need_version=no
8718 need_lib_prefix=no
8719
80c6c2cb
PG
8720 case $GCC,$host_os in
8721 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
8722 library_names_spec='$libname.dll.a'
8723 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8724 postinstall_cmds='base_file=`basename \${file}`~
8725 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8726 dldir=$destdir/`dirname \$dlpath`~
8727 test -d \$dldir || mkdir -p \$dldir~
8728 $install_prog $dir/$dlname \$dldir/$dlname~
8729 chmod a+x \$dldir/$dlname~
8730 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8731 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8732 fi'
8733 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8734 dlpath=$dir/\$dldll~
8735 $RM \$dlpath'
8736 shlibpath_overrides_runpath=yes
8737
8738 case $host_os in
8739 cygwin*)
8740 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8741 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8742 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8743 ;;
80c6c2cb 8744 mingw* | cegcc*)
1cf3d07d
SE
8745 # MinGW DLLs use traditional 'lib' prefix
8746 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8747 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8748 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8749 # It is most probably a Windows format PATH printed by
8750 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8751 # path with ; separators, and with drive letters. We can handle the
8752 # drive letters (cygwin fileutils understands them), so leave them,
8753 # especially as we might pass files found there to a mingw objdump,
8754 # which wouldn't understand a cygwinified path. Ahh.
8755 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8756 else
8757 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8758 fi
8759 ;;
8760 pw32*)
8761 # pw32 DLLs use 'pw' prefix rather than 'lib'
8762 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8763 ;;
8764 esac
8765 ;;
8766
8767 *)
8768 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8769 ;;
8770 esac
8771 dynamic_linker='Win32 ld.exe'
8772 # FIXME: first we should search . and the directory the executable is in
8773 shlibpath_var=PATH
8774 ;;
8775
8776darwin* | rhapsody*)
8777 dynamic_linker="$host_os dyld"
8778 version_type=darwin
8779 need_lib_prefix=no
8780 need_version=no
8781 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8782 soname_spec='${libname}${release}${major}$shared_ext'
8783 shlibpath_overrides_runpath=yes
8784 shlibpath_var=DYLD_LIBRARY_PATH
8785 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8786
8787 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8788 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8789 ;;
8790
8791dgux*)
8792 version_type=linux
8793 need_lib_prefix=no
8794 need_version=no
8795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8796 soname_spec='${libname}${release}${shared_ext}$major'
8797 shlibpath_var=LD_LIBRARY_PATH
8798 ;;
8799
8800freebsd1*)
8801 dynamic_linker=no
8802 ;;
8803
8804freebsd* | dragonfly*)
8805 # DragonFly does not have aout. When/if they implement a new
8806 # versioning mechanism, adjust this.
8807 if test -x /usr/bin/objformat; then
8808 objformat=`/usr/bin/objformat`
8809 else
8810 case $host_os in
8811 freebsd[123]*) objformat=aout ;;
8812 *) objformat=elf ;;
8813 esac
8814 fi
8815 version_type=freebsd-$objformat
8816 case $version_type in
8817 freebsd-elf*)
8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8819 need_version=no
8820 need_lib_prefix=no
8821 ;;
8822 freebsd-*)
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8824 need_version=yes
8825 ;;
8826 esac
8827 shlibpath_var=LD_LIBRARY_PATH
8828 case $host_os in
8829 freebsd2*)
8830 shlibpath_overrides_runpath=yes
8831 ;;
8832 freebsd3.[01]* | freebsdelf3.[01]*)
8833 shlibpath_overrides_runpath=yes
8834 hardcode_into_libs=yes
8835 ;;
8836 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8837 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8838 shlibpath_overrides_runpath=no
8839 hardcode_into_libs=yes
8840 ;;
8841 *) # from 4.6 on, and DragonFly
8842 shlibpath_overrides_runpath=yes
8843 hardcode_into_libs=yes
8844 ;;
8845 esac
8846 ;;
8847
8848gnu*)
8849 version_type=linux
8850 need_lib_prefix=no
8851 need_version=no
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8853 soname_spec='${libname}${release}${shared_ext}$major'
8854 shlibpath_var=LD_LIBRARY_PATH
8855 hardcode_into_libs=yes
8856 ;;
8857
8858hpux9* | hpux10* | hpux11*)
8859 # Give a soname corresponding to the major version so that dld.sl refuses to
8860 # link against other versions.
8861 version_type=sunos
8862 need_lib_prefix=no
8863 need_version=no
8864 case $host_cpu in
8865 ia64*)
8866 shrext_cmds='.so'
8867 hardcode_into_libs=yes
8868 dynamic_linker="$host_os dld.so"
8869 shlibpath_var=LD_LIBRARY_PATH
8870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 if test "X$HPUX_IA64_MODE" = X32; then
8874 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8875 else
8876 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8877 fi
8878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8879 ;;
8880 hppa*64*)
8881 shrext_cmds='.sl'
8882 hardcode_into_libs=yes
8883 dynamic_linker="$host_os dld.sl"
8884 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8885 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8889 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8890 ;;
8891 *)
8892 shrext_cmds='.sl'
8893 dynamic_linker="$host_os dld.sl"
8894 shlibpath_var=SHLIB_PATH
8895 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8897 soname_spec='${libname}${release}${shared_ext}$major'
8898 ;;
8899 esac
8900 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8901 postinstall_cmds='chmod 555 $lib'
8902 ;;
675cdab3 8903
1cf3d07d
SE
8904interix[3-9]*)
8905 version_type=linux
8906 need_lib_prefix=no
8907 need_version=no
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8909 soname_spec='${libname}${release}${shared_ext}$major'
8910 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8911 shlibpath_var=LD_LIBRARY_PATH
8912 shlibpath_overrides_runpath=no
8913 hardcode_into_libs=yes
3ed8e5b6 8914 ;;
675cdab3 8915
1cf3d07d
SE
8916irix5* | irix6* | nonstopux*)
8917 case $host_os in
8918 nonstopux*) version_type=nonstopux ;;
8919 *)
8920 if test "$lt_cv_prog_gnu_ld" = yes; then
8921 version_type=linux
8922 else
8923 version_type=irix
8924 fi ;;
8925 esac
8926 need_lib_prefix=no
8927 need_version=no
8928 soname_spec='${libname}${release}${shared_ext}$major'
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8930 case $host_os in
8931 irix5* | nonstopux*)
8932 libsuff= shlibsuff=
8933 ;;
8934 *)
8935 case $LD in # libtool.m4 will add one of these switches to LD
8936 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8937 libsuff= shlibsuff= libmagic=32-bit;;
8938 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8939 libsuff=32 shlibsuff=N32 libmagic=N32;;
8940 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8941 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8942 *) libsuff= shlibsuff= libmagic=never-match;;
3ed8e5b6 8943 esac
1cf3d07d
SE
8944 ;;
8945 esac
8946 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8947 shlibpath_overrides_runpath=no
8948 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8949 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8950 hardcode_into_libs=yes
3ed8e5b6 8951 ;;
675cdab3 8952
1cf3d07d
SE
8953# No shared lib support for Linux oldld, aout, or coff.
8954linux*oldld* | linux*aout* | linux*coff*)
8955 dynamic_linker=no
8956 ;;
3ed8e5b6 8957
1cf3d07d
SE
8958# This must be Linux ELF.
8959linux* | k*bsd*-gnu)
8960 version_type=linux
8961 need_lib_prefix=no
8962 need_version=no
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8964 soname_spec='${libname}${release}${shared_ext}$major'
8965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8966 shlibpath_var=LD_LIBRARY_PATH
8967 shlibpath_overrides_runpath=no
baafc534 8968
1cf3d07d 8969 # Some binutils ld are patched to set DT_RUNPATH
baafc534
RW
8970 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8972else
8973 lt_cv_shlibpath_overrides_runpath=no
8974 save_LDFLAGS=$LDFLAGS
8975 save_libdir=$libdir
8976 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8977 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8978 cat >conftest.$ac_ext <<_ACEOF
3ed8e5b6
AT
8979/* confdefs.h. */
8980_ACEOF
8981cat confdefs.h >>conftest.$ac_ext
8982cat >>conftest.$ac_ext <<_ACEOF
8983/* end confdefs.h. */
8984
8985int
8986main ()
8987{
675cdab3 8988
3ed8e5b6
AT
8989 ;
8990 return 0;
8991}
8992_ACEOF
8993rm -f conftest.$ac_objext conftest$ac_exeext
8994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995 (eval $ac_link) 2>conftest.er1
8996 ac_status=$?
8997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
88d8c771
AG
9002 { ac_try='test -z "$ac_c_werror_flag"
9003 || test ! -s conftest.err'
3ed8e5b6
AT
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 (eval $ac_try) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; } &&
9009 { ac_try='test -s conftest$ac_exeext'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 (eval $ac_try) 2>&5
9012 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
80c6c2cb 9015 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
baafc534 9016 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d
SE
9017fi
9018
675cdab3 9019else
3ed8e5b6
AT
9020 echo "$as_me: failed program was:" >&5
9021sed 's/^/| /' conftest.$ac_ext >&5
675cdab3 9022
675cdab3 9023fi
3ed8e5b6
AT
9024rm -f conftest.err conftest.$ac_objext \
9025 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
9026 LDFLAGS=$save_LDFLAGS
9027 libdir=$save_libdir
9028
9029fi
9030
9031 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
9032
9033 # This implies no fast_install, which is unacceptable.
9034 # Some rework will be needed to allow for fast_install
9035 # before this can be enabled.
9036 hardcode_into_libs=yes
9037
9038 # Append ld.so.conf contents to the search path
9039 if test -f /etc/ld.so.conf; then
80c6c2cb 9040 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
9041 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9042 fi
675cdab3 9043
1cf3d07d
SE
9044 # We used to test for /lib/ld.so.1 and disable shared libraries on
9045 # powerpc, because MkLinux only supported shared libraries with the
9046 # GNU dynamic linker. Since this was broken with cross compilers,
9047 # most powerpc-linux boxes support dynamic linking these days and
9048 # people can always --disable-shared, the test was removed, and we
9049 # assume the GNU/Linux dynamic linker is in use.
9050 dynamic_linker='GNU/Linux ld.so'
9051 ;;
9052
9053netbsd*)
9054 version_type=sunos
9055 need_lib_prefix=no
9056 need_version=no
9057 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9060 dynamic_linker='NetBSD (a.out) ld.so'
9061 else
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 dynamic_linker='NetBSD ld.elf_so'
3ed8e5b6 9065 fi
1cf3d07d
SE
9066 shlibpath_var=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath=yes
9068 hardcode_into_libs=yes
3ed8e5b6 9069 ;;
675cdab3 9070
1cf3d07d
SE
9071newsos6)
9072 version_type=linux
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=yes
9076 ;;
675cdab3 9077
1cf3d07d
SE
9078*nto* | *qnx*)
9079 version_type=qnx
9080 need_lib_prefix=no
9081 need_version=no
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 shlibpath_overrides_runpath=no
9086 hardcode_into_libs=yes
9087 dynamic_linker='ldqnx.so'
9088 ;;
675cdab3 9089
1cf3d07d
SE
9090openbsd*)
9091 version_type=sunos
9092 sys_lib_dlsearch_path_spec="/usr/lib"
9093 need_lib_prefix=no
9094 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9095 case $host_os in
9096 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9097 *) need_version=no ;;
9098 esac
9099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9103 case $host_os in
9104 openbsd2.[89] | openbsd2.[89].*)
9105 shlibpath_overrides_runpath=no
9106 ;;
9107 *)
9108 shlibpath_overrides_runpath=yes
9109 ;;
9110 esac
9111 else
9112 shlibpath_overrides_runpath=yes
9113 fi
9114 ;;
675cdab3 9115
1cf3d07d
SE
9116os2*)
9117 libname_spec='$name'
9118 shrext_cmds=".dll"
9119 need_lib_prefix=no
9120 library_names_spec='$libname${shared_ext} $libname.a'
9121 dynamic_linker='OS/2 ld.exe'
9122 shlibpath_var=LIBPATH
9123 ;;
675cdab3 9124
1cf3d07d
SE
9125osf3* | osf4* | osf5*)
9126 version_type=osf
9127 need_lib_prefix=no
9128 need_version=no
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9133 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9134 ;;
675cdab3 9135
1cf3d07d
SE
9136rdos*)
9137 dynamic_linker=no
9138 ;;
9139
9140solaris*)
9141 version_type=linux
9142 need_lib_prefix=no
9143 need_version=no
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 soname_spec='${libname}${release}${shared_ext}$major'
9146 shlibpath_var=LD_LIBRARY_PATH
9147 shlibpath_overrides_runpath=yes
9148 hardcode_into_libs=yes
9149 # ldd complains unless libraries are executable
9150 postinstall_cmds='chmod +x $lib'
9151 ;;
9152
9153sunos4*)
9154 version_type=sunos
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9156 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 shlibpath_overrides_runpath=yes
9159 if test "$with_gnu_ld" = yes; then
9160 need_lib_prefix=no
9161 fi
9162 need_version=yes
9163 ;;
9164
9165sysv4 | sysv4.3*)
9166 version_type=linux
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 shlibpath_var=LD_LIBRARY_PATH
9170 case $host_vendor in
9171 sni)
9172 shlibpath_overrides_runpath=no
9173 need_lib_prefix=no
9174 runpath_var=LD_RUN_PATH
3ed8e5b6 9175 ;;
1cf3d07d
SE
9176 siemens)
9177 need_lib_prefix=no
3ed8e5b6 9178 ;;
1cf3d07d
SE
9179 motorola)
9180 need_lib_prefix=no
9181 need_version=no
9182 shlibpath_overrides_runpath=no
9183 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9184 ;;
9185 esac
9186 ;;
9187
9188sysv4*MP*)
9189 if test -d /usr/nec ;then
9190 version_type=linux
9191 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9192 soname_spec='$libname${shared_ext}.$major'
9193 shlibpath_var=LD_LIBRARY_PATH
9194 fi
9195 ;;
9196
9197sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9198 version_type=freebsd-elf
9199 need_lib_prefix=no
9200 need_version=no
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9202 soname_spec='${libname}${release}${shared_ext}$major'
9203 shlibpath_var=LD_LIBRARY_PATH
9204 shlibpath_overrides_runpath=yes
9205 hardcode_into_libs=yes
9206 if test "$with_gnu_ld" = yes; then
9207 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
675cdab3 9208 else
1cf3d07d
SE
9209 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9210 case $host_os in
9211 sco3.2v5*)
9212 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9213 ;;
9214 esac
675cdab3 9215 fi
1cf3d07d
SE
9216 sys_lib_dlsearch_path_spec='/usr/lib'
9217 ;;
9218
9219tpf*)
9220 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9221 version_type=linux
9222 need_lib_prefix=no
9223 need_version=no
80c6c2cb 9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
9225 shlibpath_var=LD_LIBRARY_PATH
9226 shlibpath_overrides_runpath=no
9227 hardcode_into_libs=yes
9228 ;;
9229
9230uts4*)
9231 version_type=linux
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 ;;
9236
9237*)
9238 dynamic_linker=no
9239 ;;
9240esac
9241echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9242echo "${ECHO_T}$dynamic_linker" >&6
9243test "$dynamic_linker" = no && can_build_shared=no
9244
9245variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9246if test "$GCC" = yes; then
9247 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
675cdab3
BM
9248fi
9249
80c6c2cb
PG
9250if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9251 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9252fi
9253if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9254 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9255fi
9256
675cdab3 9257
1cf3d07d
SE
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9344echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9345hardcode_action=
9346if test -n "$hardcode_libdir_flag_spec" ||
9347 test -n "$runpath_var" ||
9348 test "X$hardcode_automatic" = "Xyes" ; then
9349
9350 # We can hardcode non-existent directories.
9351 if test "$hardcode_direct" != no &&
9352 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9353 # have to relink, otherwise we might link with an installed library
9354 # when we should be linking with a yet-to-be-installed one
9355 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9356 test "$hardcode_minus_L" != no; then
9357 # Linking always hardcodes the temporary library directory.
9358 hardcode_action=relink
9359 else
9360 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9361 hardcode_action=immediate
63e5e3e0 9362 fi
3ed8e5b6 9363else
1cf3d07d
SE
9364 # We cannot hardcode anything, or else we can only hardcode existing
9365 # directories.
9366 hardcode_action=unsupported
675cdab3 9367fi
1cf3d07d
SE
9368echo "$as_me:$LINENO: result: $hardcode_action" >&5
9369echo "${ECHO_T}$hardcode_action" >&6
63e5e3e0 9370
1cf3d07d
SE
9371if test "$hardcode_action" = relink ||
9372 test "$inherit_rpath" = yes; then
9373 # Fast installation is not supported
9374 enable_fast_install=no
9375elif test "$shlibpath_overrides_runpath" = yes ||
9376 test "$enable_shared" = no; then
9377 # Fast installation is not necessary
9378 enable_fast_install=needless
9379fi
675cdab3 9380
63e5e3e0 9381
63e5e3e0 9382
2f7bf5b7 9383
63e5e3e0 9384
63e5e3e0 9385
1cf3d07d
SE
9386 if test "x$enable_dlopen" != xyes; then
9387 enable_dlopen=unknown
9388 enable_dlopen_self=unknown
9389 enable_dlopen_self_static=unknown
9390else
9391 lt_cv_dlopen=no
9392 lt_cv_dlopen_libs=
63e5e3e0 9393
1cf3d07d
SE
9394 case $host_os in
9395 beos*)
9396 lt_cv_dlopen="load_add_on"
9397 lt_cv_dlopen_libs=
9398 lt_cv_dlopen_self=yes
9399 ;;
63e5e3e0 9400
80c6c2cb 9401 mingw* | pw32* | cegcc*)
1cf3d07d
SE
9402 lt_cv_dlopen="LoadLibrary"
9403 lt_cv_dlopen_libs=
9404 ;;
63e5e3e0 9405
1cf3d07d
SE
9406 cygwin*)
9407 lt_cv_dlopen="dlopen"
9408 lt_cv_dlopen_libs=
9409 ;;
63e5e3e0 9410
1cf3d07d
SE
9411 darwin*)
9412 # if libdl is installed we need to link against it
9413 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9414echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9415if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
675cdab3 9417else
1cf3d07d
SE
9418 ac_check_lib_save_LIBS=$LIBS
9419LIBS="-ldl $LIBS"
9420cat >conftest.$ac_ext <<_ACEOF
9421/* confdefs.h. */
9422_ACEOF
9423cat confdefs.h >>conftest.$ac_ext
9424cat >>conftest.$ac_ext <<_ACEOF
9425/* end confdefs.h. */
3ed8e5b6 9426
1cf3d07d
SE
9427/* Override any gcc2 internal prototype to avoid an error. */
9428#ifdef __cplusplus
9429extern "C"
9430#endif
9431/* We use char because int might match the return type of a gcc2
9432 builtin and then its argument prototype would still apply. */
9433char dlopen ();
9434int
9435main ()
9436{
9437dlopen ();
9438 ;
9439 return 0;
9440}
9441_ACEOF
9442rm -f conftest.$ac_objext conftest$ac_exeext
9443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9444 (eval $ac_link) 2>conftest.er1
9445 ac_status=$?
9446 grep -v '^ *+' conftest.er1 >conftest.err
9447 rm -f conftest.er1
9448 cat conftest.err >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } &&
9451 { ac_try='test -z "$ac_c_werror_flag"
9452 || test ! -s conftest.err'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 (eval $ac_try) 2>&5
9455 ac_status=$?
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; } &&
9458 { ac_try='test -s conftest$ac_exeext'
9459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 (eval $ac_try) 2>&5
9461 ac_status=$?
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); }; }; then
9464 ac_cv_lib_dl_dlopen=yes
3ed8e5b6 9465else
1cf3d07d
SE
9466 echo "$as_me: failed program was:" >&5
9467sed 's/^/| /' conftest.$ac_ext >&5
9468
9469ac_cv_lib_dl_dlopen=no
675cdab3 9470fi
1cf3d07d
SE
9471rm -f conftest.err conftest.$ac_objext \
9472 conftest$ac_exeext conftest.$ac_ext
9473LIBS=$ac_check_lib_save_LIBS
9474fi
9475echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9476echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9477if test $ac_cv_lib_dl_dlopen = yes; then
9478 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9479else
63e5e3e0 9480
1cf3d07d
SE
9481 lt_cv_dlopen="dyld"
9482 lt_cv_dlopen_libs=
9483 lt_cv_dlopen_self=yes
bbf3057b 9484
1cf3d07d 9485fi
2f7bf5b7 9486
1cf3d07d 9487 ;;
2f7bf5b7 9488
1cf3d07d
SE
9489 *)
9490 echo "$as_me:$LINENO: checking for shl_load" >&5
9491echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9492if test "${ac_cv_func_shl_load+set}" = set; then
3ed8e5b6
AT
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9494else
9495 cat >conftest.$ac_ext <<_ACEOF
9496/* confdefs.h. */
9497_ACEOF
9498cat confdefs.h >>conftest.$ac_ext
9499cat >>conftest.$ac_ext <<_ACEOF
9500/* end confdefs.h. */
1cf3d07d
SE
9501/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9503#define shl_load innocuous_shl_load
9504
9505/* System header to define __stub macros and hopefully few prototypes,
9506 which can conflict with char shl_load (); below.
9507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9508 <limits.h> exists even on freestanding compilers. */
9509
c9b93377
JB
9510#ifdef __STDC__
9511# include <limits.h>
9512#else
9513# include <assert.h>
3eee102e 9514#endif
1cf3d07d
SE
9515
9516#undef shl_load
9517
9518/* Override any gcc2 internal prototype to avoid an error. */
9519#ifdef __cplusplus
9520extern "C"
9521{
9522#endif
9523/* We use char because int might match the return type of a gcc2
9524 builtin and then its argument prototype would still apply. */
9525char shl_load ();
9526/* The GNU C library defines this for functions which it implements
9527 to always fail with ENOSYS. Some functions are actually named
9528 something starting with __ and the normal name is an alias. */
9529#if defined (__stub_shl_load) || defined (__stub___shl_load)
9530choke me
9531#else
9532char (*f) () = shl_load;
9533#endif
9534#ifdef __cplusplus
9535}
9536#endif
9537
9538int
9539main ()
9540{
9541return f != shl_load;
9542 ;
9543 return 0;
9544}
3ed8e5b6 9545_ACEOF
1cf3d07d
SE
9546rm -f conftest.$ac_objext conftest$ac_exeext
9547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9548 (eval $ac_link) 2>conftest.er1
3ed8e5b6
AT
9549 ac_status=$?
9550 grep -v '^ *+' conftest.er1 >conftest.err
9551 rm -f conftest.er1
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9554 (exit $ac_status); } &&
9555 { ac_try='test -z "$ac_c_werror_flag"
9556 || test ! -s conftest.err'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 (eval $ac_try) 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try='test -s conftest$ac_exeext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 (eval $ac_try) 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_cv_func_shl_load=yes
3eee102e 9569else
3ed8e5b6
AT
9570 echo "$as_me: failed program was:" >&5
9571sed 's/^/| /' conftest.$ac_ext >&5
9572
1cf3d07d 9573ac_cv_func_shl_load=no
3eee102e 9574fi
1cf3d07d
SE
9575rm -f conftest.err conftest.$ac_objext \
9576 conftest$ac_exeext conftest.$ac_ext
9577fi
9578echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9579echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9580if test $ac_cv_func_shl_load = yes; then
9581 lt_cv_dlopen="shl_load"
9582else
9583 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9584echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9585if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9587else
9588 ac_check_lib_save_LIBS=$LIBS
9589LIBS="-ldld $LIBS"
9590cat >conftest.$ac_ext <<_ACEOF
c9b93377
JB
9591/* confdefs.h. */
9592_ACEOF
9593cat confdefs.h >>conftest.$ac_ext
9594cat >>conftest.$ac_ext <<_ACEOF
9595/* end confdefs.h. */
1cf3d07d
SE
9596
9597/* Override any gcc2 internal prototype to avoid an error. */
9598#ifdef __cplusplus
9599extern "C"
9600#endif
9601/* We use char because int might match the return type of a gcc2
9602 builtin and then its argument prototype would still apply. */
9603char shl_load ();
9604int
9605main ()
9606{
9607shl_load ();
9608 ;
9609 return 0;
9610}
c9b93377 9611_ACEOF
1cf3d07d
SE
9612rm -f conftest.$ac_objext conftest$ac_exeext
9613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9614 (eval $ac_link) 2>conftest.er1
c9b93377
JB
9615 ac_status=$?
9616 grep -v '^ *+' conftest.er1 >conftest.err
9617 rm -f conftest.er1
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9620 (exit $ac_status); } &&
9621 { ac_try='test -z "$ac_c_werror_flag"
9622 || test ! -s conftest.err'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 (eval $ac_try) 2>&5
9625 ac_status=$?
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; } &&
9628 { ac_try='test -s conftest$ac_exeext'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 (eval $ac_try) 2>&5
9631 ac_status=$?
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 ac_cv_lib_dld_shl_load=yes
c9b93377
JB
9635else
9636 echo "$as_me: failed program was:" >&5
9637sed 's/^/| /' conftest.$ac_ext >&5
3eee102e 9638
1cf3d07d 9639ac_cv_lib_dld_shl_load=no
3eee102e 9640fi
1cf3d07d
SE
9641rm -f conftest.err conftest.$ac_objext \
9642 conftest$ac_exeext conftest.$ac_ext
9643LIBS=$ac_check_lib_save_LIBS
bbf3057b 9644fi
1cf3d07d
SE
9645echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9646echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9647if test $ac_cv_lib_dld_shl_load = yes; then
80c6c2cb 9648 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
9649else
9650 echo "$as_me:$LINENO: checking for dlopen" >&5
9651echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9652if test "${ac_cv_func_dlopen+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9654else
3ed8e5b6
AT
9655 cat >conftest.$ac_ext <<_ACEOF
9656/* confdefs.h. */
9657_ACEOF
9658cat confdefs.h >>conftest.$ac_ext
9659cat >>conftest.$ac_ext <<_ACEOF
9660/* end confdefs.h. */
1cf3d07d
SE
9661/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9663#define dlopen innocuous_dlopen
9664
9665/* System header to define __stub macros and hopefully few prototypes,
9666 which can conflict with char dlopen (); below.
9667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9668 <limits.h> exists even on freestanding compilers. */
9669
3ed8e5b6
AT
9670#ifdef __STDC__
9671# include <limits.h>
9672#else
9673# include <assert.h>
9674#endif
1cf3d07d
SE
9675
9676#undef dlopen
9677
9678/* Override any gcc2 internal prototype to avoid an error. */
9679#ifdef __cplusplus
9680extern "C"
9681{
9682#endif
9683/* We use char because int might match the return type of a gcc2
9684 builtin and then its argument prototype would still apply. */
9685char dlopen ();
9686/* The GNU C library defines this for functions which it implements
9687 to always fail with ENOSYS. Some functions are actually named
9688 something starting with __ and the normal name is an alias. */
9689#if defined (__stub_dlopen) || defined (__stub___dlopen)
9690choke me
9691#else
9692char (*f) () = dlopen;
9693#endif
9694#ifdef __cplusplus
9695}
9696#endif
9697
9698int
9699main ()
9700{
9701return f != dlopen;
9702 ;
9703 return 0;
9704}
3ed8e5b6 9705_ACEOF
1cf3d07d
SE
9706rm -f conftest.$ac_objext conftest$ac_exeext
9707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9708 (eval $ac_link) 2>conftest.er1
3ed8e5b6
AT
9709 ac_status=$?
9710 grep -v '^ *+' conftest.er1 >conftest.err
9711 rm -f conftest.er1
9712 cat conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9714 (exit $ac_status); } &&
9715 { ac_try='test -z "$ac_c_werror_flag"
9716 || test ! -s conftest.err'
9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 (eval $ac_try) 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; } &&
9722 { ac_try='test -s conftest$ac_exeext'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 (eval $ac_try) 2>&5
9725 ac_status=$?
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
9728 ac_cv_func_dlopen=yes
63e5e3e0 9729else
3ed8e5b6
AT
9730 echo "$as_me: failed program was:" >&5
9731sed 's/^/| /' conftest.$ac_ext >&5
9732
1cf3d07d 9733ac_cv_func_dlopen=no
3ed8e5b6 9734fi
1cf3d07d
SE
9735rm -f conftest.err conftest.$ac_objext \
9736 conftest$ac_exeext conftest.$ac_ext
9737fi
9738echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9739echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9740if test $ac_cv_func_dlopen = yes; then
9741 lt_cv_dlopen="dlopen"
9742else
9743 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9744echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9745if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9747else
9748 ac_check_lib_save_LIBS=$LIBS
9749LIBS="-ldl $LIBS"
9750cat >conftest.$ac_ext <<_ACEOF
3ed8e5b6
AT
9751/* confdefs.h. */
9752_ACEOF
9753cat confdefs.h >>conftest.$ac_ext
9754cat >>conftest.$ac_ext <<_ACEOF
9755/* end confdefs.h. */
1cf3d07d
SE
9756
9757/* Override any gcc2 internal prototype to avoid an error. */
9758#ifdef __cplusplus
9759extern "C"
9760#endif
9761/* We use char because int might match the return type of a gcc2
9762 builtin and then its argument prototype would still apply. */
9763char dlopen ();
9764int
9765main ()
9766{
9767dlopen ();
9768 ;
9769 return 0;
9770}
3ed8e5b6 9771_ACEOF
1cf3d07d
SE
9772rm -f conftest.$ac_objext conftest$ac_exeext
9773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9774 (eval $ac_link) 2>conftest.er1
3ed8e5b6
AT
9775 ac_status=$?
9776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9780 (exit $ac_status); } &&
9781 { ac_try='test -z "$ac_c_werror_flag"
9782 || test ! -s conftest.err'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest$ac_exeext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 (eval $ac_try) 2>&5
9791 ac_status=$?
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 ac_cv_lib_dl_dlopen=yes
c9b93377
JB
9795else
9796 echo "$as_me: failed program was:" >&5
9797sed 's/^/| /' conftest.$ac_ext >&5
9798
1cf3d07d 9799ac_cv_lib_dl_dlopen=no
c9b93377 9800fi
1cf3d07d
SE
9801rm -f conftest.err conftest.$ac_objext \
9802 conftest$ac_exeext conftest.$ac_ext
9803LIBS=$ac_check_lib_save_LIBS
c9b93377 9804fi
1cf3d07d
SE
9805echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9806echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9807if test $ac_cv_lib_dl_dlopen = yes; then
9808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
c9b93377 9809else
1cf3d07d
SE
9810 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9811echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9812if test "${ac_cv_lib_svld_dlopen+set}" = set; then
c9b93377
JB
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9814else
1cf3d07d
SE
9815 ac_check_lib_save_LIBS=$LIBS
9816LIBS="-lsvld $LIBS"
9817cat >conftest.$ac_ext <<_ACEOF
c9b93377
JB
9818/* confdefs.h. */
9819_ACEOF
9820cat confdefs.h >>conftest.$ac_ext
9821cat >>conftest.$ac_ext <<_ACEOF
9822/* end confdefs.h. */
c9b93377 9823
1cf3d07d
SE
9824/* Override any gcc2 internal prototype to avoid an error. */
9825#ifdef __cplusplus
9826extern "C"
9827#endif
9828/* We use char because int might match the return type of a gcc2
9829 builtin and then its argument prototype would still apply. */
9830char dlopen ();
c9b93377
JB
9831int
9832main ()
9833{
1cf3d07d 9834dlopen ();
c9b93377
JB
9835 ;
9836 return 0;
9837}
9838_ACEOF
1cf3d07d
SE
9839rm -f conftest.$ac_objext conftest$ac_exeext
9840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841 (eval $ac_link) 2>conftest.er1
c9b93377
JB
9842 ac_status=$?
9843 grep -v '^ *+' conftest.er1 >conftest.err
9844 rm -f conftest.er1
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
88d8c771
AG
9848 { ac_try='test -z "$ac_c_werror_flag"
9849 || test ! -s conftest.err'
c9b93377
JB
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 (eval $ac_try) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
1cf3d07d 9855 { ac_try='test -s conftest$ac_exeext'
c9b93377
JB
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 (eval $ac_try) 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
1cf3d07d 9861 ac_cv_lib_svld_dlopen=yes
c9b93377
JB
9862else
9863 echo "$as_me: failed program was:" >&5
9864sed 's/^/| /' conftest.$ac_ext >&5
9865
1cf3d07d 9866ac_cv_lib_svld_dlopen=no
c9b93377 9867fi
1cf3d07d
SE
9868rm -f conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9870LIBS=$ac_check_lib_save_LIBS
c9b93377 9871fi
1cf3d07d
SE
9872echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9873echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9874if test $ac_cv_lib_svld_dlopen = yes; then
9875 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
c9b93377 9876else
1cf3d07d
SE
9877 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9878echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9879if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
c9b93377 9881else
1cf3d07d
SE
9882 ac_check_lib_save_LIBS=$LIBS
9883LIBS="-ldld $LIBS"
9884cat >conftest.$ac_ext <<_ACEOF
c9b93377
JB
9885/* confdefs.h. */
9886_ACEOF
9887cat confdefs.h >>conftest.$ac_ext
9888cat >>conftest.$ac_ext <<_ACEOF
9889/* end confdefs.h. */
c9b93377 9890
1cf3d07d
SE
9891/* Override any gcc2 internal prototype to avoid an error. */
9892#ifdef __cplusplus
9893extern "C"
9894#endif
9895/* We use char because int might match the return type of a gcc2
9896 builtin and then its argument prototype would still apply. */
9897char dld_link ();
c9b93377
JB
9898int
9899main ()
9900{
1cf3d07d
SE
9901dld_link ();
9902 ;
9903 return 0;
c9b93377
JB
9904}
9905_ACEOF
1cf3d07d 9906rm -f conftest.$ac_objext conftest$ac_exeext
c9b93377 9907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1cf3d07d 9908 (eval $ac_link) 2>conftest.er1
c9b93377 9909 ac_status=$?
1cf3d07d
SE
9910 grep -v '^ *+' conftest.er1 >conftest.err
9911 rm -f conftest.er1
9912 cat conftest.err >&5
c9b93377 9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9914 (exit $ac_status); } &&
9915 { ac_try='test -z "$ac_c_werror_flag"
9916 || test ! -s conftest.err'
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 (eval $ac_try) 2>&5
9919 ac_status=$?
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; } &&
9922 { ac_try='test -s conftest$ac_exeext'
c9b93377
JB
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 (eval $ac_try) 2>&5
9925 ac_status=$?
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; }; then
1cf3d07d 9928 ac_cv_lib_dld_dld_link=yes
c9b93377 9929else
1cf3d07d 9930 echo "$as_me: failed program was:" >&5
c9b93377
JB
9931sed 's/^/| /' conftest.$ac_ext >&5
9932
1cf3d07d 9933ac_cv_lib_dld_dld_link=no
c9b93377 9934fi
1cf3d07d
SE
9935rm -f conftest.err conftest.$ac_objext \
9936 conftest$ac_exeext conftest.$ac_ext
9937LIBS=$ac_check_lib_save_LIBS
c9b93377 9938fi
1cf3d07d
SE
9939echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9940echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9941if test $ac_cv_lib_dld_dld_link = yes; then
80c6c2cb 9942 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
c9b93377 9943fi
1cf3d07d
SE
9944
9945
c9b93377 9946fi
c9b93377 9947
c9b93377
JB
9948
9949fi
9950
c9b93377 9951
1cf3d07d 9952fi
c9b93377
JB
9953
9954
1cf3d07d 9955fi
c9b93377
JB
9956
9957
1cf3d07d 9958fi
c9b93377 9959
1cf3d07d
SE
9960 ;;
9961 esac
c9b93377 9962
1cf3d07d
SE
9963 if test "x$lt_cv_dlopen" != xno; then
9964 enable_dlopen=yes
9965 else
9966 enable_dlopen=no
9967 fi
c9b93377 9968
1cf3d07d
SE
9969 case $lt_cv_dlopen in
9970 dlopen)
9971 save_CPPFLAGS="$CPPFLAGS"
9972 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
c9b93377 9973
1cf3d07d
SE
9974 save_LDFLAGS="$LDFLAGS"
9975 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9976
9977 save_LIBS="$LIBS"
9978 LIBS="$lt_cv_dlopen_libs $LIBS"
9979
9980 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9981echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9982if test "${lt_cv_dlopen_self+set}" = set; then
c9b93377
JB
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9984else
1cf3d07d
SE
9985 if test "$cross_compiling" = yes; then :
9986 lt_cv_dlopen_self=cross
9987else
9988 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9989 lt_status=$lt_dlunknown
9990 cat > conftest.$ac_ext <<_LT_EOF
baafc534 9991#line 9991 "configure"
1cf3d07d 9992#include "confdefs.h"
c9b93377 9993
1cf3d07d
SE
9994#if HAVE_DLFCN_H
9995#include <dlfcn.h>
9996#endif
9997
9998#include <stdio.h>
9999
10000#ifdef RTLD_GLOBAL
10001# define LT_DLGLOBAL RTLD_GLOBAL
10002#else
10003# ifdef DL_GLOBAL
10004# define LT_DLGLOBAL DL_GLOBAL
10005# else
10006# define LT_DLGLOBAL 0
10007# endif
10008#endif
10009
10010/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10011 find out it does not work in some platform. */
10012#ifndef LT_DLLAZY_OR_NOW
10013# ifdef RTLD_LAZY
10014# define LT_DLLAZY_OR_NOW RTLD_LAZY
10015# else
10016# ifdef DL_LAZY
10017# define LT_DLLAZY_OR_NOW DL_LAZY
10018# else
10019# ifdef RTLD_NOW
10020# define LT_DLLAZY_OR_NOW RTLD_NOW
10021# else
10022# ifdef DL_NOW
10023# define LT_DLLAZY_OR_NOW DL_NOW
10024# else
10025# define LT_DLLAZY_OR_NOW 0
10026# endif
10027# endif
10028# endif
10029# endif
10030#endif
10031
1cf3d07d
SE
10032void fnord() { int i=42;}
10033int main ()
10034{
10035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10036 int status = $lt_dlunknown;
10037
10038 if (self)
10039 {
10040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10041 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10042 /* dlclose (self); */
10043 }
10044 else
10045 puts (dlerror ());
10046
80c6c2cb 10047 return status;
1cf3d07d
SE
10048}
10049_LT_EOF
10050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10051 (eval $ac_link) 2>&5
c9b93377
JB
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10054 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10055 (./conftest; exit; ) >&5 2>/dev/null
10056 lt_status=$?
10057 case x$lt_status in
10058 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10059 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10060 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10061 esac
10062 else :
10063 # compilation failed
10064 lt_cv_dlopen_self=no
10065 fi
10066fi
10067rm -fr conftest*
10068
10069
10070fi
10071echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10072echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10073
10074 if test "x$lt_cv_dlopen_self" = xyes; then
10075 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10076 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10077echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10078if test "${lt_cv_dlopen_self_static+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10080else
10081 if test "$cross_compiling" = yes; then :
10082 lt_cv_dlopen_self_static=cross
10083else
10084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10085 lt_status=$lt_dlunknown
10086 cat > conftest.$ac_ext <<_LT_EOF
baafc534 10087#line 10087 "configure"
1cf3d07d
SE
10088#include "confdefs.h"
10089
10090#if HAVE_DLFCN_H
10091#include <dlfcn.h>
10092#endif
10093
10094#include <stdio.h>
10095
10096#ifdef RTLD_GLOBAL
10097# define LT_DLGLOBAL RTLD_GLOBAL
10098#else
10099# ifdef DL_GLOBAL
10100# define LT_DLGLOBAL DL_GLOBAL
10101# else
10102# define LT_DLGLOBAL 0
10103# endif
10104#endif
10105
10106/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10107 find out it does not work in some platform. */
10108#ifndef LT_DLLAZY_OR_NOW
10109# ifdef RTLD_LAZY
10110# define LT_DLLAZY_OR_NOW RTLD_LAZY
10111# else
10112# ifdef DL_LAZY
10113# define LT_DLLAZY_OR_NOW DL_LAZY
10114# else
10115# ifdef RTLD_NOW
10116# define LT_DLLAZY_OR_NOW RTLD_NOW
10117# else
10118# ifdef DL_NOW
10119# define LT_DLLAZY_OR_NOW DL_NOW
10120# else
10121# define LT_DLLAZY_OR_NOW 0
10122# endif
10123# endif
10124# endif
10125# endif
10126#endif
10127
1cf3d07d
SE
10128void fnord() { int i=42;}
10129int main ()
10130{
10131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10132 int status = $lt_dlunknown;
10133
10134 if (self)
10135 {
10136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10137 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10138 /* dlclose (self); */
10139 }
10140 else
10141 puts (dlerror ());
10142
80c6c2cb 10143 return status;
1cf3d07d
SE
10144}
10145_LT_EOF
10146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147 (eval $ac_link) 2>&5
c9b93377
JB
10148 ac_status=$?
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
10150 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10151 (./conftest; exit; ) >&5 2>/dev/null
10152 lt_status=$?
10153 case x$lt_status in
10154 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10155 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10156 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10157 esac
10158 else :
10159 # compilation failed
10160 lt_cv_dlopen_self_static=no
10161 fi
10162fi
10163rm -fr conftest*
10164
10165
10166fi
10167echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10168echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10169 fi
10170
10171 CPPFLAGS="$save_CPPFLAGS"
10172 LDFLAGS="$save_LDFLAGS"
10173 LIBS="$save_LIBS"
10174 ;;
10175 esac
10176
10177 case $lt_cv_dlopen_self in
10178 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10179 *) enable_dlopen_self=unknown ;;
10180 esac
10181
10182 case $lt_cv_dlopen_self_static in
10183 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10184 *) enable_dlopen_self_static=unknown ;;
10185 esac
10186fi
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204striplib=
10205old_striplib=
10206echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10207echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10208if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10209 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10210 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10211 echo "$as_me:$LINENO: result: yes" >&5
10212echo "${ECHO_T}yes" >&6
10213else
10214# FIXME - insert some real tests, host_os isn't really good enough
10215 case $host_os in
10216 darwin*)
10217 if test -n "$STRIP" ; then
10218 striplib="$STRIP -x"
10219 old_striplib="$STRIP -S"
10220 echo "$as_me:$LINENO: result: yes" >&5
10221echo "${ECHO_T}yes" >&6
10222 else
10223 echo "$as_me:$LINENO: result: no" >&5
10224echo "${ECHO_T}no" >&6
10225 fi
10226 ;;
10227 *)
10228 echo "$as_me:$LINENO: result: no" >&5
10229echo "${ECHO_T}no" >&6
10230 ;;
10231 esac
10232fi
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245 # Report which library types will actually be built
10246 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10247echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10248 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10249echo "${ECHO_T}$can_build_shared" >&6
10250
10251 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10252echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10253 test "$can_build_shared" = "no" && enable_shared=no
10254
10255 # On AIX, shared libraries and static libraries use the same namespace, and
10256 # are all built from PIC.
10257 case $host_os in
10258 aix3*)
10259 test "$enable_shared" = yes && enable_static=no
10260 if test -n "$RANLIB"; then
10261 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10262 postinstall_cmds='$RANLIB $lib'
10263 fi
10264 ;;
10265
95d4f544 10266 aix[4-9]*)
1cf3d07d
SE
10267 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10268 test "$enable_shared" = yes && enable_static=no
10269 fi
10270 ;;
10271 esac
10272 echo "$as_me:$LINENO: result: $enable_shared" >&5
10273echo "${ECHO_T}$enable_shared" >&6
10274
10275 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10276echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10277 # Make sure either enable_shared or enable_static is yes.
10278 test "$enable_shared" = yes || enable_static=yes
10279 echo "$as_me:$LINENO: result: $enable_static" >&5
10280echo "${ECHO_T}$enable_static" >&6
10281
10282
10283
10284
10285fi
10286ac_ext=c
10287ac_cpp='$CPP $CPPFLAGS'
10288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10290ac_compiler_gnu=$ac_cv_c_compiler_gnu
10291
10292CC="$lt_save_CC"
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306 ac_config_commands="$ac_config_commands libtool"
10307
10308
10309
10310
10311# Only expand once:
10312
10313
10314
10315echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10316echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10317 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10318if test "${enable_maintainer_mode+set}" = set; then
10319 enableval="$enable_maintainer_mode"
10320 USE_MAINTAINER_MODE=$enableval
c9b93377 10321else
1cf3d07d
SE
10322 USE_MAINTAINER_MODE=no
10323fi;
10324 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10325echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
c9b93377 10326
c9b93377 10327
1cf3d07d
SE
10328if test $USE_MAINTAINER_MODE = yes; then
10329 MAINTAINER_MODE_TRUE=
10330 MAINTAINER_MODE_FALSE='#'
10331else
10332 MAINTAINER_MODE_TRUE='#'
10333 MAINTAINER_MODE_FALSE=
c9b93377
JB
10334fi
10335
1cf3d07d
SE
10336 MAINT=$MAINTAINER_MODE_TRUE
10337
c9b93377
JB
10338
10339
10340
10341for ac_header in sys/mman.h
10342do
10343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10344if eval "test \"\${$as_ac_Header+set}\" = set"; then
10345 echo "$as_me:$LINENO: checking for $ac_header" >&5
10346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10347if eval "test \"\${$as_ac_Header+set}\" = set"; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10349fi
10350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10352else
10353 # Is the header compilable?
10354echo "$as_me:$LINENO: checking $ac_header usability" >&5
10355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10356cat >conftest.$ac_ext <<_ACEOF
10357/* confdefs.h. */
10358_ACEOF
10359cat confdefs.h >>conftest.$ac_ext
10360cat >>conftest.$ac_ext <<_ACEOF
10361/* end confdefs.h. */
10362$ac_includes_default
10363#include <$ac_header>
10364_ACEOF
10365rm -f conftest.$ac_objext
10366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367 (eval $ac_compile) 2>conftest.er1
10368 ac_status=$?
10369 grep -v '^ *+' conftest.er1 >conftest.err
10370 rm -f conftest.er1
10371 cat conftest.err >&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } &&
88d8c771
AG
10374 { ac_try='test -z "$ac_c_werror_flag"
10375 || test ! -s conftest.err'
c9b93377
JB
10376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 (eval $ac_try) 2>&5
10378 ac_status=$?
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; } &&
10381 { ac_try='test -s conftest.$ac_objext'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; }; then
10387 ac_header_compiler=yes
10388else
10389 echo "$as_me: failed program was:" >&5
10390sed 's/^/| /' conftest.$ac_ext >&5
10391
10392ac_header_compiler=no
10393fi
10394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10395echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10396echo "${ECHO_T}$ac_header_compiler" >&6
10397
10398# Is the header present?
10399echo "$as_me:$LINENO: checking $ac_header presence" >&5
10400echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10401cat >conftest.$ac_ext <<_ACEOF
10402/* confdefs.h. */
10403_ACEOF
10404cat confdefs.h >>conftest.$ac_ext
10405cat >>conftest.$ac_ext <<_ACEOF
10406/* end confdefs.h. */
10407#include <$ac_header>
10408_ACEOF
10409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10411 ac_status=$?
10412 grep -v '^ *+' conftest.er1 >conftest.err
10413 rm -f conftest.er1
10414 cat conftest.err >&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } >/dev/null; then
10417 if test -s conftest.err; then
10418 ac_cpp_err=$ac_c_preproc_warn_flag
10419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10420 else
10421 ac_cpp_err=
10422 fi
10423else
10424 ac_cpp_err=yes
10425fi
10426if test -z "$ac_cpp_err"; then
10427 ac_header_preproc=yes
10428else
10429 echo "$as_me: failed program was:" >&5
10430sed 's/^/| /' conftest.$ac_ext >&5
10431
10432 ac_header_preproc=no
10433fi
10434rm -f conftest.err conftest.$ac_ext
10435echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10436echo "${ECHO_T}$ac_header_preproc" >&6
10437
10438# So? What about this header?
10439case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10440 yes:no: )
10441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10442echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10444echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10445 ac_header_preproc=yes
10446 ;;
10447 no:yes:* )
10448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10449echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10451echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10453echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10455echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10457echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10459echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10460 (
10461 cat <<\_ASBOX
10462## ------------------------------------------- ##
10463## Report this to http://gcc.gnu.org/bugs.html ##
10464## ------------------------------------------- ##
10465_ASBOX
10466 ) |
10467 sed "s/^/$as_me: WARNING: /" >&2
10468 ;;
10469esac
10470echo "$as_me:$LINENO: checking for $ac_header" >&5
10471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10472if eval "test \"\${$as_ac_Header+set}\" = set"; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474else
10475 eval "$as_ac_Header=\$ac_header_preproc"
10476fi
10477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10478echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10479
10480fi
10481if test `eval echo '${'$as_ac_Header'}'` = yes; then
10482 cat >>confdefs.h <<_ACEOF
10483#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10484_ACEOF
10485
10486fi
10487
10488done
10489
10490
10491for ac_func in mmap
10492do
10493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10494echo "$as_me:$LINENO: checking for $ac_func" >&5
10495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10496if eval "test \"\${$as_ac_var+set}\" = set"; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10498else
10499 cat >conftest.$ac_ext <<_ACEOF
10500/* confdefs.h. */
10501_ACEOF
10502cat confdefs.h >>conftest.$ac_ext
10503cat >>conftest.$ac_ext <<_ACEOF
10504/* end confdefs.h. */
10505/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10507#define $ac_func innocuous_$ac_func
10508
10509/* System header to define __stub macros and hopefully few prototypes,
10510 which can conflict with char $ac_func (); below.
10511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10512 <limits.h> exists even on freestanding compilers. */
10513
10514#ifdef __STDC__
10515# include <limits.h>
10516#else
10517# include <assert.h>
10518#endif
10519
10520#undef $ac_func
10521
10522/* Override any gcc2 internal prototype to avoid an error. */
10523#ifdef __cplusplus
10524extern "C"
10525{
10526#endif
10527/* We use char because int might match the return type of a gcc2
10528 builtin and then its argument prototype would still apply. */
10529char $ac_func ();
10530/* The GNU C library defines this for functions which it implements
10531 to always fail with ENOSYS. Some functions are actually named
10532 something starting with __ and the normal name is an alias. */
10533#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10534choke me
10535#else
10536char (*f) () = $ac_func;
10537#endif
10538#ifdef __cplusplus
10539}
10540#endif
10541
10542int
10543main ()
10544{
10545return f != $ac_func;
10546 ;
10547 return 0;
10548}
10549_ACEOF
10550rm -f conftest.$ac_objext conftest$ac_exeext
10551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10552 (eval $ac_link) 2>conftest.er1
10553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } &&
88d8c771
AG
10559 { ac_try='test -z "$ac_c_werror_flag"
10560 || test ! -s conftest.err'
c9b93377
JB
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10563 ac_status=$?
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; } &&
10566 { ac_try='test -s conftest$ac_exeext'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10569 ac_status=$?
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }; then
10572 eval "$as_ac_var=yes"
10573else
10574 echo "$as_me: failed program was:" >&5
10575sed 's/^/| /' conftest.$ac_ext >&5
10576
10577eval "$as_ac_var=no"
10578fi
10579rm -f conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext conftest.$ac_ext
10581fi
10582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10583echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10584if test `eval echo '${'$as_ac_var'}'` = yes; then
10585 cat >>confdefs.h <<_ACEOF
10586#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10587_ACEOF
10588
10589fi
10590done
10591
4d447364
MR
10592
10593if test "${ac_cv_header_sys_mman_h+set}" = set; then
10594 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10595echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10596if test "${ac_cv_header_sys_mman_h+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10598fi
10599echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10600echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10601else
10602 # Is the header compilable?
10603echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
10604echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
10605cat >conftest.$ac_ext <<_ACEOF
10606/* confdefs.h. */
10607_ACEOF
10608cat confdefs.h >>conftest.$ac_ext
10609cat >>conftest.$ac_ext <<_ACEOF
10610/* end confdefs.h. */
10611$ac_includes_default
10612#include <sys/mman.h>
10613_ACEOF
10614rm -f conftest.$ac_objext
10615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10616 (eval $ac_compile) 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } &&
88d8c771
AG
10623 { ac_try='test -z "$ac_c_werror_flag"
10624 || test ! -s conftest.err'
4d447364
MR
10625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10627 ac_status=$?
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; } &&
10630 { ac_try='test -s conftest.$ac_objext'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10636 ac_header_compiler=yes
10637else
10638 echo "$as_me: failed program was:" >&5
10639sed 's/^/| /' conftest.$ac_ext >&5
10640
10641ac_header_compiler=no
10642fi
10643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10644echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10645echo "${ECHO_T}$ac_header_compiler" >&6
10646
10647# Is the header present?
10648echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
10649echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
10650cat >conftest.$ac_ext <<_ACEOF
10651/* confdefs.h. */
10652_ACEOF
10653cat confdefs.h >>conftest.$ac_ext
10654cat >>conftest.$ac_ext <<_ACEOF
10655/* end confdefs.h. */
10656#include <sys/mman.h>
10657_ACEOF
10658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10660 ac_status=$?
10661 grep -v '^ *+' conftest.er1 >conftest.err
10662 rm -f conftest.er1
10663 cat conftest.err >&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } >/dev/null; then
10666 if test -s conftest.err; then
10667 ac_cpp_err=$ac_c_preproc_warn_flag
10668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10669 else
10670 ac_cpp_err=
10671 fi
10672else
10673 ac_cpp_err=yes
10674fi
10675if test -z "$ac_cpp_err"; then
10676 ac_header_preproc=yes
10677else
10678 echo "$as_me: failed program was:" >&5
10679sed 's/^/| /' conftest.$ac_ext >&5
10680
10681 ac_header_preproc=no
10682fi
10683rm -f conftest.err conftest.$ac_ext
10684echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10685echo "${ECHO_T}$ac_header_preproc" >&6
10686
10687# So? What about this header?
10688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10689 yes:no: )
10690 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
10691echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10692 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
10693echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
10694 ac_header_preproc=yes
10695 ;;
10696 no:yes:* )
10697 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
10698echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
10700echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
10701 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
10702echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
10704echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
10706echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
10707 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
10708echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
10709 (
10710 cat <<\_ASBOX
10711## ------------------------------------------- ##
10712## Report this to http://gcc.gnu.org/bugs.html ##
10713## ------------------------------------------- ##
10714_ASBOX
10715 ) |
10716 sed "s/^/$as_me: WARNING: /" >&2
10717 ;;
10718esac
10719echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10720echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10721if test "${ac_cv_header_sys_mman_h+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723else
10724 ac_cv_header_sys_mman_h=$ac_header_preproc
10725fi
10726echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10727echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10728
10729fi
10730if test $ac_cv_header_sys_mman_h = yes; then
10731 libffi_header_sys_mman_h=yes
10732else
10733 libffi_header_sys_mman_h=no
10734fi
10735
10736
10737echo "$as_me:$LINENO: checking for mmap" >&5
10738echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10739if test "${ac_cv_func_mmap+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741else
10742 cat >conftest.$ac_ext <<_ACEOF
10743/* confdefs.h. */
10744_ACEOF
10745cat confdefs.h >>conftest.$ac_ext
10746cat >>conftest.$ac_ext <<_ACEOF
10747/* end confdefs.h. */
10748/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10750#define mmap innocuous_mmap
10751
10752/* System header to define __stub macros and hopefully few prototypes,
10753 which can conflict with char mmap (); below.
10754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10755 <limits.h> exists even on freestanding compilers. */
10756
10757#ifdef __STDC__
10758# include <limits.h>
10759#else
10760# include <assert.h>
10761#endif
10762
10763#undef mmap
10764
10765/* Override any gcc2 internal prototype to avoid an error. */
10766#ifdef __cplusplus
10767extern "C"
10768{
10769#endif
10770/* We use char because int might match the return type of a gcc2
10771 builtin and then its argument prototype would still apply. */
10772char mmap ();
10773/* The GNU C library defines this for functions which it implements
10774 to always fail with ENOSYS. Some functions are actually named
10775 something starting with __ and the normal name is an alias. */
10776#if defined (__stub_mmap) || defined (__stub___mmap)
10777choke me
10778#else
10779char (*f) () = mmap;
10780#endif
10781#ifdef __cplusplus
10782}
10783#endif
10784
10785int
10786main ()
10787{
10788return f != mmap;
10789 ;
10790 return 0;
10791}
10792_ACEOF
10793rm -f conftest.$ac_objext conftest$ac_exeext
10794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10795 (eval $ac_link) 2>conftest.er1
10796 ac_status=$?
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
88d8c771
AG
10802 { ac_try='test -z "$ac_c_werror_flag"
10803 || test ! -s conftest.err'
4d447364
MR
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10806 ac_status=$?
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; } &&
10809 { ac_try='test -s conftest$ac_exeext'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 ac_cv_func_mmap=yes
10816else
10817 echo "$as_me: failed program was:" >&5
10818sed 's/^/| /' conftest.$ac_ext >&5
10819
10820ac_cv_func_mmap=no
10821fi
10822rm -f conftest.err conftest.$ac_objext \
10823 conftest$ac_exeext conftest.$ac_ext
10824fi
10825echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10826echo "${ECHO_T}$ac_cv_func_mmap" >&6
10827if test $ac_cv_func_mmap = yes; then
10828 libffi_func_mmap=yes
10829else
10830 libffi_func_mmap=no
10831fi
10832
10833if test "$libffi_header_sys_mman_h" != yes \
10834 || test "$libffi_func_mmap" != yes; then
c9b93377
JB
10835 ac_cv_func_mmap_file=no
10836 ac_cv_func_mmap_dev_zero=no
10837 ac_cv_func_mmap_anon=no
10838else
10839 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10840echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10841if test "${ac_cv_func_mmap_file+set}" = set; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10843else
10844 # Add a system to this blacklist if
10845 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10846 # memory area containing the same data that you'd get if you applied
10847 # read() to the same fd. The only system known to have a problem here
10848 # is VMS, where text files have record structure.
10849 case "$host_os" in
10850 vms* | ultrix*)
10851 ac_cv_func_mmap_file=no ;;
10852 *)
10853 ac_cv_func_mmap_file=yes;;
10854 esac
10855fi
10856echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
10857echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
10858 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10859echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10860if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862else
10863 # Add a system to this blacklist if it has mmap() but /dev/zero
10864 # does not exist, or if mmapping /dev/zero does not give anonymous
10865 # zeroed pages with both the following properties:
10866 # 1. If you map N consecutive pages in with one call, and then
10867 # unmap any subset of those pages, the pages that were not
10868 # explicitly unmapped remain accessible.
10869 # 2. If you map two adjacent blocks of memory and then unmap them
10870 # both at once, they must both go away.
10871 # Systems known to be in this category are Windows (all variants),
10872 # VMS, and Darwin.
10873 case "$host_os" in
10874 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10875 ac_cv_func_mmap_dev_zero=no ;;
10876 *)
10877 ac_cv_func_mmap_dev_zero=yes;;
10878 esac
10879fi
10880echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
10881echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
10882
10883 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10884 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10885echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10886if test "${ac_cv_decl_map_anon+set}" = set; then
10887 echo $ECHO_N "(cached) $ECHO_C" >&6
10888else
10889 cat >conftest.$ac_ext <<_ACEOF
10890/* confdefs.h. */
10891_ACEOF
10892cat confdefs.h >>conftest.$ac_ext
10893cat >>conftest.$ac_ext <<_ACEOF
10894/* end confdefs.h. */
10895#include <sys/types.h>
10896#include <sys/mman.h>
10897#include <unistd.h>
10898
10899#ifndef MAP_ANONYMOUS
10900#define MAP_ANONYMOUS MAP_ANON
10901#endif
10902
10903int
10904main ()
10905{
10906int n = MAP_ANONYMOUS;
10907 ;
10908 return 0;
10909}
10910_ACEOF
10911rm -f conftest.$ac_objext
10912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10913 (eval $ac_compile) 2>conftest.er1
10914 ac_status=$?
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
88d8c771
AG
10920 { ac_try='test -z "$ac_c_werror_flag"
10921 || test ! -s conftest.err'
c9b93377
JB
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try='test -s conftest.$ac_objext'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }; then
10933 ac_cv_decl_map_anon=yes
10934else
10935 echo "$as_me: failed program was:" >&5
10936sed 's/^/| /' conftest.$ac_ext >&5
10937
10938ac_cv_decl_map_anon=no
10939fi
10940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10941fi
10942echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
10943echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
10944
10945 if test $ac_cv_decl_map_anon = no; then
10946 ac_cv_func_mmap_anon=no
10947 else
10948 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10949echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10950if test "${ac_cv_func_mmap_anon+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10952else
10953 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10954 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10955 # doesn't give anonymous zeroed pages with the same properties listed
10956 # above for use of /dev/zero.
10957 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10958 case "$host_os" in
10959 vms* | cygwin* | pe | mingw* | sco* | udk* )
10960 ac_cv_func_mmap_anon=no ;;
10961 *)
10962 ac_cv_func_mmap_anon=yes;;
10963 esac
10964fi
10965echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
10966echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
10967 fi
10968fi
10969
10970if test $ac_cv_func_mmap_file = yes; then
10971
10972cat >>confdefs.h <<\_ACEOF
10973#define HAVE_MMAP_FILE 1
10974_ACEOF
10975
10976fi
10977if test $ac_cv_func_mmap_dev_zero = yes; then
10978
10979cat >>confdefs.h <<\_ACEOF
10980#define HAVE_MMAP_DEV_ZERO 1
10981_ACEOF
10982
10983fi
10984if test $ac_cv_func_mmap_anon = yes; then
10985
10986cat >>confdefs.h <<\_ACEOF
10987#define HAVE_MMAP_ANON 1
10988_ACEOF
10989
10990fi
10991
10992
10993
10994
10995if test -d $srcdir/testsuite; then
10996 TESTSUBDIR_TRUE=
10997 TESTSUBDIR_FALSE='#'
10998else
10999 TESTSUBDIR_TRUE='#'
11000 TESTSUBDIR_FALSE=
11001fi
11002
11003
11004TARGETDIR="unknown"
11005case "$host" in
bf8da5fc
RH
11006 alpha*-*-*)
11007 TARGET=ALPHA; TARGETDIR=alpha;
11008 # Support 128-bit long double, changable via command-line switch.
11009 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
11010 ;;
11011
11012 arm*-*-*)
11013 TARGET=ARM; TARGETDIR=arm
11014 ;;
11015
2e250fa2
BK
11016 amd64-*-freebsd*)
11017 TARGET=X86_64; TARGETDIR=x86
11018 ;;
11019
bf8da5fc
RH
11020 cris-*-*)
11021 TARGET=LIBFFI_CRIS; TARGETDIR=cris
11022 ;;
11023
11024 frv-*-*)
11025 TARGET=FRV; TARGETDIR=frv
11026 ;;
11027
cd985f66 11028 hppa*-*-linux*)
bf8da5fc
RH
11029 TARGET=PA_LINUX; TARGETDIR=pa
11030 ;;
11031 hppa*64-*-hpux*)
11032 TARGET=PA64_HPUX; TARGETDIR=pa
11033 ;;
11034 hppa*-*-hpux*)
11035 TARGET=PA_HPUX; TARGETDIR=pa
11036 ;;
11037
11038 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
11039 TARGET=X86_WIN32; TARGETDIR=x86
11040 ;;
11041 i?86-*-darwin*)
11042 TARGET=X86_DARWIN; TARGETDIR=x86
11043 ;;
04a49983
RO
11044 i?86-*-solaris2.1[0-9]*)
11045 TARGET=X86_64; TARGETDIR=x86
11046 ;;
bf8da5fc
RH
11047 i?86-*-*)
11048 TARGET=X86; TARGETDIR=x86
11049 ;;
11050
11051 ia64*-*-*)
11052 TARGET=IA64; TARGETDIR=ia64
11053 ;;
11054
11055 m32r*-*-*)
11056 TARGET=M32R; TARGETDIR=m32r
11057 ;;
11058
11059 m68k-*-*)
11060 TARGET=M68K; TARGETDIR=m68k
11061 ;;
11062
bf8da5fc 11063 mips-sgi-irix5.* | mips-sgi-irix6.*)
8d5c5e35 11064 TARGET=MIPS; TARGETDIR=mips
bf8da5fc
RH
11065 ;;
11066 mips*-*-linux*)
8d5c5e35 11067 TARGET=MIPS; TARGETDIR=mips
bf8da5fc
RH
11068 ;;
11069
cd985f66 11070 powerpc*-*-linux*)
bf8da5fc
RH
11071 TARGET=POWERPC; TARGETDIR=powerpc
11072 ;;
11073 powerpc-*-darwin*)
11074 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
11075 ;;
11076 powerpc-*-aix* | rs6000-*-aix*)
11077 TARGET=POWERPC_AIX; TARGETDIR=powerpc
11078 ;;
11079 powerpc-*-freebsd*)
11080 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
11081 ;;
11082 powerpc*-*-rtems*)
11083 TARGET=POWERPC; TARGETDIR=powerpc
11084 ;;
11085
11086 s390-*-* | s390x-*-*)
11087 TARGET=S390; TARGETDIR=s390
11088 ;;
11089
11090 sh-*-* | sh[34]*-*-*)
11091 TARGET=SH; TARGETDIR=sh
11092 ;;
11093 sh64-*-* | sh5*-*-*)
11094 TARGET=SH64; TARGETDIR=sh64
11095 ;;
11096
11097 sparc*-*-*)
11098 TARGET=SPARC; TARGETDIR=sparc
11099 ;;
11100
11101 x86_64-*-darwin*)
11102 TARGET=X86_DARWIN; TARGETDIR=x86
11103 ;;
11104 x86_64-*-cygwin* | x86_64-*-mingw*)
11105 ;;
11106 x86_64-*-*)
11107 TARGET=X86_64; TARGETDIR=x86
11108 ;;
c9b93377
JB
11109esac
11110
11111
11112
11113if test $TARGETDIR = unknown; then
11114 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
11115echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
11116 { (exit 1); exit 1; }; }
11117fi
11118
11119
11120
8d5c5e35
MR
11121if test x$TARGET = xMIPS; then
11122 MIPS_TRUE=
11123 MIPS_FALSE='#'
c9b93377 11124else
8d5c5e35
MR
11125 MIPS_TRUE='#'
11126 MIPS_FALSE=
c9b93377
JB
11127fi
11128
11129
11130
11131if test x$TARGET = xSPARC; then
11132 SPARC_TRUE=
11133 SPARC_FALSE='#'
11134else
11135 SPARC_TRUE='#'
11136 SPARC_FALSE=
11137fi
11138
11139
11140
11141if test x$TARGET = xX86; then
11142 X86_TRUE=
11143 X86_FALSE='#'
11144else
11145 X86_TRUE='#'
11146 X86_FALSE=
63e5e3e0 11147fi
c9b93377
JB
11148
11149
11150
11151if test x$TARGET = xX86_WIN32; then
11152 X86_WIN32_TRUE=
11153 X86_WIN32_FALSE='#'
3ed8e5b6 11154else
c9b93377
JB
11155 X86_WIN32_TRUE='#'
11156 X86_WIN32_FALSE=
11157fi
3ed8e5b6 11158
c9b93377
JB
11159
11160
a3bd50cc
PB
11161if test x$TARGET = xX86_DARWIN; then
11162 X86_DARWIN_TRUE=
11163 X86_DARWIN_FALSE='#'
11164else
11165 X86_DARWIN_TRUE='#'
11166 X86_DARWIN_FALSE=
11167fi
11168
11169
11170
c9b93377
JB
11171if test x$TARGET = xALPHA; then
11172 ALPHA_TRUE=
11173 ALPHA_FALSE='#'
11174else
11175 ALPHA_TRUE='#'
11176 ALPHA_FALSE=
63e5e3e0 11177fi
3ed8e5b6 11178
c9b93377
JB
11179
11180
11181if test x$TARGET = xIA64; then
11182 IA64_TRUE=
11183 IA64_FALSE='#'
11184else
11185 IA64_TRUE='#'
11186 IA64_FALSE=
63e5e3e0 11187fi
3ed8e5b6 11188
3ed8e5b6 11189
c9b93377 11190
a472e9d4
KI
11191if test x$TARGET = xM32R; then
11192 M32R_TRUE=
11193 M32R_FALSE='#'
11194else
11195 M32R_TRUE='#'
11196 M32R_FALSE=
11197fi
11198
11199
11200
c9b93377
JB
11201if test x$TARGET = xM68K; then
11202 M68K_TRUE=
11203 M68K_FALSE='#'
11204else
11205 M68K_TRUE='#'
11206 M68K_FALSE=
3ed8e5b6 11207fi
c9b93377
JB
11208
11209
11210
11211if test x$TARGET = xPOWERPC; then
11212 POWERPC_TRUE=
11213 POWERPC_FALSE='#'
3ed8e5b6 11214else
c9b93377
JB
11215 POWERPC_TRUE='#'
11216 POWERPC_FALSE=
3ed8e5b6 11217fi
c9b93377
JB
11218
11219
11220
11221if test x$TARGET = xPOWERPC_AIX; then
11222 POWERPC_AIX_TRUE=
11223 POWERPC_AIX_FALSE='#'
3ed8e5b6 11224else
c9b93377
JB
11225 POWERPC_AIX_TRUE='#'
11226 POWERPC_AIX_FALSE=
3ed8e5b6 11227fi
c9b93377
JB
11228
11229
11230
11231if test x$TARGET = xPOWERPC_DARWIN; then
11232 POWERPC_DARWIN_TRUE=
11233 POWERPC_DARWIN_FALSE='#'
3ed8e5b6 11234else
c9b93377
JB
11235 POWERPC_DARWIN_TRUE='#'
11236 POWERPC_DARWIN_FALSE=
11237fi
3ed8e5b6 11238
c9b93377
JB
11239
11240
97067642
AT
11241if test x$TARGET = xPOWERPC_FREEBSD; then
11242 POWERPC_FREEBSD_TRUE=
11243 POWERPC_FREEBSD_FALSE='#'
11244else
11245 POWERPC_FREEBSD_TRUE='#'
11246 POWERPC_FREEBSD_FALSE=
11247fi
11248
11249
11250
c9b93377
JB
11251if test x$TARGET = xARM; then
11252 ARM_TRUE=
11253 ARM_FALSE='#'
11254else
11255 ARM_TRUE='#'
11256 ARM_FALSE=
3ed8e5b6 11257fi
3ed8e5b6 11258
c9b93377
JB
11259
11260
614348bb
SP
11261if test x$TARGET = xLIBFFI_CRIS; then
11262 LIBFFI_CRIS_TRUE=
11263 LIBFFI_CRIS_FALSE='#'
11264else
11265 LIBFFI_CRIS_TRUE='#'
11266 LIBFFI_CRIS_FALSE=
11267fi
11268
11269
11270
88d8c771
AG
11271if test x$TARGET = xFRV; then
11272 FRV_TRUE=
11273 FRV_FALSE='#'
11274else
11275 FRV_TRUE='#'
11276 FRV_FALSE=
11277fi
11278
11279
11280
c9b93377
JB
11281if test x$TARGET = xS390; then
11282 S390_TRUE=
11283 S390_FALSE='#'
3ed8e5b6 11284else
c9b93377
JB
11285 S390_TRUE='#'
11286 S390_FALSE=
3ed8e5b6 11287fi
c9b93377
JB
11288
11289
11290
11291if test x$TARGET = xX86_64; then
11292 X86_64_TRUE=
11293 X86_64_FALSE='#'
3ed8e5b6 11294else
c9b93377
JB
11295 X86_64_TRUE='#'
11296 X86_64_FALSE=
11297fi
3ed8e5b6 11298
c9b93377
JB
11299
11300
11301if test x$TARGET = xSH; then
11302 SH_TRUE=
11303 SH_FALSE='#'
11304else
11305 SH_TRUE='#'
11306 SH_FALSE=
63e5e3e0 11307fi
3ed8e5b6 11308
c9b93377
JB
11309
11310
11311if test x$TARGET = xSH64; then
11312 SH64_TRUE=
11313 SH64_FALSE='#'
63e5e3e0 11314else
c9b93377
JB
11315 SH64_TRUE='#'
11316 SH64_FALSE=
63e5e3e0 11317fi
63e5e3e0 11318
3ed8e5b6
AT
11319
11320
e6c300ef
JDA
11321if test x$TARGET = xPA_LINUX; then
11322 PA_LINUX_TRUE=
11323 PA_LINUX_FALSE='#'
63e5e3e0 11324else
e6c300ef
JDA
11325 PA_LINUX_TRUE='#'
11326 PA_LINUX_FALSE=
11327fi
11328
11329
11330
11331if test x$TARGET = xPA_HPUX; then
11332 PA_HPUX_TRUE=
11333 PA_HPUX_FALSE='#'
11334else
11335 PA_HPUX_TRUE='#'
11336 PA_HPUX_FALSE=
11337fi
11338
11339
11340
11341if test x$TARGET = xPA64_HPUX; then
11342 PA64_HPUX_TRUE=
11343 PA64_HPUX_FALSE='#'
11344else
11345 PA64_HPUX_TRUE='#'
11346 PA64_HPUX_FALSE=
3ed8e5b6 11347fi
3ed8e5b6
AT
11348
11349
11350echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11351echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11352if test "${ac_cv_header_stdc+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354else
11355 cat >conftest.$ac_ext <<_ACEOF
11356/* confdefs.h. */
11357_ACEOF
11358cat confdefs.h >>conftest.$ac_ext
11359cat >>conftest.$ac_ext <<_ACEOF
11360/* end confdefs.h. */
63e5e3e0
AG
11361#include <stdlib.h>
11362#include <stdarg.h>
11363#include <string.h>
11364#include <float.h>
3ed8e5b6
AT
11365
11366int
11367main ()
11368{
11369
11370 ;
11371 return 0;
11372}
11373_ACEOF
11374rm -f conftest.$ac_objext
11375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11376 (eval $ac_compile) 2>conftest.er1
11377 ac_status=$?
11378 grep -v '^ *+' conftest.er1 >conftest.err
11379 rm -f conftest.er1
11380 cat conftest.err >&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } &&
88d8c771
AG
11383 { ac_try='test -z "$ac_c_werror_flag"
11384 || test ! -s conftest.err'
3ed8e5b6
AT
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; } &&
11390 { ac_try='test -s conftest.$ac_objext'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11393 ac_status=$?
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
63e5e3e0
AG
11396 ac_cv_header_stdc=yes
11397else
3ed8e5b6
AT
11398 echo "$as_me: failed program was:" >&5
11399sed 's/^/| /' conftest.$ac_ext >&5
11400
11401ac_cv_header_stdc=no
63e5e3e0 11402fi
3ed8e5b6 11403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0
AG
11404
11405if test $ac_cv_header_stdc = yes; then
11406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3ed8e5b6
AT
11407 cat >conftest.$ac_ext <<_ACEOF
11408/* confdefs.h. */
11409_ACEOF
11410cat confdefs.h >>conftest.$ac_ext
11411cat >>conftest.$ac_ext <<_ACEOF
11412/* end confdefs.h. */
63e5e3e0 11413#include <string.h>
3ed8e5b6
AT
11414
11415_ACEOF
63e5e3e0 11416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3ed8e5b6 11417 $EGREP "memchr" >/dev/null 2>&1; then
63e5e3e0
AG
11418 :
11419else
63e5e3e0
AG
11420 ac_cv_header_stdc=no
11421fi
11422rm -f conftest*
11423
11424fi
11425
11426if test $ac_cv_header_stdc = yes; then
11427 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3ed8e5b6
AT
11428 cat >conftest.$ac_ext <<_ACEOF
11429/* confdefs.h. */
11430_ACEOF
11431cat confdefs.h >>conftest.$ac_ext
11432cat >>conftest.$ac_ext <<_ACEOF
11433/* end confdefs.h. */
63e5e3e0 11434#include <stdlib.h>
3ed8e5b6
AT
11435
11436_ACEOF
63e5e3e0 11437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3ed8e5b6 11438 $EGREP "free" >/dev/null 2>&1; then
63e5e3e0
AG
11439 :
11440else
63e5e3e0
AG
11441 ac_cv_header_stdc=no
11442fi
11443rm -f conftest*
11444
11445fi
11446
11447if test $ac_cv_header_stdc = yes; then
11448 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3ed8e5b6 11449 if test "$cross_compiling" = yes; then
63e5e3e0
AG
11450 :
11451else
3ed8e5b6
AT
11452 cat >conftest.$ac_ext <<_ACEOF
11453/* confdefs.h. */
11454_ACEOF
11455cat confdefs.h >>conftest.$ac_ext
11456cat >>conftest.$ac_ext <<_ACEOF
11457/* end confdefs.h. */
63e5e3e0 11458#include <ctype.h>
3ed8e5b6
AT
11459#if ((' ' & 0x0FF) == 0x020)
11460# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11461# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11462#else
11463# define ISLOWER(c) \
11464 (('a' <= (c) && (c) <= 'i') \
11465 || ('j' <= (c) && (c) <= 'r') \
11466 || ('s' <= (c) && (c) <= 'z'))
11467# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11468#endif
63e5e3e0 11469
3ed8e5b6
AT
11470#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11471int
11472main ()
11473{
11474 int i;
11475 for (i = 0; i < 256; i++)
11476 if (XOR (islower (i), ISLOWER (i))
11477 || toupper (i) != TOUPPER (i))
11478 exit(2);
11479 exit (0);
11480}
11481_ACEOF
11482rm -f conftest$ac_exeext
11483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11484 (eval $ac_link) 2>&5
11485 ac_status=$?
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; }; then
63e5e3e0
AG
11493 :
11494else
3ed8e5b6
AT
11495 echo "$as_me: program exited with status $ac_status" >&5
11496echo "$as_me: failed program was:" >&5
11497sed 's/^/| /' conftest.$ac_ext >&5
11498
11499( exit $ac_status )
11500ac_cv_header_stdc=no
63e5e3e0 11501fi
3ed8e5b6 11502rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63e5e3e0 11503fi
63e5e3e0
AG
11504fi
11505fi
3ed8e5b6
AT
11506echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11507echo "${ECHO_T}$ac_cv_header_stdc" >&6
63e5e3e0 11508if test $ac_cv_header_stdc = yes; then
3ed8e5b6
AT
11509
11510cat >>confdefs.h <<\_ACEOF
63e5e3e0 11511#define STDC_HEADERS 1
3ed8e5b6 11512_ACEOF
63e5e3e0
AG
11513
11514fi
11515
3ed8e5b6 11516
63e5e3e0
AG
11517for ac_func in memcpy
11518do
3ed8e5b6
AT
11519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11520echo "$as_me:$LINENO: checking for $ac_func" >&5
11521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11522if eval "test \"\${$as_ac_var+set}\" = set"; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11524else
11525 cat >conftest.$ac_ext <<_ACEOF
11526/* confdefs.h. */
11527_ACEOF
11528cat confdefs.h >>conftest.$ac_ext
11529cat >>conftest.$ac_ext <<_ACEOF
11530/* end confdefs.h. */
11531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11533#define $ac_func innocuous_$ac_func
11534
63e5e3e0 11535/* System header to define __stub macros and hopefully few prototypes,
3ed8e5b6
AT
11536 which can conflict with char $ac_func (); below.
11537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11538 <limits.h> exists even on freestanding compilers. */
63e5e3e0 11539
3ed8e5b6
AT
11540#ifdef __STDC__
11541# include <limits.h>
11542#else
11543# include <assert.h>
11544#endif
63e5e3e0 11545
3ed8e5b6
AT
11546#undef $ac_func
11547
11548/* Override any gcc2 internal prototype to avoid an error. */
11549#ifdef __cplusplus
11550extern "C"
11551{
11552#endif
11553/* We use char because int might match the return type of a gcc2
11554 builtin and then its argument prototype would still apply. */
11555char $ac_func ();
63e5e3e0
AG
11556/* The GNU C library defines this for functions which it implements
11557 to always fail with ENOSYS. Some functions are actually named
11558 something starting with __ and the normal name is an alias. */
11559#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11560choke me
11561#else
3ed8e5b6
AT
11562char (*f) () = $ac_func;
11563#endif
11564#ifdef __cplusplus
11565}
63e5e3e0
AG
11566#endif
11567
3ed8e5b6
AT
11568int
11569main ()
11570{
11571return f != $ac_func;
11572 ;
11573 return 0;
11574}
11575_ACEOF
11576rm -f conftest.$ac_objext conftest$ac_exeext
11577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11578 (eval $ac_link) 2>conftest.er1
11579 ac_status=$?
11580 grep -v '^ *+' conftest.er1 >conftest.err
11581 rm -f conftest.er1
11582 cat conftest.err >&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } &&
88d8c771
AG
11585 { ac_try='test -z "$ac_c_werror_flag"
11586 || test ! -s conftest.err'
3ed8e5b6
AT
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; } &&
11592 { ac_try='test -s conftest$ac_exeext'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11595 ac_status=$?
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }; then
11598 eval "$as_ac_var=yes"
11599else
11600 echo "$as_me: failed program was:" >&5
11601sed 's/^/| /' conftest.$ac_ext >&5
11602
11603eval "$as_ac_var=no"
11604fi
11605rm -f conftest.err conftest.$ac_objext \
11606 conftest$ac_exeext conftest.$ac_ext
11607fi
11608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11609echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11610if test `eval echo '${'$as_ac_var'}'` = yes; then
11611 cat >>confdefs.h <<_ACEOF
11612#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11613_ACEOF
63e5e3e0 11614
63e5e3e0
AG
11615fi
11616done
11617
11618# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11619# for constant arguments. Useless!
3ed8e5b6
AT
11620echo "$as_me:$LINENO: checking for working alloca.h" >&5
11621echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11622if test "${ac_cv_working_alloca_h+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11624else
11625 cat >conftest.$ac_ext <<_ACEOF
11626/* confdefs.h. */
11627_ACEOF
11628cat confdefs.h >>conftest.$ac_ext
11629cat >>conftest.$ac_ext <<_ACEOF
11630/* end confdefs.h. */
63e5e3e0 11631#include <alloca.h>
3ed8e5b6
AT
11632int
11633main ()
11634{
11635char *p = (char *) alloca (2 * sizeof (int));
11636 ;
11637 return 0;
11638}
11639_ACEOF
11640rm -f conftest.$ac_objext conftest$ac_exeext
11641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11642 (eval $ac_link) 2>conftest.er1
11643 ac_status=$?
11644 grep -v '^ *+' conftest.er1 >conftest.err
11645 rm -f conftest.er1
11646 cat conftest.err >&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } &&
88d8c771
AG
11649 { ac_try='test -z "$ac_c_werror_flag"
11650 || test ! -s conftest.err'
3ed8e5b6
AT
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; } &&
11656 { ac_try='test -s conftest$ac_exeext'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; }; then
11662 ac_cv_working_alloca_h=yes
11663else
11664 echo "$as_me: failed program was:" >&5
11665sed 's/^/| /' conftest.$ac_ext >&5
11666
11667ac_cv_working_alloca_h=no
11668fi
11669rm -f conftest.err conftest.$ac_objext \
11670 conftest$ac_exeext conftest.$ac_ext
11671fi
11672echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11673echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11674if test $ac_cv_working_alloca_h = yes; then
11675
11676cat >>confdefs.h <<\_ACEOF
63e5e3e0 11677#define HAVE_ALLOCA_H 1
3ed8e5b6 11678_ACEOF
63e5e3e0
AG
11679
11680fi
11681
3ed8e5b6
AT
11682echo "$as_me:$LINENO: checking for alloca" >&5
11683echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11684if test "${ac_cv_func_alloca_works+set}" = set; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 11686else
3ed8e5b6
AT
11687 cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h. */
11689_ACEOF
11690cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h. */
63e5e3e0
AG
11693#ifdef __GNUC__
11694# define alloca __builtin_alloca
11695#else
11696# ifdef _MSC_VER
11697# include <malloc.h>
11698# define alloca _alloca
11699# else
11700# if HAVE_ALLOCA_H
11701# include <alloca.h>
11702# else
11703# ifdef _AIX
11704 #pragma alloca
11705# else
11706# ifndef alloca /* predefined by HP cc +Olibcalls */
11707char *alloca ();
11708# endif
11709# endif
11710# endif
11711# endif
11712#endif
11713
3ed8e5b6
AT
11714int
11715main ()
11716{
11717char *p = (char *) alloca (1);
11718 ;
11719 return 0;
11720}
11721_ACEOF
11722rm -f conftest.$ac_objext conftest$ac_exeext
11723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724 (eval $ac_link) 2>conftest.er1
11725 ac_status=$?
11726 grep -v '^ *+' conftest.er1 >conftest.err
11727 rm -f conftest.er1
11728 cat conftest.err >&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } &&
88d8c771
AG
11731 { ac_try='test -z "$ac_c_werror_flag"
11732 || test ! -s conftest.err'
3ed8e5b6
AT
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } &&
11738 { ac_try='test -s conftest$ac_exeext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
63e5e3e0
AG
11744 ac_cv_func_alloca_works=yes
11745else
3ed8e5b6
AT
11746 echo "$as_me: failed program was:" >&5
11747sed 's/^/| /' conftest.$ac_ext >&5
11748
11749ac_cv_func_alloca_works=no
63e5e3e0 11750fi
3ed8e5b6
AT
11751rm -f conftest.err conftest.$ac_objext \
11752 conftest$ac_exeext conftest.$ac_ext
63e5e3e0 11753fi
3ed8e5b6
AT
11754echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11755echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
63e5e3e0 11756
63e5e3e0 11757if test $ac_cv_func_alloca_works = yes; then
63e5e3e0 11758
3ed8e5b6
AT
11759cat >>confdefs.h <<\_ACEOF
11760#define HAVE_ALLOCA 1
11761_ACEOF
63e5e3e0 11762
3ed8e5b6 11763else
63e5e3e0 11764 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3ed8e5b6
AT
11765# that cause trouble. Some versions do not even contain alloca or
11766# contain a buggy version. If you still want to use their alloca,
11767# use ar to extract alloca.o from them instead of compiling alloca.c.
11768
11769ALLOCA=alloca.$ac_objext
11770
11771cat >>confdefs.h <<\_ACEOF
63e5e3e0 11772#define C_ALLOCA 1
3ed8e5b6 11773_ACEOF
63e5e3e0
AG
11774
11775
3ed8e5b6
AT
11776echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11777echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11778if test "${ac_cv_os_cray+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 11780else
3ed8e5b6
AT
11781 cat >conftest.$ac_ext <<_ACEOF
11782/* confdefs.h. */
11783_ACEOF
11784cat confdefs.h >>conftest.$ac_ext
11785cat >>conftest.$ac_ext <<_ACEOF
11786/* end confdefs.h. */
63e5e3e0
AG
11787#if defined(CRAY) && ! defined(CRAY2)
11788webecray
11789#else
11790wenotbecray
11791#endif
11792
3ed8e5b6 11793_ACEOF
63e5e3e0 11794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3ed8e5b6 11795 $EGREP "webecray" >/dev/null 2>&1; then
63e5e3e0
AG
11796 ac_cv_os_cray=yes
11797else
63e5e3e0
AG
11798 ac_cv_os_cray=no
11799fi
11800rm -f conftest*
11801
11802fi
3ed8e5b6
AT
11803echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11804echo "${ECHO_T}$ac_cv_os_cray" >&6
63e5e3e0 11805if test $ac_cv_os_cray = yes; then
3ed8e5b6
AT
11806 for ac_func in _getb67 GETB67 getb67; do
11807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11808echo "$as_me:$LINENO: checking for $ac_func" >&5
11809echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11810if eval "test \"\${$as_ac_var+set}\" = set"; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11812else
11813 cat >conftest.$ac_ext <<_ACEOF
11814/* confdefs.h. */
11815_ACEOF
11816cat confdefs.h >>conftest.$ac_ext
11817cat >>conftest.$ac_ext <<_ACEOF
11818/* end confdefs.h. */
11819/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11821#define $ac_func innocuous_$ac_func
11822
63e5e3e0 11823/* System header to define __stub macros and hopefully few prototypes,
3ed8e5b6
AT
11824 which can conflict with char $ac_func (); below.
11825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11826 <limits.h> exists even on freestanding compilers. */
11827
11828#ifdef __STDC__
11829# include <limits.h>
11830#else
11831# include <assert.h>
11832#endif
63e5e3e0 11833
3ed8e5b6 11834#undef $ac_func
63e5e3e0 11835
3ed8e5b6
AT
11836/* Override any gcc2 internal prototype to avoid an error. */
11837#ifdef __cplusplus
11838extern "C"
11839{
11840#endif
11841/* We use char because int might match the return type of a gcc2
11842 builtin and then its argument prototype would still apply. */
11843char $ac_func ();
63e5e3e0
AG
11844/* The GNU C library defines this for functions which it implements
11845 to always fail with ENOSYS. Some functions are actually named
11846 something starting with __ and the normal name is an alias. */
11847#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11848choke me
11849#else
3ed8e5b6
AT
11850char (*f) () = $ac_func;
11851#endif
11852#ifdef __cplusplus
11853}
63e5e3e0
AG
11854#endif
11855
3ed8e5b6
AT
11856int
11857main ()
11858{
11859return f != $ac_func;
11860 ;
11861 return 0;
11862}
11863_ACEOF
11864rm -f conftest.$ac_objext conftest$ac_exeext
11865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11866 (eval $ac_link) 2>conftest.er1
11867 ac_status=$?
11868 grep -v '^ *+' conftest.er1 >conftest.err
11869 rm -f conftest.er1
11870 cat conftest.err >&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } &&
88d8c771
AG
11873 { ac_try='test -z "$ac_c_werror_flag"
11874 || test ! -s conftest.err'
3ed8e5b6
AT
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; } &&
11880 { ac_try='test -s conftest$ac_exeext'
11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5
11883 ac_status=$?
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; }; then
11886 eval "$as_ac_var=yes"
11887else
11888 echo "$as_me: failed program was:" >&5
11889sed 's/^/| /' conftest.$ac_ext >&5
11890
11891eval "$as_ac_var=no"
11892fi
11893rm -f conftest.err conftest.$ac_objext \
11894 conftest$ac_exeext conftest.$ac_ext
11895fi
11896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11897echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11898if test `eval echo '${'$as_ac_var'}'` = yes; then
11899
11900cat >>confdefs.h <<_ACEOF
63e5e3e0 11901#define CRAY_STACKSEG_END $ac_func
3ed8e5b6 11902_ACEOF
63e5e3e0 11903
3ed8e5b6 11904 break
63e5e3e0
AG
11905fi
11906
3ed8e5b6 11907 done
63e5e3e0
AG
11908fi
11909
3ed8e5b6
AT
11910echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11911echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11912if test "${ac_cv_c_stack_direction+set}" = set; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0
AG
11914else
11915 if test "$cross_compiling" = yes; then
11916 ac_cv_c_stack_direction=0
11917else
3ed8e5b6
AT
11918 cat >conftest.$ac_ext <<_ACEOF
11919/* confdefs.h. */
11920_ACEOF
11921cat confdefs.h >>conftest.$ac_ext
11922cat >>conftest.$ac_ext <<_ACEOF
11923/* end confdefs.h. */
11924int
63e5e3e0
AG
11925find_stack_direction ()
11926{
11927 static char *addr = 0;
11928 auto char dummy;
11929 if (addr == 0)
11930 {
11931 addr = &dummy;
11932 return find_stack_direction ();
11933 }
11934 else
11935 return (&dummy > addr) ? 1 : -1;
11936}
3ed8e5b6
AT
11937
11938int
63e5e3e0
AG
11939main ()
11940{
3ed8e5b6 11941 exit (find_stack_direction () < 0);
63e5e3e0 11942}
3ed8e5b6
AT
11943_ACEOF
11944rm -f conftest$ac_exeext
11945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11946 (eval $ac_link) 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
63e5e3e0
AG
11955 ac_cv_c_stack_direction=1
11956else
3ed8e5b6
AT
11957 echo "$as_me: program exited with status $ac_status" >&5
11958echo "$as_me: failed program was:" >&5
11959sed 's/^/| /' conftest.$ac_ext >&5
11960
11961( exit $ac_status )
11962ac_cv_c_stack_direction=-1
63e5e3e0 11963fi
3ed8e5b6 11964rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63e5e3e0 11965fi
63e5e3e0 11966fi
3ed8e5b6
AT
11967echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11968echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
63e5e3e0 11969
3ed8e5b6 11970cat >>confdefs.h <<_ACEOF
63e5e3e0 11971#define STACK_DIRECTION $ac_cv_c_stack_direction
3ed8e5b6
AT
11972_ACEOF
11973
63e5e3e0
AG
11974
11975fi
11976
11977
a097ef55
KC
11978echo "$as_me:$LINENO: checking for double" >&5
11979echo $ECHO_N "checking for double... $ECHO_C" >&6
11980if test "${ac_cv_type_double+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11982else
11983 cat >conftest.$ac_ext <<_ACEOF
11984/* confdefs.h. */
11985_ACEOF
11986cat confdefs.h >>conftest.$ac_ext
11987cat >>conftest.$ac_ext <<_ACEOF
11988/* end confdefs.h. */
11989$ac_includes_default
11990int
11991main ()
11992{
11993if ((double *) 0)
11994 return 0;
11995if (sizeof (double))
11996 return 0;
11997 ;
11998 return 0;
11999}
12000_ACEOF
12001rm -f conftest.$ac_objext
12002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12003 (eval $ac_compile) 2>conftest.er1
12004 ac_status=$?
12005 grep -v '^ *+' conftest.er1 >conftest.err
12006 rm -f conftest.er1
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } &&
12010 { ac_try='test -z "$ac_c_werror_flag"
12011 || test ! -s conftest.err'
12012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013 (eval $ac_try) 2>&5
12014 ac_status=$?
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; } &&
12017 { ac_try='test -s conftest.$ac_objext'
12018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019 (eval $ac_try) 2>&5
12020 ac_status=$?
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; }; then
12023 ac_cv_type_double=yes
12024else
12025 echo "$as_me: failed program was:" >&5
12026sed 's/^/| /' conftest.$ac_ext >&5
12027
12028ac_cv_type_double=no
12029fi
12030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12031fi
12032echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
12033echo "${ECHO_T}$ac_cv_type_double" >&6
12034
3ed8e5b6
AT
12035echo "$as_me:$LINENO: checking size of double" >&5
12036echo $ECHO_N "checking size of double... $ECHO_C" >&6
12037if test "${ac_cv_sizeof_double+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 12039else
a097ef55
KC
12040 if test "$ac_cv_type_double" = yes; then
12041 # The cast to unsigned long works around a bug in the HP C Compiler
12042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12044 # This bug is HP SR number 8606223364.
12045 if test "$cross_compiling" = yes; then
12046 # Depending upon the size, compute the lo and hi bounds.
12047cat >conftest.$ac_ext <<_ACEOF
12048/* confdefs.h. */
12049_ACEOF
12050cat confdefs.h >>conftest.$ac_ext
12051cat >>conftest.$ac_ext <<_ACEOF
12052/* end confdefs.h. */
12053$ac_includes_default
12054int
12055main ()
12056{
12057static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
12058test_array [0] = 0
12059
12060 ;
12061 return 0;
12062}
12063_ACEOF
12064rm -f conftest.$ac_objext
12065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12066 (eval $ac_compile) 2>conftest.er1
12067 ac_status=$?
12068 grep -v '^ *+' conftest.er1 >conftest.err
12069 rm -f conftest.er1
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } &&
12073 { ac_try='test -z "$ac_c_werror_flag"
12074 || test ! -s conftest.err'
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12077 ac_status=$?
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; } &&
12080 { ac_try='test -s conftest.$ac_objext'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086 ac_lo=0 ac_mid=0
12087 while :; do
12088 cat >conftest.$ac_ext <<_ACEOF
12089/* confdefs.h. */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h. */
12094$ac_includes_default
12095int
12096main ()
12097{
12098static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
12099test_array [0] = 0
12100
12101 ;
12102 return 0;
12103}
12104_ACEOF
12105rm -f conftest.$ac_objext
12106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12107 (eval $ac_compile) 2>conftest.er1
12108 ac_status=$?
12109 grep -v '^ *+' conftest.er1 >conftest.err
12110 rm -f conftest.er1
12111 cat conftest.err >&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } &&
12114 { ac_try='test -z "$ac_c_werror_flag"
12115 || test ! -s conftest.err'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; } &&
12121 { ac_try='test -s conftest.$ac_objext'
12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; }; then
12127 ac_hi=$ac_mid; break
12128else
12129 echo "$as_me: failed program was:" >&5
12130sed 's/^/| /' conftest.$ac_ext >&5
12131
12132ac_lo=`expr $ac_mid + 1`
12133 if test $ac_lo -le $ac_mid; then
12134 ac_lo= ac_hi=
12135 break
12136 fi
12137 ac_mid=`expr 2 '*' $ac_mid + 1`
12138fi
12139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12140 done
12141else
12142 echo "$as_me: failed program was:" >&5
12143sed 's/^/| /' conftest.$ac_ext >&5
12144
12145cat >conftest.$ac_ext <<_ACEOF
12146/* confdefs.h. */
12147_ACEOF
12148cat confdefs.h >>conftest.$ac_ext
12149cat >>conftest.$ac_ext <<_ACEOF
12150/* end confdefs.h. */
12151$ac_includes_default
12152int
12153main ()
12154{
12155static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
12156test_array [0] = 0
12157
12158 ;
12159 return 0;
12160}
12161_ACEOF
12162rm -f conftest.$ac_objext
12163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12164 (eval $ac_compile) 2>conftest.er1
12165 ac_status=$?
12166 grep -v '^ *+' conftest.er1 >conftest.err
12167 rm -f conftest.er1
12168 cat conftest.err >&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } &&
12171 { ac_try='test -z "$ac_c_werror_flag"
12172 || test ! -s conftest.err'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest.$ac_objext'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 ac_hi=-1 ac_mid=-1
12185 while :; do
12186 cat >conftest.$ac_ext <<_ACEOF
12187/* confdefs.h. */
12188_ACEOF
12189cat confdefs.h >>conftest.$ac_ext
12190cat >>conftest.$ac_ext <<_ACEOF
12191/* end confdefs.h. */
12192$ac_includes_default
12193int
12194main ()
12195{
12196static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
12197test_array [0] = 0
12198
12199 ;
12200 return 0;
12201}
12202_ACEOF
12203rm -f conftest.$ac_objext
12204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12205 (eval $ac_compile) 2>conftest.er1
12206 ac_status=$?
12207 grep -v '^ *+' conftest.er1 >conftest.err
12208 rm -f conftest.er1
12209 cat conftest.err >&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } &&
12212 { ac_try='test -z "$ac_c_werror_flag"
12213 || test ! -s conftest.err'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try='test -s conftest.$ac_objext'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 ac_lo=$ac_mid; break
12226else
12227 echo "$as_me: failed program was:" >&5
12228sed 's/^/| /' conftest.$ac_ext >&5
12229
12230ac_hi=`expr '(' $ac_mid ')' - 1`
12231 if test $ac_mid -le $ac_hi; then
12232 ac_lo= ac_hi=
12233 break
12234 fi
12235 ac_mid=`expr 2 '*' $ac_mid`
12236fi
12237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12238 done
12239else
12240 echo "$as_me: failed program was:" >&5
12241sed 's/^/| /' conftest.$ac_ext >&5
12242
12243ac_lo= ac_hi=
12244fi
12245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12246fi
12247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12248# Binary search between lo and hi bounds.
12249while test "x$ac_lo" != "x$ac_hi"; do
12250 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12251 cat >conftest.$ac_ext <<_ACEOF
12252/* confdefs.h. */
12253_ACEOF
12254cat confdefs.h >>conftest.$ac_ext
12255cat >>conftest.$ac_ext <<_ACEOF
12256/* end confdefs.h. */
12257$ac_includes_default
12258int
12259main ()
12260{
12261static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
12262test_array [0] = 0
12263
12264 ;
12265 return 0;
12266}
12267_ACEOF
12268rm -f conftest.$ac_objext
12269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12270 (eval $ac_compile) 2>conftest.er1
12271 ac_status=$?
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } &&
12277 { ac_try='test -z "$ac_c_werror_flag"
12278 || test ! -s conftest.err'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; } &&
12284 { ac_try='test -s conftest.$ac_objext'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; }; then
12290 ac_hi=$ac_mid
12291else
12292 echo "$as_me: failed program was:" >&5
12293sed 's/^/| /' conftest.$ac_ext >&5
12294
12295ac_lo=`expr '(' $ac_mid ')' + 1`
12296fi
12297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12298done
12299case $ac_lo in
12300?*) ac_cv_sizeof_double=$ac_lo;;
18c04407
RW
12301'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12302echo "$as_me: error: in \`$ac_pwd':" >&2;}
12303{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
a097ef55
KC
12304See \`config.log' for more details." >&5
12305echo "$as_me: error: cannot compute sizeof (double), 77
12306See \`config.log' for more details." >&2;}
18c04407 12307 { (exit 1); exit 1; }; }; } ;;
a097ef55
KC
12308esac
12309else
12310 if test "$cross_compiling" = yes; then
18c04407
RW
12311 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12312echo "$as_me: error: in \`$ac_pwd':" >&2;}
12313{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
a097ef55
KC
12314See \`config.log' for more details." >&5
12315echo "$as_me: error: cannot run test program while cross compiling
12316See \`config.log' for more details." >&2;}
18c04407 12317 { (exit 1); exit 1; }; }; }
a097ef55
KC
12318else
12319 cat >conftest.$ac_ext <<_ACEOF
12320/* confdefs.h. */
12321_ACEOF
12322cat confdefs.h >>conftest.$ac_ext
12323cat >>conftest.$ac_ext <<_ACEOF
12324/* end confdefs.h. */
12325$ac_includes_default
12326long longval () { return (long) (sizeof (double)); }
12327unsigned long ulongval () { return (long) (sizeof (double)); }
12328#include <stdio.h>
12329#include <stdlib.h>
12330int
12331main ()
12332{
12333
12334 FILE *f = fopen ("conftest.val", "w");
12335 if (! f)
12336 exit (1);
12337 if (((long) (sizeof (double))) < 0)
12338 {
12339 long i = longval ();
12340 if (i != ((long) (sizeof (double))))
12341 exit (1);
12342 fprintf (f, "%ld\n", i);
12343 }
12344 else
12345 {
12346 unsigned long i = ulongval ();
12347 if (i != ((long) (sizeof (double))))
12348 exit (1);
12349 fprintf (f, "%lu\n", i);
12350 }
12351 exit (ferror (f) || fclose (f) != 0);
12352
12353 ;
12354 return 0;
12355}
12356_ACEOF
12357rm -f conftest$ac_exeext
12358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12359 (eval $ac_link) 2>&5
12360 ac_status=$?
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; }; then
12368 ac_cv_sizeof_double=`cat conftest.val`
12369else
12370 echo "$as_me: program exited with status $ac_status" >&5
12371echo "$as_me: failed program was:" >&5
12372sed 's/^/| /' conftest.$ac_ext >&5
12373
12374( exit $ac_status )
18c04407
RW
12375{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12376echo "$as_me: error: in \`$ac_pwd':" >&2;}
a097ef55
KC
12377{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
12378See \`config.log' for more details." >&5
12379echo "$as_me: error: cannot compute sizeof (double), 77
12380See \`config.log' for more details." >&2;}
18c04407 12381 { (exit 1); exit 1; }; }; }
a097ef55
KC
12382fi
12383rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12384fi
12385fi
12386rm -f conftest.val
12387else
12388 ac_cv_sizeof_double=0
12389fi
12390fi
12391echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
12392echo "${ECHO_T}$ac_cv_sizeof_double" >&6
12393cat >>confdefs.h <<_ACEOF
12394#define SIZEOF_DOUBLE $ac_cv_sizeof_double
12395_ACEOF
12396
12397
12398echo "$as_me:$LINENO: checking for long double" >&5
12399echo $ECHO_N "checking for long double... $ECHO_C" >&6
12400if test "${ac_cv_type_long_double+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402else
12403 cat >conftest.$ac_ext <<_ACEOF
12404/* confdefs.h. */
12405_ACEOF
12406cat confdefs.h >>conftest.$ac_ext
12407cat >>conftest.$ac_ext <<_ACEOF
12408/* end confdefs.h. */
12409$ac_includes_default
12410int
12411main ()
12412{
12413if ((long double *) 0)
12414 return 0;
12415if (sizeof (long double))
12416 return 0;
12417 ;
12418 return 0;
12419}
12420_ACEOF
12421rm -f conftest.$ac_objext
12422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12423 (eval $ac_compile) 2>conftest.er1
12424 ac_status=$?
12425 grep -v '^ *+' conftest.er1 >conftest.err
12426 rm -f conftest.er1
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
12430 { ac_try='test -z "$ac_c_werror_flag"
12431 || test ! -s conftest.err'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; } &&
12437 { ac_try='test -s conftest.$ac_objext'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; }; then
12443 ac_cv_type_long_double=yes
12444else
12445 echo "$as_me: failed program was:" >&5
12446sed 's/^/| /' conftest.$ac_ext >&5
12447
12448ac_cv_type_long_double=no
12449fi
12450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12451fi
12452echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
12453echo "${ECHO_T}$ac_cv_type_long_double" >&6
12454
12455echo "$as_me:$LINENO: checking size of long double" >&5
12456echo $ECHO_N "checking size of long double... $ECHO_C" >&6
12457if test "${ac_cv_sizeof_long_double+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12459else
12460 if test "$ac_cv_type_long_double" = yes; then
12461 # The cast to unsigned long works around a bug in the HP C Compiler
12462 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12463 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12464 # This bug is HP SR number 8606223364.
12465 if test "$cross_compiling" = yes; then
12466 # Depending upon the size, compute the lo and hi bounds.
12467cat >conftest.$ac_ext <<_ACEOF
12468/* confdefs.h. */
12469_ACEOF
12470cat confdefs.h >>conftest.$ac_ext
12471cat >>conftest.$ac_ext <<_ACEOF
12472/* end confdefs.h. */
12473$ac_includes_default
12474int
12475main ()
12476{
12477static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
12478test_array [0] = 0
12479
12480 ;
12481 return 0;
12482}
12483_ACEOF
12484rm -f conftest.$ac_objext
12485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12486 (eval $ac_compile) 2>conftest.er1
12487 ac_status=$?
12488 grep -v '^ *+' conftest.er1 >conftest.err
12489 rm -f conftest.er1
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } &&
12493 { ac_try='test -z "$ac_c_werror_flag"
12494 || test ! -s conftest.err'
12495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496 (eval $ac_try) 2>&5
12497 ac_status=$?
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; } &&
12500 { ac_try='test -s conftest.$ac_objext'
12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502 (eval $ac_try) 2>&5
12503 ac_status=$?
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; }; then
12506 ac_lo=0 ac_mid=0
12507 while :; do
12508 cat >conftest.$ac_ext <<_ACEOF
12509/* confdefs.h. */
12510_ACEOF
12511cat confdefs.h >>conftest.$ac_ext
12512cat >>conftest.$ac_ext <<_ACEOF
12513/* end confdefs.h. */
12514$ac_includes_default
12515int
12516main ()
12517{
12518static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
12519test_array [0] = 0
12520
12521 ;
12522 return 0;
12523}
12524_ACEOF
12525rm -f conftest.$ac_objext
12526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12527 (eval $ac_compile) 2>conftest.er1
12528 ac_status=$?
12529 grep -v '^ *+' conftest.er1 >conftest.err
12530 rm -f conftest.er1
12531 cat conftest.err >&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } &&
12534 { ac_try='test -z "$ac_c_werror_flag"
12535 || test ! -s conftest.err'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; } &&
12541 { ac_try='test -s conftest.$ac_objext'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 ac_hi=$ac_mid; break
12548else
12549 echo "$as_me: failed program was:" >&5
12550sed 's/^/| /' conftest.$ac_ext >&5
12551
12552ac_lo=`expr $ac_mid + 1`
12553 if test $ac_lo -le $ac_mid; then
12554 ac_lo= ac_hi=
12555 break
12556 fi
12557 ac_mid=`expr 2 '*' $ac_mid + 1`
12558fi
12559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12560 done
12561else
12562 echo "$as_me: failed program was:" >&5
12563sed 's/^/| /' conftest.$ac_ext >&5
12564
12565cat >conftest.$ac_ext <<_ACEOF
3ed8e5b6
AT
12566/* confdefs.h. */
12567_ACEOF
12568cat confdefs.h >>conftest.$ac_ext
12569cat >>conftest.$ac_ext <<_ACEOF
12570/* end confdefs.h. */
a097ef55
KC
12571$ac_includes_default
12572int
12573main ()
12574{
12575static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
12576test_array [0] = 0
e2f2e70a 12577
a097ef55
KC
12578 ;
12579 return 0;
12580}
12581_ACEOF
12582rm -f conftest.$ac_objext
12583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12584 (eval $ac_compile) 2>conftest.er1
12585 ac_status=$?
12586 grep -v '^ *+' conftest.er1 >conftest.err
12587 rm -f conftest.er1
12588 cat conftest.err >&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } &&
12591 { ac_try='test -z "$ac_c_werror_flag"
12592 || test ! -s conftest.err'
12593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594 (eval $ac_try) 2>&5
12595 ac_status=$?
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; } &&
12598 { ac_try='test -s conftest.$ac_objext'
12599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600 (eval $ac_try) 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; }; then
12604 ac_hi=-1 ac_mid=-1
12605 while :; do
12606 cat >conftest.$ac_ext <<_ACEOF
12607/* confdefs.h. */
12608_ACEOF
12609cat confdefs.h >>conftest.$ac_ext
12610cat >>conftest.$ac_ext <<_ACEOF
12611/* end confdefs.h. */
12612$ac_includes_default
3ed8e5b6
AT
12613int
12614main ()
12615{
a097ef55
KC
12616static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
12617test_array [0] = 0
12618
3ed8e5b6
AT
12619 ;
12620 return 0;
12621}
12622_ACEOF
12623rm -f conftest.$ac_objext
12624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12625 (eval $ac_compile) 2>conftest.er1
12626 ac_status=$?
12627 grep -v '^ *+' conftest.er1 >conftest.err
12628 rm -f conftest.er1
12629 cat conftest.err >&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } &&
88d8c771
AG
12632 { ac_try='test -z "$ac_c_werror_flag"
12633 || test ! -s conftest.err'
3ed8e5b6
AT
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12636 ac_status=$?
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; } &&
12639 { ac_try='test -s conftest.$ac_objext'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
a097ef55 12645 ac_lo=$ac_mid; break
63e5e3e0 12646else
3ed8e5b6
AT
12647 echo "$as_me: failed program was:" >&5
12648sed 's/^/| /' conftest.$ac_ext >&5
12649
a097ef55
KC
12650ac_hi=`expr '(' $ac_mid ')' - 1`
12651 if test $ac_mid -le $ac_hi; then
12652 ac_lo= ac_hi=
12653 break
12654 fi
12655 ac_mid=`expr 2 '*' $ac_mid`
63e5e3e0 12656fi
3ed8e5b6 12657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a097ef55
KC
12658 done
12659else
12660 echo "$as_me: failed program was:" >&5
12661sed 's/^/| /' conftest.$ac_ext >&5
e2f2e70a 12662
a097ef55 12663ac_lo= ac_hi=
63e5e3e0 12664fi
a097ef55 12665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0 12666fi
a097ef55
KC
12667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12668# Binary search between lo and hi bounds.
12669while test "x$ac_lo" != "x$ac_hi"; do
12670 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3ed8e5b6
AT
12671 cat >conftest.$ac_ext <<_ACEOF
12672/* confdefs.h. */
12673_ACEOF
12674cat confdefs.h >>conftest.$ac_ext
12675cat >>conftest.$ac_ext <<_ACEOF
12676/* end confdefs.h. */
a097ef55 12677$ac_includes_default
3ed8e5b6
AT
12678int
12679main ()
12680{
a097ef55
KC
12681static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
12682test_array [0] = 0
12683
3ed8e5b6
AT
12684 ;
12685 return 0;
12686}
12687_ACEOF
12688rm -f conftest.$ac_objext
12689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12690 (eval $ac_compile) 2>conftest.er1
12691 ac_status=$?
12692 grep -v '^ *+' conftest.er1 >conftest.err
12693 rm -f conftest.er1
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
88d8c771
AG
12697 { ac_try='test -z "$ac_c_werror_flag"
12698 || test ! -s conftest.err'
3ed8e5b6
AT
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest.$ac_objext'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
a097ef55 12710 ac_hi=$ac_mid
63e5e3e0 12711else
3ed8e5b6
AT
12712 echo "$as_me: failed program was:" >&5
12713sed 's/^/| /' conftest.$ac_ext >&5
12714
a097ef55 12715ac_lo=`expr '(' $ac_mid ')' + 1`
63e5e3e0 12716fi
3ed8e5b6 12717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e2f2e70a 12718done
a097ef55
KC
12719case $ac_lo in
12720?*) ac_cv_sizeof_long_double=$ac_lo;;
18c04407
RW
12721'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12722echo "$as_me: error: in \`$ac_pwd':" >&2;}
12723{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
a097ef55
KC
12724See \`config.log' for more details." >&5
12725echo "$as_me: error: cannot compute sizeof (long double), 77
12726See \`config.log' for more details." >&2;}
18c04407 12727 { (exit 1); exit 1; }; }; } ;;
a097ef55
KC
12728esac
12729else
12730 if test "$cross_compiling" = yes; then
18c04407
RW
12731 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12732echo "$as_me: error: in \`$ac_pwd':" >&2;}
12733{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
a097ef55
KC
12734See \`config.log' for more details." >&5
12735echo "$as_me: error: cannot run test program while cross compiling
12736See \`config.log' for more details." >&2;}
18c04407 12737 { (exit 1); exit 1; }; }; }
a097ef55
KC
12738else
12739 cat >conftest.$ac_ext <<_ACEOF
12740/* confdefs.h. */
12741_ACEOF
12742cat confdefs.h >>conftest.$ac_ext
12743cat >>conftest.$ac_ext <<_ACEOF
12744/* end confdefs.h. */
12745$ac_includes_default
12746long longval () { return (long) (sizeof (long double)); }
12747unsigned long ulongval () { return (long) (sizeof (long double)); }
12748#include <stdio.h>
12749#include <stdlib.h>
12750int
12751main ()
12752{
e2f2e70a 12753
a097ef55
KC
12754 FILE *f = fopen ("conftest.val", "w");
12755 if (! f)
12756 exit (1);
12757 if (((long) (sizeof (long double))) < 0)
12758 {
12759 long i = longval ();
12760 if (i != ((long) (sizeof (long double))))
12761 exit (1);
12762 fprintf (f, "%ld\n", i);
12763 }
12764 else
12765 {
12766 unsigned long i = ulongval ();
12767 if (i != ((long) (sizeof (long double))))
12768 exit (1);
12769 fprintf (f, "%lu\n", i);
12770 }
12771 exit (ferror (f) || fclose (f) != 0);
12772
12773 ;
12774 return 0;
12775}
12776_ACEOF
12777rm -f conftest$ac_exeext
12778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12779 (eval $ac_link) 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784 (eval $ac_try) 2>&5
12785 ac_status=$?
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; }; then
12788 ac_cv_sizeof_long_double=`cat conftest.val`
12789else
12790 echo "$as_me: program exited with status $ac_status" >&5
12791echo "$as_me: failed program was:" >&5
12792sed 's/^/| /' conftest.$ac_ext >&5
63e5e3e0 12793
a097ef55 12794( exit $ac_status )
18c04407
RW
12795{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12796echo "$as_me: error: in \`$ac_pwd':" >&2;}
a097ef55
KC
12797{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
12798See \`config.log' for more details." >&5
12799echo "$as_me: error: cannot compute sizeof (long double), 77
12800See \`config.log' for more details." >&2;}
18c04407 12801 { (exit 1); exit 1; }; }; }
63e5e3e0 12802fi
a097ef55
KC
12803rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12804fi
12805fi
12806rm -f conftest.val
12807else
12808 ac_cv_sizeof_long_double=0
12809fi
12810fi
3ed8e5b6
AT
12811echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12812echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
3ed8e5b6 12813cat >>confdefs.h <<_ACEOF
63e5e3e0 12814#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3ed8e5b6 12815_ACEOF
63e5e3e0
AG
12816
12817
12818
1450eb7a 12819# Also AC_SUBST this variable for ffi.h.
bf8da5fc
RH
12820if test -z "$HAVE_LONG_DOUBLE"; then
12821 HAVE_LONG_DOUBLE=0
12822 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12823 if test $ac_cv_sizeof_long_double != 0; then
12824 HAVE_LONG_DOUBLE=1
3ed8e5b6
AT
12825
12826cat >>confdefs.h <<\_ACEOF
1450eb7a 12827#define HAVE_LONG_DOUBLE 1
3ed8e5b6 12828_ACEOF
63e5e3e0 12829
bf8da5fc 12830 fi
1450eb7a 12831 fi
63e5e3e0 12832fi
63e5e3e0
AG
12833
12834
3ed8e5b6
AT
12835echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12836echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12837if test "${ac_cv_c_bigendian+set}" = set; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 12839else
a097ef55 12840 # See if sys/param.h defines the BYTE_ORDER macro.
3ed8e5b6
AT
12841cat >conftest.$ac_ext <<_ACEOF
12842/* confdefs.h. */
12843_ACEOF
12844cat confdefs.h >>conftest.$ac_ext
12845cat >>conftest.$ac_ext <<_ACEOF
12846/* end confdefs.h. */
63e5e3e0
AG
12847#include <sys/types.h>
12848#include <sys/param.h>
a097ef55 12849
3ed8e5b6
AT
12850int
12851main ()
12852{
63e5e3e0
AG
12853#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12854 bogus endian macros
12855#endif
a097ef55 12856
3ed8e5b6
AT
12857 ;
12858 return 0;
12859}
12860_ACEOF
12861rm -f conftest.$ac_objext
12862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12863 (eval $ac_compile) 2>conftest.er1
12864 ac_status=$?
12865 grep -v '^ *+' conftest.er1 >conftest.err
12866 rm -f conftest.er1
12867 cat conftest.err >&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } &&
88d8c771
AG
12870 { ac_try='test -z "$ac_c_werror_flag"
12871 || test ! -s conftest.err'
3ed8e5b6
AT
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; } &&
12877 { ac_try='test -s conftest.$ac_objext'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
63e5e3e0 12883 # It does; now see whether it defined to BIG_ENDIAN or not.
3ed8e5b6
AT
12884cat >conftest.$ac_ext <<_ACEOF
12885/* confdefs.h. */
12886_ACEOF
12887cat confdefs.h >>conftest.$ac_ext
12888cat >>conftest.$ac_ext <<_ACEOF
12889/* end confdefs.h. */
63e5e3e0
AG
12890#include <sys/types.h>
12891#include <sys/param.h>
a097ef55 12892
3ed8e5b6
AT
12893int
12894main ()
12895{
63e5e3e0
AG
12896#if BYTE_ORDER != BIG_ENDIAN
12897 not big endian
12898#endif
a097ef55 12899
3ed8e5b6
AT
12900 ;
12901 return 0;
12902}
12903_ACEOF
12904rm -f conftest.$ac_objext
12905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906 (eval $ac_compile) 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
88d8c771
AG
12913 { ac_try='test -z "$ac_c_werror_flag"
12914 || test ! -s conftest.err'
3ed8e5b6
AT
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; } &&
12920 { ac_try='test -s conftest.$ac_objext'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12923 ac_status=$?
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; }; then
63e5e3e0
AG
12926 ac_cv_c_bigendian=yes
12927else
3ed8e5b6
AT
12928 echo "$as_me: failed program was:" >&5
12929sed 's/^/| /' conftest.$ac_ext >&5
12930
12931ac_cv_c_bigendian=no
63e5e3e0 12932fi
3ed8e5b6 12933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0 12934else
3ed8e5b6
AT
12935 echo "$as_me: failed program was:" >&5
12936sed 's/^/| /' conftest.$ac_ext >&5
12937
a097ef55
KC
12938# It does not; compile a test program.
12939if test "$cross_compiling" = yes; then
12940 # try to guess the endianness by grepping values into an object file
12941 ac_cv_c_bigendian=unknown
12942 cat >conftest.$ac_ext <<_ACEOF
12943/* confdefs.h. */
12944_ACEOF
12945cat confdefs.h >>conftest.$ac_ext
12946cat >>conftest.$ac_ext <<_ACEOF
12947/* end confdefs.h. */
12948short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12949short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12950void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12951short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12952short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12953void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12954int
12955main ()
12956{
12957 _ascii (); _ebcdic ();
12958 ;
12959 return 0;
12960}
12961_ACEOF
12962rm -f conftest.$ac_objext
12963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12964 (eval $ac_compile) 2>conftest.er1
12965 ac_status=$?
12966 grep -v '^ *+' conftest.er1 >conftest.err
12967 rm -f conftest.er1
12968 cat conftest.err >&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } &&
12971 { ac_try='test -z "$ac_c_werror_flag"
12972 || test ! -s conftest.err'
12973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974 (eval $ac_try) 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; } &&
12978 { ac_try='test -s conftest.$ac_objext'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; }; then
12984 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12985 ac_cv_c_bigendian=yes
12986fi
12987if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12988 if test "$ac_cv_c_bigendian" = unknown; then
12989 ac_cv_c_bigendian=no
12990 else
12991 # finding both strings is unlikely to happen, but who knows?
12992 ac_cv_c_bigendian=unknown
12993 fi
12994fi
12995else
12996 echo "$as_me: failed program was:" >&5
12997sed 's/^/| /' conftest.$ac_ext >&5
12998
63e5e3e0 12999fi
3ed8e5b6 13000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6
AT
13001else
13002 cat >conftest.$ac_ext <<_ACEOF
13003/* confdefs.h. */
13004_ACEOF
13005cat confdefs.h >>conftest.$ac_ext
13006cat >>conftest.$ac_ext <<_ACEOF
13007/* end confdefs.h. */
a097ef55
KC
13008int
13009main ()
13010{
63e5e3e0
AG
13011 /* Are we little or big endian? From Harbison&Steele. */
13012 union
13013 {
13014 long l;
13015 char c[sizeof (long)];
13016 } u;
13017 u.l = 1;
13018 exit (u.c[sizeof (long) - 1] == 1);
13019}
3ed8e5b6
AT
13020_ACEOF
13021rm -f conftest$ac_exeext
13022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13023 (eval $ac_link) 2>&5
13024 ac_status=$?
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; }; then
63e5e3e0
AG
13032 ac_cv_c_bigendian=no
13033else
3ed8e5b6
AT
13034 echo "$as_me: program exited with status $ac_status" >&5
13035echo "$as_me: failed program was:" >&5
13036sed 's/^/| /' conftest.$ac_ext >&5
13037
13038( exit $ac_status )
13039ac_cv_c_bigendian=yes
63e5e3e0 13040fi
3ed8e5b6 13041rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63e5e3e0 13042fi
63e5e3e0 13043fi
a097ef55 13044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0 13045fi
3ed8e5b6
AT
13046echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13047echo "${ECHO_T}$ac_cv_c_bigendian" >&6
a097ef55
KC
13048case $ac_cv_c_bigendian in
13049 yes)
3ed8e5b6
AT
13050
13051cat >>confdefs.h <<\_ACEOF
63e5e3e0 13052#define WORDS_BIGENDIAN 1
3ed8e5b6 13053_ACEOF
a097ef55
KC
13054 ;;
13055 no)
13056 ;;
13057 *)
13058 { { echo "$as_me:$LINENO: error: unknown endianness
13059presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13060echo "$as_me: error: unknown endianness
13061presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13062 { (exit 1); exit 1; }; } ;;
13063esac
63e5e3e0
AG
13064
13065
e6fbf387
RZ
13066echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
13067echo $ECHO_N "checking assembler .cfi pseudo-op support... $ECHO_C" >&6
13068if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13070else
13071
13072 libffi_cv_as_cfi_pseudo_op=unknown
13073 cat >conftest.$ac_ext <<_ACEOF
13074/* confdefs.h. */
13075_ACEOF
13076cat confdefs.h >>conftest.$ac_ext
13077cat >>conftest.$ac_ext <<_ACEOF
13078/* end confdefs.h. */
13079asm (".cfi_startproc\n\t.cfi_endproc");
13080int
13081main ()
13082{
13083
13084 ;
13085 return 0;
13086}
13087_ACEOF
13088rm -f conftest.$ac_objext
13089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13090 (eval $ac_compile) 2>conftest.er1
13091 ac_status=$?
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } &&
13097 { ac_try='test -z "$ac_c_werror_flag"
13098 || test ! -s conftest.err'
13099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; } &&
13104 { ac_try='test -s conftest.$ac_objext'
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13107 ac_status=$?
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }; then
13110 libffi_cv_as_cfi_pseudo_op=yes
13111else
13112 echo "$as_me: failed program was:" >&5
13113sed 's/^/| /' conftest.$ac_ext >&5
13114
13115libffi_cv_as_cfi_pseudo_op=no
13116fi
13117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13118
13119fi
13120echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
13121echo "${ECHO_T}$libffi_cv_as_cfi_pseudo_op" >&6
13122if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
13123
13124cat >>confdefs.h <<\_ACEOF
13125#define HAVE_AS_CFI_PSEUDO_OP 1
13126_ACEOF
13127
13128fi
13129
189ab118 13130if test x$TARGET = xSPARC; then
3ed8e5b6
AT
13131 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
13132echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
13133if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
5d84cf0b 13135else
3ed8e5b6 13136
5d84cf0b
JJ
13137 save_CFLAGS="$CFLAGS"
13138 save_LDFLAGS="$LDFLAGS"
13139 CFLAGS="$CFLAGS -fpic"
13140 LDFLAGS="$LDFLAGS -shared"
3ed8e5b6
AT
13141 cat >conftest.$ac_ext <<_ACEOF
13142/* confdefs.h. */
13143_ACEOF
13144cat confdefs.h >>conftest.$ac_ext
13145cat >>conftest.$ac_ext <<_ACEOF
13146/* end confdefs.h. */
5d84cf0b 13147asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
3ed8e5b6
AT
13148int
13149main ()
13150{
5d84cf0b 13151
3ed8e5b6
AT
13152 ;
13153 return 0;
13154}
13155_ACEOF
13156rm -f conftest.$ac_objext conftest$ac_exeext
13157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13158 (eval $ac_link) 2>conftest.er1
13159 ac_status=$?
13160 grep -v '^ *+' conftest.er1 >conftest.err
13161 rm -f conftest.er1
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } &&
88d8c771
AG
13165 { ac_try='test -z "$ac_c_werror_flag"
13166 || test ! -s conftest.err'
3ed8e5b6
AT
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13169 ac_status=$?
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; } &&
13172 { ac_try='test -s conftest$ac_exeext'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; }; then
5d84cf0b
JJ
13178 libffi_cv_as_sparc_ua_pcrel=yes
13179else
3ed8e5b6
AT
13180 echo "$as_me: failed program was:" >&5
13181sed 's/^/| /' conftest.$ac_ext >&5
13182
13183libffi_cv_as_sparc_ua_pcrel=no
5d84cf0b 13184fi
3ed8e5b6
AT
13185rm -f conftest.err conftest.$ac_objext \
13186 conftest$ac_exeext conftest.$ac_ext
5d84cf0b
JJ
13187 CFLAGS="$save_CFLAGS"
13188 LDFLAGS="$save_LDFLAGS"
13189fi
3ed8e5b6
AT
13190echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
13191echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
5d84cf0b 13192 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
3ed8e5b6
AT
13193
13194cat >>confdefs.h <<\_ACEOF
5d84cf0b 13195#define HAVE_AS_SPARC_UA_PCREL 1
3ed8e5b6 13196_ACEOF
bd19c9f4
JS
13197
13198 fi
13199
3ed8e5b6
AT
13200 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
13201echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
13202if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
13203 echo $ECHO_N "(cached) $ECHO_C" >&6
bd19c9f4 13204else
3ed8e5b6 13205
bd19c9f4
JS
13206 libffi_cv_as_register_pseudo_op=unknown
13207 # Check if we have .register
3ed8e5b6
AT
13208 cat >conftest.$ac_ext <<_ACEOF
13209/* confdefs.h. */
13210_ACEOF
13211cat confdefs.h >>conftest.$ac_ext
13212cat >>conftest.$ac_ext <<_ACEOF
13213/* end confdefs.h. */
bd19c9f4 13214asm (".register %g2, #scratch");
3ed8e5b6
AT
13215int
13216main ()
13217{
bd19c9f4 13218
3ed8e5b6
AT
13219 ;
13220 return 0;
13221}
13222_ACEOF
13223rm -f conftest.$ac_objext
13224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13225 (eval $ac_compile) 2>conftest.er1
13226 ac_status=$?
13227 grep -v '^ *+' conftest.er1 >conftest.err
13228 rm -f conftest.er1
13229 cat conftest.err >&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } &&
88d8c771
AG
13232 { ac_try='test -z "$ac_c_werror_flag"
13233 || test ! -s conftest.err'
3ed8e5b6
AT
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; } &&
13239 { ac_try='test -s conftest.$ac_objext'
13240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13242 ac_status=$?
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; }; then
bd19c9f4
JS
13245 libffi_cv_as_register_pseudo_op=yes
13246else
3ed8e5b6
AT
13247 echo "$as_me: failed program was:" >&5
13248sed 's/^/| /' conftest.$ac_ext >&5
13249
13250libffi_cv_as_register_pseudo_op=no
bd19c9f4 13251fi
3ed8e5b6 13252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bd19c9f4 13253
3ed8e5b6
AT
13254fi
13255echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
13256echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
bd19c9f4 13257 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
3ed8e5b6
AT
13258
13259cat >>confdefs.h <<\_ACEOF
bd19c9f4 13260#define HAVE_AS_REGISTER_PSEUDO_OP 1
3ed8e5b6 13261_ACEOF
5d84cf0b
JJ
13262
13263 fi
13264fi
13265
4d3d4078
RO
13266if test x$TARGET = xX86 || test x$TARGET = xX86_64; then
13267 echo "$as_me:$LINENO: checking assembler supports pc related relocs" >&5
13268echo $ECHO_N "checking assembler supports pc related relocs... $ECHO_C" >&6
13269if test "${libffi_cv_as_x86_pcrel+set}" = set; then
13270 echo $ECHO_N "(cached) $ECHO_C" >&6
13271else
13272
13273 libffi_cv_as_x86_pcrel=yes
13274 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
13275 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
13276 libffi_cv_as_x86_pcrel=no
13277 fi
13278
13279fi
13280echo "$as_me:$LINENO: result: $libffi_cv_as_x86_pcrel" >&5
13281echo "${ECHO_T}$libffi_cv_as_x86_pcrel" >&6
13282 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
13283
13284cat >>confdefs.h <<\_ACEOF
13285#define HAVE_AS_X86_PCREL 1
13286_ACEOF
13287
13288 fi
13289fi
13290
3ed8e5b6
AT
13291echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
13292echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
13293if test "${libffi_cv_ro_eh_frame+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
a733b15e 13295else
3ed8e5b6 13296
a733b15e
JJ
13297 libffi_cv_ro_eh_frame=no
13298 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
13299 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
13300 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
13301 libffi_cv_ro_eh_frame=yes
13302 elif grep '.section.*eh_frame.*#alloc' conftest.c \
13303 | grep -v '#write' > /dev/null; then
13304 libffi_cv_ro_eh_frame=yes
13305 fi
13306 fi
13307 rm -f conftest.*
a733b15e 13308
3ed8e5b6
AT
13309fi
13310echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
13311echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
a733b15e 13312if test "x$libffi_cv_ro_eh_frame" = xyes; then
3ed8e5b6
AT
13313
13314cat >>confdefs.h <<\_ACEOF
a733b15e 13315#define HAVE_RO_EH_FRAME 1
3ed8e5b6 13316_ACEOF
1450eb7a 13317
3ed8e5b6
AT
13318
13319cat >>confdefs.h <<\_ACEOF
1450eb7a 13320#define EH_FRAME_FLAGS "a"
3ed8e5b6 13321_ACEOF
1450eb7a
AT
13322
13323else
3ed8e5b6
AT
13324
13325cat >>confdefs.h <<\_ACEOF
1450eb7a 13326#define EH_FRAME_FLAGS "aw"
3ed8e5b6 13327_ACEOF
a733b15e
JJ
13328
13329fi
13330
8a42356f
JJ
13331echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
13332echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6
13333if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13335else
13336
13337 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
13338 libffi_cv_hidden_visibility_attribute=no
13339 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; }; then
13345 if grep '\.hidden.*foo' conftest.s >/dev/null; then
13346 libffi_cv_hidden_visibility_attribute=yes
13347 fi
13348 fi
13349 rm -f conftest.*
13350
13351fi
13352echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
13353echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6
13354if test $libffi_cv_hidden_visibility_attribute = yes; then
13355
13356cat >>confdefs.h <<\_ACEOF
13357#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
13358_ACEOF
13359
13360fi
13361
13362
13363
13364
63e5e3e0
AG
13365
13366
13367
13368
13369
13370# Check whether --enable-debug or --disable-debug was given.
13371if test "${enable_debug+set}" = set; then
13372 enableval="$enable_debug"
7d45b968 13373 if test "$enable_debug" = "yes"; then
3ed8e5b6
AT
13374
13375cat >>confdefs.h <<\_ACEOF
63e5e3e0 13376#define FFI_DEBUG 1
3ed8e5b6
AT
13377_ACEOF
13378
13379 fi
13380fi;
13381
13382# Check whether --enable-structs or --disable-structs was given.
13383if test "${enable_structs+set}" = set; then
13384 enableval="$enable_structs"
13385 if test "$enable_structs" = "no"; then
13386
13387cat >>confdefs.h <<\_ACEOF
13388#define FFI_NO_STRUCTS 1
13389_ACEOF
13390
13391 fi
13392fi;
13393
13394# Check whether --enable-raw-api or --disable-raw-api was given.
13395if test "${enable_raw_api+set}" = set; then
13396 enableval="$enable_raw_api"
13397 if test "$enable_raw_api" = "no"; then
13398
13399cat >>confdefs.h <<\_ACEOF
13400#define FFI_NO_RAW_API 1
13401_ACEOF
13402
13403 fi
13404fi;
13405
13406# Check whether --enable-purify-safety or --disable-purify-safety was given.
13407if test "${enable_purify_safety+set}" = set; then
13408 enableval="$enable_purify_safety"
13409 if test "$enable_purify_safety" = "yes"; then
13410
13411cat >>confdefs.h <<\_ACEOF
13412#define USING_PURIFY 1
13413_ACEOF
13414
13415 fi
13416fi;
13417
13418if test -n "$with_cross_host" &&
13419 test x"$with_cross_host" != x"no"; then
13420 toolexecdir='$(exec_prefix)/$(target_alias)'
13421 toolexeclibdir='$(toolexecdir)/lib'
13422else
13423 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
13424 toolexeclibdir='$(libdir)'
13425fi
13426multi_os_directory=`$CC -print-multi-os-directory`
13427case $multi_os_directory in
13428 .) ;; # Avoid trailing /.
13429 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
13430esac
13431
13432
13433
3ed8e5b6
AT
13434if test "${multilib}" = "yes"; then
13435 multilib_arg="--enable-multilib"
13436else
13437 multilib_arg=
13438fi
13439
13440 ac_config_commands="$ac_config_commands include"
13441
13442 ac_config_commands="$ac_config_commands src"
13443
13444
13445 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
13446
13447
13448 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
13449
13450
13451cat >confcache <<\_ACEOF
13452# This file is a shell script that caches the results of configure
13453# tests run on this system so they can be shared between configure
13454# scripts and configure runs, see configure's option --config-cache.
13455# It is not useful on other systems. If it contains results you don't
13456# want to keep, you may remove or edit it.
13457#
13458# config.status only pays attention to the cache file if you give it
13459# the --recheck option to rerun configure.
13460#
13461# `ac_cv_env_foo' variables (set or unset) will be overridden when
13462# loading this file, other *unset* `ac_cv_foo' will be assigned the
13463# following values.
13464
13465_ACEOF
13466
13467# The following way of writing the cache mishandles newlines in values,
13468# but we know of no workaround that is simple, portable, and efficient.
13469# So, don't put newlines in cache variables' values.
13470# Ultrix sh set writes to stderr and can't be redirected directly,
13471# and sets the high bit in the cache file unless we assign to the vars.
13472{
13473 (set) 2>&1 |
13474 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13475 *ac_space=\ *)
13476 # `set' does not quote correctly, so add quotes (double-quote
13477 # substitution turns \\\\ into \\, and sed turns \\ into \).
13478 sed -n \
13479 "s/'/'\\\\''/g;
13480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13481 ;;
13482 *)
13483 # `set' quotes correctly as required by POSIX, so do not add quotes.
13484 sed -n \
13485 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13486 ;;
13487 esac;
13488} |
13489 sed '
13490 t clear
13491 : clear
13492 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13493 t end
13494 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13495 : end' >>confcache
13496if diff $cache_file confcache >/dev/null 2>&1; then :; else
13497 if test -w $cache_file; then
13498 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13499 cat confcache >$cache_file
13500 else
13501 echo "not updating unwritable cache $cache_file"
13502 fi
13503fi
13504rm -f confcache
13505
13506test "x$prefix" = xNONE && prefix=$ac_default_prefix
13507# Let make expand exec_prefix.
13508test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13509
13510# VPATH may cause trouble with some makes, so we remove $(srcdir),
13511# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13512# trailing colons and then remove the whole line if VPATH becomes empty
13513# (actually we leave an empty line to preserve line numbers).
13514if test "x$srcdir" = x.; then
13515 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13516s/:*\$(srcdir):*/:/;
13517s/:*\${srcdir}:*/:/;
13518s/:*@srcdir@:*/:/;
13519s/^\([^=]*=[ ]*\):*/\1/;
13520s/:*$//;
13521s/^[^=]*=[ ]*$//;
13522}'
13523fi
13524
13525DEFS=-DHAVE_CONFIG_H
13526
13527ac_libobjs=
13528ac_ltlibobjs=
13529for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13530 # 1. Remove the extension, and $U if already installed.
13531 ac_i=`echo "$ac_i" |
13532 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13533 # 2. Add them.
13534 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13535 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13536done
13537LIBOBJS=$ac_libobjs
13538
13539LTLIBOBJS=$ac_ltlibobjs
13540
13541
13542if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13543 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13544Usually this means the macro was only invoked conditionally." >&5
13545echo "$as_me: error: conditional \"AMDEP\" was never defined.
13546Usually this means the macro was only invoked conditionally." >&2;}
13547 { (exit 1); exit 1; }; }
13548fi
13549if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13550 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13551Usually this means the macro was only invoked conditionally." >&5
13552echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13553Usually this means the macro was only invoked conditionally." >&2;}
13554 { (exit 1); exit 1; }; }
13555fi
13556if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13557 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13558Usually this means the macro was only invoked conditionally." >&5
13559echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13560Usually this means the macro was only invoked conditionally." >&2;}
13561 { (exit 1); exit 1; }; }
13562fi
13563if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
13564 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
13565Usually this means the macro was only invoked conditionally." >&5
13566echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
13567Usually this means the macro was only invoked conditionally." >&2;}
13568 { (exit 1); exit 1; }; }
13569fi
8d5c5e35
MR
13570if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
13571 { { echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
3ed8e5b6 13572Usually this means the macro was only invoked conditionally." >&5
8d5c5e35 13573echo "$as_me: error: conditional \"MIPS\" was never defined.
3ed8e5b6
AT
13574Usually this means the macro was only invoked conditionally." >&2;}
13575 { (exit 1); exit 1; }; }
13576fi
13577if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
13578 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
13579Usually this means the macro was only invoked conditionally." >&5
13580echo "$as_me: error: conditional \"SPARC\" was never defined.
13581Usually this means the macro was only invoked conditionally." >&2;}
13582 { (exit 1); exit 1; }; }
13583fi
13584if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
13585 { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
13586Usually this means the macro was only invoked conditionally." >&5
13587echo "$as_me: error: conditional \"X86\" was never defined.
13588Usually this means the macro was only invoked conditionally." >&2;}
13589 { (exit 1); exit 1; }; }
13590fi
13591if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
13592 { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
13593Usually this means the macro was only invoked conditionally." >&5
13594echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
13595Usually this means the macro was only invoked conditionally." >&2;}
13596 { (exit 1); exit 1; }; }
13597fi
a3bd50cc
PB
13598if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
13599 { { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
13600Usually this means the macro was only invoked conditionally." >&5
13601echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
13602Usually this means the macro was only invoked conditionally." >&2;}
13603 { (exit 1); exit 1; }; }
13604fi
3ed8e5b6
AT
13605if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
13606 { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
13607Usually this means the macro was only invoked conditionally." >&5
13608echo "$as_me: error: conditional \"ALPHA\" was never defined.
13609Usually this means the macro was only invoked conditionally." >&2;}
13610 { (exit 1); exit 1; }; }
13611fi
13612if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
13613 { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
13614Usually this means the macro was only invoked conditionally." >&5
13615echo "$as_me: error: conditional \"IA64\" was never defined.
13616Usually this means the macro was only invoked conditionally." >&2;}
13617 { (exit 1); exit 1; }; }
13618fi
a472e9d4
KI
13619if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
13620 { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
13621Usually this means the macro was only invoked conditionally." >&5
13622echo "$as_me: error: conditional \"M32R\" was never defined.
13623Usually this means the macro was only invoked conditionally." >&2;}
13624 { (exit 1); exit 1; }; }
13625fi
3ed8e5b6
AT
13626if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
13627 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
13628Usually this means the macro was only invoked conditionally." >&5
13629echo "$as_me: error: conditional \"M68K\" was never defined.
13630Usually this means the macro was only invoked conditionally." >&2;}
13631 { (exit 1); exit 1; }; }
13632fi
13633if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
13634 { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
13635Usually this means the macro was only invoked conditionally." >&5
13636echo "$as_me: error: conditional \"POWERPC\" was never defined.
13637Usually this means the macro was only invoked conditionally." >&2;}
13638 { (exit 1); exit 1; }; }
13639fi
13640if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
13641 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
13642Usually this means the macro was only invoked conditionally." >&5
13643echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
13644Usually this means the macro was only invoked conditionally." >&2;}
13645 { (exit 1); exit 1; }; }
13646fi
13647if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
13648 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
13649Usually this means the macro was only invoked conditionally." >&5
13650echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
13651Usually this means the macro was only invoked conditionally." >&2;}
13652 { (exit 1); exit 1; }; }
13653fi
97067642
AT
13654if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
13655 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
13656Usually this means the macro was only invoked conditionally." >&5
13657echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
13658Usually this means the macro was only invoked conditionally." >&2;}
13659 { (exit 1); exit 1; }; }
13660fi
3ed8e5b6
AT
13661if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
13662 { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
13663Usually this means the macro was only invoked conditionally." >&5
13664echo "$as_me: error: conditional \"ARM\" was never defined.
13665Usually this means the macro was only invoked conditionally." >&2;}
13666 { (exit 1); exit 1; }; }
13667fi
614348bb
SP
13668if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
13669 { { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
13670Usually this means the macro was only invoked conditionally." >&5
13671echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
13672Usually this means the macro was only invoked conditionally." >&2;}
13673 { (exit 1); exit 1; }; }
13674fi
88d8c771
AG
13675if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
13676 { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
13677Usually this means the macro was only invoked conditionally." >&5
13678echo "$as_me: error: conditional \"FRV\" was never defined.
13679Usually this means the macro was only invoked conditionally." >&2;}
13680 { (exit 1); exit 1; }; }
13681fi
3ed8e5b6
AT
13682if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
13683 { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
13684Usually this means the macro was only invoked conditionally." >&5
13685echo "$as_me: error: conditional \"S390\" was never defined.
13686Usually this means the macro was only invoked conditionally." >&2;}
13687 { (exit 1); exit 1; }; }
13688fi
13689if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
13690 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
13691Usually this means the macro was only invoked conditionally." >&5
13692echo "$as_me: error: conditional \"X86_64\" was never defined.
13693Usually this means the macro was only invoked conditionally." >&2;}
13694 { (exit 1); exit 1; }; }
13695fi
13696if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
13697 { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
13698Usually this means the macro was only invoked conditionally." >&5
13699echo "$as_me: error: conditional \"SH\" was never defined.
13700Usually this means the macro was only invoked conditionally." >&2;}
13701 { (exit 1); exit 1; }; }
13702fi
13703if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
13704 { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
13705Usually this means the macro was only invoked conditionally." >&5
13706echo "$as_me: error: conditional \"SH64\" was never defined.
13707Usually this means the macro was only invoked conditionally." >&2;}
13708 { (exit 1); exit 1; }; }
13709fi
e6c300ef
JDA
13710if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
13711 { { echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
13712Usually this means the macro was only invoked conditionally." >&5
13713echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
13714Usually this means the macro was only invoked conditionally." >&2;}
13715 { (exit 1); exit 1; }; }
13716fi
13717if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
13718 { { echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
13719Usually this means the macro was only invoked conditionally." >&5
13720echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
13721Usually this means the macro was only invoked conditionally." >&2;}
13722 { (exit 1); exit 1; }; }
13723fi
13724if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
13725 { { echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
d65a810f 13726Usually this means the macro was only invoked conditionally." >&5
e6c300ef 13727echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
d65a810f
MK
13728Usually this means the macro was only invoked conditionally." >&2;}
13729 { (exit 1); exit 1; }; }
13730fi
3ed8e5b6
AT
13731
13732: ${CONFIG_STATUS=./config.status}
13733ac_clean_files_save=$ac_clean_files
13734ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13735{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13736echo "$as_me: creating $CONFIG_STATUS" >&6;}
13737cat >$CONFIG_STATUS <<_ACEOF
13738#! $SHELL
13739# Generated by $as_me.
13740# Run this file to recreate the current configuration.
13741# Compiler output produced by configure, useful for debugging
13742# configure, is in config.log if it exists.
13743
13744debug=false
13745ac_cs_recheck=false
13746ac_cs_silent=false
13747SHELL=\${CONFIG_SHELL-$SHELL}
13748_ACEOF
13749
13750cat >>$CONFIG_STATUS <<\_ACEOF
13751## --------------------- ##
13752## M4sh Initialization. ##
13753## --------------------- ##
13754
13755# Be Bourne compatible
13756if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13757 emulate sh
13758 NULLCMD=:
13759 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13760 # is contrary to our usage. Disable this feature.
13761 alias -g '${1+"$@"}'='"$@"'
13762elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13763 set -o posix
13764fi
13765DUALCASE=1; export DUALCASE # for MKS sh
13766
13767# Support unset when possible.
13768if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13769 as_unset=unset
13770else
13771 as_unset=false
13772fi
13773
13774
13775# Work around bugs in pre-3.0 UWIN ksh.
13776$as_unset ENV MAIL MAILPATH
13777PS1='$ '
13778PS2='> '
13779PS4='+ '
13780
13781# NLS nuisances.
13782for as_var in \
13783 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13784 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13785 LC_TELEPHONE LC_TIME
13786do
13787 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13788 eval $as_var=C; export $as_var
13789 else
13790 $as_unset $as_var
13791 fi
13792done
13793
13794# Required to use basename.
13795if expr a : '\(a\)' >/dev/null 2>&1; then
13796 as_expr=expr
13797else
13798 as_expr=false
13799fi
13800
13801if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13802 as_basename=basename
13803else
13804 as_basename=false
13805fi
13806
13807
13808# Name of the executable.
13809as_me=`$as_basename "$0" ||
13810$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13811 X"$0" : 'X\(//\)$' \| \
13812 X"$0" : 'X\(/\)$' \| \
13813 . : '\(.\)' 2>/dev/null ||
13814echo X/"$0" |
13815 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13816 /^X\/\(\/\/\)$/{ s//\1/; q; }
13817 /^X\/\(\/\).*/{ s//\1/; q; }
13818 s/.*/./; q'`
13819
13820
13821# PATH needs CR, and LINENO needs CR and PATH.
13822# Avoid depending upon Character Ranges.
13823as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13824as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13825as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13826as_cr_digits='0123456789'
13827as_cr_alnum=$as_cr_Letters$as_cr_digits
13828
13829# The user is always right.
13830if test "${PATH_SEPARATOR+set}" != set; then
13831 echo "#! /bin/sh" >conf$$.sh
13832 echo "exit 0" >>conf$$.sh
13833 chmod +x conf$$.sh
13834 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13835 PATH_SEPARATOR=';'
13836 else
13837 PATH_SEPARATOR=:
13838 fi
13839 rm -f conf$$.sh
13840fi
13841
13842
13843 as_lineno_1=$LINENO
13844 as_lineno_2=$LINENO
13845 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13846 test "x$as_lineno_1" != "x$as_lineno_2" &&
13847 test "x$as_lineno_3" = "x$as_lineno_2" || {
13848 # Find who we are. Look in the path if we contain no path at all
13849 # relative or not.
13850 case $0 in
13851 *[\\/]* ) as_myself=$0 ;;
13852 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13853for as_dir in $PATH
13854do
13855 IFS=$as_save_IFS
13856 test -z "$as_dir" && as_dir=.
13857 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13858done
13859
13860 ;;
13861 esac
13862 # We did not find ourselves, most probably we were run as `sh COMMAND'
13863 # in which case we are not to be found in the path.
13864 if test "x$as_myself" = x; then
13865 as_myself=$0
13866 fi
13867 if test ! -f "$as_myself"; then
13868 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13869echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13870 { (exit 1); exit 1; }; }
13871 fi
13872 case $CONFIG_SHELL in
13873 '')
13874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13875for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13876do
13877 IFS=$as_save_IFS
13878 test -z "$as_dir" && as_dir=.
13879 for as_base in sh bash ksh sh5; do
13880 case $as_dir in
13881 /*)
13882 if ("$as_dir/$as_base" -c '
13883 as_lineno_1=$LINENO
13884 as_lineno_2=$LINENO
13885 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13886 test "x$as_lineno_1" != "x$as_lineno_2" &&
13887 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13888 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13889 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13890 CONFIG_SHELL=$as_dir/$as_base
13891 export CONFIG_SHELL
13892 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13893 fi;;
13894 esac
13895 done
13896done
13897;;
13898 esac
13899
13900 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13901 # uniformly replaced by the line number. The first 'sed' inserts a
13902 # line-number line before each line; the second 'sed' does the real
13903 # work. The second script uses 'N' to pair each line-number line
13904 # with the numbered line, and appends trailing '-' during
13905 # substitution so that $LINENO is not a special case at line end.
13906 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13907 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13908 sed '=' <$as_myself |
13909 sed '
13910 N
13911 s,$,-,
13912 : loop
13913 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13914 t loop
13915 s,-$,,
13916 s,^['$as_cr_digits']*\n,,
13917 ' >$as_me.lineno &&
13918 chmod +x $as_me.lineno ||
13919 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13920echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13921 { (exit 1); exit 1; }; }
13922
13923 # Don't try to exec as it changes $[0], causing all sort of problems
13924 # (the dirname of $[0] is not the place where we might find the
13925 # original and so on. Autoconf is especially sensible to this).
13926 . ./$as_me.lineno
13927 # Exit status is that of the last command.
13928 exit
13929}
13930
63e5e3e0 13931
3ed8e5b6
AT
13932case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13933 *c*,-n*) ECHO_N= ECHO_C='
13934' ECHO_T=' ' ;;
13935 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13936 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13937esac
13938
13939if expr a : '\(a\)' >/dev/null 2>&1; then
13940 as_expr=expr
13941else
13942 as_expr=false
13943fi
13944
13945rm -f conf$$ conf$$.exe conf$$.file
13946echo >conf$$.file
13947if ln -s conf$$.file conf$$ 2>/dev/null; then
13948 # We could just check for DJGPP; but this test a) works b) is more generic
13949 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13950 if test -f conf$$.exe; then
13951 # Don't use ln at all; we don't have any links
13952 as_ln_s='cp -p'
13953 else
13954 as_ln_s='ln -s'
7d45b968 13955 fi
3ed8e5b6
AT
13956elif ln conf$$.file conf$$ 2>/dev/null; then
13957 as_ln_s=ln
13958else
13959 as_ln_s='cp -p'
13960fi
13961rm -f conf$$ conf$$.exe conf$$.file
13962
13963if mkdir -p . 2>/dev/null; then
13964 as_mkdir_p=:
13965else
13966 test -d ./-p && rmdir ./-p
13967 as_mkdir_p=false
63e5e3e0
AG
13968fi
13969
3ed8e5b6
AT
13970as_executable_p="test -f"
13971
13972# Sed expression to map a string onto a valid CPP name.
13973as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13974
13975# Sed expression to map a string onto a valid variable name.
13976as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13977
13978
13979# IFS
13980# We need space, tab and new line, in precisely that order.
13981as_nl='
13982'
13983IFS=" $as_nl"
13984
13985# CDPATH.
13986$as_unset CDPATH
13987
13988exec 6>&1
63e5e3e0 13989
3ed8e5b6
AT
13990# Open the log real soon, to keep \$[0] and so on meaningful, and to
13991# report actual input values of CONFIG_FILES etc. instead of their
13992# values after options handling. Logging --version etc. is OK.
13993exec 5>>config.log
13994{
13995 echo
13996 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13997## Running $as_me. ##
13998_ASBOX
13999} >&5
14000cat >&5 <<_CSEOF
63e5e3e0 14001
3ed8e5b6
AT
14002This file was extended by libffi $as_me 2.1, which was
14003generated by GNU Autoconf 2.59. Invocation command line was
63e5e3e0 14004
3ed8e5b6
AT
14005 CONFIG_FILES = $CONFIG_FILES
14006 CONFIG_HEADERS = $CONFIG_HEADERS
14007 CONFIG_LINKS = $CONFIG_LINKS
14008 CONFIG_COMMANDS = $CONFIG_COMMANDS
14009 $ $0 $@
63e5e3e0 14010
3ed8e5b6
AT
14011_CSEOF
14012echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14013echo >&5
14014_ACEOF
63e5e3e0 14015
3ed8e5b6
AT
14016# Files that config.status was made for.
14017if test -n "$ac_config_files"; then
14018 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
63e5e3e0
AG
14019fi
14020
3ed8e5b6
AT
14021if test -n "$ac_config_headers"; then
14022 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14023fi
63e5e3e0 14024
3ed8e5b6
AT
14025if test -n "$ac_config_links"; then
14026 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14027fi
63e5e3e0 14028
3ed8e5b6
AT
14029if test -n "$ac_config_commands"; then
14030 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
63e5e3e0
AG
14031fi
14032
3ed8e5b6 14033cat >>$CONFIG_STATUS <<\_ACEOF
63e5e3e0 14034
3ed8e5b6
AT
14035ac_cs_usage="\
14036\`$as_me' instantiates files from templates according to the
14037current configuration.
db2cd5e6 14038
3ed8e5b6 14039Usage: $0 [OPTIONS] [FILE]...
db2cd5e6 14040
3ed8e5b6
AT
14041 -h, --help print this help, then exit
14042 -V, --version print version number, then exit
14043 -q, --quiet do not print progress messages
14044 -d, --debug don't remove temporary files
14045 --recheck update $as_me by reconfiguring in the same conditions
14046 --file=FILE[:TEMPLATE]
14047 instantiate the configuration file FILE
14048 --header=FILE[:TEMPLATE]
14049 instantiate the configuration header FILE
0721f64e 14050
3ed8e5b6
AT
14051Configuration files:
14052$config_files
ea81d2a3 14053
3ed8e5b6
AT
14054Configuration headers:
14055$config_headers
ea81d2a3 14056
3ed8e5b6
AT
14057Configuration links:
14058$config_links
ea81d2a3 14059
3ed8e5b6
AT
14060Configuration commands:
14061$config_commands
ea81d2a3 14062
3ed8e5b6
AT
14063Report bugs to <bug-autoconf@gnu.org>."
14064_ACEOF
3c18f2d1 14065
3ed8e5b6
AT
14066cat >>$CONFIG_STATUS <<_ACEOF
14067ac_cs_version="\\
14068libffi config.status 2.1
14069configured by $0, generated by GNU Autoconf 2.59,
14070 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14071
14072Copyright (C) 2003 Free Software Foundation, Inc.
14073This config.status script is free software; the Free Software Foundation
14074gives unlimited permission to copy, distribute and modify it."
14075srcdir=$srcdir
14076INSTALL="$INSTALL"
14077_ACEOF
14078
14079cat >>$CONFIG_STATUS <<\_ACEOF
14080# If no file are specified by the user, then we need to provide default
14081# value. By we need to know if files were specified by the user.
14082ac_need_defaults=:
14083while test $# != 0
14084do
14085 case $1 in
14086 --*=*)
14087 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14088 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14089 ac_shift=:
63e5e3e0 14090 ;;
3ed8e5b6
AT
14091 -*)
14092 ac_option=$1
14093 ac_optarg=$2
14094 ac_shift=shift
63e5e3e0 14095 ;;
3ed8e5b6
AT
14096 *) # This is not an option, so the user has probably given explicit
14097 # arguments.
14098 ac_option=$1
14099 ac_need_defaults=false;;
14100 esac
14101
14102 case $ac_option in
14103 # Handling of the options.
14104_ACEOF
14105cat >>$CONFIG_STATUS <<\_ACEOF
14106 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14107 ac_cs_recheck=: ;;
14108 --version | --vers* | -V )
14109 echo "$ac_cs_version"; exit 0 ;;
14110 --he | --h)
14111 # Conflict between --help and --header
14112 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14113Try \`$0 --help' for more information." >&5
14114echo "$as_me: error: ambiguous option: $1
14115Try \`$0 --help' for more information." >&2;}
14116 { (exit 1); exit 1; }; };;
14117 --help | --hel | -h )
14118 echo "$ac_cs_usage"; exit 0 ;;
14119 --debug | --d* | -d )
14120 debug=: ;;
14121 --file | --fil | --fi | --f )
14122 $ac_shift
14123 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14124 ac_need_defaults=false;;
14125 --header | --heade | --head | --hea )
14126 $ac_shift
14127 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14128 ac_need_defaults=false;;
14129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14130 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14131 ac_cs_silent=: ;;
63e5e3e0 14132
3ed8e5b6
AT
14133 # This is an error.
14134 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14135Try \`$0 --help' for more information." >&5
14136echo "$as_me: error: unrecognized option: $1
14137Try \`$0 --help' for more information." >&2;}
14138 { (exit 1); exit 1; }; } ;;
63e5e3e0 14139
3ed8e5b6 14140 *) ac_config_targets="$ac_config_targets $1" ;;
63e5e3e0 14141
3ed8e5b6
AT
14142 esac
14143 shift
14144done
63e5e3e0 14145
3ed8e5b6 14146ac_configure_extra_args=
63e5e3e0 14147
3ed8e5b6
AT
14148if $ac_cs_silent; then
14149 exec 6>/dev/null
14150 ac_configure_extra_args="$ac_configure_extra_args --silent"
14151fi
63e5e3e0 14152
3ed8e5b6
AT
14153_ACEOF
14154cat >>$CONFIG_STATUS <<_ACEOF
14155if \$ac_cs_recheck; then
14156 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14157 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14158fi
63e5e3e0 14159
3ed8e5b6
AT
14160_ACEOF
14161
14162cat >>$CONFIG_STATUS <<_ACEOF
63e5e3e0 14163#
3ed8e5b6 14164# INIT-COMMANDS section.
63e5e3e0 14165#
63e5e3e0 14166
3ed8e5b6
AT
14167
14168srcdir="$srcdir"
14169host="$host"
14170target="$target"
14171with_multisubdir="$with_multisubdir"
14172with_multisrctop="$with_multisrctop"
14173with_target_subdir="$with_target_subdir"
14174ac_configure_args="${multilib_arg} ${ac_configure_args}"
14175multi_basedir="$multi_basedir"
14176CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14177CC="$CC"
14178AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1cf3d07d
SE
14179
14180
14181# The HP-UX ksh and POSIX shell print the target directory to stdout
14182# if CDPATH is set.
14183(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14184
14185sed_quote_subst='$sed_quote_subst'
14186double_quote_subst='$double_quote_subst'
14187delay_variable_subst='$delay_variable_subst'
14188macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14189macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14190enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14191enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14192pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14193enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14194host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14195host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14196host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14197build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14198build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14199build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14200SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14201Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14202GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14203EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14204FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14205LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14206NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14207LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14208max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14209ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14210exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14211lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14212lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14213lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14214reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14215reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
80c6c2cb 14216OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
14217deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14218file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14219AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14220AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14221STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14222RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14223old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14224old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14225old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14226CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14227CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14228compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14229GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14230lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14231lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14232lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
80c6c2cb 14233lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
14234objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14235SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14236ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14237MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14238lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14239lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14240lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14241lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14242lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14243need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
80c6c2cb
PG
14244DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14245NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14246LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14247OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14248OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
14249libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14250shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14251extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14252archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14253enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14254export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14255whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14256compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14257old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14258old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14259archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14260archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14261module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14262module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14263with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14264allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14265no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14266hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14267hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14268hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14269hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14270hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14271hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14272hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14273hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14274inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14275link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14276fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14277always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14278export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14279exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14280include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14281prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14282file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14283variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14284need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14285need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14286version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14287runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14288shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14289shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14290libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14291library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14292soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14293postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14294postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14295finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14296finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14297hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14298sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14299sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14300hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14301enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14302enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14303enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14304old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14305striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14306
14307LTCC='$LTCC'
14308LTCFLAGS='$LTCFLAGS'
14309compiler='$compiler_DEFAULT'
14310
14311# Quote evaled strings.
14312for var in SED \
14313GREP \
14314EGREP \
14315FGREP \
14316LD \
14317NM \
14318LN_S \
14319lt_SP2NL \
14320lt_NL2SP \
14321reload_flag \
80c6c2cb 14322OBJDUMP \
1cf3d07d
SE
14323deplibs_check_method \
14324file_magic_cmd \
14325AR \
14326AR_FLAGS \
14327STRIP \
14328RANLIB \
14329CC \
14330CFLAGS \
14331compiler \
14332lt_cv_sys_global_symbol_pipe \
14333lt_cv_sys_global_symbol_to_cdecl \
14334lt_cv_sys_global_symbol_to_c_name_address \
80c6c2cb 14335lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
14336SHELL \
14337ECHO \
14338lt_prog_compiler_no_builtin_flag \
14339lt_prog_compiler_wl \
14340lt_prog_compiler_pic \
14341lt_prog_compiler_static \
14342lt_cv_prog_compiler_c_o \
14343need_locks \
80c6c2cb
PG
14344DSYMUTIL \
14345NMEDIT \
14346LIPO \
14347OTOOL \
14348OTOOL64 \
1cf3d07d
SE
14349shrext_cmds \
14350export_dynamic_flag_spec \
14351whole_archive_flag_spec \
14352compiler_needs_object \
14353with_gnu_ld \
14354allow_undefined_flag \
14355no_undefined_flag \
14356hardcode_libdir_flag_spec \
14357hardcode_libdir_flag_spec_ld \
14358hardcode_libdir_separator \
14359fix_srcfile_path \
14360exclude_expsyms \
14361include_expsyms \
14362file_list_spec \
14363variables_saved_for_relink \
14364libname_spec \
14365library_names_spec \
14366soname_spec \
14367finish_eval \
14368old_striplib \
14369striplib; do
14370 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14371 *[\\\\\\\`\\"\\\$]*)
14372 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14373 ;;
14374 *)
14375 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14376 ;;
14377 esac
14378done
14379
14380# Double-quote double-evaled strings.
14381for var in reload_cmds \
14382old_postinstall_cmds \
14383old_postuninstall_cmds \
14384old_archive_cmds \
14385extract_expsyms_cmds \
14386old_archive_from_new_cmds \
14387old_archive_from_expsyms_cmds \
14388archive_cmds \
14389archive_expsym_cmds \
14390module_cmds \
14391module_expsym_cmds \
14392export_symbols_cmds \
14393prelink_cmds \
14394postinstall_cmds \
14395postuninstall_cmds \
14396finish_cmds \
14397sys_lib_search_path_spec \
14398sys_lib_dlsearch_path_spec; do
14399 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14400 *[\\\\\\\`\\"\\\$]*)
14401 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14402 ;;
14403 *)
14404 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14405 ;;
14406 esac
14407done
14408
14409# Fix-up fallback echo if it was mangled by the above quoting rules.
14410case \$lt_ECHO in
14411*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14412 ;;
14413esac
14414
14415ac_aux_dir='$ac_aux_dir'
14416xsi_shell='$xsi_shell'
14417lt_shell_append='$lt_shell_append'
14418
14419# See if we are running on zsh, and set the options which allow our
14420# commands through without removal of \ escapes INIT.
14421if test -n "\${ZSH_VERSION+set}" ; then
14422 setopt NO_GLOB_SUBST
14423fi
14424
14425
14426 PACKAGE='$PACKAGE'
14427 VERSION='$VERSION'
14428 TIMESTAMP='$TIMESTAMP'
14429 RM='$RM'
14430 ofile='$ofile'
14431
14432
14433
3ed8e5b6
AT
14434TARGETDIR="$TARGETDIR"
14435
14436_ACEOF
14437
14438
14439
14440cat >>$CONFIG_STATUS <<\_ACEOF
14441for ac_config_target in $ac_config_targets
63e5e3e0 14442do
3ed8e5b6
AT
14443 case "$ac_config_target" in
14444 # Handling of arguments.
14445 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14446 "include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
14447 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14448 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14449 "include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
14450 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14451 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1cf3d07d 14452 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
3ed8e5b6
AT
14453 "include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
14454 "src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
14455 "fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
14456 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14457echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14458 { (exit 1); exit 1; }; };;
63e5e3e0
AG
14459 esac
14460done
14461
3ed8e5b6
AT
14462# If the user did not use the arguments to specify the items to instantiate,
14463# then the envvar interface is used. Set only those that are not.
14464# We use the long form for the default assignment because of an extremely
14465# bizarre bug on SunOS 4.1.3.
14466if $ac_need_defaults; then
14467 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14468 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14469 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14470 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14471fi
14472
14473# Have a temporary directory for convenience. Make it in the build tree
14474# simply because there is no reason to put it here, and in addition,
14475# creating and moving files from /tmp can sometimes cause problems.
14476# Create a temporary directory, and hook for its removal unless debugging.
14477$debug ||
14478{
14479 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14480 trap '{ (exit 1); exit 1; }' 1 2 13 15
14481}
63e5e3e0 14482
3ed8e5b6 14483# Create a (secure) tmp directory for tmp files.
63e5e3e0 14484
3ed8e5b6
AT
14485{
14486 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14487 test -n "$tmp" && test -d "$tmp"
14488} ||
14489{
14490 tmp=./confstat$$-$RANDOM
14491 (umask 077 && mkdir $tmp)
14492} ||
14493{
14494 echo "$me: cannot create a temporary directory in ." >&2
14495 { (exit 1); exit 1; }
14496}
14497
14498_ACEOF
14499
14500cat >>$CONFIG_STATUS <<_ACEOF
14501
14502#
14503# CONFIG_FILES section.
14504#
63e5e3e0 14505
3ed8e5b6
AT
14506# No need to generate the scripts if there are no CONFIG_FILES.
14507# This happens for instance when ./config.status config.h
14508if test -n "\$CONFIG_FILES"; then
14509 # Protect against being on the right side of a sed subst in config.status.
14510 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14511 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14512s,@SHELL@,$SHELL,;t t
14513s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14514s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14515s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14516s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14517s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14518s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14519s,@exec_prefix@,$exec_prefix,;t t
14520s,@prefix@,$prefix,;t t
14521s,@program_transform_name@,$program_transform_name,;t t
14522s,@bindir@,$bindir,;t t
14523s,@sbindir@,$sbindir,;t t
14524s,@libexecdir@,$libexecdir,;t t
14525s,@datadir@,$datadir,;t t
14526s,@sysconfdir@,$sysconfdir,;t t
14527s,@sharedstatedir@,$sharedstatedir,;t t
14528s,@localstatedir@,$localstatedir,;t t
14529s,@libdir@,$libdir,;t t
14530s,@includedir@,$includedir,;t t
14531s,@oldincludedir@,$oldincludedir,;t t
14532s,@infodir@,$infodir,;t t
14533s,@mandir@,$mandir,;t t
14534s,@build_alias@,$build_alias,;t t
14535s,@host_alias@,$host_alias,;t t
14536s,@target_alias@,$target_alias,;t t
14537s,@DEFS@,$DEFS,;t t
14538s,@ECHO_C@,$ECHO_C,;t t
14539s,@ECHO_N@,$ECHO_N,;t t
14540s,@ECHO_T@,$ECHO_T,;t t
14541s,@LIBS@,$LIBS,;t t
14542s,@multi_basedir@,$multi_basedir,;t t
14543s,@build@,$build,;t t
14544s,@build_cpu@,$build_cpu,;t t
14545s,@build_vendor@,$build_vendor,;t t
14546s,@build_os@,$build_os,;t t
14547s,@host@,$host,;t t
14548s,@host_cpu@,$host_cpu,;t t
14549s,@host_vendor@,$host_vendor,;t t
14550s,@host_os@,$host_os,;t t
14551s,@target@,$target,;t t
14552s,@target_cpu@,$target_cpu,;t t
14553s,@target_vendor@,$target_vendor,;t t
14554s,@target_os@,$target_os,;t t
14555s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14556s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14557s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14558s,@CYGPATH_W@,$CYGPATH_W,;t t
14559s,@PACKAGE@,$PACKAGE,;t t
14560s,@VERSION@,$VERSION,;t t
14561s,@ACLOCAL@,$ACLOCAL,;t t
14562s,@AUTOCONF@,$AUTOCONF,;t t
14563s,@AUTOMAKE@,$AUTOMAKE,;t t
14564s,@AUTOHEADER@,$AUTOHEADER,;t t
14565s,@MAKEINFO@,$MAKEINFO,;t t
3ed8e5b6
AT
14566s,@install_sh@,$install_sh,;t t
14567s,@STRIP@,$STRIP,;t t
14568s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14569s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
076e5443 14570s,@mkdir_p@,$mkdir_p,;t t
3ed8e5b6
AT
14571s,@AWK@,$AWK,;t t
14572s,@SET_MAKE@,$SET_MAKE,;t t
14573s,@am__leading_dot@,$am__leading_dot,;t t
b85e31b9
KC
14574s,@AMTAR@,$AMTAR,;t t
14575s,@am__tar@,$am__tar,;t t
14576s,@am__untar@,$am__untar,;t t
3ed8e5b6
AT
14577s,@CC@,$CC,;t t
14578s,@ac_ct_CC@,$ac_ct_CC,;t t
14579s,@EXEEXT@,$EXEEXT,;t t
14580s,@OBJEXT@,$OBJEXT,;t t
14581s,@DEPDIR@,$DEPDIR,;t t
14582s,@am__include@,$am__include,;t t
14583s,@am__quote@,$am__quote,;t t
14584s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14585s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14586s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14587s,@CCDEPMODE@,$CCDEPMODE,;t t
14588s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14589s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14590s,@CFLAGS@,$CFLAGS,;t t
14591s,@CCAS@,$CCAS,;t t
14592s,@CCASFLAGS@,$CCASFLAGS,;t t
1cf3d07d
SE
14593s,@LIBTOOL@,$LIBTOOL,;t t
14594s,@SED@,$SED,;t t
14595s,@EGREP@,$EGREP,;t t
14596s,@FGREP@,$FGREP,;t t
14597s,@GREP@,$GREP,;t t
14598s,@LD@,$LD,;t t
14599s,@DUMPBIN@,$DUMPBIN,;t t
14600s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14601s,@NM@,$NM,;t t
3ed8e5b6 14602s,@LN_S@,$LN_S,;t t
80c6c2cb
PG
14603s,@OBJDUMP@,$OBJDUMP,;t t
14604s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
1cf3d07d
SE
14605s,@AR@,$AR,;t t
14606s,@ac_ct_AR@,$ac_ct_AR,;t t
3ed8e5b6
AT
14607s,@RANLIB@,$RANLIB,;t t
14608s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
1cf3d07d 14609s,@lt_ECHO@,$lt_ECHO,;t t
80c6c2cb
PG
14610s,@DSYMUTIL@,$DSYMUTIL,;t t
14611s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
14612s,@NMEDIT@,$NMEDIT,;t t
14613s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
14614s,@LIPO@,$LIPO,;t t
14615s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
14616s,@OTOOL@,$OTOOL,;t t
14617s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
14618s,@OTOOL64@,$OTOOL64,;t t
14619s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
1cf3d07d
SE
14620s,@CPP@,$CPP,;t t
14621s,@CPPFLAGS@,$CPPFLAGS,;t t
3ed8e5b6
AT
14622s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14623s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14624s,@MAINT@,$MAINT,;t t
14625s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
14626s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
14627s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
8d5c5e35
MR
14628s,@MIPS_TRUE@,$MIPS_TRUE,;t t
14629s,@MIPS_FALSE@,$MIPS_FALSE,;t t
3ed8e5b6
AT
14630s,@SPARC_TRUE@,$SPARC_TRUE,;t t
14631s,@SPARC_FALSE@,$SPARC_FALSE,;t t
14632s,@X86_TRUE@,$X86_TRUE,;t t
14633s,@X86_FALSE@,$X86_FALSE,;t t
14634s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
14635s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
a3bd50cc
PB
14636s,@X86_DARWIN_TRUE@,$X86_DARWIN_TRUE,;t t
14637s,@X86_DARWIN_FALSE@,$X86_DARWIN_FALSE,;t t
3ed8e5b6
AT
14638s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
14639s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
14640s,@IA64_TRUE@,$IA64_TRUE,;t t
14641s,@IA64_FALSE@,$IA64_FALSE,;t t
a472e9d4
KI
14642s,@M32R_TRUE@,$M32R_TRUE,;t t
14643s,@M32R_FALSE@,$M32R_FALSE,;t t
3ed8e5b6
AT
14644s,@M68K_TRUE@,$M68K_TRUE,;t t
14645s,@M68K_FALSE@,$M68K_FALSE,;t t
14646s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
14647s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
14648s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
14649s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
14650s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
14651s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
97067642
AT
14652s,@POWERPC_FREEBSD_TRUE@,$POWERPC_FREEBSD_TRUE,;t t
14653s,@POWERPC_FREEBSD_FALSE@,$POWERPC_FREEBSD_FALSE,;t t
3ed8e5b6
AT
14654s,@ARM_TRUE@,$ARM_TRUE,;t t
14655s,@ARM_FALSE@,$ARM_FALSE,;t t
614348bb
SP
14656s,@LIBFFI_CRIS_TRUE@,$LIBFFI_CRIS_TRUE,;t t
14657s,@LIBFFI_CRIS_FALSE@,$LIBFFI_CRIS_FALSE,;t t
88d8c771
AG
14658s,@FRV_TRUE@,$FRV_TRUE,;t t
14659s,@FRV_FALSE@,$FRV_FALSE,;t t
3ed8e5b6
AT
14660s,@S390_TRUE@,$S390_TRUE,;t t
14661s,@S390_FALSE@,$S390_FALSE,;t t
14662s,@X86_64_TRUE@,$X86_64_TRUE,;t t
14663s,@X86_64_FALSE@,$X86_64_FALSE,;t t
14664s,@SH_TRUE@,$SH_TRUE,;t t
14665s,@SH_FALSE@,$SH_FALSE,;t t
14666s,@SH64_TRUE@,$SH64_TRUE,;t t
14667s,@SH64_FALSE@,$SH64_FALSE,;t t
e6c300ef
JDA
14668s,@PA_LINUX_TRUE@,$PA_LINUX_TRUE,;t t
14669s,@PA_LINUX_FALSE@,$PA_LINUX_FALSE,;t t
14670s,@PA_HPUX_TRUE@,$PA_HPUX_TRUE,;t t
14671s,@PA_HPUX_FALSE@,$PA_HPUX_FALSE,;t t
14672s,@PA64_HPUX_TRUE@,$PA64_HPUX_TRUE,;t t
14673s,@PA64_HPUX_FALSE@,$PA64_HPUX_FALSE,;t t
3ed8e5b6
AT
14674s,@ALLOCA@,$ALLOCA,;t t
14675s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
14676s,@TARGET@,$TARGET,;t t
14677s,@TARGETDIR@,$TARGETDIR,;t t
14678s,@toolexecdir@,$toolexecdir,;t t
14679s,@toolexeclibdir@,$toolexeclibdir,;t t
3ed8e5b6
AT
14680s,@LIBOBJS@,$LIBOBJS,;t t
14681s,@LTLIBOBJS@,$LTLIBOBJS,;t t
63e5e3e0 14682CEOF
63e5e3e0 14683
3ed8e5b6
AT
14684_ACEOF
14685
14686 cat >>$CONFIG_STATUS <<\_ACEOF
14687 # Split the substitutions into bite-sized pieces for seds with
14688 # small command number limits, like on Digital OSF/1 and HP-UX.
14689 ac_max_sed_lines=48
14690 ac_sed_frag=1 # Number of current file.
14691 ac_beg=1 # First line for current file.
14692 ac_end=$ac_max_sed_lines # Line after last line for current file.
14693 ac_more_lines=:
14694 ac_sed_cmds=
14695 while $ac_more_lines; do
14696 if test $ac_beg -gt 1; then
14697 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14698 else
14699 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14700 fi
14701 if test ! -s $tmp/subs.frag; then
14702 ac_more_lines=false
63e5e3e0 14703 else
3ed8e5b6
AT
14704 # The purpose of the label and of the branching condition is to
14705 # speed up the sed processing (if there are no `@' at all, there
14706 # is no need to browse any of the substitutions).
14707 # These are the two extra sed commands mentioned above.
14708 (echo ':t
14709 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14710 if test -z "$ac_sed_cmds"; then
14711 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14712 else
14713 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14714 fi
14715 ac_sed_frag=`expr $ac_sed_frag + 1`
14716 ac_beg=$ac_end
14717 ac_end=`expr $ac_end + $ac_max_sed_lines`
63e5e3e0 14718 fi
3ed8e5b6
AT
14719 done
14720 if test -z "$ac_sed_cmds"; then
14721 ac_sed_cmds=cat
63e5e3e0 14722 fi
3ed8e5b6 14723fi # test -n "$CONFIG_FILES"
63e5e3e0 14724
3ed8e5b6
AT
14725_ACEOF
14726cat >>$CONFIG_STATUS <<\_ACEOF
14727for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
63e5e3e0 14728 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3ed8e5b6
AT
14729 case $ac_file in
14730 - | *:- | *:-:* ) # input from stdin
14731 cat >$tmp/stdin
14732 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14733 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14734 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14735 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14736 * ) ac_file_in=$ac_file.in ;;
63e5e3e0
AG
14737 esac
14738
3ed8e5b6
AT
14739 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14740 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14741$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14742 X"$ac_file" : 'X\(//\)[^/]' \| \
14743 X"$ac_file" : 'X\(//\)$' \| \
14744 X"$ac_file" : 'X\(/\)' \| \
14745 . : '\(.\)' 2>/dev/null ||
14746echo X"$ac_file" |
14747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14749 /^X\(\/\/\)$/{ s//\1/; q; }
14750 /^X\(\/\).*/{ s//\1/; q; }
14751 s/.*/./; q'`
14752 { if $as_mkdir_p; then
14753 mkdir -p "$ac_dir"
63e5e3e0 14754 else
3ed8e5b6
AT
14755 as_dir="$ac_dir"
14756 as_dirs=
14757 while test ! -d "$as_dir"; do
14758 as_dirs="$as_dir $as_dirs"
14759 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14760$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14761 X"$as_dir" : 'X\(//\)[^/]' \| \
14762 X"$as_dir" : 'X\(//\)$' \| \
14763 X"$as_dir" : 'X\(/\)' \| \
14764 . : '\(.\)' 2>/dev/null ||
14765echo X"$as_dir" |
14766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14768 /^X\(\/\/\)$/{ s//\1/; q; }
14769 /^X\(\/\).*/{ s//\1/; q; }
14770 s/.*/./; q'`
14771 done
14772 test ! -n "$as_dirs" || mkdir $as_dirs
14773 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14774echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14775 { (exit 1); exit 1; }; }; }
14776
14777 ac_builddir=.
14778
14779if test "$ac_dir" != .; then
14780 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14781 # A "../" for each directory in $ac_dir_suffix.
14782 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14783else
14784 ac_dir_suffix= ac_top_builddir=
14785fi
63e5e3e0 14786
3ed8e5b6
AT
14787case $srcdir in
14788 .) # No --srcdir option. We are building in place.
14789 ac_srcdir=.
14790 if test -z "$ac_top_builddir"; then
14791 ac_top_srcdir=.
14792 else
14793 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14794 fi ;;
14795 [\\/]* | ?:[\\/]* ) # Absolute path.
14796 ac_srcdir=$srcdir$ac_dir_suffix;
14797 ac_top_srcdir=$srcdir ;;
63e5e3e0 14798 *) # Relative path.
3ed8e5b6
AT
14799 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14800 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14801esac
14802
14803# Do not use `cd foo && pwd` to compute absolute paths, because
14804# the directories may not exist.
14805case `pwd` in
14806.) ac_abs_builddir="$ac_dir";;
14807*)
14808 case "$ac_dir" in
14809 .) ac_abs_builddir=`pwd`;;
14810 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14811 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14812 esac;;
14813esac
14814case $ac_abs_builddir in
14815.) ac_abs_top_builddir=${ac_top_builddir}.;;
14816*)
14817 case ${ac_top_builddir}. in
14818 .) ac_abs_top_builddir=$ac_abs_builddir;;
14819 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14820 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14821 esac;;
14822esac
14823case $ac_abs_builddir in
14824.) ac_abs_srcdir=$ac_srcdir;;
14825*)
14826 case $ac_srcdir in
14827 .) ac_abs_srcdir=$ac_abs_builddir;;
14828 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14829 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14830 esac;;
14831esac
14832case $ac_abs_builddir in
14833.) ac_abs_top_srcdir=$ac_top_srcdir;;
14834*)
14835 case $ac_top_srcdir in
14836 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14837 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14838 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14839 esac;;
14840esac
63e5e3e0 14841
63e5e3e0 14842
3ed8e5b6
AT
14843 case $INSTALL in
14844 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14845 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
63e5e3e0
AG
14846 esac
14847
88d8c771
AG
14848 if test x"$ac_file" != x-; then
14849 { echo "$as_me:$LINENO: creating $ac_file" >&5
14850echo "$as_me: creating $ac_file" >&6;}
14851 rm -f "$ac_file"
14852 fi
3ed8e5b6
AT
14853 # Let's still pretend it is `configure' which instantiates (i.e., don't
14854 # use $as_me), people would be surprised to read:
14855 # /* config.h. Generated by config.status. */
14856 if test x"$ac_file" = x-; then
14857 configure_input=
14858 else
14859 configure_input="$ac_file. "
14860 fi
14861 configure_input=$configure_input"Generated from `echo $ac_file_in |
14862 sed 's,.*/,,'` by configure."
14863
14864 # First look for the input files in the build tree, otherwise in the
14865 # src tree.
14866 ac_file_inputs=`IFS=:
14867 for f in $ac_file_in; do
14868 case $f in
14869 -) echo $tmp/stdin ;;
14870 [\\/$]*)
14871 # Absolute (can't be DOS-style, as IFS=:)
14872 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14873echo "$as_me: error: cannot find input file: $f" >&2;}
14874 { (exit 1); exit 1; }; }
14875 echo "$f";;
14876 *) # Relative
14877 if test -f "$f"; then
14878 # Build tree
14879 echo "$f"
14880 elif test -f "$srcdir/$f"; then
14881 # Source tree
14882 echo "$srcdir/$f"
14883 else
14884 # /dev/null tree
14885 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14886echo "$as_me: error: cannot find input file: $f" >&2;}
14887 { (exit 1); exit 1; }; }
14888 fi;;
14889 esac
14890 done` || { (exit 1); exit 1; }
14891_ACEOF
14892cat >>$CONFIG_STATUS <<_ACEOF
14893 sed "$ac_vpsub
14894$extrasub
14895_ACEOF
14896cat >>$CONFIG_STATUS <<\_ACEOF
14897:t
14898/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14899s,@configure_input@,$configure_input,;t t
14900s,@srcdir@,$ac_srcdir,;t t
14901s,@abs_srcdir@,$ac_abs_srcdir,;t t
14902s,@top_srcdir@,$ac_top_srcdir,;t t
14903s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14904s,@builddir@,$ac_builddir,;t t
14905s,@abs_builddir@,$ac_abs_builddir,;t t
14906s,@top_builddir@,$ac_top_builddir,;t t
14907s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14908s,@INSTALL@,$ac_INSTALL,;t t
14909" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14910 rm -f $tmp/stdin
14911 if test x"$ac_file" != x-; then
14912 mv $tmp/out $ac_file
14913 else
14914 cat $tmp/out
14915 rm -f $tmp/out
14916 fi
14917
14918done
14919_ACEOF
14920cat >>$CONFIG_STATUS <<\_ACEOF
14921
14922#
14923# CONFIG_HEADER section.
14924#
63e5e3e0
AG
14925
14926# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14927# NAME is the cpp macro being defined and VALUE is the value it is being given.
14928#
14929# ac_d sets the value in "#define NAME VALUE" lines.
3ed8e5b6
AT
14930ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14931ac_dB='[ ].*$,\1#\2'
14932ac_dC=' '
14933ac_dD=',;t'
14934# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14935ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14936ac_uB='$,\1#\2define\3'
63e5e3e0 14937ac_uC=' '
3ed8e5b6
AT
14938ac_uD=',;t'
14939
14940for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
63e5e3e0 14941 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3ed8e5b6
AT
14942 case $ac_file in
14943 - | *:- | *:-:* ) # input from stdin
14944 cat >$tmp/stdin
14945 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14946 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14947 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14948 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14949 * ) ac_file_in=$ac_file.in ;;
63e5e3e0
AG
14950 esac
14951
3ed8e5b6
AT
14952 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14953echo "$as_me: creating $ac_file" >&6;}
14954
14955 # First look for the input files in the build tree, otherwise in the
14956 # src tree.
14957 ac_file_inputs=`IFS=:
14958 for f in $ac_file_in; do
14959 case $f in
14960 -) echo $tmp/stdin ;;
14961 [\\/$]*)
14962 # Absolute (can't be DOS-style, as IFS=:)
14963 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14964echo "$as_me: error: cannot find input file: $f" >&2;}
14965 { (exit 1); exit 1; }; }
14966 # Do quote $f, to prevent DOS paths from being IFS'd.
14967 echo "$f";;
14968 *) # Relative
14969 if test -f "$f"; then
14970 # Build tree
14971 echo "$f"
14972 elif test -f "$srcdir/$f"; then
14973 # Source tree
14974 echo "$srcdir/$f"
14975 else
14976 # /dev/null tree
14977 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14978echo "$as_me: error: cannot find input file: $f" >&2;}
14979 { (exit 1); exit 1; }; }
14980 fi;;
14981 esac
14982 done` || { (exit 1); exit 1; }
14983 # Remove the trailing spaces.
14984 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14985
14986_ACEOF
14987
14988# Transform confdefs.h into two sed scripts, `conftest.defines' and
14989# `conftest.undefs', that substitutes the proper values into
14990# config.h.in to produce config.h. The first handles `#define'
14991# templates, and the second `#undef' templates.
14992# And first: Protect against being on the right side of a sed subst in
14993# config.status. Protect against being in an unquoted here document
14994# in config.status.
14995rm -f conftest.defines conftest.undefs
14996# Using a here document instead of a string reduces the quoting nightmare.
14997# Putting comments in sed scripts is not portable.
14998#
14999# `end' is used to avoid that the second main sed command (meant for
15000# 0-ary CPP macros) applies to n-ary macro definitions.
15001# See the Autoconf documentation for `clear'.
15002cat >confdef2sed.sed <<\_ACEOF
15003s/[\\&,]/\\&/g
15004s,[\\$`],\\&,g
15005t clear
15006: clear
15007s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15008t end
15009s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15010: end
15011_ACEOF
15012# If some macros were called several times there might be several times
15013# the same #defines, which is useless. Nevertheless, we may not want to
15014# sort them, since we want the *last* AC-DEFINE to be honored.
15015uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15016sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15017rm -f confdef2sed.sed
63e5e3e0
AG
15018
15019# This sed command replaces #undef with comments. This is necessary, for
15020# example, in the case of _POSIX_SOURCE, which is predefined and required
15021# on some systems where configure will not decide to define it.
3ed8e5b6
AT
15022cat >>conftest.undefs <<\_ACEOF
15023s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15024_ACEOF
15025
15026# Break up conftest.defines because some shells have a limit on the size
15027# of here documents, and old seds have small limits too (100 cmds).
15028echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15029echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15030echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15031echo ' :' >>$CONFIG_STATUS
15032rm -f conftest.tail
15033while grep . conftest.defines >/dev/null
15034do
15035 # Write a limited-size here document to $tmp/defines.sed.
15036 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15037 # Speed up: don't consider the non `#define' lines.
15038 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15039 # Work around the forget-to-reset-the-flag bug.
15040 echo 't clr' >>$CONFIG_STATUS
15041 echo ': clr' >>$CONFIG_STATUS
15042 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15043 echo 'CEOF
15044 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15045 rm -f $tmp/in
15046 mv $tmp/out $tmp/in
15047' >>$CONFIG_STATUS
15048 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15049 rm -f conftest.defines
15050 mv conftest.tail conftest.defines
15051done
15052rm -f conftest.defines
15053echo ' fi # grep' >>$CONFIG_STATUS
15054echo >>$CONFIG_STATUS
63e5e3e0 15055
3ed8e5b6
AT
15056# Break up conftest.undefs because some shells have a limit on the size
15057# of here documents, and old seds have small limits too (100 cmds).
15058echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
63e5e3e0 15059rm -f conftest.tail
3ed8e5b6 15060while grep . conftest.undefs >/dev/null
63e5e3e0 15061do
3ed8e5b6
AT
15062 # Write a limited-size here document to $tmp/undefs.sed.
15063 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15064 # Speed up: don't consider the non `#undef'
15065 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15066 # Work around the forget-to-reset-the-flag bug.
15067 echo 't clr' >>$CONFIG_STATUS
15068 echo ': clr' >>$CONFIG_STATUS
15069 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
63e5e3e0 15070 echo 'CEOF
3ed8e5b6
AT
15071 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15072 rm -f $tmp/in
15073 mv $tmp/out $tmp/in
15074' >>$CONFIG_STATUS
15075 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15076 rm -f conftest.undefs
15077 mv conftest.tail conftest.undefs
63e5e3e0 15078done
3ed8e5b6
AT
15079rm -f conftest.undefs
15080
15081cat >>$CONFIG_STATUS <<\_ACEOF
15082 # Let's still pretend it is `configure' which instantiates (i.e., don't
15083 # use $as_me), people would be surprised to read:
15084 # /* config.h. Generated by config.status. */
15085 if test x"$ac_file" = x-; then
15086 echo "/* Generated by configure. */" >$tmp/config.h
63e5e3e0 15087 else
3ed8e5b6 15088 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
63e5e3e0 15089 fi
3ed8e5b6
AT
15090 cat $tmp/in >>$tmp/config.h
15091 rm -f $tmp/in
15092 if test x"$ac_file" != x-; then
15093 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15094 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15095echo "$as_me: $ac_file is unchanged" >&6;}
15096 else
15097 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15098$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15099 X"$ac_file" : 'X\(//\)[^/]' \| \
15100 X"$ac_file" : 'X\(//\)$' \| \
15101 X"$ac_file" : 'X\(/\)' \| \
15102 . : '\(.\)' 2>/dev/null ||
15103echo X"$ac_file" |
15104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15106 /^X\(\/\/\)$/{ s//\1/; q; }
15107 /^X\(\/\).*/{ s//\1/; q; }
15108 s/.*/./; q'`
15109 { if $as_mkdir_p; then
15110 mkdir -p "$ac_dir"
15111 else
15112 as_dir="$ac_dir"
15113 as_dirs=
15114 while test ! -d "$as_dir"; do
15115 as_dirs="$as_dir $as_dirs"
15116 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15117$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15118 X"$as_dir" : 'X\(//\)[^/]' \| \
15119 X"$as_dir" : 'X\(//\)$' \| \
15120 X"$as_dir" : 'X\(/\)' \| \
15121 . : '\(.\)' 2>/dev/null ||
15122echo X"$as_dir" |
15123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15125 /^X\(\/\/\)$/{ s//\1/; q; }
15126 /^X\(\/\).*/{ s//\1/; q; }
15127 s/.*/./; q'`
15128 done
15129 test ! -n "$as_dirs" || mkdir $as_dirs
15130 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15131echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15132 { (exit 1); exit 1; }; }; }
63e5e3e0 15133
3ed8e5b6
AT
15134 rm -f $ac_file
15135 mv $tmp/config.h $ac_file
15136 fi
15137 else
15138 cat $tmp/config.h
15139 rm -f $tmp/config.h
15140 fi
15141# Compute $ac_file's index in $config_headers.
15142_am_stamp_count=1
15143for _am_header in $config_headers :; do
15144 case $_am_header in
15145 $ac_file | $ac_file:* )
15146 break ;;
15147 * )
15148 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15149 esac
15150done
15151echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15152$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15153 X$ac_file : 'X\(//\)[^/]' \| \
15154 X$ac_file : 'X\(//\)$' \| \
15155 X$ac_file : 'X\(/\)' \| \
15156 . : '\(.\)' 2>/dev/null ||
15157echo X$ac_file |
15158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15160 /^X\(\/\/\)$/{ s//\1/; q; }
15161 /^X\(\/\).*/{ s//\1/; q; }
15162 s/.*/./; q'`/stamp-h$_am_stamp_count
15163done
15164_ACEOF
15165cat >>$CONFIG_STATUS <<\_ACEOF
1450eb7a 15166
3ed8e5b6
AT
15167#
15168# CONFIG_LINKS section.
15169#
1450eb7a 15170
3ed8e5b6
AT
15171for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
15172 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15173 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
1450eb7a 15174
3ed8e5b6
AT
15175 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
15176echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
1450eb7a
AT
15177
15178 if test ! -r $srcdir/$ac_source; then
3ed8e5b6
AT
15179 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
15180echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
15181 { (exit 1); exit 1; }; }
1450eb7a
AT
15182 fi
15183 rm -f $ac_dest
15184
15185 # Make relative symlinks.
3ed8e5b6
AT
15186 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
15187$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15188 X"$ac_dest" : 'X\(//\)[^/]' \| \
15189 X"$ac_dest" : 'X\(//\)$' \| \
15190 X"$ac_dest" : 'X\(/\)' \| \
15191 . : '\(.\)' 2>/dev/null ||
15192echo X"$ac_dest" |
15193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15195 /^X\(\/\/\)$/{ s//\1/; q; }
15196 /^X\(\/\).*/{ s//\1/; q; }
15197 s/.*/./; q'`
15198 { if $as_mkdir_p; then
15199 mkdir -p "$ac_dest_dir"
1450eb7a 15200 else
3ed8e5b6
AT
15201 as_dir="$ac_dest_dir"
15202 as_dirs=
15203 while test ! -d "$as_dir"; do
15204 as_dirs="$as_dir $as_dirs"
15205 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15206$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15207 X"$as_dir" : 'X\(//\)[^/]' \| \
15208 X"$as_dir" : 'X\(//\)$' \| \
15209 X"$as_dir" : 'X\(/\)' \| \
15210 . : '\(.\)' 2>/dev/null ||
15211echo X"$as_dir" |
15212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15214 /^X\(\/\/\)$/{ s//\1/; q; }
15215 /^X\(\/\).*/{ s//\1/; q; }
15216 s/.*/./; q'`
15217 done
15218 test ! -n "$as_dirs" || mkdir $as_dirs
15219 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
15220echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
15221 { (exit 1); exit 1; }; }; }
15222
15223 ac_builddir=.
15224
15225if test "$ac_dest_dir" != .; then
15226 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
15227 # A "../" for each directory in $ac_dir_suffix.
15228 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15229else
15230 ac_dir_suffix= ac_top_builddir=
15231fi
15232
15233case $srcdir in
15234 .) # No --srcdir option. We are building in place.
15235 ac_srcdir=.
15236 if test -z "$ac_top_builddir"; then
15237 ac_top_srcdir=.
15238 else
15239 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15240 fi ;;
15241 [\\/]* | ?:[\\/]* ) # Absolute path.
15242 ac_srcdir=$srcdir$ac_dir_suffix;
15243 ac_top_srcdir=$srcdir ;;
15244 *) # Relative path.
15245 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15246 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15247esac
15248
15249# Do not use `cd foo && pwd` to compute absolute paths, because
15250# the directories may not exist.
15251case `pwd` in
15252.) ac_abs_builddir="$ac_dest_dir";;
15253*)
15254 case "$ac_dest_dir" in
15255 .) ac_abs_builddir=`pwd`;;
15256 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
15257 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
15258 esac;;
15259esac
15260case $ac_abs_builddir in
15261.) ac_abs_top_builddir=${ac_top_builddir}.;;
15262*)
15263 case ${ac_top_builddir}. in
15264 .) ac_abs_top_builddir=$ac_abs_builddir;;
15265 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15266 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15267 esac;;
15268esac
15269case $ac_abs_builddir in
15270.) ac_abs_srcdir=$ac_srcdir;;
15271*)
15272 case $ac_srcdir in
15273 .) ac_abs_srcdir=$ac_abs_builddir;;
15274 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15275 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15276 esac;;
15277esac
15278case $ac_abs_builddir in
15279.) ac_abs_top_srcdir=$ac_top_srcdir;;
15280*)
15281 case $ac_top_srcdir in
15282 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15283 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15284 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15285 esac;;
15286esac
15287
1450eb7a 15288
3ed8e5b6
AT
15289 case $srcdir in
15290 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
15291 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
1450eb7a
AT
15292 esac
15293
3ed8e5b6
AT
15294 # Try a symlink, then a hard link, then a copy.
15295 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
15296 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
15297 cp -p $srcdir/$ac_source $ac_dest ||
15298 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
15299echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
15300 { (exit 1); exit 1; }; }
1450eb7a 15301done
3ed8e5b6
AT
15302_ACEOF
15303cat >>$CONFIG_STATUS <<\_ACEOF
63e5e3e0 15304
3ed8e5b6
AT
15305#
15306# CONFIG_COMMANDS section.
15307#
15308for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15309 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15310 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15311 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15312$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15313 X"$ac_dest" : 'X\(//\)[^/]' \| \
15314 X"$ac_dest" : 'X\(//\)$' \| \
15315 X"$ac_dest" : 'X\(/\)' \| \
15316 . : '\(.\)' 2>/dev/null ||
15317echo X"$ac_dest" |
15318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15320 /^X\(\/\/\)$/{ s//\1/; q; }
15321 /^X\(\/\).*/{ s//\1/; q; }
15322 s/.*/./; q'`
15323 { if $as_mkdir_p; then
15324 mkdir -p "$ac_dir"
15325 else
15326 as_dir="$ac_dir"
15327 as_dirs=
15328 while test ! -d "$as_dir"; do
15329 as_dirs="$as_dir $as_dirs"
15330 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15331$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15332 X"$as_dir" : 'X\(//\)[^/]' \| \
15333 X"$as_dir" : 'X\(//\)$' \| \
15334 X"$as_dir" : 'X\(/\)' \| \
15335 . : '\(.\)' 2>/dev/null ||
15336echo X"$as_dir" |
15337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15338 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15339 /^X\(\/\/\)$/{ s//\1/; q; }
15340 /^X\(\/\).*/{ s//\1/; q; }
15341 s/.*/./; q'`
15342 done
15343 test ! -n "$as_dirs" || mkdir $as_dirs
15344 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15345echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15346 { (exit 1); exit 1; }; }; }
1450eb7a 15347
3ed8e5b6
AT
15348 ac_builddir=.
15349
15350if test "$ac_dir" != .; then
15351 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15352 # A "../" for each directory in $ac_dir_suffix.
15353 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15354else
15355 ac_dir_suffix= ac_top_builddir=
15356fi
1450eb7a 15357
3ed8e5b6
AT
15358case $srcdir in
15359 .) # No --srcdir option. We are building in place.
15360 ac_srcdir=.
15361 if test -z "$ac_top_builddir"; then
15362 ac_top_srcdir=.
15363 else
15364 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15365 fi ;;
15366 [\\/]* | ?:[\\/]* ) # Absolute path.
15367 ac_srcdir=$srcdir$ac_dir_suffix;
15368 ac_top_srcdir=$srcdir ;;
15369 *) # Relative path.
15370 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15371 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15372esac
1450eb7a 15373
3ed8e5b6
AT
15374# Do not use `cd foo && pwd` to compute absolute paths, because
15375# the directories may not exist.
15376case `pwd` in
15377.) ac_abs_builddir="$ac_dir";;
15378*)
15379 case "$ac_dir" in
15380 .) ac_abs_builddir=`pwd`;;
15381 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15382 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15383 esac;;
15384esac
15385case $ac_abs_builddir in
15386.) ac_abs_top_builddir=${ac_top_builddir}.;;
15387*)
15388 case ${ac_top_builddir}. in
15389 .) ac_abs_top_builddir=$ac_abs_builddir;;
15390 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15391 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15392 esac;;
15393esac
15394case $ac_abs_builddir in
15395.) ac_abs_srcdir=$ac_srcdir;;
15396*)
15397 case $ac_srcdir in
15398 .) ac_abs_srcdir=$ac_abs_builddir;;
15399 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15400 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15401 esac;;
15402esac
15403case $ac_abs_builddir in
15404.) ac_abs_top_srcdir=$ac_top_srcdir;;
15405*)
15406 case $ac_top_srcdir in
15407 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15408 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15409 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15410 esac;;
15411esac
63e5e3e0 15412
63e5e3e0 15413
3ed8e5b6
AT
15414 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15415echo "$as_me: executing $ac_dest commands" >&6;}
15416 case $ac_dest in
15417 default-1 )
15418# Only add multilib support code if we just rebuilt the top-level
15419# Makefile.
15420case " $CONFIG_FILES " in
15421 *" Makefile "*)
15422 ac_file=Makefile . ${multi_basedir}/config-ml.in
15423 ;;
15424esac ;;
15425 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15426 # Strip MF so we end up with the name of the file.
15427 mf=`echo "$mf" | sed -e 's/:.*$//'`
15428 # Check whether this is an Automake generated Makefile or not.
15429 # We used to match only the files named `Makefile.in', but
15430 # some people rename them; so instead we look at the file content.
15431 # Grep'ing the first line is not enough: some people post-process
15432 # each Makefile.in and add a new line on top of each file to say so.
15433 # So let's grep whole file.
15434 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15435 dirpart=`(dirname "$mf") 2>/dev/null ||
15436$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15437 X"$mf" : 'X\(//\)[^/]' \| \
15438 X"$mf" : 'X\(//\)$' \| \
15439 X"$mf" : 'X\(/\)' \| \
15440 . : '\(.\)' 2>/dev/null ||
15441echo X"$mf" |
15442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15444 /^X\(\/\/\)$/{ s//\1/; q; }
15445 /^X\(\/\).*/{ s//\1/; q; }
15446 s/.*/./; q'`
15447 else
15448 continue
15449 fi
b85e31b9
KC
15450 # Extract the definition of DEPDIR, am__include, and am__quote
15451 # from the Makefile without running `make'.
076e5443 15452 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
3ed8e5b6 15453 test -z "$DEPDIR" && continue
b85e31b9
KC
15454 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15455 test -z "am__include" && continue
15456 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
3ed8e5b6 15457 # When using ansi2knr, U may be empty or an underscore; expand it
076e5443 15458 U=`sed -n 's/^U = //p' < "$mf"`
b85e31b9
KC
15459 # Find all dependency output files, they are included files with
15460 # $(DEPDIR) in their names. We invoke sed twice because it is the
15461 # simplest approach to changing $(DEPDIR) to its actual value in the
15462 # expansion.
15463 for file in `sed -n "
15464 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
3ed8e5b6
AT
15465 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15466 # Make sure the directory exists.
15467 test -f "$dirpart/$file" && continue
15468 fdir=`(dirname "$file") 2>/dev/null ||
15469$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15470 X"$file" : 'X\(//\)[^/]' \| \
15471 X"$file" : 'X\(//\)$' \| \
15472 X"$file" : 'X\(/\)' \| \
15473 . : '\(.\)' 2>/dev/null ||
15474echo X"$file" |
15475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15477 /^X\(\/\/\)$/{ s//\1/; q; }
15478 /^X\(\/\).*/{ s//\1/; q; }
15479 s/.*/./; q'`
15480 { if $as_mkdir_p; then
15481 mkdir -p $dirpart/$fdir
15482 else
15483 as_dir=$dirpart/$fdir
15484 as_dirs=
15485 while test ! -d "$as_dir"; do
15486 as_dirs="$as_dir $as_dirs"
15487 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15488$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15489 X"$as_dir" : 'X\(//\)[^/]' \| \
15490 X"$as_dir" : 'X\(//\)$' \| \
15491 X"$as_dir" : 'X\(/\)' \| \
15492 . : '\(.\)' 2>/dev/null ||
15493echo X"$as_dir" |
15494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15495 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15496 /^X\(\/\/\)$/{ s//\1/; q; }
15497 /^X\(\/\).*/{ s//\1/; q; }
15498 s/.*/./; q'`
15499 done
15500 test ! -n "$as_dirs" || mkdir $as_dirs
15501 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15502echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15503 { (exit 1); exit 1; }; }; }
3c18f2d1 15504
3ed8e5b6
AT
15505 # echo "creating $dirpart/$file"
15506 echo '# dummy' > "$dirpart/$file"
15507 done
15508done
1cf3d07d
SE
15509 ;;
15510 libtool )
15511
15512 # See if we are running on zsh, and set the options which allow our
15513 # commands through without removal of \ escapes.
15514 if test -n "${ZSH_VERSION+set}" ; then
15515 setopt NO_GLOB_SUBST
15516 fi
15517
15518 cfgfile="${ofile}T"
15519 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15520 $RM "$cfgfile"
15521
15522 cat <<_LT_EOF >> "$cfgfile"
15523#! $SHELL
15524
15525# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
80c6c2cb 15526# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
15527# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15528# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15529#
80c6c2cb
PG
15530# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15531# 2006, 2007, 2008 Free Software Foundation, Inc.
15532# Written by Gordon Matzigkeit, 1996
1cf3d07d 15533#
80c6c2cb 15534# This file is part of GNU Libtool.
1cf3d07d 15535#
80c6c2cb
PG
15536# GNU Libtool is free software; you can redistribute it and/or
15537# modify it under the terms of the GNU General Public License as
15538# published by the Free Software Foundation; either version 2 of
15539# the License, or (at your option) any later version.
1cf3d07d 15540#
80c6c2cb
PG
15541# As a special exception to the GNU General Public License,
15542# if you distribute this file as part of a program or library that
15543# is built using GNU Libtool, you may include this file under the
15544# same distribution terms that you use for the rest of that program.
1cf3d07d 15545#
80c6c2cb
PG
15546# GNU Libtool is distributed in the hope that it will be useful,
15547# but WITHOUT ANY WARRANTY; without even the implied warranty of
15548# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15549# GNU General Public License for more details.
1cf3d07d 15550#
80c6c2cb
PG
15551# You should have received a copy of the GNU General Public License
15552# along with GNU Libtool; see the file COPYING. If not, a copy
15553# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15554# obtained by writing to the Free Software Foundation, Inc.,
15555# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
15556
15557
15558# The names of the tagged configurations supported by this script.
15559available_tags=""
15560
15561# ### BEGIN LIBTOOL CONFIG
15562
15563# Which release of libtool.m4 was used?
15564macro_version=$macro_version
15565macro_revision=$macro_revision
15566
15567# Whether or not to build shared libraries.
15568build_libtool_libs=$enable_shared
15569
15570# Whether or not to build static libraries.
15571build_old_libs=$enable_static
15572
15573# What type of objects to build.
15574pic_mode=$pic_mode
15575
15576# Whether or not to optimize for fast installation.
15577fast_install=$enable_fast_install
15578
15579# The host system.
15580host_alias=$host_alias
15581host=$host
15582host_os=$host_os
15583
15584# The build system.
15585build_alias=$build_alias
15586build=$build
15587build_os=$build_os
15588
15589# A sed program that does not truncate output.
15590SED=$lt_SED
15591
15592# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15593Xsed="\$SED -e 1s/^X//"
15594
15595# A grep program that handles long lines.
15596GREP=$lt_GREP
15597
15598# An ERE matcher.
15599EGREP=$lt_EGREP
15600
15601# A literal string matcher.
15602FGREP=$lt_FGREP
15603
15604# A BSD- or MS-compatible name lister.
15605NM=$lt_NM
15606
15607# Whether we need soft or hard links.
15608LN_S=$lt_LN_S
15609
15610# What is the maximum length of a command?
15611max_cmd_len=$max_cmd_len
15612
15613# Object file suffix (normally "o").
15614objext=$ac_objext
15615
15616# Executable file suffix (normally "").
15617exeext=$exeext
15618
15619# whether the shell understands "unset".
15620lt_unset=$lt_unset
15621
15622# turn spaces into newlines.
15623SP2NL=$lt_lt_SP2NL
15624
15625# turn newlines into spaces.
15626NL2SP=$lt_lt_NL2SP
15627
15628# How to create reloadable object files.
15629reload_flag=$lt_reload_flag
15630reload_cmds=$lt_reload_cmds
15631
80c6c2cb
PG
15632# An object symbol dumper.
15633OBJDUMP=$lt_OBJDUMP
15634
1cf3d07d
SE
15635# Method to check whether dependent libraries are shared objects.
15636deplibs_check_method=$lt_deplibs_check_method
15637
15638# Command to use when deplibs_check_method == "file_magic".
15639file_magic_cmd=$lt_file_magic_cmd
15640
15641# The archiver.
15642AR=$lt_AR
15643AR_FLAGS=$lt_AR_FLAGS
15644
15645# A symbol stripping program.
15646STRIP=$lt_STRIP
15647
15648# Commands used to install an old-style archive.
15649RANLIB=$lt_RANLIB
15650old_postinstall_cmds=$lt_old_postinstall_cmds
15651old_postuninstall_cmds=$lt_old_postuninstall_cmds
15652
15653# A C compiler.
15654LTCC=$lt_CC
15655
15656# LTCC compiler flags.
15657LTCFLAGS=$lt_CFLAGS
15658
15659# Take the output of nm and produce a listing of raw symbols and C names.
15660global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15661
15662# Transform the output of nm in a proper C declaration.
15663global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15664
15665# Transform the output of nm in a C name address pair.
15666global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15667
80c6c2cb
PG
15668# Transform the output of nm in a C name address pair when lib prefix is needed.
15669global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15670
1cf3d07d
SE
15671# The name of the directory that contains temporary libtool files.
15672objdir=$objdir
15673
15674# Shell to use when invoking shell scripts.
15675SHELL=$lt_SHELL
15676
15677# An echo program that does not interpret backslashes.
15678ECHO=$lt_ECHO
15679
15680# Used to examine libraries when file_magic_cmd begins with "file".
15681MAGIC_CMD=$MAGIC_CMD
15682
15683# Must we lock files when doing compilation?
15684need_locks=$lt_need_locks
15685
80c6c2cb
PG
15686# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15687DSYMUTIL=$lt_DSYMUTIL
15688
15689# Tool to change global to local symbols on Mac OS X.
15690NMEDIT=$lt_NMEDIT
15691
15692# Tool to manipulate fat objects and archives on Mac OS X.
15693LIPO=$lt_LIPO
15694
15695# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15696OTOOL=$lt_OTOOL
15697
15698# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15699OTOOL64=$lt_OTOOL64
15700
1cf3d07d
SE
15701# Old archive suffix (normally "a").
15702libext=$libext
15703
15704# Shared library suffix (normally ".so").
15705shrext_cmds=$lt_shrext_cmds
15706
15707# The commands to extract the exported symbol list from a shared archive.
15708extract_expsyms_cmds=$lt_extract_expsyms_cmds
15709
15710# Variables whose values should be saved in libtool wrapper scripts and
15711# restored at link time.
15712variables_saved_for_relink=$lt_variables_saved_for_relink
15713
15714# Do we need the "lib" prefix for modules?
15715need_lib_prefix=$need_lib_prefix
15716
15717# Do we need a version for libraries?
15718need_version=$need_version
15719
15720# Library versioning type.
15721version_type=$version_type
15722
15723# Shared library runtime path variable.
15724runpath_var=$runpath_var
15725
15726# Shared library path variable.
15727shlibpath_var=$shlibpath_var
15728
15729# Is shlibpath searched before the hard-coded library search path?
15730shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15731
15732# Format of library name prefix.
15733libname_spec=$lt_libname_spec
15734
15735# List of archive names. First name is the real one, the rest are links.
15736# The last name is the one that the linker finds with -lNAME
15737library_names_spec=$lt_library_names_spec
15738
15739# The coded name of the library, if different from the real name.
15740soname_spec=$lt_soname_spec
15741
15742# Command to use after installation of a shared archive.
15743postinstall_cmds=$lt_postinstall_cmds
15744
15745# Command to use after uninstallation of a shared archive.
15746postuninstall_cmds=$lt_postuninstall_cmds
15747
15748# Commands used to finish a libtool library installation in a directory.
15749finish_cmds=$lt_finish_cmds
15750
15751# As "finish_cmds", except a single script fragment to be evaled but
15752# not shown.
15753finish_eval=$lt_finish_eval
15754
15755# Whether we should hardcode library paths into libraries.
15756hardcode_into_libs=$hardcode_into_libs
15757
15758# Compile-time system search path for libraries.
15759sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15760
15761# Run-time system search path for libraries.
15762sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15763
15764# Whether dlopen is supported.
15765dlopen_support=$enable_dlopen
15766
15767# Whether dlopen of programs is supported.
15768dlopen_self=$enable_dlopen_self
15769
15770# Whether dlopen of statically linked programs is supported.
15771dlopen_self_static=$enable_dlopen_self_static
15772
15773# Commands to strip libraries.
15774old_striplib=$lt_old_striplib
15775striplib=$lt_striplib
15776
15777
15778# The linker used to build libraries.
15779LD=$lt_LD
15780
15781# Commands used to build an old-style archive.
15782old_archive_cmds=$lt_old_archive_cmds
15783
15784# A language specific compiler.
15785CC=$lt_compiler
15786
15787# Is the compiler the GNU compiler?
15788with_gcc=$GCC
15789
15790# Compiler flag to turn off builtin functions.
15791no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15792
15793# How to pass a linker flag through the compiler.
15794wl=$lt_lt_prog_compiler_wl
15795
15796# Additional compiler flags for building library objects.
15797pic_flag=$lt_lt_prog_compiler_pic
15798
15799# Compiler flag to prevent dynamic linking.
15800link_static_flag=$lt_lt_prog_compiler_static
15801
15802# Does compiler simultaneously support -c and -o options?
15803compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15804
15805# Whether or not to add -lc for building shared libraries.
15806build_libtool_need_lc=$archive_cmds_need_lc
15807
15808# Whether or not to disallow shared libs when runtime libs are static.
15809allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15810
15811# Compiler flag to allow reflexive dlopens.
15812export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15813
15814# Compiler flag to generate shared objects directly from archives.
15815whole_archive_flag_spec=$lt_whole_archive_flag_spec
15816
15817# Whether the compiler copes with passing no objects directly.
15818compiler_needs_object=$lt_compiler_needs_object
15819
15820# Create an old-style archive from a shared archive.
15821old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15822
15823# Create a temporary old-style archive to link instead of a shared archive.
15824old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15825
15826# Commands used to build a shared archive.
15827archive_cmds=$lt_archive_cmds
15828archive_expsym_cmds=$lt_archive_expsym_cmds
15829
15830# Commands used to build a loadable module if different from building
15831# a shared archive.
15832module_cmds=$lt_module_cmds
15833module_expsym_cmds=$lt_module_expsym_cmds
15834
15835# Whether we are building with GNU ld or not.
15836with_gnu_ld=$lt_with_gnu_ld
15837
15838# Flag that allows shared libraries with undefined symbols to be built.
15839allow_undefined_flag=$lt_allow_undefined_flag
15840
15841# Flag that enforces no undefined symbols.
15842no_undefined_flag=$lt_no_undefined_flag
15843
15844# Flag to hardcode \$libdir into a binary during linking.
15845# This must work even if \$libdir does not exist
15846hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15847
15848# If ld is used when linking, flag to hardcode \$libdir into a binary
15849# during linking. This must work even if \$libdir does not exist.
15850hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15851
15852# Whether we need a single "-rpath" flag with a separated argument.
15853hardcode_libdir_separator=$lt_hardcode_libdir_separator
15854
15855# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15856# DIR into the resulting binary.
15857hardcode_direct=$hardcode_direct
15858
15859# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15860# DIR into the resulting binary and the resulting library dependency is
15861# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15862# library is relocated.
15863hardcode_direct_absolute=$hardcode_direct_absolute
15864
15865# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15866# into the resulting binary.
15867hardcode_minus_L=$hardcode_minus_L
15868
15869# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15870# into the resulting binary.
15871hardcode_shlibpath_var=$hardcode_shlibpath_var
15872
15873# Set to "yes" if building a shared library automatically hardcodes DIR
15874# into the library and all subsequent libraries and executables linked
15875# against it.
15876hardcode_automatic=$hardcode_automatic
15877
15878# Set to yes if linker adds runtime paths of dependent libraries
15879# to runtime path list.
15880inherit_rpath=$inherit_rpath
15881
15882# Whether libtool must link a program against all its dependency libraries.
15883link_all_deplibs=$link_all_deplibs
15884
15885# Fix the shell variable \$srcfile for the compiler.
15886fix_srcfile_path=$lt_fix_srcfile_path
15887
15888# Set to "yes" if exported symbols are required.
15889always_export_symbols=$always_export_symbols
15890
15891# The commands to list exported symbols.
15892export_symbols_cmds=$lt_export_symbols_cmds
15893
15894# Symbols that should not be listed in the preloaded symbols.
15895exclude_expsyms=$lt_exclude_expsyms
15896
15897# Symbols that must always be exported.
15898include_expsyms=$lt_include_expsyms
15899
15900# Commands necessary for linking programs (against libraries) with templates.
15901prelink_cmds=$lt_prelink_cmds
15902
15903# Specify filename containing input files.
15904file_list_spec=$lt_file_list_spec
15905
15906# How to hardcode a shared library path into an executable.
15907hardcode_action=$hardcode_action
15908
15909# ### END LIBTOOL CONFIG
15910
15911_LT_EOF
15912
15913 case $host_os in
15914 aix3*)
15915 cat <<\_LT_EOF >> "$cfgfile"
15916# AIX sometimes has problems with the GCC collect2 program. For some
15917# reason, if we set the COLLECT_NAMES environment variable, the problems
15918# vanish in a puff of smoke.
15919if test "X${COLLECT_NAMES+set}" != Xset; then
15920 COLLECT_NAMES=
15921 export COLLECT_NAMES
15922fi
15923_LT_EOF
15924 ;;
15925 esac
15926
15927
15928ltmain="$ac_aux_dir/ltmain.sh"
15929
15930
15931 # We use sed instead of cat because bash on DJGPP gets confused if
15932 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15933 # text mode, it properly converts lines to CR/LF. This bash problem
15934 # is reportedly fixed, but why not run on old versions too?
15935 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15936 || (rm -f "$cfgfile"; exit 1)
15937
15938 case $xsi_shell in
15939 yes)
15940 cat << \_LT_EOF >> "$cfgfile"
80c6c2cb 15941
1cf3d07d
SE
15942# func_dirname file append nondir_replacement
15943# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15944# otherwise set result to NONDIR_REPLACEMENT.
15945func_dirname ()
15946{
15947 case ${1} in
15948 */*) func_dirname_result="${1%/*}${2}" ;;
15949 * ) func_dirname_result="${3}" ;;
15950 esac
15951}
15952
15953# func_basename file
15954func_basename ()
15955{
15956 func_basename_result="${1##*/}"
15957}
15958
80c6c2cb
PG
15959# func_dirname_and_basename file append nondir_replacement
15960# perform func_basename and func_dirname in a single function
15961# call:
15962# dirname: Compute the dirname of FILE. If nonempty,
15963# add APPEND to the result, otherwise set result
15964# to NONDIR_REPLACEMENT.
15965# value returned in "$func_dirname_result"
15966# basename: Compute filename of FILE.
15967# value retuned in "$func_basename_result"
15968# Implementation must be kept synchronized with func_dirname
15969# and func_basename. For efficiency, we do not delegate to
15970# those functions but instead duplicate the functionality here.
15971func_dirname_and_basename ()
15972{
15973 case ${1} in
15974 */*) func_dirname_result="${1%/*}${2}" ;;
15975 * ) func_dirname_result="${3}" ;;
15976 esac
15977 func_basename_result="${1##*/}"
15978}
15979
1cf3d07d
SE
15980# func_stripname prefix suffix name
15981# strip PREFIX and SUFFIX off of NAME.
15982# PREFIX and SUFFIX must not contain globbing or regex special
15983# characters, hashes, percent signs, but SUFFIX may contain a leading
15984# dot (in which case that matches only a dot).
15985func_stripname ()
15986{
15987 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15988 # positional parameters, so assign one to ordinary parameter first.
15989 func_stripname_result=${3}
15990 func_stripname_result=${func_stripname_result#"${1}"}
15991 func_stripname_result=${func_stripname_result%"${2}"}
15992}
15993
15994# func_opt_split
15995func_opt_split ()
15996{
15997 func_opt_split_opt=${1%%=*}
15998 func_opt_split_arg=${1#*=}
15999}
16000
16001# func_lo2o object
16002func_lo2o ()
16003{
16004 case ${1} in
16005 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16006 *) func_lo2o_result=${1} ;;
16007 esac
16008}
80c6c2cb
PG
16009
16010# func_xform libobj-or-source
16011func_xform ()
16012{
16013 func_xform_result=${1%.*}.lo
16014}
16015
16016# func_arith arithmetic-term...
16017func_arith ()
16018{
16019 func_arith_result=$(( $* ))
16020}
16021
16022# func_len string
16023# STRING may not start with a hyphen.
16024func_len ()
16025{
16026 func_len_result=${#1}
16027}
16028
1cf3d07d
SE
16029_LT_EOF
16030 ;;
16031 *) # Bourne compatible functions.
16032 cat << \_LT_EOF >> "$cfgfile"
80c6c2cb 16033
1cf3d07d
SE
16034# func_dirname file append nondir_replacement
16035# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16036# otherwise set result to NONDIR_REPLACEMENT.
16037func_dirname ()
16038{
16039 # Extract subdirectory from the argument.
16040 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16041 if test "X$func_dirname_result" = "X${1}"; then
16042 func_dirname_result="${3}"
16043 else
16044 func_dirname_result="$func_dirname_result${2}"
16045 fi
16046}
16047
16048# func_basename file
16049func_basename ()
16050{
16051 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16052}
16053
80c6c2cb 16054
1cf3d07d
SE
16055# func_stripname prefix suffix name
16056# strip PREFIX and SUFFIX off of NAME.
16057# PREFIX and SUFFIX must not contain globbing or regex special
16058# characters, hashes, percent signs, but SUFFIX may contain a leading
16059# dot (in which case that matches only a dot).
16060# func_strip_suffix prefix name
16061func_stripname ()
16062{
16063 case ${2} in
16064 .*) func_stripname_result=`$ECHO "X${3}" \
16065 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16066 *) func_stripname_result=`$ECHO "X${3}" \
16067 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16068 esac
16069}
16070
16071# sed scripts:
16072my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16073my_sed_long_arg='1s/^-[^=]*=//'
16074
16075# func_opt_split
16076func_opt_split ()
16077{
16078 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16079 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16080}
16081
16082# func_lo2o object
16083func_lo2o ()
16084{
16085 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16086}
80c6c2cb
PG
16087
16088# func_xform libobj-or-source
16089func_xform ()
16090{
16091 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16092}
16093
16094# func_arith arithmetic-term...
16095func_arith ()
16096{
16097 func_arith_result=`expr "$@"`
16098}
16099
16100# func_len string
16101# STRING may not start with a hyphen.
16102func_len ()
16103{
16104 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16105}
16106
1cf3d07d
SE
16107_LT_EOF
16108esac
16109
16110case $lt_shell_append in
16111 yes)
16112 cat << \_LT_EOF >> "$cfgfile"
16113
16114# func_append var value
16115# Append VALUE to the end of shell variable VAR.
16116func_append ()
16117{
16118 eval "$1+=\$2"
16119}
16120_LT_EOF
16121 ;;
16122 *)
16123 cat << \_LT_EOF >> "$cfgfile"
16124
16125# func_append var value
16126# Append VALUE to the end of shell variable VAR.
16127func_append ()
16128{
16129 eval "$1=\$$1\$2"
16130}
80c6c2cb 16131
1cf3d07d
SE
16132_LT_EOF
16133 ;;
16134 esac
16135
16136
16137 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16138 || (rm -f "$cfgfile"; exit 1)
16139
16140 mv -f "$cfgfile" "$ofile" ||
16141 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16142 chmod +x "$ofile"
16143
3ed8e5b6
AT
16144 ;;
16145 include ) test -d include || mkdir include ;;
16146 src )
16147test -d src || mkdir src
16148test -d src/$TARGETDIR || mkdir src/$TARGETDIR
16149 ;;
16150 esac
16151done
16152_ACEOF
16153
16154cat >>$CONFIG_STATUS <<\_ACEOF
16155
16156{ (exit 0); exit 0; }
16157_ACEOF
63e5e3e0 16158chmod +x $CONFIG_STATUS
3ed8e5b6
AT
16159ac_clean_files=$ac_clean_files_save
16160
16161
16162# configure is writing to config.log, and then calls config.status.
16163# config.status does its own redirection, appending to config.log.
16164# Unfortunately, on DOS this fails, as config.log is still kept open
16165# by configure, so config.status won't be able to write to it; its
16166# output is simply discarded. So we exec the FD to /dev/null,
16167# effectively closing config.log, so it can be properly (re)opened and
16168# appended to by config.status. When coming back to configure, we
16169# need to make the FD available again.
16170if test "$no_create" != yes; then
16171 ac_cs_success=:
16172 ac_config_status_args=
16173 test "$silent" = yes &&
16174 ac_config_status_args="$ac_config_status_args --quiet"
16175 exec 5>/dev/null
16176 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16177 exec 5>>config.log
16178 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16179 # would make configure fail if this is the last instruction.
16180 $ac_cs_success || { (exit 1); exit 1; }
16181fi
63e5e3e0 16182
This page took 2.684036 seconds and 5 git commands to generate.