]> git.ipfire.org Git - thirdparty/gcc.git/blame - libffi/configure
* configure: Regenerate.
[thirdparty/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
8d5c5e35 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 AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO 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=''
63e5e3e0
AG
464
465# Initialize some variables set by options.
3ed8e5b6
AT
466ac_init_help=
467ac_init_version=false
63e5e3e0
AG
468# The variables have the same names as the options, with
469# dashes changed to underlines.
3ed8e5b6 470cache_file=/dev/null
63e5e3e0 471exec_prefix=NONE
63e5e3e0 472no_create=
63e5e3e0
AG
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
63e5e3e0
AG
481verbose=
482x_includes=NONE
483x_libraries=NONE
3ed8e5b6
AT
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
63e5e3e0
AG
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
63e5e3e0
AG
503ac_prev=
504for ac_option
505do
63e5e3e0
AG
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
3ed8e5b6 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
63e5e3e0
AG
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
3ed8e5b6 517 case $ac_option in
63e5e3e0
AG
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
3ed8e5b6 522 bindir=$ac_optarg ;;
63e5e3e0
AG
523
524 -build | --build | --buil | --bui | --bu)
3ed8e5b6 525 ac_prev=build_alias ;;
63e5e3e0 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
3ed8e5b6 527 build_alias=$ac_optarg ;;
63e5e3e0
AG
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3ed8e5b6
AT
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
63e5e3e0
AG
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
3ed8e5b6 543 datadir=$ac_optarg ;;
63e5e3e0
AG
544
545 -disable-* | --disable-*)
3ed8e5b6 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
63e5e3e0 547 # Reject names that are not valid shell variable names.
3ed8e5b6
AT
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
63e5e3e0
AG
553
554 -enable-* | --enable-*)
3ed8e5b6 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
63e5e3e0 556 # Reject names that are not valid shell variable names.
3ed8e5b6
AT
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
63e5e3e0
AG
563 *) ac_optarg=yes ;;
564 esac
3ed8e5b6 565 eval "enable_$ac_feature='$ac_optarg'" ;;
63e5e3e0
AG
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
3ed8e5b6 574 exec_prefix=$ac_optarg ;;
63e5e3e0
AG
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
3ed8e5b6
AT
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
63e5e3e0
AG
586
587 -host | --host | --hos | --ho)
3ed8e5b6 588 ac_prev=host_alias ;;
63e5e3e0 589 -host=* | --host=* | --hos=* | --ho=*)
3ed8e5b6 590 host_alias=$ac_optarg ;;
63e5e3e0
AG
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
3ed8e5b6 597 includedir=$ac_optarg ;;
63e5e3e0
AG
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
3ed8e5b6 602 infodir=$ac_optarg ;;
63e5e3e0
AG
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
3ed8e5b6 607 libdir=$ac_optarg ;;
63e5e3e0
AG
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
3ed8e5b6 614 libexecdir=$ac_optarg ;;
63e5e3e0
AG
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
3ed8e5b6 623 localstatedir=$ac_optarg ;;
63e5e3e0
AG
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3ed8e5b6 628 mandir=$ac_optarg ;;
63e5e3e0
AG
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
3ed8e5b6 635 | --no-cr | --no-c | -n)
63e5e3e0
AG
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
3ed8e5b6 649 oldincludedir=$ac_optarg ;;
63e5e3e0
AG
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3ed8e5b6 654 prefix=$ac_optarg ;;
63e5e3e0
AG
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
3ed8e5b6 661 program_prefix=$ac_optarg ;;
63e5e3e0
AG
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
3ed8e5b6 668 program_suffix=$ac_optarg ;;
63e5e3e0
AG
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
3ed8e5b6 685 program_transform_name=$ac_optarg ;;
63e5e3e0
AG
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
3ed8e5b6 695 sbindir=$ac_optarg ;;
63e5e3e0
AG
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
3ed8e5b6 706 sharedstatedir=$ac_optarg ;;
63e5e3e0
AG
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
3ed8e5b6 711 site=$ac_optarg ;;
63e5e3e0
AG
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3ed8e5b6 716 srcdir=$ac_optarg ;;
63e5e3e0
AG
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3ed8e5b6 723 sysconfdir=$ac_optarg ;;
63e5e3e0
AG
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
3ed8e5b6 726 ac_prev=target_alias ;;
63e5e3e0 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
3ed8e5b6 728 target_alias=$ac_optarg ;;
63e5e3e0
AG
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
3ed8e5b6
AT
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
63e5e3e0
AG
735
736 -with-* | --with-*)
3ed8e5b6 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
63e5e3e0 738 # Reject names that are not valid shell variable names.
3ed8e5b6
AT
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
63e5e3e0 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
3ed8e5b6
AT
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
63e5e3e0
AG
745 *) ac_optarg=yes ;;
746 esac
3ed8e5b6 747 eval "with_$ac_package='$ac_optarg'" ;;
63e5e3e0
AG
748
749 -without-* | --without-*)
3ed8e5b6 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
63e5e3e0 751 # Reject names that are not valid shell variable names.
3ed8e5b6
AT
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
63e5e3e0
AG
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
3ed8e5b6 767 x_includes=$ac_optarg ;;
63e5e3e0
AG
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
3ed8e5b6 774 x_libraries=$ac_optarg ;;
63e5e3e0 775
3ed8e5b6
AT
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
63e5e3e0
AG
779 ;;
780
3ed8e5b6
AT
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
63e5e3e0 791 *)
3ed8e5b6
AT
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
63e5e3e0
AG
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
3ed8e5b6
AT
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
63e5e3e0 806fi
63e5e3e0 807
3ed8e5b6
AT
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
63e5e3e0 818
3ed8e5b6
AT
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
63e5e3e0 822do
3ed8e5b6
AT
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
63e5e3e0
AG
828 esac
829done
830
3ed8e5b6
AT
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
63e5e3e0 848
3ed8e5b6
AT
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
63e5e3e0 853
63e5e3e0
AG
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
3ed8e5b6
AT
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
63e5e3e0
AG
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
3ed8e5b6
AT
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
63e5e3e0 882 else
3ed8e5b6
AT
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
63e5e3e0
AG
885 fi
886fi
3ed8e5b6
AT
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
076e5443
PB
903ac_env_CCAS_set=${CCAS+set}
904ac_env_CCAS_value=$CCAS
905ac_cv_env_CCAS_set=${CCAS+set}
906ac_cv_env_CCAS_value=$CCAS
907ac_env_CCASFLAGS_set=${CCASFLAGS+set}
908ac_env_CCASFLAGS_value=$CCASFLAGS
909ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
910ac_cv_env_CCASFLAGS_value=$CCASFLAGS
3ed8e5b6
AT
911ac_env_CPP_set=${CPP+set}
912ac_env_CPP_value=$CPP
913ac_cv_env_CPP_set=${CPP+set}
914ac_cv_env_CPP_value=$CPP
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
63e5e3e0 919
3ed8e5b6
AT
920#
921# Report the --help message.
922#
923if test "$ac_init_help" = "long"; then
924 # Omit some internal or obsolete options to make the list less imposing.
925 # This message is too long to be a string in the A/UX 3.1 sh.
926 cat <<_ACEOF
927\`configure' configures libffi 2.1 to adapt to many kinds of systems.
63e5e3e0 928
3ed8e5b6
AT
929Usage: $0 [OPTION]... [VAR=VALUE]...
930
931To assign environment variables (e.g., CC, CFLAGS...), specify them as
932VAR=VALUE. See below for descriptions of some of the useful variables.
933
934Defaults for the options are specified in brackets.
935
936Configuration:
937 -h, --help display this help and exit
938 --help=short display options specific to this package
939 --help=recursive display the short help of all the included packages
940 -V, --version display version information and exit
941 -q, --quiet, --silent do not print \`checking...' messages
942 --cache-file=FILE cache test results in FILE [disabled]
943 -C, --config-cache alias for \`--cache-file=config.cache'
944 -n, --no-create do not create output files
945 --srcdir=DIR find the sources in DIR [configure dir or \`..']
946
947_ACEOF
948
949 cat <<_ACEOF
950Installation directories:
951 --prefix=PREFIX install architecture-independent files in PREFIX
952 [$ac_default_prefix]
953 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
954 [PREFIX]
955
956By default, \`make install' will install all the files in
957\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
958an installation prefix other than \`$ac_default_prefix' using \`--prefix',
959for instance \`--prefix=\$HOME'.
960
961For better control, use the options below.
962
963Fine tuning of the installation directories:
964 --bindir=DIR user executables [EPREFIX/bin]
965 --sbindir=DIR system admin executables [EPREFIX/sbin]
966 --libexecdir=DIR program executables [EPREFIX/libexec]
967 --datadir=DIR read-only architecture-independent data [PREFIX/share]
968 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
969 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
970 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
971 --libdir=DIR object code libraries [EPREFIX/lib]
972 --includedir=DIR C header files [PREFIX/include]
973 --oldincludedir=DIR C header files for non-gcc [/usr/include]
974 --infodir=DIR info documentation [PREFIX/info]
975 --mandir=DIR man documentation [PREFIX/man]
976_ACEOF
977
978 cat <<\_ACEOF
979
980Program names:
981 --program-prefix=PREFIX prepend PREFIX to installed program names
982 --program-suffix=SUFFIX append SUFFIX to installed program names
983 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
984
985System types:
986 --build=BUILD configure for building on BUILD [guessed]
987 --host=HOST cross-compile to build programs to run on HOST [BUILD]
988 --target=TARGET configure for building compilers for TARGET [HOST]
989_ACEOF
990fi
991
992if test -n "$ac_init_help"; then
993 case $ac_init_help in
994 short | recursive ) echo "Configuration of libffi 2.1:";;
995 esac
996 cat <<\_ACEOF
997
998Optional Features:
999 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1000 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
076e5443
PB
1001 --enable-multilib build many library versions (default)
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
1cf3d07d
SE
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=yes]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
3ed8e5b6 1010 --disable-libtool-lock avoid locking (might break parallel builds)
076e5443
PB
1011 --enable-maintainer-mode enable make rules and dependencies not useful
1012 (and sometimes confusing) to the casual installer
3ed8e5b6
AT
1013 --enable-debug debugging mode
1014 --disable-structs omit code for struct support
1015 --disable-raw-api make the raw api unavailable
1016 --enable-purify-safety purify-safe mode
1017
1018Optional Packages:
1019 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1020 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
1021 --with-pic try to use only PIC/non-PIC objects [default=use
1022 both]
1023 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3ed8e5b6
AT
1024
1025Some influential environment variables:
1026 CC C compiler command
1027 CFLAGS C compiler flags
1028 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1029 nonstandard directory <lib dir>
1030 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1031 headers in a nonstandard directory <include dir>
076e5443
PB
1032 CCAS assembler compiler command (defaults to CC)
1033 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
3ed8e5b6
AT
1034 CPP C preprocessor
1035
1036Use these variables to override the choices made by `configure' or to help
1037it to find libraries and programs with nonstandard names/locations.
1038
1039Report bugs to <http://gcc.gnu.org/bugs.html>.
1040_ACEOF
63e5e3e0
AG
1041fi
1042
3ed8e5b6
AT
1043if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1045 ac_popdir=`pwd`
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1048 ac_builddir=.
1049
1050if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
63e5e3e0 1054else
3ed8e5b6 1055 ac_dir_suffix= ac_top_builddir=
63e5e3e0
AG
1056fi
1057
3ed8e5b6
AT
1058case $srcdir in
1059 .) # No --srcdir option. We are building in place.
1060 ac_srcdir=.
1061 if test -z "$ac_top_builddir"; then
1062 ac_top_srcdir=.
1063 else
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1065 fi ;;
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1069 *) # Relative path.
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1072esac
675cdab3 1073
3ed8e5b6
AT
1074# Do not use `cd foo && pwd` to compute absolute paths, because
1075# the directories may not exist.
1076case `pwd` in
1077.) ac_abs_builddir="$ac_dir";;
1078*)
1079 case "$ac_dir" in
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083 esac;;
1084esac
1085case $ac_abs_builddir in
1086.) ac_abs_top_builddir=${ac_top_builddir}.;;
1087*)
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092 esac;;
1093esac
1094case $ac_abs_builddir in
1095.) ac_abs_srcdir=$ac_srcdir;;
1096*)
1097 case $ac_srcdir in
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101 esac;;
1102esac
1103case $ac_abs_builddir in
1104.) ac_abs_top_srcdir=$ac_top_srcdir;;
1105*)
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110 esac;;
1111esac
675cdab3 1112
3ed8e5b6
AT
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
88d8c771 1128 cd $ac_popdir
3ed8e5b6 1129 done
675cdab3
BM
1130fi
1131
3ed8e5b6
AT
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
1135libffi configure 2.1
1136generated by GNU Autoconf 2.59
675cdab3 1137
3ed8e5b6
AT
1138Copyright (C) 2003 Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
675cdab3 1143fi
3ed8e5b6
AT
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
675cdab3 1148
3ed8e5b6
AT
1149It was created by libffi $as_me 2.1, which was
1150generated by GNU Autoconf 2.59. Invocation command line was
63e5e3e0 1151
3ed8e5b6 1152 $ $0 $@
63e5e3e0 1153
3ed8e5b6
AT
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
63e5e3e0 1187
3ed8e5b6 1188} >&5
63e5e3e0 1189
3ed8e5b6 1190cat >&5 <<_ACEOF
63e5e3e0 1191
6706f116 1192
3ed8e5b6
AT
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
3c18f2d1 1196
3ed8e5b6 1197_ACEOF
3c18f2d1 1198
3c18f2d1 1199
3ed8e5b6
AT
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
1202# Strip out --silent because we don't want to record it for future runs.
1203# Also quote any args containing shell meta-characters.
1204# Make two passes to allow for proper duplicate-argument suppression.
1205ac_configure_args=
1206ac_configure_args0=
1207ac_configure_args1=
1208ac_sep=
1209ac_must_keep_next=false
1210for ac_pass in 1 2
1211do
1212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
63e5e3e0 1247done
3ed8e5b6
AT
1248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
1260
1261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
1283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
63e5e3e0 1311
3ed8e5b6
AT
1312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
1319 sed "/^$/d" confdefs.h | sort
1320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
63e5e3e0 1334
3ed8e5b6
AT
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
6bee5372 1339
3ed8e5b6 1340# Predefined preprocessor variables.
bbf3057b 1341
3ed8e5b6
AT
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
bbf3057b
AT
1345
1346
3ed8e5b6
AT
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
63e5e3e0 1350
63e5e3e0 1351
3ed8e5b6
AT
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
63e5e3e0 1355
bbf3057b 1356
3ed8e5b6
AT
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
bbf3057b 1360
bbf3057b 1361
3ed8e5b6
AT
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444done
1445if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485 ac_config_headers="$ac_config_headers fficonfig.h"
1486
1487
1488# Default to --enable-multilib
1489# Check whether --enable-multilib or --disable-multilib was given.
1490if test "${enable_multilib+set}" = set; then
1491 enableval="$enable_multilib"
1492 case "$enableval" in
1493 yes) multilib=yes ;;
1494 no) multilib=no ;;
1495 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1496echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1497 { (exit 1); exit 1; }; } ;;
1498 esac
1499else
1500 multilib=yes
1501fi;
1502
1503# We may get other options which we leave undocumented:
1504# --with-target-subdir, --with-multisrctop, --with-multisubdir
1505# See config-ml.in if you want the gory details.
1506
1507if test "$srcdir" = "."; then
1508 if test "$with_target_subdir" != "."; then
1509 multi_basedir="$srcdir/$with_multisrctop../.."
1510 else
1511 multi_basedir="$srcdir/$with_multisrctop.."
1512 fi
1513else
1514 multi_basedir="$srcdir/.."
1515fi
1516
1517
8a489465
JH
1518# Even if the default multilib is not a cross compilation,
1519# it may be that some of the other multilibs are.
1520if test $cross_compiling = no && test $multilib = yes \
1521 && test "x${with_multisubdir}" != x ; then
1522 cross_compiling=maybe
1523fi
1524
3ed8e5b6
AT
1525 ac_config_commands="$ac_config_commands default-1"
1526
3ed8e5b6 1527
076e5443
PB
1528ac_aux_dir=
1529for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3ed8e5b6
AT
1530 if test -f $ac_dir/install-sh; then
1531 ac_aux_dir=$ac_dir
1532 ac_install_sh="$ac_aux_dir/install-sh -c"
1533 break
1534 elif test -f $ac_dir/install.sh; then
1535 ac_aux_dir=$ac_dir
1536 ac_install_sh="$ac_aux_dir/install.sh -c"
1537 break
1538 elif test -f $ac_dir/shtool; then
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/shtool install -c"
1541 break
1542 fi
1543done
1544if test -z "$ac_aux_dir"; then
076e5443
PB
1545 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1546echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3ed8e5b6
AT
1547 { (exit 1); exit 1; }; }
1548fi
1549ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1550ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1551ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1552
3ed8e5b6
AT
1553# Make sure we can run config.sub.
1554$ac_config_sub sun4 >/dev/null 2>&1 ||
1555 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1556echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1557 { (exit 1); exit 1; }; }
1558
1559echo "$as_me:$LINENO: checking build system type" >&5
1560echo $ECHO_N "checking build system type... $ECHO_C" >&6
1561if test "${ac_cv_build+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 ac_cv_build_alias=$build_alias
1565test -z "$ac_cv_build_alias" &&
1566 ac_cv_build_alias=`$ac_config_guess`
1567test -z "$ac_cv_build_alias" &&
1568 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1569echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1570 { (exit 1); exit 1; }; }
1571ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1572 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1573echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1574 { (exit 1); exit 1; }; }
1575
1576fi
1577echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1578echo "${ECHO_T}$ac_cv_build" >&6
1579build=$ac_cv_build
1580build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583
1584
1585echo "$as_me:$LINENO: checking host system type" >&5
1586echo $ECHO_N "checking host system type... $ECHO_C" >&6
1587if test "${ac_cv_host+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590 ac_cv_host_alias=$host_alias
1591test -z "$ac_cv_host_alias" &&
1592 ac_cv_host_alias=$ac_cv_build_alias
1593ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1594 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1595echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1596 { (exit 1); exit 1; }; }
1597
1598fi
1599echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1600echo "${ECHO_T}$ac_cv_host" >&6
1601host=$ac_cv_host
1602host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1603host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1604host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1605
1606
1607echo "$as_me:$LINENO: checking target system type" >&5
1608echo $ECHO_N "checking target system type... $ECHO_C" >&6
1609if test "${ac_cv_target+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1611else
1612 ac_cv_target_alias=$target_alias
1613test "x$ac_cv_target_alias" = "x" &&
1614 ac_cv_target_alias=$ac_cv_host_alias
1615ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1616 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1617echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1618 { (exit 1); exit 1; }; }
1619
1620fi
1621echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1622echo "${ECHO_T}$ac_cv_target" >&6
1623target=$ac_cv_target
1624target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1625target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1626target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1627
1628
1629# The aliases save the names the user supplied, while $host etc.
1630# will get canonicalized.
1631test -n "$target_alias" &&
bbf3057b
AT
1632 test "$program_prefix$program_suffix$program_transform_name" = \
1633 NONENONEs,x,x, &&
1634 program_prefix=${target_alias}-
3ed8e5b6
AT
1635target_alias=${target_alias-$host_alias}
1636
88d8c771
AG
1637. ${srcdir}/configure.host
1638
b85e31b9 1639am__api_version="1.9"
3ed8e5b6
AT
1640# Find a good install program. We prefer a C program (faster),
1641# so one script is as good as another. But avoid the broken or
1642# incompatible versions:
1643# SysV /etc/install, /usr/sbin/install
1644# SunOS /usr/etc/install
1645# IRIX /sbin/install
1646# AIX /bin/install
1647# AmigaOS /C/install, which installs bootblocks on floppy discs
1648# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1649# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1650# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1651# OS/2's system install, which has a completely different semantic
1652# ./install, which can be erroneously created by make from ./install.sh.
1653echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1654echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1655if test -z "$INSTALL"; then
1656if test "${ac_cv_path_install+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660for as_dir in $PATH
1661do
1662 IFS=$as_save_IFS
1663 test -z "$as_dir" && as_dir=.
1664 # Account for people who put trailing slashes in PATH elements.
1665case $as_dir/ in
1666 ./ | .// | /cC/* | \
1667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1668 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1669 /usr/ucb/* ) ;;
1670 *)
1671 # OSF1 and SCO ODT 3.0 have their own names for install.
1672 # Don't use installbsd from OSF since it installs stuff as root
1673 # by default.
1674 for ac_prog in ginstall scoinst install; do
1675 for ac_exec_ext in '' $ac_executable_extensions; do
1676 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1677 if test $ac_prog = install &&
1678 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1679 # AIX install. It has an incompatible calling convention.
1680 :
1681 elif test $ac_prog = install &&
1682 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1683 # program-specific install script used by HP pwplus--don't use.
1684 :
1685 else
1686 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1687 break 3
1688 fi
1689 fi
1690 done
1691 done
1692 ;;
1693esac
1694done
1695
1696
1697fi
1698 if test "${ac_cv_path_install+set}" = set; then
1699 INSTALL=$ac_cv_path_install
1700 else
1701 # As a last resort, use the slow shell script. We don't cache a
1702 # path for INSTALL within a source directory, because that will
1703 # break other packages using the cache if that directory is
1704 # removed, or if the path is relative.
1705 INSTALL=$ac_install_sh
1706 fi
1707fi
1708echo "$as_me:$LINENO: result: $INSTALL" >&5
1709echo "${ECHO_T}$INSTALL" >&6
1710
1711# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1712# It thinks the first close brace ends the variable substitution.
1713test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1714
1715test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1716
1717test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1718
1719echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1720echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1721# Just in case
1722sleep 1
1723echo timestamp > conftest.file
1724# Do `set' in a subshell so we don't clobber the current shell's
1725# arguments. Must try -L first in case configure is actually a
1726# symlink; some systems play weird games with the mod time of symlinks
1727# (eg FreeBSD returns the mod time of the symlink's containing
1728# directory).
1729if (
1730 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1731 if test "$*" = "X"; then
1732 # -L didn't work.
1733 set X `ls -t $srcdir/configure conftest.file`
1734 fi
1735 rm -f conftest.file
1736 if test "$*" != "X $srcdir/configure conftest.file" \
1737 && test "$*" != "X conftest.file $srcdir/configure"; then
1738
1739 # If neither matched, then we have a broken ls. This can happen
1740 # if, for instance, CONFIG_SHELL is bash and it inherits a
1741 # broken ls alias from the environment. This has actually
1742 # happened. Such a system could not be considered "sane".
1743 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1744alias in your environment" >&5
1745echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1746alias in your environment" >&2;}
1747 { (exit 1); exit 1; }; }
1748 fi
1749
1750 test "$2" = conftest.file
1751 )
1752then
1753 # Ok.
1754 :
1755else
1756 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1757Check your system clock" >&5
1758echo "$as_me: error: newly created file is older than distributed files!
1759Check your system clock" >&2;}
1760 { (exit 1); exit 1; }; }
1761fi
1762echo "$as_me:$LINENO: result: yes" >&5
1763echo "${ECHO_T}yes" >&6
1764test "$program_prefix" != NONE &&
1765 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1766# Use a double $ so make ignores it.
1767test "$program_suffix" != NONE &&
1768 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1769# Double any \ or $. echo might interpret backslashes.
1770# By default was `s,x,x', remove it if useless.
1771cat <<\_ACEOF >conftest.sed
1772s/[\\$]/&&/g;s/;s,x,x,$//
1773_ACEOF
1774program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1775rm conftest.sed
1776
3ed8e5b6
AT
1777# expand $ac_aux_dir to an absolute path
1778am_aux_dir=`cd $ac_aux_dir && pwd`
1779
1780test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1781# Use eval to expand $SHELL
1782if eval "$MISSING --run true"; then
1783 am_missing_run="$MISSING --run "
1784else
1785 am_missing_run=
1786 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1787echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1788fi
1789
076e5443 1790if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
b85e31b9
KC
1791 # We used to keeping the `.' as first argument, in order to
1792 # allow $(mkdir_p) to be used without argument. As in
076e5443 1793 # $(mkdir_p) $(somedir)
b85e31b9
KC
1794 # where $(somedir) is conditionally defined. However this is wrong
1795 # for two reasons:
1796 # 1. if the package is installed by a user who cannot write `.'
1797 # make install will fail,
1798 # 2. the above comment should most certainly read
1799 # $(mkdir_p) $(DESTDIR)$(somedir)
1800 # so it does not work when $(somedir) is undefined and
1801 # $(DESTDIR) is not.
1802 # To support the latter case, we have to write
1803 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1804 # so the `.' trick is pointless.
1805 mkdir_p='mkdir -p --'
076e5443
PB
1806else
1807 # On NextStep and OpenStep, the `mkdir' command does not
1808 # recognize any option. It will interpret all options as
1809 # directories to create, and then abort because `.' already
1810 # exists.
1811 for d in ./-p ./--version;
1812 do
1813 test -d $d && rmdir $d
1814 done
1815 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1816 if test -f "$ac_aux_dir/mkinstalldirs"; then
1817 mkdir_p='$(mkinstalldirs)'
1818 else
1819 mkdir_p='$(install_sh) -d'
1820 fi
1821fi
1822
3ed8e5b6
AT
1823for ac_prog in gawk mawk nawk awk
1824do
1825 # Extract the first word of "$ac_prog", so it can be a program name with args.
1826set dummy $ac_prog; ac_word=$2
1827echo "$as_me:$LINENO: checking for $ac_word" >&5
1828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829if test "${ac_cv_prog_AWK+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831else
1832 if test -n "$AWK"; then
1833 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1834else
1835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836for as_dir in $PATH
1837do
1838 IFS=$as_save_IFS
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_AWK="$ac_prog"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 break 2
1845 fi
1846done
1847done
1848
1849fi
1850fi
1851AWK=$ac_cv_prog_AWK
1852if test -n "$AWK"; then
1853 echo "$as_me:$LINENO: result: $AWK" >&5
1854echo "${ECHO_T}$AWK" >&6
1855else
1856 echo "$as_me:$LINENO: result: no" >&5
1857echo "${ECHO_T}no" >&6
1858fi
1859
1860 test -n "$AWK" && break
1861done
1862
1863echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1864echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1865set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1866if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868else
1869 cat >conftest.make <<\_ACEOF
1870all:
1871 @echo 'ac_maketemp="$(MAKE)"'
1872_ACEOF
1873# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1874eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1875if test -n "$ac_maketemp"; then
1876 eval ac_cv_prog_make_${ac_make}_set=yes
1877else
1878 eval ac_cv_prog_make_${ac_make}_set=no
1879fi
1880rm -f conftest.make
1881fi
1882if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1883 echo "$as_me:$LINENO: result: yes" >&5
1884echo "${ECHO_T}yes" >&6
1885 SET_MAKE=
1886else
1887 echo "$as_me:$LINENO: result: no" >&5
1888echo "${ECHO_T}no" >&6
1889 SET_MAKE="MAKE=${MAKE-make}"
1890fi
1891
1892rm -rf .tst 2>/dev/null
1893mkdir .tst 2>/dev/null
1894if test -d .tst; then
1895 am__leading_dot=.
1896else
1897 am__leading_dot=_
1898fi
1899rmdir .tst 2>/dev/null
1900
076e5443 1901# test to see if srcdir already configured
3ed8e5b6
AT
1902if test "`cd $srcdir && pwd`" != "`pwd`" &&
1903 test -f $srcdir/config.status; then
1904 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1905echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1906 { (exit 1); exit 1; }; }
1907fi
1908
1909# test whether we have cygpath
1910if test -z "$CYGPATH_W"; then
1911 if (cygpath --version) >/dev/null 2>/dev/null; then
1912 CYGPATH_W='cygpath -w'
1913 else
1914 CYGPATH_W=echo
1915 fi
1916fi
1917
1918
1919# Define the identity of the package.
1920 PACKAGE='libffi'
1921 VERSION='2.1'
1922
1923
1924cat >>confdefs.h <<_ACEOF
1925#define PACKAGE "$PACKAGE"
1926_ACEOF
1927
1928
1929cat >>confdefs.h <<_ACEOF
1930#define VERSION "$VERSION"
1931_ACEOF
1932
1933# Some tools Automake needs.
1934
1935ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1936
1937
1938AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1939
1940
1941AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1942
1943
1944AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1945
1946
1947MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1948
3ed8e5b6
AT
1949install_sh=${install_sh-"$am_aux_dir/install-sh"}
1950
1951# Installed binaries are usually stripped using `strip' when the user
1952# run `make install-strip'. However `strip' might not be the right
1953# tool to use in cross-compilation environments, therefore Automake
1954# will honor the `STRIP' environment variable to overrule this program.
1955if test "$cross_compiling" != no; then
1956 if test -n "$ac_tool_prefix"; then
1957 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1958set dummy ${ac_tool_prefix}strip; ac_word=$2
1959echo "$as_me:$LINENO: checking for $ac_word" >&5
1960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961if test "${ac_cv_prog_STRIP+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1963else
1964 if test -n "$STRIP"; then
1965 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1966else
1967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968for as_dir in $PATH
1969do
1970 IFS=$as_save_IFS
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976 break 2
1977 fi
1978done
1979done
1980
1981fi
1982fi
1983STRIP=$ac_cv_prog_STRIP
1984if test -n "$STRIP"; then
1985 echo "$as_me:$LINENO: result: $STRIP" >&5
1986echo "${ECHO_T}$STRIP" >&6
1987else
1988 echo "$as_me:$LINENO: result: no" >&5
1989echo "${ECHO_T}no" >&6
1990fi
1991
1992fi
1993if test -z "$ac_cv_prog_STRIP"; then
1994 ac_ct_STRIP=$STRIP
1995 # Extract the first word of "strip", so it can be a program name with args.
1996set dummy strip; ac_word=$2
1997echo "$as_me:$LINENO: checking for $ac_word" >&5
1998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2001else
2002 if test -n "$ac_ct_STRIP"; then
2003 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2004else
2005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006for as_dir in $PATH
2007do
2008 IFS=$as_save_IFS
2009 test -z "$as_dir" && as_dir=.
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012 ac_cv_prog_ac_ct_STRIP="strip"
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014 break 2
2015 fi
2016done
2017done
2018
2019 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2020fi
2021fi
2022ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2023if test -n "$ac_ct_STRIP"; then
2024 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2025echo "${ECHO_T}$ac_ct_STRIP" >&6
2026else
2027 echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6
2029fi
2030
2031 STRIP=$ac_ct_STRIP
2032else
2033 STRIP="$ac_cv_prog_STRIP"
2034fi
2035
2036fi
2037INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2038
2039# We need awk for the "check" target. The system "awk" is bad on
2040# some platforms.
b85e31b9
KC
2041# Always define AMTAR for backward compatibility.
2042
2043AMTAR=${AMTAR-"${am_missing_run}tar"}
2044
2045am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2046
2047
3ed8e5b6
AT
2048
2049
2050
2051
2052# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2053# We must force CC to /not/ be precious variables; otherwise
2054# the wrong, non-multilib-adjusted value will be used in multilibs.
2055# As a side effect, we have to subst CFLAGS ourselves.
2056
2057
2058
2059ac_ext=c
2060ac_cpp='$CPP $CPPFLAGS'
2061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064if test -n "$ac_tool_prefix"; then
2065 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2066set dummy ${ac_tool_prefix}gcc; ac_word=$2
2067echo "$as_me:$LINENO: checking for $ac_word" >&5
2068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069if test "${ac_cv_prog_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2071else
2072 if test -n "$CC"; then
2073 ac_cv_prog_CC="$CC" # Let the user override the test.
2074else
2075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076for as_dir in $PATH
2077do
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 break 2
2085 fi
2086done
2087done
2088
2089fi
2090fi
2091CC=$ac_cv_prog_CC
2092if test -n "$CC"; then
2093 echo "$as_me:$LINENO: result: $CC" >&5
2094echo "${ECHO_T}$CC" >&6
2095else
2096 echo "$as_me:$LINENO: result: no" >&5
2097echo "${ECHO_T}no" >&6
2098fi
2099
2100fi
2101if test -z "$ac_cv_prog_CC"; then
2102 ac_ct_CC=$CC
2103 # Extract the first word of "gcc", so it can be a program name with args.
2104set dummy gcc; ac_word=$2
2105echo "$as_me:$LINENO: checking for $ac_word" >&5
2106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2107if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2109else
2110 if test -n "$ac_ct_CC"; then
2111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2112else
2113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114for as_dir in $PATH
2115do
2116 IFS=$as_save_IFS
2117 test -z "$as_dir" && as_dir=.
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2120 ac_cv_prog_ac_ct_CC="gcc"
2121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 break 2
2123 fi
2124done
2125done
2126
2127fi
2128fi
2129ac_ct_CC=$ac_cv_prog_ac_ct_CC
2130if test -n "$ac_ct_CC"; then
2131 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2132echo "${ECHO_T}$ac_ct_CC" >&6
2133else
2134 echo "$as_me:$LINENO: result: no" >&5
2135echo "${ECHO_T}no" >&6
2136fi
2137
2138 CC=$ac_ct_CC
2139else
2140 CC="$ac_cv_prog_CC"
2141fi
2142
2143if test -z "$CC"; then
2144 if test -n "$ac_tool_prefix"; then
2145 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2146set dummy ${ac_tool_prefix}cc; ac_word=$2
2147echo "$as_me:$LINENO: checking for $ac_word" >&5
2148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2149if test "${ac_cv_prog_CC+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151else
2152 if test -n "$CC"; then
2153 ac_cv_prog_CC="$CC" # Let the user override the test.
2154else
2155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156for as_dir in $PATH
2157do
2158 IFS=$as_save_IFS
2159 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2162 ac_cv_prog_CC="${ac_tool_prefix}cc"
2163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 break 2
2165 fi
2166done
2167done
2168
2169fi
2170fi
2171CC=$ac_cv_prog_CC
2172if test -n "$CC"; then
2173 echo "$as_me:$LINENO: result: $CC" >&5
2174echo "${ECHO_T}$CC" >&6
2175else
2176 echo "$as_me:$LINENO: result: no" >&5
2177echo "${ECHO_T}no" >&6
2178fi
2179
2180fi
2181if test -z "$ac_cv_prog_CC"; then
2182 ac_ct_CC=$CC
2183 # Extract the first word of "cc", so it can be a program name with args.
2184set dummy cc; ac_word=$2
2185echo "$as_me:$LINENO: checking for $ac_word" >&5
2186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2189else
2190 if test -n "$ac_ct_CC"; then
2191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2192else
2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194for as_dir in $PATH
2195do
2196 IFS=$as_save_IFS
2197 test -z "$as_dir" && as_dir=.
2198 for ac_exec_ext in '' $ac_executable_extensions; do
2199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2200 ac_cv_prog_ac_ct_CC="cc"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 break 2
2203 fi
2204done
2205done
2206
2207fi
2208fi
2209ac_ct_CC=$ac_cv_prog_ac_ct_CC
2210if test -n "$ac_ct_CC"; then
2211 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2212echo "${ECHO_T}$ac_ct_CC" >&6
2213else
2214 echo "$as_me:$LINENO: result: no" >&5
2215echo "${ECHO_T}no" >&6
2216fi
2217
2218 CC=$ac_ct_CC
2219else
2220 CC="$ac_cv_prog_CC"
2221fi
2222
2223fi
2224if test -z "$CC"; then
2225 # Extract the first word of "cc", so it can be a program name with args.
2226set dummy cc; ac_word=$2
2227echo "$as_me:$LINENO: checking for $ac_word" >&5
2228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229if test "${ac_cv_prog_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2234else
2235 ac_prog_rejected=no
2236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237for as_dir in $PATH
2238do
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2244 ac_prog_rejected=yes
2245 continue
2246 fi
2247 ac_cv_prog_CC="cc"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249 break 2
2250 fi
2251done
2252done
2253
2254if test $ac_prog_rejected = yes; then
2255 # We found a bogon in the path, so make sure we never use it.
2256 set dummy $ac_cv_prog_CC
2257 shift
2258 if test $# != 0; then
2259 # We chose a different compiler from the bogus one.
2260 # However, it has the same basename, so the bogon will be chosen
2261 # first if we set CC to just the basename; use the full file name.
2262 shift
2263 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2264 fi
2265fi
2266fi
2267fi
2268CC=$ac_cv_prog_CC
2269if test -n "$CC"; then
2270 echo "$as_me:$LINENO: result: $CC" >&5
2271echo "${ECHO_T}$CC" >&6
2272else
2273 echo "$as_me:$LINENO: result: no" >&5
2274echo "${ECHO_T}no" >&6
2275fi
2276
2277fi
2278if test -z "$CC"; then
2279 if test -n "$ac_tool_prefix"; then
2280 for ac_prog in cl
2281 do
2282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2283set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2284echo "$as_me:$LINENO: checking for $ac_word" >&5
2285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2286if test "${ac_cv_prog_CC+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288else
2289 if test -n "$CC"; then
2290 ac_cv_prog_CC="$CC" # Let the user override the test.
2291else
2292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293for as_dir in $PATH
2294do
2295 IFS=$as_save_IFS
2296 test -z "$as_dir" && as_dir=.
2297 for ac_exec_ext in '' $ac_executable_extensions; do
2298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2299 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 break 2
2302 fi
2303done
2304done
2305
2306fi
2307fi
2308CC=$ac_cv_prog_CC
2309if test -n "$CC"; then
2310 echo "$as_me:$LINENO: result: $CC" >&5
2311echo "${ECHO_T}$CC" >&6
2312else
2313 echo "$as_me:$LINENO: result: no" >&5
2314echo "${ECHO_T}no" >&6
2315fi
2316
2317 test -n "$CC" && break
2318 done
2319fi
2320if test -z "$CC"; then
2321 ac_ct_CC=$CC
2322 for ac_prog in cl
2323do
2324 # Extract the first word of "$ac_prog", so it can be a program name with args.
2325set dummy $ac_prog; ac_word=$2
2326echo "$as_me:$LINENO: checking for $ac_word" >&5
2327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2328if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2330else
2331 if test -n "$ac_ct_CC"; then
2332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2333else
2334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335for as_dir in $PATH
2336do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2341 ac_cv_prog_ac_ct_CC="$ac_prog"
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2344 fi
2345done
2346done
2347
2348fi
2349fi
2350ac_ct_CC=$ac_cv_prog_ac_ct_CC
2351if test -n "$ac_ct_CC"; then
2352 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2353echo "${ECHO_T}$ac_ct_CC" >&6
2354else
2355 echo "$as_me:$LINENO: result: no" >&5
2356echo "${ECHO_T}no" >&6
2357fi
2358
2359 test -n "$ac_ct_CC" && break
2360done
2361
2362 CC=$ac_ct_CC
2363fi
2364
2365fi
2366
2367
2368test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2369See \`config.log' for more details." >&5
2370echo "$as_me: error: no acceptable C compiler found in \$PATH
2371See \`config.log' for more details." >&2;}
2372 { (exit 1); exit 1; }; }
2373
2374# Provide some information about the compiler.
2375echo "$as_me:$LINENO:" \
2376 "checking for C compiler version" >&5
2377ac_compiler=`set X $ac_compile; echo $2`
2378{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2379 (eval $ac_compiler --version </dev/null >&5) 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }
2383{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2384 (eval $ac_compiler -v </dev/null >&5) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }
2388{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2389 (eval $ac_compiler -V </dev/null >&5) 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }
2393
2394cat >conftest.$ac_ext <<_ACEOF
2395/* confdefs.h. */
2396_ACEOF
2397cat confdefs.h >>conftest.$ac_ext
2398cat >>conftest.$ac_ext <<_ACEOF
2399/* end confdefs.h. */
2400
2401int
2402main ()
2403{
2404
2405 ;
2406 return 0;
2407}
2408_ACEOF
2409ac_clean_files_save=$ac_clean_files
2410ac_clean_files="$ac_clean_files a.out a.exe b.out"
2411# Try to create an executable without -o first, disregard a.out.
2412# It will help us diagnose broken compilers, and finding out an intuition
2413# of exeext.
2414echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2415echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2416ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2417if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2418 (eval $ac_link_default) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; then
2422 # Find the output, starting from the most likely. This scheme is
2423# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2424# resort.
2425
2426# Be careful to initialize this variable, since it used to be cached.
2427# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2428ac_cv_exeext=
2429# b.out is created by i960 compilers.
2430for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2431do
2432 test -f "$ac_file" || continue
2433 case $ac_file in
2434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2435 ;;
2436 conftest.$ac_ext )
2437 # This is the source file.
2438 ;;
2439 [ab].out )
2440 # We found the default executable, but exeext='' is most
2441 # certainly right.
2442 break;;
2443 *.* )
2444 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2445 # FIXME: I believe we export ac_cv_exeext for Libtool,
2446 # but it would be cool to find out if it's true. Does anybody
2447 # maintain Libtool? --akim.
2448 export ac_cv_exeext
2449 break;;
2450 * )
2451 break;;
2452 esac
2453done
2454else
2455 echo "$as_me: failed program was:" >&5
2456sed 's/^/| /' conftest.$ac_ext >&5
2457
2458{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2459See \`config.log' for more details." >&5
2460echo "$as_me: error: C compiler cannot create executables
2461See \`config.log' for more details." >&2;}
2462 { (exit 77); exit 77; }; }
2463fi
2464
2465ac_exeext=$ac_cv_exeext
2466echo "$as_me:$LINENO: result: $ac_file" >&5
2467echo "${ECHO_T}$ac_file" >&6
2468
2469# Check the compiler produces executables we can run. If not, either
2470# the compiler is broken, or we cross compile.
2471echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2472echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2473# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2474# If not cross compiling, check that we can run a simple program.
2475if test "$cross_compiling" != yes; then
2476 if { ac_try='./$ac_file'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 (eval $ac_try) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; }; then
2482 cross_compiling=no
2483 else
2484 if test "$cross_compiling" = maybe; then
2485 cross_compiling=yes
2486 else
2487 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2488If you meant to cross compile, use \`--host'.
2489See \`config.log' for more details." >&5
2490echo "$as_me: error: cannot run C compiled programs.
2491If you meant to cross compile, use \`--host'.
2492See \`config.log' for more details." >&2;}
2493 { (exit 1); exit 1; }; }
2494 fi
2495 fi
2496fi
2497echo "$as_me:$LINENO: result: yes" >&5
2498echo "${ECHO_T}yes" >&6
2499
2500rm -f a.out a.exe conftest$ac_cv_exeext b.out
2501ac_clean_files=$ac_clean_files_save
2502# Check the compiler produces executables we can run. If not, either
2503# the compiler is broken, or we cross compile.
2504echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2505echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2506echo "$as_me:$LINENO: result: $cross_compiling" >&5
2507echo "${ECHO_T}$cross_compiling" >&6
2508
2509echo "$as_me:$LINENO: checking for suffix of executables" >&5
2510echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2512 (eval $ac_link) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; then
2516 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2517# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2518# work properly (i.e., refer to `conftest.exe'), while it won't with
2519# `rm'.
2520for ac_file in conftest.exe conftest conftest.*; do
2521 test -f "$ac_file" || continue
2522 case $ac_file in
2523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2524 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2525 export ac_cv_exeext
2526 break;;
2527 * ) break;;
2528 esac
2529done
2530else
2531 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2532See \`config.log' for more details." >&5
2533echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2534See \`config.log' for more details." >&2;}
2535 { (exit 1); exit 1; }; }
2536fi
2537
2538rm -f conftest$ac_cv_exeext
2539echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2540echo "${ECHO_T}$ac_cv_exeext" >&6
2541
2542rm -f conftest.$ac_ext
2543EXEEXT=$ac_cv_exeext
2544ac_exeext=$EXEEXT
2545echo "$as_me:$LINENO: checking for suffix of object files" >&5
2546echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2547if test "${ac_cv_objext+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2549else
2550 cat >conftest.$ac_ext <<_ACEOF
2551/* confdefs.h. */
2552_ACEOF
2553cat confdefs.h >>conftest.$ac_ext
2554cat >>conftest.$ac_ext <<_ACEOF
2555/* end confdefs.h. */
2556
2557int
2558main ()
2559{
2560
2561 ;
2562 return 0;
2563}
2564_ACEOF
2565rm -f conftest.o conftest.obj
2566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567 (eval $ac_compile) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; then
2571 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2572 case $ac_file in
2573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2574 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2575 break;;
2576 esac
2577done
2578else
2579 echo "$as_me: failed program was:" >&5
2580sed 's/^/| /' conftest.$ac_ext >&5
2581
2582{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2583See \`config.log' for more details." >&5
2584echo "$as_me: error: cannot compute suffix of object files: cannot compile
2585See \`config.log' for more details." >&2;}
2586 { (exit 1); exit 1; }; }
2587fi
2588
2589rm -f conftest.$ac_cv_objext conftest.$ac_ext
2590fi
2591echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2592echo "${ECHO_T}$ac_cv_objext" >&6
2593OBJEXT=$ac_cv_objext
2594ac_objext=$OBJEXT
2595echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2596echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2597if test "${ac_cv_c_compiler_gnu+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599else
2600 cat >conftest.$ac_ext <<_ACEOF
2601/* confdefs.h. */
2602_ACEOF
2603cat confdefs.h >>conftest.$ac_ext
2604cat >>conftest.$ac_ext <<_ACEOF
2605/* end confdefs.h. */
2606
2607int
2608main ()
2609{
2610#ifndef __GNUC__
2611 choke me
2612#endif
2613
2614 ;
2615 return 0;
2616}
2617_ACEOF
2618rm -f conftest.$ac_objext
2619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620 (eval $ac_compile) 2>conftest.er1
2621 ac_status=$?
2622 grep -v '^ *+' conftest.er1 >conftest.err
2623 rm -f conftest.er1
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
88d8c771
AG
2627 { ac_try='test -z "$ac_c_werror_flag"
2628 || test ! -s conftest.err'
3ed8e5b6
AT
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 (eval $ac_try) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; } &&
2634 { ac_try='test -s conftest.$ac_objext'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; }; then
2640 ac_compiler_gnu=yes
2641else
2642 echo "$as_me: failed program was:" >&5
2643sed 's/^/| /' conftest.$ac_ext >&5
2644
2645ac_compiler_gnu=no
2646fi
2647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2648ac_cv_c_compiler_gnu=$ac_compiler_gnu
2649
2650fi
2651echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2652echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2653GCC=`test $ac_compiler_gnu = yes && echo yes`
2654ac_test_CFLAGS=${CFLAGS+set}
2655ac_save_CFLAGS=$CFLAGS
2656CFLAGS="-g"
2657echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2658echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2659if test "${ac_cv_prog_cc_g+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2661else
2662 cat >conftest.$ac_ext <<_ACEOF
2663/* confdefs.h. */
2664_ACEOF
2665cat confdefs.h >>conftest.$ac_ext
2666cat >>conftest.$ac_ext <<_ACEOF
2667/* end confdefs.h. */
2668
2669int
2670main ()
2671{
2672
2673 ;
2674 return 0;
2675}
2676_ACEOF
2677rm -f conftest.$ac_objext
2678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679 (eval $ac_compile) 2>conftest.er1
2680 ac_status=$?
2681 grep -v '^ *+' conftest.er1 >conftest.err
2682 rm -f conftest.er1
2683 cat conftest.err >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } &&
88d8c771
AG
2686 { ac_try='test -z "$ac_c_werror_flag"
2687 || test ! -s conftest.err'
3ed8e5b6
AT
2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 (eval $ac_try) 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; } &&
2693 { ac_try='test -s conftest.$ac_objext'
2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 (eval $ac_try) 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; }; then
2699 ac_cv_prog_cc_g=yes
2700else
2701 echo "$as_me: failed program was:" >&5
2702sed 's/^/| /' conftest.$ac_ext >&5
2703
2704ac_cv_prog_cc_g=no
2705fi
2706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2707fi
2708echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2709echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2710if test "$ac_test_CFLAGS" = set; then
2711 CFLAGS=$ac_save_CFLAGS
2712elif test $ac_cv_prog_cc_g = yes; then
2713 if test "$GCC" = yes; then
2714 CFLAGS="-g -O2"
2715 else
2716 CFLAGS="-g"
2717 fi
2718else
2719 if test "$GCC" = yes; then
2720 CFLAGS="-O2"
2721 else
2722 CFLAGS=
2723 fi
2724fi
2725echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2726echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2727if test "${ac_cv_prog_cc_stdc+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2729else
2730 ac_cv_prog_cc_stdc=no
2731ac_save_CC=$CC
2732cat >conftest.$ac_ext <<_ACEOF
2733/* confdefs.h. */
2734_ACEOF
2735cat confdefs.h >>conftest.$ac_ext
2736cat >>conftest.$ac_ext <<_ACEOF
2737/* end confdefs.h. */
2738#include <stdarg.h>
2739#include <stdio.h>
2740#include <sys/types.h>
2741#include <sys/stat.h>
2742/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2743struct buf { int x; };
2744FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745static char *e (p, i)
2746 char **p;
2747 int i;
2748{
2749 return p[i];
2750}
2751static char *f (char * (*g) (char **, int), char **p, ...)
2752{
2753 char *s;
2754 va_list v;
2755 va_start (v,p);
2756 s = g (p, va_arg (v,int));
2757 va_end (v);
2758 return s;
2759}
2760
2761/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2762 function prototypes and stuff, but not '\xHH' hex character constants.
2763 These don't provoke an error unfortunately, instead are silently treated
2764 as 'x'. The following induces an error, until -std1 is added to get
2765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2766 array size at least. It's necessary to write '\x00'==0 to get something
2767 that's true only with -std1. */
2768int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2769
2770int test (int i, double x);
2771struct s1 {int (*f) (int a);};
2772struct s2 {int (*f) (double a);};
2773int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2774int argc;
2775char **argv;
2776int
2777main ()
2778{
2779return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2780 ;
2781 return 0;
2782}
2783_ACEOF
2784# Don't try gcc -ansi; that turns off useful extensions and
2785# breaks some systems' header files.
2786# AIX -qlanglvl=ansi
2787# Ultrix and OSF/1 -std1
2788# HP-UX 10.20 and later -Ae
2789# HP-UX older versions -Aa -D_HPUX_SOURCE
2790# SVR4 -Xc -D__EXTENSIONS__
2791for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2792do
2793 CC="$ac_save_CC $ac_arg"
2794 rm -f conftest.$ac_objext
2795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796 (eval $ac_compile) 2>conftest.er1
2797 ac_status=$?
2798 grep -v '^ *+' conftest.er1 >conftest.err
2799 rm -f conftest.er1
2800 cat conftest.err >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } &&
88d8c771
AG
2803 { ac_try='test -z "$ac_c_werror_flag"
2804 || test ! -s conftest.err'
3ed8e5b6
AT
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 (eval $ac_try) 2>&5
2807 ac_status=$?
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; } &&
2810 { ac_try='test -s conftest.$ac_objext'
2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 (eval $ac_try) 2>&5
2813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2816 ac_cv_prog_cc_stdc=$ac_arg
2817break
2818else
2819 echo "$as_me: failed program was:" >&5
2820sed 's/^/| /' conftest.$ac_ext >&5
2821
2822fi
2823rm -f conftest.err conftest.$ac_objext
2824done
2825rm -f conftest.$ac_ext conftest.$ac_objext
2826CC=$ac_save_CC
2827
2828fi
2829
2830case "x$ac_cv_prog_cc_stdc" in
2831 x|xno)
2832 echo "$as_me:$LINENO: result: none needed" >&5
2833echo "${ECHO_T}none needed" >&6 ;;
2834 *)
2835 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2836echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2837 CC="$CC $ac_cv_prog_cc_stdc" ;;
2838esac
2839
2840# Some people use a C++ compiler to compile C. Since we use `exit',
2841# in C++ we need to declare it. In case someone uses the same compiler
2842# for both compiling C and C++ we need to have the C++ compiler decide
2843# the declaration of exit, since it's the most demanding environment.
2844cat >conftest.$ac_ext <<_ACEOF
2845#ifndef __cplusplus
2846 choke me
2847#endif
2848_ACEOF
2849rm -f conftest.$ac_objext
2850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2851 (eval $ac_compile) 2>conftest.er1
2852 ac_status=$?
2853 grep -v '^ *+' conftest.er1 >conftest.err
2854 rm -f conftest.er1
2855 cat conftest.err >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); } &&
88d8c771
AG
2858 { ac_try='test -z "$ac_c_werror_flag"
2859 || test ! -s conftest.err'
3ed8e5b6
AT
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 (eval $ac_try) 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; } &&
2865 { ac_try='test -s conftest.$ac_objext'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 (eval $ac_try) 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2871 for ac_declaration in \
2872 '' \
2873 'extern "C" void std::exit (int) throw (); using std::exit;' \
2874 'extern "C" void std::exit (int); using std::exit;' \
2875 'extern "C" void exit (int) throw ();' \
2876 'extern "C" void exit (int);' \
2877 'void exit (int);'
2878do
2879 cat >conftest.$ac_ext <<_ACEOF
2880/* confdefs.h. */
2881_ACEOF
2882cat confdefs.h >>conftest.$ac_ext
2883cat >>conftest.$ac_ext <<_ACEOF
2884/* end confdefs.h. */
2885$ac_declaration
2886#include <stdlib.h>
2887int
2888main ()
2889{
2890exit (42);
2891 ;
2892 return 0;
2893}
2894_ACEOF
2895rm -f conftest.$ac_objext
2896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897 (eval $ac_compile) 2>conftest.er1
2898 ac_status=$?
2899 grep -v '^ *+' conftest.er1 >conftest.err
2900 rm -f conftest.er1
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } &&
88d8c771
AG
2904 { ac_try='test -z "$ac_c_werror_flag"
2905 || test ! -s conftest.err'
3ed8e5b6
AT
2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907 (eval $ac_try) 2>&5
2908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; } &&
2911 { ac_try='test -s conftest.$ac_objext'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913 (eval $ac_try) 2>&5
2914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2917 :
2918else
2919 echo "$as_me: failed program was:" >&5
2920sed 's/^/| /' conftest.$ac_ext >&5
2921
2922continue
2923fi
2924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2925 cat >conftest.$ac_ext <<_ACEOF
2926/* confdefs.h. */
2927_ACEOF
2928cat confdefs.h >>conftest.$ac_ext
2929cat >>conftest.$ac_ext <<_ACEOF
2930/* end confdefs.h. */
2931$ac_declaration
2932int
2933main ()
2934{
2935exit (42);
2936 ;
2937 return 0;
2938}
2939_ACEOF
2940rm -f conftest.$ac_objext
2941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942 (eval $ac_compile) 2>conftest.er1
2943 ac_status=$?
2944 grep -v '^ *+' conftest.er1 >conftest.err
2945 rm -f conftest.er1
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
88d8c771
AG
2949 { ac_try='test -z "$ac_c_werror_flag"
2950 || test ! -s conftest.err'
3ed8e5b6
AT
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; } &&
2956 { ac_try='test -s conftest.$ac_objext'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 (eval $ac_try) 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; }; then
2962 break
2963else
2964 echo "$as_me: failed program was:" >&5
2965sed 's/^/| /' conftest.$ac_ext >&5
2966
2967fi
2968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2969done
2970rm -f conftest*
2971if test -n "$ac_declaration"; then
2972 echo '#ifdef __cplusplus' >>confdefs.h
2973 echo $ac_declaration >>confdefs.h
2974 echo '#endif' >>confdefs.h
2975fi
2976
2977else
2978 echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981fi
2982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2983ac_ext=c
2984ac_cpp='$CPP $CPPFLAGS'
2985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2987ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988DEPDIR="${am__leading_dot}deps"
2989
2990 ac_config_commands="$ac_config_commands depfiles"
2991
2992
2993am_make=${MAKE-make}
2994cat > confinc << 'END'
2995am__doit:
2996 @echo done
2997.PHONY: am__doit
2998END
2999# If we don't find an include directive, just comment out the code.
3000echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3001echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3002am__include="#"
3003am__quote=
3004_am_result=none
3005# First try GNU make style include.
3006echo "include confinc" > confmf
3007# We grep out `Entering directory' and `Leaving directory'
3008# messages which can occur if `w' ends up in MAKEFLAGS.
3009# In particular we don't look at `^make:' because GNU make might
3010# be invoked under some other name (usually "gmake"), in which
3011# case it prints its new name instead of `make'.
3012if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3013 am__include=include
3014 am__quote=
3015 _am_result=GNU
3016fi
3017# Now try BSD make style include.
3018if test "$am__include" = "#"; then
3019 echo '.include "confinc"' > confmf
3020 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3021 am__include=.include
3022 am__quote="\""
3023 _am_result=BSD
3024 fi
3025fi
3026
3027
3028echo "$as_me:$LINENO: result: $_am_result" >&5
3029echo "${ECHO_T}$_am_result" >&6
3030rm -f confinc confmf
3031
3032# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3033if test "${enable_dependency_tracking+set}" = set; then
3034 enableval="$enable_dependency_tracking"
3035
3036fi;
3037if test "x$enable_dependency_tracking" != xno; then
3038 am_depcomp="$ac_aux_dir/depcomp"
3039 AMDEPBACKSLASH='\'
3040fi
3041
3042
3043if test "x$enable_dependency_tracking" != xno; then
3044 AMDEP_TRUE=
3045 AMDEP_FALSE='#'
3046else
3047 AMDEP_TRUE='#'
3048 AMDEP_FALSE=
3049fi
3050
3051
3052
3053
3054depcc="$CC" am_compiler_list=
3055
3056echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3057echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3058if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3060else
3061 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3062 # We make a subdir and do the tests there. Otherwise we can end up
3063 # making bogus files that we don't know about and never remove. For
3064 # instance it was reported that on HP-UX the gcc test will end up
3065 # making a dummy file named `D' -- because `-MD' means `put the output
3066 # in D'.
3067 mkdir conftest.dir
3068 # Copy depcomp to subdir because otherwise we won't find it if we're
3069 # using a relative directory.
3070 cp "$am_depcomp" conftest.dir
3071 cd conftest.dir
3072 # We will build objects and dependencies in a subdirectory because
3073 # it helps to detect inapplicable dependency modes. For instance
3074 # both Tru64's cc and ICC support -MD to output dependencies as a
3075 # side effect of compilation, but ICC will put the dependencies in
3076 # the current directory while Tru64 will put them in the object
3077 # directory.
3078 mkdir sub
3079
3080 am_cv_CC_dependencies_compiler_type=none
3081 if test "$am_compiler_list" = ""; then
3082 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3083 fi
3084 for depmode in $am_compiler_list; do
3085 # Setup a source with many dependencies, because some compilers
3086 # like to wrap large dependency lists on column 80 (with \), and
3087 # we should not choose a depcomp mode which is confused by this.
3088 #
3089 # We need to recreate these files for each test, as the compiler may
3090 # overwrite some of them when testing with obscure command lines.
3091 # This happens at least with the AIX C compiler.
3092 : > sub/conftest.c
3093 for i in 1 2 3 4 5 6; do
3094 echo '#include "conftst'$i'.h"' >> sub/conftest.c
076e5443
PB
3095 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3096 # Solaris 8's {/usr,}/bin/sh.
3097 touch sub/conftst$i.h
3ed8e5b6
AT
3098 done
3099 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3100
3101 case $depmode in
3102 nosideeffect)
3103 # after this tag, mechanisms are not by side-effect, so they'll
3104 # only be used when explicitly requested
3105 if test "x$enable_dependency_tracking" = xyes; then
3106 continue
3107 else
3108 break
3109 fi
3110 ;;
3111 none) break ;;
3112 esac
3113 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3114 # mode. It turns out that the SunPro C++ compiler does not properly
3115 # handle `-M -o', and we need to detect this.
3116 if depmode=$depmode \
3117 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3118 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3119 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3120 >/dev/null 2>conftest.err &&
3121 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3122 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3123 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3124 # icc doesn't choke on unknown options, it will just issue warnings
b85e31b9
KC
3125 # or remarks (even with -Werror). So we grep stderr for any message
3126 # that says an option was ignored or not supported.
3127 # When given -MP, icc 7.0 and 7.1 complain thusly:
3128 # icc: Command line warning: ignoring option '-M'; no argument required
3129 # The diagnosis changed in icc 8.0:
3130 # icc: Command line remark: option '-MP' not supported
3131 if (grep 'ignoring option' conftest.err ||
3132 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3ed8e5b6
AT
3133 am_cv_CC_dependencies_compiler_type=$depmode
3134 break
3135 fi
3136 fi
3137 done
bbf3057b 3138
3ed8e5b6
AT
3139 cd ..
3140 rm -rf conftest.dir
3141else
3142 am_cv_CC_dependencies_compiler_type=none
3143fi
3144
3145fi
3146echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3147echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3148CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3149
3150
3151
3152if
3153 test "x$enable_dependency_tracking" != xno \
3154 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3155 am__fastdepCC_TRUE=
3156 am__fastdepCC_FALSE='#'
3157else
3158 am__fastdepCC_TRUE='#'
3159 am__fastdepCC_FALSE=
3160fi
3161
3162
3163
3164
3165
3166
3167# By default we simply use the C compiler to build assembly code.
3168
076e5443
PB
3169test "${CCAS+set}" = set || CCAS=$CC
3170test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3171
3ed8e5b6
AT
3172
3173
3174if test "x$CC" != xcc; then
3175 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3176echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3177else
3178 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3179echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3180fi
3181set dummy $CC; ac_cc=`echo $2 |
3182 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3183if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3185else
3186 cat >conftest.$ac_ext <<_ACEOF
3187/* confdefs.h. */
3188_ACEOF
3189cat confdefs.h >>conftest.$ac_ext
3190cat >>conftest.$ac_ext <<_ACEOF
3191/* end confdefs.h. */
3192
3193int
3194main ()
3195{
3196
3197 ;
3198 return 0;
3199}
3200_ACEOF
3201# Make sure it works both with $CC and with simple cc.
3202# We do the test twice because some compilers refuse to overwrite an
3203# existing .o file with -o, though they will create one.
3204ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3205if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 (eval $ac_try) 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } &&
3210 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211 (eval $ac_try) 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); };
3215then
3216 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3217 if test "x$CC" != xcc; then
3218 # Test first that cc exists at all.
3219 if { ac_try='cc -c conftest.$ac_ext >&5'
3220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221 (eval $ac_try) 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; }; then
3225 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3226 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 (eval $ac_try) 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } &&
3231 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 (eval $ac_try) 2>&5
3233 ac_status=$?
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); };
3236 then
3237 # cc works too.
3238 :
3239 else
3240 # cc exists but doesn't like -o.
3241 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3242 fi
3243 fi
3244 fi
3245else
3246 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3247fi
3248rm -f conftest*
3249
3250fi
3251if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3252 echo "$as_me:$LINENO: result: yes" >&5
3253echo "${ECHO_T}yes" >&6
3254else
3255 echo "$as_me:$LINENO: result: no" >&5
3256echo "${ECHO_T}no" >&6
3257
3258cat >>confdefs.h <<\_ACEOF
3259#define NO_MINUS_C_MINUS_O 1
3260_ACEOF
3261
3262fi
3263
3264# FIXME: we rely on the cache variable name because
3265# there is no other way.
3266set dummy $CC
3267ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3268if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3269 # Losing compiler, so override with the script.
3270 # FIXME: It is wrong to rewrite CC.
3271 # But if we don't then we get into trouble of one sort or another.
3272 # A longer-term fix would be to have automake use am__CC in this case,
3273 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3274 CC="$am_aux_dir/compile $CC"
3275fi
63e5e3e0 3276
1cf3d07d
SE
3277
3278
3279macro_version='2.1a'
3280macro_revision='1.2435'
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293ltmain="$ac_aux_dir/ltmain.sh"
3294
3295# Set options
3296
3297enable_dlopen=no
3298
3299
3300enable_win32_dll=no
3301
3302
675cdab3
BM
3303# Check whether --enable-shared or --disable-shared was given.
3304if test "${enable_shared+set}" = set; then
3305 enableval="$enable_shared"
3306 p=${PACKAGE-default}
1cf3d07d
SE
3307 case $enableval in
3308 yes) enable_shared=yes ;;
3309 no) enable_shared=no ;;
3310 *)
3311 enable_shared=no
3312 # Look at the argument we got. We use all the common list separators.
3313 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3314 for pkg in $enableval; do
3315 IFS="$lt_save_ifs"
3316 if test "X$pkg" = "X$p"; then
3317 enable_shared=yes
3318 fi
3319 done
3320 IFS="$lt_save_ifs"
3321 ;;
3322 esac
675cdab3
BM
3323else
3324 enable_shared=yes
3ed8e5b6 3325fi;
1cf3d07d
SE
3326
3327
3328
3329
3330
3331
3332
3333
675cdab3
BM
3334# Check whether --enable-static or --disable-static was given.
3335if test "${enable_static+set}" = set; then
3336 enableval="$enable_static"
3337 p=${PACKAGE-default}
1cf3d07d
SE
3338 case $enableval in
3339 yes) enable_static=yes ;;
3340 no) enable_static=no ;;
3341 *)
3342 enable_static=no
3343 # Look at the argument we got. We use all the common list separators.
3344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3345 for pkg in $enableval; do
3346 IFS="$lt_save_ifs"
3347 if test "X$pkg" = "X$p"; then
3348 enable_static=yes
3349 fi
3350 done
3351 IFS="$lt_save_ifs"
3352 ;;
3353 esac
63e5e3e0 3354else
675cdab3 3355 enable_static=yes
3ed8e5b6 3356fi;
1cf3d07d
SE
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366# Check whether --with-pic or --without-pic was given.
3367if test "${with_pic+set}" = set; then
3368 withval="$with_pic"
3369 pic_mode="$withval"
3370else
3371 pic_mode=default
3372fi;
3373
3374test -z "$pic_mode" && pic_mode=default
3375
3376
3377
3378
3379
3380
3381
675cdab3
BM
3382# Check whether --enable-fast-install or --disable-fast-install was given.
3383if test "${enable_fast_install+set}" = set; then
3384 enableval="$enable_fast_install"
3385 p=${PACKAGE-default}
1cf3d07d
SE
3386 case $enableval in
3387 yes) enable_fast_install=yes ;;
3388 no) enable_fast_install=no ;;
3389 *)
3390 enable_fast_install=no
3391 # Look at the argument we got. We use all the common list separators.
3392 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3393 for pkg in $enableval; do
3394 IFS="$lt_save_ifs"
3395 if test "X$pkg" = "X$p"; then
3396 enable_fast_install=yes
3397 fi
3398 done
3399 IFS="$lt_save_ifs"
3400 ;;
3401 esac
63e5e3e0 3402else
675cdab3 3403 enable_fast_install=yes
3ed8e5b6 3404fi;
63e5e3e0 3405
1cf3d07d
SE
3406
3407
3408
3409
3410
3411
3412
3413echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3414echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3415if test "${lt_cv_path_SED+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3417else
3418 # Loop through the user's path and test for sed and gsed.
3419# Then use that list of sed's as ones to test for truncation.
3420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421for as_dir in $PATH
3422do
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
3425 for lt_ac_prog in sed gsed; do
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3428 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3429 fi
3430 done
3431 done
3432done
3433IFS=$as_save_IFS
3434lt_ac_max=0
3435lt_ac_count=0
3436# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3437# along with /bin/sed that truncates output.
3438for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3439 test ! -f $lt_ac_sed && continue
3440 cat /dev/null > conftest.in
3441 lt_ac_count=0
3442 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3443 # Check for GNU sed and select it if it is found.
3444 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3445 lt_cv_path_SED=$lt_ac_sed
3446 break
3447 fi
3448 while true; do
3449 cat conftest.in conftest.in >conftest.tmp
3450 mv conftest.tmp conftest.in
3451 cp conftest.in conftest.nl
3452 echo >>conftest.nl
3453 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3454 cmp -s conftest.out conftest.nl || break
3455 # 10000 chars as input seems more than enough
3456 test $lt_ac_count -gt 10 && break
3457 lt_ac_count=`expr $lt_ac_count + 1`
3458 if test $lt_ac_count -gt $lt_ac_max; then
3459 lt_ac_max=$lt_ac_count
3460 lt_cv_path_SED=$lt_ac_sed
3461 fi
3462 done
3463done
3464
3465fi
3466
3467SED=$lt_cv_path_SED
3468
3469echo "$as_me:$LINENO: result: $SED" >&5
3470echo "${ECHO_T}$SED" >&6
3471
3472test -z "$SED" && SED=sed
3473Xsed="$SED -e 1s/^X//"
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485echo "$as_me:$LINENO: checking for egrep" >&5
3486echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3487if test "${ac_cv_prog_egrep+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489else
3490 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3491 then ac_cv_prog_egrep='grep -E'
3492 else ac_cv_prog_egrep='egrep'
3493 fi
3494fi
3495echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3496echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3497 EGREP=$ac_cv_prog_egrep
3498
3499
3500echo "$as_me:$LINENO: checking for fgrep" >&5
3501echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3502if test "${ac_cv_prog_fgrep+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3504else
3505 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3506 then ac_cv_prog_fgrep='grep -F'
3507 else ac_cv_prog_fgrep='fgrep'
3508 fi
3509fi
3510echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3511echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3512 FGREP=$ac_cv_prog_fgrep
3513
3514
3515test -z "$GREP" && GREP=grep
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
675cdab3
BM
3535# Check whether --with-gnu-ld or --without-gnu-ld was given.
3536if test "${with_gnu_ld+set}" = set; then
3537 withval="$with_gnu_ld"
3538 test "$withval" = no || with_gnu_ld=yes
63e5e3e0 3539else
675cdab3 3540 with_gnu_ld=no
3ed8e5b6 3541fi;
63e5e3e0 3542ac_prog=ld
675cdab3 3543if test "$GCC" = yes; then
63e5e3e0 3544 # Check if gcc -print-prog-name=ld gives a path.
1cf3d07d
SE
3545 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3546echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2f7bf5b7
AO
3547 case $host in
3548 *-*-mingw*)
3549 # gcc leaves a trailing carriage return which upsets mingw
3550 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3551 *)
3552 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3553 esac
675cdab3 3554 case $ac_prog in
63e5e3e0 3555 # Accept absolute paths.
1cf3d07d 3556 [\\/]* | ?:[\\/]*)
63e5e3e0 3557 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
3558 # Canonicalize the pathname of ld
3559 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3560 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3561 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
63e5e3e0
AG
3562 done
3563 test -z "$LD" && LD="$ac_prog"
3564 ;;
3565 "")
3566 # If it fails, then pretend we aren't using GCC.
3567 ac_prog=ld
3568 ;;
3569 *)
3570 # If it is relative, then search for the first ld in PATH.
3571 with_gnu_ld=unknown
3572 ;;
3573 esac
3574elif test "$with_gnu_ld" = yes; then
3ed8e5b6
AT
3575 echo "$as_me:$LINENO: checking for GNU ld" >&5
3576echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
63e5e3e0 3577else
3ed8e5b6
AT
3578 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3579echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
63e5e3e0 3580fi
3ed8e5b6
AT
3581if test "${lt_cv_path_LD+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0
AG
3583else
3584 if test -z "$LD"; then
1cf3d07d 3585 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
63e5e3e0 3586 for ac_dir in $PATH; do
1cf3d07d 3587 IFS="$lt_save_ifs"
63e5e3e0 3588 test -z "$ac_dir" && ac_dir=.
6ba9e3b0 3589 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
675cdab3 3590 lt_cv_path_LD="$ac_dir/$ac_prog"
63e5e3e0 3591 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 3592 # but apparently some variants of GNU ld only accept -v.
63e5e3e0 3593 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
3594 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3595 *GNU* | *'with BFD'*)
63e5e3e0 3596 test "$with_gnu_ld" != no && break
1cf3d07d
SE
3597 ;;
3598 *)
63e5e3e0 3599 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
3600 ;;
3601 esac
63e5e3e0
AG
3602 fi
3603 done
1cf3d07d 3604 IFS="$lt_save_ifs"
63e5e3e0 3605else
675cdab3 3606 lt_cv_path_LD="$LD" # Let the user override the test with a path.
63e5e3e0
AG
3607fi
3608fi
3609
675cdab3 3610LD="$lt_cv_path_LD"
63e5e3e0 3611if test -n "$LD"; then
3ed8e5b6
AT
3612 echo "$as_me:$LINENO: result: $LD" >&5
3613echo "${ECHO_T}$LD" >&6
63e5e3e0 3614else
3ed8e5b6
AT
3615 echo "$as_me:$LINENO: result: no" >&5
3616echo "${ECHO_T}no" >&6
63e5e3e0 3617fi
3ed8e5b6
AT
3618test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3619echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3620 { (exit 1); exit 1; }; }
3621echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3622echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3623if test "${lt_cv_prog_gnu_ld+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 3625else
1cf3d07d
SE
3626 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3627case `$LD -v 2>&1 </dev/null` in
3628*GNU* | *'with BFD'*)
675cdab3 3629 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
3630 ;;
3631*)
675cdab3 3632 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
3633 ;;
3634esac
63e5e3e0 3635fi
3ed8e5b6
AT
3636echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3637echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
675cdab3 3638with_gnu_ld=$lt_cv_prog_gnu_ld
2f7bf5b7 3639
63e5e3e0
AG
3640
3641
1cf3d07d
SE
3642
3643
3644
3645
3646
3647
3648
3649echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3650echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3ed8e5b6
AT
3651if test "${lt_cv_path_NM+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0
AG
3653else
3654 if test -n "$NM"; then
3655 # Let the user override the test.
675cdab3 3656 lt_cv_path_NM="$NM"
63e5e3e0 3657else
1cf3d07d
SE
3658 lt_nm_to_check="${ac_tool_prefix}nm"
3659 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3660 lt_nm_to_check="$lt_nm_to_check nm"
3661 fi
3662 for lt_tmp_nm in $lt_nm_to_check; do
3663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3664 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3665 IFS="$lt_save_ifs"
3666 test -z "$ac_dir" && ac_dir=.
3667 tmp_nm="$ac_dir/$lt_tmp_nm"
3668 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3669 # Check to see if the nm accepts a BSD-compat flag.
3670 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3671 # nm: unknown option "B" ignored
3672 # Tru64's nm complains that /dev/null is an invalid object file
3673 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3674 */dev/null* | *'Invalid file or object type'*)
3675 lt_cv_path_NM="$tmp_nm -B"
3676 break
3677 ;;
3678 *)
3679 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3680 */dev/null*)
3681 lt_cv_path_NM="$tmp_nm -p"
3682 break
3683 ;;
3684 *)
3685 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3686 continue # so that we can try to find one that supports BSD flags
3687 ;;
3688 esac
3689 ;;
3690 esac
63e5e3e0 3691 fi
1cf3d07d
SE
3692 done
3693 IFS="$lt_save_ifs"
63e5e3e0 3694 done
1cf3d07d 3695 : ${lt_cv_path_NM=no}
63e5e3e0
AG
3696fi
3697fi
1cf3d07d
SE
3698echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3699echo "${ECHO_T}$lt_cv_path_NM" >&6
3700if test "$lt_cv_path_NM" != "no"; then
3701 NM="$lt_cv_path_NM"
63e5e3e0 3702else
1cf3d07d
SE
3703 # Didn't find any BSD compatible name lister, look for dumpbin.
3704 if test -n "$ac_tool_prefix"; then
3705 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3706 do
3707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3708set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3709echo "$as_me:$LINENO: checking for $ac_word" >&5
3710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3711if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3ed8e5b6 3712 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 3713else
1cf3d07d
SE
3714 if test -n "$DUMPBIN"; then
3715 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3716else
3717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718for as_dir in $PATH
3719do
3720 IFS=$as_save_IFS
3721 test -z "$as_dir" && as_dir=.
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3724 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 break 2
3727 fi
3728done
3729done
2f7bf5b7 3730
1cf3d07d
SE
3731fi
3732fi
3733DUMPBIN=$ac_cv_prog_DUMPBIN
3734if test -n "$DUMPBIN"; then
3735 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3736echo "${ECHO_T}$DUMPBIN" >&6
3737else
3738 echo "$as_me:$LINENO: result: no" >&5
3739echo "${ECHO_T}no" >&6
3740fi
675cdab3 3741
1cf3d07d
SE
3742 test -n "$DUMPBIN" && break
3743 done
3744fi
3745if test -z "$DUMPBIN"; then
3746 ac_ct_DUMPBIN=$DUMPBIN
3747 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3748do
3749 # Extract the first word of "$ac_prog", so it can be a program name with args.
3750set dummy $ac_prog; ac_word=$2
3751echo "$as_me:$LINENO: checking for $ac_word" >&5
3752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3753if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755else
3756 if test -n "$ac_ct_DUMPBIN"; then
3757 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3758else
3759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760for as_dir in $PATH
3761do
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3766 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 break 2
2f7bf5b7 3769 fi
1cf3d07d
SE
3770done
3771done
2f7bf5b7 3772
1cf3d07d
SE
3773fi
3774fi
3775ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3776if test -n "$ac_ct_DUMPBIN"; then
3777 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3778echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3779else
3780 echo "$as_me:$LINENO: result: no" >&5
3781echo "${ECHO_T}no" >&6
3782fi
2f7bf5b7 3783
1cf3d07d
SE
3784 test -n "$ac_ct_DUMPBIN" && break
3785done
3786test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
2f7bf5b7 3787
1cf3d07d
SE
3788 DUMPBIN=$ac_ct_DUMPBIN
3789fi
2f7bf5b7 3790
2f7bf5b7 3791
1cf3d07d
SE
3792 if test "$DUMPBIN" != ":"; then
3793 NM="$DUMPBIN"
2f7bf5b7 3794 fi
1cf3d07d
SE
3795fi
3796test -z "$NM" && NM=nm
2f7bf5b7 3797
2f7bf5b7 3798
2f7bf5b7 3799
2f7bf5b7 3800
33456445 3801
2f7bf5b7 3802
1cf3d07d
SE
3803echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3804echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3805if test "${lt_cv_nm_interface+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807else
3808 lt_cv_nm_interface="BSD nm"
3809 echo "int some_variable = 0;" > conftest.$ac_ext
3810 (eval echo "\"\$as_me:3810: $ac_compile\"" >&5)
3811 (eval "$ac_compile" 2>conftest.err)
3812 cat conftest.err >&5
3813 (eval echo "\"\$as_me:3813: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3814 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3815 cat conftest.err >&5
3816 (eval echo "\"\$as_me:3816: output\"" >&5)
3817 cat conftest.out >&5
3818 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3819 lt_cv_nm_interface="MS dumpbin"
3820 fi
3821 rm -f conftest*
2f7bf5b7 3822fi
1cf3d07d
SE
3823echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3824echo "${ECHO_T}$lt_cv_nm_interface" >&6
2f7bf5b7 3825
1cf3d07d
SE
3826echo "$as_me:$LINENO: checking whether ln -s works" >&5
3827echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3828LN_S=$as_ln_s
3829if test "$LN_S" = "ln -s"; then
3830 echo "$as_me:$LINENO: result: yes" >&5
3831echo "${ECHO_T}yes" >&6
3832else
3833 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3834echo "${ECHO_T}no, using $LN_S" >&6
3835fi
2f7bf5b7 3836
6dab073b
MS
3837# find the maximum length of command line arguments
3838echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3839echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3840if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843 i=0
3844 teststring="ABCD"
3845
3846 case $build_os in
3847 msdosdjgpp*)
3848 # On DJGPP, this test can blow up pretty badly due to problems in libc
3849 # (any single argument exceeding 2000 bytes causes a buffer overrun
3850 # during glob expansion). Even if it were fixed, the result of this
3851 # check would be larger than it should be.
3852 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3853 ;;
3854
1cf3d07d
SE
3855 gnu*)
3856 # Under GNU Hurd, this test is not required because there is
3857 # no limit to the length of command line arguments.
3858 # Libtool will interpret -1 as no limit whatsoever
3859 lt_cv_sys_max_cmd_len=-1;
3860 ;;
3861
6dab073b
MS
3862 cygwin* | mingw*)
3863 # On Win9x/ME, this test blows up -- it succeeds, but takes
3864 # about 5 minutes as the teststring grows exponentially.
3865 # Worse, since 9x/ME are not pre-emptively multitasking,
3866 # you end up with a "frozen" computer, even though with patience
3867 # the test eventually succeeds (with a max line length of 256k).
3868 # Instead, let's just punt: use the minimum linelength reported by
3869 # all of the supported platforms: 8192 (on NT/2K/XP).
3870 lt_cv_sys_max_cmd_len=8192;
3871 ;;
3872
3873 amigaos*)
3874 # On AmigaOS with pdksh, this test takes hours, literally.
3875 # So we just punt and use a minimum line length of 8192.
3876 lt_cv_sys_max_cmd_len=8192;
3877 ;;
3878
3879 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3880 # This has been around since 386BSD, at least. Likely further.
3881 if test -x /sbin/sysctl; then
3882 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3883 elif test -x /usr/sbin/sysctl; then
3884 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3885 else
1cf3d07d 3886 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
3887 fi
3888 # And add a safety zone
3889 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3890 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3891 ;;
1cf3d07d
SE
3892
3893 interix*)
3894 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3895 lt_cv_sys_max_cmd_len=196608
3896 ;;
3897
3898 osf*)
3899 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3900 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3901 # nice to cause kernel panics so lets avoid the loop below.
3902 # First set a reasonable default.
3903 lt_cv_sys_max_cmd_len=16384
3904 #
3905 if test -x /sbin/sysconfig; then
3906 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3907 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3908 esac
3909 fi
3910 ;;
3911 sco3.2v5*)
3912 lt_cv_sys_max_cmd_len=102400
3913 ;;
3914 sysv5* | sco5v6* | sysv4.2uw2*)
3915 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3916 if test -n "$kargmax"; then
3917 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3918 else
3919 lt_cv_sys_max_cmd_len=32768
3920 fi
3921 ;;
3922 *)
82a6cadf
PB
3923 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
3924 if test -n $lt_cv_sys_max_cmd_len; then
3925 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3927 else
3928 # Make teststring a little bigger before we do anything with it.
3929 # a 1K string should be a reasonable start.
3930 for i in 1 2 3 4 5 6 7 8 ; do
3931 teststring=$teststring$teststring
3932 done
3933 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3934 # If test is not a shell built-in, we'll probably end up computing a
3935 # maximum length that is only half of the actual maximum length, but
3936 # we can't tell.
3937 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3938 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3939 test $i != 17 # 1/2 MB should be enough
3940 do
3941 i=`expr $i + 1`
3942 teststring=$teststring$teststring
3943 done
3944 # Only check the string length outside the loop.
3945 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3946 teststring=
3947 # Add a significant safety factor because C++ compilers can tack on
3948 # massive amounts of additional arguments before passing them to the
3949 # linker. It appears as though 1/2 is a usable value.
3950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3951 fi
1cf3d07d 3952 ;;
6dab073b
MS
3953 esac
3954
3955fi
3956
1cf3d07d 3957if test -n $lt_cv_sys_max_cmd_len ; then
6dab073b
MS
3958 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3959echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3960else
3961 echo "$as_me:$LINENO: result: none" >&5
3962echo "${ECHO_T}none" >&6
3963fi
1cf3d07d 3964max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
3965
3966
2f7bf5b7 3967
2f7bf5b7 3968
2f7bf5b7 3969
1cf3d07d
SE
3970
3971
3972: ${CP="cp -f"}
3973: ${MV="mv -f"}
3974: ${RM="rm -f"}
3975
3976echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3977echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3978# Try some XSI features
3979xsi_shell=no
3980( _lt_dummy="a/b/c"
3981 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3982 = c,a/b,, ) >/dev/null 2>&1 \
3983 && xsi_shell=yes
3984echo "$as_me:$LINENO: result: $xsi_shell" >&5
3985echo "${ECHO_T}$xsi_shell" >&6
3986
3987
3988echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3989echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3990lt_shell_append=no
3991( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3992 >/dev/null 2>&1 \
3993 && lt_shell_append=yes
3994echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3995echo "${ECHO_T}$lt_shell_append" >&6
3996
3997
3998if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3999 lt_unset=unset
2f7bf5b7 4000else
1cf3d07d 4001 lt_unset=false
2f7bf5b7
AO
4002fi
4003
1cf3d07d
SE
4004
4005
4006
4007
4008# test EBCDIC or ASCII
4009case `echo X|tr X '\101'` in
4010 A) # ASCII based system
4011 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4012 lt_SP2NL='tr \040 \012'
4013 lt_NL2SP='tr \015\012 \040\040'
4014 ;;
4015 *) # EBCDIC based system
4016 lt_SP2NL='tr \100 \n'
4017 lt_NL2SP='tr \r\n \100\100'
4018 ;;
4019esac
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4030echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4031if test "${lt_cv_ld_reload_flag+set}" = set; then
3ed8e5b6 4032 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4033else
1cf3d07d
SE
4034 lt_cv_ld_reload_flag='-r'
4035fi
4036echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4037echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4038reload_flag=$lt_cv_ld_reload_flag
4039case $reload_flag in
4040"" | " "*) ;;
4041*) reload_flag=" $reload_flag" ;;
4042esac
4043reload_cmds='$LD$reload_flag -o $output$reload_objs'
4044case $host_os in
4045 darwin*)
4046 if test "$GCC" = yes; then
4047 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4048 else
4049 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4050 fi
4051 ;;
4052esac
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4064echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4065if test "${lt_cv_deplibs_check_method+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067else
4068 lt_cv_file_magic_cmd='$MAGIC_CMD'
4069lt_cv_file_magic_test_file=
4070lt_cv_deplibs_check_method='unknown'
4071# Need to set the preceding variable on all platforms that support
4072# interlibrary dependencies.
4073# 'none' -- dependencies not supported.
4074# `unknown' -- same as none, but documents that we really don't know.
4075# 'pass_all' -- all dependencies passed with no checks.
4076# 'test_compile' -- check by making test program.
4077# 'file_magic [[regex]]' -- check by looking for files in library path
4078# which responds to the $file_magic_cmd with a given extended regex.
4079# If you have `file' or equivalent on your system and you're not sure
4080# whether `pass_all' will *always* work, you probably want this one.
4081
4082case $host_os in
4083aix4* | aix5*)
4084 lt_cv_deplibs_check_method=pass_all
4085 ;;
4086
4087beos*)
4088 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 4089 ;;
1cf3d07d
SE
4090
4091bsdi[45]*)
4092 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4093 lt_cv_file_magic_cmd='/usr/bin/file -L'
4094 lt_cv_file_magic_test_file=/shlib/libc.so
4095 ;;
4096
4097cygwin*)
4098 # func_win32_libid is a shell function defined in ltmain.sh
4099 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4100 lt_cv_file_magic_cmd='func_win32_libid'
4101 ;;
4102
4103mingw* | pw32*)
4104 # Base MSYS/MinGW do not provide the 'file' command needed by
4105 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4106 # unless we find 'file', for example because we are cross-compiling.
4107 if ( file / ) >/dev/null 2>&1; then
4108 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4109 lt_cv_file_magic_cmd='func_win32_libid'
4110 else
4111 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4112 lt_cv_file_magic_cmd='$OBJDUMP -f'
4113 fi
4114 ;;
4115
4116darwin* | rhapsody*)
4117 lt_cv_deplibs_check_method=pass_all
4118 ;;
4119
4120freebsd* | dragonfly*)
4121 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4122 case $host_cpu in
4123 i*86 )
4124 # Not sure whether the presence of OpenBSD here was a mistake.
4125 # Let's accept both of them until this is cleared up.
4126 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4127 lt_cv_file_magic_cmd=/usr/bin/file
4128 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4129 ;;
4130 esac
4131 else
4132 lt_cv_deplibs_check_method=pass_all
4133 fi
4134 ;;
4135
4136gnu*)
4137 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 4138 ;;
1cf3d07d
SE
4139
4140hpux10.20* | hpux11*)
4141 lt_cv_file_magic_cmd=/usr/bin/file
4142 case $host_cpu in
4143 ia64*)
4144 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4145 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4146 ;;
4147 hppa*64*)
4148 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]'
4149 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4150 ;;
2f7bf5b7 4151 *)
1cf3d07d
SE
4152 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4153 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4154 ;;
4155 esac
4156 ;;
2f7bf5b7 4157
1cf3d07d
SE
4158interix[3-9]*)
4159 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4161 ;;
2f7bf5b7 4162
1cf3d07d
SE
4163irix5* | irix6* | nonstopux*)
4164 case $LD in
4165 *-32|*"-32 ") libmagic=32-bit;;
4166 *-n32|*"-n32 ") libmagic=N32;;
4167 *-64|*"-64 ") libmagic=64-bit;;
4168 *) libmagic=never-match;;
4169 esac
4170 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 4171 ;;
2f7bf5b7 4172
1cf3d07d
SE
4173# This must be Linux ELF.
4174linux* | k*bsd*-gnu)
4175 lt_cv_deplibs_check_method=pass_all
4176 ;;
2f7bf5b7 4177
1cf3d07d
SE
4178netbsd*)
4179 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7 4181 else
1cf3d07d 4182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2f7bf5b7 4183 fi
1cf3d07d
SE
4184 ;;
4185
4186newos6*)
4187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4188 lt_cv_file_magic_cmd=/usr/bin/file
4189 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4190 ;;
4191
4192*nto* | *qnx*)
4193 lt_cv_deplibs_check_method=pass_all
4194 ;;
63e5e3e0 4195
1cf3d07d
SE
4196openbsd*)
4197 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4199 else
4200 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7
AO
4201 fi
4202 ;;
1cf3d07d
SE
4203
4204osf3* | osf4* | osf5*)
4205 lt_cv_deplibs_check_method=pass_all
4206 ;;
4207
4208rdos*)
4209 lt_cv_deplibs_check_method=pass_all
4210 ;;
4211
4212solaris*)
4213 lt_cv_deplibs_check_method=pass_all
4214 ;;
4215
4216sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4217 lt_cv_deplibs_check_method=pass_all
4218 ;;
4219
4220sysv4 | sysv4.3*)
4221 case $host_vendor in
4222 motorola)
4223 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]'
4224 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4225 ;;
4226 ncr)
4227 lt_cv_deplibs_check_method=pass_all
4228 ;;
4229 sequent)
4230 lt_cv_file_magic_cmd='/bin/file'
4231 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4232 ;;
4233 sni)
4234 lt_cv_file_magic_cmd='/bin/file'
4235 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4236 lt_cv_file_magic_test_file=/lib/libc.so
4237 ;;
4238 siemens)
4239 lt_cv_deplibs_check_method=pass_all
4240 ;;
4241 pc)
4242 lt_cv_deplibs_check_method=pass_all
4243 ;;
4244 esac
4245 ;;
4246
4247tpf*)
4248 lt_cv_deplibs_check_method=pass_all
4249 ;;
dc5de370
HB
4250esac
4251
1cf3d07d
SE
4252fi
4253echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4254echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4255file_magic_cmd=$lt_cv_file_magic_cmd
4256deplibs_check_method=$lt_cv_deplibs_check_method
4257test -z "$deplibs_check_method" && deplibs_check_method=unknown
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
3ed8e5b6 4270if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
4271 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4272set dummy ${ac_tool_prefix}ar; ac_word=$2
3ed8e5b6
AT
4273echo "$as_me:$LINENO: checking for $ac_word" >&5
4274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4275if test "${ac_cv_prog_AR+set}" = set; then
3ed8e5b6 4276 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4277else
1cf3d07d
SE
4278 if test -n "$AR"; then
4279 ac_cv_prog_AR="$AR" # Let the user override the test.
2f7bf5b7 4280else
3ed8e5b6
AT
4281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282for as_dir in $PATH
4283do
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4288 ac_cv_prog_AR="${ac_tool_prefix}ar"
3ed8e5b6
AT
4289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 break 2
4291 fi
4292done
4293done
4294
2f7bf5b7
AO
4295fi
4296fi
1cf3d07d
SE
4297AR=$ac_cv_prog_AR
4298if test -n "$AR"; then
4299 echo "$as_me:$LINENO: result: $AR" >&5
4300echo "${ECHO_T}$AR" >&6
2f7bf5b7 4301else
3ed8e5b6
AT
4302 echo "$as_me:$LINENO: result: no" >&5
4303echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4304fi
4305
3ed8e5b6 4306fi
1cf3d07d
SE
4307if test -z "$ac_cv_prog_AR"; then
4308 ac_ct_AR=$AR
4309 # Extract the first word of "ar", so it can be a program name with args.
4310set dummy ar; ac_word=$2
3ed8e5b6
AT
4311echo "$as_me:$LINENO: checking for $ac_word" >&5
4312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4313if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3ed8e5b6 4314 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4315else
1cf3d07d
SE
4316 if test -n "$ac_ct_AR"; then
4317 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2f7bf5b7 4318else
3ed8e5b6
AT
4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320for as_dir in $PATH
4321do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4326 ac_cv_prog_ac_ct_AR="ar"
3ed8e5b6
AT
4327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4329 fi
4330done
4331done
4332
1cf3d07d 4333 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
2f7bf5b7
AO
4334fi
4335fi
1cf3d07d
SE
4336ac_ct_AR=$ac_cv_prog_ac_ct_AR
4337if test -n "$ac_ct_AR"; then
4338 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4339echo "${ECHO_T}$ac_ct_AR" >&6
2f7bf5b7 4340else
3ed8e5b6
AT
4341 echo "$as_me:$LINENO: result: no" >&5
4342echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4343fi
4344
1cf3d07d 4345 AR=$ac_ct_AR
2f7bf5b7 4346else
1cf3d07d 4347 AR="$ac_cv_prog_AR"
2f7bf5b7
AO
4348fi
4349
1cf3d07d
SE
4350test -z "$AR" && AR=ar
4351test -z "$AR_FLAGS" && AR_FLAGS=cru
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
3ed8e5b6
AT
4363if test -n "$ac_tool_prefix"; then
4364 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2f7bf5b7 4365set dummy ${ac_tool_prefix}strip; ac_word=$2
3ed8e5b6
AT
4366echo "$as_me:$LINENO: checking for $ac_word" >&5
4367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4368if test "${ac_cv_prog_STRIP+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7
AO
4370else
4371 if test -n "$STRIP"; then
4372 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4373else
3ed8e5b6
AT
4374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375for as_dir in $PATH
4376do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 break 2
4384 fi
4385done
4386done
4387
2f7bf5b7
AO
4388fi
4389fi
3ed8e5b6 4390STRIP=$ac_cv_prog_STRIP
2f7bf5b7 4391if test -n "$STRIP"; then
3ed8e5b6
AT
4392 echo "$as_me:$LINENO: result: $STRIP" >&5
4393echo "${ECHO_T}$STRIP" >&6
2f7bf5b7 4394else
3ed8e5b6
AT
4395 echo "$as_me:$LINENO: result: no" >&5
4396echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4397fi
4398
3ed8e5b6 4399fi
2f7bf5b7 4400if test -z "$ac_cv_prog_STRIP"; then
3ed8e5b6 4401 ac_ct_STRIP=$STRIP
2f7bf5b7
AO
4402 # Extract the first word of "strip", so it can be a program name with args.
4403set dummy strip; ac_word=$2
3ed8e5b6
AT
4404echo "$as_me:$LINENO: checking for $ac_word" >&5
4405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4406if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4408else
3ed8e5b6
AT
4409 if test -n "$ac_ct_STRIP"; then
4410 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2f7bf5b7 4411else
3ed8e5b6
AT
4412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413for as_dir in $PATH
4414do
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4419 ac_cv_prog_ac_ct_STRIP="strip"
4420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4422 fi
4423done
4424done
4425
4426 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2f7bf5b7
AO
4427fi
4428fi
3ed8e5b6
AT
4429ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4430if test -n "$ac_ct_STRIP"; then
4431 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4432echo "${ECHO_T}$ac_ct_STRIP" >&6
675cdab3 4433else
3ed8e5b6
AT
4434 echo "$as_me:$LINENO: result: no" >&5
4435echo "${ECHO_T}no" >&6
675cdab3
BM
4436fi
4437
3ed8e5b6 4438 STRIP=$ac_ct_STRIP
675cdab3 4439else
3ed8e5b6 4440 STRIP="$ac_cv_prog_STRIP"
675cdab3
BM
4441fi
4442
1cf3d07d 4443test -z "$STRIP" && STRIP=:
675cdab3 4444
675cdab3
BM
4445
4446
675cdab3 4447
675cdab3 4448
3ed8e5b6 4449
1cf3d07d
SE
4450if test -n "$ac_tool_prefix"; then
4451 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4452set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4453echo "$as_me:$LINENO: checking for $ac_word" >&5
4454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4455if test "${ac_cv_prog_RANLIB+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
675cdab3 4457else
1cf3d07d
SE
4458 if test -n "$RANLIB"; then
4459 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4460else
4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4471 fi
4472done
4473done
4474
4475fi
4476fi
4477RANLIB=$ac_cv_prog_RANLIB
4478if test -n "$RANLIB"; then
4479 echo "$as_me:$LINENO: result: $RANLIB" >&5
4480echo "${ECHO_T}$RANLIB" >&6
4481else
4482 echo "$as_me:$LINENO: result: no" >&5
4483echo "${ECHO_T}no" >&6
4484fi
4485
4486fi
4487if test -z "$ac_cv_prog_RANLIB"; then
4488 ac_ct_RANLIB=$RANLIB
4489 # Extract the first word of "ranlib", so it can be a program name with args.
4490set dummy ranlib; ac_word=$2
4491echo "$as_me:$LINENO: checking for $ac_word" >&5
4492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
4496 if test -n "$ac_ct_RANLIB"; then
4497 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4498else
4499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500for as_dir in $PATH
4501do
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506 ac_cv_prog_ac_ct_RANLIB="ranlib"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 break 2
4509 fi
4510done
4511done
4512
4513 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4514fi
4515fi
4516ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4517if test -n "$ac_ct_RANLIB"; then
4518 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4519echo "${ECHO_T}$ac_ct_RANLIB" >&6
4520else
4521 echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6
4523fi
4524
4525 RANLIB=$ac_ct_RANLIB
4526else
4527 RANLIB="$ac_cv_prog_RANLIB"
4528fi
4529
4530test -z "$RANLIB" && RANLIB=:
4531
4532
4533
4534
4535
4536
4537# Determine commands to create old-style static archives.
4538old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4539old_postinstall_cmds='chmod 644 $oldlib'
4540old_postuninstall_cmds=
4541
4542if test -n "$RANLIB"; then
4543 case $host_os in
4544 openbsd*)
4545 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4546 ;;
4547 *)
4548 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4549 ;;
4550 esac
4551 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4552fi
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587# If no C compiler was specified, use CC.
4588LTCC=${LTCC-"$CC"}
4589
4590# If no C compiler flags were specified, use CFLAGS.
4591LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4592
4593# Allow CC to be a program name with arguments.
4594compiler=$CC
4595
4596
4597# Check for command to grab the raw symbol name followed by C symbol from nm.
4598echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4599echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4600if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602else
4603
4604# These are sane defaults that work on at least a few old systems.
4605# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4606
4607# Character class describing NM global symbol codes.
4608symcode='[BCDEGRST]'
4609
4610# Regexp to match symbols that can be accessed directly from C.
4611sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4612
4613# Define system-specific variables.
4614case $host_os in
4615aix*)
4616 symcode='[BCDT]'
4617 ;;
4618cygwin* | mingw* | pw32*)
4619 symcode='[ABCDGISTW]'
4620 ;;
4621hpux*)
4622 if test "$host_cpu" = ia64; then
4623 symcode='[ABCDEGRST]'
4624 fi
4625 ;;
4626irix* | nonstopux*)
4627 symcode='[BCDEGRST]'
4628 ;;
4629osf*)
4630 symcode='[BCDEGQRST]'
4631 ;;
4632solaris*)
4633 symcode='[BDRT]'
4634 ;;
4635sco3.2v5*)
4636 symcode='[DT]'
4637 ;;
4638sysv4.2uw2*)
4639 symcode='[DT]'
4640 ;;
4641sysv5* | sco5v6* | unixware* | OpenUNIX*)
4642 symcode='[ABDT]'
4643 ;;
4644sysv4)
4645 symcode='[DFNSTU]'
4646 ;;
4647esac
4648
4649# If we're using GNU nm, then use its standard symbol codes.
4650case `$NM -V 2>&1` in
4651*GNU* | *'with BFD'*)
4652 symcode='[ABCDGIRSTW]' ;;
4653esac
4654
4655# Transform an extracted symbol line into a proper C declaration.
4656# Some systems (esp. on ia64) link data and code symbols differently,
4657# so use this general approach.
4658lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4659
4660# Transform an extracted symbol line into symbol name and symbol address
4661lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4662
4663# Handle CRLF in mingw tool chain
4664opt_cr=
4665case $build_os in
4666mingw*)
4667 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4668 ;;
4669esac
4670
4671# Try without a prefix underscore, then with it.
4672for ac_symprfx in "" "_"; do
4673
4674 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4675 symxfrm="\\1 $ac_symprfx\\2 \\2"
4676
4677 # Write the raw and C identifiers.
4678 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4679 # Fake it for dumpbin and say T for any non-static function
4680 # and D for any global variable.
4681 # Also find C++ and __fastcall symbols from MSVC++,
4682 # which start with @ or ?.
4683 lt_cv_sys_global_symbol_pipe="$AWK '"\
4684" {last_section=section; section=\$ 3};"\
4685" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4686" \$ 0!~/External *\|/{next};"\
4687" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4688" {if(hide[section]) next};"\
4689" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4690" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4691" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4692" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4693" ' prfx=^$ac_symprfx"
4694 else
4695 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4696 fi
4697
4698 # Check to see that the pipe works correctly.
4699 pipe_works=no
4700
4701 rm -f conftest*
4702 cat > conftest.$ac_ext <<_LT_EOF
4703#ifdef __cplusplus
4704extern "C" {
4705#endif
4706char nm_test_var;
4707void nm_test_func(void);
4708void nm_test_func(void){}
4709#ifdef __cplusplus
4710}
4711#endif
4712int main(){nm_test_var='a';nm_test_func();return(0);}
4713_LT_EOF
4714
4715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4716 (eval $ac_compile) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; then
4720 # Now try to grab the symbols.
4721 nlist=conftest.nm
4722 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4723 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } && test -s "$nlist"; then
4727 # Try sorting and uniquifying the output.
4728 if sort "$nlist" | uniq > "$nlist"T; then
4729 mv -f "$nlist"T "$nlist"
4730 else
4731 rm -f "$nlist"T
4732 fi
4733
4734 # Make sure that we snagged all the symbols we need.
4735 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4736 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4737 cat <<_LT_EOF > conftest.$ac_ext
4738#ifdef __cplusplus
4739extern "C" {
4740#endif
4741
4742_LT_EOF
4743 # Now generate the symbol file.
4744 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4745
4746 cat <<_LT_EOF >> conftest.$ac_ext
4747
4748/* The mapping between symbol names and symbols. */
4749const struct {
4750 const char *name;
4751 void *address;
4752}
4753lt__PROGRAM__LTX_preloaded_symbols[] =
4754{
4755 { "@PROGRAM@", (void *) 0 },
4756_LT_EOF
4757 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4758 cat <<\_LT_EOF >> conftest.$ac_ext
4759 {0, (void *) 0}
4760};
4761
4762/* This works around a problem in FreeBSD linker */
4763#ifdef FREEBSD_WORKAROUND
4764static const void *lt_preloaded_setup() {
4765 return lt__PROGRAM__LTX_preloaded_symbols;
4766}
4767#endif
4768
4769#ifdef __cplusplus
4770}
4771#endif
4772_LT_EOF
4773 # Now try linking the two files.
4774 mv conftest.$ac_objext conftstm.$ac_objext
4775 lt_save_LIBS="$LIBS"
4776 lt_save_CFLAGS="$CFLAGS"
4777 LIBS="conftstm.$ac_objext"
4778 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4780 (eval $ac_link) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4784 pipe_works=yes
4785 fi
4786 LIBS="$lt_save_LIBS"
4787 CFLAGS="$lt_save_CFLAGS"
4788 else
4789 echo "cannot find nm_test_func in $nlist" >&5
4790 fi
4791 else
4792 echo "cannot find nm_test_var in $nlist" >&5
4793 fi
4794 else
4795 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4796 fi
4797 else
4798 echo "$progname: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4800 fi
4801 rm -f conftest* conftst*
4802
4803 # Do not use the global_symbol_pipe unless it works.
4804 if test "$pipe_works" = yes; then
4805 break
4806 else
4807 lt_cv_sys_global_symbol_pipe=
4808 fi
4809done
4810
4811fi
4812
4813if test -z "$lt_cv_sys_global_symbol_pipe"; then
4814 lt_cv_sys_global_symbol_to_cdecl=
4815fi
4816if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4817 echo "$as_me:$LINENO: result: failed" >&5
4818echo "${ECHO_T}failed" >&6
4819else
4820 echo "$as_me:$LINENO: result: ok" >&5
4821echo "${ECHO_T}ok" >&6
4822fi
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4842if test "${enable_libtool_lock+set}" = set; then
4843 enableval="$enable_libtool_lock"
4844
3ed8e5b6 4845fi;
1cf3d07d 4846test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
675cdab3
BM
4847
4848# Some flags need to be propagated to the compiler or linker for good
4849# libtool support.
4850case $host in
1cf3d07d 4851ia64-*-hpux*)
675cdab3 4852 # Find out which ABI we are using.
1cf3d07d 4853 echo 'int i;' > conftest.$ac_ext
3ed8e5b6
AT
4854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855 (eval $ac_compile) 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; then
675cdab3 4859 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
4860 *ELF-32*)
4861 HPUX_IA64_MODE="32"
4862 ;;
4863 *ELF-64*)
4864 HPUX_IA64_MODE="64"
4865 ;;
3ed8e5b6 4866 esac
3ed8e5b6
AT
4867 fi
4868 rm -rf conftest*
4869 ;;
1cf3d07d
SE
4870*-*-irix6*)
4871 # Find out which ABI we are using.
82a6cadf 4872 echo '#line 4872 "configure"' > conftest.$ac_ext
1cf3d07d
SE
4873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874 (eval $ac_compile) 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; then
4878 if test "$lt_cv_prog_gnu_ld" = yes; then
4879 case `/usr/bin/file conftest.$ac_objext` in
4880 *32-bit*)
4881 LD="${LD-ld} -melf32bsmip"
4882 ;;
4883 *N32*)
4884 LD="${LD-ld} -melf32bmipn32"
4885 ;;
4886 *64-bit*)
4887 LD="${LD-ld} -melf64bmip"
4888 ;;
4889 esac
4890 else
4891 case `/usr/bin/file conftest.$ac_objext` in
4892 *32-bit*)
4893 LD="${LD-ld} -32"
4894 ;;
4895 *N32*)
4896 LD="${LD-ld} -n32"
4897 ;;
4898 *64-bit*)
4899 LD="${LD-ld} -64"
4900 ;;
4901 esac
4902 fi
4903 fi
4904 rm -rf conftest*
4905 ;;
4906
4907x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4908s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4909 # Find out which ABI we are using.
4910 echo 'int i;' > conftest.$ac_ext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4912 (eval $ac_compile) 2>&5
4913 ac_status=$?
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; then
4916 case `/usr/bin/file conftest.o` in
4917 *32-bit*)
4918 case $host in
4919 x86_64-*kfreebsd*-gnu)
4920 LD="${LD-ld} -m elf_i386_fbsd"
4921 ;;
4922 x86_64-*linux*)
4923 LD="${LD-ld} -m elf_i386"
4924 ;;
4925 ppc64-*linux*|powerpc64-*linux*)
4926 LD="${LD-ld} -m elf32ppclinux"
4927 ;;
4928 s390x-*linux*)
4929 LD="${LD-ld} -m elf_s390"
4930 ;;
4931 sparc64-*linux*)
4932 LD="${LD-ld} -m elf32_sparc"
4933 ;;
4934 esac
4935 ;;
4936 *64-bit*)
4937 case $host in
4938 x86_64-*kfreebsd*-gnu)
4939 LD="${LD-ld} -m elf_x86_64_fbsd"
4940 ;;
4941 x86_64-*linux*)
4942 LD="${LD-ld} -m elf_x86_64"
4943 ;;
4944 ppc*-*linux*|powerpc*-*linux*)
4945 LD="${LD-ld} -m elf64ppc"
4946 ;;
4947 s390*-*linux*|s390*-*tpf*)
4948 LD="${LD-ld} -m elf64_s390"
4949 ;;
4950 sparc*-*linux*)
4951 LD="${LD-ld} -m elf64_sparc"
4952 ;;
4953 esac
4954 ;;
4955 esac
4956 fi
4957 rm -rf conftest*
4958 ;;
4959
4960*-*-sco3.2v5*)
4961 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4962 SAVE_CFLAGS="$CFLAGS"
4963 CFLAGS="$CFLAGS -belf"
4964 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4965echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4966if test "${lt_cv_cc_needs_belf+set}" = set; then
4967 echo $ECHO_N "(cached) $ECHO_C" >&6
4968else
4969 ac_ext=c
4970ac_cpp='$CPP $CPPFLAGS'
4971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973ac_compiler_gnu=$ac_cv_c_compiler_gnu
4974
4975 cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h. */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h. */
4981
4982int
4983main ()
4984{
4985
4986 ;
4987 return 0;
4988}
4989_ACEOF
4990rm -f conftest.$ac_objext conftest$ac_exeext
4991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4992 (eval $ac_link) 2>conftest.er1
4993 ac_status=$?
4994 grep -v '^ *+' conftest.er1 >conftest.err
4995 rm -f conftest.er1
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } &&
4999 { ac_try='test -z "$ac_c_werror_flag"
5000 || test ! -s conftest.err'
5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 (eval $ac_try) 2>&5
5003 ac_status=$?
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; } &&
5006 { ac_try='test -s conftest$ac_exeext'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 (eval $ac_try) 2>&5
5009 ac_status=$?
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; }; then
5012 lt_cv_cc_needs_belf=yes
5013else
5014 echo "$as_me: failed program was:" >&5
5015sed 's/^/| /' conftest.$ac_ext >&5
5016
5017lt_cv_cc_needs_belf=no
5018fi
5019rm -f conftest.err conftest.$ac_objext \
5020 conftest$ac_exeext conftest.$ac_ext
5021 ac_ext=c
5022ac_cpp='$CPP $CPPFLAGS'
5023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026
5027fi
5028echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5029echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5030 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5031 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5032 CFLAGS="$SAVE_CFLAGS"
5033 fi
5034 ;;
5035sparc*-*solaris*)
5036 # Find out which ABI we are using.
5037 echo 'int i;' > conftest.$ac_ext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5039 (eval $ac_compile) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; then
5043 case `/usr/bin/file conftest.o` in
5044 *64-bit*)
5045 case $lt_cv_prog_gnu_ld in
5046 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5047 *) LD="${LD-ld} -64" ;;
5048 esac
5049 ;;
5050 esac
5051 fi
5052 rm -rf conftest*
5053 ;;
5054esac
5055
5056need_locks="$enable_libtool_lock"
5057
5058ac_ext=c
5059ac_cpp='$CPP $CPPFLAGS'
5060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062ac_compiler_gnu=$ac_cv_c_compiler_gnu
5063echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5064echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5065# On Suns, sometimes $CPP names a directory.
5066if test -n "$CPP" && test -d "$CPP"; then
5067 CPP=
5068fi
5069if test -z "$CPP"; then
5070 if test "${ac_cv_prog_CPP+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5072else
5073 # Double quotes because CPP needs to be expanded
5074 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5075 do
5076 ac_preproc_ok=false
5077for ac_c_preproc_warn_flag in '' yes
5078do
5079 # Use a header file that comes with gcc, so configuring glibc
5080 # with a fresh cross-compiler works.
5081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5082 # <limits.h> exists even on freestanding compilers.
5083 # On the NeXT, cc -E runs the code through the compiler's parser,
5084 # not just through cpp. "Syntax error" is here to catch this case.
5085 cat >conftest.$ac_ext <<_ACEOF
5086/* confdefs.h. */
5087_ACEOF
5088cat confdefs.h >>conftest.$ac_ext
5089cat >>conftest.$ac_ext <<_ACEOF
5090/* end confdefs.h. */
5091#ifdef __STDC__
5092# include <limits.h>
5093#else
5094# include <assert.h>
5095#endif
5096 Syntax error
5097_ACEOF
5098if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } >/dev/null; then
5106 if test -s conftest.err; then
5107 ac_cpp_err=$ac_c_preproc_warn_flag
5108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5109 else
5110 ac_cpp_err=
5111 fi
5112else
5113 ac_cpp_err=yes
5114fi
5115if test -z "$ac_cpp_err"; then
5116 :
5117else
5118 echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121 # Broken: fails on valid input.
5122continue
5123fi
5124rm -f conftest.err conftest.$ac_ext
5125
5126 # OK, works on sane cases. Now check whether non-existent headers
5127 # can be detected and how.
5128 cat >conftest.$ac_ext <<_ACEOF
5129/* confdefs.h. */
5130_ACEOF
5131cat confdefs.h >>conftest.$ac_ext
5132cat >>conftest.$ac_ext <<_ACEOF
5133/* end confdefs.h. */
5134#include <ac_nonexistent.h>
5135_ACEOF
5136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5138 ac_status=$?
5139 grep -v '^ *+' conftest.er1 >conftest.err
5140 rm -f conftest.er1
5141 cat conftest.err >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } >/dev/null; then
5144 if test -s conftest.err; then
5145 ac_cpp_err=$ac_c_preproc_warn_flag
5146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5147 else
5148 ac_cpp_err=
5149 fi
5150else
5151 ac_cpp_err=yes
5152fi
5153if test -z "$ac_cpp_err"; then
5154 # Broken: success on invalid input.
5155continue
5156else
5157 echo "$as_me: failed program was:" >&5
5158sed 's/^/| /' conftest.$ac_ext >&5
5159
5160 # Passes both tests.
5161ac_preproc_ok=:
5162break
5163fi
5164rm -f conftest.err conftest.$ac_ext
5165
5166done
5167# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5168rm -f conftest.err conftest.$ac_ext
5169if $ac_preproc_ok; then
5170 break
5171fi
5172
5173 done
5174 ac_cv_prog_CPP=$CPP
5175
5176fi
5177 CPP=$ac_cv_prog_CPP
5178else
5179 ac_cv_prog_CPP=$CPP
5180fi
5181echo "$as_me:$LINENO: result: $CPP" >&5
5182echo "${ECHO_T}$CPP" >&6
5183ac_preproc_ok=false
5184for ac_c_preproc_warn_flag in '' yes
5185do
5186 # Use a header file that comes with gcc, so configuring glibc
5187 # with a fresh cross-compiler works.
5188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5189 # <limits.h> exists even on freestanding compilers.
5190 # On the NeXT, cc -E runs the code through the compiler's parser,
5191 # not just through cpp. "Syntax error" is here to catch this case.
5192 cat >conftest.$ac_ext <<_ACEOF
5193/* confdefs.h. */
5194_ACEOF
5195cat confdefs.h >>conftest.$ac_ext
5196cat >>conftest.$ac_ext <<_ACEOF
5197/* end confdefs.h. */
5198#ifdef __STDC__
5199# include <limits.h>
5200#else
5201# include <assert.h>
5202#endif
5203 Syntax error
5204_ACEOF
5205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } >/dev/null; then
5213 if test -s conftest.err; then
5214 ac_cpp_err=$ac_c_preproc_warn_flag
5215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5216 else
5217 ac_cpp_err=
5218 fi
5219else
5220 ac_cpp_err=yes
5221fi
5222if test -z "$ac_cpp_err"; then
5223 :
5224else
5225 echo "$as_me: failed program was:" >&5
5226sed 's/^/| /' conftest.$ac_ext >&5
5227
5228 # Broken: fails on valid input.
5229continue
5230fi
5231rm -f conftest.err conftest.$ac_ext
5232
5233 # OK, works on sane cases. Now check whether non-existent headers
5234 # can be detected and how.
5235 cat >conftest.$ac_ext <<_ACEOF
5236/* confdefs.h. */
5237_ACEOF
5238cat confdefs.h >>conftest.$ac_ext
5239cat >>conftest.$ac_ext <<_ACEOF
5240/* end confdefs.h. */
5241#include <ac_nonexistent.h>
5242_ACEOF
5243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } >/dev/null; then
5251 if test -s conftest.err; then
5252 ac_cpp_err=$ac_c_preproc_warn_flag
5253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5254 else
5255 ac_cpp_err=
5256 fi
5257else
5258 ac_cpp_err=yes
5259fi
5260if test -z "$ac_cpp_err"; then
5261 # Broken: success on invalid input.
5262continue
5263else
5264 echo "$as_me: failed program was:" >&5
5265sed 's/^/| /' conftest.$ac_ext >&5
5266
5267 # Passes both tests.
5268ac_preproc_ok=:
5269break
5270fi
5271rm -f conftest.err conftest.$ac_ext
5272
5273done
5274# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5275rm -f conftest.err conftest.$ac_ext
5276if $ac_preproc_ok; then
5277 :
5278else
5279 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5280See \`config.log' for more details." >&5
5281echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5282See \`config.log' for more details." >&2;}
5283 { (exit 1); exit 1; }; }
5284fi
5285
5286ac_ext=c
5287ac_cpp='$CPP $CPPFLAGS'
5288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5290ac_compiler_gnu=$ac_cv_c_compiler_gnu
5291
5292
5293echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5294echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5295if test "${ac_cv_header_stdc+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5297else
5298 cat >conftest.$ac_ext <<_ACEOF
5299/* confdefs.h. */
5300_ACEOF
5301cat confdefs.h >>conftest.$ac_ext
5302cat >>conftest.$ac_ext <<_ACEOF
5303/* end confdefs.h. */
5304#include <stdlib.h>
5305#include <stdarg.h>
5306#include <string.h>
5307#include <float.h>
5308
5309int
5310main ()
5311{
5312
5313 ;
5314 return 0;
5315}
5316_ACEOF
5317rm -f conftest.$ac_objext
5318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>conftest.er1
5320 ac_status=$?
5321 grep -v '^ *+' conftest.er1 >conftest.err
5322 rm -f conftest.er1
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try='test -z "$ac_c_werror_flag"
5327 || test ! -s conftest.err'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 (eval $ac_try) 2>&5
5330 ac_status=$?
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; } &&
5333 { ac_try='test -s conftest.$ac_objext'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335 (eval $ac_try) 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5339 ac_cv_header_stdc=yes
5340else
5341 echo "$as_me: failed program was:" >&5
5342sed 's/^/| /' conftest.$ac_ext >&5
5343
5344ac_cv_header_stdc=no
5345fi
5346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5347
5348if test $ac_cv_header_stdc = yes; then
5349 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5350 cat >conftest.$ac_ext <<_ACEOF
5351/* confdefs.h. */
5352_ACEOF
5353cat confdefs.h >>conftest.$ac_ext
5354cat >>conftest.$ac_ext <<_ACEOF
5355/* end confdefs.h. */
5356#include <string.h>
5357
5358_ACEOF
5359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5360 $EGREP "memchr" >/dev/null 2>&1; then
5361 :
5362else
5363 ac_cv_header_stdc=no
5364fi
5365rm -f conftest*
5366
5367fi
5368
5369if test $ac_cv_header_stdc = yes; then
5370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5371 cat >conftest.$ac_ext <<_ACEOF
5372/* confdefs.h. */
5373_ACEOF
5374cat confdefs.h >>conftest.$ac_ext
5375cat >>conftest.$ac_ext <<_ACEOF
5376/* end confdefs.h. */
5377#include <stdlib.h>
5378
5379_ACEOF
5380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5381 $EGREP "free" >/dev/null 2>&1; then
5382 :
5383else
5384 ac_cv_header_stdc=no
5385fi
5386rm -f conftest*
5387
5388fi
5389
5390if test $ac_cv_header_stdc = yes; then
5391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5392 if test "$cross_compiling" = yes; then
5393 :
5394else
5395 cat >conftest.$ac_ext <<_ACEOF
5396/* confdefs.h. */
5397_ACEOF
5398cat confdefs.h >>conftest.$ac_ext
5399cat >>conftest.$ac_ext <<_ACEOF
5400/* end confdefs.h. */
5401#include <ctype.h>
5402#if ((' ' & 0x0FF) == 0x020)
5403# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5404# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5405#else
5406# define ISLOWER(c) \
5407 (('a' <= (c) && (c) <= 'i') \
5408 || ('j' <= (c) && (c) <= 'r') \
5409 || ('s' <= (c) && (c) <= 'z'))
5410# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5411#endif
5412
5413#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5414int
5415main ()
5416{
5417 int i;
5418 for (i = 0; i < 256; i++)
5419 if (XOR (islower (i), ISLOWER (i))
5420 || toupper (i) != TOUPPER (i))
5421 exit(2);
5422 exit (0);
5423}
5424_ACEOF
5425rm -f conftest$ac_exeext
5426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5427 (eval $ac_link) 2>&5
5428 ac_status=$?
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 (eval $ac_try) 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; }; then
5436 :
5437else
5438 echo "$as_me: program exited with status $ac_status" >&5
5439echo "$as_me: failed program was:" >&5
5440sed 's/^/| /' conftest.$ac_ext >&5
5441
5442( exit $ac_status )
5443ac_cv_header_stdc=no
5444fi
5445rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5446fi
5447fi
5448fi
5449echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5450echo "${ECHO_T}$ac_cv_header_stdc" >&6
5451if test $ac_cv_header_stdc = yes; then
5452
5453cat >>confdefs.h <<\_ACEOF
5454#define STDC_HEADERS 1
5455_ACEOF
5456
5457fi
5458
5459# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5470 inttypes.h stdint.h unistd.h
5471do
5472as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5473echo "$as_me:$LINENO: checking for $ac_header" >&5
5474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5475if eval "test \"\${$as_ac_Header+set}\" = set"; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5477else
5478 cat >conftest.$ac_ext <<_ACEOF
5479/* confdefs.h. */
5480_ACEOF
5481cat confdefs.h >>conftest.$ac_ext
5482cat >>conftest.$ac_ext <<_ACEOF
5483/* end confdefs.h. */
5484$ac_includes_default
5485
5486#include <$ac_header>
5487_ACEOF
5488rm -f conftest.$ac_objext
5489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5490 (eval $ac_compile) 2>conftest.er1
5491 ac_status=$?
5492 grep -v '^ *+' conftest.er1 >conftest.err
5493 rm -f conftest.er1
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } &&
5497 { ac_try='test -z "$ac_c_werror_flag"
5498 || test ! -s conftest.err'
5499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 (eval $ac_try) 2>&5
5501 ac_status=$?
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; } &&
5504 { ac_try='test -s conftest.$ac_objext'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 (eval $ac_try) 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; }; then
5510 eval "$as_ac_Header=yes"
5511else
5512 echo "$as_me: failed program was:" >&5
5513sed 's/^/| /' conftest.$ac_ext >&5
5514
5515eval "$as_ac_Header=no"
5516fi
5517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5518fi
5519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5520echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5521if test `eval echo '${'$as_ac_Header'}'` = yes; then
5522 cat >>confdefs.h <<_ACEOF
5523#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5524_ACEOF
5525
5526fi
5527
5528done
5529
5530
5531
5532for ac_header in dlfcn.h
5533do
5534as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5535echo "$as_me:$LINENO: checking for $ac_header" >&5
5536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5537if eval "test \"\${$as_ac_Header+set}\" = set"; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539else
5540 cat >conftest.$ac_ext <<_ACEOF
5541/* confdefs.h. */
5542_ACEOF
5543cat confdefs.h >>conftest.$ac_ext
5544cat >>conftest.$ac_ext <<_ACEOF
5545/* end confdefs.h. */
5546$ac_includes_default
5547
5548#include <$ac_header>
5549_ACEOF
5550rm -f conftest.$ac_objext
5551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552 (eval $ac_compile) 2>conftest.er1
5553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try='test -z "$ac_c_werror_flag"
5560 || test ! -s conftest.err'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 (eval $ac_try) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; } &&
5566 { ac_try='test -s conftest.$ac_objext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 eval "$as_ac_Header=yes"
5573else
5574 echo "$as_me: failed program was:" >&5
5575sed 's/^/| /' conftest.$ac_ext >&5
5576
5577eval "$as_ac_Header=no"
5578fi
5579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5580fi
5581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5583if test `eval echo '${'$as_ac_Header'}'` = yes; then
5584 cat >>confdefs.h <<_ACEOF
5585#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5586_ACEOF
5587
5588fi
5589
5590done
5591
5592
5593
5594# This can be used to rebuild libtool when needed
5595LIBTOOL_DEPS="$ltmain"
5596
5597# Always use our own libtool.
5598LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624test -z "$LN_S" && LN_S="ln -s"
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639if test -n "${ZSH_VERSION+set}" ; then
5640 setopt NO_GLOB_SUBST
5641fi
5642
5643echo "$as_me:$LINENO: checking for objdir" >&5
5644echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5645if test "${lt_cv_objdir+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5647else
5648 rm -f .libs 2>/dev/null
5649mkdir .libs 2>/dev/null
5650if test -d .libs; then
5651 lt_cv_objdir=.libs
5652else
5653 # MS-DOS does not allow filenames that begin with a dot.
5654 lt_cv_objdir=_libs
5655fi
5656rmdir .libs 2>/dev/null
5657fi
5658echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5659echo "${ECHO_T}$lt_cv_objdir" >&6
5660objdir=$lt_cv_objdir
5661
5662
5663
5664
5665
5666cat >>confdefs.h <<_ACEOF
5667#define LT_OBJDIR "$lt_cv_objdir/"
5668_ACEOF
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686case $host_os in
5687aix3*)
5688 # AIX sometimes has problems with the GCC collect2 program. For some
5689 # reason, if we set the COLLECT_NAMES environment variable, the problems
5690 # vanish in a puff of smoke.
5691 if test "X${COLLECT_NAMES+set}" != Xset; then
5692 COLLECT_NAMES=
5693 export COLLECT_NAMES
5694 fi
5695 ;;
5696esac
5697
5698# Sed substitution that helps us do robust quoting. It backslashifies
5699# metacharacters that are still active within double-quoted strings.
5700sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5701
5702# Same as above, but do not quote variable references.
5703double_quote_subst='s/\(["`\\]\)/\\\1/g'
5704
5705# Sed substitution to delay expansion of an escaped shell variable in a
5706# double_quote_subst'ed string.
5707delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5708
5709# Sed substitution to delay expansion of an escaped single quote.
5710delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5711
5712# Sed substitution to avoid accidental globbing in evaled expressions
5713no_glob_subst='s/\*/\\\*/g'
5714
5715# Global variables:
5716ofile=libtool
5717can_build_shared=yes
5718
5719# All known linkers require a `.a' archive for static linking (except MSVC,
5720# which needs '.lib').
5721libext=a
5722
5723with_gnu_ld="$lt_cv_prog_gnu_ld"
5724
5725old_CC="$CC"
5726old_CFLAGS="$CFLAGS"
5727
5728# Set sane defaults for various variables
5729test -z "$CC" && CC=cc
5730test -z "$LTCC" && LTCC=$CC
5731test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5732test -z "$LD" && LD=ld
5733test -z "$ac_objext" && ac_objext=o
5734
5735for cc_temp in $compiler""; do
5736 case $cc_temp in
5737 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5738 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5739 \-*) ;;
5740 *) break;;
5741 esac
5742done
5743cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5744
5745
5746# Only perform the check for file, if the check method requires it
5747test -z "$MAGIC_CMD" && MAGIC_CMD=file
5748case $deplibs_check_method in
5749file_magic*)
5750 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5751 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5752echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5753if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755else
5756 case $MAGIC_CMD in
5757[\\/*] | ?:[\\/]*)
5758 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5759 ;;
5760*)
5761 lt_save_MAGIC_CMD="$MAGIC_CMD"
5762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5763 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5764 for ac_dir in $ac_dummy; do
5765 IFS="$lt_save_ifs"
5766 test -z "$ac_dir" && ac_dir=.
5767 if test -f $ac_dir/${ac_tool_prefix}file; then
5768 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5769 if test -n "$file_magic_test_file"; then
5770 case $deplibs_check_method in
5771 "file_magic "*)
5772 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5774 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5775 $EGREP "$file_magic_regex" > /dev/null; then
5776 :
5777 else
5778 cat <<_LT_EOF 1>&2
5779
5780*** Warning: the command libtool uses to detect shared libraries,
5781*** $file_magic_cmd, produces output that libtool cannot recognize.
5782*** The result is that libtool may fail to recognize shared libraries
5783*** as such. This will affect the creation of libtool libraries that
5784*** depend on shared libraries, but programs linked with such libtool
5785*** libraries will work regardless of this problem. Nevertheless, you
5786*** may want to report the problem to your system manager and/or to
5787*** bug-libtool@gnu.org
5788
5789_LT_EOF
5790 fi ;;
5791 esac
5792 fi
5793 break
5794 fi
5795 done
5796 IFS="$lt_save_ifs"
5797 MAGIC_CMD="$lt_save_MAGIC_CMD"
5798 ;;
5799esac
5800fi
5801
5802MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5803if test -n "$MAGIC_CMD"; then
5804 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5805echo "${ECHO_T}$MAGIC_CMD" >&6
5806else
5807 echo "$as_me:$LINENO: result: no" >&5
5808echo "${ECHO_T}no" >&6
5809fi
5810
5811
5812
5813
5814
5815if test -z "$lt_cv_path_MAGIC_CMD"; then
5816 if test -n "$ac_tool_prefix"; then
5817 echo "$as_me:$LINENO: checking for file" >&5
5818echo $ECHO_N "checking for file... $ECHO_C" >&6
5819if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821else
5822 case $MAGIC_CMD in
5823[\\/*] | ?:[\\/]*)
5824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5825 ;;
5826*)
5827 lt_save_MAGIC_CMD="$MAGIC_CMD"
5828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5829 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5830 for ac_dir in $ac_dummy; do
5831 IFS="$lt_save_ifs"
5832 test -z "$ac_dir" && ac_dir=.
5833 if test -f $ac_dir/file; then
5834 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5835 if test -n "$file_magic_test_file"; then
5836 case $deplibs_check_method in
5837 "file_magic "*)
5838 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5840 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5841 $EGREP "$file_magic_regex" > /dev/null; then
5842 :
5843 else
5844 cat <<_LT_EOF 1>&2
5845
5846*** Warning: the command libtool uses to detect shared libraries,
5847*** $file_magic_cmd, produces output that libtool cannot recognize.
5848*** The result is that libtool may fail to recognize shared libraries
5849*** as such. This will affect the creation of libtool libraries that
5850*** depend on shared libraries, but programs linked with such libtool
5851*** libraries will work regardless of this problem. Nevertheless, you
5852*** may want to report the problem to your system manager and/or to
5853*** bug-libtool@gnu.org
5854
5855_LT_EOF
5856 fi ;;
5857 esac
5858 fi
5859 break
5860 fi
5861 done
5862 IFS="$lt_save_ifs"
5863 MAGIC_CMD="$lt_save_MAGIC_CMD"
5864 ;;
5865esac
5866fi
5867
5868MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5869if test -n "$MAGIC_CMD"; then
5870 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5871echo "${ECHO_T}$MAGIC_CMD" >&6
5872else
5873 echo "$as_me:$LINENO: result: no" >&5
5874echo "${ECHO_T}no" >&6
5875fi
5876
5877
5878 else
5879 MAGIC_CMD=:
5880 fi
5881fi
5882
5883 fi
5884 ;;
5885esac
5886
5887# Use C for the default configuration in the libtool script
5888
5889lt_save_CC="$CC"
5890ac_ext=c
5891ac_cpp='$CPP $CPPFLAGS'
5892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5894ac_compiler_gnu=$ac_cv_c_compiler_gnu
5895
5896
5897# Source file extension for C test sources.
5898ac_ext=c
5899
5900# Object file extension for compiled C test sources.
5901objext=o
5902objext=$objext
5903
5904# Code to be used in simple compile tests
5905lt_simple_compile_test_code="int some_variable = 0;"
5906
5907# Code to be used in simple link tests
5908lt_simple_link_test_code='int main(){return(0);}'
5909
5910
5911
5912
5913
5914
5915
5916# If no C compiler was specified, use CC.
5917LTCC=${LTCC-"$CC"}
5918
5919# If no C compiler flags were specified, use CFLAGS.
5920LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5921
5922# Allow CC to be a program name with arguments.
5923compiler=$CC
5924
5925# Save the default compiler, since it gets overwritten when the other
5926# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5927compiler_DEFAULT=$CC
5928
5929# save warnings/boilerplate of simple test code
5930ac_outfile=conftest.$ac_objext
5931echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5932eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5933_lt_compiler_boilerplate=`cat conftest.err`
5934$RM conftest*
5935
5936ac_outfile=conftest.$ac_objext
5937echo "$lt_simple_link_test_code" >conftest.$ac_ext
5938eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5939_lt_linker_boilerplate=`cat conftest.err`
5940$RM conftest*
5941
5942
5943## CAVEAT EMPTOR:
5944## There is no encapsulation within the following macros, do not change
5945## the running order or otherwise move them around unless you know exactly
5946## what you are doing...
5947if test -n "$compiler"; then
5948
5949lt_prog_compiler_no_builtin_flag=
5950
5951if test "$GCC" = yes; then
5952 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5953
5954 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5955echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5956if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959 lt_cv_prog_compiler_rtti_exceptions=no
5960 ac_outfile=conftest.$ac_objext
5961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5962 lt_compiler_flag="-fno-rtti -fno-exceptions"
5963 # Insert the option either (1) after the last *FLAGS variable, or
5964 # (2) before a word containing "conftest.", or (3) at the end.
5965 # Note that $ac_compile itself does not contain backslashes and begins
5966 # with a dollar sign (not a hyphen), so the echo should work correctly.
5967 # The option is referenced via a variable to avoid confusing sed.
5968 lt_compile=`echo "$ac_compile" | $SED \
5969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5971 -e 's:$: $lt_compiler_flag:'`
82a6cadf 5972 (eval echo "\"\$as_me:5972: $lt_compile\"" >&5)
1cf3d07d
SE
5973 (eval "$lt_compile" 2>conftest.err)
5974 ac_status=$?
5975 cat conftest.err >&5
82a6cadf 5976 echo "$as_me:5976: \$? = $ac_status" >&5
1cf3d07d
SE
5977 if (exit $ac_status) && test -s "$ac_outfile"; then
5978 # The compiler can only warn and ignore the option if not recognized
5979 # So say no if there are warnings other than the usual output.
5980 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5982 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5983 lt_cv_prog_compiler_rtti_exceptions=yes
5984 fi
5985 fi
5986 $RM conftest*
5987
5988fi
5989echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5990echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5991
5992if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5993 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5994else
5995 :
5996fi
5997
5998fi
5999
6000
6001
6002
6003
6004
6005 lt_prog_compiler_wl=
6006lt_prog_compiler_pic=
6007lt_prog_compiler_static=
6008
6009echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6010echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6011
6012 if test "$GCC" = yes; then
6013 lt_prog_compiler_wl='-Wl,'
6014 lt_prog_compiler_static='-static'
6015
6016 case $host_os in
6017 aix*)
6018 # All AIX code is PIC.
6019 if test "$host_cpu" = ia64; then
6020 # AIX 5 now supports IA64 processor
6021 lt_prog_compiler_static='-Bstatic'
6022 fi
6023 ;;
6024
6025 amigaos*)
6026 if test "$host_cpu" = m68k; then
6027 # FIXME: we need at least 68020 code to build shared libraries, but
6028 # adding the `-m68020' flag to GCC prevents building anything better,
6029 # like `-m68040'.
6030 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6031 fi
6032 ;;
6033
6034 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6035 # PIC is the default for these OSes.
6036 ;;
6037
6038 mingw* | cygwin* | pw32* | os2*)
6039 # This hack is so that the source file can tell whether it is being
6040 # built for inclusion in a dll (and should export symbols for example).
6041 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6042 # (--disable-auto-import) libraries
6043 lt_prog_compiler_pic='-DDLL_EXPORT'
6044 ;;
6045
6046 darwin* | rhapsody*)
6047 # PIC is the default on this platform
6048 # Common symbols not allowed in MH_DYLIB files
6049 lt_prog_compiler_pic='-fno-common'
6050 ;;
6051
6052 hpux*)
6053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6054 # not for PA HP-UX.
6055 case $host_cpu in
6056 hppa*64*|ia64*)
6057 # +Z the default
6058 ;;
6059 *)
6060 lt_prog_compiler_pic='-fPIC'
6061 ;;
6062 esac
6063 ;;
6064
6065 interix[3-9]*)
6066 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6067 # Instead, we relocate shared libraries at runtime.
6068 ;;
6069
6070 msdosdjgpp*)
6071 # Just because we use GCC doesn't mean we suddenly get shared libraries
6072 # on systems that don't support them.
6073 lt_prog_compiler_can_build_shared=no
6074 enable_shared=no
6075 ;;
6076
6077 *nto* | *qnx*)
6078 # QNX uses GNU C++, but need to define -shared option too, otherwise
6079 # it will coredump.
6080 lt_prog_compiler_pic='-fPIC -shared'
6081 ;;
6082
6083 sysv4*MP*)
6084 if test -d /usr/nec; then
6085 lt_prog_compiler_pic=-Kconform_pic
6086 fi
6087 ;;
6088
6089 *)
6090 lt_prog_compiler_pic='-fPIC'
6091 ;;
6092 esac
6093 else
6094 # PORTME Check for flag to pass linker flags through the system compiler.
6095 case $host_os in
6096 aix*)
6097 lt_prog_compiler_wl='-Wl,'
6098 if test "$host_cpu" = ia64; then
6099 # AIX 5 now supports IA64 processor
6100 lt_prog_compiler_static='-Bstatic'
6101 else
6102 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6103 fi
6104 ;;
6105 darwin*)
6106 # PIC is the default on this platform
6107 # Common symbols not allowed in MH_DYLIB files
6108 case $cc_basename in
6109 xlc*)
6110 lt_prog_compiler_pic='-qnocommon'
6111 lt_prog_compiler_wl='-Wl,'
6112 ;;
6113 esac
6114 ;;
6115
6116 mingw* | cygwin* | pw32* | os2*)
6117 # This hack is so that the source file can tell whether it is being
6118 # built for inclusion in a dll (and should export symbols for example).
6119 lt_prog_compiler_pic='-DDLL_EXPORT'
6120 ;;
6121
6122 hpux9* | hpux10* | hpux11*)
6123 lt_prog_compiler_wl='-Wl,'
6124 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6125 # not for PA HP-UX.
6126 case $host_cpu in
6127 hppa*64*|ia64*)
6128 # +Z the default
6129 ;;
6130 *)
6131 lt_prog_compiler_pic='+Z'
6132 ;;
6133 esac
6134 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6135 lt_prog_compiler_static='${wl}-a ${wl}archive'
6136 ;;
6137
6138 irix5* | irix6* | nonstopux*)
6139 lt_prog_compiler_wl='-Wl,'
6140 # PIC (with -KPIC) is the default.
6141 lt_prog_compiler_static='-non_shared'
6142 ;;
6143
6144 linux* | k*bsd*-gnu)
6145 case $cc_basename in
6146 icc* | ecc*)
6147 lt_prog_compiler_wl='-Wl,'
6148 lt_prog_compiler_pic='-KPIC'
6149 lt_prog_compiler_static='-static'
6150 ;;
6151 pgcc* | pgf77* | pgf90* | pgf95*)
6152 # Portland Group compilers (*not* the Pentium gcc compiler,
6153 # which looks to be a dead project)
6154 lt_prog_compiler_wl='-Wl,'
6155 lt_prog_compiler_pic='-fpic'
6156 lt_prog_compiler_static='-Bstatic'
6157 ;;
6158 ccc*)
6159 lt_prog_compiler_wl='-Wl,'
6160 # All Alpha code is PIC.
6161 lt_prog_compiler_static='-non_shared'
6162 ;;
6163 *)
6164 case `$CC -V 2>&1 | sed 5q` in
6165 *Sun\ C*)
6166 # Sun C 5.9
6167 lt_prog_compiler_pic='-KPIC'
6168 lt_prog_compiler_static='-Bstatic'
6169 lt_prog_compiler_wl='-Wl,'
6170 ;;
6171 *Sun\ F*)
6172 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6173 lt_prog_compiler_pic='-KPIC'
6174 lt_prog_compiler_static='-Bstatic'
6175 lt_prog_compiler_wl=''
6176 ;;
6177 esac
6178 ;;
6179 esac
6180 ;;
6181
6182 newsos6)
6183 lt_prog_compiler_pic='-KPIC'
6184 lt_prog_compiler_static='-Bstatic'
6185 ;;
6186
6187 *nto* | *qnx*)
6188 # QNX uses GNU C++, but need to define -shared option too, otherwise
6189 # it will coredump.
6190 lt_prog_compiler_pic='-fPIC -shared'
6191 ;;
6192
6193 osf3* | osf4* | osf5*)
6194 lt_prog_compiler_wl='-Wl,'
6195 # All OSF/1 code is PIC.
6196 lt_prog_compiler_static='-non_shared'
6197 ;;
6198
6199 rdos*)
6200 lt_prog_compiler_static='-non_shared'
6201 ;;
6202
6203 solaris*)
6204 lt_prog_compiler_pic='-KPIC'
6205 lt_prog_compiler_static='-Bstatic'
6206 case $cc_basename in
6207 f77* | f90* | f95*)
6208 lt_prog_compiler_wl='-Qoption ld ';;
6209 *)
6210 lt_prog_compiler_wl='-Wl,';;
6211 esac
6212 ;;
6213
6214 sunos4*)
6215 lt_prog_compiler_wl='-Qoption ld '
6216 lt_prog_compiler_pic='-PIC'
6217 lt_prog_compiler_static='-Bstatic'
6218 ;;
6219
6220 sysv4 | sysv4.2uw2* | sysv4.3*)
6221 lt_prog_compiler_wl='-Wl,'
6222 lt_prog_compiler_pic='-KPIC'
6223 lt_prog_compiler_static='-Bstatic'
6224 ;;
6225
6226 sysv4*MP*)
6227 if test -d /usr/nec ;then
6228 lt_prog_compiler_pic='-Kconform_pic'
6229 lt_prog_compiler_static='-Bstatic'
6230 fi
6231 ;;
6232
6233 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6234 lt_prog_compiler_wl='-Wl,'
6235 lt_prog_compiler_pic='-KPIC'
6236 lt_prog_compiler_static='-Bstatic'
6237 ;;
6238
6239 unicos*)
6240 lt_prog_compiler_wl='-Wl,'
6241 lt_prog_compiler_can_build_shared=no
6242 ;;
6243
6244 uts4*)
6245 lt_prog_compiler_pic='-pic'
6246 lt_prog_compiler_static='-Bstatic'
6247 ;;
6248
6249 *)
6250 lt_prog_compiler_can_build_shared=no
6251 ;;
6252 esac
6253 fi
6254
6255case $host_os in
6256 # For platforms which do not support PIC, -DPIC is meaningless:
6257 *djgpp*)
6258 lt_prog_compiler_pic=
6259 ;;
6260 *)
6261 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6262 ;;
6263esac
6264echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6265echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6266
6267
6268
6269
6270
6271
6272#
6273# Check to make sure the PIC flag actually works.
6274#
6275if test -n "$lt_prog_compiler_pic"; then
6276 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6277echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6278if test "${lt_prog_compiler_pic_works+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280else
6281 lt_prog_compiler_pic_works=no
6282 ac_outfile=conftest.$ac_objext
6283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6284 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6285 # Insert the option either (1) after the last *FLAGS variable, or
6286 # (2) before a word containing "conftest.", or (3) at the end.
6287 # Note that $ac_compile itself does not contain backslashes and begins
6288 # with a dollar sign (not a hyphen), so the echo should work correctly.
6289 # The option is referenced via a variable to avoid confusing sed.
6290 lt_compile=`echo "$ac_compile" | $SED \
6291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6293 -e 's:$: $lt_compiler_flag:'`
82a6cadf 6294 (eval echo "\"\$as_me:6294: $lt_compile\"" >&5)
1cf3d07d
SE
6295 (eval "$lt_compile" 2>conftest.err)
6296 ac_status=$?
6297 cat conftest.err >&5
82a6cadf 6298 echo "$as_me:6298: \$? = $ac_status" >&5
1cf3d07d
SE
6299 if (exit $ac_status) && test -s "$ac_outfile"; then
6300 # The compiler can only warn and ignore the option if not recognized
6301 # So say no if there are warnings other than the usual output.
6302 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6304 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6305 lt_prog_compiler_pic_works=yes
6306 fi
6307 fi
6308 $RM conftest*
6309
6310fi
6311echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6312echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6313
6314if test x"$lt_prog_compiler_pic_works" = xyes; then
6315 case $lt_prog_compiler_pic in
6316 "" | " "*) ;;
6317 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6318 esac
6319else
6320 lt_prog_compiler_pic=
6321 lt_prog_compiler_can_build_shared=no
6322fi
6323
6324fi
6325
6326
6327
6328
6329
6330
6331#
6332# Check to make sure the static flag actually works.
6333#
6334wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6335echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6336echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6337if test "${lt_prog_compiler_static_works+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6339else
6340 lt_prog_compiler_static_works=no
6341 save_LDFLAGS="$LDFLAGS"
6342 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6343 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6344 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6345 # The linker can only warn and ignore the option if not recognized
6346 # So say no if there are warnings
6347 if test -s conftest.err; then
6348 # Append any errors to the config.log.
6349 cat conftest.err 1>&5
6350 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6352 if diff conftest.exp conftest.er2 >/dev/null; then
6353 lt_prog_compiler_static_works=yes
6354 fi
6355 else
6356 lt_prog_compiler_static_works=yes
6357 fi
6358 fi
6359 $RM conftest*
6360 LDFLAGS="$save_LDFLAGS"
6361
6362fi
6363echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6364echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6365
6366if test x"$lt_prog_compiler_static_works" = xyes; then
6367 :
6368else
6369 lt_prog_compiler_static=
6370fi
6371
6372
6373
6374
6375
6376
6377
6378 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6379echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6380if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6382else
6383 lt_cv_prog_compiler_c_o=no
6384 $RM -r conftest 2>/dev/null
6385 mkdir conftest
6386 cd conftest
6387 mkdir out
6388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6389
6390 lt_compiler_flag="-o out/conftest2.$ac_objext"
6391 # Insert the option either (1) after the last *FLAGS variable, or
6392 # (2) before a word containing "conftest.", or (3) at the end.
6393 # Note that $ac_compile itself does not contain backslashes and begins
6394 # with a dollar sign (not a hyphen), so the echo should work correctly.
6395 lt_compile=`echo "$ac_compile" | $SED \
6396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6398 -e 's:$: $lt_compiler_flag:'`
82a6cadf 6399 (eval echo "\"\$as_me:6399: $lt_compile\"" >&5)
1cf3d07d
SE
6400 (eval "$lt_compile" 2>out/conftest.err)
6401 ac_status=$?
6402 cat out/conftest.err >&5
82a6cadf 6403 echo "$as_me:6403: \$? = $ac_status" >&5
1cf3d07d
SE
6404 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6405 then
6406 # The compiler can only warn and ignore the option if not recognized
6407 # So say no if there are warnings
6408 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6409 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6410 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6411 lt_cv_prog_compiler_c_o=yes
6412 fi
6413 fi
6414 chmod u+w . 2>&5
6415 $RM conftest*
6416 # SGI C++ compiler will create directory out/ii_files/ for
6417 # template instantiation
6418 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6419 $RM out/* && rmdir out
6420 cd ..
6421 $RM -r conftest
6422 $RM conftest*
6423
6424fi
6425echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6426echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6427
6428
6429
6430
6431
6432
6433 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6434echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6435if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6437else
6438 lt_cv_prog_compiler_c_o=no
6439 $RM -r conftest 2>/dev/null
6440 mkdir conftest
6441 cd conftest
6442 mkdir out
6443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6444
6445 lt_compiler_flag="-o out/conftest2.$ac_objext"
6446 # Insert the option either (1) after the last *FLAGS variable, or
6447 # (2) before a word containing "conftest.", or (3) at the end.
6448 # Note that $ac_compile itself does not contain backslashes and begins
6449 # with a dollar sign (not a hyphen), so the echo should work correctly.
6450 lt_compile=`echo "$ac_compile" | $SED \
6451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6453 -e 's:$: $lt_compiler_flag:'`
82a6cadf 6454 (eval echo "\"\$as_me:6454: $lt_compile\"" >&5)
1cf3d07d
SE
6455 (eval "$lt_compile" 2>out/conftest.err)
6456 ac_status=$?
6457 cat out/conftest.err >&5
82a6cadf 6458 echo "$as_me:6458: \$? = $ac_status" >&5
1cf3d07d
SE
6459 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6460 then
6461 # The compiler can only warn and ignore the option if not recognized
6462 # So say no if there are warnings
6463 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6464 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6465 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6466 lt_cv_prog_compiler_c_o=yes
6467 fi
6468 fi
6469 chmod u+w . 2>&5
6470 $RM conftest*
6471 # SGI C++ compiler will create directory out/ii_files/ for
6472 # template instantiation
6473 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6474 $RM out/* && rmdir out
6475 cd ..
6476 $RM -r conftest
6477 $RM conftest*
6478
6479fi
6480echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6481echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6482
6483
6484
6485
6486hard_links="nottested"
6487if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6488 # do not overwrite the value of need_locks provided by the user
6489 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6490echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6491 hard_links=yes
6492 $RM conftest*
6493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6494 touch conftest.a
6495 ln conftest.a conftest.b 2>&5 || hard_links=no
6496 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6497 echo "$as_me:$LINENO: result: $hard_links" >&5
6498echo "${ECHO_T}$hard_links" >&6
6499 if test "$hard_links" = no; then
6500 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6501echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6502 need_locks=warn
6503 fi
6504else
6505 need_locks=no
6506fi
6507
6508
6509
6510
6511
6512
6513 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6514echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6515
6516 runpath_var=
6517 allow_undefined_flag=
6518 always_export_symbols=no
6519 archive_cmds=
6520 archive_expsym_cmds=
6521 compiler_needs_object=no
6522 enable_shared_with_static_runtimes=no
6523 export_dynamic_flag_spec=
6524 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6525 hardcode_automatic=no
6526 hardcode_direct=no
6527 hardcode_direct_absolute=no
6528 hardcode_libdir_flag_spec=
6529 hardcode_libdir_flag_spec_ld=
6530 hardcode_libdir_separator=
6531 hardcode_minus_L=no
6532 hardcode_shlibpath_var=unsupported
6533 inherit_rpath=no
6534 link_all_deplibs=unknown
6535 module_cmds=
6536 module_expsym_cmds=
6537 old_archive_from_new_cmds=
6538 old_archive_from_expsyms_cmds=
6539 thread_safe_flag_spec=
6540 whole_archive_flag_spec=
6541 # include_expsyms should be a list of space-separated symbols to be *always*
6542 # included in the symbol list
6543 include_expsyms=
6544 # exclude_expsyms can be an extended regexp of symbols to exclude
6545 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6546 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6547 # as well as any symbol that contains `d'.
6548 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6549 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6550 # platforms (ab)use it in PIC code, but their linkers get confused if
6551 # the symbol is explicitly referenced. Since portable code cannot
6552 # rely on this symbol name, it's probably fine to never include it in
6553 # preloaded symbol tables.
6554 extract_expsyms_cmds=
6555
6556 case $host_os in
6557 cygwin* | mingw* | pw32*)
6558 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6559 # When not using gcc, we currently assume that we are using
6560 # Microsoft Visual C++.
6561 if test "$GCC" != yes; then
6562 with_gnu_ld=no
6563 fi
6564 ;;
6565 interix*)
6566 # we just hope/assume this is gcc and not c89 (= MSVC++)
6567 with_gnu_ld=yes
6568 ;;
6569 openbsd*)
6570 with_gnu_ld=no
6571 ;;
6572 esac
6573
6574 ld_shlibs=yes
6575 if test "$with_gnu_ld" = yes; then
6576 # If archive_cmds runs LD, not CC, wlarc should be empty
6577 wlarc='${wl}'
6578
6579 # Set some defaults for GNU ld with shared library support. These
6580 # are reset later if shared libraries are not supported. Putting them
6581 # here allows them to be overridden if necessary.
6582 runpath_var=LD_RUN_PATH
6583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6584 export_dynamic_flag_spec='${wl}--export-dynamic'
6585 # ancient GNU ld didn't support --whole-archive et. al.
6586 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6587 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6588 else
6589 whole_archive_flag_spec=
6590 fi
6591 supports_anon_versioning=no
6592 case `$LD -v 2>&1` in
6593 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6594 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6595 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6596 *\ 2.11.*) ;; # other 2.11 versions
6597 *) supports_anon_versioning=yes ;;
6598 esac
6599
6600 # See if GNU ld supports shared libraries.
6601 case $host_os in
6602 aix3* | aix4* | aix5*)
6603 # On AIX/PPC, the GNU linker is very broken
6604 if test "$host_cpu" != ia64; then
6605 ld_shlibs=no
6606 cat <<_LT_EOF 1>&2
6607
6608*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6609*** to be unable to reliably create shared libraries on AIX.
6610*** Therefore, libtool is disabling shared libraries support. If you
6611*** really care for shared libraries, you may want to modify your PATH
6612*** so that a non-GNU linker is found, and then restart.
6613
6614_LT_EOF
6615 fi
6616 ;;
6617
6618 amigaos*)
6619 if test "$host_cpu" = m68k; then
6620 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)'
6621 hardcode_libdir_flag_spec='-L$libdir'
6622 hardcode_minus_L=yes
6623 fi
6624
6625 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6626 # that the semantics of dynamic libraries on AmigaOS, at least up
6627 # to version 4, is to share data among multiple programs linked
6628 # with the same dynamic library. Since this doesn't match the
6629 # behavior of shared libraries on other platforms, we can't use
6630 # them.
6631 ld_shlibs=no
6632 ;;
6633
6634 beos*)
6635 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6636 allow_undefined_flag=unsupported
6637 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6638 # support --undefined. This deserves some investigation. FIXME
6639 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6640 else
6641 ld_shlibs=no
6642 fi
6643 ;;
6644
6645 cygwin* | mingw* | pw32*)
6646 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6647 # as there is no search path for DLLs.
6648 hardcode_libdir_flag_spec='-L$libdir'
6649 allow_undefined_flag=unsupported
6650 always_export_symbols=no
6651 enable_shared_with_static_runtimes=yes
6652 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6653
6654 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6656 # If the export-symbols file already is a .def file (1st line
6657 # is EXPORTS), use it as is; otherwise, prepend...
6658 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6659 cp $export_symbols $output_objdir/$soname.def;
6660 else
6661 echo EXPORTS > $output_objdir/$soname.def;
6662 cat $export_symbols >> $output_objdir/$soname.def;
6663 fi~
6664 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6665 else
6666 ld_shlibs=no
6667 fi
6668 ;;
6669
6670 interix[3-9]*)
6671 hardcode_direct=no
6672 hardcode_shlibpath_var=no
6673 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6674 export_dynamic_flag_spec='${wl}-E'
6675 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6676 # Instead, shared libraries are loaded at an image base (0x10000000 by
6677 # default) and relocated if they conflict, which is a slow very memory
6678 # consuming and fragmenting process. To avoid this, we pick a random,
6679 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6680 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6681 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6682 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'
6683 ;;
6684
6685 gnu* | linux* | tpf* | k*bsd*-gnu)
6686 tmp_diet=no
6687 if test "$host_os" = linux-dietlibc; then
6688 case $cc_basename in
6689 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6690 esac
6691 fi
6692 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6693 && test "$tmp_diet" = no
6694 then
6695 tmp_addflag=
6696 case $cc_basename,$host_cpu in
6697 pgcc*) # Portland Group C compiler
6698 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'
6699 tmp_addflag=' $pic_flag'
6700 ;;
6701 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6702 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'
6703 tmp_addflag=' $pic_flag -Mnomain' ;;
6704 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6705 tmp_addflag=' -i_dynamic' ;;
6706 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6707 tmp_addflag=' -i_dynamic -nofor_main' ;;
6708 ifc* | ifort*) # Intel Fortran compiler
6709 tmp_addflag=' -nofor_main' ;;
6710 esac
6711 case `$CC -V 2>&1 | sed 5q` in
6712 *Sun\ C*) # Sun C 5.9
6713 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'
6714 compiler_needs_object=yes
6715 tmp_sharedflag='-G' ;;
6716 *Sun\ F*) # Sun Fortran 8.3
6717 tmp_sharedflag='-G' ;;
6718 *)
6719 tmp_sharedflag='-shared' ;;
6720 esac
6721 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6722
6723 if test "x$supports_anon_versioning" = xyes; then
6724 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6725 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6726 echo "local: *; };" >> $output_objdir/$libname.ver~
6727 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6728 fi
6729 else
6730 ld_shlibs=no
6731 fi
6732 ;;
6733
6734 netbsd*)
6735 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6736 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6737 wlarc=
6738 else
6739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6740 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6741 fi
6742 ;;
6743
6744 solaris*)
6745 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6746 ld_shlibs=no
6747 cat <<_LT_EOF 1>&2
6748
6749*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6750*** create shared libraries on Solaris systems. Therefore, libtool
6751*** is disabling shared libraries support. We urge you to upgrade GNU
6752*** binutils to release 2.9.1 or newer. Another option is to modify
6753*** your PATH or compiler configuration so that the native linker is
6754*** used, and then restart.
6755
6756_LT_EOF
6757 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6760 else
6761 ld_shlibs=no
6762 fi
6763 ;;
6764
6765 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6766 case `$LD -v 2>&1` in
6767 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6768 ld_shlibs=no
6769 cat <<_LT_EOF 1>&2
6770
6771*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6772*** reliably create shared libraries on SCO systems. Therefore, libtool
6773*** is disabling shared libraries support. We urge you to upgrade GNU
6774*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6775*** your PATH or compiler configuration so that the native linker is
6776*** used, and then restart.
6777
6778_LT_EOF
6779 ;;
6780 *)
6781 # For security reasons, it is highly recommended that you always
6782 # use absolute paths for naming shared libraries, and exclude the
6783 # DT_RUNPATH tag from executables and libraries. But doing so
6784 # requires that you compile everything twice, which is a pain.
6785 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6789 else
6790 ld_shlibs=no
6791 fi
6792 ;;
6793 esac
6794 ;;
6795
6796 sunos4*)
6797 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6798 wlarc=
6799 hardcode_direct=yes
6800 hardcode_shlibpath_var=no
6801 ;;
6802
6803 *)
6804 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6807 else
6808 ld_shlibs=no
6809 fi
6810 ;;
6811 esac
6812
6813 if test "$ld_shlibs" = no; then
6814 runpath_var=
6815 hardcode_libdir_flag_spec=
6816 export_dynamic_flag_spec=
6817 whole_archive_flag_spec=
6818 fi
6819 else
6820 # PORTME fill in a description of your system's linker (not GNU ld)
6821 case $host_os in
6822 aix3*)
6823 allow_undefined_flag=unsupported
6824 always_export_symbols=yes
6825 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'
6826 # Note: this linker hardcodes the directories in LIBPATH if there
6827 # are no directories specified by -L.
6828 hardcode_minus_L=yes
6829 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6830 # Neither direct hardcoding nor static linking is supported with a
6831 # broken collect2.
6832 hardcode_direct=unsupported
6833 fi
6834 ;;
6835
6836 aix4* | aix5*)
6837 if test "$host_cpu" = ia64; then
6838 # On IA64, the linker does run time linking by default, so we don't
6839 # have to do anything special.
6840 aix_use_runtimelinking=no
6841 exp_sym_flag='-Bexport'
6842 no_entry_flag=""
6843 else
6844 # If we're using GNU nm, then we don't want the "-C" option.
6845 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6846 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6847 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'
6848 else
6849 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'
6850 fi
6851 aix_use_runtimelinking=no
6852
6853 # Test if we are trying to use run time linking or normal
6854 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6855 # need to do runtime linking.
6856 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6857 for ld_flag in $LDFLAGS; do
6858 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6859 aix_use_runtimelinking=yes
6860 break
6861 fi
6862 done
6863 ;;
6864 esac
6865
6866 exp_sym_flag='-bexport'
6867 no_entry_flag='-bnoentry'
6868 fi
6869
6870 # When large executables or shared objects are built, AIX ld can
6871 # have problems creating the table of contents. If linking a library
6872 # or program results in "error TOC overflow" add -mminimal-toc to
6873 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6874 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6875
6876 archive_cmds=''
6877 hardcode_direct=yes
6878 hardcode_direct_absolute=yes
6879 hardcode_libdir_separator=':'
6880 link_all_deplibs=yes
6881 file_list_spec='${wl}-f,'
6882
6883 if test "$GCC" = yes; then
6884 case $host_os in aix4.[012]|aix4.[012].*)
6885 # We only want to do this on AIX 4.2 and lower, the check
6886 # below for broken collect2 doesn't work under 4.3+
6887 collect2name=`${CC} -print-prog-name=collect2`
6888 if test -f "$collect2name" &&
6889 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6890 then
6891 # We have reworked collect2
6892 :
6893 else
6894 # We have old collect2
6895 hardcode_direct=unsupported
6896 # It fails to find uninstalled libraries when the uninstalled
6897 # path is not listed in the libpath. Setting hardcode_minus_L
6898 # to unsupported forces relinking
6899 hardcode_minus_L=yes
6900 hardcode_libdir_flag_spec='-L$libdir'
6901 hardcode_libdir_separator=
6902 fi
6903 ;;
6904 esac
6905 shared_flag='-shared'
6906 if test "$aix_use_runtimelinking" = yes; then
6907 shared_flag="$shared_flag "'${wl}-G'
6908 fi
6909 else
6910 # not using gcc
6911 if test "$host_cpu" = ia64; then
6912 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6913 # chokes on -Wl,-G. The following line is correct:
6914 shared_flag='-G'
6915 else
6916 if test "$aix_use_runtimelinking" = yes; then
6917 shared_flag='${wl}-G'
6918 else
6919 shared_flag='${wl}-bM:SRE'
6920 fi
6921 fi
6922 fi
6923
6924 # It seems that -bexpall does not export symbols beginning with
6925 # underscore (_), so it is better to generate a list of symbols to export.
6926 always_export_symbols=yes
6927 if test "$aix_use_runtimelinking" = yes; then
6928 # Warning - without using the other runtime loading flags (-brtl),
6929 # -berok will link without error, but may produce a broken library.
6930 allow_undefined_flag='-berok'
6931 # Determine the default libpath from the value encoded in an
6932 # empty executable.
6933 cat >conftest.$ac_ext <<_ACEOF
6934/* confdefs.h. */
6935_ACEOF
6936cat confdefs.h >>conftest.$ac_ext
6937cat >>conftest.$ac_ext <<_ACEOF
6938/* end confdefs.h. */
6939
6940int
6941main ()
6942{
6943
6944 ;
6945 return 0;
6946}
6947_ACEOF
6948rm -f conftest.$ac_objext conftest$ac_exeext
6949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6950 (eval $ac_link) 2>conftest.er1
6951 ac_status=$?
6952 grep -v '^ *+' conftest.er1 >conftest.err
6953 rm -f conftest.er1
6954 cat conftest.err >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } &&
6957 { ac_try='test -z "$ac_c_werror_flag"
6958 || test ! -s conftest.err'
6959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 (eval $ac_try) 2>&5
6961 ac_status=$?
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; } &&
6964 { ac_try='test -s conftest$ac_exeext'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 (eval $ac_try) 2>&5
6967 ac_status=$?
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; }; then
6970
6971lt_aix_libpath_sed='
6972 /Import File Strings/,/^$/ {
6973 /^0/ {
6974 s/^0 *\(.*\)$/\1/
6975 p
6976 }
6977 }'
6978aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6979# Check for a 64-bit object if we didn't find anything.
6980if test -z "$aix_libpath"; then
6981 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6982fi
6983else
6984 echo "$as_me: failed program was:" >&5
6985sed 's/^/| /' conftest.$ac_ext >&5
6986
6987fi
6988rm -f conftest.err conftest.$ac_objext \
6989 conftest$ac_exeext conftest.$ac_ext
6990if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6991
6992 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6993 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"
6994 else
6995 if test "$host_cpu" = ia64; then
6996 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6997 allow_undefined_flag="-z nodefs"
6998 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"
6999 else
7000 # Determine the default libpath from the value encoded in an
7001 # empty executable.
7002 cat >conftest.$ac_ext <<_ACEOF
7003/* confdefs.h. */
7004_ACEOF
7005cat confdefs.h >>conftest.$ac_ext
7006cat >>conftest.$ac_ext <<_ACEOF
7007/* end confdefs.h. */
7008
7009int
7010main ()
7011{
7012
7013 ;
7014 return 0;
7015}
7016_ACEOF
7017rm -f conftest.$ac_objext conftest$ac_exeext
7018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7019 (eval $ac_link) 2>conftest.er1
7020 ac_status=$?
7021 grep -v '^ *+' conftest.er1 >conftest.err
7022 rm -f conftest.er1
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } &&
7026 { ac_try='test -z "$ac_c_werror_flag"
7027 || test ! -s conftest.err'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 (eval $ac_try) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; } &&
7033 { ac_try='test -s conftest$ac_exeext'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 (eval $ac_try) 2>&5
7036 ac_status=$?
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; }; then
7039
7040lt_aix_libpath_sed='
7041 /Import File Strings/,/^$/ {
7042 /^0/ {
7043 s/^0 *\(.*\)$/\1/
7044 p
7045 }
7046 }'
7047aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7048# Check for a 64-bit object if we didn't find anything.
7049if test -z "$aix_libpath"; then
7050 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7051fi
7052else
7053 echo "$as_me: failed program was:" >&5
7054sed 's/^/| /' conftest.$ac_ext >&5
7055
7056fi
7057rm -f conftest.err conftest.$ac_objext \
7058 conftest$ac_exeext conftest.$ac_ext
7059if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7060
7061 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7062 # Warning - without using the other run time loading flags,
7063 # -berok will link without error, but may produce a broken library.
7064 no_undefined_flag=' ${wl}-bernotok'
7065 allow_undefined_flag=' ${wl}-berok'
7066 # Exported symbols can be pulled into shared objects from archives
7067 whole_archive_flag_spec='$convenience'
7068 archive_cmds_need_lc=yes
7069 # This is similar to how AIX traditionally builds its shared libraries.
7070 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'
7071 fi
7072 fi
7073 ;;
7074
7075 amigaos*)
7076 if test "$host_cpu" = m68k; then
7077 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)'
7078 hardcode_libdir_flag_spec='-L$libdir'
7079 hardcode_minus_L=yes
7080 fi
7081 # see comment about different semantics on the GNU ld section
7082 ld_shlibs=no
7083 ;;
7084
7085 bsdi[45]*)
7086 export_dynamic_flag_spec=-rdynamic
7087 ;;
7088
7089 cygwin* | mingw* | pw32*)
7090 # When not using gcc, we currently assume that we are using
7091 # Microsoft Visual C++.
7092 # hardcode_libdir_flag_spec is actually meaningless, as there is
7093 # no search path for DLLs.
7094 hardcode_libdir_flag_spec=' '
7095 allow_undefined_flag=unsupported
7096 # Tell ltmain to make .lib files, not .a files.
7097 libext=lib
7098 # Tell ltmain to make .dll files, not .so files.
7099 shrext_cmds=".dll"
7100 # FIXME: Setting linknames here is a bad hack.
7101 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7102 # The linker will automatically build a .lib file if we build a DLL.
7103 old_archive_from_new_cmds='true'
7104 # FIXME: Should let the user specify the lib program.
7105 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7106 fix_srcfile_path='`cygpath -w "$srcfile"`'
7107 enable_shared_with_static_runtimes=yes
7108 ;;
7109
7110 darwin* | rhapsody*)
7111 case $host_os in
7112 rhapsody* | darwin1.[012])
7113 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7114 ;;
7115 *) # Darwin 1.3 on
7116 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7117 10.[012])
7118 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7119 ;;
7120 10.*)
7121 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7122 ;;
7123 esac
7124 ;;
7125 esac
7126 archive_cmds_need_lc=no
7127 hardcode_direct=no
7128 hardcode_automatic=yes
7129 hardcode_shlibpath_var=unsupported
7130 whole_archive_flag_spec=''
7131 link_all_deplibs=yes
7132 if test "$GCC" = yes ; then
7133 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135else
7136 lt_cv_apple_cc_single_mod=no
7137 if test -z "${LT_MULTI_MODULE}"; then
7138 # By default we will add the -single_module flag. You can override
7139 # by either setting the environment variable LT_MULTI_MODULE
7140 # non-empty at configure time, or by adding -multi-module to the
7141 # link flags.
7142 echo "int foo(void){return 1;}" > conftest.c
7143 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7144 -dynamiclib ${wl}-single_module conftest.c
7145 if test -f libconftest.dylib; then
7146 lt_cv_apple_cc_single_mod=yes
7147 rm libconftest.dylib
7148 fi
7149 rm conftest.$ac_ext
7150 fi
7151fi
7152
7153 output_verbose_link_cmd=echo
7154 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7155 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7156 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7157 else
7158 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7159 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7160 fi
7161 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7162 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7163 else
7164 case $cc_basename in
7165 xlc*)
7166 output_verbose_link_cmd=echo
7167 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7168 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7169 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7170 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7171 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7172 ;;
7173 *)
7174 ld_shlibs=no
7175 ;;
7176 esac
7177 fi
7178 ;;
7179
7180 dgux*)
7181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7182 hardcode_libdir_flag_spec='-L$libdir'
7183 hardcode_shlibpath_var=no
7184 ;;
7185
7186 freebsd1*)
7187 ld_shlibs=no
7188 ;;
7189
7190 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7191 # support. Future versions do this automatically, but an explicit c++rt0.o
7192 # does not break anything, and helps significantly (at the cost of a little
7193 # extra space).
7194 freebsd2.2*)
7195 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7196 hardcode_libdir_flag_spec='-R$libdir'
7197 hardcode_direct=yes
7198 hardcode_shlibpath_var=no
7199 ;;
7200
7201 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7202 freebsd2*)
7203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7204 hardcode_direct=yes
7205 hardcode_minus_L=yes
7206 hardcode_shlibpath_var=no
7207 ;;
7208
7209 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7210 freebsd* | dragonfly*)
7211 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7212 hardcode_libdir_flag_spec='-R$libdir'
7213 hardcode_direct=yes
7214 hardcode_shlibpath_var=no
7215 ;;
7216
7217 hpux9*)
7218 if test "$GCC" = yes; then
7219 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'
7220 else
7221 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'
7222 fi
7223 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7224 hardcode_libdir_separator=:
7225 hardcode_direct=yes
7226
7227 # hardcode_minus_L: Not really in the search PATH,
7228 # but as the default location of the library.
7229 hardcode_minus_L=yes
7230 export_dynamic_flag_spec='${wl}-E'
7231 ;;
7232
7233 hpux10*)
7234 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7235 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7236 else
7237 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7238 fi
7239 if test "$with_gnu_ld" = no; then
7240 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7241 hardcode_libdir_flag_spec_ld='+b $libdir'
7242 hardcode_libdir_separator=:
7243 hardcode_direct=yes
7244 hardcode_direct_absolute=yes
7245 export_dynamic_flag_spec='${wl}-E'
7246 # hardcode_minus_L: Not really in the search PATH,
7247 # but as the default location of the library.
7248 hardcode_minus_L=yes
7249 fi
7250 ;;
7251
7252 hpux11*)
7253 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7254 case $host_cpu in
7255 hppa*64*)
7256 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7257 ;;
7258 ia64*)
7259 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7260 ;;
7261 *)
7262 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7263 ;;
7264 esac
7265 else
7266 case $host_cpu in
7267 hppa*64*)
7268 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7269 ;;
7270 ia64*)
7271 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7272 ;;
7273 *)
7274 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7275 ;;
7276 esac
7277 fi
7278 if test "$with_gnu_ld" = no; then
7279 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7280 hardcode_libdir_separator=:
7281
7282 case $host_cpu in
7283 hppa*64*|ia64*)
7284 hardcode_direct=no
7285 hardcode_shlibpath_var=no
7286 ;;
7287 *)
7288 hardcode_direct=yes
7289 hardcode_direct_absolute=yes
7290 export_dynamic_flag_spec='${wl}-E'
7291
7292 # hardcode_minus_L: Not really in the search PATH,
7293 # but as the default location of the library.
7294 hardcode_minus_L=yes
7295 ;;
7296 esac
7297 fi
7298 ;;
7299
7300 irix5* | irix6* | nonstopux*)
7301 if test "$GCC" = yes; then
7302 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'
7303 # Try to use the -exported_symbol ld option, if it does not
7304 # work, assume that -exports_file does not work either and
7305 # implicitly export all symbols.
7306 save_LDFLAGS="$LDFLAGS"
7307 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7308 cat >conftest.$ac_ext <<_ACEOF
7309int foo(void) {}
7310_ACEOF
7311rm -f conftest.$ac_objext conftest$ac_exeext
7312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7313 (eval $ac_link) 2>conftest.er1
7314 ac_status=$?
7315 grep -v '^ *+' conftest.er1 >conftest.err
7316 rm -f conftest.er1
7317 cat conftest.err >&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } &&
7320 { ac_try='test -z "$ac_c_werror_flag"
7321 || test ! -s conftest.err'
7322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 (eval $ac_try) 2>&5
7324 ac_status=$?
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; } &&
7327 { ac_try='test -s conftest$ac_exeext'
7328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 (eval $ac_try) 2>&5
7330 ac_status=$?
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; }; then
7333 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'
7334
7335else
7336 echo "$as_me: failed program was:" >&5
7337sed 's/^/| /' conftest.$ac_ext >&5
7338
7339fi
7340rm -f conftest.err conftest.$ac_objext \
7341 conftest$ac_exeext conftest.$ac_ext
7342 LDFLAGS="$save_LDFLAGS"
7343 else
7344 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'
7345 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'
7346 fi
7347 archive_cmds_need_lc='no'
7348 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7349 hardcode_libdir_separator=:
7350 inherit_rpath=yes
7351 link_all_deplibs=yes
7352 ;;
7353
7354 netbsd*)
7355 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7357 else
7358 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7359 fi
7360 hardcode_libdir_flag_spec='-R$libdir'
7361 hardcode_direct=yes
7362 hardcode_shlibpath_var=no
7363 ;;
7364
7365 newsos6)
7366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7367 hardcode_direct=yes
7368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7369 hardcode_libdir_separator=:
7370 hardcode_shlibpath_var=no
7371 ;;
7372
7373 *nto* | *qnx*)
7374 ;;
7375
7376 openbsd*)
7377 hardcode_direct=yes
7378 hardcode_shlibpath_var=no
7379 hardcode_direct_absolute=yes
7380 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7382 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7383 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7384 export_dynamic_flag_spec='${wl}-E'
7385 else
7386 case $host_os in
7387 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7389 hardcode_libdir_flag_spec='-R$libdir'
7390 ;;
7391 *)
7392 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7393 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7394 ;;
7395 esac
7396 fi
7397 ;;
7398
7399 os2*)
7400 hardcode_libdir_flag_spec='-L$libdir'
7401 hardcode_minus_L=yes
7402 allow_undefined_flag=unsupported
7403 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'
7404 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7405 ;;
7406
7407 osf3*)
7408 if test "$GCC" = yes; then
7409 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7410 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'
7411 else
7412 allow_undefined_flag=' -expect_unresolved \*'
7413 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'
7414 fi
7415 archive_cmds_need_lc='no'
7416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7417 hardcode_libdir_separator=:
7418 ;;
7419
7420 osf4* | osf5*) # as osf3* with the addition of -msym flag
7421 if test "$GCC" = yes; then
7422 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7423 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'
7424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7425 else
7426 allow_undefined_flag=' -expect_unresolved \*'
7427 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'
7428 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~
7429 $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'
7430
7431 # Both c and cxx compiler support -rpath directly
7432 hardcode_libdir_flag_spec='-rpath $libdir'
7433 fi
7434 archive_cmds_need_lc='no'
7435 hardcode_libdir_separator=:
7436 ;;
7437
7438 solaris*)
7439 no_undefined_flag=' -z defs'
7440 if test "$GCC" = yes; then
7441 wlarc='${wl}'
7442 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7443 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7444 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7445 else
7446 case `$CC -V 2>&1` in
7447 *"Compilers 5.0"*)
7448 wlarc=''
7449 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7450 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7451 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7452 ;;
7453 *)
7454 wlarc='${wl}'
7455 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7456 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7457 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7458 ;;
7459 esac
7460 fi
7461 hardcode_libdir_flag_spec='-R$libdir'
7462 hardcode_shlibpath_var=no
7463 case $host_os in
7464 solaris2.[0-5] | solaris2.[0-5].*) ;;
7465 *)
7466 # The compiler driver will combine and reorder linker options,
7467 # but understands `-z linker_flag'. GCC discards it without `$wl',
7468 # but is careful enough not to reorder.
7469 # Supported since Solaris 2.6 (maybe 2.5.1?)
7470 if test "$GCC" = yes; then
7471 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7472 else
7473 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7474 fi
7475 ;;
7476 esac
7477 link_all_deplibs=yes
7478 ;;
7479
7480 sunos4*)
7481 if test "x$host_vendor" = xsequent; then
7482 # Use $CC to link under sequent, because it throws in some extra .o
7483 # files that make .init and .fini sections work.
7484 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7485 else
7486 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7487 fi
7488 hardcode_libdir_flag_spec='-L$libdir'
7489 hardcode_direct=yes
7490 hardcode_minus_L=yes
7491 hardcode_shlibpath_var=no
7492 ;;
7493
7494 sysv4)
7495 case $host_vendor in
7496 sni)
7497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7498 hardcode_direct=yes # is this really true???
7499 ;;
7500 siemens)
7501 ## LD is ld it makes a PLAMLIB
7502 ## CC just makes a GrossModule.
7503 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7504 reload_cmds='$CC -r -o $output$reload_objs'
7505 hardcode_direct=no
7506 ;;
7507 motorola)
7508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7509 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7510 ;;
7511 esac
7512 runpath_var='LD_RUN_PATH'
7513 hardcode_shlibpath_var=no
7514 ;;
7515
7516 sysv4.3*)
7517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7518 hardcode_shlibpath_var=no
7519 export_dynamic_flag_spec='-Bexport'
7520 ;;
7521
7522 sysv4*MP*)
7523 if test -d /usr/nec; then
7524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7525 hardcode_shlibpath_var=no
7526 runpath_var=LD_RUN_PATH
7527 hardcode_runpath_var=yes
7528 ld_shlibs=yes
7529 fi
7530 ;;
7531
7532 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7533 no_undefined_flag='${wl}-z,text'
7534 archive_cmds_need_lc=no
7535 hardcode_shlibpath_var=no
7536 runpath_var='LD_RUN_PATH'
7537
7538 if test "$GCC" = yes; then
7539 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7540 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7541 else
7542 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7543 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7544 fi
7545 ;;
7546
7547 sysv5* | sco3.2v5* | sco5v6*)
7548 # Note: We can NOT use -z defs as we might desire, because we do not
7549 # link with -lc, and that would cause any symbols used from libc to
7550 # always be unresolved, which means just about no library would
7551 # ever link correctly. If we're not using GNU ld we use -z text
7552 # though, which does catch some bad symbols but isn't as heavy-handed
7553 # as -z defs.
7554 no_undefined_flag='${wl}-z,text'
7555 allow_undefined_flag='${wl}-z,nodefs'
7556 archive_cmds_need_lc=no
7557 hardcode_shlibpath_var=no
7558 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7559 hardcode_libdir_separator=':'
7560 link_all_deplibs=yes
7561 export_dynamic_flag_spec='${wl}-Bexport'
7562 runpath_var='LD_RUN_PATH'
7563
7564 if test "$GCC" = yes; then
7565 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7566 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7567 else
7568 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7569 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7570 fi
7571 ;;
7572
7573 uts4*)
7574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7575 hardcode_libdir_flag_spec='-L$libdir'
7576 hardcode_shlibpath_var=no
7577 ;;
7578
7579 *)
7580 ld_shlibs=no
7581 ;;
7582 esac
7583
7584 if test x$host_vendor = xsni; then
7585 case $host in
7586 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7587 export_dynamic_flag_spec='${wl}-Blargedynsym'
7588 ;;
7589 esac
7590 fi
7591 fi
7592
7593echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7594echo "${ECHO_T}$ld_shlibs" >&6
7595test "$ld_shlibs" = no && can_build_shared=no
7596
7597with_gnu_ld=$with_gnu_ld
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613#
7614# Do we need to explicitly link libc?
7615#
7616case "x$archive_cmds_need_lc" in
7617x|xyes)
7618 # Assume -lc should be added
7619 archive_cmds_need_lc=yes
7620
7621 if test "$enable_shared" = yes && test "$GCC" = yes; then
7622 case $archive_cmds in
7623 *'~'*)
7624 # FIXME: we may have to deal with multi-command sequences.
7625 ;;
7626 '$CC '*)
7627 # Test whether the compiler implicitly links with -lc since on some
7628 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7629 # to ld, don't add -lc before -lgcc.
7630 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7631echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7632 $RM conftest*
7633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7634
7635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7636 (eval $ac_compile) 2>&5
7637 ac_status=$?
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); } 2>conftest.err; then
7640 soname=conftest
7641 lib=conftest
7642 libobjs=conftest.$ac_objext
7643 deplibs=
7644 wl=$lt_prog_compiler_wl
7645 pic_flag=$lt_prog_compiler_pic
7646 compiler_flags=-v
7647 linker_flags=-v
7648 verstring=
7649 output_objdir=.
7650 libname=conftest
7651 lt_save_allow_undefined_flag=$allow_undefined_flag
7652 allow_undefined_flag=
7653 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7654 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7655 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }
7658 then
7659 archive_cmds_need_lc=no
7660 else
7661 archive_cmds_need_lc=yes
7662 fi
7663 allow_undefined_flag=$lt_save_allow_undefined_flag
7664 else
7665 cat conftest.err 1>&5
7666 fi
7667 $RM conftest*
7668 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7669echo "${ECHO_T}$archive_cmds_need_lc" >&6
7670 ;;
7671 esac
7672 fi
7673 ;;
7674esac
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7833echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7834withGCC=$GCC
7835if test "$withGCC" = yes; then
7836 case $host_os in
7837 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7838 *) lt_awk_arg="/^libraries:/" ;;
7839 esac
7840 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7841 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7842 # if the path contains ";" then we assume it to be the separator
7843 # otherwise default to the standard path separator (i.e. ":") - it is
7844 # assumed that no part of a normal pathname contains ";" but that should
7845 # okay in the real world where ";" in dirpaths is itself problematic.
7846 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7847 else
7848 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7849 fi
7850 # Ok, now we have the path, separated by spaces, we can step through it
7851 # and add multilib dir if necessary.
7852 lt_tmp_lt_search_path_spec=
7853 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7854 for lt_sys_path in $lt_search_path_spec; do
7855 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7856 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7857 else
7858 test -d "$lt_sys_path" && \
7859 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7860 fi
7861 done
7862 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7863BEGIN {RS=" "; FS="/|\n";} {
7864 lt_foo="";
7865 lt_count=0;
7866 for (lt_i = NF; lt_i > 0; lt_i--) {
7867 if ($lt_i != "" && $lt_i != ".") {
7868 if ($lt_i == "..") {
7869 lt_count++;
7870 } else {
7871 if (lt_count == 0) {
7872 lt_foo="/" $lt_i lt_foo;
7873 } else {
7874 lt_count--;
7875 }
7876 }
7877 }
7878 }
7879 if (lt_foo != "") { lt_freq[lt_foo]++; }
7880 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7881}'`
7882 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7883else
7884 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7885fi
7886library_names_spec=
7887libname_spec='lib$name'
7888soname_spec=
7889shrext_cmds=".so"
7890postinstall_cmds=
7891postuninstall_cmds=
7892finish_cmds=
7893finish_eval=
7894shlibpath_var=
7895shlibpath_overrides_runpath=unknown
7896version_type=none
7897dynamic_linker="$host_os ld.so"
7898sys_lib_dlsearch_path_spec="/lib /usr/lib"
7899need_lib_prefix=unknown
7900hardcode_into_libs=no
7901
7902# when you set need_version to no, make sure it does not cause -set_version
7903# flags to be left without arguments
7904need_version=unknown
7905
7906case $host_os in
7907aix3*)
7908 version_type=linux
7909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7910 shlibpath_var=LIBPATH
7911
7912 # AIX 3 has no versioning support, so we append a major version to the name.
7913 soname_spec='${libname}${release}${shared_ext}$major'
7914 ;;
7915
7916aix4* | aix5*)
7917 version_type=linux
7918 need_lib_prefix=no
7919 need_version=no
7920 hardcode_into_libs=yes
7921 if test "$host_cpu" = ia64; then
7922 # AIX 5 supports IA64
7923 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7924 shlibpath_var=LD_LIBRARY_PATH
7925 else
7926 # With GCC up to 2.95.x, collect2 would create an import file
7927 # for dependence libraries. The import file would start with
7928 # the line `#! .'. This would cause the generated library to
7929 # depend on `.', always an invalid library. This was fixed in
7930 # development snapshots of GCC prior to 3.0.
7931 case $host_os in
7932 aix4 | aix4.[01] | aix4.[01].*)
7933 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7934 echo ' yes '
7935 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7936 :
7937 else
7938 can_build_shared=no
7939 fi
7940 ;;
7941 esac
7942 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7943 # soname into executable. Probably we can add versioning support to
7944 # collect2, so additional links can be useful in future.
7945 if test "$aix_use_runtimelinking" = yes; then
7946 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7947 # instead of lib<name>.a to let people know that these are not
7948 # typical AIX shared libraries.
7949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7950 else
7951 # We preserve .a as extension for shared libraries through AIX4.2
7952 # and later when we are not doing run time linking.
7953 library_names_spec='${libname}${release}.a $libname.a'
7954 soname_spec='${libname}${release}${shared_ext}$major'
7955 fi
7956 shlibpath_var=LIBPATH
7957 fi
7958 ;;
7959
7960amigaos*)
7961 if test "$host_cpu" = m68k; then
7962 library_names_spec='$libname.ixlibrary $libname.a'
7963 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7964 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'
7965 else
7966 dynamic_linker=no
7967 fi
7968 ;;
7969
7970beos*)
7971 library_names_spec='${libname}${shared_ext}'
7972 dynamic_linker="$host_os ld.so"
7973 shlibpath_var=LIBRARY_PATH
7974 ;;
7975
7976bsdi[45]*)
7977 version_type=linux
7978 need_version=no
7979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7980 soname_spec='${libname}${release}${shared_ext}$major'
7981 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7982 shlibpath_var=LD_LIBRARY_PATH
7983 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7984 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7985 # the default ld.so.conf also contains /usr/contrib/lib and
7986 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7987 # libtool to hard-code these into programs
7988 ;;
7989
7990cygwin* | mingw* | pw32*)
7991 version_type=windows
7992 shrext_cmds=".dll"
7993 need_version=no
7994 need_lib_prefix=no
7995
7996 case $withGCC,$host_os in
7997 yes,cygwin* | yes,mingw* | yes,pw32*)
7998 library_names_spec='$libname.dll.a'
7999 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8000 postinstall_cmds='base_file=`basename \${file}`~
8001 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8002 dldir=$destdir/`dirname \$dlpath`~
8003 test -d \$dldir || mkdir -p \$dldir~
8004 $install_prog $dir/$dlname \$dldir/$dlname~
8005 chmod a+x \$dldir/$dlname~
8006 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8007 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8008 fi'
8009 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8010 dlpath=$dir/\$dldll~
8011 $RM \$dlpath'
8012 shlibpath_overrides_runpath=yes
8013
8014 case $host_os in
8015 cygwin*)
8016 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8017 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8018 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8019 ;;
8020 mingw*)
8021 # MinGW DLLs use traditional 'lib' prefix
8022 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8023 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8024 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8025 # It is most probably a Windows format PATH printed by
8026 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8027 # path with ; separators, and with drive letters. We can handle the
8028 # drive letters (cygwin fileutils understands them), so leave them,
8029 # especially as we might pass files found there to a mingw objdump,
8030 # which wouldn't understand a cygwinified path. Ahh.
8031 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8032 else
8033 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8034 fi
8035 ;;
8036 pw32*)
8037 # pw32 DLLs use 'pw' prefix rather than 'lib'
8038 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8039 ;;
8040 esac
8041 ;;
8042
8043 *)
8044 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8045 ;;
8046 esac
8047 dynamic_linker='Win32 ld.exe'
8048 # FIXME: first we should search . and the directory the executable is in
8049 shlibpath_var=PATH
8050 ;;
8051
8052darwin* | rhapsody*)
8053 dynamic_linker="$host_os dyld"
8054 version_type=darwin
8055 need_lib_prefix=no
8056 need_version=no
8057 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8058 soname_spec='${libname}${release}${major}$shared_ext'
8059 shlibpath_overrides_runpath=yes
8060 shlibpath_var=DYLD_LIBRARY_PATH
8061 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8062
8063 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8064 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8065 ;;
8066
8067dgux*)
8068 version_type=linux
8069 need_lib_prefix=no
8070 need_version=no
8071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8072 soname_spec='${libname}${release}${shared_ext}$major'
8073 shlibpath_var=LD_LIBRARY_PATH
8074 ;;
8075
8076freebsd1*)
8077 dynamic_linker=no
8078 ;;
8079
8080freebsd* | dragonfly*)
8081 # DragonFly does not have aout. When/if they implement a new
8082 # versioning mechanism, adjust this.
8083 if test -x /usr/bin/objformat; then
8084 objformat=`/usr/bin/objformat`
8085 else
8086 case $host_os in
8087 freebsd[123]*) objformat=aout ;;
8088 *) objformat=elf ;;
8089 esac
8090 fi
8091 version_type=freebsd-$objformat
8092 case $version_type in
8093 freebsd-elf*)
8094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8095 need_version=no
8096 need_lib_prefix=no
8097 ;;
8098 freebsd-*)
8099 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8100 need_version=yes
8101 ;;
8102 esac
8103 shlibpath_var=LD_LIBRARY_PATH
8104 case $host_os in
8105 freebsd2*)
8106 shlibpath_overrides_runpath=yes
8107 ;;
8108 freebsd3.[01]* | freebsdelf3.[01]*)
8109 shlibpath_overrides_runpath=yes
8110 hardcode_into_libs=yes
8111 ;;
8112 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8113 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8114 shlibpath_overrides_runpath=no
8115 hardcode_into_libs=yes
8116 ;;
8117 *) # from 4.6 on, and DragonFly
8118 shlibpath_overrides_runpath=yes
8119 hardcode_into_libs=yes
8120 ;;
8121 esac
8122 ;;
8123
8124gnu*)
8125 version_type=linux
8126 need_lib_prefix=no
8127 need_version=no
8128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8129 soname_spec='${libname}${release}${shared_ext}$major'
8130 shlibpath_var=LD_LIBRARY_PATH
8131 hardcode_into_libs=yes
8132 ;;
8133
8134hpux9* | hpux10* | hpux11*)
8135 # Give a soname corresponding to the major version so that dld.sl refuses to
8136 # link against other versions.
8137 version_type=sunos
8138 need_lib_prefix=no
8139 need_version=no
8140 case $host_cpu in
8141 ia64*)
8142 shrext_cmds='.so'
8143 hardcode_into_libs=yes
8144 dynamic_linker="$host_os dld.so"
8145 shlibpath_var=LD_LIBRARY_PATH
8146 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8148 soname_spec='${libname}${release}${shared_ext}$major'
8149 if test "X$HPUX_IA64_MODE" = X32; then
8150 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8151 else
8152 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8153 fi
8154 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8155 ;;
8156 hppa*64*)
8157 shrext_cmds='.sl'
8158 hardcode_into_libs=yes
8159 dynamic_linker="$host_os dld.sl"
8160 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8163 soname_spec='${libname}${release}${shared_ext}$major'
8164 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8165 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8166 ;;
8167 *)
8168 shrext_cmds='.sl'
8169 dynamic_linker="$host_os dld.sl"
8170 shlibpath_var=SHLIB_PATH
8171 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8173 soname_spec='${libname}${release}${shared_ext}$major'
8174 ;;
8175 esac
8176 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8177 postinstall_cmds='chmod 555 $lib'
8178 ;;
675cdab3 8179
1cf3d07d
SE
8180interix[3-9]*)
8181 version_type=linux
8182 need_lib_prefix=no
8183 need_version=no
8184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8185 soname_spec='${libname}${release}${shared_ext}$major'
8186 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8187 shlibpath_var=LD_LIBRARY_PATH
8188 shlibpath_overrides_runpath=no
8189 hardcode_into_libs=yes
3ed8e5b6 8190 ;;
675cdab3 8191
1cf3d07d
SE
8192irix5* | irix6* | nonstopux*)
8193 case $host_os in
8194 nonstopux*) version_type=nonstopux ;;
8195 *)
8196 if test "$lt_cv_prog_gnu_ld" = yes; then
8197 version_type=linux
8198 else
8199 version_type=irix
8200 fi ;;
8201 esac
8202 need_lib_prefix=no
8203 need_version=no
8204 soname_spec='${libname}${release}${shared_ext}$major'
8205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8206 case $host_os in
8207 irix5* | nonstopux*)
8208 libsuff= shlibsuff=
8209 ;;
8210 *)
8211 case $LD in # libtool.m4 will add one of these switches to LD
8212 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8213 libsuff= shlibsuff= libmagic=32-bit;;
8214 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8215 libsuff=32 shlibsuff=N32 libmagic=N32;;
8216 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8217 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8218 *) libsuff= shlibsuff= libmagic=never-match;;
3ed8e5b6 8219 esac
1cf3d07d
SE
8220 ;;
8221 esac
8222 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8223 shlibpath_overrides_runpath=no
8224 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8225 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8226 hardcode_into_libs=yes
3ed8e5b6 8227 ;;
675cdab3 8228
1cf3d07d
SE
8229# No shared lib support for Linux oldld, aout, or coff.
8230linux*oldld* | linux*aout* | linux*coff*)
8231 dynamic_linker=no
8232 ;;
3ed8e5b6 8233
1cf3d07d
SE
8234# This must be Linux ELF.
8235linux* | k*bsd*-gnu)
8236 version_type=linux
8237 need_lib_prefix=no
8238 need_version=no
8239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8240 soname_spec='${libname}${release}${shared_ext}$major'
8241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8242 shlibpath_var=LD_LIBRARY_PATH
8243 shlibpath_overrides_runpath=no
8244 # Some binutils ld are patched to set DT_RUNPATH
8245 save_LDFLAGS=$LDFLAGS
8246 save_libdir=$libdir
8247 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8248 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8249 cat >conftest.$ac_ext <<_ACEOF
3ed8e5b6
AT
8250/* confdefs.h. */
8251_ACEOF
8252cat confdefs.h >>conftest.$ac_ext
8253cat >>conftest.$ac_ext <<_ACEOF
8254/* end confdefs.h. */
8255
8256int
8257main ()
8258{
675cdab3 8259
3ed8e5b6
AT
8260 ;
8261 return 0;
8262}
8263_ACEOF
8264rm -f conftest.$ac_objext conftest$ac_exeext
8265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266 (eval $ac_link) 2>conftest.er1
8267 ac_status=$?
8268 grep -v '^ *+' conftest.er1 >conftest.err
8269 rm -f conftest.er1
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } &&
88d8c771
AG
8273 { ac_try='test -z "$ac_c_werror_flag"
8274 || test ! -s conftest.err'
3ed8e5b6
AT
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 (eval $ac_try) 2>&5
8277 ac_status=$?
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; } &&
8280 { ac_try='test -s conftest$ac_exeext'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 (eval $ac_try) 2>&5
8283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
1cf3d07d
SE
8286 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8287 shlibpath_overrides_runpath=yes
8288fi
8289
675cdab3 8290else
3ed8e5b6
AT
8291 echo "$as_me: failed program was:" >&5
8292sed 's/^/| /' conftest.$ac_ext >&5
675cdab3 8293
675cdab3 8294fi
3ed8e5b6
AT
8295rm -f conftest.err conftest.$ac_objext \
8296 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8297 LDFLAGS=$save_LDFLAGS
8298 libdir=$save_libdir
8299
8300 # This implies no fast_install, which is unacceptable.
8301 # Some rework will be needed to allow for fast_install
8302 # before this can be enabled.
8303 hardcode_into_libs=yes
8304
8305 # Append ld.so.conf contents to the search path
8306 if test -f /etc/ld.so.conf; then
8307 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8308 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8309 fi
675cdab3 8310
1cf3d07d
SE
8311 # We used to test for /lib/ld.so.1 and disable shared libraries on
8312 # powerpc, because MkLinux only supported shared libraries with the
8313 # GNU dynamic linker. Since this was broken with cross compilers,
8314 # most powerpc-linux boxes support dynamic linking these days and
8315 # people can always --disable-shared, the test was removed, and we
8316 # assume the GNU/Linux dynamic linker is in use.
8317 dynamic_linker='GNU/Linux ld.so'
8318 ;;
8319
8320netbsd*)
8321 version_type=sunos
8322 need_lib_prefix=no
8323 need_version=no
8324 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8327 dynamic_linker='NetBSD (a.out) ld.so'
8328 else
8329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8330 soname_spec='${libname}${release}${shared_ext}$major'
8331 dynamic_linker='NetBSD ld.elf_so'
3ed8e5b6 8332 fi
1cf3d07d
SE
8333 shlibpath_var=LD_LIBRARY_PATH
8334 shlibpath_overrides_runpath=yes
8335 hardcode_into_libs=yes
3ed8e5b6 8336 ;;
675cdab3 8337
1cf3d07d
SE
8338newsos6)
8339 version_type=linux
8340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8341 shlibpath_var=LD_LIBRARY_PATH
8342 shlibpath_overrides_runpath=yes
8343 ;;
675cdab3 8344
1cf3d07d
SE
8345*nto* | *qnx*)
8346 version_type=qnx
8347 need_lib_prefix=no
8348 need_version=no
8349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8350 soname_spec='${libname}${release}${shared_ext}$major'
8351 shlibpath_var=LD_LIBRARY_PATH
8352 shlibpath_overrides_runpath=no
8353 hardcode_into_libs=yes
8354 dynamic_linker='ldqnx.so'
8355 ;;
675cdab3 8356
1cf3d07d
SE
8357openbsd*)
8358 version_type=sunos
8359 sys_lib_dlsearch_path_spec="/usr/lib"
8360 need_lib_prefix=no
8361 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8362 case $host_os in
8363 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8364 *) need_version=no ;;
8365 esac
8366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8368 shlibpath_var=LD_LIBRARY_PATH
8369 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8370 case $host_os in
8371 openbsd2.[89] | openbsd2.[89].*)
8372 shlibpath_overrides_runpath=no
8373 ;;
8374 *)
8375 shlibpath_overrides_runpath=yes
8376 ;;
8377 esac
8378 else
8379 shlibpath_overrides_runpath=yes
8380 fi
8381 ;;
675cdab3 8382
1cf3d07d
SE
8383os2*)
8384 libname_spec='$name'
8385 shrext_cmds=".dll"
8386 need_lib_prefix=no
8387 library_names_spec='$libname${shared_ext} $libname.a'
8388 dynamic_linker='OS/2 ld.exe'
8389 shlibpath_var=LIBPATH
8390 ;;
675cdab3 8391
1cf3d07d
SE
8392osf3* | osf4* | osf5*)
8393 version_type=osf
8394 need_lib_prefix=no
8395 need_version=no
8396 soname_spec='${libname}${release}${shared_ext}$major'
8397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8398 shlibpath_var=LD_LIBRARY_PATH
8399 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8400 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8401 ;;
675cdab3 8402
1cf3d07d
SE
8403rdos*)
8404 dynamic_linker=no
8405 ;;
8406
8407solaris*)
8408 version_type=linux
8409 need_lib_prefix=no
8410 need_version=no
8411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8412 soname_spec='${libname}${release}${shared_ext}$major'
8413 shlibpath_var=LD_LIBRARY_PATH
8414 shlibpath_overrides_runpath=yes
8415 hardcode_into_libs=yes
8416 # ldd complains unless libraries are executable
8417 postinstall_cmds='chmod +x $lib'
8418 ;;
8419
8420sunos4*)
8421 version_type=sunos
8422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8423 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8424 shlibpath_var=LD_LIBRARY_PATH
8425 shlibpath_overrides_runpath=yes
8426 if test "$with_gnu_ld" = yes; then
8427 need_lib_prefix=no
8428 fi
8429 need_version=yes
8430 ;;
8431
8432sysv4 | sysv4.3*)
8433 version_type=linux
8434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8435 soname_spec='${libname}${release}${shared_ext}$major'
8436 shlibpath_var=LD_LIBRARY_PATH
8437 case $host_vendor in
8438 sni)
8439 shlibpath_overrides_runpath=no
8440 need_lib_prefix=no
8441 runpath_var=LD_RUN_PATH
3ed8e5b6 8442 ;;
1cf3d07d
SE
8443 siemens)
8444 need_lib_prefix=no
3ed8e5b6 8445 ;;
1cf3d07d
SE
8446 motorola)
8447 need_lib_prefix=no
8448 need_version=no
8449 shlibpath_overrides_runpath=no
8450 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8451 ;;
8452 esac
8453 ;;
8454
8455sysv4*MP*)
8456 if test -d /usr/nec ;then
8457 version_type=linux
8458 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8459 soname_spec='$libname${shared_ext}.$major'
8460 shlibpath_var=LD_LIBRARY_PATH
8461 fi
8462 ;;
8463
8464sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8465 version_type=freebsd-elf
8466 need_lib_prefix=no
8467 need_version=no
8468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8469 soname_spec='${libname}${release}${shared_ext}$major'
8470 shlibpath_var=LD_LIBRARY_PATH
8471 shlibpath_overrides_runpath=yes
8472 hardcode_into_libs=yes
8473 if test "$with_gnu_ld" = yes; then
8474 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
675cdab3 8475 else
1cf3d07d
SE
8476 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8477 case $host_os in
8478 sco3.2v5*)
8479 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8480 ;;
8481 esac
675cdab3 8482 fi
1cf3d07d
SE
8483 sys_lib_dlsearch_path_spec='/usr/lib'
8484 ;;
8485
8486tpf*)
8487 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8488 version_type=linux
8489 need_lib_prefix=no
8490 need_version=no
8491 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8492 shlibpath_var=LD_LIBRARY_PATH
8493 shlibpath_overrides_runpath=no
8494 hardcode_into_libs=yes
8495 ;;
8496
8497uts4*)
8498 version_type=linux
8499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8500 soname_spec='${libname}${release}${shared_ext}$major'
8501 shlibpath_var=LD_LIBRARY_PATH
8502 ;;
8503
8504*)
8505 dynamic_linker=no
8506 ;;
8507esac
8508echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8509echo "${ECHO_T}$dynamic_linker" >&6
8510test "$dynamic_linker" = no && can_build_shared=no
8511
8512variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8513if test "$GCC" = yes; then
8514 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
675cdab3
BM
8515fi
8516
675cdab3 8517
1cf3d07d
SE
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
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8604echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8605hardcode_action=
8606if test -n "$hardcode_libdir_flag_spec" ||
8607 test -n "$runpath_var" ||
8608 test "X$hardcode_automatic" = "Xyes" ; then
8609
8610 # We can hardcode non-existent directories.
8611 if test "$hardcode_direct" != no &&
8612 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8613 # have to relink, otherwise we might link with an installed library
8614 # when we should be linking with a yet-to-be-installed one
8615 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8616 test "$hardcode_minus_L" != no; then
8617 # Linking always hardcodes the temporary library directory.
8618 hardcode_action=relink
8619 else
8620 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8621 hardcode_action=immediate
63e5e3e0 8622 fi
3ed8e5b6 8623else
1cf3d07d
SE
8624 # We cannot hardcode anything, or else we can only hardcode existing
8625 # directories.
8626 hardcode_action=unsupported
675cdab3 8627fi
1cf3d07d
SE
8628echo "$as_me:$LINENO: result: $hardcode_action" >&5
8629echo "${ECHO_T}$hardcode_action" >&6
63e5e3e0 8630
1cf3d07d
SE
8631if test "$hardcode_action" = relink ||
8632 test "$inherit_rpath" = yes; then
8633 # Fast installation is not supported
8634 enable_fast_install=no
8635elif test "$shlibpath_overrides_runpath" = yes ||
8636 test "$enable_shared" = no; then
8637 # Fast installation is not necessary
8638 enable_fast_install=needless
8639fi
675cdab3 8640
63e5e3e0 8641
63e5e3e0 8642
2f7bf5b7 8643
63e5e3e0 8644
63e5e3e0 8645
1cf3d07d
SE
8646 if test "x$enable_dlopen" != xyes; then
8647 enable_dlopen=unknown
8648 enable_dlopen_self=unknown
8649 enable_dlopen_self_static=unknown
8650else
8651 lt_cv_dlopen=no
8652 lt_cv_dlopen_libs=
63e5e3e0 8653
1cf3d07d
SE
8654 case $host_os in
8655 beos*)
8656 lt_cv_dlopen="load_add_on"
8657 lt_cv_dlopen_libs=
8658 lt_cv_dlopen_self=yes
8659 ;;
63e5e3e0 8660
1cf3d07d
SE
8661 mingw* | pw32*)
8662 lt_cv_dlopen="LoadLibrary"
8663 lt_cv_dlopen_libs=
8664 ;;
63e5e3e0 8665
1cf3d07d
SE
8666 cygwin*)
8667 lt_cv_dlopen="dlopen"
8668 lt_cv_dlopen_libs=
8669 ;;
63e5e3e0 8670
1cf3d07d
SE
8671 darwin*)
8672 # if libdl is installed we need to link against it
8673 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8674echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8675if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
675cdab3 8677else
1cf3d07d
SE
8678 ac_check_lib_save_LIBS=$LIBS
8679LIBS="-ldl $LIBS"
8680cat >conftest.$ac_ext <<_ACEOF
8681/* confdefs.h. */
8682_ACEOF
8683cat confdefs.h >>conftest.$ac_ext
8684cat >>conftest.$ac_ext <<_ACEOF
8685/* end confdefs.h. */
3ed8e5b6 8686
1cf3d07d
SE
8687/* Override any gcc2 internal prototype to avoid an error. */
8688#ifdef __cplusplus
8689extern "C"
8690#endif
8691/* We use char because int might match the return type of a gcc2
8692 builtin and then its argument prototype would still apply. */
8693char dlopen ();
8694int
8695main ()
8696{
8697dlopen ();
8698 ;
8699 return 0;
8700}
8701_ACEOF
8702rm -f conftest.$ac_objext conftest$ac_exeext
8703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704 (eval $ac_link) 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -z "$ac_c_werror_flag"
8712 || test ! -s conftest.err'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; } &&
8718 { ac_try='test -s conftest$ac_exeext'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 (eval $ac_try) 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
8724 ac_cv_lib_dl_dlopen=yes
3ed8e5b6 8725else
1cf3d07d
SE
8726 echo "$as_me: failed program was:" >&5
8727sed 's/^/| /' conftest.$ac_ext >&5
8728
8729ac_cv_lib_dl_dlopen=no
675cdab3 8730fi
1cf3d07d
SE
8731rm -f conftest.err conftest.$ac_objext \
8732 conftest$ac_exeext conftest.$ac_ext
8733LIBS=$ac_check_lib_save_LIBS
8734fi
8735echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8736echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8737if test $ac_cv_lib_dl_dlopen = yes; then
8738 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8739else
63e5e3e0 8740
1cf3d07d
SE
8741 lt_cv_dlopen="dyld"
8742 lt_cv_dlopen_libs=
8743 lt_cv_dlopen_self=yes
bbf3057b 8744
1cf3d07d 8745fi
2f7bf5b7 8746
1cf3d07d 8747 ;;
2f7bf5b7 8748
1cf3d07d
SE
8749 *)
8750 echo "$as_me:$LINENO: checking for shl_load" >&5
8751echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8752if test "${ac_cv_func_shl_load+set}" = set; then
3ed8e5b6
AT
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754else
8755 cat >conftest.$ac_ext <<_ACEOF
8756/* confdefs.h. */
8757_ACEOF
8758cat confdefs.h >>conftest.$ac_ext
8759cat >>conftest.$ac_ext <<_ACEOF
8760/* end confdefs.h. */
1cf3d07d
SE
8761/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8763#define shl_load innocuous_shl_load
8764
8765/* System header to define __stub macros and hopefully few prototypes,
8766 which can conflict with char shl_load (); below.
8767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8768 <limits.h> exists even on freestanding compilers. */
8769
c9b93377
JB
8770#ifdef __STDC__
8771# include <limits.h>
8772#else
8773# include <assert.h>
3eee102e 8774#endif
1cf3d07d
SE
8775
8776#undef shl_load
8777
8778/* Override any gcc2 internal prototype to avoid an error. */
8779#ifdef __cplusplus
8780extern "C"
8781{
8782#endif
8783/* We use char because int might match the return type of a gcc2
8784 builtin and then its argument prototype would still apply. */
8785char shl_load ();
8786/* The GNU C library defines this for functions which it implements
8787 to always fail with ENOSYS. Some functions are actually named
8788 something starting with __ and the normal name is an alias. */
8789#if defined (__stub_shl_load) || defined (__stub___shl_load)
8790choke me
8791#else
8792char (*f) () = shl_load;
8793#endif
8794#ifdef __cplusplus
8795}
8796#endif
8797
8798int
8799main ()
8800{
8801return f != shl_load;
8802 ;
8803 return 0;
8804}
3ed8e5b6 8805_ACEOF
1cf3d07d
SE
8806rm -f conftest.$ac_objext conftest$ac_exeext
8807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8808 (eval $ac_link) 2>conftest.er1
3ed8e5b6
AT
8809 ac_status=$?
8810 grep -v '^ *+' conftest.er1 >conftest.err
8811 rm -f conftest.er1
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8814 (exit $ac_status); } &&
8815 { ac_try='test -z "$ac_c_werror_flag"
8816 || test ! -s conftest.err'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 (eval $ac_try) 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; } &&
8822 { ac_try='test -s conftest$ac_exeext'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 (eval $ac_try) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; }; then
8828 ac_cv_func_shl_load=yes
3eee102e 8829else
3ed8e5b6
AT
8830 echo "$as_me: failed program was:" >&5
8831sed 's/^/| /' conftest.$ac_ext >&5
8832
1cf3d07d 8833ac_cv_func_shl_load=no
3eee102e 8834fi
1cf3d07d
SE
8835rm -f conftest.err conftest.$ac_objext \
8836 conftest$ac_exeext conftest.$ac_ext
8837fi
8838echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8839echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8840if test $ac_cv_func_shl_load = yes; then
8841 lt_cv_dlopen="shl_load"
8842else
8843 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8844echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8845if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847else
8848 ac_check_lib_save_LIBS=$LIBS
8849LIBS="-ldld $LIBS"
8850cat >conftest.$ac_ext <<_ACEOF
c9b93377
JB
8851/* confdefs.h. */
8852_ACEOF
8853cat confdefs.h >>conftest.$ac_ext
8854cat >>conftest.$ac_ext <<_ACEOF
8855/* end confdefs.h. */
1cf3d07d
SE
8856
8857/* Override any gcc2 internal prototype to avoid an error. */
8858#ifdef __cplusplus
8859extern "C"
8860#endif
8861/* We use char because int might match the return type of a gcc2
8862 builtin and then its argument prototype would still apply. */
8863char shl_load ();
8864int
8865main ()
8866{
8867shl_load ();
8868 ;
8869 return 0;
8870}
c9b93377 8871_ACEOF
1cf3d07d
SE
8872rm -f conftest.$ac_objext conftest$ac_exeext
8873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8874 (eval $ac_link) 2>conftest.er1
c9b93377
JB
8875 ac_status=$?
8876 grep -v '^ *+' conftest.er1 >conftest.err
8877 rm -f conftest.er1
8878 cat conftest.err >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8880 (exit $ac_status); } &&
8881 { ac_try='test -z "$ac_c_werror_flag"
8882 || test ! -s conftest.err'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 (eval $ac_try) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; } &&
8888 { ac_try='test -s conftest$ac_exeext'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 (eval $ac_try) 2>&5
8891 ac_status=$?
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; }; then
8894 ac_cv_lib_dld_shl_load=yes
c9b93377
JB
8895else
8896 echo "$as_me: failed program was:" >&5
8897sed 's/^/| /' conftest.$ac_ext >&5
3eee102e 8898
1cf3d07d 8899ac_cv_lib_dld_shl_load=no
3eee102e 8900fi
1cf3d07d
SE
8901rm -f conftest.err conftest.$ac_objext \
8902 conftest$ac_exeext conftest.$ac_ext
8903LIBS=$ac_check_lib_save_LIBS
bbf3057b 8904fi
1cf3d07d
SE
8905echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8906echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8907if test $ac_cv_lib_dld_shl_load = yes; then
8908 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8909else
8910 echo "$as_me:$LINENO: checking for dlopen" >&5
8911echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8912if test "${ac_cv_func_dlopen+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8914else
3ed8e5b6
AT
8915 cat >conftest.$ac_ext <<_ACEOF
8916/* confdefs.h. */
8917_ACEOF
8918cat confdefs.h >>conftest.$ac_ext
8919cat >>conftest.$ac_ext <<_ACEOF
8920/* end confdefs.h. */
1cf3d07d
SE
8921/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8923#define dlopen innocuous_dlopen
8924
8925/* System header to define __stub macros and hopefully few prototypes,
8926 which can conflict with char dlopen (); below.
8927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8928 <limits.h> exists even on freestanding compilers. */
8929
3ed8e5b6
AT
8930#ifdef __STDC__
8931# include <limits.h>
8932#else
8933# include <assert.h>
8934#endif
1cf3d07d
SE
8935
8936#undef dlopen
8937
8938/* Override any gcc2 internal prototype to avoid an error. */
8939#ifdef __cplusplus
8940extern "C"
8941{
8942#endif
8943/* We use char because int might match the return type of a gcc2
8944 builtin and then its argument prototype would still apply. */
8945char dlopen ();
8946/* The GNU C library defines this for functions which it implements
8947 to always fail with ENOSYS. Some functions are actually named
8948 something starting with __ and the normal name is an alias. */
8949#if defined (__stub_dlopen) || defined (__stub___dlopen)
8950choke me
8951#else
8952char (*f) () = dlopen;
8953#endif
8954#ifdef __cplusplus
8955}
8956#endif
8957
8958int
8959main ()
8960{
8961return f != dlopen;
8962 ;
8963 return 0;
8964}
3ed8e5b6 8965_ACEOF
1cf3d07d
SE
8966rm -f conftest.$ac_objext conftest$ac_exeext
8967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968 (eval $ac_link) 2>conftest.er1
3ed8e5b6
AT
8969 ac_status=$?
8970 grep -v '^ *+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8974 (exit $ac_status); } &&
8975 { ac_try='test -z "$ac_c_werror_flag"
8976 || test ! -s conftest.err'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 (eval $ac_try) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest$ac_exeext'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; }; then
8988 ac_cv_func_dlopen=yes
63e5e3e0 8989else
3ed8e5b6
AT
8990 echo "$as_me: failed program was:" >&5
8991sed 's/^/| /' conftest.$ac_ext >&5
8992
1cf3d07d 8993ac_cv_func_dlopen=no
3ed8e5b6 8994fi
1cf3d07d
SE
8995rm -f conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8997fi
8998echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8999echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9000if test $ac_cv_func_dlopen = yes; then
9001 lt_cv_dlopen="dlopen"
9002else
9003 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9004echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9005if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9007else
9008 ac_check_lib_save_LIBS=$LIBS
9009LIBS="-ldl $LIBS"
9010cat >conftest.$ac_ext <<_ACEOF
3ed8e5b6
AT
9011/* confdefs.h. */
9012_ACEOF
9013cat confdefs.h >>conftest.$ac_ext
9014cat >>conftest.$ac_ext <<_ACEOF
9015/* end confdefs.h. */
1cf3d07d
SE
9016
9017/* Override any gcc2 internal prototype to avoid an error. */
9018#ifdef __cplusplus
9019extern "C"
9020#endif
9021/* We use char because int might match the return type of a gcc2
9022 builtin and then its argument prototype would still apply. */
9023char dlopen ();
9024int
9025main ()
9026{
9027dlopen ();
9028 ;
9029 return 0;
9030}
3ed8e5b6 9031_ACEOF
1cf3d07d
SE
9032rm -f conftest.$ac_objext conftest$ac_exeext
9033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9034 (eval $ac_link) 2>conftest.er1
3ed8e5b6
AT
9035 ac_status=$?
9036 grep -v '^ *+' conftest.er1 >conftest.err
9037 rm -f conftest.er1
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9040 (exit $ac_status); } &&
9041 { ac_try='test -z "$ac_c_werror_flag"
9042 || test ! -s conftest.err'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 (eval $ac_try) 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; } &&
9048 { ac_try='test -s conftest$ac_exeext'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 (eval $ac_try) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9054 ac_cv_lib_dl_dlopen=yes
c9b93377
JB
9055else
9056 echo "$as_me: failed program was:" >&5
9057sed 's/^/| /' conftest.$ac_ext >&5
9058
1cf3d07d 9059ac_cv_lib_dl_dlopen=no
c9b93377 9060fi
1cf3d07d
SE
9061rm -f conftest.err conftest.$ac_objext \
9062 conftest$ac_exeext conftest.$ac_ext
9063LIBS=$ac_check_lib_save_LIBS
c9b93377 9064fi
1cf3d07d
SE
9065echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9066echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9067if test $ac_cv_lib_dl_dlopen = yes; then
9068 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
c9b93377 9069else
1cf3d07d
SE
9070 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9071echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9072if test "${ac_cv_lib_svld_dlopen+set}" = set; then
c9b93377
JB
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9074else
1cf3d07d
SE
9075 ac_check_lib_save_LIBS=$LIBS
9076LIBS="-lsvld $LIBS"
9077cat >conftest.$ac_ext <<_ACEOF
c9b93377
JB
9078/* confdefs.h. */
9079_ACEOF
9080cat confdefs.h >>conftest.$ac_ext
9081cat >>conftest.$ac_ext <<_ACEOF
9082/* end confdefs.h. */
c9b93377 9083
1cf3d07d
SE
9084/* Override any gcc2 internal prototype to avoid an error. */
9085#ifdef __cplusplus
9086extern "C"
9087#endif
9088/* We use char because int might match the return type of a gcc2
9089 builtin and then its argument prototype would still apply. */
9090char dlopen ();
c9b93377
JB
9091int
9092main ()
9093{
1cf3d07d 9094dlopen ();
c9b93377
JB
9095 ;
9096 return 0;
9097}
9098_ACEOF
1cf3d07d
SE
9099rm -f conftest.$ac_objext conftest$ac_exeext
9100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9101 (eval $ac_link) 2>conftest.er1
c9b93377
JB
9102 ac_status=$?
9103 grep -v '^ *+' conftest.er1 >conftest.err
9104 rm -f conftest.er1
9105 cat conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } &&
88d8c771
AG
9108 { ac_try='test -z "$ac_c_werror_flag"
9109 || test ! -s conftest.err'
c9b93377
JB
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 (eval $ac_try) 2>&5
9112 ac_status=$?
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; } &&
1cf3d07d 9115 { ac_try='test -s conftest$ac_exeext'
c9b93377
JB
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 (eval $ac_try) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; }; then
1cf3d07d 9121 ac_cv_lib_svld_dlopen=yes
c9b93377
JB
9122else
9123 echo "$as_me: failed program was:" >&5
9124sed 's/^/| /' conftest.$ac_ext >&5
9125
1cf3d07d 9126ac_cv_lib_svld_dlopen=no
c9b93377 9127fi
1cf3d07d
SE
9128rm -f conftest.err conftest.$ac_objext \
9129 conftest$ac_exeext conftest.$ac_ext
9130LIBS=$ac_check_lib_save_LIBS
c9b93377 9131fi
1cf3d07d
SE
9132echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9133echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9134if test $ac_cv_lib_svld_dlopen = yes; then
9135 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
c9b93377 9136else
1cf3d07d
SE
9137 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9138echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9139if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
c9b93377 9141else
1cf3d07d
SE
9142 ac_check_lib_save_LIBS=$LIBS
9143LIBS="-ldld $LIBS"
9144cat >conftest.$ac_ext <<_ACEOF
c9b93377
JB
9145/* confdefs.h. */
9146_ACEOF
9147cat confdefs.h >>conftest.$ac_ext
9148cat >>conftest.$ac_ext <<_ACEOF
9149/* end confdefs.h. */
c9b93377 9150
1cf3d07d
SE
9151/* Override any gcc2 internal prototype to avoid an error. */
9152#ifdef __cplusplus
9153extern "C"
9154#endif
9155/* We use char because int might match the return type of a gcc2
9156 builtin and then its argument prototype would still apply. */
9157char dld_link ();
c9b93377
JB
9158int
9159main ()
9160{
1cf3d07d
SE
9161dld_link ();
9162 ;
9163 return 0;
c9b93377
JB
9164}
9165_ACEOF
1cf3d07d 9166rm -f conftest.$ac_objext conftest$ac_exeext
c9b93377 9167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1cf3d07d 9168 (eval $ac_link) 2>conftest.er1
c9b93377 9169 ac_status=$?
1cf3d07d
SE
9170 grep -v '^ *+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
c9b93377 9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9174 (exit $ac_status); } &&
9175 { ac_try='test -z "$ac_c_werror_flag"
9176 || test ! -s conftest.err'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; } &&
9182 { ac_try='test -s conftest$ac_exeext'
c9b93377
JB
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 (eval $ac_try) 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; }; then
1cf3d07d 9188 ac_cv_lib_dld_dld_link=yes
c9b93377 9189else
1cf3d07d 9190 echo "$as_me: failed program was:" >&5
c9b93377
JB
9191sed 's/^/| /' conftest.$ac_ext >&5
9192
1cf3d07d 9193ac_cv_lib_dld_dld_link=no
c9b93377 9194fi
1cf3d07d
SE
9195rm -f conftest.err conftest.$ac_objext \
9196 conftest$ac_exeext conftest.$ac_ext
9197LIBS=$ac_check_lib_save_LIBS
c9b93377 9198fi
1cf3d07d
SE
9199echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9200echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9201if test $ac_cv_lib_dld_dld_link = yes; then
9202 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
c9b93377 9203fi
1cf3d07d
SE
9204
9205
c9b93377 9206fi
c9b93377 9207
c9b93377
JB
9208
9209fi
9210
c9b93377 9211
1cf3d07d 9212fi
c9b93377
JB
9213
9214
1cf3d07d 9215fi
c9b93377
JB
9216
9217
1cf3d07d 9218fi
c9b93377 9219
1cf3d07d
SE
9220 ;;
9221 esac
c9b93377 9222
1cf3d07d
SE
9223 if test "x$lt_cv_dlopen" != xno; then
9224 enable_dlopen=yes
9225 else
9226 enable_dlopen=no
9227 fi
c9b93377 9228
1cf3d07d
SE
9229 case $lt_cv_dlopen in
9230 dlopen)
9231 save_CPPFLAGS="$CPPFLAGS"
9232 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
c9b93377 9233
1cf3d07d
SE
9234 save_LDFLAGS="$LDFLAGS"
9235 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9236
9237 save_LIBS="$LIBS"
9238 LIBS="$lt_cv_dlopen_libs $LIBS"
9239
9240 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9241echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9242if test "${lt_cv_dlopen_self+set}" = set; then
c9b93377
JB
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9244else
1cf3d07d
SE
9245 if test "$cross_compiling" = yes; then :
9246 lt_cv_dlopen_self=cross
9247else
9248 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9249 lt_status=$lt_dlunknown
9250 cat > conftest.$ac_ext <<_LT_EOF
82a6cadf 9251#line 9251 "configure"
1cf3d07d 9252#include "confdefs.h"
c9b93377 9253
1cf3d07d
SE
9254#if HAVE_DLFCN_H
9255#include <dlfcn.h>
9256#endif
9257
9258#include <stdio.h>
9259
9260#ifdef RTLD_GLOBAL
9261# define LT_DLGLOBAL RTLD_GLOBAL
9262#else
9263# ifdef DL_GLOBAL
9264# define LT_DLGLOBAL DL_GLOBAL
9265# else
9266# define LT_DLGLOBAL 0
9267# endif
9268#endif
9269
9270/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9271 find out it does not work in some platform. */
9272#ifndef LT_DLLAZY_OR_NOW
9273# ifdef RTLD_LAZY
9274# define LT_DLLAZY_OR_NOW RTLD_LAZY
9275# else
9276# ifdef DL_LAZY
9277# define LT_DLLAZY_OR_NOW DL_LAZY
9278# else
9279# ifdef RTLD_NOW
9280# define LT_DLLAZY_OR_NOW RTLD_NOW
9281# else
9282# ifdef DL_NOW
9283# define LT_DLLAZY_OR_NOW DL_NOW
9284# else
9285# define LT_DLLAZY_OR_NOW 0
9286# endif
9287# endif
9288# endif
9289# endif
9290#endif
9291
9292#ifdef __cplusplus
9293extern "C" void exit (int);
9294#endif
9295
9296void fnord() { int i=42;}
9297int main ()
9298{
9299 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9300 int status = $lt_dlunknown;
9301
9302 if (self)
9303 {
9304 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9305 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9306 /* dlclose (self); */
9307 }
9308 else
9309 puts (dlerror ());
9310
9311 exit (status);
9312}
9313_LT_EOF
9314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9315 (eval $ac_link) 2>&5
c9b93377
JB
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9318 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9319 (./conftest; exit; ) >&5 2>/dev/null
9320 lt_status=$?
9321 case x$lt_status in
9322 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9323 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9324 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9325 esac
9326 else :
9327 # compilation failed
9328 lt_cv_dlopen_self=no
9329 fi
9330fi
9331rm -fr conftest*
9332
9333
9334fi
9335echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9336echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9337
9338 if test "x$lt_cv_dlopen_self" = xyes; then
9339 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9340 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9341echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9342if test "${lt_cv_dlopen_self_static+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9344else
9345 if test "$cross_compiling" = yes; then :
9346 lt_cv_dlopen_self_static=cross
9347else
9348 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9349 lt_status=$lt_dlunknown
9350 cat > conftest.$ac_ext <<_LT_EOF
82a6cadf 9351#line 9351 "configure"
1cf3d07d
SE
9352#include "confdefs.h"
9353
9354#if HAVE_DLFCN_H
9355#include <dlfcn.h>
9356#endif
9357
9358#include <stdio.h>
9359
9360#ifdef RTLD_GLOBAL
9361# define LT_DLGLOBAL RTLD_GLOBAL
9362#else
9363# ifdef DL_GLOBAL
9364# define LT_DLGLOBAL DL_GLOBAL
9365# else
9366# define LT_DLGLOBAL 0
9367# endif
9368#endif
9369
9370/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9371 find out it does not work in some platform. */
9372#ifndef LT_DLLAZY_OR_NOW
9373# ifdef RTLD_LAZY
9374# define LT_DLLAZY_OR_NOW RTLD_LAZY
9375# else
9376# ifdef DL_LAZY
9377# define LT_DLLAZY_OR_NOW DL_LAZY
9378# else
9379# ifdef RTLD_NOW
9380# define LT_DLLAZY_OR_NOW RTLD_NOW
9381# else
9382# ifdef DL_NOW
9383# define LT_DLLAZY_OR_NOW DL_NOW
9384# else
9385# define LT_DLLAZY_OR_NOW 0
9386# endif
9387# endif
9388# endif
9389# endif
9390#endif
9391
9392#ifdef __cplusplus
9393extern "C" void exit (int);
9394#endif
9395
9396void fnord() { int i=42;}
9397int main ()
9398{
9399 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9400 int status = $lt_dlunknown;
9401
9402 if (self)
9403 {
9404 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9405 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9406 /* dlclose (self); */
9407 }
9408 else
9409 puts (dlerror ());
9410
9411 exit (status);
9412}
9413_LT_EOF
9414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9415 (eval $ac_link) 2>&5
c9b93377
JB
9416 ac_status=$?
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9418 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9419 (./conftest; exit; ) >&5 2>/dev/null
9420 lt_status=$?
9421 case x$lt_status in
9422 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9423 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9424 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9425 esac
9426 else :
9427 # compilation failed
9428 lt_cv_dlopen_self_static=no
9429 fi
9430fi
9431rm -fr conftest*
9432
9433
9434fi
9435echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9436echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9437 fi
9438
9439 CPPFLAGS="$save_CPPFLAGS"
9440 LDFLAGS="$save_LDFLAGS"
9441 LIBS="$save_LIBS"
9442 ;;
9443 esac
9444
9445 case $lt_cv_dlopen_self in
9446 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9447 *) enable_dlopen_self=unknown ;;
9448 esac
9449
9450 case $lt_cv_dlopen_self_static in
9451 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9452 *) enable_dlopen_self_static=unknown ;;
9453 esac
9454fi
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472striplib=
9473old_striplib=
9474echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9475echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9476if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9477 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9478 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9479 echo "$as_me:$LINENO: result: yes" >&5
9480echo "${ECHO_T}yes" >&6
9481else
9482# FIXME - insert some real tests, host_os isn't really good enough
9483 case $host_os in
9484 darwin*)
9485 if test -n "$STRIP" ; then
9486 striplib="$STRIP -x"
9487 old_striplib="$STRIP -S"
9488 echo "$as_me:$LINENO: result: yes" >&5
9489echo "${ECHO_T}yes" >&6
9490 else
9491 echo "$as_me:$LINENO: result: no" >&5
9492echo "${ECHO_T}no" >&6
9493 fi
9494 ;;
9495 *)
9496 echo "$as_me:$LINENO: result: no" >&5
9497echo "${ECHO_T}no" >&6
9498 ;;
9499 esac
9500fi
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513 # Report which library types will actually be built
9514 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9515echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9516 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9517echo "${ECHO_T}$can_build_shared" >&6
9518
9519 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9520echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9521 test "$can_build_shared" = "no" && enable_shared=no
9522
9523 # On AIX, shared libraries and static libraries use the same namespace, and
9524 # are all built from PIC.
9525 case $host_os in
9526 aix3*)
9527 test "$enable_shared" = yes && enable_static=no
9528 if test -n "$RANLIB"; then
9529 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9530 postinstall_cmds='$RANLIB $lib'
9531 fi
9532 ;;
9533
9534 aix4* | aix5*)
9535 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9536 test "$enable_shared" = yes && enable_static=no
9537 fi
9538 ;;
9539 esac
9540 echo "$as_me:$LINENO: result: $enable_shared" >&5
9541echo "${ECHO_T}$enable_shared" >&6
9542
9543 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9544echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9545 # Make sure either enable_shared or enable_static is yes.
9546 test "$enable_shared" = yes || enable_static=yes
9547 echo "$as_me:$LINENO: result: $enable_static" >&5
9548echo "${ECHO_T}$enable_static" >&6
9549
9550
9551
9552
9553fi
9554ac_ext=c
9555ac_cpp='$CPP $CPPFLAGS'
9556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9558ac_compiler_gnu=$ac_cv_c_compiler_gnu
9559
9560CC="$lt_save_CC"
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574 ac_config_commands="$ac_config_commands libtool"
9575
9576
9577
9578
9579# Only expand once:
9580
9581
9582
9583echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9584echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9585 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9586if test "${enable_maintainer_mode+set}" = set; then
9587 enableval="$enable_maintainer_mode"
9588 USE_MAINTAINER_MODE=$enableval
c9b93377 9589else
1cf3d07d
SE
9590 USE_MAINTAINER_MODE=no
9591fi;
9592 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9593echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
c9b93377 9594
c9b93377 9595
1cf3d07d
SE
9596if test $USE_MAINTAINER_MODE = yes; then
9597 MAINTAINER_MODE_TRUE=
9598 MAINTAINER_MODE_FALSE='#'
9599else
9600 MAINTAINER_MODE_TRUE='#'
9601 MAINTAINER_MODE_FALSE=
c9b93377
JB
9602fi
9603
1cf3d07d
SE
9604 MAINT=$MAINTAINER_MODE_TRUE
9605
c9b93377
JB
9606
9607
9608
9609for ac_header in sys/mman.h
9610do
9611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9612if eval "test \"\${$as_ac_Header+set}\" = set"; then
9613 echo "$as_me:$LINENO: checking for $ac_header" >&5
9614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9615if eval "test \"\${$as_ac_Header+set}\" = set"; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9617fi
9618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9619echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9620else
9621 # Is the header compilable?
9622echo "$as_me:$LINENO: checking $ac_header usability" >&5
9623echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9624cat >conftest.$ac_ext <<_ACEOF
9625/* confdefs.h. */
9626_ACEOF
9627cat confdefs.h >>conftest.$ac_ext
9628cat >>conftest.$ac_ext <<_ACEOF
9629/* end confdefs.h. */
9630$ac_includes_default
9631#include <$ac_header>
9632_ACEOF
9633rm -f conftest.$ac_objext
9634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9635 (eval $ac_compile) 2>conftest.er1
9636 ac_status=$?
9637 grep -v '^ *+' conftest.er1 >conftest.err
9638 rm -f conftest.er1
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } &&
88d8c771
AG
9642 { ac_try='test -z "$ac_c_werror_flag"
9643 || test ! -s conftest.err'
c9b93377
JB
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 (eval $ac_try) 2>&5
9646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; } &&
9649 { ac_try='test -s conftest.$ac_objext'
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 (eval $ac_try) 2>&5
9652 ac_status=$?
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; }; then
9655 ac_header_compiler=yes
9656else
9657 echo "$as_me: failed program was:" >&5
9658sed 's/^/| /' conftest.$ac_ext >&5
9659
9660ac_header_compiler=no
9661fi
9662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9663echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9664echo "${ECHO_T}$ac_header_compiler" >&6
9665
9666# Is the header present?
9667echo "$as_me:$LINENO: checking $ac_header presence" >&5
9668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9669cat >conftest.$ac_ext <<_ACEOF
9670/* confdefs.h. */
9671_ACEOF
9672cat confdefs.h >>conftest.$ac_ext
9673cat >>conftest.$ac_ext <<_ACEOF
9674/* end confdefs.h. */
9675#include <$ac_header>
9676_ACEOF
9677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9679 ac_status=$?
9680 grep -v '^ *+' conftest.er1 >conftest.err
9681 rm -f conftest.er1
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } >/dev/null; then
9685 if test -s conftest.err; then
9686 ac_cpp_err=$ac_c_preproc_warn_flag
9687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9688 else
9689 ac_cpp_err=
9690 fi
9691else
9692 ac_cpp_err=yes
9693fi
9694if test -z "$ac_cpp_err"; then
9695 ac_header_preproc=yes
9696else
9697 echo "$as_me: failed program was:" >&5
9698sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 ac_header_preproc=no
9701fi
9702rm -f conftest.err conftest.$ac_ext
9703echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9704echo "${ECHO_T}$ac_header_preproc" >&6
9705
9706# So? What about this header?
9707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9708 yes:no: )
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9713 ac_header_preproc=yes
9714 ;;
9715 no:yes:* )
9716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9719echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9723echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9728 (
9729 cat <<\_ASBOX
9730## ------------------------------------------- ##
9731## Report this to http://gcc.gnu.org/bugs.html ##
9732## ------------------------------------------- ##
9733_ASBOX
9734 ) |
9735 sed "s/^/$as_me: WARNING: /" >&2
9736 ;;
9737esac
9738echo "$as_me:$LINENO: checking for $ac_header" >&5
9739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9740if eval "test \"\${$as_ac_Header+set}\" = set"; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9742else
9743 eval "$as_ac_Header=\$ac_header_preproc"
9744fi
9745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9747
9748fi
9749if test `eval echo '${'$as_ac_Header'}'` = yes; then
9750 cat >>confdefs.h <<_ACEOF
9751#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9752_ACEOF
9753
9754fi
9755
9756done
9757
9758
9759for ac_func in mmap
9760do
9761as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9762echo "$as_me:$LINENO: checking for $ac_func" >&5
9763echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9764if eval "test \"\${$as_ac_var+set}\" = set"; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9766else
9767 cat >conftest.$ac_ext <<_ACEOF
9768/* confdefs.h. */
9769_ACEOF
9770cat confdefs.h >>conftest.$ac_ext
9771cat >>conftest.$ac_ext <<_ACEOF
9772/* end confdefs.h. */
9773/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9775#define $ac_func innocuous_$ac_func
9776
9777/* System header to define __stub macros and hopefully few prototypes,
9778 which can conflict with char $ac_func (); below.
9779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9780 <limits.h> exists even on freestanding compilers. */
9781
9782#ifdef __STDC__
9783# include <limits.h>
9784#else
9785# include <assert.h>
9786#endif
9787
9788#undef $ac_func
9789
9790/* Override any gcc2 internal prototype to avoid an error. */
9791#ifdef __cplusplus
9792extern "C"
9793{
9794#endif
9795/* We use char because int might match the return type of a gcc2
9796 builtin and then its argument prototype would still apply. */
9797char $ac_func ();
9798/* The GNU C library defines this for functions which it implements
9799 to always fail with ENOSYS. Some functions are actually named
9800 something starting with __ and the normal name is an alias. */
9801#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9802choke me
9803#else
9804char (*f) () = $ac_func;
9805#endif
9806#ifdef __cplusplus
9807}
9808#endif
9809
9810int
9811main ()
9812{
9813return f != $ac_func;
9814 ;
9815 return 0;
9816}
9817_ACEOF
9818rm -f conftest.$ac_objext conftest$ac_exeext
9819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9820 (eval $ac_link) 2>conftest.er1
9821 ac_status=$?
9822 grep -v '^ *+' conftest.er1 >conftest.err
9823 rm -f conftest.er1
9824 cat conftest.err >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
88d8c771
AG
9827 { ac_try='test -z "$ac_c_werror_flag"
9828 || test ! -s conftest.err'
c9b93377
JB
9829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 (eval $ac_try) 2>&5
9831 ac_status=$?
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; } &&
9834 { ac_try='test -s conftest$ac_exeext'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 (eval $ac_try) 2>&5
9837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; }; then
9840 eval "$as_ac_var=yes"
9841else
9842 echo "$as_me: failed program was:" >&5
9843sed 's/^/| /' conftest.$ac_ext >&5
9844
9845eval "$as_ac_var=no"
9846fi
9847rm -f conftest.err conftest.$ac_objext \
9848 conftest$ac_exeext conftest.$ac_ext
9849fi
9850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9851echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9852if test `eval echo '${'$as_ac_var'}'` = yes; then
9853 cat >>confdefs.h <<_ACEOF
9854#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9855_ACEOF
9856
9857fi
9858done
9859
4d447364
MR
9860
9861if test "${ac_cv_header_sys_mman_h+set}" = set; then
9862 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9863echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9864if test "${ac_cv_header_sys_mman_h+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9866fi
9867echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9868echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9869else
9870 # Is the header compilable?
9871echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
9872echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
9873cat >conftest.$ac_ext <<_ACEOF
9874/* confdefs.h. */
9875_ACEOF
9876cat confdefs.h >>conftest.$ac_ext
9877cat >>conftest.$ac_ext <<_ACEOF
9878/* end confdefs.h. */
9879$ac_includes_default
9880#include <sys/mman.h>
9881_ACEOF
9882rm -f conftest.$ac_objext
9883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9884 (eval $ac_compile) 2>conftest.er1
9885 ac_status=$?
9886 grep -v '^ *+' conftest.er1 >conftest.err
9887 rm -f conftest.er1
9888 cat conftest.err >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } &&
88d8c771
AG
9891 { ac_try='test -z "$ac_c_werror_flag"
9892 || test ! -s conftest.err'
4d447364
MR
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 (eval $ac_try) 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; } &&
9898 { ac_try='test -s conftest.$ac_objext'
9899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900 (eval $ac_try) 2>&5
9901 ac_status=$?
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; }; then
9904 ac_header_compiler=yes
9905else
9906 echo "$as_me: failed program was:" >&5
9907sed 's/^/| /' conftest.$ac_ext >&5
9908
9909ac_header_compiler=no
9910fi
9911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9912echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9913echo "${ECHO_T}$ac_header_compiler" >&6
9914
9915# Is the header present?
9916echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
9917echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
9918cat >conftest.$ac_ext <<_ACEOF
9919/* confdefs.h. */
9920_ACEOF
9921cat confdefs.h >>conftest.$ac_ext
9922cat >>conftest.$ac_ext <<_ACEOF
9923/* end confdefs.h. */
9924#include <sys/mman.h>
9925_ACEOF
9926if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9928 ac_status=$?
9929 grep -v '^ *+' conftest.er1 >conftest.err
9930 rm -f conftest.er1
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } >/dev/null; then
9934 if test -s conftest.err; then
9935 ac_cpp_err=$ac_c_preproc_warn_flag
9936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9937 else
9938 ac_cpp_err=
9939 fi
9940else
9941 ac_cpp_err=yes
9942fi
9943if test -z "$ac_cpp_err"; then
9944 ac_header_preproc=yes
9945else
9946 echo "$as_me: failed program was:" >&5
9947sed 's/^/| /' conftest.$ac_ext >&5
9948
9949 ac_header_preproc=no
9950fi
9951rm -f conftest.err conftest.$ac_ext
9952echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9953echo "${ECHO_T}$ac_header_preproc" >&6
9954
9955# So? What about this header?
9956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9957 yes:no: )
9958 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
9959echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
9961echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
9962 ac_header_preproc=yes
9963 ;;
9964 no:yes:* )
9965 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
9966echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
9967 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
9968echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
9969 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
9970echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
9972echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
9974echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
9976echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
9977 (
9978 cat <<\_ASBOX
9979## ------------------------------------------- ##
9980## Report this to http://gcc.gnu.org/bugs.html ##
9981## ------------------------------------------- ##
9982_ASBOX
9983 ) |
9984 sed "s/^/$as_me: WARNING: /" >&2
9985 ;;
9986esac
9987echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9988echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9989if test "${ac_cv_header_sys_mman_h+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9991else
9992 ac_cv_header_sys_mman_h=$ac_header_preproc
9993fi
9994echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9995echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9996
9997fi
9998if test $ac_cv_header_sys_mman_h = yes; then
9999 libffi_header_sys_mman_h=yes
10000else
10001 libffi_header_sys_mman_h=no
10002fi
10003
10004
10005echo "$as_me:$LINENO: checking for mmap" >&5
10006echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10007if test "${ac_cv_func_mmap+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10009else
10010 cat >conftest.$ac_ext <<_ACEOF
10011/* confdefs.h. */
10012_ACEOF
10013cat confdefs.h >>conftest.$ac_ext
10014cat >>conftest.$ac_ext <<_ACEOF
10015/* end confdefs.h. */
10016/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10018#define mmap innocuous_mmap
10019
10020/* System header to define __stub macros and hopefully few prototypes,
10021 which can conflict with char mmap (); below.
10022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023 <limits.h> exists even on freestanding compilers. */
10024
10025#ifdef __STDC__
10026# include <limits.h>
10027#else
10028# include <assert.h>
10029#endif
10030
10031#undef mmap
10032
10033/* Override any gcc2 internal prototype to avoid an error. */
10034#ifdef __cplusplus
10035extern "C"
10036{
10037#endif
10038/* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10040char mmap ();
10041/* The GNU C library defines this for functions which it implements
10042 to always fail with ENOSYS. Some functions are actually named
10043 something starting with __ and the normal name is an alias. */
10044#if defined (__stub_mmap) || defined (__stub___mmap)
10045choke me
10046#else
10047char (*f) () = mmap;
10048#endif
10049#ifdef __cplusplus
10050}
10051#endif
10052
10053int
10054main ()
10055{
10056return f != mmap;
10057 ;
10058 return 0;
10059}
10060_ACEOF
10061rm -f conftest.$ac_objext conftest$ac_exeext
10062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063 (eval $ac_link) 2>conftest.er1
10064 ac_status=$?
10065 grep -v '^ *+' conftest.er1 >conftest.err
10066 rm -f conftest.er1
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
88d8c771
AG
10070 { ac_try='test -z "$ac_c_werror_flag"
10071 || test ! -s conftest.err'
4d447364
MR
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_func_mmap=yes
10084else
10085 echo "$as_me: failed program was:" >&5
10086sed 's/^/| /' conftest.$ac_ext >&5
10087
10088ac_cv_func_mmap=no
10089fi
10090rm -f conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10092fi
10093echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10094echo "${ECHO_T}$ac_cv_func_mmap" >&6
10095if test $ac_cv_func_mmap = yes; then
10096 libffi_func_mmap=yes
10097else
10098 libffi_func_mmap=no
10099fi
10100
10101if test "$libffi_header_sys_mman_h" != yes \
10102 || test "$libffi_func_mmap" != yes; then
c9b93377
JB
10103 ac_cv_func_mmap_file=no
10104 ac_cv_func_mmap_dev_zero=no
10105 ac_cv_func_mmap_anon=no
10106else
10107 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10108echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10109if test "${ac_cv_func_mmap_file+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
10111else
10112 # Add a system to this blacklist if
10113 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10114 # memory area containing the same data that you'd get if you applied
10115 # read() to the same fd. The only system known to have a problem here
10116 # is VMS, where text files have record structure.
10117 case "$host_os" in
10118 vms* | ultrix*)
10119 ac_cv_func_mmap_file=no ;;
10120 *)
10121 ac_cv_func_mmap_file=yes;;
10122 esac
10123fi
10124echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
10125echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
10126 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10127echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10128if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
10129 echo $ECHO_N "(cached) $ECHO_C" >&6
10130else
10131 # Add a system to this blacklist if it has mmap() but /dev/zero
10132 # does not exist, or if mmapping /dev/zero does not give anonymous
10133 # zeroed pages with both the following properties:
10134 # 1. If you map N consecutive pages in with one call, and then
10135 # unmap any subset of those pages, the pages that were not
10136 # explicitly unmapped remain accessible.
10137 # 2. If you map two adjacent blocks of memory and then unmap them
10138 # both at once, they must both go away.
10139 # Systems known to be in this category are Windows (all variants),
10140 # VMS, and Darwin.
10141 case "$host_os" in
10142 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10143 ac_cv_func_mmap_dev_zero=no ;;
10144 *)
10145 ac_cv_func_mmap_dev_zero=yes;;
10146 esac
10147fi
10148echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
10149echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
10150
10151 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10152 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10153echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10154if test "${ac_cv_decl_map_anon+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156else
10157 cat >conftest.$ac_ext <<_ACEOF
10158/* confdefs.h. */
10159_ACEOF
10160cat confdefs.h >>conftest.$ac_ext
10161cat >>conftest.$ac_ext <<_ACEOF
10162/* end confdefs.h. */
10163#include <sys/types.h>
10164#include <sys/mman.h>
10165#include <unistd.h>
10166
10167#ifndef MAP_ANONYMOUS
10168#define MAP_ANONYMOUS MAP_ANON
10169#endif
10170
10171int
10172main ()
10173{
10174int n = MAP_ANONYMOUS;
10175 ;
10176 return 0;
10177}
10178_ACEOF
10179rm -f conftest.$ac_objext
10180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10181 (eval $ac_compile) 2>conftest.er1
10182 ac_status=$?
10183 grep -v '^ *+' conftest.er1 >conftest.err
10184 rm -f conftest.er1
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
88d8c771
AG
10188 { ac_try='test -z "$ac_c_werror_flag"
10189 || test ! -s conftest.err'
c9b93377
JB
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; } &&
10195 { ac_try='test -s conftest.$ac_objext'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; }; then
10201 ac_cv_decl_map_anon=yes
10202else
10203 echo "$as_me: failed program was:" >&5
10204sed 's/^/| /' conftest.$ac_ext >&5
10205
10206ac_cv_decl_map_anon=no
10207fi
10208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10209fi
10210echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
10211echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
10212
10213 if test $ac_cv_decl_map_anon = no; then
10214 ac_cv_func_mmap_anon=no
10215 else
10216 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10217echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10218if test "${ac_cv_func_mmap_anon+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220else
10221 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10222 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10223 # doesn't give anonymous zeroed pages with the same properties listed
10224 # above for use of /dev/zero.
10225 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10226 case "$host_os" in
10227 vms* | cygwin* | pe | mingw* | sco* | udk* )
10228 ac_cv_func_mmap_anon=no ;;
10229 *)
10230 ac_cv_func_mmap_anon=yes;;
10231 esac
10232fi
10233echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
10234echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
10235 fi
10236fi
10237
10238if test $ac_cv_func_mmap_file = yes; then
10239
10240cat >>confdefs.h <<\_ACEOF
10241#define HAVE_MMAP_FILE 1
10242_ACEOF
10243
10244fi
10245if test $ac_cv_func_mmap_dev_zero = yes; then
10246
10247cat >>confdefs.h <<\_ACEOF
10248#define HAVE_MMAP_DEV_ZERO 1
10249_ACEOF
10250
10251fi
10252if test $ac_cv_func_mmap_anon = yes; then
10253
10254cat >>confdefs.h <<\_ACEOF
10255#define HAVE_MMAP_ANON 1
10256_ACEOF
10257
10258fi
10259
10260
10261
10262
10263if test -d $srcdir/testsuite; then
10264 TESTSUBDIR_TRUE=
10265 TESTSUBDIR_FALSE='#'
10266else
10267 TESTSUBDIR_TRUE='#'
10268 TESTSUBDIR_FALSE=
10269fi
10270
10271
10272TARGETDIR="unknown"
10273case "$host" in
bf8da5fc
RH
10274 alpha*-*-*)
10275 TARGET=ALPHA; TARGETDIR=alpha;
10276 # Support 128-bit long double, changable via command-line switch.
10277 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
10278 ;;
10279
10280 arm*-*-*)
10281 TARGET=ARM; TARGETDIR=arm
10282 ;;
10283
10284 cris-*-*)
10285 TARGET=LIBFFI_CRIS; TARGETDIR=cris
10286 ;;
10287
10288 frv-*-*)
10289 TARGET=FRV; TARGETDIR=frv
10290 ;;
10291
10292 hppa*-*-linux* | parisc*-*-linux*)
10293 TARGET=PA_LINUX; TARGETDIR=pa
10294 ;;
10295 hppa*64-*-hpux*)
10296 TARGET=PA64_HPUX; TARGETDIR=pa
10297 ;;
10298 hppa*-*-hpux*)
10299 TARGET=PA_HPUX; TARGETDIR=pa
10300 ;;
10301
10302 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
10303 TARGET=X86_WIN32; TARGETDIR=x86
10304 ;;
10305 i?86-*-darwin*)
10306 TARGET=X86_DARWIN; TARGETDIR=x86
10307 ;;
04a49983
RO
10308 i?86-*-solaris2.1[0-9]*)
10309 TARGET=X86_64; TARGETDIR=x86
10310 ;;
bf8da5fc
RH
10311 i?86-*-*)
10312 TARGET=X86; TARGETDIR=x86
10313 ;;
10314
10315 ia64*-*-*)
10316 TARGET=IA64; TARGETDIR=ia64
10317 ;;
10318
10319 m32r*-*-*)
10320 TARGET=M32R; TARGETDIR=m32r
10321 ;;
10322
10323 m68k-*-*)
10324 TARGET=M68K; TARGETDIR=m68k
10325 ;;
10326
bf8da5fc 10327 mips-sgi-irix5.* | mips-sgi-irix6.*)
8d5c5e35 10328 TARGET=MIPS; TARGETDIR=mips
bf8da5fc
RH
10329 ;;
10330 mips*-*-linux*)
8d5c5e35 10331 TARGET=MIPS; TARGETDIR=mips
bf8da5fc
RH
10332 ;;
10333
10334 powerpc*-*-linux* | powerpc-*-sysv*)
10335 TARGET=POWERPC; TARGETDIR=powerpc
10336 ;;
10337 powerpc-*-beos*)
10338 TARGET=POWERPC; TARGETDIR=powerpc
10339 ;;
10340 powerpc-*-darwin*)
10341 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
10342 ;;
10343 powerpc-*-aix* | rs6000-*-aix*)
10344 TARGET=POWERPC_AIX; TARGETDIR=powerpc
10345 ;;
10346 powerpc-*-freebsd*)
10347 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
10348 ;;
10349 powerpc*-*-rtems*)
10350 TARGET=POWERPC; TARGETDIR=powerpc
10351 ;;
10352
10353 s390-*-* | s390x-*-*)
10354 TARGET=S390; TARGETDIR=s390
10355 ;;
10356
10357 sh-*-* | sh[34]*-*-*)
10358 TARGET=SH; TARGETDIR=sh
10359 ;;
10360 sh64-*-* | sh5*-*-*)
10361 TARGET=SH64; TARGETDIR=sh64
10362 ;;
10363
10364 sparc*-*-*)
10365 TARGET=SPARC; TARGETDIR=sparc
10366 ;;
10367
10368 x86_64-*-darwin*)
10369 TARGET=X86_DARWIN; TARGETDIR=x86
10370 ;;
10371 x86_64-*-cygwin* | x86_64-*-mingw*)
10372 ;;
10373 x86_64-*-*)
10374 TARGET=X86_64; TARGETDIR=x86
10375 ;;
c9b93377
JB
10376esac
10377
10378
10379
10380if test $TARGETDIR = unknown; then
10381 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
10382echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
10383 { (exit 1); exit 1; }; }
10384fi
10385
10386
10387
8d5c5e35
MR
10388if test x$TARGET = xMIPS; then
10389 MIPS_TRUE=
10390 MIPS_FALSE='#'
c9b93377 10391else
8d5c5e35
MR
10392 MIPS_TRUE='#'
10393 MIPS_FALSE=
c9b93377
JB
10394fi
10395
10396
10397
10398if test x$TARGET = xSPARC; then
10399 SPARC_TRUE=
10400 SPARC_FALSE='#'
10401else
10402 SPARC_TRUE='#'
10403 SPARC_FALSE=
10404fi
10405
10406
10407
10408if test x$TARGET = xX86; then
10409 X86_TRUE=
10410 X86_FALSE='#'
10411else
10412 X86_TRUE='#'
10413 X86_FALSE=
63e5e3e0 10414fi
c9b93377
JB
10415
10416
10417
10418if test x$TARGET = xX86_WIN32; then
10419 X86_WIN32_TRUE=
10420 X86_WIN32_FALSE='#'
3ed8e5b6 10421else
c9b93377
JB
10422 X86_WIN32_TRUE='#'
10423 X86_WIN32_FALSE=
10424fi
3ed8e5b6 10425
c9b93377
JB
10426
10427
a3bd50cc
PB
10428if test x$TARGET = xX86_DARWIN; then
10429 X86_DARWIN_TRUE=
10430 X86_DARWIN_FALSE='#'
10431else
10432 X86_DARWIN_TRUE='#'
10433 X86_DARWIN_FALSE=
10434fi
10435
10436
10437
c9b93377
JB
10438if test x$TARGET = xALPHA; then
10439 ALPHA_TRUE=
10440 ALPHA_FALSE='#'
10441else
10442 ALPHA_TRUE='#'
10443 ALPHA_FALSE=
63e5e3e0 10444fi
3ed8e5b6 10445
c9b93377
JB
10446
10447
10448if test x$TARGET = xIA64; then
10449 IA64_TRUE=
10450 IA64_FALSE='#'
10451else
10452 IA64_TRUE='#'
10453 IA64_FALSE=
63e5e3e0 10454fi
3ed8e5b6 10455
3ed8e5b6 10456
c9b93377 10457
a472e9d4
KI
10458if test x$TARGET = xM32R; then
10459 M32R_TRUE=
10460 M32R_FALSE='#'
10461else
10462 M32R_TRUE='#'
10463 M32R_FALSE=
10464fi
10465
10466
10467
c9b93377
JB
10468if test x$TARGET = xM68K; then
10469 M68K_TRUE=
10470 M68K_FALSE='#'
10471else
10472 M68K_TRUE='#'
10473 M68K_FALSE=
3ed8e5b6 10474fi
c9b93377
JB
10475
10476
10477
10478if test x$TARGET = xPOWERPC; then
10479 POWERPC_TRUE=
10480 POWERPC_FALSE='#'
3ed8e5b6 10481else
c9b93377
JB
10482 POWERPC_TRUE='#'
10483 POWERPC_FALSE=
3ed8e5b6 10484fi
c9b93377
JB
10485
10486
10487
10488if test x$TARGET = xPOWERPC_AIX; then
10489 POWERPC_AIX_TRUE=
10490 POWERPC_AIX_FALSE='#'
3ed8e5b6 10491else
c9b93377
JB
10492 POWERPC_AIX_TRUE='#'
10493 POWERPC_AIX_FALSE=
3ed8e5b6 10494fi
c9b93377
JB
10495
10496
10497
10498if test x$TARGET = xPOWERPC_DARWIN; then
10499 POWERPC_DARWIN_TRUE=
10500 POWERPC_DARWIN_FALSE='#'
3ed8e5b6 10501else
c9b93377
JB
10502 POWERPC_DARWIN_TRUE='#'
10503 POWERPC_DARWIN_FALSE=
10504fi
3ed8e5b6 10505
c9b93377
JB
10506
10507
97067642
AT
10508if test x$TARGET = xPOWERPC_FREEBSD; then
10509 POWERPC_FREEBSD_TRUE=
10510 POWERPC_FREEBSD_FALSE='#'
10511else
10512 POWERPC_FREEBSD_TRUE='#'
10513 POWERPC_FREEBSD_FALSE=
10514fi
10515
10516
10517
c9b93377
JB
10518if test x$TARGET = xARM; then
10519 ARM_TRUE=
10520 ARM_FALSE='#'
10521else
10522 ARM_TRUE='#'
10523 ARM_FALSE=
3ed8e5b6 10524fi
3ed8e5b6 10525
c9b93377
JB
10526
10527
614348bb
SP
10528if test x$TARGET = xLIBFFI_CRIS; then
10529 LIBFFI_CRIS_TRUE=
10530 LIBFFI_CRIS_FALSE='#'
10531else
10532 LIBFFI_CRIS_TRUE='#'
10533 LIBFFI_CRIS_FALSE=
10534fi
10535
10536
10537
88d8c771
AG
10538if test x$TARGET = xFRV; then
10539 FRV_TRUE=
10540 FRV_FALSE='#'
10541else
10542 FRV_TRUE='#'
10543 FRV_FALSE=
10544fi
10545
10546
10547
c9b93377
JB
10548if test x$TARGET = xS390; then
10549 S390_TRUE=
10550 S390_FALSE='#'
3ed8e5b6 10551else
c9b93377
JB
10552 S390_TRUE='#'
10553 S390_FALSE=
3ed8e5b6 10554fi
c9b93377
JB
10555
10556
10557
10558if test x$TARGET = xX86_64; then
10559 X86_64_TRUE=
10560 X86_64_FALSE='#'
3ed8e5b6 10561else
c9b93377
JB
10562 X86_64_TRUE='#'
10563 X86_64_FALSE=
10564fi
3ed8e5b6 10565
c9b93377
JB
10566
10567
10568if test x$TARGET = xSH; then
10569 SH_TRUE=
10570 SH_FALSE='#'
10571else
10572 SH_TRUE='#'
10573 SH_FALSE=
63e5e3e0 10574fi
3ed8e5b6 10575
c9b93377
JB
10576
10577
10578if test x$TARGET = xSH64; then
10579 SH64_TRUE=
10580 SH64_FALSE='#'
63e5e3e0 10581else
c9b93377
JB
10582 SH64_TRUE='#'
10583 SH64_FALSE=
63e5e3e0 10584fi
63e5e3e0 10585
3ed8e5b6
AT
10586
10587
e6c300ef
JDA
10588if test x$TARGET = xPA_LINUX; then
10589 PA_LINUX_TRUE=
10590 PA_LINUX_FALSE='#'
63e5e3e0 10591else
e6c300ef
JDA
10592 PA_LINUX_TRUE='#'
10593 PA_LINUX_FALSE=
10594fi
10595
10596
10597
10598if test x$TARGET = xPA_HPUX; then
10599 PA_HPUX_TRUE=
10600 PA_HPUX_FALSE='#'
10601else
10602 PA_HPUX_TRUE='#'
10603 PA_HPUX_FALSE=
10604fi
10605
10606
10607
10608if test x$TARGET = xPA64_HPUX; then
10609 PA64_HPUX_TRUE=
10610 PA64_HPUX_FALSE='#'
10611else
10612 PA64_HPUX_TRUE='#'
10613 PA64_HPUX_FALSE=
3ed8e5b6 10614fi
3ed8e5b6
AT
10615
10616
10617echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10618echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10619if test "${ac_cv_header_stdc+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10621else
10622 cat >conftest.$ac_ext <<_ACEOF
10623/* confdefs.h. */
10624_ACEOF
10625cat confdefs.h >>conftest.$ac_ext
10626cat >>conftest.$ac_ext <<_ACEOF
10627/* end confdefs.h. */
63e5e3e0
AG
10628#include <stdlib.h>
10629#include <stdarg.h>
10630#include <string.h>
10631#include <float.h>
3ed8e5b6
AT
10632
10633int
10634main ()
10635{
10636
10637 ;
10638 return 0;
10639}
10640_ACEOF
10641rm -f conftest.$ac_objext
10642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643 (eval $ac_compile) 2>conftest.er1
10644 ac_status=$?
10645 grep -v '^ *+' conftest.er1 >conftest.err
10646 rm -f conftest.er1
10647 cat conftest.err >&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } &&
88d8c771
AG
10650 { ac_try='test -z "$ac_c_werror_flag"
10651 || test ! -s conftest.err'
3ed8e5b6
AT
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10654 ac_status=$?
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; } &&
10657 { ac_try='test -s conftest.$ac_objext'
10658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659 (eval $ac_try) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }; then
63e5e3e0
AG
10663 ac_cv_header_stdc=yes
10664else
3ed8e5b6
AT
10665 echo "$as_me: failed program was:" >&5
10666sed 's/^/| /' conftest.$ac_ext >&5
10667
10668ac_cv_header_stdc=no
63e5e3e0 10669fi
3ed8e5b6 10670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0
AG
10671
10672if test $ac_cv_header_stdc = yes; then
10673 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3ed8e5b6
AT
10674 cat >conftest.$ac_ext <<_ACEOF
10675/* confdefs.h. */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
10679/* end confdefs.h. */
63e5e3e0 10680#include <string.h>
3ed8e5b6
AT
10681
10682_ACEOF
63e5e3e0 10683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3ed8e5b6 10684 $EGREP "memchr" >/dev/null 2>&1; then
63e5e3e0
AG
10685 :
10686else
63e5e3e0
AG
10687 ac_cv_header_stdc=no
10688fi
10689rm -f conftest*
10690
10691fi
10692
10693if test $ac_cv_header_stdc = yes; then
10694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3ed8e5b6
AT
10695 cat >conftest.$ac_ext <<_ACEOF
10696/* confdefs.h. */
10697_ACEOF
10698cat confdefs.h >>conftest.$ac_ext
10699cat >>conftest.$ac_ext <<_ACEOF
10700/* end confdefs.h. */
63e5e3e0 10701#include <stdlib.h>
3ed8e5b6
AT
10702
10703_ACEOF
63e5e3e0 10704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3ed8e5b6 10705 $EGREP "free" >/dev/null 2>&1; then
63e5e3e0
AG
10706 :
10707else
63e5e3e0
AG
10708 ac_cv_header_stdc=no
10709fi
10710rm -f conftest*
10711
10712fi
10713
10714if test $ac_cv_header_stdc = yes; then
10715 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3ed8e5b6 10716 if test "$cross_compiling" = yes; then
63e5e3e0
AG
10717 :
10718else
3ed8e5b6
AT
10719 cat >conftest.$ac_ext <<_ACEOF
10720/* confdefs.h. */
10721_ACEOF
10722cat confdefs.h >>conftest.$ac_ext
10723cat >>conftest.$ac_ext <<_ACEOF
10724/* end confdefs.h. */
63e5e3e0 10725#include <ctype.h>
3ed8e5b6
AT
10726#if ((' ' & 0x0FF) == 0x020)
10727# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10728# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10729#else
10730# define ISLOWER(c) \
10731 (('a' <= (c) && (c) <= 'i') \
10732 || ('j' <= (c) && (c) <= 'r') \
10733 || ('s' <= (c) && (c) <= 'z'))
10734# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10735#endif
63e5e3e0 10736
3ed8e5b6
AT
10737#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10738int
10739main ()
10740{
10741 int i;
10742 for (i = 0; i < 256; i++)
10743 if (XOR (islower (i), ISLOWER (i))
10744 || toupper (i) != TOUPPER (i))
10745 exit(2);
10746 exit (0);
10747}
10748_ACEOF
10749rm -f conftest$ac_exeext
10750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10751 (eval $ac_link) 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10757 ac_status=$?
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; }; then
63e5e3e0
AG
10760 :
10761else
3ed8e5b6
AT
10762 echo "$as_me: program exited with status $ac_status" >&5
10763echo "$as_me: failed program was:" >&5
10764sed 's/^/| /' conftest.$ac_ext >&5
10765
10766( exit $ac_status )
10767ac_cv_header_stdc=no
63e5e3e0 10768fi
3ed8e5b6 10769rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63e5e3e0 10770fi
63e5e3e0
AG
10771fi
10772fi
3ed8e5b6
AT
10773echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10774echo "${ECHO_T}$ac_cv_header_stdc" >&6
63e5e3e0 10775if test $ac_cv_header_stdc = yes; then
3ed8e5b6
AT
10776
10777cat >>confdefs.h <<\_ACEOF
63e5e3e0 10778#define STDC_HEADERS 1
3ed8e5b6 10779_ACEOF
63e5e3e0
AG
10780
10781fi
10782
3ed8e5b6 10783
63e5e3e0
AG
10784for ac_func in memcpy
10785do
3ed8e5b6
AT
10786as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10787echo "$as_me:$LINENO: checking for $ac_func" >&5
10788echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10789if eval "test \"\${$as_ac_var+set}\" = set"; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791else
10792 cat >conftest.$ac_ext <<_ACEOF
10793/* confdefs.h. */
10794_ACEOF
10795cat confdefs.h >>conftest.$ac_ext
10796cat >>conftest.$ac_ext <<_ACEOF
10797/* end confdefs.h. */
10798/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10800#define $ac_func innocuous_$ac_func
10801
63e5e3e0 10802/* System header to define __stub macros and hopefully few prototypes,
3ed8e5b6
AT
10803 which can conflict with char $ac_func (); below.
10804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10805 <limits.h> exists even on freestanding compilers. */
63e5e3e0 10806
3ed8e5b6
AT
10807#ifdef __STDC__
10808# include <limits.h>
10809#else
10810# include <assert.h>
10811#endif
63e5e3e0 10812
3ed8e5b6
AT
10813#undef $ac_func
10814
10815/* Override any gcc2 internal prototype to avoid an error. */
10816#ifdef __cplusplus
10817extern "C"
10818{
10819#endif
10820/* We use char because int might match the return type of a gcc2
10821 builtin and then its argument prototype would still apply. */
10822char $ac_func ();
63e5e3e0
AG
10823/* The GNU C library defines this for functions which it implements
10824 to always fail with ENOSYS. Some functions are actually named
10825 something starting with __ and the normal name is an alias. */
10826#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10827choke me
10828#else
3ed8e5b6
AT
10829char (*f) () = $ac_func;
10830#endif
10831#ifdef __cplusplus
10832}
63e5e3e0
AG
10833#endif
10834
3ed8e5b6
AT
10835int
10836main ()
10837{
10838return f != $ac_func;
10839 ;
10840 return 0;
10841}
10842_ACEOF
10843rm -f conftest.$ac_objext conftest$ac_exeext
10844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10845 (eval $ac_link) 2>conftest.er1
10846 ac_status=$?
10847 grep -v '^ *+' conftest.er1 >conftest.err
10848 rm -f conftest.er1
10849 cat conftest.err >&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } &&
88d8c771
AG
10852 { ac_try='test -z "$ac_c_werror_flag"
10853 || test ! -s conftest.err'
3ed8e5b6
AT
10854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10856 ac_status=$?
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; } &&
10859 { ac_try='test -s conftest$ac_exeext'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10862 ac_status=$?
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; }; then
10865 eval "$as_ac_var=yes"
10866else
10867 echo "$as_me: failed program was:" >&5
10868sed 's/^/| /' conftest.$ac_ext >&5
10869
10870eval "$as_ac_var=no"
10871fi
10872rm -f conftest.err conftest.$ac_objext \
10873 conftest$ac_exeext conftest.$ac_ext
10874fi
10875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10876echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10877if test `eval echo '${'$as_ac_var'}'` = yes; then
10878 cat >>confdefs.h <<_ACEOF
10879#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10880_ACEOF
63e5e3e0 10881
63e5e3e0
AG
10882fi
10883done
10884
10885# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10886# for constant arguments. Useless!
3ed8e5b6
AT
10887echo "$as_me:$LINENO: checking for working alloca.h" >&5
10888echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10889if test "${ac_cv_working_alloca_h+set}" = set; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10891else
10892 cat >conftest.$ac_ext <<_ACEOF
10893/* confdefs.h. */
10894_ACEOF
10895cat confdefs.h >>conftest.$ac_ext
10896cat >>conftest.$ac_ext <<_ACEOF
10897/* end confdefs.h. */
63e5e3e0 10898#include <alloca.h>
3ed8e5b6
AT
10899int
10900main ()
10901{
10902char *p = (char *) alloca (2 * sizeof (int));
10903 ;
10904 return 0;
10905}
10906_ACEOF
10907rm -f conftest.$ac_objext conftest$ac_exeext
10908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10909 (eval $ac_link) 2>conftest.er1
10910 ac_status=$?
10911 grep -v '^ *+' conftest.er1 >conftest.err
10912 rm -f conftest.er1
10913 cat conftest.err >&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } &&
88d8c771
AG
10916 { ac_try='test -z "$ac_c_werror_flag"
10917 || test ! -s conftest.err'
3ed8e5b6
AT
10918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10920 ac_status=$?
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; } &&
10923 { ac_try='test -s conftest$ac_exeext'
10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925 (eval $ac_try) 2>&5
10926 ac_status=$?
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; }; then
10929 ac_cv_working_alloca_h=yes
10930else
10931 echo "$as_me: failed program was:" >&5
10932sed 's/^/| /' conftest.$ac_ext >&5
10933
10934ac_cv_working_alloca_h=no
10935fi
10936rm -f conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext conftest.$ac_ext
10938fi
10939echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10940echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10941if test $ac_cv_working_alloca_h = yes; then
10942
10943cat >>confdefs.h <<\_ACEOF
63e5e3e0 10944#define HAVE_ALLOCA_H 1
3ed8e5b6 10945_ACEOF
63e5e3e0
AG
10946
10947fi
10948
3ed8e5b6
AT
10949echo "$as_me:$LINENO: checking for alloca" >&5
10950echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10951if test "${ac_cv_func_alloca_works+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 10953else
3ed8e5b6
AT
10954 cat >conftest.$ac_ext <<_ACEOF
10955/* confdefs.h. */
10956_ACEOF
10957cat confdefs.h >>conftest.$ac_ext
10958cat >>conftest.$ac_ext <<_ACEOF
10959/* end confdefs.h. */
63e5e3e0
AG
10960#ifdef __GNUC__
10961# define alloca __builtin_alloca
10962#else
10963# ifdef _MSC_VER
10964# include <malloc.h>
10965# define alloca _alloca
10966# else
10967# if HAVE_ALLOCA_H
10968# include <alloca.h>
10969# else
10970# ifdef _AIX
10971 #pragma alloca
10972# else
10973# ifndef alloca /* predefined by HP cc +Olibcalls */
10974char *alloca ();
10975# endif
10976# endif
10977# endif
10978# endif
10979#endif
10980
3ed8e5b6
AT
10981int
10982main ()
10983{
10984char *p = (char *) alloca (1);
10985 ;
10986 return 0;
10987}
10988_ACEOF
10989rm -f conftest.$ac_objext conftest$ac_exeext
10990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991 (eval $ac_link) 2>conftest.er1
10992 ac_status=$?
10993 grep -v '^ *+' conftest.er1 >conftest.err
10994 rm -f conftest.er1
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
88d8c771
AG
10998 { ac_try='test -z "$ac_c_werror_flag"
10999 || test ! -s conftest.err'
3ed8e5b6
AT
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; } &&
11005 { ac_try='test -s conftest$ac_exeext'
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; }; then
63e5e3e0
AG
11011 ac_cv_func_alloca_works=yes
11012else
3ed8e5b6
AT
11013 echo "$as_me: failed program was:" >&5
11014sed 's/^/| /' conftest.$ac_ext >&5
11015
11016ac_cv_func_alloca_works=no
63e5e3e0 11017fi
3ed8e5b6
AT
11018rm -f conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
63e5e3e0 11020fi
3ed8e5b6
AT
11021echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11022echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
63e5e3e0 11023
63e5e3e0 11024if test $ac_cv_func_alloca_works = yes; then
63e5e3e0 11025
3ed8e5b6
AT
11026cat >>confdefs.h <<\_ACEOF
11027#define HAVE_ALLOCA 1
11028_ACEOF
63e5e3e0 11029
3ed8e5b6 11030else
63e5e3e0 11031 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3ed8e5b6
AT
11032# that cause trouble. Some versions do not even contain alloca or
11033# contain a buggy version. If you still want to use their alloca,
11034# use ar to extract alloca.o from them instead of compiling alloca.c.
11035
11036ALLOCA=alloca.$ac_objext
11037
11038cat >>confdefs.h <<\_ACEOF
63e5e3e0 11039#define C_ALLOCA 1
3ed8e5b6 11040_ACEOF
63e5e3e0
AG
11041
11042
3ed8e5b6
AT
11043echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11044echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11045if test "${ac_cv_os_cray+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 11047else
3ed8e5b6
AT
11048 cat >conftest.$ac_ext <<_ACEOF
11049/* confdefs.h. */
11050_ACEOF
11051cat confdefs.h >>conftest.$ac_ext
11052cat >>conftest.$ac_ext <<_ACEOF
11053/* end confdefs.h. */
63e5e3e0
AG
11054#if defined(CRAY) && ! defined(CRAY2)
11055webecray
11056#else
11057wenotbecray
11058#endif
11059
3ed8e5b6 11060_ACEOF
63e5e3e0 11061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3ed8e5b6 11062 $EGREP "webecray" >/dev/null 2>&1; then
63e5e3e0
AG
11063 ac_cv_os_cray=yes
11064else
63e5e3e0
AG
11065 ac_cv_os_cray=no
11066fi
11067rm -f conftest*
11068
11069fi
3ed8e5b6
AT
11070echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11071echo "${ECHO_T}$ac_cv_os_cray" >&6
63e5e3e0 11072if test $ac_cv_os_cray = yes; then
3ed8e5b6
AT
11073 for ac_func in _getb67 GETB67 getb67; do
11074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11075echo "$as_me:$LINENO: checking for $ac_func" >&5
11076echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11077if eval "test \"\${$as_ac_var+set}\" = set"; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079else
11080 cat >conftest.$ac_ext <<_ACEOF
11081/* confdefs.h. */
11082_ACEOF
11083cat confdefs.h >>conftest.$ac_ext
11084cat >>conftest.$ac_ext <<_ACEOF
11085/* end confdefs.h. */
11086/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11088#define $ac_func innocuous_$ac_func
11089
63e5e3e0 11090/* System header to define __stub macros and hopefully few prototypes,
3ed8e5b6
AT
11091 which can conflict with char $ac_func (); below.
11092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11093 <limits.h> exists even on freestanding compilers. */
11094
11095#ifdef __STDC__
11096# include <limits.h>
11097#else
11098# include <assert.h>
11099#endif
63e5e3e0 11100
3ed8e5b6 11101#undef $ac_func
63e5e3e0 11102
3ed8e5b6
AT
11103/* Override any gcc2 internal prototype to avoid an error. */
11104#ifdef __cplusplus
11105extern "C"
11106{
11107#endif
11108/* We use char because int might match the return type of a gcc2
11109 builtin and then its argument prototype would still apply. */
11110char $ac_func ();
63e5e3e0
AG
11111/* The GNU C library defines this for functions which it implements
11112 to always fail with ENOSYS. Some functions are actually named
11113 something starting with __ and the normal name is an alias. */
11114#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11115choke me
11116#else
3ed8e5b6
AT
11117char (*f) () = $ac_func;
11118#endif
11119#ifdef __cplusplus
11120}
63e5e3e0
AG
11121#endif
11122
3ed8e5b6
AT
11123int
11124main ()
11125{
11126return f != $ac_func;
11127 ;
11128 return 0;
11129}
11130_ACEOF
11131rm -f conftest.$ac_objext conftest$ac_exeext
11132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11133 (eval $ac_link) 2>conftest.er1
11134 ac_status=$?
11135 grep -v '^ *+' conftest.er1 >conftest.err
11136 rm -f conftest.er1
11137 cat conftest.err >&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } &&
88d8c771
AG
11140 { ac_try='test -z "$ac_c_werror_flag"
11141 || test ! -s conftest.err'
3ed8e5b6
AT
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; } &&
11147 { ac_try='test -s conftest$ac_exeext'
11148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149 (eval $ac_try) 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; }; then
11153 eval "$as_ac_var=yes"
11154else
11155 echo "$as_me: failed program was:" >&5
11156sed 's/^/| /' conftest.$ac_ext >&5
11157
11158eval "$as_ac_var=no"
11159fi
11160rm -f conftest.err conftest.$ac_objext \
11161 conftest$ac_exeext conftest.$ac_ext
11162fi
11163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11164echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11165if test `eval echo '${'$as_ac_var'}'` = yes; then
11166
11167cat >>confdefs.h <<_ACEOF
63e5e3e0 11168#define CRAY_STACKSEG_END $ac_func
3ed8e5b6 11169_ACEOF
63e5e3e0 11170
3ed8e5b6 11171 break
63e5e3e0
AG
11172fi
11173
3ed8e5b6 11174 done
63e5e3e0
AG
11175fi
11176
3ed8e5b6
AT
11177echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11178echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11179if test "${ac_cv_c_stack_direction+set}" = set; then
11180 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0
AG
11181else
11182 if test "$cross_compiling" = yes; then
11183 ac_cv_c_stack_direction=0
11184else
3ed8e5b6
AT
11185 cat >conftest.$ac_ext <<_ACEOF
11186/* confdefs.h. */
11187_ACEOF
11188cat confdefs.h >>conftest.$ac_ext
11189cat >>conftest.$ac_ext <<_ACEOF
11190/* end confdefs.h. */
11191int
63e5e3e0
AG
11192find_stack_direction ()
11193{
11194 static char *addr = 0;
11195 auto char dummy;
11196 if (addr == 0)
11197 {
11198 addr = &dummy;
11199 return find_stack_direction ();
11200 }
11201 else
11202 return (&dummy > addr) ? 1 : -1;
11203}
3ed8e5b6
AT
11204
11205int
63e5e3e0
AG
11206main ()
11207{
3ed8e5b6 11208 exit (find_stack_direction () < 0);
63e5e3e0 11209}
3ed8e5b6
AT
11210_ACEOF
11211rm -f conftest$ac_exeext
11212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11213 (eval $ac_link) 2>&5
11214 ac_status=$?
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
63e5e3e0
AG
11222 ac_cv_c_stack_direction=1
11223else
3ed8e5b6
AT
11224 echo "$as_me: program exited with status $ac_status" >&5
11225echo "$as_me: failed program was:" >&5
11226sed 's/^/| /' conftest.$ac_ext >&5
11227
11228( exit $ac_status )
11229ac_cv_c_stack_direction=-1
63e5e3e0 11230fi
3ed8e5b6 11231rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63e5e3e0 11232fi
63e5e3e0 11233fi
3ed8e5b6
AT
11234echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11235echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
63e5e3e0 11236
3ed8e5b6 11237cat >>confdefs.h <<_ACEOF
63e5e3e0 11238#define STACK_DIRECTION $ac_cv_c_stack_direction
3ed8e5b6
AT
11239_ACEOF
11240
63e5e3e0
AG
11241
11242fi
11243
11244
a097ef55
KC
11245echo "$as_me:$LINENO: checking for double" >&5
11246echo $ECHO_N "checking for double... $ECHO_C" >&6
11247if test "${ac_cv_type_double+set}" = set; then
11248 echo $ECHO_N "(cached) $ECHO_C" >&6
11249else
11250 cat >conftest.$ac_ext <<_ACEOF
11251/* confdefs.h. */
11252_ACEOF
11253cat confdefs.h >>conftest.$ac_ext
11254cat >>conftest.$ac_ext <<_ACEOF
11255/* end confdefs.h. */
11256$ac_includes_default
11257int
11258main ()
11259{
11260if ((double *) 0)
11261 return 0;
11262if (sizeof (double))
11263 return 0;
11264 ;
11265 return 0;
11266}
11267_ACEOF
11268rm -f conftest.$ac_objext
11269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11270 (eval $ac_compile) 2>conftest.er1
11271 ac_status=$?
11272 grep -v '^ *+' conftest.er1 >conftest.err
11273 rm -f conftest.er1
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } &&
11277 { ac_try='test -z "$ac_c_werror_flag"
11278 || test ! -s conftest.err'
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest.$ac_objext'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 ac_cv_type_double=yes
11291else
11292 echo "$as_me: failed program was:" >&5
11293sed 's/^/| /' conftest.$ac_ext >&5
11294
11295ac_cv_type_double=no
11296fi
11297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11298fi
11299echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
11300echo "${ECHO_T}$ac_cv_type_double" >&6
11301
3ed8e5b6
AT
11302echo "$as_me:$LINENO: checking size of double" >&5
11303echo $ECHO_N "checking size of double... $ECHO_C" >&6
11304if test "${ac_cv_sizeof_double+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 11306else
a097ef55
KC
11307 if test "$ac_cv_type_double" = yes; then
11308 # The cast to unsigned long works around a bug in the HP C Compiler
11309 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11310 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11311 # This bug is HP SR number 8606223364.
11312 if test "$cross_compiling" = yes; then
11313 # Depending upon the size, compute the lo and hi bounds.
11314cat >conftest.$ac_ext <<_ACEOF
11315/* confdefs.h. */
11316_ACEOF
11317cat confdefs.h >>conftest.$ac_ext
11318cat >>conftest.$ac_ext <<_ACEOF
11319/* end confdefs.h. */
11320$ac_includes_default
11321int
11322main ()
11323{
11324static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
11325test_array [0] = 0
11326
11327 ;
11328 return 0;
11329}
11330_ACEOF
11331rm -f conftest.$ac_objext
11332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11333 (eval $ac_compile) 2>conftest.er1
11334 ac_status=$?
11335 grep -v '^ *+' conftest.er1 >conftest.err
11336 rm -f conftest.er1
11337 cat conftest.err >&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } &&
11340 { ac_try='test -z "$ac_c_werror_flag"
11341 || test ! -s conftest.err'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; } &&
11347 { ac_try='test -s conftest.$ac_objext'
11348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11350 ac_status=$?
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; }; then
11353 ac_lo=0 ac_mid=0
11354 while :; do
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. */
11361$ac_includes_default
11362int
11363main ()
11364{
11365static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11366test_array [0] = 0
11367
11368 ;
11369 return 0;
11370}
11371_ACEOF
11372rm -f conftest.$ac_objext
11373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11374 (eval $ac_compile) 2>conftest.er1
11375 ac_status=$?
11376 grep -v '^ *+' conftest.er1 >conftest.err
11377 rm -f conftest.er1
11378 cat conftest.err >&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } &&
11381 { ac_try='test -z "$ac_c_werror_flag"
11382 || test ! -s conftest.err'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; } &&
11388 { ac_try='test -s conftest.$ac_objext'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; }; then
11394 ac_hi=$ac_mid; break
11395else
11396 echo "$as_me: failed program was:" >&5
11397sed 's/^/| /' conftest.$ac_ext >&5
11398
11399ac_lo=`expr $ac_mid + 1`
11400 if test $ac_lo -le $ac_mid; then
11401 ac_lo= ac_hi=
11402 break
11403 fi
11404 ac_mid=`expr 2 '*' $ac_mid + 1`
11405fi
11406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11407 done
11408else
11409 echo "$as_me: failed program was:" >&5
11410sed 's/^/| /' conftest.$ac_ext >&5
11411
11412cat >conftest.$ac_ext <<_ACEOF
11413/* confdefs.h. */
11414_ACEOF
11415cat confdefs.h >>conftest.$ac_ext
11416cat >>conftest.$ac_ext <<_ACEOF
11417/* end confdefs.h. */
11418$ac_includes_default
11419int
11420main ()
11421{
11422static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
11423test_array [0] = 0
11424
11425 ;
11426 return 0;
11427}
11428_ACEOF
11429rm -f conftest.$ac_objext
11430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11431 (eval $ac_compile) 2>conftest.er1
11432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -z "$ac_c_werror_flag"
11439 || test ! -s conftest.err'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; } &&
11445 { ac_try='test -s conftest.$ac_objext'
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; }; then
11451 ac_hi=-1 ac_mid=-1
11452 while :; do
11453 cat >conftest.$ac_ext <<_ACEOF
11454/* confdefs.h. */
11455_ACEOF
11456cat confdefs.h >>conftest.$ac_ext
11457cat >>conftest.$ac_ext <<_ACEOF
11458/* end confdefs.h. */
11459$ac_includes_default
11460int
11461main ()
11462{
11463static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
11464test_array [0] = 0
11465
11466 ;
11467 return 0;
11468}
11469_ACEOF
11470rm -f conftest.$ac_objext
11471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11472 (eval $ac_compile) 2>conftest.er1
11473 ac_status=$?
11474 grep -v '^ *+' conftest.er1 >conftest.err
11475 rm -f conftest.er1
11476 cat conftest.err >&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } &&
11479 { ac_try='test -z "$ac_c_werror_flag"
11480 || test ! -s conftest.err'
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; } &&
11486 { ac_try='test -s conftest.$ac_objext'
11487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488 (eval $ac_try) 2>&5
11489 ac_status=$?
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 ac_lo=$ac_mid; break
11493else
11494 echo "$as_me: failed program was:" >&5
11495sed 's/^/| /' conftest.$ac_ext >&5
11496
11497ac_hi=`expr '(' $ac_mid ')' - 1`
11498 if test $ac_mid -le $ac_hi; then
11499 ac_lo= ac_hi=
11500 break
11501 fi
11502 ac_mid=`expr 2 '*' $ac_mid`
11503fi
11504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11505 done
11506else
11507 echo "$as_me: failed program was:" >&5
11508sed 's/^/| /' conftest.$ac_ext >&5
11509
11510ac_lo= ac_hi=
11511fi
11512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11513fi
11514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11515# Binary search between lo and hi bounds.
11516while test "x$ac_lo" != "x$ac_hi"; do
11517 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11518 cat >conftest.$ac_ext <<_ACEOF
11519/* confdefs.h. */
11520_ACEOF
11521cat confdefs.h >>conftest.$ac_ext
11522cat >>conftest.$ac_ext <<_ACEOF
11523/* end confdefs.h. */
11524$ac_includes_default
11525int
11526main ()
11527{
11528static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11529test_array [0] = 0
11530
11531 ;
11532 return 0;
11533}
11534_ACEOF
11535rm -f conftest.$ac_objext
11536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11537 (eval $ac_compile) 2>conftest.er1
11538 ac_status=$?
11539 grep -v '^ *+' conftest.er1 >conftest.err
11540 rm -f conftest.er1
11541 cat conftest.err >&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } &&
11544 { ac_try='test -z "$ac_c_werror_flag"
11545 || test ! -s conftest.err'
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; } &&
11551 { ac_try='test -s conftest.$ac_objext'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11554 ac_status=$?
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11557 ac_hi=$ac_mid
11558else
11559 echo "$as_me: failed program was:" >&5
11560sed 's/^/| /' conftest.$ac_ext >&5
11561
11562ac_lo=`expr '(' $ac_mid ')' + 1`
11563fi
11564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11565done
11566case $ac_lo in
11567?*) ac_cv_sizeof_double=$ac_lo;;
11568'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11569See \`config.log' for more details." >&5
11570echo "$as_me: error: cannot compute sizeof (double), 77
11571See \`config.log' for more details." >&2;}
11572 { (exit 1); exit 1; }; } ;;
11573esac
11574else
11575 if test "$cross_compiling" = yes; then
11576 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11577See \`config.log' for more details." >&5
11578echo "$as_me: error: cannot run test program while cross compiling
11579See \`config.log' for more details." >&2;}
11580 { (exit 1); exit 1; }; }
11581else
11582 cat >conftest.$ac_ext <<_ACEOF
11583/* confdefs.h. */
11584_ACEOF
11585cat confdefs.h >>conftest.$ac_ext
11586cat >>conftest.$ac_ext <<_ACEOF
11587/* end confdefs.h. */
11588$ac_includes_default
11589long longval () { return (long) (sizeof (double)); }
11590unsigned long ulongval () { return (long) (sizeof (double)); }
11591#include <stdio.h>
11592#include <stdlib.h>
11593int
11594main ()
11595{
11596
11597 FILE *f = fopen ("conftest.val", "w");
11598 if (! f)
11599 exit (1);
11600 if (((long) (sizeof (double))) < 0)
11601 {
11602 long i = longval ();
11603 if (i != ((long) (sizeof (double))))
11604 exit (1);
11605 fprintf (f, "%ld\n", i);
11606 }
11607 else
11608 {
11609 unsigned long i = ulongval ();
11610 if (i != ((long) (sizeof (double))))
11611 exit (1);
11612 fprintf (f, "%lu\n", i);
11613 }
11614 exit (ferror (f) || fclose (f) != 0);
11615
11616 ;
11617 return 0;
11618}
11619_ACEOF
11620rm -f conftest$ac_exeext
11621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11622 (eval $ac_link) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 ac_cv_sizeof_double=`cat conftest.val`
11632else
11633 echo "$as_me: program exited with status $ac_status" >&5
11634echo "$as_me: failed program was:" >&5
11635sed 's/^/| /' conftest.$ac_ext >&5
11636
11637( exit $ac_status )
11638{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11639See \`config.log' for more details." >&5
11640echo "$as_me: error: cannot compute sizeof (double), 77
11641See \`config.log' for more details." >&2;}
11642 { (exit 1); exit 1; }; }
11643fi
11644rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11645fi
11646fi
11647rm -f conftest.val
11648else
11649 ac_cv_sizeof_double=0
11650fi
11651fi
11652echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
11653echo "${ECHO_T}$ac_cv_sizeof_double" >&6
11654cat >>confdefs.h <<_ACEOF
11655#define SIZEOF_DOUBLE $ac_cv_sizeof_double
11656_ACEOF
11657
11658
11659echo "$as_me:$LINENO: checking for long double" >&5
11660echo $ECHO_N "checking for long double... $ECHO_C" >&6
11661if test "${ac_cv_type_long_double+set}" = set; then
11662 echo $ECHO_N "(cached) $ECHO_C" >&6
11663else
11664 cat >conftest.$ac_ext <<_ACEOF
11665/* confdefs.h. */
11666_ACEOF
11667cat confdefs.h >>conftest.$ac_ext
11668cat >>conftest.$ac_ext <<_ACEOF
11669/* end confdefs.h. */
11670$ac_includes_default
11671int
11672main ()
11673{
11674if ((long double *) 0)
11675 return 0;
11676if (sizeof (long double))
11677 return 0;
11678 ;
11679 return 0;
11680}
11681_ACEOF
11682rm -f conftest.$ac_objext
11683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11684 (eval $ac_compile) 2>conftest.er1
11685 ac_status=$?
11686 grep -v '^ *+' conftest.er1 >conftest.err
11687 rm -f conftest.er1
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try='test -z "$ac_c_werror_flag"
11692 || test ! -s conftest.err'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11695 ac_status=$?
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try='test -s conftest.$ac_objext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 ac_cv_type_long_double=yes
11705else
11706 echo "$as_me: failed program was:" >&5
11707sed 's/^/| /' conftest.$ac_ext >&5
11708
11709ac_cv_type_long_double=no
11710fi
11711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11712fi
11713echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11714echo "${ECHO_T}$ac_cv_type_long_double" >&6
11715
11716echo "$as_me:$LINENO: checking size of long double" >&5
11717echo $ECHO_N "checking size of long double... $ECHO_C" >&6
11718if test "${ac_cv_sizeof_long_double+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720else
11721 if test "$ac_cv_type_long_double" = yes; then
11722 # The cast to unsigned long works around a bug in the HP C Compiler
11723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11725 # This bug is HP SR number 8606223364.
11726 if test "$cross_compiling" = yes; then
11727 # Depending upon the size, compute the lo and hi bounds.
11728cat >conftest.$ac_ext <<_ACEOF
11729/* confdefs.h. */
11730_ACEOF
11731cat confdefs.h >>conftest.$ac_ext
11732cat >>conftest.$ac_ext <<_ACEOF
11733/* end confdefs.h. */
11734$ac_includes_default
11735int
11736main ()
11737{
11738static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
11739test_array [0] = 0
11740
11741 ;
11742 return 0;
11743}
11744_ACEOF
11745rm -f conftest.$ac_objext
11746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11747 (eval $ac_compile) 2>conftest.er1
11748 ac_status=$?
11749 grep -v '^ *+' conftest.er1 >conftest.err
11750 rm -f conftest.er1
11751 cat conftest.err >&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } &&
11754 { ac_try='test -z "$ac_c_werror_flag"
11755 || test ! -s conftest.err'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; } &&
11761 { ac_try='test -s conftest.$ac_objext'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
11767 ac_lo=0 ac_mid=0
11768 while :; do
11769 cat >conftest.$ac_ext <<_ACEOF
11770/* confdefs.h. */
11771_ACEOF
11772cat confdefs.h >>conftest.$ac_ext
11773cat >>conftest.$ac_ext <<_ACEOF
11774/* end confdefs.h. */
11775$ac_includes_default
11776int
11777main ()
11778{
11779static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11780test_array [0] = 0
11781
11782 ;
11783 return 0;
11784}
11785_ACEOF
11786rm -f conftest.$ac_objext
11787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11788 (eval $ac_compile) 2>conftest.er1
11789 ac_status=$?
11790 grep -v '^ *+' conftest.er1 >conftest.err
11791 rm -f conftest.er1
11792 cat conftest.err >&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } &&
11795 { ac_try='test -z "$ac_c_werror_flag"
11796 || test ! -s conftest.err'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try='test -s conftest.$ac_objext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_hi=$ac_mid; break
11809else
11810 echo "$as_me: failed program was:" >&5
11811sed 's/^/| /' conftest.$ac_ext >&5
11812
11813ac_lo=`expr $ac_mid + 1`
11814 if test $ac_lo -le $ac_mid; then
11815 ac_lo= ac_hi=
11816 break
11817 fi
11818 ac_mid=`expr 2 '*' $ac_mid + 1`
11819fi
11820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11821 done
11822else
11823 echo "$as_me: failed program was:" >&5
11824sed 's/^/| /' conftest.$ac_ext >&5
11825
11826cat >conftest.$ac_ext <<_ACEOF
3ed8e5b6
AT
11827/* confdefs.h. */
11828_ACEOF
11829cat confdefs.h >>conftest.$ac_ext
11830cat >>conftest.$ac_ext <<_ACEOF
11831/* end confdefs.h. */
a097ef55
KC
11832$ac_includes_default
11833int
11834main ()
11835{
11836static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
11837test_array [0] = 0
e2f2e70a 11838
a097ef55
KC
11839 ;
11840 return 0;
11841}
11842_ACEOF
11843rm -f conftest.$ac_objext
11844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11845 (eval $ac_compile) 2>conftest.er1
11846 ac_status=$?
11847 grep -v '^ *+' conftest.er1 >conftest.err
11848 rm -f conftest.er1
11849 cat conftest.err >&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } &&
11852 { ac_try='test -z "$ac_c_werror_flag"
11853 || test ! -s conftest.err'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; } &&
11859 { ac_try='test -s conftest.$ac_objext'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 ac_hi=-1 ac_mid=-1
11866 while :; do
11867 cat >conftest.$ac_ext <<_ACEOF
11868/* confdefs.h. */
11869_ACEOF
11870cat confdefs.h >>conftest.$ac_ext
11871cat >>conftest.$ac_ext <<_ACEOF
11872/* end confdefs.h. */
11873$ac_includes_default
3ed8e5b6
AT
11874int
11875main ()
11876{
a097ef55
KC
11877static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
11878test_array [0] = 0
11879
3ed8e5b6
AT
11880 ;
11881 return 0;
11882}
11883_ACEOF
11884rm -f conftest.$ac_objext
11885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11886 (eval $ac_compile) 2>conftest.er1
11887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
88d8c771
AG
11893 { ac_try='test -z "$ac_c_werror_flag"
11894 || test ! -s conftest.err'
3ed8e5b6
AT
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; } &&
11900 { ac_try='test -s conftest.$ac_objext'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; }; then
a097ef55 11906 ac_lo=$ac_mid; break
63e5e3e0 11907else
3ed8e5b6
AT
11908 echo "$as_me: failed program was:" >&5
11909sed 's/^/| /' conftest.$ac_ext >&5
11910
a097ef55
KC
11911ac_hi=`expr '(' $ac_mid ')' - 1`
11912 if test $ac_mid -le $ac_hi; then
11913 ac_lo= ac_hi=
11914 break
11915 fi
11916 ac_mid=`expr 2 '*' $ac_mid`
63e5e3e0 11917fi
3ed8e5b6 11918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a097ef55
KC
11919 done
11920else
11921 echo "$as_me: failed program was:" >&5
11922sed 's/^/| /' conftest.$ac_ext >&5
e2f2e70a 11923
a097ef55 11924ac_lo= ac_hi=
63e5e3e0 11925fi
a097ef55 11926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0 11927fi
a097ef55
KC
11928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11929# Binary search between lo and hi bounds.
11930while test "x$ac_lo" != "x$ac_hi"; do
11931 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3ed8e5b6
AT
11932 cat >conftest.$ac_ext <<_ACEOF
11933/* confdefs.h. */
11934_ACEOF
11935cat confdefs.h >>conftest.$ac_ext
11936cat >>conftest.$ac_ext <<_ACEOF
11937/* end confdefs.h. */
a097ef55 11938$ac_includes_default
3ed8e5b6
AT
11939int
11940main ()
11941{
a097ef55
KC
11942static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11943test_array [0] = 0
11944
3ed8e5b6
AT
11945 ;
11946 return 0;
11947}
11948_ACEOF
11949rm -f conftest.$ac_objext
11950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11951 (eval $ac_compile) 2>conftest.er1
11952 ac_status=$?
11953 grep -v '^ *+' conftest.er1 >conftest.err
11954 rm -f conftest.er1
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } &&
88d8c771
AG
11958 { ac_try='test -z "$ac_c_werror_flag"
11959 || test ! -s conftest.err'
3ed8e5b6
AT
11960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11962 ac_status=$?
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; } &&
11965 { ac_try='test -s conftest.$ac_objext'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; }; then
a097ef55 11971 ac_hi=$ac_mid
63e5e3e0 11972else
3ed8e5b6
AT
11973 echo "$as_me: failed program was:" >&5
11974sed 's/^/| /' conftest.$ac_ext >&5
11975
a097ef55 11976ac_lo=`expr '(' $ac_mid ')' + 1`
63e5e3e0 11977fi
3ed8e5b6 11978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e2f2e70a 11979done
a097ef55
KC
11980case $ac_lo in
11981?*) ac_cv_sizeof_long_double=$ac_lo;;
11982'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
11983See \`config.log' for more details." >&5
11984echo "$as_me: error: cannot compute sizeof (long double), 77
11985See \`config.log' for more details." >&2;}
11986 { (exit 1); exit 1; }; } ;;
11987esac
11988else
11989 if test "$cross_compiling" = yes; then
11990 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11991See \`config.log' for more details." >&5
11992echo "$as_me: error: cannot run test program while cross compiling
11993See \`config.log' for more details." >&2;}
11994 { (exit 1); exit 1; }; }
11995else
11996 cat >conftest.$ac_ext <<_ACEOF
11997/* confdefs.h. */
11998_ACEOF
11999cat confdefs.h >>conftest.$ac_ext
12000cat >>conftest.$ac_ext <<_ACEOF
12001/* end confdefs.h. */
12002$ac_includes_default
12003long longval () { return (long) (sizeof (long double)); }
12004unsigned long ulongval () { return (long) (sizeof (long double)); }
12005#include <stdio.h>
12006#include <stdlib.h>
12007int
12008main ()
12009{
e2f2e70a 12010
a097ef55
KC
12011 FILE *f = fopen ("conftest.val", "w");
12012 if (! f)
12013 exit (1);
12014 if (((long) (sizeof (long double))) < 0)
12015 {
12016 long i = longval ();
12017 if (i != ((long) (sizeof (long double))))
12018 exit (1);
12019 fprintf (f, "%ld\n", i);
12020 }
12021 else
12022 {
12023 unsigned long i = ulongval ();
12024 if (i != ((long) (sizeof (long double))))
12025 exit (1);
12026 fprintf (f, "%lu\n", i);
12027 }
12028 exit (ferror (f) || fclose (f) != 0);
12029
12030 ;
12031 return 0;
12032}
12033_ACEOF
12034rm -f conftest$ac_exeext
12035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12036 (eval $ac_link) 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 ac_cv_sizeof_long_double=`cat conftest.val`
12046else
12047 echo "$as_me: program exited with status $ac_status" >&5
12048echo "$as_me: failed program was:" >&5
12049sed 's/^/| /' conftest.$ac_ext >&5
63e5e3e0 12050
a097ef55
KC
12051( exit $ac_status )
12052{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
12053See \`config.log' for more details." >&5
12054echo "$as_me: error: cannot compute sizeof (long double), 77
12055See \`config.log' for more details." >&2;}
3ed8e5b6 12056 { (exit 1); exit 1; }; }
63e5e3e0 12057fi
a097ef55
KC
12058rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12059fi
12060fi
12061rm -f conftest.val
12062else
12063 ac_cv_sizeof_long_double=0
12064fi
12065fi
3ed8e5b6
AT
12066echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12067echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
3ed8e5b6 12068cat >>confdefs.h <<_ACEOF
63e5e3e0 12069#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3ed8e5b6 12070_ACEOF
63e5e3e0
AG
12071
12072
12073
1450eb7a 12074# Also AC_SUBST this variable for ffi.h.
bf8da5fc
RH
12075if test -z "$HAVE_LONG_DOUBLE"; then
12076 HAVE_LONG_DOUBLE=0
12077 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12078 if test $ac_cv_sizeof_long_double != 0; then
12079 HAVE_LONG_DOUBLE=1
3ed8e5b6
AT
12080
12081cat >>confdefs.h <<\_ACEOF
1450eb7a 12082#define HAVE_LONG_DOUBLE 1
3ed8e5b6 12083_ACEOF
63e5e3e0 12084
bf8da5fc 12085 fi
1450eb7a 12086 fi
63e5e3e0 12087fi
63e5e3e0
AG
12088
12089
3ed8e5b6
AT
12090echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12091echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12092if test "${ac_cv_c_bigendian+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 12094else
a097ef55 12095 # See if sys/param.h defines the BYTE_ORDER macro.
3ed8e5b6
AT
12096cat >conftest.$ac_ext <<_ACEOF
12097/* confdefs.h. */
12098_ACEOF
12099cat confdefs.h >>conftest.$ac_ext
12100cat >>conftest.$ac_ext <<_ACEOF
12101/* end confdefs.h. */
63e5e3e0
AG
12102#include <sys/types.h>
12103#include <sys/param.h>
a097ef55 12104
3ed8e5b6
AT
12105int
12106main ()
12107{
63e5e3e0
AG
12108#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12109 bogus endian macros
12110#endif
a097ef55 12111
3ed8e5b6
AT
12112 ;
12113 return 0;
12114}
12115_ACEOF
12116rm -f conftest.$ac_objext
12117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12118 (eval $ac_compile) 2>conftest.er1
12119 ac_status=$?
12120 grep -v '^ *+' conftest.er1 >conftest.err
12121 rm -f conftest.er1
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } &&
88d8c771
AG
12125 { ac_try='test -z "$ac_c_werror_flag"
12126 || test ! -s conftest.err'
3ed8e5b6
AT
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; } &&
12132 { ac_try='test -s conftest.$ac_objext'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; }; then
63e5e3e0 12138 # It does; now see whether it defined to BIG_ENDIAN or not.
3ed8e5b6
AT
12139cat >conftest.$ac_ext <<_ACEOF
12140/* confdefs.h. */
12141_ACEOF
12142cat confdefs.h >>conftest.$ac_ext
12143cat >>conftest.$ac_ext <<_ACEOF
12144/* end confdefs.h. */
63e5e3e0
AG
12145#include <sys/types.h>
12146#include <sys/param.h>
a097ef55 12147
3ed8e5b6
AT
12148int
12149main ()
12150{
63e5e3e0
AG
12151#if BYTE_ORDER != BIG_ENDIAN
12152 not big endian
12153#endif
a097ef55 12154
3ed8e5b6
AT
12155 ;
12156 return 0;
12157}
12158_ACEOF
12159rm -f conftest.$ac_objext
12160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12161 (eval $ac_compile) 2>conftest.er1
12162 ac_status=$?
12163 grep -v '^ *+' conftest.er1 >conftest.err
12164 rm -f conftest.er1
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
88d8c771
AG
12168 { ac_try='test -z "$ac_c_werror_flag"
12169 || test ! -s conftest.err'
3ed8e5b6
AT
12170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12172 ac_status=$?
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; } &&
12175 { ac_try='test -s conftest.$ac_objext'
12176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177 (eval $ac_try) 2>&5
12178 ac_status=$?
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; }; then
63e5e3e0
AG
12181 ac_cv_c_bigendian=yes
12182else
3ed8e5b6
AT
12183 echo "$as_me: failed program was:" >&5
12184sed 's/^/| /' conftest.$ac_ext >&5
12185
12186ac_cv_c_bigendian=no
63e5e3e0 12187fi
3ed8e5b6 12188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0 12189else
3ed8e5b6
AT
12190 echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
12192
a097ef55
KC
12193# It does not; compile a test program.
12194if test "$cross_compiling" = yes; then
12195 # try to guess the endianness by grepping values into an object file
12196 ac_cv_c_bigendian=unknown
12197 cat >conftest.$ac_ext <<_ACEOF
12198/* confdefs.h. */
12199_ACEOF
12200cat confdefs.h >>conftest.$ac_ext
12201cat >>conftest.$ac_ext <<_ACEOF
12202/* end confdefs.h. */
12203short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12204short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12205void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12206short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12207short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12208void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12209int
12210main ()
12211{
12212 _ascii (); _ebcdic ();
12213 ;
12214 return 0;
12215}
12216_ACEOF
12217rm -f conftest.$ac_objext
12218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12219 (eval $ac_compile) 2>conftest.er1
12220 ac_status=$?
12221 grep -v '^ *+' conftest.er1 >conftest.err
12222 rm -f conftest.er1
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } &&
12226 { ac_try='test -z "$ac_c_werror_flag"
12227 || test ! -s conftest.err'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } &&
12233 { ac_try='test -s conftest.$ac_objext'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12240 ac_cv_c_bigendian=yes
12241fi
12242if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12243 if test "$ac_cv_c_bigendian" = unknown; then
12244 ac_cv_c_bigendian=no
12245 else
12246 # finding both strings is unlikely to happen, but who knows?
12247 ac_cv_c_bigendian=unknown
12248 fi
12249fi
12250else
12251 echo "$as_me: failed program was:" >&5
12252sed 's/^/| /' conftest.$ac_ext >&5
12253
63e5e3e0 12254fi
3ed8e5b6 12255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6
AT
12256else
12257 cat >conftest.$ac_ext <<_ACEOF
12258/* confdefs.h. */
12259_ACEOF
12260cat confdefs.h >>conftest.$ac_ext
12261cat >>conftest.$ac_ext <<_ACEOF
12262/* end confdefs.h. */
a097ef55
KC
12263int
12264main ()
12265{
63e5e3e0
AG
12266 /* Are we little or big endian? From Harbison&Steele. */
12267 union
12268 {
12269 long l;
12270 char c[sizeof (long)];
12271 } u;
12272 u.l = 1;
12273 exit (u.c[sizeof (long) - 1] == 1);
12274}
3ed8e5b6
AT
12275_ACEOF
12276rm -f conftest$ac_exeext
12277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12278 (eval $ac_link) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
63e5e3e0
AG
12287 ac_cv_c_bigendian=no
12288else
3ed8e5b6
AT
12289 echo "$as_me: program exited with status $ac_status" >&5
12290echo "$as_me: failed program was:" >&5
12291sed 's/^/| /' conftest.$ac_ext >&5
12292
12293( exit $ac_status )
12294ac_cv_c_bigendian=yes
63e5e3e0 12295fi
3ed8e5b6 12296rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63e5e3e0 12297fi
63e5e3e0 12298fi
a097ef55 12299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0 12300fi
3ed8e5b6
AT
12301echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12302echo "${ECHO_T}$ac_cv_c_bigendian" >&6
a097ef55
KC
12303case $ac_cv_c_bigendian in
12304 yes)
3ed8e5b6
AT
12305
12306cat >>confdefs.h <<\_ACEOF
63e5e3e0 12307#define WORDS_BIGENDIAN 1
3ed8e5b6 12308_ACEOF
a097ef55
KC
12309 ;;
12310 no)
12311 ;;
12312 *)
12313 { { echo "$as_me:$LINENO: error: unknown endianness
12314presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12315echo "$as_me: error: unknown endianness
12316presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12317 { (exit 1); exit 1; }; } ;;
12318esac
63e5e3e0
AG
12319
12320
e6fbf387
RZ
12321echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
12322echo $ECHO_N "checking assembler .cfi pseudo-op support... $ECHO_C" >&6
12323if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12325else
12326
12327 libffi_cv_as_cfi_pseudo_op=unknown
12328 cat >conftest.$ac_ext <<_ACEOF
12329/* confdefs.h. */
12330_ACEOF
12331cat confdefs.h >>conftest.$ac_ext
12332cat >>conftest.$ac_ext <<_ACEOF
12333/* end confdefs.h. */
12334asm (".cfi_startproc\n\t.cfi_endproc");
12335int
12336main ()
12337{
12338
12339 ;
12340 return 0;
12341}
12342_ACEOF
12343rm -f conftest.$ac_objext
12344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12345 (eval $ac_compile) 2>conftest.er1
12346 ac_status=$?
12347 grep -v '^ *+' conftest.er1 >conftest.err
12348 rm -f conftest.er1
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } &&
12352 { ac_try='test -z "$ac_c_werror_flag"
12353 || test ! -s conftest.err'
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12356 ac_status=$?
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; } &&
12359 { ac_try='test -s conftest.$ac_objext'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
12365 libffi_cv_as_cfi_pseudo_op=yes
12366else
12367 echo "$as_me: failed program was:" >&5
12368sed 's/^/| /' conftest.$ac_ext >&5
12369
12370libffi_cv_as_cfi_pseudo_op=no
12371fi
12372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12373
12374fi
12375echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
12376echo "${ECHO_T}$libffi_cv_as_cfi_pseudo_op" >&6
12377if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
12378
12379cat >>confdefs.h <<\_ACEOF
12380#define HAVE_AS_CFI_PSEUDO_OP 1
12381_ACEOF
12382
12383fi
12384
189ab118 12385if test x$TARGET = xSPARC; then
3ed8e5b6
AT
12386 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
12387echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
12388if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
5d84cf0b 12390else
3ed8e5b6 12391
5d84cf0b
JJ
12392 save_CFLAGS="$CFLAGS"
12393 save_LDFLAGS="$LDFLAGS"
12394 CFLAGS="$CFLAGS -fpic"
12395 LDFLAGS="$LDFLAGS -shared"
3ed8e5b6
AT
12396 cat >conftest.$ac_ext <<_ACEOF
12397/* confdefs.h. */
12398_ACEOF
12399cat confdefs.h >>conftest.$ac_ext
12400cat >>conftest.$ac_ext <<_ACEOF
12401/* end confdefs.h. */
5d84cf0b 12402asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
3ed8e5b6
AT
12403int
12404main ()
12405{
5d84cf0b 12406
3ed8e5b6
AT
12407 ;
12408 return 0;
12409}
12410_ACEOF
12411rm -f conftest.$ac_objext conftest$ac_exeext
12412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12413 (eval $ac_link) 2>conftest.er1
12414 ac_status=$?
12415 grep -v '^ *+' conftest.er1 >conftest.err
12416 rm -f conftest.er1
12417 cat conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } &&
88d8c771
AG
12420 { ac_try='test -z "$ac_c_werror_flag"
12421 || test ! -s conftest.err'
3ed8e5b6
AT
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; } &&
12427 { ac_try='test -s conftest$ac_exeext'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12430 ac_status=$?
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
5d84cf0b
JJ
12433 libffi_cv_as_sparc_ua_pcrel=yes
12434else
3ed8e5b6
AT
12435 echo "$as_me: failed program was:" >&5
12436sed 's/^/| /' conftest.$ac_ext >&5
12437
12438libffi_cv_as_sparc_ua_pcrel=no
5d84cf0b 12439fi
3ed8e5b6
AT
12440rm -f conftest.err conftest.$ac_objext \
12441 conftest$ac_exeext conftest.$ac_ext
5d84cf0b
JJ
12442 CFLAGS="$save_CFLAGS"
12443 LDFLAGS="$save_LDFLAGS"
12444fi
3ed8e5b6
AT
12445echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12446echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
5d84cf0b 12447 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
3ed8e5b6
AT
12448
12449cat >>confdefs.h <<\_ACEOF
5d84cf0b 12450#define HAVE_AS_SPARC_UA_PCREL 1
3ed8e5b6 12451_ACEOF
bd19c9f4
JS
12452
12453 fi
12454
3ed8e5b6
AT
12455 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
12456echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
12457if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
bd19c9f4 12459else
3ed8e5b6 12460
bd19c9f4
JS
12461 libffi_cv_as_register_pseudo_op=unknown
12462 # Check if we have .register
3ed8e5b6
AT
12463 cat >conftest.$ac_ext <<_ACEOF
12464/* confdefs.h. */
12465_ACEOF
12466cat confdefs.h >>conftest.$ac_ext
12467cat >>conftest.$ac_ext <<_ACEOF
12468/* end confdefs.h. */
bd19c9f4 12469asm (".register %g2, #scratch");
3ed8e5b6
AT
12470int
12471main ()
12472{
bd19c9f4 12473
3ed8e5b6
AT
12474 ;
12475 return 0;
12476}
12477_ACEOF
12478rm -f conftest.$ac_objext
12479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12480 (eval $ac_compile) 2>conftest.er1
12481 ac_status=$?
12482 grep -v '^ *+' conftest.er1 >conftest.err
12483 rm -f conftest.er1
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } &&
88d8c771
AG
12487 { ac_try='test -z "$ac_c_werror_flag"
12488 || test ! -s conftest.err'
3ed8e5b6
AT
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; } &&
12494 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
bd19c9f4
JS
12500 libffi_cv_as_register_pseudo_op=yes
12501else
3ed8e5b6
AT
12502 echo "$as_me: failed program was:" >&5
12503sed 's/^/| /' conftest.$ac_ext >&5
12504
12505libffi_cv_as_register_pseudo_op=no
bd19c9f4 12506fi
3ed8e5b6 12507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bd19c9f4 12508
3ed8e5b6
AT
12509fi
12510echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
12511echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
bd19c9f4 12512 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
3ed8e5b6
AT
12513
12514cat >>confdefs.h <<\_ACEOF
bd19c9f4 12515#define HAVE_AS_REGISTER_PSEUDO_OP 1
3ed8e5b6 12516_ACEOF
5d84cf0b
JJ
12517
12518 fi
12519fi
12520
3ed8e5b6
AT
12521echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
12522echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
12523if test "${libffi_cv_ro_eh_frame+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
a733b15e 12525else
3ed8e5b6 12526
a733b15e
JJ
12527 libffi_cv_ro_eh_frame=no
12528 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12529 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12530 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12531 libffi_cv_ro_eh_frame=yes
12532 elif grep '.section.*eh_frame.*#alloc' conftest.c \
12533 | grep -v '#write' > /dev/null; then
12534 libffi_cv_ro_eh_frame=yes
12535 fi
12536 fi
12537 rm -f conftest.*
a733b15e 12538
3ed8e5b6
AT
12539fi
12540echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
12541echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
a733b15e 12542if test "x$libffi_cv_ro_eh_frame" = xyes; then
3ed8e5b6
AT
12543
12544cat >>confdefs.h <<\_ACEOF
a733b15e 12545#define HAVE_RO_EH_FRAME 1
3ed8e5b6 12546_ACEOF
1450eb7a 12547
3ed8e5b6
AT
12548
12549cat >>confdefs.h <<\_ACEOF
1450eb7a 12550#define EH_FRAME_FLAGS "a"
3ed8e5b6 12551_ACEOF
1450eb7a
AT
12552
12553else
3ed8e5b6
AT
12554
12555cat >>confdefs.h <<\_ACEOF
1450eb7a 12556#define EH_FRAME_FLAGS "aw"
3ed8e5b6 12557_ACEOF
a733b15e
JJ
12558
12559fi
12560
8a42356f
JJ
12561echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
12562echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6
12563if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12565else
12566
12567 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
12568 libffi_cv_hidden_visibility_attribute=no
12569 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; }; then
12575 if grep '\.hidden.*foo' conftest.s >/dev/null; then
12576 libffi_cv_hidden_visibility_attribute=yes
12577 fi
12578 fi
12579 rm -f conftest.*
12580
12581fi
12582echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
12583echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6
12584if test $libffi_cv_hidden_visibility_attribute = yes; then
12585
12586cat >>confdefs.h <<\_ACEOF
12587#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
12588_ACEOF
12589
12590fi
12591
12592
12593
12594
63e5e3e0
AG
12595
12596
12597
12598
12599
12600# Check whether --enable-debug or --disable-debug was given.
12601if test "${enable_debug+set}" = set; then
12602 enableval="$enable_debug"
7d45b968 12603 if test "$enable_debug" = "yes"; then
3ed8e5b6
AT
12604
12605cat >>confdefs.h <<\_ACEOF
63e5e3e0 12606#define FFI_DEBUG 1
3ed8e5b6
AT
12607_ACEOF
12608
12609 fi
12610fi;
12611
12612# Check whether --enable-structs or --disable-structs was given.
12613if test "${enable_structs+set}" = set; then
12614 enableval="$enable_structs"
12615 if test "$enable_structs" = "no"; then
12616
12617cat >>confdefs.h <<\_ACEOF
12618#define FFI_NO_STRUCTS 1
12619_ACEOF
12620
12621 fi
12622fi;
12623
12624# Check whether --enable-raw-api or --disable-raw-api was given.
12625if test "${enable_raw_api+set}" = set; then
12626 enableval="$enable_raw_api"
12627 if test "$enable_raw_api" = "no"; then
12628
12629cat >>confdefs.h <<\_ACEOF
12630#define FFI_NO_RAW_API 1
12631_ACEOF
12632
12633 fi
12634fi;
12635
12636# Check whether --enable-purify-safety or --disable-purify-safety was given.
12637if test "${enable_purify_safety+set}" = set; then
12638 enableval="$enable_purify_safety"
12639 if test "$enable_purify_safety" = "yes"; then
12640
12641cat >>confdefs.h <<\_ACEOF
12642#define USING_PURIFY 1
12643_ACEOF
12644
12645 fi
12646fi;
12647
12648if test -n "$with_cross_host" &&
12649 test x"$with_cross_host" != x"no"; then
12650 toolexecdir='$(exec_prefix)/$(target_alias)'
12651 toolexeclibdir='$(toolexecdir)/lib'
12652else
12653 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12654 toolexeclibdir='$(libdir)'
12655fi
12656multi_os_directory=`$CC -print-multi-os-directory`
12657case $multi_os_directory in
12658 .) ;; # Avoid trailing /.
12659 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12660esac
12661
12662
12663
3ed8e5b6
AT
12664if test "${multilib}" = "yes"; then
12665 multilib_arg="--enable-multilib"
12666else
12667 multilib_arg=
12668fi
12669
12670 ac_config_commands="$ac_config_commands include"
12671
12672 ac_config_commands="$ac_config_commands src"
12673
12674
12675 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
12676
12677
12678 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
12679
12680
12681cat >confcache <<\_ACEOF
12682# This file is a shell script that caches the results of configure
12683# tests run on this system so they can be shared between configure
12684# scripts and configure runs, see configure's option --config-cache.
12685# It is not useful on other systems. If it contains results you don't
12686# want to keep, you may remove or edit it.
12687#
12688# config.status only pays attention to the cache file if you give it
12689# the --recheck option to rerun configure.
12690#
12691# `ac_cv_env_foo' variables (set or unset) will be overridden when
12692# loading this file, other *unset* `ac_cv_foo' will be assigned the
12693# following values.
12694
12695_ACEOF
12696
12697# The following way of writing the cache mishandles newlines in values,
12698# but we know of no workaround that is simple, portable, and efficient.
12699# So, don't put newlines in cache variables' values.
12700# Ultrix sh set writes to stderr and can't be redirected directly,
12701# and sets the high bit in the cache file unless we assign to the vars.
12702{
12703 (set) 2>&1 |
12704 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12705 *ac_space=\ *)
12706 # `set' does not quote correctly, so add quotes (double-quote
12707 # substitution turns \\\\ into \\, and sed turns \\ into \).
12708 sed -n \
12709 "s/'/'\\\\''/g;
12710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12711 ;;
12712 *)
12713 # `set' quotes correctly as required by POSIX, so do not add quotes.
12714 sed -n \
12715 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12716 ;;
12717 esac;
12718} |
12719 sed '
12720 t clear
12721 : clear
12722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12723 t end
12724 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12725 : end' >>confcache
12726if diff $cache_file confcache >/dev/null 2>&1; then :; else
12727 if test -w $cache_file; then
12728 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12729 cat confcache >$cache_file
12730 else
12731 echo "not updating unwritable cache $cache_file"
12732 fi
12733fi
12734rm -f confcache
12735
12736test "x$prefix" = xNONE && prefix=$ac_default_prefix
12737# Let make expand exec_prefix.
12738test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12739
12740# VPATH may cause trouble with some makes, so we remove $(srcdir),
12741# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12742# trailing colons and then remove the whole line if VPATH becomes empty
12743# (actually we leave an empty line to preserve line numbers).
12744if test "x$srcdir" = x.; then
12745 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12746s/:*\$(srcdir):*/:/;
12747s/:*\${srcdir}:*/:/;
12748s/:*@srcdir@:*/:/;
12749s/^\([^=]*=[ ]*\):*/\1/;
12750s/:*$//;
12751s/^[^=]*=[ ]*$//;
12752}'
12753fi
12754
12755DEFS=-DHAVE_CONFIG_H
12756
12757ac_libobjs=
12758ac_ltlibobjs=
12759for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12760 # 1. Remove the extension, and $U if already installed.
12761 ac_i=`echo "$ac_i" |
12762 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12763 # 2. Add them.
12764 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12765 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12766done
12767LIBOBJS=$ac_libobjs
12768
12769LTLIBOBJS=$ac_ltlibobjs
12770
12771
12772if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12773 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12774Usually this means the macro was only invoked conditionally." >&5
12775echo "$as_me: error: conditional \"AMDEP\" was never defined.
12776Usually this means the macro was only invoked conditionally." >&2;}
12777 { (exit 1); exit 1; }; }
12778fi
12779if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12780 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12781Usually this means the macro was only invoked conditionally." >&5
12782echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12783Usually this means the macro was only invoked conditionally." >&2;}
12784 { (exit 1); exit 1; }; }
12785fi
12786if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12787 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12788Usually this means the macro was only invoked conditionally." >&5
12789echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12790Usually this means the macro was only invoked conditionally." >&2;}
12791 { (exit 1); exit 1; }; }
12792fi
12793if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
12794 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
12795Usually this means the macro was only invoked conditionally." >&5
12796echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
12797Usually this means the macro was only invoked conditionally." >&2;}
12798 { (exit 1); exit 1; }; }
12799fi
8d5c5e35
MR
12800if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
12801 { { echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
3ed8e5b6 12802Usually this means the macro was only invoked conditionally." >&5
8d5c5e35 12803echo "$as_me: error: conditional \"MIPS\" was never defined.
3ed8e5b6
AT
12804Usually this means the macro was only invoked conditionally." >&2;}
12805 { (exit 1); exit 1; }; }
12806fi
12807if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
12808 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
12809Usually this means the macro was only invoked conditionally." >&5
12810echo "$as_me: error: conditional \"SPARC\" was never defined.
12811Usually this means the macro was only invoked conditionally." >&2;}
12812 { (exit 1); exit 1; }; }
12813fi
12814if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
12815 { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
12816Usually this means the macro was only invoked conditionally." >&5
12817echo "$as_me: error: conditional \"X86\" was never defined.
12818Usually this means the macro was only invoked conditionally." >&2;}
12819 { (exit 1); exit 1; }; }
12820fi
12821if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
12822 { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
12823Usually this means the macro was only invoked conditionally." >&5
12824echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
12825Usually this means the macro was only invoked conditionally." >&2;}
12826 { (exit 1); exit 1; }; }
12827fi
a3bd50cc
PB
12828if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
12829 { { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
12830Usually this means the macro was only invoked conditionally." >&5
12831echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
12832Usually this means the macro was only invoked conditionally." >&2;}
12833 { (exit 1); exit 1; }; }
12834fi
3ed8e5b6
AT
12835if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
12836 { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
12837Usually this means the macro was only invoked conditionally." >&5
12838echo "$as_me: error: conditional \"ALPHA\" was never defined.
12839Usually this means the macro was only invoked conditionally." >&2;}
12840 { (exit 1); exit 1; }; }
12841fi
12842if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
12843 { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
12844Usually this means the macro was only invoked conditionally." >&5
12845echo "$as_me: error: conditional \"IA64\" was never defined.
12846Usually this means the macro was only invoked conditionally." >&2;}
12847 { (exit 1); exit 1; }; }
12848fi
a472e9d4
KI
12849if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
12850 { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
12851Usually this means the macro was only invoked conditionally." >&5
12852echo "$as_me: error: conditional \"M32R\" was never defined.
12853Usually this means the macro was only invoked conditionally." >&2;}
12854 { (exit 1); exit 1; }; }
12855fi
3ed8e5b6
AT
12856if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
12857 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
12858Usually this means the macro was only invoked conditionally." >&5
12859echo "$as_me: error: conditional \"M68K\" was never defined.
12860Usually this means the macro was only invoked conditionally." >&2;}
12861 { (exit 1); exit 1; }; }
12862fi
12863if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
12864 { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
12865Usually this means the macro was only invoked conditionally." >&5
12866echo "$as_me: error: conditional \"POWERPC\" was never defined.
12867Usually this means the macro was only invoked conditionally." >&2;}
12868 { (exit 1); exit 1; }; }
12869fi
12870if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
12871 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
12872Usually this means the macro was only invoked conditionally." >&5
12873echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
12874Usually this means the macro was only invoked conditionally." >&2;}
12875 { (exit 1); exit 1; }; }
12876fi
12877if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
12878 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
12879Usually this means the macro was only invoked conditionally." >&5
12880echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
12881Usually this means the macro was only invoked conditionally." >&2;}
12882 { (exit 1); exit 1; }; }
12883fi
97067642
AT
12884if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
12885 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
12886Usually this means the macro was only invoked conditionally." >&5
12887echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
12888Usually this means the macro was only invoked conditionally." >&2;}
12889 { (exit 1); exit 1; }; }
12890fi
3ed8e5b6
AT
12891if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
12892 { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
12893Usually this means the macro was only invoked conditionally." >&5
12894echo "$as_me: error: conditional \"ARM\" was never defined.
12895Usually this means the macro was only invoked conditionally." >&2;}
12896 { (exit 1); exit 1; }; }
12897fi
614348bb
SP
12898if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
12899 { { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
12900Usually this means the macro was only invoked conditionally." >&5
12901echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
12902Usually this means the macro was only invoked conditionally." >&2;}
12903 { (exit 1); exit 1; }; }
12904fi
88d8c771
AG
12905if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
12906 { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
12907Usually this means the macro was only invoked conditionally." >&5
12908echo "$as_me: error: conditional \"FRV\" was never defined.
12909Usually this means the macro was only invoked conditionally." >&2;}
12910 { (exit 1); exit 1; }; }
12911fi
3ed8e5b6
AT
12912if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
12913 { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
12914Usually this means the macro was only invoked conditionally." >&5
12915echo "$as_me: error: conditional \"S390\" was never defined.
12916Usually this means the macro was only invoked conditionally." >&2;}
12917 { (exit 1); exit 1; }; }
12918fi
12919if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
12920 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
12921Usually this means the macro was only invoked conditionally." >&5
12922echo "$as_me: error: conditional \"X86_64\" was never defined.
12923Usually this means the macro was only invoked conditionally." >&2;}
12924 { (exit 1); exit 1; }; }
12925fi
12926if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
12927 { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
12928Usually this means the macro was only invoked conditionally." >&5
12929echo "$as_me: error: conditional \"SH\" was never defined.
12930Usually this means the macro was only invoked conditionally." >&2;}
12931 { (exit 1); exit 1; }; }
12932fi
12933if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
12934 { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
12935Usually this means the macro was only invoked conditionally." >&5
12936echo "$as_me: error: conditional \"SH64\" was never defined.
12937Usually this means the macro was only invoked conditionally." >&2;}
12938 { (exit 1); exit 1; }; }
12939fi
e6c300ef
JDA
12940if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
12941 { { echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
12942Usually this means the macro was only invoked conditionally." >&5
12943echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
12944Usually this means the macro was only invoked conditionally." >&2;}
12945 { (exit 1); exit 1; }; }
12946fi
12947if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
12948 { { echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
12949Usually this means the macro was only invoked conditionally." >&5
12950echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
12951Usually this means the macro was only invoked conditionally." >&2;}
12952 { (exit 1); exit 1; }; }
12953fi
12954if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
12955 { { echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
d65a810f 12956Usually this means the macro was only invoked conditionally." >&5
e6c300ef 12957echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
d65a810f
MK
12958Usually this means the macro was only invoked conditionally." >&2;}
12959 { (exit 1); exit 1; }; }
12960fi
3ed8e5b6
AT
12961
12962: ${CONFIG_STATUS=./config.status}
12963ac_clean_files_save=$ac_clean_files
12964ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12965{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12966echo "$as_me: creating $CONFIG_STATUS" >&6;}
12967cat >$CONFIG_STATUS <<_ACEOF
12968#! $SHELL
12969# Generated by $as_me.
12970# Run this file to recreate the current configuration.
12971# Compiler output produced by configure, useful for debugging
12972# configure, is in config.log if it exists.
12973
12974debug=false
12975ac_cs_recheck=false
12976ac_cs_silent=false
12977SHELL=\${CONFIG_SHELL-$SHELL}
12978_ACEOF
12979
12980cat >>$CONFIG_STATUS <<\_ACEOF
12981## --------------------- ##
12982## M4sh Initialization. ##
12983## --------------------- ##
12984
12985# Be Bourne compatible
12986if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12987 emulate sh
12988 NULLCMD=:
12989 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12990 # is contrary to our usage. Disable this feature.
12991 alias -g '${1+"$@"}'='"$@"'
12992elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12993 set -o posix
12994fi
12995DUALCASE=1; export DUALCASE # for MKS sh
12996
12997# Support unset when possible.
12998if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12999 as_unset=unset
13000else
13001 as_unset=false
13002fi
13003
13004
13005# Work around bugs in pre-3.0 UWIN ksh.
13006$as_unset ENV MAIL MAILPATH
13007PS1='$ '
13008PS2='> '
13009PS4='+ '
13010
13011# NLS nuisances.
13012for as_var in \
13013 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13014 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13015 LC_TELEPHONE LC_TIME
13016do
13017 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13018 eval $as_var=C; export $as_var
13019 else
13020 $as_unset $as_var
13021 fi
13022done
13023
13024# Required to use basename.
13025if expr a : '\(a\)' >/dev/null 2>&1; then
13026 as_expr=expr
13027else
13028 as_expr=false
13029fi
13030
13031if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13032 as_basename=basename
13033else
13034 as_basename=false
13035fi
13036
13037
13038# Name of the executable.
13039as_me=`$as_basename "$0" ||
13040$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13041 X"$0" : 'X\(//\)$' \| \
13042 X"$0" : 'X\(/\)$' \| \
13043 . : '\(.\)' 2>/dev/null ||
13044echo X/"$0" |
13045 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13046 /^X\/\(\/\/\)$/{ s//\1/; q; }
13047 /^X\/\(\/\).*/{ s//\1/; q; }
13048 s/.*/./; q'`
13049
13050
13051# PATH needs CR, and LINENO needs CR and PATH.
13052# Avoid depending upon Character Ranges.
13053as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13054as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13055as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13056as_cr_digits='0123456789'
13057as_cr_alnum=$as_cr_Letters$as_cr_digits
13058
13059# The user is always right.
13060if test "${PATH_SEPARATOR+set}" != set; then
13061 echo "#! /bin/sh" >conf$$.sh
13062 echo "exit 0" >>conf$$.sh
13063 chmod +x conf$$.sh
13064 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13065 PATH_SEPARATOR=';'
13066 else
13067 PATH_SEPARATOR=:
13068 fi
13069 rm -f conf$$.sh
13070fi
13071
13072
13073 as_lineno_1=$LINENO
13074 as_lineno_2=$LINENO
13075 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13076 test "x$as_lineno_1" != "x$as_lineno_2" &&
13077 test "x$as_lineno_3" = "x$as_lineno_2" || {
13078 # Find who we are. Look in the path if we contain no path at all
13079 # relative or not.
13080 case $0 in
13081 *[\\/]* ) as_myself=$0 ;;
13082 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083for as_dir in $PATH
13084do
13085 IFS=$as_save_IFS
13086 test -z "$as_dir" && as_dir=.
13087 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13088done
13089
13090 ;;
13091 esac
13092 # We did not find ourselves, most probably we were run as `sh COMMAND'
13093 # in which case we are not to be found in the path.
13094 if test "x$as_myself" = x; then
13095 as_myself=$0
13096 fi
13097 if test ! -f "$as_myself"; then
13098 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13099echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13100 { (exit 1); exit 1; }; }
13101 fi
13102 case $CONFIG_SHELL in
13103 '')
13104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13106do
13107 IFS=$as_save_IFS
13108 test -z "$as_dir" && as_dir=.
13109 for as_base in sh bash ksh sh5; do
13110 case $as_dir in
13111 /*)
13112 if ("$as_dir/$as_base" -c '
13113 as_lineno_1=$LINENO
13114 as_lineno_2=$LINENO
13115 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13116 test "x$as_lineno_1" != "x$as_lineno_2" &&
13117 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13118 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13119 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13120 CONFIG_SHELL=$as_dir/$as_base
13121 export CONFIG_SHELL
13122 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13123 fi;;
13124 esac
13125 done
13126done
13127;;
13128 esac
13129
13130 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13131 # uniformly replaced by the line number. The first 'sed' inserts a
13132 # line-number line before each line; the second 'sed' does the real
13133 # work. The second script uses 'N' to pair each line-number line
13134 # with the numbered line, and appends trailing '-' during
13135 # substitution so that $LINENO is not a special case at line end.
13136 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13137 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13138 sed '=' <$as_myself |
13139 sed '
13140 N
13141 s,$,-,
13142 : loop
13143 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13144 t loop
13145 s,-$,,
13146 s,^['$as_cr_digits']*\n,,
13147 ' >$as_me.lineno &&
13148 chmod +x $as_me.lineno ||
13149 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13150echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13151 { (exit 1); exit 1; }; }
13152
13153 # Don't try to exec as it changes $[0], causing all sort of problems
13154 # (the dirname of $[0] is not the place where we might find the
13155 # original and so on. Autoconf is especially sensible to this).
13156 . ./$as_me.lineno
13157 # Exit status is that of the last command.
13158 exit
13159}
13160
63e5e3e0 13161
3ed8e5b6
AT
13162case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13163 *c*,-n*) ECHO_N= ECHO_C='
13164' ECHO_T=' ' ;;
13165 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13166 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13167esac
13168
13169if expr a : '\(a\)' >/dev/null 2>&1; then
13170 as_expr=expr
13171else
13172 as_expr=false
13173fi
13174
13175rm -f conf$$ conf$$.exe conf$$.file
13176echo >conf$$.file
13177if ln -s conf$$.file conf$$ 2>/dev/null; then
13178 # We could just check for DJGPP; but this test a) works b) is more generic
13179 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13180 if test -f conf$$.exe; then
13181 # Don't use ln at all; we don't have any links
13182 as_ln_s='cp -p'
13183 else
13184 as_ln_s='ln -s'
7d45b968 13185 fi
3ed8e5b6
AT
13186elif ln conf$$.file conf$$ 2>/dev/null; then
13187 as_ln_s=ln
13188else
13189 as_ln_s='cp -p'
13190fi
13191rm -f conf$$ conf$$.exe conf$$.file
13192
13193if mkdir -p . 2>/dev/null; then
13194 as_mkdir_p=:
13195else
13196 test -d ./-p && rmdir ./-p
13197 as_mkdir_p=false
63e5e3e0
AG
13198fi
13199
3ed8e5b6
AT
13200as_executable_p="test -f"
13201
13202# Sed expression to map a string onto a valid CPP name.
13203as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13204
13205# Sed expression to map a string onto a valid variable name.
13206as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13207
13208
13209# IFS
13210# We need space, tab and new line, in precisely that order.
13211as_nl='
13212'
13213IFS=" $as_nl"
13214
13215# CDPATH.
13216$as_unset CDPATH
13217
13218exec 6>&1
63e5e3e0 13219
3ed8e5b6
AT
13220# Open the log real soon, to keep \$[0] and so on meaningful, and to
13221# report actual input values of CONFIG_FILES etc. instead of their
13222# values after options handling. Logging --version etc. is OK.
13223exec 5>>config.log
13224{
13225 echo
13226 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13227## Running $as_me. ##
13228_ASBOX
13229} >&5
13230cat >&5 <<_CSEOF
63e5e3e0 13231
3ed8e5b6
AT
13232This file was extended by libffi $as_me 2.1, which was
13233generated by GNU Autoconf 2.59. Invocation command line was
63e5e3e0 13234
3ed8e5b6
AT
13235 CONFIG_FILES = $CONFIG_FILES
13236 CONFIG_HEADERS = $CONFIG_HEADERS
13237 CONFIG_LINKS = $CONFIG_LINKS
13238 CONFIG_COMMANDS = $CONFIG_COMMANDS
13239 $ $0 $@
63e5e3e0 13240
3ed8e5b6
AT
13241_CSEOF
13242echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13243echo >&5
13244_ACEOF
63e5e3e0 13245
3ed8e5b6
AT
13246# Files that config.status was made for.
13247if test -n "$ac_config_files"; then
13248 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
63e5e3e0
AG
13249fi
13250
3ed8e5b6
AT
13251if test -n "$ac_config_headers"; then
13252 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13253fi
63e5e3e0 13254
3ed8e5b6
AT
13255if test -n "$ac_config_links"; then
13256 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13257fi
63e5e3e0 13258
3ed8e5b6
AT
13259if test -n "$ac_config_commands"; then
13260 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
63e5e3e0
AG
13261fi
13262
3ed8e5b6 13263cat >>$CONFIG_STATUS <<\_ACEOF
63e5e3e0 13264
3ed8e5b6
AT
13265ac_cs_usage="\
13266\`$as_me' instantiates files from templates according to the
13267current configuration.
db2cd5e6 13268
3ed8e5b6 13269Usage: $0 [OPTIONS] [FILE]...
db2cd5e6 13270
3ed8e5b6
AT
13271 -h, --help print this help, then exit
13272 -V, --version print version number, then exit
13273 -q, --quiet do not print progress messages
13274 -d, --debug don't remove temporary files
13275 --recheck update $as_me by reconfiguring in the same conditions
13276 --file=FILE[:TEMPLATE]
13277 instantiate the configuration file FILE
13278 --header=FILE[:TEMPLATE]
13279 instantiate the configuration header FILE
0721f64e 13280
3ed8e5b6
AT
13281Configuration files:
13282$config_files
ea81d2a3 13283
3ed8e5b6
AT
13284Configuration headers:
13285$config_headers
ea81d2a3 13286
3ed8e5b6
AT
13287Configuration links:
13288$config_links
ea81d2a3 13289
3ed8e5b6
AT
13290Configuration commands:
13291$config_commands
ea81d2a3 13292
3ed8e5b6
AT
13293Report bugs to <bug-autoconf@gnu.org>."
13294_ACEOF
3c18f2d1 13295
3ed8e5b6
AT
13296cat >>$CONFIG_STATUS <<_ACEOF
13297ac_cs_version="\\
13298libffi config.status 2.1
13299configured by $0, generated by GNU Autoconf 2.59,
13300 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13301
13302Copyright (C) 2003 Free Software Foundation, Inc.
13303This config.status script is free software; the Free Software Foundation
13304gives unlimited permission to copy, distribute and modify it."
13305srcdir=$srcdir
13306INSTALL="$INSTALL"
13307_ACEOF
13308
13309cat >>$CONFIG_STATUS <<\_ACEOF
13310# If no file are specified by the user, then we need to provide default
13311# value. By we need to know if files were specified by the user.
13312ac_need_defaults=:
13313while test $# != 0
13314do
13315 case $1 in
13316 --*=*)
13317 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13318 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13319 ac_shift=:
63e5e3e0 13320 ;;
3ed8e5b6
AT
13321 -*)
13322 ac_option=$1
13323 ac_optarg=$2
13324 ac_shift=shift
63e5e3e0 13325 ;;
3ed8e5b6
AT
13326 *) # This is not an option, so the user has probably given explicit
13327 # arguments.
13328 ac_option=$1
13329 ac_need_defaults=false;;
13330 esac
13331
13332 case $ac_option in
13333 # Handling of the options.
13334_ACEOF
13335cat >>$CONFIG_STATUS <<\_ACEOF
13336 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13337 ac_cs_recheck=: ;;
13338 --version | --vers* | -V )
13339 echo "$ac_cs_version"; exit 0 ;;
13340 --he | --h)
13341 # Conflict between --help and --header
13342 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13343Try \`$0 --help' for more information." >&5
13344echo "$as_me: error: ambiguous option: $1
13345Try \`$0 --help' for more information." >&2;}
13346 { (exit 1); exit 1; }; };;
13347 --help | --hel | -h )
13348 echo "$ac_cs_usage"; exit 0 ;;
13349 --debug | --d* | -d )
13350 debug=: ;;
13351 --file | --fil | --fi | --f )
13352 $ac_shift
13353 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13354 ac_need_defaults=false;;
13355 --header | --heade | --head | --hea )
13356 $ac_shift
13357 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13358 ac_need_defaults=false;;
13359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13360 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13361 ac_cs_silent=: ;;
63e5e3e0 13362
3ed8e5b6
AT
13363 # This is an error.
13364 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13365Try \`$0 --help' for more information." >&5
13366echo "$as_me: error: unrecognized option: $1
13367Try \`$0 --help' for more information." >&2;}
13368 { (exit 1); exit 1; }; } ;;
63e5e3e0 13369
3ed8e5b6 13370 *) ac_config_targets="$ac_config_targets $1" ;;
63e5e3e0 13371
3ed8e5b6
AT
13372 esac
13373 shift
13374done
63e5e3e0 13375
3ed8e5b6 13376ac_configure_extra_args=
63e5e3e0 13377
3ed8e5b6
AT
13378if $ac_cs_silent; then
13379 exec 6>/dev/null
13380 ac_configure_extra_args="$ac_configure_extra_args --silent"
13381fi
63e5e3e0 13382
3ed8e5b6
AT
13383_ACEOF
13384cat >>$CONFIG_STATUS <<_ACEOF
13385if \$ac_cs_recheck; then
13386 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13387 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13388fi
63e5e3e0 13389
3ed8e5b6
AT
13390_ACEOF
13391
13392cat >>$CONFIG_STATUS <<_ACEOF
63e5e3e0 13393#
3ed8e5b6 13394# INIT-COMMANDS section.
63e5e3e0 13395#
63e5e3e0 13396
3ed8e5b6
AT
13397
13398srcdir="$srcdir"
13399host="$host"
13400target="$target"
13401with_multisubdir="$with_multisubdir"
13402with_multisrctop="$with_multisrctop"
13403with_target_subdir="$with_target_subdir"
13404ac_configure_args="${multilib_arg} ${ac_configure_args}"
13405multi_basedir="$multi_basedir"
13406CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13407CC="$CC"
13408AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1cf3d07d
SE
13409
13410
13411# The HP-UX ksh and POSIX shell print the target directory to stdout
13412# if CDPATH is set.
13413(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13414
13415sed_quote_subst='$sed_quote_subst'
13416double_quote_subst='$double_quote_subst'
13417delay_variable_subst='$delay_variable_subst'
13418macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13419macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13420enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13421enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13422pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13423enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13424host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13425host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13426host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13427build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13428build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13429build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13430SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13431Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13432GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13433EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13434FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13435LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13436NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13437LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13438max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13439ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13440exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13441lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13442lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13443lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13444reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13445reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13446deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13447file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13448AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13449AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13450STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13451RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13452old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13453old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13454old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13455CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13456CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13457compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13458GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13459lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13460lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13461lt_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"`'
13462objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13463SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13464ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13465MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13466lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13467lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13468lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13469lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13470lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13471need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13472libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13473shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13474extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13475archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13476enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13477export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13478whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13479compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13480old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13481old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13482archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13483archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13484module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13485module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13486with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13487allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13488no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13489hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13490hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13491hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13492hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13493hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13494hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13495hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13496hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13497inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13498link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13499fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13500always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13501export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13502exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13503include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13504prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13505file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13506variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13507need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13508need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13509version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13510runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13511shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13512shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13513libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13514library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13515soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13516postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13517postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13518finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13519finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13520hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13521sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13522sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13523hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13524enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13525enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13526enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13527old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13528striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13529
13530LTCC='$LTCC'
13531LTCFLAGS='$LTCFLAGS'
13532compiler='$compiler_DEFAULT'
13533
13534# Quote evaled strings.
13535for var in SED \
13536GREP \
13537EGREP \
13538FGREP \
13539LD \
13540NM \
13541LN_S \
13542lt_SP2NL \
13543lt_NL2SP \
13544reload_flag \
13545deplibs_check_method \
13546file_magic_cmd \
13547AR \
13548AR_FLAGS \
13549STRIP \
13550RANLIB \
13551CC \
13552CFLAGS \
13553compiler \
13554lt_cv_sys_global_symbol_pipe \
13555lt_cv_sys_global_symbol_to_cdecl \
13556lt_cv_sys_global_symbol_to_c_name_address \
13557SHELL \
13558ECHO \
13559lt_prog_compiler_no_builtin_flag \
13560lt_prog_compiler_wl \
13561lt_prog_compiler_pic \
13562lt_prog_compiler_static \
13563lt_cv_prog_compiler_c_o \
13564need_locks \
13565shrext_cmds \
13566export_dynamic_flag_spec \
13567whole_archive_flag_spec \
13568compiler_needs_object \
13569with_gnu_ld \
13570allow_undefined_flag \
13571no_undefined_flag \
13572hardcode_libdir_flag_spec \
13573hardcode_libdir_flag_spec_ld \
13574hardcode_libdir_separator \
13575fix_srcfile_path \
13576exclude_expsyms \
13577include_expsyms \
13578file_list_spec \
13579variables_saved_for_relink \
13580libname_spec \
13581library_names_spec \
13582soname_spec \
13583finish_eval \
13584old_striplib \
13585striplib; do
13586 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13587 *[\\\\\\\`\\"\\\$]*)
13588 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13589 ;;
13590 *)
13591 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13592 ;;
13593 esac
13594done
13595
13596# Double-quote double-evaled strings.
13597for var in reload_cmds \
13598old_postinstall_cmds \
13599old_postuninstall_cmds \
13600old_archive_cmds \
13601extract_expsyms_cmds \
13602old_archive_from_new_cmds \
13603old_archive_from_expsyms_cmds \
13604archive_cmds \
13605archive_expsym_cmds \
13606module_cmds \
13607module_expsym_cmds \
13608export_symbols_cmds \
13609prelink_cmds \
13610postinstall_cmds \
13611postuninstall_cmds \
13612finish_cmds \
13613sys_lib_search_path_spec \
13614sys_lib_dlsearch_path_spec; do
13615 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13616 *[\\\\\\\`\\"\\\$]*)
13617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13618 ;;
13619 *)
13620 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13621 ;;
13622 esac
13623done
13624
13625# Fix-up fallback echo if it was mangled by the above quoting rules.
13626case \$lt_ECHO in
13627*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13628 ;;
13629esac
13630
13631ac_aux_dir='$ac_aux_dir'
13632xsi_shell='$xsi_shell'
13633lt_shell_append='$lt_shell_append'
13634
13635# See if we are running on zsh, and set the options which allow our
13636# commands through without removal of \ escapes INIT.
13637if test -n "\${ZSH_VERSION+set}" ; then
13638 setopt NO_GLOB_SUBST
13639fi
13640
13641
13642 PACKAGE='$PACKAGE'
13643 VERSION='$VERSION'
13644 TIMESTAMP='$TIMESTAMP'
13645 RM='$RM'
13646 ofile='$ofile'
13647
13648
13649
3ed8e5b6
AT
13650TARGETDIR="$TARGETDIR"
13651
13652_ACEOF
13653
13654
13655
13656cat >>$CONFIG_STATUS <<\_ACEOF
13657for ac_config_target in $ac_config_targets
63e5e3e0 13658do
3ed8e5b6
AT
13659 case "$ac_config_target" in
13660 # Handling of arguments.
13661 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13662 "include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
13663 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13664 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13665 "include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
13666 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13667 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1cf3d07d 13668 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
3ed8e5b6
AT
13669 "include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
13670 "src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
13671 "fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
13672 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13673echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13674 { (exit 1); exit 1; }; };;
63e5e3e0
AG
13675 esac
13676done
13677
3ed8e5b6
AT
13678# If the user did not use the arguments to specify the items to instantiate,
13679# then the envvar interface is used. Set only those that are not.
13680# We use the long form for the default assignment because of an extremely
13681# bizarre bug on SunOS 4.1.3.
13682if $ac_need_defaults; then
13683 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13684 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13685 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13686 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13687fi
13688
13689# Have a temporary directory for convenience. Make it in the build tree
13690# simply because there is no reason to put it here, and in addition,
13691# creating and moving files from /tmp can sometimes cause problems.
13692# Create a temporary directory, and hook for its removal unless debugging.
13693$debug ||
13694{
13695 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13696 trap '{ (exit 1); exit 1; }' 1 2 13 15
13697}
63e5e3e0 13698
3ed8e5b6 13699# Create a (secure) tmp directory for tmp files.
63e5e3e0 13700
3ed8e5b6
AT
13701{
13702 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13703 test -n "$tmp" && test -d "$tmp"
13704} ||
13705{
13706 tmp=./confstat$$-$RANDOM
13707 (umask 077 && mkdir $tmp)
13708} ||
13709{
13710 echo "$me: cannot create a temporary directory in ." >&2
13711 { (exit 1); exit 1; }
13712}
13713
13714_ACEOF
13715
13716cat >>$CONFIG_STATUS <<_ACEOF
13717
13718#
13719# CONFIG_FILES section.
13720#
63e5e3e0 13721
3ed8e5b6
AT
13722# No need to generate the scripts if there are no CONFIG_FILES.
13723# This happens for instance when ./config.status config.h
13724if test -n "\$CONFIG_FILES"; then
13725 # Protect against being on the right side of a sed subst in config.status.
13726 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13727 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13728s,@SHELL@,$SHELL,;t t
13729s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13730s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13731s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13732s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13733s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13734s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13735s,@exec_prefix@,$exec_prefix,;t t
13736s,@prefix@,$prefix,;t t
13737s,@program_transform_name@,$program_transform_name,;t t
13738s,@bindir@,$bindir,;t t
13739s,@sbindir@,$sbindir,;t t
13740s,@libexecdir@,$libexecdir,;t t
13741s,@datadir@,$datadir,;t t
13742s,@sysconfdir@,$sysconfdir,;t t
13743s,@sharedstatedir@,$sharedstatedir,;t t
13744s,@localstatedir@,$localstatedir,;t t
13745s,@libdir@,$libdir,;t t
13746s,@includedir@,$includedir,;t t
13747s,@oldincludedir@,$oldincludedir,;t t
13748s,@infodir@,$infodir,;t t
13749s,@mandir@,$mandir,;t t
13750s,@build_alias@,$build_alias,;t t
13751s,@host_alias@,$host_alias,;t t
13752s,@target_alias@,$target_alias,;t t
13753s,@DEFS@,$DEFS,;t t
13754s,@ECHO_C@,$ECHO_C,;t t
13755s,@ECHO_N@,$ECHO_N,;t t
13756s,@ECHO_T@,$ECHO_T,;t t
13757s,@LIBS@,$LIBS,;t t
13758s,@multi_basedir@,$multi_basedir,;t t
13759s,@build@,$build,;t t
13760s,@build_cpu@,$build_cpu,;t t
13761s,@build_vendor@,$build_vendor,;t t
13762s,@build_os@,$build_os,;t t
13763s,@host@,$host,;t t
13764s,@host_cpu@,$host_cpu,;t t
13765s,@host_vendor@,$host_vendor,;t t
13766s,@host_os@,$host_os,;t t
13767s,@target@,$target,;t t
13768s,@target_cpu@,$target_cpu,;t t
13769s,@target_vendor@,$target_vendor,;t t
13770s,@target_os@,$target_os,;t t
13771s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13772s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13773s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13774s,@CYGPATH_W@,$CYGPATH_W,;t t
13775s,@PACKAGE@,$PACKAGE,;t t
13776s,@VERSION@,$VERSION,;t t
13777s,@ACLOCAL@,$ACLOCAL,;t t
13778s,@AUTOCONF@,$AUTOCONF,;t t
13779s,@AUTOMAKE@,$AUTOMAKE,;t t
13780s,@AUTOHEADER@,$AUTOHEADER,;t t
13781s,@MAKEINFO@,$MAKEINFO,;t t
3ed8e5b6
AT
13782s,@install_sh@,$install_sh,;t t
13783s,@STRIP@,$STRIP,;t t
13784s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13785s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
076e5443 13786s,@mkdir_p@,$mkdir_p,;t t
3ed8e5b6
AT
13787s,@AWK@,$AWK,;t t
13788s,@SET_MAKE@,$SET_MAKE,;t t
13789s,@am__leading_dot@,$am__leading_dot,;t t
b85e31b9
KC
13790s,@AMTAR@,$AMTAR,;t t
13791s,@am__tar@,$am__tar,;t t
13792s,@am__untar@,$am__untar,;t t
3ed8e5b6
AT
13793s,@CC@,$CC,;t t
13794s,@ac_ct_CC@,$ac_ct_CC,;t t
13795s,@EXEEXT@,$EXEEXT,;t t
13796s,@OBJEXT@,$OBJEXT,;t t
13797s,@DEPDIR@,$DEPDIR,;t t
13798s,@am__include@,$am__include,;t t
13799s,@am__quote@,$am__quote,;t t
13800s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13801s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13802s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13803s,@CCDEPMODE@,$CCDEPMODE,;t t
13804s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13805s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13806s,@CFLAGS@,$CFLAGS,;t t
13807s,@CCAS@,$CCAS,;t t
13808s,@CCASFLAGS@,$CCASFLAGS,;t t
1cf3d07d
SE
13809s,@LIBTOOL@,$LIBTOOL,;t t
13810s,@SED@,$SED,;t t
13811s,@EGREP@,$EGREP,;t t
13812s,@FGREP@,$FGREP,;t t
13813s,@GREP@,$GREP,;t t
13814s,@LD@,$LD,;t t
13815s,@DUMPBIN@,$DUMPBIN,;t t
13816s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13817s,@NM@,$NM,;t t
3ed8e5b6 13818s,@LN_S@,$LN_S,;t t
1cf3d07d
SE
13819s,@AR@,$AR,;t t
13820s,@ac_ct_AR@,$ac_ct_AR,;t t
3ed8e5b6
AT
13821s,@RANLIB@,$RANLIB,;t t
13822s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
1cf3d07d
SE
13823s,@lt_ECHO@,$lt_ECHO,;t t
13824s,@CPP@,$CPP,;t t
13825s,@CPPFLAGS@,$CPPFLAGS,;t t
3ed8e5b6
AT
13826s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13827s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13828s,@MAINT@,$MAINT,;t t
13829s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
13830s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
13831s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
8d5c5e35
MR
13832s,@MIPS_TRUE@,$MIPS_TRUE,;t t
13833s,@MIPS_FALSE@,$MIPS_FALSE,;t t
3ed8e5b6
AT
13834s,@SPARC_TRUE@,$SPARC_TRUE,;t t
13835s,@SPARC_FALSE@,$SPARC_FALSE,;t t
13836s,@X86_TRUE@,$X86_TRUE,;t t
13837s,@X86_FALSE@,$X86_FALSE,;t t
13838s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
13839s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
a3bd50cc
PB
13840s,@X86_DARWIN_TRUE@,$X86_DARWIN_TRUE,;t t
13841s,@X86_DARWIN_FALSE@,$X86_DARWIN_FALSE,;t t
3ed8e5b6
AT
13842s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
13843s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
13844s,@IA64_TRUE@,$IA64_TRUE,;t t
13845s,@IA64_FALSE@,$IA64_FALSE,;t t
a472e9d4
KI
13846s,@M32R_TRUE@,$M32R_TRUE,;t t
13847s,@M32R_FALSE@,$M32R_FALSE,;t t
3ed8e5b6
AT
13848s,@M68K_TRUE@,$M68K_TRUE,;t t
13849s,@M68K_FALSE@,$M68K_FALSE,;t t
13850s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
13851s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
13852s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
13853s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
13854s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
13855s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
97067642
AT
13856s,@POWERPC_FREEBSD_TRUE@,$POWERPC_FREEBSD_TRUE,;t t
13857s,@POWERPC_FREEBSD_FALSE@,$POWERPC_FREEBSD_FALSE,;t t
3ed8e5b6
AT
13858s,@ARM_TRUE@,$ARM_TRUE,;t t
13859s,@ARM_FALSE@,$ARM_FALSE,;t t
614348bb
SP
13860s,@LIBFFI_CRIS_TRUE@,$LIBFFI_CRIS_TRUE,;t t
13861s,@LIBFFI_CRIS_FALSE@,$LIBFFI_CRIS_FALSE,;t t
88d8c771
AG
13862s,@FRV_TRUE@,$FRV_TRUE,;t t
13863s,@FRV_FALSE@,$FRV_FALSE,;t t
3ed8e5b6
AT
13864s,@S390_TRUE@,$S390_TRUE,;t t
13865s,@S390_FALSE@,$S390_FALSE,;t t
13866s,@X86_64_TRUE@,$X86_64_TRUE,;t t
13867s,@X86_64_FALSE@,$X86_64_FALSE,;t t
13868s,@SH_TRUE@,$SH_TRUE,;t t
13869s,@SH_FALSE@,$SH_FALSE,;t t
13870s,@SH64_TRUE@,$SH64_TRUE,;t t
13871s,@SH64_FALSE@,$SH64_FALSE,;t t
e6c300ef
JDA
13872s,@PA_LINUX_TRUE@,$PA_LINUX_TRUE,;t t
13873s,@PA_LINUX_FALSE@,$PA_LINUX_FALSE,;t t
13874s,@PA_HPUX_TRUE@,$PA_HPUX_TRUE,;t t
13875s,@PA_HPUX_FALSE@,$PA_HPUX_FALSE,;t t
13876s,@PA64_HPUX_TRUE@,$PA64_HPUX_TRUE,;t t
13877s,@PA64_HPUX_FALSE@,$PA64_HPUX_FALSE,;t t
3ed8e5b6
AT
13878s,@ALLOCA@,$ALLOCA,;t t
13879s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
13880s,@TARGET@,$TARGET,;t t
13881s,@TARGETDIR@,$TARGETDIR,;t t
13882s,@toolexecdir@,$toolexecdir,;t t
13883s,@toolexeclibdir@,$toolexeclibdir,;t t
3ed8e5b6
AT
13884s,@LIBOBJS@,$LIBOBJS,;t t
13885s,@LTLIBOBJS@,$LTLIBOBJS,;t t
63e5e3e0 13886CEOF
63e5e3e0 13887
3ed8e5b6
AT
13888_ACEOF
13889
13890 cat >>$CONFIG_STATUS <<\_ACEOF
13891 # Split the substitutions into bite-sized pieces for seds with
13892 # small command number limits, like on Digital OSF/1 and HP-UX.
13893 ac_max_sed_lines=48
13894 ac_sed_frag=1 # Number of current file.
13895 ac_beg=1 # First line for current file.
13896 ac_end=$ac_max_sed_lines # Line after last line for current file.
13897 ac_more_lines=:
13898 ac_sed_cmds=
13899 while $ac_more_lines; do
13900 if test $ac_beg -gt 1; then
13901 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13902 else
13903 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13904 fi
13905 if test ! -s $tmp/subs.frag; then
13906 ac_more_lines=false
63e5e3e0 13907 else
3ed8e5b6
AT
13908 # The purpose of the label and of the branching condition is to
13909 # speed up the sed processing (if there are no `@' at all, there
13910 # is no need to browse any of the substitutions).
13911 # These are the two extra sed commands mentioned above.
13912 (echo ':t
13913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13914 if test -z "$ac_sed_cmds"; then
13915 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13916 else
13917 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13918 fi
13919 ac_sed_frag=`expr $ac_sed_frag + 1`
13920 ac_beg=$ac_end
13921 ac_end=`expr $ac_end + $ac_max_sed_lines`
63e5e3e0 13922 fi
3ed8e5b6
AT
13923 done
13924 if test -z "$ac_sed_cmds"; then
13925 ac_sed_cmds=cat
63e5e3e0 13926 fi
3ed8e5b6 13927fi # test -n "$CONFIG_FILES"
63e5e3e0 13928
3ed8e5b6
AT
13929_ACEOF
13930cat >>$CONFIG_STATUS <<\_ACEOF
13931for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
63e5e3e0 13932 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3ed8e5b6
AT
13933 case $ac_file in
13934 - | *:- | *:-:* ) # input from stdin
13935 cat >$tmp/stdin
13936 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13938 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13939 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13940 * ) ac_file_in=$ac_file.in ;;
63e5e3e0
AG
13941 esac
13942
3ed8e5b6
AT
13943 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13944 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13945$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13946 X"$ac_file" : 'X\(//\)[^/]' \| \
13947 X"$ac_file" : 'X\(//\)$' \| \
13948 X"$ac_file" : 'X\(/\)' \| \
13949 . : '\(.\)' 2>/dev/null ||
13950echo X"$ac_file" |
13951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13952 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13953 /^X\(\/\/\)$/{ s//\1/; q; }
13954 /^X\(\/\).*/{ s//\1/; q; }
13955 s/.*/./; q'`
13956 { if $as_mkdir_p; then
13957 mkdir -p "$ac_dir"
63e5e3e0 13958 else
3ed8e5b6
AT
13959 as_dir="$ac_dir"
13960 as_dirs=
13961 while test ! -d "$as_dir"; do
13962 as_dirs="$as_dir $as_dirs"
13963 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13964$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13965 X"$as_dir" : 'X\(//\)[^/]' \| \
13966 X"$as_dir" : 'X\(//\)$' \| \
13967 X"$as_dir" : 'X\(/\)' \| \
13968 . : '\(.\)' 2>/dev/null ||
13969echo X"$as_dir" |
13970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13971 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13972 /^X\(\/\/\)$/{ s//\1/; q; }
13973 /^X\(\/\).*/{ s//\1/; q; }
13974 s/.*/./; q'`
13975 done
13976 test ! -n "$as_dirs" || mkdir $as_dirs
13977 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13978echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13979 { (exit 1); exit 1; }; }; }
13980
13981 ac_builddir=.
13982
13983if test "$ac_dir" != .; then
13984 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13985 # A "../" for each directory in $ac_dir_suffix.
13986 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13987else
13988 ac_dir_suffix= ac_top_builddir=
13989fi
63e5e3e0 13990
3ed8e5b6
AT
13991case $srcdir in
13992 .) # No --srcdir option. We are building in place.
13993 ac_srcdir=.
13994 if test -z "$ac_top_builddir"; then
13995 ac_top_srcdir=.
13996 else
13997 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13998 fi ;;
13999 [\\/]* | ?:[\\/]* ) # Absolute path.
14000 ac_srcdir=$srcdir$ac_dir_suffix;
14001 ac_top_srcdir=$srcdir ;;
63e5e3e0 14002 *) # Relative path.
3ed8e5b6
AT
14003 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14004 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14005esac
14006
14007# Do not use `cd foo && pwd` to compute absolute paths, because
14008# the directories may not exist.
14009case `pwd` in
14010.) ac_abs_builddir="$ac_dir";;
14011*)
14012 case "$ac_dir" in
14013 .) ac_abs_builddir=`pwd`;;
14014 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14015 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14016 esac;;
14017esac
14018case $ac_abs_builddir in
14019.) ac_abs_top_builddir=${ac_top_builddir}.;;
14020*)
14021 case ${ac_top_builddir}. in
14022 .) ac_abs_top_builddir=$ac_abs_builddir;;
14023 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14024 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14025 esac;;
14026esac
14027case $ac_abs_builddir in
14028.) ac_abs_srcdir=$ac_srcdir;;
14029*)
14030 case $ac_srcdir in
14031 .) ac_abs_srcdir=$ac_abs_builddir;;
14032 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14033 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14034 esac;;
14035esac
14036case $ac_abs_builddir in
14037.) ac_abs_top_srcdir=$ac_top_srcdir;;
14038*)
14039 case $ac_top_srcdir in
14040 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14041 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14042 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14043 esac;;
14044esac
63e5e3e0 14045
63e5e3e0 14046
3ed8e5b6
AT
14047 case $INSTALL in
14048 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14049 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
63e5e3e0
AG
14050 esac
14051
88d8c771
AG
14052 if test x"$ac_file" != x-; then
14053 { echo "$as_me:$LINENO: creating $ac_file" >&5
14054echo "$as_me: creating $ac_file" >&6;}
14055 rm -f "$ac_file"
14056 fi
3ed8e5b6
AT
14057 # Let's still pretend it is `configure' which instantiates (i.e., don't
14058 # use $as_me), people would be surprised to read:
14059 # /* config.h. Generated by config.status. */
14060 if test x"$ac_file" = x-; then
14061 configure_input=
14062 else
14063 configure_input="$ac_file. "
14064 fi
14065 configure_input=$configure_input"Generated from `echo $ac_file_in |
14066 sed 's,.*/,,'` by configure."
14067
14068 # First look for the input files in the build tree, otherwise in the
14069 # src tree.
14070 ac_file_inputs=`IFS=:
14071 for f in $ac_file_in; do
14072 case $f in
14073 -) echo $tmp/stdin ;;
14074 [\\/$]*)
14075 # Absolute (can't be DOS-style, as IFS=:)
14076 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14077echo "$as_me: error: cannot find input file: $f" >&2;}
14078 { (exit 1); exit 1; }; }
14079 echo "$f";;
14080 *) # Relative
14081 if test -f "$f"; then
14082 # Build tree
14083 echo "$f"
14084 elif test -f "$srcdir/$f"; then
14085 # Source tree
14086 echo "$srcdir/$f"
14087 else
14088 # /dev/null tree
14089 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14090echo "$as_me: error: cannot find input file: $f" >&2;}
14091 { (exit 1); exit 1; }; }
14092 fi;;
14093 esac
14094 done` || { (exit 1); exit 1; }
14095_ACEOF
14096cat >>$CONFIG_STATUS <<_ACEOF
14097 sed "$ac_vpsub
14098$extrasub
14099_ACEOF
14100cat >>$CONFIG_STATUS <<\_ACEOF
14101:t
14102/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14103s,@configure_input@,$configure_input,;t t
14104s,@srcdir@,$ac_srcdir,;t t
14105s,@abs_srcdir@,$ac_abs_srcdir,;t t
14106s,@top_srcdir@,$ac_top_srcdir,;t t
14107s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14108s,@builddir@,$ac_builddir,;t t
14109s,@abs_builddir@,$ac_abs_builddir,;t t
14110s,@top_builddir@,$ac_top_builddir,;t t
14111s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14112s,@INSTALL@,$ac_INSTALL,;t t
14113" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14114 rm -f $tmp/stdin
14115 if test x"$ac_file" != x-; then
14116 mv $tmp/out $ac_file
14117 else
14118 cat $tmp/out
14119 rm -f $tmp/out
14120 fi
14121
14122done
14123_ACEOF
14124cat >>$CONFIG_STATUS <<\_ACEOF
14125
14126#
14127# CONFIG_HEADER section.
14128#
63e5e3e0
AG
14129
14130# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14131# NAME is the cpp macro being defined and VALUE is the value it is being given.
14132#
14133# ac_d sets the value in "#define NAME VALUE" lines.
3ed8e5b6
AT
14134ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14135ac_dB='[ ].*$,\1#\2'
14136ac_dC=' '
14137ac_dD=',;t'
14138# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14139ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14140ac_uB='$,\1#\2define\3'
63e5e3e0 14141ac_uC=' '
3ed8e5b6
AT
14142ac_uD=',;t'
14143
14144for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
63e5e3e0 14145 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3ed8e5b6
AT
14146 case $ac_file in
14147 - | *:- | *:-:* ) # input from stdin
14148 cat >$tmp/stdin
14149 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14150 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14151 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14152 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14153 * ) ac_file_in=$ac_file.in ;;
63e5e3e0
AG
14154 esac
14155
3ed8e5b6
AT
14156 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14157echo "$as_me: creating $ac_file" >&6;}
14158
14159 # First look for the input files in the build tree, otherwise in the
14160 # src tree.
14161 ac_file_inputs=`IFS=:
14162 for f in $ac_file_in; do
14163 case $f in
14164 -) echo $tmp/stdin ;;
14165 [\\/$]*)
14166 # Absolute (can't be DOS-style, as IFS=:)
14167 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14168echo "$as_me: error: cannot find input file: $f" >&2;}
14169 { (exit 1); exit 1; }; }
14170 # Do quote $f, to prevent DOS paths from being IFS'd.
14171 echo "$f";;
14172 *) # Relative
14173 if test -f "$f"; then
14174 # Build tree
14175 echo "$f"
14176 elif test -f "$srcdir/$f"; then
14177 # Source tree
14178 echo "$srcdir/$f"
14179 else
14180 # /dev/null tree
14181 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14182echo "$as_me: error: cannot find input file: $f" >&2;}
14183 { (exit 1); exit 1; }; }
14184 fi;;
14185 esac
14186 done` || { (exit 1); exit 1; }
14187 # Remove the trailing spaces.
14188 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14189
14190_ACEOF
14191
14192# Transform confdefs.h into two sed scripts, `conftest.defines' and
14193# `conftest.undefs', that substitutes the proper values into
14194# config.h.in to produce config.h. The first handles `#define'
14195# templates, and the second `#undef' templates.
14196# And first: Protect against being on the right side of a sed subst in
14197# config.status. Protect against being in an unquoted here document
14198# in config.status.
14199rm -f conftest.defines conftest.undefs
14200# Using a here document instead of a string reduces the quoting nightmare.
14201# Putting comments in sed scripts is not portable.
14202#
14203# `end' is used to avoid that the second main sed command (meant for
14204# 0-ary CPP macros) applies to n-ary macro definitions.
14205# See the Autoconf documentation for `clear'.
14206cat >confdef2sed.sed <<\_ACEOF
14207s/[\\&,]/\\&/g
14208s,[\\$`],\\&,g
14209t clear
14210: clear
14211s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14212t end
14213s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14214: end
14215_ACEOF
14216# If some macros were called several times there might be several times
14217# the same #defines, which is useless. Nevertheless, we may not want to
14218# sort them, since we want the *last* AC-DEFINE to be honored.
14219uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14220sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14221rm -f confdef2sed.sed
63e5e3e0
AG
14222
14223# This sed command replaces #undef with comments. This is necessary, for
14224# example, in the case of _POSIX_SOURCE, which is predefined and required
14225# on some systems where configure will not decide to define it.
3ed8e5b6
AT
14226cat >>conftest.undefs <<\_ACEOF
14227s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14228_ACEOF
14229
14230# Break up conftest.defines because some shells have a limit on the size
14231# of here documents, and old seds have small limits too (100 cmds).
14232echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14233echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14234echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14235echo ' :' >>$CONFIG_STATUS
14236rm -f conftest.tail
14237while grep . conftest.defines >/dev/null
14238do
14239 # Write a limited-size here document to $tmp/defines.sed.
14240 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14241 # Speed up: don't consider the non `#define' lines.
14242 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14243 # Work around the forget-to-reset-the-flag bug.
14244 echo 't clr' >>$CONFIG_STATUS
14245 echo ': clr' >>$CONFIG_STATUS
14246 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14247 echo 'CEOF
14248 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14249 rm -f $tmp/in
14250 mv $tmp/out $tmp/in
14251' >>$CONFIG_STATUS
14252 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14253 rm -f conftest.defines
14254 mv conftest.tail conftest.defines
14255done
14256rm -f conftest.defines
14257echo ' fi # grep' >>$CONFIG_STATUS
14258echo >>$CONFIG_STATUS
63e5e3e0 14259
3ed8e5b6
AT
14260# Break up conftest.undefs because some shells have a limit on the size
14261# of here documents, and old seds have small limits too (100 cmds).
14262echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
63e5e3e0 14263rm -f conftest.tail
3ed8e5b6 14264while grep . conftest.undefs >/dev/null
63e5e3e0 14265do
3ed8e5b6
AT
14266 # Write a limited-size here document to $tmp/undefs.sed.
14267 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14268 # Speed up: don't consider the non `#undef'
14269 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14270 # Work around the forget-to-reset-the-flag bug.
14271 echo 't clr' >>$CONFIG_STATUS
14272 echo ': clr' >>$CONFIG_STATUS
14273 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
63e5e3e0 14274 echo 'CEOF
3ed8e5b6
AT
14275 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14276 rm -f $tmp/in
14277 mv $tmp/out $tmp/in
14278' >>$CONFIG_STATUS
14279 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14280 rm -f conftest.undefs
14281 mv conftest.tail conftest.undefs
63e5e3e0 14282done
3ed8e5b6
AT
14283rm -f conftest.undefs
14284
14285cat >>$CONFIG_STATUS <<\_ACEOF
14286 # Let's still pretend it is `configure' which instantiates (i.e., don't
14287 # use $as_me), people would be surprised to read:
14288 # /* config.h. Generated by config.status. */
14289 if test x"$ac_file" = x-; then
14290 echo "/* Generated by configure. */" >$tmp/config.h
63e5e3e0 14291 else
3ed8e5b6 14292 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
63e5e3e0 14293 fi
3ed8e5b6
AT
14294 cat $tmp/in >>$tmp/config.h
14295 rm -f $tmp/in
14296 if test x"$ac_file" != x-; then
14297 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14298 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14299echo "$as_me: $ac_file is unchanged" >&6;}
14300 else
14301 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14302$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14303 X"$ac_file" : 'X\(//\)[^/]' \| \
14304 X"$ac_file" : 'X\(//\)$' \| \
14305 X"$ac_file" : 'X\(/\)' \| \
14306 . : '\(.\)' 2>/dev/null ||
14307echo X"$ac_file" |
14308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14310 /^X\(\/\/\)$/{ s//\1/; q; }
14311 /^X\(\/\).*/{ s//\1/; q; }
14312 s/.*/./; q'`
14313 { if $as_mkdir_p; then
14314 mkdir -p "$ac_dir"
14315 else
14316 as_dir="$ac_dir"
14317 as_dirs=
14318 while test ! -d "$as_dir"; do
14319 as_dirs="$as_dir $as_dirs"
14320 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14321$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14322 X"$as_dir" : 'X\(//\)[^/]' \| \
14323 X"$as_dir" : 'X\(//\)$' \| \
14324 X"$as_dir" : 'X\(/\)' \| \
14325 . : '\(.\)' 2>/dev/null ||
14326echo X"$as_dir" |
14327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14329 /^X\(\/\/\)$/{ s//\1/; q; }
14330 /^X\(\/\).*/{ s//\1/; q; }
14331 s/.*/./; q'`
14332 done
14333 test ! -n "$as_dirs" || mkdir $as_dirs
14334 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14335echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14336 { (exit 1); exit 1; }; }; }
63e5e3e0 14337
3ed8e5b6
AT
14338 rm -f $ac_file
14339 mv $tmp/config.h $ac_file
14340 fi
14341 else
14342 cat $tmp/config.h
14343 rm -f $tmp/config.h
14344 fi
14345# Compute $ac_file's index in $config_headers.
14346_am_stamp_count=1
14347for _am_header in $config_headers :; do
14348 case $_am_header in
14349 $ac_file | $ac_file:* )
14350 break ;;
14351 * )
14352 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14353 esac
14354done
14355echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14356$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14357 X$ac_file : 'X\(//\)[^/]' \| \
14358 X$ac_file : 'X\(//\)$' \| \
14359 X$ac_file : 'X\(/\)' \| \
14360 . : '\(.\)' 2>/dev/null ||
14361echo X$ac_file |
14362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14363 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14364 /^X\(\/\/\)$/{ s//\1/; q; }
14365 /^X\(\/\).*/{ s//\1/; q; }
14366 s/.*/./; q'`/stamp-h$_am_stamp_count
14367done
14368_ACEOF
14369cat >>$CONFIG_STATUS <<\_ACEOF
1450eb7a 14370
3ed8e5b6
AT
14371#
14372# CONFIG_LINKS section.
14373#
1450eb7a 14374
3ed8e5b6
AT
14375for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
14376 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14377 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
1450eb7a 14378
3ed8e5b6
AT
14379 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
14380echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
1450eb7a
AT
14381
14382 if test ! -r $srcdir/$ac_source; then
3ed8e5b6
AT
14383 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
14384echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
14385 { (exit 1); exit 1; }; }
1450eb7a
AT
14386 fi
14387 rm -f $ac_dest
14388
14389 # Make relative symlinks.
3ed8e5b6
AT
14390 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
14391$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14392 X"$ac_dest" : 'X\(//\)[^/]' \| \
14393 X"$ac_dest" : 'X\(//\)$' \| \
14394 X"$ac_dest" : 'X\(/\)' \| \
14395 . : '\(.\)' 2>/dev/null ||
14396echo X"$ac_dest" |
14397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14399 /^X\(\/\/\)$/{ s//\1/; q; }
14400 /^X\(\/\).*/{ s//\1/; q; }
14401 s/.*/./; q'`
14402 { if $as_mkdir_p; then
14403 mkdir -p "$ac_dest_dir"
1450eb7a 14404 else
3ed8e5b6
AT
14405 as_dir="$ac_dest_dir"
14406 as_dirs=
14407 while test ! -d "$as_dir"; do
14408 as_dirs="$as_dir $as_dirs"
14409 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14410$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14411 X"$as_dir" : 'X\(//\)[^/]' \| \
14412 X"$as_dir" : 'X\(//\)$' \| \
14413 X"$as_dir" : 'X\(/\)' \| \
14414 . : '\(.\)' 2>/dev/null ||
14415echo X"$as_dir" |
14416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14417 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14418 /^X\(\/\/\)$/{ s//\1/; q; }
14419 /^X\(\/\).*/{ s//\1/; q; }
14420 s/.*/./; q'`
14421 done
14422 test ! -n "$as_dirs" || mkdir $as_dirs
14423 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
14424echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
14425 { (exit 1); exit 1; }; }; }
14426
14427 ac_builddir=.
14428
14429if test "$ac_dest_dir" != .; then
14430 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
14431 # A "../" for each directory in $ac_dir_suffix.
14432 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14433else
14434 ac_dir_suffix= ac_top_builddir=
14435fi
14436
14437case $srcdir in
14438 .) # No --srcdir option. We are building in place.
14439 ac_srcdir=.
14440 if test -z "$ac_top_builddir"; then
14441 ac_top_srcdir=.
14442 else
14443 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14444 fi ;;
14445 [\\/]* | ?:[\\/]* ) # Absolute path.
14446 ac_srcdir=$srcdir$ac_dir_suffix;
14447 ac_top_srcdir=$srcdir ;;
14448 *) # Relative path.
14449 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14450 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14451esac
14452
14453# Do not use `cd foo && pwd` to compute absolute paths, because
14454# the directories may not exist.
14455case `pwd` in
14456.) ac_abs_builddir="$ac_dest_dir";;
14457*)
14458 case "$ac_dest_dir" in
14459 .) ac_abs_builddir=`pwd`;;
14460 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
14461 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
14462 esac;;
14463esac
14464case $ac_abs_builddir in
14465.) ac_abs_top_builddir=${ac_top_builddir}.;;
14466*)
14467 case ${ac_top_builddir}. in
14468 .) ac_abs_top_builddir=$ac_abs_builddir;;
14469 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14470 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14471 esac;;
14472esac
14473case $ac_abs_builddir in
14474.) ac_abs_srcdir=$ac_srcdir;;
14475*)
14476 case $ac_srcdir in
14477 .) ac_abs_srcdir=$ac_abs_builddir;;
14478 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14479 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14480 esac;;
14481esac
14482case $ac_abs_builddir in
14483.) ac_abs_top_srcdir=$ac_top_srcdir;;
14484*)
14485 case $ac_top_srcdir in
14486 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14487 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14488 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14489 esac;;
14490esac
14491
1450eb7a 14492
3ed8e5b6
AT
14493 case $srcdir in
14494 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
14495 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
1450eb7a
AT
14496 esac
14497
3ed8e5b6
AT
14498 # Try a symlink, then a hard link, then a copy.
14499 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
14500 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
14501 cp -p $srcdir/$ac_source $ac_dest ||
14502 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
14503echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
14504 { (exit 1); exit 1; }; }
1450eb7a 14505done
3ed8e5b6
AT
14506_ACEOF
14507cat >>$CONFIG_STATUS <<\_ACEOF
63e5e3e0 14508
3ed8e5b6
AT
14509#
14510# CONFIG_COMMANDS section.
14511#
14512for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14513 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14514 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14515 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14516$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14517 X"$ac_dest" : 'X\(//\)[^/]' \| \
14518 X"$ac_dest" : 'X\(//\)$' \| \
14519 X"$ac_dest" : 'X\(/\)' \| \
14520 . : '\(.\)' 2>/dev/null ||
14521echo X"$ac_dest" |
14522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14523 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14524 /^X\(\/\/\)$/{ s//\1/; q; }
14525 /^X\(\/\).*/{ s//\1/; q; }
14526 s/.*/./; q'`
14527 { if $as_mkdir_p; then
14528 mkdir -p "$ac_dir"
14529 else
14530 as_dir="$ac_dir"
14531 as_dirs=
14532 while test ! -d "$as_dir"; do
14533 as_dirs="$as_dir $as_dirs"
14534 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14535$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14536 X"$as_dir" : 'X\(//\)[^/]' \| \
14537 X"$as_dir" : 'X\(//\)$' \| \
14538 X"$as_dir" : 'X\(/\)' \| \
14539 . : '\(.\)' 2>/dev/null ||
14540echo X"$as_dir" |
14541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14542 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14543 /^X\(\/\/\)$/{ s//\1/; q; }
14544 /^X\(\/\).*/{ s//\1/; q; }
14545 s/.*/./; q'`
14546 done
14547 test ! -n "$as_dirs" || mkdir $as_dirs
14548 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14549echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14550 { (exit 1); exit 1; }; }; }
1450eb7a 14551
3ed8e5b6
AT
14552 ac_builddir=.
14553
14554if test "$ac_dir" != .; then
14555 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14556 # A "../" for each directory in $ac_dir_suffix.
14557 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14558else
14559 ac_dir_suffix= ac_top_builddir=
14560fi
1450eb7a 14561
3ed8e5b6
AT
14562case $srcdir in
14563 .) # No --srcdir option. We are building in place.
14564 ac_srcdir=.
14565 if test -z "$ac_top_builddir"; then
14566 ac_top_srcdir=.
14567 else
14568 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14569 fi ;;
14570 [\\/]* | ?:[\\/]* ) # Absolute path.
14571 ac_srcdir=$srcdir$ac_dir_suffix;
14572 ac_top_srcdir=$srcdir ;;
14573 *) # Relative path.
14574 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14575 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14576esac
1450eb7a 14577
3ed8e5b6
AT
14578# Do not use `cd foo && pwd` to compute absolute paths, because
14579# the directories may not exist.
14580case `pwd` in
14581.) ac_abs_builddir="$ac_dir";;
14582*)
14583 case "$ac_dir" in
14584 .) ac_abs_builddir=`pwd`;;
14585 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14586 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14587 esac;;
14588esac
14589case $ac_abs_builddir in
14590.) ac_abs_top_builddir=${ac_top_builddir}.;;
14591*)
14592 case ${ac_top_builddir}. in
14593 .) ac_abs_top_builddir=$ac_abs_builddir;;
14594 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14595 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14596 esac;;
14597esac
14598case $ac_abs_builddir in
14599.) ac_abs_srcdir=$ac_srcdir;;
14600*)
14601 case $ac_srcdir in
14602 .) ac_abs_srcdir=$ac_abs_builddir;;
14603 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14604 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14605 esac;;
14606esac
14607case $ac_abs_builddir in
14608.) ac_abs_top_srcdir=$ac_top_srcdir;;
14609*)
14610 case $ac_top_srcdir in
14611 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14612 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14613 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14614 esac;;
14615esac
63e5e3e0 14616
63e5e3e0 14617
3ed8e5b6
AT
14618 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14619echo "$as_me: executing $ac_dest commands" >&6;}
14620 case $ac_dest in
14621 default-1 )
14622# Only add multilib support code if we just rebuilt the top-level
14623# Makefile.
14624case " $CONFIG_FILES " in
14625 *" Makefile "*)
14626 ac_file=Makefile . ${multi_basedir}/config-ml.in
14627 ;;
14628esac ;;
14629 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14630 # Strip MF so we end up with the name of the file.
14631 mf=`echo "$mf" | sed -e 's/:.*$//'`
14632 # Check whether this is an Automake generated Makefile or not.
14633 # We used to match only the files named `Makefile.in', but
14634 # some people rename them; so instead we look at the file content.
14635 # Grep'ing the first line is not enough: some people post-process
14636 # each Makefile.in and add a new line on top of each file to say so.
14637 # So let's grep whole file.
14638 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14639 dirpart=`(dirname "$mf") 2>/dev/null ||
14640$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14641 X"$mf" : 'X\(//\)[^/]' \| \
14642 X"$mf" : 'X\(//\)$' \| \
14643 X"$mf" : 'X\(/\)' \| \
14644 . : '\(.\)' 2>/dev/null ||
14645echo X"$mf" |
14646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14648 /^X\(\/\/\)$/{ s//\1/; q; }
14649 /^X\(\/\).*/{ s//\1/; q; }
14650 s/.*/./; q'`
14651 else
14652 continue
14653 fi
b85e31b9
KC
14654 # Extract the definition of DEPDIR, am__include, and am__quote
14655 # from the Makefile without running `make'.
076e5443 14656 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
3ed8e5b6 14657 test -z "$DEPDIR" && continue
b85e31b9
KC
14658 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14659 test -z "am__include" && continue
14660 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
3ed8e5b6 14661 # When using ansi2knr, U may be empty or an underscore; expand it
076e5443 14662 U=`sed -n 's/^U = //p' < "$mf"`
b85e31b9
KC
14663 # Find all dependency output files, they are included files with
14664 # $(DEPDIR) in their names. We invoke sed twice because it is the
14665 # simplest approach to changing $(DEPDIR) to its actual value in the
14666 # expansion.
14667 for file in `sed -n "
14668 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
3ed8e5b6
AT
14669 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14670 # Make sure the directory exists.
14671 test -f "$dirpart/$file" && continue
14672 fdir=`(dirname "$file") 2>/dev/null ||
14673$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14674 X"$file" : 'X\(//\)[^/]' \| \
14675 X"$file" : 'X\(//\)$' \| \
14676 X"$file" : 'X\(/\)' \| \
14677 . : '\(.\)' 2>/dev/null ||
14678echo X"$file" |
14679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14681 /^X\(\/\/\)$/{ s//\1/; q; }
14682 /^X\(\/\).*/{ s//\1/; q; }
14683 s/.*/./; q'`
14684 { if $as_mkdir_p; then
14685 mkdir -p $dirpart/$fdir
14686 else
14687 as_dir=$dirpart/$fdir
14688 as_dirs=
14689 while test ! -d "$as_dir"; do
14690 as_dirs="$as_dir $as_dirs"
14691 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14692$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14693 X"$as_dir" : 'X\(//\)[^/]' \| \
14694 X"$as_dir" : 'X\(//\)$' \| \
14695 X"$as_dir" : 'X\(/\)' \| \
14696 . : '\(.\)' 2>/dev/null ||
14697echo X"$as_dir" |
14698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14700 /^X\(\/\/\)$/{ s//\1/; q; }
14701 /^X\(\/\).*/{ s//\1/; q; }
14702 s/.*/./; q'`
14703 done
14704 test ! -n "$as_dirs" || mkdir $as_dirs
14705 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14706echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14707 { (exit 1); exit 1; }; }; }
3c18f2d1 14708
3ed8e5b6
AT
14709 # echo "creating $dirpart/$file"
14710 echo '# dummy' > "$dirpart/$file"
14711 done
14712done
1cf3d07d
SE
14713 ;;
14714 libtool )
14715
14716 # See if we are running on zsh, and set the options which allow our
14717 # commands through without removal of \ escapes.
14718 if test -n "${ZSH_VERSION+set}" ; then
14719 setopt NO_GLOB_SUBST
14720 fi
14721
14722 cfgfile="${ofile}T"
14723 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14724 $RM "$cfgfile"
14725
14726 cat <<_LT_EOF >> "$cfgfile"
14727#! $SHELL
14728
14729# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14730# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14731# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14732# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14733#
14734# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14735# 2006, 2007 Free Software Foundation, Inc.
14736#
14737# This file is part of GNU Libtool:
14738# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14739#
14740# This program is free software; you can redistribute it and/or modify
14741# it under the terms of the GNU General Public License as published by
14742# the Free Software Foundation; either version 2 of the License, or
14743# (at your option) any later version.
14744#
14745# This program is distributed in the hope that it will be useful, but
14746# WITHOUT ANY WARRANTY; without even the implied warranty of
14747# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14748# General Public License for more details.
14749#
14750# You should have received a copy of the GNU General Public License
14751# along with this program; if not, a copy can be downloaded from
14752# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14753# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14754# MA 02110-1301, USA.
14755#
14756# As a special exception to the GNU General Public License, if you
14757# distribute this file as part of a program that contains a
14758# configuration script generated by Autoconf, you may include it under
14759# the same distribution terms that you use for the rest of that program.
14760
14761
14762# The names of the tagged configurations supported by this script.
14763available_tags=""
14764
14765# ### BEGIN LIBTOOL CONFIG
14766
14767# Which release of libtool.m4 was used?
14768macro_version=$macro_version
14769macro_revision=$macro_revision
14770
14771# Whether or not to build shared libraries.
14772build_libtool_libs=$enable_shared
14773
14774# Whether or not to build static libraries.
14775build_old_libs=$enable_static
14776
14777# What type of objects to build.
14778pic_mode=$pic_mode
14779
14780# Whether or not to optimize for fast installation.
14781fast_install=$enable_fast_install
14782
14783# The host system.
14784host_alias=$host_alias
14785host=$host
14786host_os=$host_os
14787
14788# The build system.
14789build_alias=$build_alias
14790build=$build
14791build_os=$build_os
14792
14793# A sed program that does not truncate output.
14794SED=$lt_SED
14795
14796# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14797Xsed="\$SED -e 1s/^X//"
14798
14799# A grep program that handles long lines.
14800GREP=$lt_GREP
14801
14802# An ERE matcher.
14803EGREP=$lt_EGREP
14804
14805# A literal string matcher.
14806FGREP=$lt_FGREP
14807
14808# A BSD- or MS-compatible name lister.
14809NM=$lt_NM
14810
14811# Whether we need soft or hard links.
14812LN_S=$lt_LN_S
14813
14814# What is the maximum length of a command?
14815max_cmd_len=$max_cmd_len
14816
14817# Object file suffix (normally "o").
14818objext=$ac_objext
14819
14820# Executable file suffix (normally "").
14821exeext=$exeext
14822
14823# whether the shell understands "unset".
14824lt_unset=$lt_unset
14825
14826# turn spaces into newlines.
14827SP2NL=$lt_lt_SP2NL
14828
14829# turn newlines into spaces.
14830NL2SP=$lt_lt_NL2SP
14831
14832# How to create reloadable object files.
14833reload_flag=$lt_reload_flag
14834reload_cmds=$lt_reload_cmds
14835
14836# Method to check whether dependent libraries are shared objects.
14837deplibs_check_method=$lt_deplibs_check_method
14838
14839# Command to use when deplibs_check_method == "file_magic".
14840file_magic_cmd=$lt_file_magic_cmd
14841
14842# The archiver.
14843AR=$lt_AR
14844AR_FLAGS=$lt_AR_FLAGS
14845
14846# A symbol stripping program.
14847STRIP=$lt_STRIP
14848
14849# Commands used to install an old-style archive.
14850RANLIB=$lt_RANLIB
14851old_postinstall_cmds=$lt_old_postinstall_cmds
14852old_postuninstall_cmds=$lt_old_postuninstall_cmds
14853
14854# A C compiler.
14855LTCC=$lt_CC
14856
14857# LTCC compiler flags.
14858LTCFLAGS=$lt_CFLAGS
14859
14860# Take the output of nm and produce a listing of raw symbols and C names.
14861global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14862
14863# Transform the output of nm in a proper C declaration.
14864global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14865
14866# Transform the output of nm in a C name address pair.
14867global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14868
14869# The name of the directory that contains temporary libtool files.
14870objdir=$objdir
14871
14872# Shell to use when invoking shell scripts.
14873SHELL=$lt_SHELL
14874
14875# An echo program that does not interpret backslashes.
14876ECHO=$lt_ECHO
14877
14878# Used to examine libraries when file_magic_cmd begins with "file".
14879MAGIC_CMD=$MAGIC_CMD
14880
14881# Must we lock files when doing compilation?
14882need_locks=$lt_need_locks
14883
14884# Old archive suffix (normally "a").
14885libext=$libext
14886
14887# Shared library suffix (normally ".so").
14888shrext_cmds=$lt_shrext_cmds
14889
14890# The commands to extract the exported symbol list from a shared archive.
14891extract_expsyms_cmds=$lt_extract_expsyms_cmds
14892
14893# Variables whose values should be saved in libtool wrapper scripts and
14894# restored at link time.
14895variables_saved_for_relink=$lt_variables_saved_for_relink
14896
14897# Do we need the "lib" prefix for modules?
14898need_lib_prefix=$need_lib_prefix
14899
14900# Do we need a version for libraries?
14901need_version=$need_version
14902
14903# Library versioning type.
14904version_type=$version_type
14905
14906# Shared library runtime path variable.
14907runpath_var=$runpath_var
14908
14909# Shared library path variable.
14910shlibpath_var=$shlibpath_var
14911
14912# Is shlibpath searched before the hard-coded library search path?
14913shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14914
14915# Format of library name prefix.
14916libname_spec=$lt_libname_spec
14917
14918# List of archive names. First name is the real one, the rest are links.
14919# The last name is the one that the linker finds with -lNAME
14920library_names_spec=$lt_library_names_spec
14921
14922# The coded name of the library, if different from the real name.
14923soname_spec=$lt_soname_spec
14924
14925# Command to use after installation of a shared archive.
14926postinstall_cmds=$lt_postinstall_cmds
14927
14928# Command to use after uninstallation of a shared archive.
14929postuninstall_cmds=$lt_postuninstall_cmds
14930
14931# Commands used to finish a libtool library installation in a directory.
14932finish_cmds=$lt_finish_cmds
14933
14934# As "finish_cmds", except a single script fragment to be evaled but
14935# not shown.
14936finish_eval=$lt_finish_eval
14937
14938# Whether we should hardcode library paths into libraries.
14939hardcode_into_libs=$hardcode_into_libs
14940
14941# Compile-time system search path for libraries.
14942sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14943
14944# Run-time system search path for libraries.
14945sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14946
14947# Whether dlopen is supported.
14948dlopen_support=$enable_dlopen
14949
14950# Whether dlopen of programs is supported.
14951dlopen_self=$enable_dlopen_self
14952
14953# Whether dlopen of statically linked programs is supported.
14954dlopen_self_static=$enable_dlopen_self_static
14955
14956# Commands to strip libraries.
14957old_striplib=$lt_old_striplib
14958striplib=$lt_striplib
14959
14960
14961# The linker used to build libraries.
14962LD=$lt_LD
14963
14964# Commands used to build an old-style archive.
14965old_archive_cmds=$lt_old_archive_cmds
14966
14967# A language specific compiler.
14968CC=$lt_compiler
14969
14970# Is the compiler the GNU compiler?
14971with_gcc=$GCC
14972
14973# Compiler flag to turn off builtin functions.
14974no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14975
14976# How to pass a linker flag through the compiler.
14977wl=$lt_lt_prog_compiler_wl
14978
14979# Additional compiler flags for building library objects.
14980pic_flag=$lt_lt_prog_compiler_pic
14981
14982# Compiler flag to prevent dynamic linking.
14983link_static_flag=$lt_lt_prog_compiler_static
14984
14985# Does compiler simultaneously support -c and -o options?
14986compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14987
14988# Whether or not to add -lc for building shared libraries.
14989build_libtool_need_lc=$archive_cmds_need_lc
14990
14991# Whether or not to disallow shared libs when runtime libs are static.
14992allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14993
14994# Compiler flag to allow reflexive dlopens.
14995export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14996
14997# Compiler flag to generate shared objects directly from archives.
14998whole_archive_flag_spec=$lt_whole_archive_flag_spec
14999
15000# Whether the compiler copes with passing no objects directly.
15001compiler_needs_object=$lt_compiler_needs_object
15002
15003# Create an old-style archive from a shared archive.
15004old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15005
15006# Create a temporary old-style archive to link instead of a shared archive.
15007old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15008
15009# Commands used to build a shared archive.
15010archive_cmds=$lt_archive_cmds
15011archive_expsym_cmds=$lt_archive_expsym_cmds
15012
15013# Commands used to build a loadable module if different from building
15014# a shared archive.
15015module_cmds=$lt_module_cmds
15016module_expsym_cmds=$lt_module_expsym_cmds
15017
15018# Whether we are building with GNU ld or not.
15019with_gnu_ld=$lt_with_gnu_ld
15020
15021# Flag that allows shared libraries with undefined symbols to be built.
15022allow_undefined_flag=$lt_allow_undefined_flag
15023
15024# Flag that enforces no undefined symbols.
15025no_undefined_flag=$lt_no_undefined_flag
15026
15027# Flag to hardcode \$libdir into a binary during linking.
15028# This must work even if \$libdir does not exist
15029hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15030
15031# If ld is used when linking, flag to hardcode \$libdir into a binary
15032# during linking. This must work even if \$libdir does not exist.
15033hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15034
15035# Whether we need a single "-rpath" flag with a separated argument.
15036hardcode_libdir_separator=$lt_hardcode_libdir_separator
15037
15038# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15039# DIR into the resulting binary.
15040hardcode_direct=$hardcode_direct
15041
15042# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15043# DIR into the resulting binary and the resulting library dependency is
15044# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15045# library is relocated.
15046hardcode_direct_absolute=$hardcode_direct_absolute
15047
15048# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15049# into the resulting binary.
15050hardcode_minus_L=$hardcode_minus_L
15051
15052# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15053# into the resulting binary.
15054hardcode_shlibpath_var=$hardcode_shlibpath_var
15055
15056# Set to "yes" if building a shared library automatically hardcodes DIR
15057# into the library and all subsequent libraries and executables linked
15058# against it.
15059hardcode_automatic=$hardcode_automatic
15060
15061# Set to yes if linker adds runtime paths of dependent libraries
15062# to runtime path list.
15063inherit_rpath=$inherit_rpath
15064
15065# Whether libtool must link a program against all its dependency libraries.
15066link_all_deplibs=$link_all_deplibs
15067
15068# Fix the shell variable \$srcfile for the compiler.
15069fix_srcfile_path=$lt_fix_srcfile_path
15070
15071# Set to "yes" if exported symbols are required.
15072always_export_symbols=$always_export_symbols
15073
15074# The commands to list exported symbols.
15075export_symbols_cmds=$lt_export_symbols_cmds
15076
15077# Symbols that should not be listed in the preloaded symbols.
15078exclude_expsyms=$lt_exclude_expsyms
15079
15080# Symbols that must always be exported.
15081include_expsyms=$lt_include_expsyms
15082
15083# Commands necessary for linking programs (against libraries) with templates.
15084prelink_cmds=$lt_prelink_cmds
15085
15086# Specify filename containing input files.
15087file_list_spec=$lt_file_list_spec
15088
15089# How to hardcode a shared library path into an executable.
15090hardcode_action=$hardcode_action
15091
15092# ### END LIBTOOL CONFIG
15093
15094_LT_EOF
15095
15096 case $host_os in
15097 aix3*)
15098 cat <<\_LT_EOF >> "$cfgfile"
15099# AIX sometimes has problems with the GCC collect2 program. For some
15100# reason, if we set the COLLECT_NAMES environment variable, the problems
15101# vanish in a puff of smoke.
15102if test "X${COLLECT_NAMES+set}" != Xset; then
15103 COLLECT_NAMES=
15104 export COLLECT_NAMES
15105fi
15106_LT_EOF
15107 ;;
15108 esac
15109
15110
15111ltmain="$ac_aux_dir/ltmain.sh"
15112
15113
15114 # We use sed instead of cat because bash on DJGPP gets confused if
15115 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15116 # text mode, it properly converts lines to CR/LF. This bash problem
15117 # is reportedly fixed, but why not run on old versions too?
15118 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15119 || (rm -f "$cfgfile"; exit 1)
15120
15121 case $xsi_shell in
15122 yes)
15123 cat << \_LT_EOF >> "$cfgfile"
15124# func_dirname file append nondir_replacement
15125# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15126# otherwise set result to NONDIR_REPLACEMENT.
15127func_dirname ()
15128{
15129 case ${1} in
15130 */*) func_dirname_result="${1%/*}${2}" ;;
15131 * ) func_dirname_result="${3}" ;;
15132 esac
15133}
15134
15135# func_basename file
15136func_basename ()
15137{
15138 func_basename_result="${1##*/}"
15139}
15140
15141# func_stripname prefix suffix name
15142# strip PREFIX and SUFFIX off of NAME.
15143# PREFIX and SUFFIX must not contain globbing or regex special
15144# characters, hashes, percent signs, but SUFFIX may contain a leading
15145# dot (in which case that matches only a dot).
15146func_stripname ()
15147{
15148 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15149 # positional parameters, so assign one to ordinary parameter first.
15150 func_stripname_result=${3}
15151 func_stripname_result=${func_stripname_result#"${1}"}
15152 func_stripname_result=${func_stripname_result%"${2}"}
15153}
15154
15155# func_opt_split
15156func_opt_split ()
15157{
15158 func_opt_split_opt=${1%%=*}
15159 func_opt_split_arg=${1#*=}
15160}
15161
15162# func_lo2o object
15163func_lo2o ()
15164{
15165 case ${1} in
15166 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15167 *) func_lo2o_result=${1} ;;
15168 esac
15169}
15170_LT_EOF
15171 ;;
15172 *) # Bourne compatible functions.
15173 cat << \_LT_EOF >> "$cfgfile"
15174# func_dirname file append nondir_replacement
15175# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15176# otherwise set result to NONDIR_REPLACEMENT.
15177func_dirname ()
15178{
15179 # Extract subdirectory from the argument.
15180 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15181 if test "X$func_dirname_result" = "X${1}"; then
15182 func_dirname_result="${3}"
15183 else
15184 func_dirname_result="$func_dirname_result${2}"
15185 fi
15186}
15187
15188# func_basename file
15189func_basename ()
15190{
15191 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15192}
15193
15194# func_stripname prefix suffix name
15195# strip PREFIX and SUFFIX off of NAME.
15196# PREFIX and SUFFIX must not contain globbing or regex special
15197# characters, hashes, percent signs, but SUFFIX may contain a leading
15198# dot (in which case that matches only a dot).
15199# func_strip_suffix prefix name
15200func_stripname ()
15201{
15202 case ${2} in
15203 .*) func_stripname_result=`$ECHO "X${3}" \
15204 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15205 *) func_stripname_result=`$ECHO "X${3}" \
15206 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15207 esac
15208}
15209
15210# sed scripts:
15211my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15212my_sed_long_arg='1s/^-[^=]*=//'
15213
15214# func_opt_split
15215func_opt_split ()
15216{
15217 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15218 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15219}
15220
15221# func_lo2o object
15222func_lo2o ()
15223{
15224 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15225}
15226_LT_EOF
15227esac
15228
15229case $lt_shell_append in
15230 yes)
15231 cat << \_LT_EOF >> "$cfgfile"
15232
15233# func_append var value
15234# Append VALUE to the end of shell variable VAR.
15235func_append ()
15236{
15237 eval "$1+=\$2"
15238}
15239_LT_EOF
15240 ;;
15241 *)
15242 cat << \_LT_EOF >> "$cfgfile"
15243
15244# func_append var value
15245# Append VALUE to the end of shell variable VAR.
15246func_append ()
15247{
15248 eval "$1=\$$1\$2"
15249}
15250_LT_EOF
15251 ;;
15252 esac
15253
15254
15255 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15256 || (rm -f "$cfgfile"; exit 1)
15257
15258 mv -f "$cfgfile" "$ofile" ||
15259 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15260 chmod +x "$ofile"
15261
3ed8e5b6
AT
15262 ;;
15263 include ) test -d include || mkdir include ;;
15264 src )
15265test -d src || mkdir src
15266test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15267 ;;
15268 esac
15269done
15270_ACEOF
15271
15272cat >>$CONFIG_STATUS <<\_ACEOF
15273
15274{ (exit 0); exit 0; }
15275_ACEOF
63e5e3e0 15276chmod +x $CONFIG_STATUS
3ed8e5b6
AT
15277ac_clean_files=$ac_clean_files_save
15278
15279
15280# configure is writing to config.log, and then calls config.status.
15281# config.status does its own redirection, appending to config.log.
15282# Unfortunately, on DOS this fails, as config.log is still kept open
15283# by configure, so config.status won't be able to write to it; its
15284# output is simply discarded. So we exec the FD to /dev/null,
15285# effectively closing config.log, so it can be properly (re)opened and
15286# appended to by config.status. When coming back to configure, we
15287# need to make the FD available again.
15288if test "$no_create" != yes; then
15289 ac_cs_success=:
15290 ac_config_status_args=
15291 test "$silent" = yes &&
15292 ac_config_status_args="$ac_config_status_args --quiet"
15293 exec 5>/dev/null
15294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15295 exec 5>>config.log
15296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15297 # would make configure fail if this is the last instruction.
15298 $ac_cs_success || { (exit 1); exit 1; }
15299fi
63e5e3e0 15300