re PR tree-optimization/36891 (ICE with vector division and -ffast-math and LIM)
[official-gcc.git] / boehm-gc / configure
blob4bda749b535d946de83072b2461dbf888c662db1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
293 done
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
366 prev="$cmd"
367 done
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
423 ac_unique_file="gcj_mlc.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical mkinstalldirs 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 CXX ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CFLAGS CXXFLAGS CCAS CCASFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GC_CFLAGS LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS LDFLAGS CXXCPP THREADLIBS POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE extra_ldflags_libgc EXTRA_TEST_LIBS target_all CPLUSPLUS_TRUE CPLUSPLUS_FALSE AM_CPPFLAGS addobjs addincludes addlibs addtests MY_CFLAGS toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
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.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
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
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
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=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
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" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
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"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
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 ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
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=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
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=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
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 ;;
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=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
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=*)
661 program_prefix=$ac_optarg ;;
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=*)
668 program_suffix=$ac_optarg ;;
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=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
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=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
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=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
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; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
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" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
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=*)
767 x_includes=$ac_optarg ;;
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=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
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 ;;
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}
799 esac
800 done
802 if test -n "$ac_prev"; then
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; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
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
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
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; }; };;
828 esac
829 done
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.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if 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
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
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 ||
865 echo 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'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
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; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CXXCPP_set=${CXXCPP+set}
924 ac_env_CXXCPP_value=$CXXCPP
925 ac_cv_env_CXXCPP_set=${CXXCPP+set}
926 ac_cv_env_CXXCPP_value=$CXXCPP
929 # Report the --help message.
931 if test "$ac_init_help" = "long"; then
932 # Omit some internal or obsolete options to make the list less imposing.
933 # This message is too long to be a string in the A/UX 3.1 sh.
934 cat <<_ACEOF
935 \`configure' configures this package to adapt to many kinds of systems.
937 Usage: $0 [OPTION]... [VAR=VALUE]...
939 To assign environment variables (e.g., CC, CFLAGS...), specify them as
940 VAR=VALUE. See below for descriptions of some of the useful variables.
942 Defaults for the options are specified in brackets.
944 Configuration:
945 -h, --help display this help and exit
946 --help=short display options specific to this package
947 --help=recursive display the short help of all the included packages
948 -V, --version display version information and exit
949 -q, --quiet, --silent do not print \`checking...' messages
950 --cache-file=FILE cache test results in FILE [disabled]
951 -C, --config-cache alias for \`--cache-file=config.cache'
952 -n, --no-create do not create output files
953 --srcdir=DIR find the sources in DIR [configure dir or \`..']
955 _ACEOF
957 cat <<_ACEOF
958 Installation directories:
959 --prefix=PREFIX install architecture-independent files in PREFIX
960 [$ac_default_prefix]
961 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
962 [PREFIX]
964 By default, \`make install' will install all the files in
965 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
966 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
967 for instance \`--prefix=\$HOME'.
969 For better control, use the options below.
971 Fine tuning of the installation directories:
972 --bindir=DIR user executables [EPREFIX/bin]
973 --sbindir=DIR system admin executables [EPREFIX/sbin]
974 --libexecdir=DIR program executables [EPREFIX/libexec]
975 --datadir=DIR read-only architecture-independent data [PREFIX/share]
976 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
977 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
978 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
979 --libdir=DIR object code libraries [EPREFIX/lib]
980 --includedir=DIR C header files [PREFIX/include]
981 --oldincludedir=DIR C header files for non-gcc [/usr/include]
982 --infodir=DIR info documentation [PREFIX/info]
983 --mandir=DIR man documentation [PREFIX/man]
984 _ACEOF
986 cat <<\_ACEOF
988 Program names:
989 --program-prefix=PREFIX prepend PREFIX to installed program names
990 --program-suffix=SUFFIX append SUFFIX to installed program names
991 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
993 System types:
994 --build=BUILD configure for building on BUILD [guessed]
995 --host=HOST cross-compile to build programs to run on HOST [BUILD]
996 --target=TARGET configure for building compilers for TARGET [HOST]
997 _ACEOF
1000 if test -n "$ac_init_help"; then
1002 cat <<\_ACEOF
1004 Optional Features:
1005 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1006 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1007 --enable-multilib build many library versions (default)
1008 --disable-dependency-tracking speeds up one-time build
1009 --enable-dependency-tracking do not reject slow dependency extractors
1010 --enable-maintainer-mode enable make rules and dependencies not useful
1011 (and sometimes confusing) to the casual installer
1012 --enable-shared[=PKGS]
1013 build shared libraries [default=yes]
1014 --enable-static[=PKGS]
1015 build static libraries [default=yes]
1016 --enable-fast-install[=PKGS]
1017 optimize for fast installation [default=yes]
1018 --disable-libtool-lock avoid locking (might break parallel builds)
1019 --enable-parallel-mark parallelize marking and free list construction
1020 --enable-gc-debug include full support for pointer backtracing etc.
1022 Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1025 --with-pic try to use only PIC/non-PIC objects [default=use
1026 both]
1027 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1028 --with-target-subdir=SUBDIR
1029 configuring with a cross compiler
1030 --with-cross-host=HOST configuring with a cross compiler
1031 --with-ecos enable runtime eCos target support
1033 Some influential environment variables:
1034 CC C compiler command
1035 CFLAGS C compiler flags
1036 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1037 nonstandard directory <lib dir>
1038 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1039 headers in a nonstandard directory <include dir>
1040 CXX C++ compiler command
1041 CXXFLAGS C++ compiler flags
1042 CPP C preprocessor
1043 CXXCPP C++ preprocessor
1045 Use these variables to override the choices made by `configure' or to help
1046 it to find libraries and programs with nonstandard names/locations.
1048 _ACEOF
1051 if test "$ac_init_help" = "recursive"; then
1052 # If there are subdirs, report their specific --help.
1053 ac_popdir=`pwd`
1054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055 test -d $ac_dir || continue
1056 ac_builddir=.
1058 if test "$ac_dir" != .; then
1059 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060 # A "../" for each directory in $ac_dir_suffix.
1061 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1062 else
1063 ac_dir_suffix= ac_top_builddir=
1066 case $srcdir in
1067 .) # No --srcdir option. We are building in place.
1068 ac_srcdir=.
1069 if test -z "$ac_top_builddir"; then
1070 ac_top_srcdir=.
1071 else
1072 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1073 fi ;;
1074 [\\/]* | ?:[\\/]* ) # Absolute path.
1075 ac_srcdir=$srcdir$ac_dir_suffix;
1076 ac_top_srcdir=$srcdir ;;
1077 *) # Relative path.
1078 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1080 esac
1082 # Do not use `cd foo && pwd` to compute absolute paths, because
1083 # the directories may not exist.
1084 case `pwd` in
1085 .) ac_abs_builddir="$ac_dir";;
1087 case "$ac_dir" in
1088 .) ac_abs_builddir=`pwd`;;
1089 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1090 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1091 esac;;
1092 esac
1093 case $ac_abs_builddir in
1094 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1096 case ${ac_top_builddir}. in
1097 .) ac_abs_top_builddir=$ac_abs_builddir;;
1098 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1099 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1100 esac;;
1101 esac
1102 case $ac_abs_builddir in
1103 .) ac_abs_srcdir=$ac_srcdir;;
1105 case $ac_srcdir in
1106 .) ac_abs_srcdir=$ac_abs_builddir;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1108 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1109 esac;;
1110 esac
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1114 case $ac_top_srcdir in
1115 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1117 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1118 esac;;
1119 esac
1121 cd $ac_dir
1122 # Check for guested configure; otherwise get Cygnus style configure.
1123 if test -f $ac_srcdir/configure.gnu; then
1124 echo
1125 $SHELL $ac_srcdir/configure.gnu --help=recursive
1126 elif test -f $ac_srcdir/configure; then
1127 echo
1128 $SHELL $ac_srcdir/configure --help=recursive
1129 elif test -f $ac_srcdir/configure.ac ||
1130 test -f $ac_srcdir/configure.in; then
1131 echo
1132 $ac_configure --help
1133 else
1134 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1136 cd $ac_popdir
1137 done
1140 test -n "$ac_init_help" && exit 0
1141 if $ac_init_version; then
1142 cat <<\_ACEOF
1144 Copyright (C) 2003 Free Software Foundation, Inc.
1145 This configure script is free software; the Free Software Foundation
1146 gives unlimited permission to copy, distribute and modify it.
1147 _ACEOF
1148 exit 0
1150 exec 5>config.log
1151 cat >&5 <<_ACEOF
1152 This file contains any messages produced by compilers while
1153 running configure, to aid debugging if configure makes a mistake.
1155 It was created by $as_me, which was
1156 generated by GNU Autoconf 2.59. Invocation command line was
1158 $ $0 $@
1160 _ACEOF
1162 cat <<_ASUNAME
1163 ## --------- ##
1164 ## Platform. ##
1165 ## --------- ##
1167 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1168 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1169 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1170 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1171 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1173 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1174 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1176 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1177 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1178 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1179 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1180 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1181 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1182 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1184 _ASUNAME
1186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1187 for as_dir in $PATH
1189 IFS=$as_save_IFS
1190 test -z "$as_dir" && as_dir=.
1191 echo "PATH: $as_dir"
1192 done
1194 } >&5
1196 cat >&5 <<_ACEOF
1199 ## ----------- ##
1200 ## Core tests. ##
1201 ## ----------- ##
1203 _ACEOF
1206 # Keep a trace of the command line.
1207 # Strip out --no-create and --no-recursion so they do not pile up.
1208 # Strip out --silent because we don't want to record it for future runs.
1209 # Also quote any args containing shell meta-characters.
1210 # Make two passes to allow for proper duplicate-argument suppression.
1211 ac_configure_args=
1212 ac_configure_args0=
1213 ac_configure_args1=
1214 ac_sep=
1215 ac_must_keep_next=false
1216 for ac_pass in 1 2
1218 for ac_arg
1220 case $ac_arg in
1221 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 continue ;;
1225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1227 esac
1228 case $ac_pass in
1229 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1231 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1232 if test $ac_must_keep_next = true; then
1233 ac_must_keep_next=false # Got value, back to normal.
1234 else
1235 case $ac_arg in
1236 *=* | --config-cache | -C | -disable-* | --disable-* \
1237 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1238 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1239 | -with-* | --with-* | -without-* | --without-* | --x)
1240 case "$ac_configure_args0 " in
1241 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1242 esac
1244 -* ) ac_must_keep_next=true ;;
1245 esac
1247 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1248 # Get rid of the leading space.
1249 ac_sep=" "
1251 esac
1252 done
1253 done
1254 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1255 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1257 # When interrupted or exit'd, cleanup temporary files, and complete
1258 # config.log. We remove comments because anyway the quotes in there
1259 # would cause problems or look ugly.
1260 # WARNING: Be sure not to use single quotes in there, as some shells,
1261 # such as our DU 5.0 friend, will then `close' the trap.
1262 trap 'exit_status=$?
1263 # Save into config.log some information that might help in debugging.
1265 echo
1267 cat <<\_ASBOX
1268 ## ---------------- ##
1269 ## Cache variables. ##
1270 ## ---------------- ##
1271 _ASBOX
1272 echo
1273 # The following way of writing the cache mishandles newlines in values,
1275 (set) 2>&1 |
1276 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1277 *ac_space=\ *)
1278 sed -n \
1279 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283 sed -n \
1284 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1286 esac;
1288 echo
1290 cat <<\_ASBOX
1291 ## ----------------- ##
1292 ## Output variables. ##
1293 ## ----------------- ##
1294 _ASBOX
1295 echo
1296 for ac_var in $ac_subst_vars
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1300 done | sort
1301 echo
1303 if test -n "$ac_subst_files"; then
1304 cat <<\_ASBOX
1305 ## ------------- ##
1306 ## Output files. ##
1307 ## ------------- ##
1308 _ASBOX
1309 echo
1310 for ac_var in $ac_subst_files
1312 eval ac_val=$`echo $ac_var`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
1314 done | sort
1315 echo
1318 if test -s confdefs.h; then
1319 cat <<\_ASBOX
1320 ## ----------- ##
1321 ## confdefs.h. ##
1322 ## ----------- ##
1323 _ASBOX
1324 echo
1325 sed "/^$/d" confdefs.h | sort
1326 echo
1328 test "$ac_signal" != 0 &&
1329 echo "$as_me: caught signal $ac_signal"
1330 echo "$as_me: exit $exit_status"
1331 } >&5
1332 rm -f core *.core &&
1333 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1334 exit $exit_status
1336 for ac_signal in 1 2 13 15; do
1337 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1338 done
1339 ac_signal=0
1341 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1342 rm -rf conftest* confdefs.h
1343 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1344 echo >confdefs.h
1346 # Predefined preprocessor variables.
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_NAME "$PACKAGE_NAME"
1350 _ACEOF
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1355 _ACEOF
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1360 _ACEOF
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_STRING "$PACKAGE_STRING"
1365 _ACEOF
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1370 _ACEOF
1373 # Let the site file select an alternate cache file if it wants to.
1374 # Prefer explicitly selected file to automatically selected ones.
1375 if test -z "$CONFIG_SITE"; then
1376 if test "x$prefix" != xNONE; then
1377 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1378 else
1379 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382 for ac_site_file in $CONFIG_SITE; do
1383 if test -r "$ac_site_file"; then
1384 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1385 echo "$as_me: loading site script $ac_site_file" >&6;}
1386 sed 's/^/| /' "$ac_site_file" >&5
1387 . "$ac_site_file"
1389 done
1391 if test -r "$cache_file"; then
1392 # Some versions of bash will fail to source /dev/null (special
1393 # files actually), so we avoid doing that.
1394 if test -f "$cache_file"; then
1395 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1396 echo "$as_me: loading cache $cache_file" >&6;}
1397 case $cache_file in
1398 [\\/]* | ?:[\\/]* ) . $cache_file;;
1399 *) . ./$cache_file;;
1400 esac
1402 else
1403 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1404 echo "$as_me: creating cache $cache_file" >&6;}
1405 >$cache_file
1408 # Check that the precious variables saved in the cache have kept the same
1409 # value.
1410 ac_cache_corrupted=false
1411 for ac_var in `(set) 2>&1 |
1412 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1413 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1414 eval ac_new_set=\$ac_env_${ac_var}_set
1415 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1416 eval ac_new_val="\$ac_env_${ac_var}_value"
1417 case $ac_old_set,$ac_new_set in
1418 set,)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,set)
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1424 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1426 ,);;
1428 if test "x$ac_old_val" != "x$ac_new_val"; then
1429 # differences in whitespace do not lead to failure.
1430 ac_old_val_w=`echo x $ac_old_val`
1431 ac_new_val_w=`echo x $ac_new_val`
1432 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1433 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1434 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1435 ac_cache_corrupted=:
1436 else
1437 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1438 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1439 eval $ac_var=\$ac_old_val
1441 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1442 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1443 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1444 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1445 fi;;
1446 esac
1447 # Pass precious variables to config.status.
1448 if test "$ac_new_set" = set; then
1449 case $ac_new_val in
1450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1451 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1452 *) ac_arg=$ac_var=$ac_new_val ;;
1453 esac
1454 case " $ac_configure_args " in
1455 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1456 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1457 esac
1459 done
1460 if $ac_cache_corrupted; then
1461 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1462 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1463 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1464 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1465 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1466 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1467 { (exit 1); exit 1; }; }
1470 ac_ext=c
1471 ac_cpp='$CPP $CPPFLAGS'
1472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498 # This works around the fact that libtool configuration may change LD
1499 # for this particular configuration, but some shells, instead of
1500 # keeping the changes in LD private, export them just because LD is
1501 # exported.
1502 ORIGINAL_LD_FOR_MULTILIBS=$LD
1504 # Default to --enable-multilib
1505 # Check whether --enable-multilib or --disable-multilib was given.
1506 if test "${enable_multilib+set}" = set; then
1507 enableval="$enable_multilib"
1508 case "$enableval" in
1509 yes) multilib=yes ;;
1510 no) multilib=no ;;
1511 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1512 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1513 { (exit 1); exit 1; }; } ;;
1514 esac
1515 else
1516 multilib=yes
1519 # We may get other options which we leave undocumented:
1520 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1521 # See config-ml.in if you want the gory details.
1523 if test "$srcdir" = "."; then
1524 if test "$with_target_subdir" != "."; then
1525 multi_basedir="$srcdir/$with_multisrctop../.."
1526 else
1527 multi_basedir="$srcdir/$with_multisrctop.."
1529 else
1530 multi_basedir="$srcdir/.."
1534 # Even if the default multilib is not a cross compilation,
1535 # it may be that some of the other multilibs are.
1536 if test $cross_compiling = no && test $multilib = yes \
1537 && test "x${with_multisubdir}" != x ; then
1538 cross_compiling=maybe
1541 ac_config_commands="$ac_config_commands default-1"
1544 ac_aux_dir=
1545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546 if test -f $ac_dir/install-sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install-sh -c"
1549 break
1550 elif test -f $ac_dir/install.sh; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/install.sh -c"
1553 break
1554 elif test -f $ac_dir/shtool; then
1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/shtool install -c"
1557 break
1559 done
1560 if test -z "$ac_aux_dir"; then
1561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563 { (exit 1); exit 1; }; }
1565 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1569 # Make sure we can run config.sub.
1570 $ac_config_sub sun4 >/dev/null 2>&1 ||
1571 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573 { (exit 1); exit 1; }; }
1575 echo "$as_me:$LINENO: checking build system type" >&5
1576 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577 if test "${ac_cv_build+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580 ac_cv_build_alias=$build_alias
1581 test -z "$ac_cv_build_alias" &&
1582 ac_cv_build_alias=`$ac_config_guess`
1583 test -z "$ac_cv_build_alias" &&
1584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586 { (exit 1); exit 1; }; }
1587 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1593 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594 echo "${ECHO_T}$ac_cv_build" >&6
1595 build=$ac_cv_build
1596 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601 echo "$as_me:$LINENO: checking host system type" >&5
1602 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603 if test "${ac_cv_host+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606 ac_cv_host_alias=$host_alias
1607 test -z "$ac_cv_host_alias" &&
1608 ac_cv_host_alias=$ac_cv_build_alias
1609 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616 echo "${ECHO_T}$ac_cv_host" >&6
1617 host=$ac_cv_host
1618 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623 echo "$as_me:$LINENO: checking target system type" >&5
1624 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1625 if test "${ac_cv_target+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 ac_cv_target_alias=$target_alias
1629 test "x$ac_cv_target_alias" = "x" &&
1630 ac_cv_target_alias=$ac_cv_host_alias
1631 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1633 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1637 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1638 echo "${ECHO_T}$ac_cv_target" >&6
1639 target=$ac_cv_target
1640 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645 # The aliases save the names the user supplied, while $host etc.
1646 # will get canonicalized.
1647 test -n "$target_alias" &&
1648 test "$program_prefix$program_suffix$program_transform_name" = \
1649 NONENONEs,x,x, &&
1650 program_prefix=${target_alias}-
1652 # Get the 'noncanonical' system names.
1653 case ${build_alias} in
1654 "") build_noncanonical=${build} ;;
1655 *) build_noncanonical=${build_alias} ;;
1656 esac
1658 case ${host_alias} in
1659 "") host_noncanonical=${build_noncanonical} ;;
1660 *) host_noncanonical=${host_alias} ;;
1661 esac
1663 case ${target_alias} in
1664 "") target_noncanonical=${host_noncanonical} ;;
1665 *) target_noncanonical=${target_alias} ;;
1666 esac
1671 # This works around an automake problem.
1672 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1675 am__api_version="1.9"
1676 # Find a good install program. We prefer a C program (faster),
1677 # so one script is as good as another. But avoid the broken or
1678 # incompatible versions:
1679 # SysV /etc/install, /usr/sbin/install
1680 # SunOS /usr/etc/install
1681 # IRIX /sbin/install
1682 # AIX /bin/install
1683 # AmigaOS /C/install, which installs bootblocks on floppy discs
1684 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1685 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1686 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1687 # OS/2's system install, which has a completely different semantic
1688 # ./install, which can be erroneously created by make from ./install.sh.
1689 # Reject install programs that cannot install multiple files.
1690 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1691 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1692 if test -z "$INSTALL"; then
1693 if test "${ac_cv_path_install+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 # Account for people who put trailing slashes in PATH elements.
1702 case $as_dir/ in
1703 ./ | .// | /cC/* | \
1704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1705 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1706 /usr/ucb/* ) ;;
1708 # OSF1 and SCO ODT 3.0 have their own names for install.
1709 # Don't use installbsd from OSF since it installs stuff as root
1710 # by default.
1711 for ac_prog in ginstall scoinst install; do
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1714 if test $ac_prog = install &&
1715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1716 # AIX install. It has an incompatible calling convention.
1718 elif test $ac_prog = install &&
1719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1720 # program-specific install script used by HP pwplus--don't use.
1722 else
1723 rm -rf conftest.one conftest.two conftest.dir
1724 echo one > conftest.one
1725 echo two > conftest.two
1726 mkdir conftest.dir
1727 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1728 test -s conftest.one && test -s conftest.two &&
1729 test -s conftest.dir/conftest.one &&
1730 test -s conftest.dir/conftest.two
1731 then
1732 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1733 break 3
1737 done
1738 done
1740 esac
1741 done
1743 rm -rf conftest.one conftest.two conftest.dir
1746 if test "${ac_cv_path_install+set}" = set; then
1747 INSTALL=$ac_cv_path_install
1748 else
1749 # As a last resort, use the slow shell script. Don't cache a
1750 # value for INSTALL within a source directory, because that will
1751 # break other packages using the cache if that directory is
1752 # removed, or if the value is a relative name.
1753 INSTALL=$ac_install_sh
1756 echo "$as_me:$LINENO: result: $INSTALL" >&5
1757 echo "${ECHO_T}$INSTALL" >&6
1759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1760 # It thinks the first close brace ends the variable substitution.
1761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1763 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1765 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1767 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1768 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1769 # Just in case
1770 sleep 1
1771 echo timestamp > conftest.file
1772 # Do `set' in a subshell so we don't clobber the current shell's
1773 # arguments. Must try -L first in case configure is actually a
1774 # symlink; some systems play weird games with the mod time of symlinks
1775 # (eg FreeBSD returns the mod time of the symlink's containing
1776 # directory).
1777 if (
1778 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1779 if test "$*" = "X"; then
1780 # -L didn't work.
1781 set X `ls -t $srcdir/configure conftest.file`
1783 rm -f conftest.file
1784 if test "$*" != "X $srcdir/configure conftest.file" \
1785 && test "$*" != "X conftest.file $srcdir/configure"; then
1787 # If neither matched, then we have a broken ls. This can happen
1788 # if, for instance, CONFIG_SHELL is bash and it inherits a
1789 # broken ls alias from the environment. This has actually
1790 # happened. Such a system could not be considered "sane".
1791 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1792 alias in your environment" >&5
1793 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1794 alias in your environment" >&2;}
1795 { (exit 1); exit 1; }; }
1798 test "$2" = conftest.file
1800 then
1801 # Ok.
1803 else
1804 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1805 Check your system clock" >&5
1806 echo "$as_me: error: newly created file is older than distributed files!
1807 Check your system clock" >&2;}
1808 { (exit 1); exit 1; }; }
1810 echo "$as_me:$LINENO: result: yes" >&5
1811 echo "${ECHO_T}yes" >&6
1812 test "$program_prefix" != NONE &&
1813 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1814 # Use a double $ so make ignores it.
1815 test "$program_suffix" != NONE &&
1816 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1817 # Double any \ or $. echo might interpret backslashes.
1818 # By default was `s,x,x', remove it if useless.
1819 cat <<\_ACEOF >conftest.sed
1820 s/[\\$]/&&/g;s/;s,x,x,$//
1821 _ACEOF
1822 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1823 rm conftest.sed
1825 # expand $ac_aux_dir to an absolute path
1826 am_aux_dir=`cd $ac_aux_dir && pwd`
1828 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1829 # Use eval to expand $SHELL
1830 if eval "$MISSING --run true"; then
1831 am_missing_run="$MISSING --run "
1832 else
1833 am_missing_run=
1834 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1835 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1838 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1839 # We used to keeping the `.' as first argument, in order to
1840 # allow $(mkdir_p) to be used without argument. As in
1841 # $(mkdir_p) $(somedir)
1842 # where $(somedir) is conditionally defined. However this is wrong
1843 # for two reasons:
1844 # 1. if the package is installed by a user who cannot write `.'
1845 # make install will fail,
1846 # 2. the above comment should most certainly read
1847 # $(mkdir_p) $(DESTDIR)$(somedir)
1848 # so it does not work when $(somedir) is undefined and
1849 # $(DESTDIR) is not.
1850 # To support the latter case, we have to write
1851 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1852 # so the `.' trick is pointless.
1853 mkdir_p='mkdir -p --'
1854 else
1855 # On NextStep and OpenStep, the `mkdir' command does not
1856 # recognize any option. It will interpret all options as
1857 # directories to create, and then abort because `.' already
1858 # exists.
1859 for d in ./-p ./--version;
1861 test -d $d && rmdir $d
1862 done
1863 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1864 if test -f "$ac_aux_dir/mkinstalldirs"; then
1865 mkdir_p='$(mkinstalldirs)'
1866 else
1867 mkdir_p='$(install_sh) -d'
1871 for ac_prog in gawk mawk nawk awk
1873 # Extract the first word of "$ac_prog", so it can be a program name with args.
1874 set dummy $ac_prog; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_AWK+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880 if test -n "$AWK"; then
1881 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_AWK="$ac_prog"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 break 2
1894 done
1895 done
1899 AWK=$ac_cv_prog_AWK
1900 if test -n "$AWK"; then
1901 echo "$as_me:$LINENO: result: $AWK" >&5
1902 echo "${ECHO_T}$AWK" >&6
1903 else
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1908 test -n "$AWK" && break
1909 done
1911 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1912 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1913 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1914 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 cat >conftest.make <<\_ACEOF
1918 all:
1919 @echo 'ac_maketemp="$(MAKE)"'
1920 _ACEOF
1921 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1922 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1923 if test -n "$ac_maketemp"; then
1924 eval ac_cv_prog_make_${ac_make}_set=yes
1925 else
1926 eval ac_cv_prog_make_${ac_make}_set=no
1928 rm -f conftest.make
1930 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1931 echo "$as_me:$LINENO: result: yes" >&5
1932 echo "${ECHO_T}yes" >&6
1933 SET_MAKE=
1934 else
1935 echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1937 SET_MAKE="MAKE=${MAKE-make}"
1940 rm -rf .tst 2>/dev/null
1941 mkdir .tst 2>/dev/null
1942 if test -d .tst; then
1943 am__leading_dot=.
1944 else
1945 am__leading_dot=_
1947 rmdir .tst 2>/dev/null
1949 # test to see if srcdir already configured
1950 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1951 test -f $srcdir/config.status; then
1952 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1953 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1954 { (exit 1); exit 1; }; }
1957 # test whether we have cygpath
1958 if test -z "$CYGPATH_W"; then
1959 if (cygpath --version) >/dev/null 2>/dev/null; then
1960 CYGPATH_W='cygpath -w'
1961 else
1962 CYGPATH_W=echo
1967 # Define the identity of the package.
1968 PACKAGE=gc
1969 VERSION=6.6
1972 # Some tools Automake needs.
1974 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1977 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1980 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1983 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1986 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1988 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1990 # Installed binaries are usually stripped using `strip' when the user
1991 # run `make install-strip'. However `strip' might not be the right
1992 # tool to use in cross-compilation environments, therefore Automake
1993 # will honor the `STRIP' environment variable to overrule this program.
1994 if test "$cross_compiling" != no; then
1995 if test -n "$ac_tool_prefix"; then
1996 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1997 set dummy ${ac_tool_prefix}strip; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_STRIP+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003 if test -n "$STRIP"; then
2004 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 break 2
2017 done
2018 done
2022 STRIP=$ac_cv_prog_STRIP
2023 if test -n "$STRIP"; then
2024 echo "$as_me:$LINENO: result: $STRIP" >&5
2025 echo "${ECHO_T}$STRIP" >&6
2026 else
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2032 if test -z "$ac_cv_prog_STRIP"; then
2033 ac_ct_STRIP=$STRIP
2034 # Extract the first word of "strip", so it can be a program name with args.
2035 set dummy strip; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 if test -n "$ac_ct_STRIP"; then
2042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051 ac_cv_prog_ac_ct_STRIP="strip"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2055 done
2056 done
2058 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2062 if test -n "$ac_ct_STRIP"; then
2063 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2064 echo "${ECHO_T}$ac_ct_STRIP" >&6
2065 else
2066 echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2070 STRIP=$ac_ct_STRIP
2071 else
2072 STRIP="$ac_cv_prog_STRIP"
2076 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2078 # We need awk for the "check" target. The system "awk" is bad on
2079 # some platforms.
2080 # Always define AMTAR for backward compatibility.
2082 AMTAR=${AMTAR-"${am_missing_run}tar"}
2084 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2091 # The autoconf 2.5x version of the no-executables hack.
2094 # Yak. We must force CC and CXX to /not/ be precious variables; otherwise
2095 # the wrong, non-multilib-adjusted value will be used in multilibs.
2096 # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
2100 ac_ext=c
2101 ac_cpp='$CPP $CPPFLAGS'
2102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105 if test -n "$ac_tool_prefix"; then
2106 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2107 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 if test -n "$CC"; then
2114 ac_cv_prog_CC="$CC" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 break 2
2127 done
2128 done
2132 CC=$ac_cv_prog_CC
2133 if test -n "$CC"; then
2134 echo "$as_me:$LINENO: result: $CC" >&5
2135 echo "${ECHO_T}$CC" >&6
2136 else
2137 echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2142 if test -z "$ac_cv_prog_CC"; then
2143 ac_ct_CC=$CC
2144 # Extract the first word of "gcc", so it can be a program name with args.
2145 set dummy gcc; ac_word=$2
2146 echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 if test -n "$ac_ct_CC"; then
2152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2153 else
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH
2157 IFS=$as_save_IFS
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161 ac_cv_prog_ac_ct_CC="gcc"
2162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 break 2
2165 done
2166 done
2170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2171 if test -n "$ac_ct_CC"; then
2172 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2173 echo "${ECHO_T}$ac_ct_CC" >&6
2174 else
2175 echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6
2179 CC=$ac_ct_CC
2180 else
2181 CC="$ac_cv_prog_CC"
2184 if test -z "$CC"; then
2185 if test -n "$ac_tool_prefix"; then
2186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2187 set dummy ${ac_tool_prefix}cc; ac_word=$2
2188 echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190 if test "${ac_cv_prog_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 if test -n "$CC"; then
2194 ac_cv_prog_CC="$CC" # Let the user override the test.
2195 else
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2203 ac_cv_prog_CC="${ac_tool_prefix}cc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2207 done
2208 done
2212 CC=$ac_cv_prog_CC
2213 if test -n "$CC"; then
2214 echo "$as_me:$LINENO: result: $CC" >&5
2215 echo "${ECHO_T}$CC" >&6
2216 else
2217 echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2222 if test -z "$ac_cv_prog_CC"; then
2223 ac_ct_CC=$CC
2224 # Extract the first word of "cc", so it can be a program name with args.
2225 set dummy cc; ac_word=$2
2226 echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231 if test -n "$ac_ct_CC"; then
2232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2237 IFS=$as_save_IFS
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241 ac_cv_prog_ac_ct_CC="cc"
2242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243 break 2
2245 done
2246 done
2250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2251 if test -n "$ac_ct_CC"; then
2252 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2253 echo "${ECHO_T}$ac_ct_CC" >&6
2254 else
2255 echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6
2259 CC=$ac_ct_CC
2260 else
2261 CC="$ac_cv_prog_CC"
2265 if test -z "$CC"; then
2266 # Extract the first word of "cc", so it can be a program name with args.
2267 set dummy cc; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC="$CC" # Let the user override the test.
2275 else
2276 ac_prog_rejected=no
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2285 ac_prog_rejected=yes
2286 continue
2288 ac_cv_prog_CC="cc"
2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290 break 2
2292 done
2293 done
2295 if test $ac_prog_rejected = yes; then
2296 # We found a bogon in the path, so make sure we never use it.
2297 set dummy $ac_cv_prog_CC
2298 shift
2299 if test $# != 0; then
2300 # We chose a different compiler from the bogus one.
2301 # However, it has the same basename, so the bogon will be chosen
2302 # first if we set CC to just the basename; use the full file name.
2303 shift
2304 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2309 CC=$ac_cv_prog_CC
2310 if test -n "$CC"; then
2311 echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6
2313 else
2314 echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2319 if test -z "$CC"; then
2320 if test -n "$ac_tool_prefix"; then
2321 for ac_prog in cl
2323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2325 echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327 if test "${ac_cv_prog_CC+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2344 done
2345 done
2349 CC=$ac_cv_prog_CC
2350 if test -n "$CC"; then
2351 echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6
2353 else
2354 echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2358 test -n "$CC" && break
2359 done
2361 if test -z "$CC"; then
2362 ac_ct_CC=$CC
2363 for ac_prog in cl
2365 # Extract the first word of "$ac_prog", so it can be a program name with args.
2366 set dummy $ac_prog; ac_word=$2
2367 echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372 if test -n "$ac_ct_CC"; then
2373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382 ac_cv_prog_ac_ct_CC="$ac_prog"
2383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 break 2
2386 done
2387 done
2391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2392 if test -n "$ac_ct_CC"; then
2393 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2394 echo "${ECHO_T}$ac_ct_CC" >&6
2395 else
2396 echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2400 test -n "$ac_ct_CC" && break
2401 done
2403 CC=$ac_ct_CC
2409 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2410 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2412 See \`config.log' for more details." >&5
2413 echo "$as_me: error: no acceptable C compiler found in \$PATH
2414 See \`config.log' for more details." >&2;}
2415 { (exit 1); exit 1; }; }; }
2417 # Provide some information about the compiler.
2418 echo "$as_me:$LINENO:" \
2419 "checking for C compiler version" >&5
2420 ac_compiler=`set X $ac_compile; echo $2`
2421 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2422 (eval $ac_compiler --version </dev/null >&5) 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }
2426 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2427 (eval $ac_compiler -v </dev/null >&5) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }
2431 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2432 (eval $ac_compiler -V </dev/null >&5) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }
2437 cat >conftest.$ac_ext <<_ACEOF
2438 /* confdefs.h. */
2439 _ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h. */
2445 main ()
2449 return 0;
2451 _ACEOF
2452 # FIXME: Cleanup?
2453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2454 (eval $ac_link) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; then
2458 gcc_no_link=no
2459 else
2460 gcc_no_link=yes
2463 if test x$gcc_no_link = xyes; then
2464 # Setting cross_compile will disable run tests; it will
2465 # also disable AC_CHECK_FILE but that's generally
2466 # correct if we can't link.
2467 cross_compiling=yes
2468 EXEEXT=
2469 else
2470 cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h. */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2478 main ()
2482 return 0;
2484 _ACEOF
2485 ac_clean_files_save=$ac_clean_files
2486 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2487 # Try to create an executable without -o first, disregard a.out.
2488 # It will help us diagnose broken compilers, and finding out an intuition
2489 # of exeext.
2490 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2491 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2492 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2493 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2494 (eval $ac_link_default) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; then
2498 # Find the output, starting from the most likely. This scheme is
2499 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2500 # resort.
2502 # Be careful to initialize this variable, since it used to be cached.
2503 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2504 ac_cv_exeext=
2505 # b.out is created by i960 compilers.
2506 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2508 test -f "$ac_file" || continue
2509 case $ac_file in
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2512 conftest.$ac_ext )
2513 # This is the source file.
2515 [ab].out )
2516 # We found the default executable, but exeext='' is most
2517 # certainly right.
2518 break;;
2519 *.* )
2520 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521 # FIXME: I believe we export ac_cv_exeext for Libtool,
2522 # but it would be cool to find out if it's true. Does anybody
2523 # maintain Libtool? --akim.
2524 export ac_cv_exeext
2525 break;;
2527 break;;
2528 esac
2529 done
2530 else
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2534 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2535 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2536 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: C compiler cannot create executables
2539 See \`config.log' for more details." >&2;}
2540 { (exit 77); exit 77; }; }; }
2543 ac_exeext=$ac_cv_exeext
2544 echo "$as_me:$LINENO: result: $ac_file" >&5
2545 echo "${ECHO_T}$ac_file" >&6
2547 # Check the compiler produces executables we can run. If not, either
2548 # the compiler is broken, or we cross compile.
2549 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2550 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2551 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2552 # If not cross compiling, check that we can run a simple program.
2553 if test "$cross_compiling" != yes; then
2554 if { ac_try='./$ac_file'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2560 cross_compiling=no
2561 else
2562 if test "$cross_compiling" = maybe; then
2563 cross_compiling=yes
2564 else
2565 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2568 If you meant to cross compile, use \`--host'.
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: cannot run C compiled programs.
2571 If you meant to cross compile, use \`--host'.
2572 See \`config.log' for more details." >&2;}
2573 { (exit 1); exit 1; }; }; }
2577 echo "$as_me:$LINENO: result: yes" >&5
2578 echo "${ECHO_T}yes" >&6
2580 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2581 ac_clean_files=$ac_clean_files_save
2582 # Check the compiler produces executables we can run. If not, either
2583 # the compiler is broken, or we cross compile.
2584 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2585 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2586 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2587 echo "${ECHO_T}$cross_compiling" >&6
2589 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2590 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2592 (eval $ac_link) 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; then
2596 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2597 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2598 # work properly (i.e., refer to `conftest.exe'), while it won't with
2599 # `rm'.
2600 for ac_file in conftest.exe conftest conftest.*; do
2601 test -f "$ac_file" || continue
2602 case $ac_file in
2603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2604 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2605 export ac_cv_exeext
2606 break;;
2607 * ) break;;
2608 esac
2609 done
2610 else
2611 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2612 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2614 See \`config.log' for more details." >&5
2615 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2616 See \`config.log' for more details." >&2;}
2617 { (exit 1); exit 1; }; }; }
2620 rm -f conftest$ac_cv_exeext
2621 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2622 echo "${ECHO_T}$ac_cv_exeext" >&6
2624 rm -f conftest.$ac_ext
2625 EXEEXT=$ac_cv_exeext
2626 ac_exeext=$EXEEXT
2628 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2629 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2630 if test "${ac_cv_objext+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633 cat >conftest.$ac_ext <<_ACEOF
2634 /* confdefs.h. */
2635 _ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2641 main ()
2645 return 0;
2647 _ACEOF
2648 rm -f conftest.o conftest.obj
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; then
2654 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2655 case $ac_file in
2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2657 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2658 break;;
2659 esac
2660 done
2661 else
2662 echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2665 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2666 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2667 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2670 See \`config.log' for more details." >&2;}
2671 { (exit 1); exit 1; }; }; }
2674 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2676 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2677 echo "${ECHO_T}$ac_cv_objext" >&6
2678 OBJEXT=$ac_cv_objext
2679 ac_objext=$OBJEXT
2680 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2681 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2682 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h. */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2693 main ()
2695 #ifndef __GNUC__
2696 choke me
2697 #endif
2700 return 0;
2702 _ACEOF
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>conftest.er1
2706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -z "$ac_c_werror_flag"
2713 || test ! -s conftest.err'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2725 ac_compiler_gnu=yes
2726 else
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2730 ac_compiler_gnu=no
2732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2736 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2737 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2738 GCC=`test $ac_compiler_gnu = yes && echo yes`
2739 ac_test_CFLAGS=${CFLAGS+set}
2740 ac_save_CFLAGS=$CFLAGS
2741 CFLAGS="-g"
2742 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2743 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2744 if test "${ac_cv_prog_cc_g+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747 cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h. */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2755 main ()
2759 return 0;
2761 _ACEOF
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764 (eval $ac_compile) 2>conftest.er1
2765 ac_status=$?
2766 grep -v '^ *+' conftest.er1 >conftest.err
2767 rm -f conftest.er1
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -z "$ac_c_werror_flag"
2772 || test ! -s conftest.err'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; } &&
2778 { ac_try='test -s conftest.$ac_objext'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 ac_cv_prog_cc_g=yes
2785 else
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2789 ac_cv_prog_cc_g=no
2791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2794 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2795 if test "$ac_test_CFLAGS" = set; then
2796 CFLAGS=$ac_save_CFLAGS
2797 elif test $ac_cv_prog_cc_g = yes; then
2798 if test "$GCC" = yes; then
2799 CFLAGS="-g -O2"
2800 else
2801 CFLAGS="-g"
2803 else
2804 if test "$GCC" = yes; then
2805 CFLAGS="-O2"
2806 else
2807 CFLAGS=
2810 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2811 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2812 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815 ac_cv_prog_cc_stdc=no
2816 ac_save_CC=$CC
2817 cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h. */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2823 #include <stdarg.h>
2824 #include <stdio.h>
2825 #include <sys/types.h>
2826 #include <sys/stat.h>
2827 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2828 struct buf { int x; };
2829 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2830 static char *e (p, i)
2831 char **p;
2832 int i;
2834 return p[i];
2836 static char *f (char * (*g) (char **, int), char **p, ...)
2838 char *s;
2839 va_list v;
2840 va_start (v,p);
2841 s = g (p, va_arg (v,int));
2842 va_end (v);
2843 return s;
2846 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2847 function prototypes and stuff, but not '\xHH' hex character constants.
2848 These don't provoke an error unfortunately, instead are silently treated
2849 as 'x'. The following induces an error, until -std1 is added to get
2850 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2851 array size at least. It's necessary to write '\x00'==0 to get something
2852 that's true only with -std1. */
2853 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2855 int test (int i, double x);
2856 struct s1 {int (*f) (int a);};
2857 struct s2 {int (*f) (double a);};
2858 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2859 int argc;
2860 char **argv;
2862 main ()
2864 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2866 return 0;
2868 _ACEOF
2869 # Don't try gcc -ansi; that turns off useful extensions and
2870 # breaks some systems' header files.
2871 # AIX -qlanglvl=ansi
2872 # Ultrix and OSF/1 -std1
2873 # HP-UX 10.20 and later -Ae
2874 # HP-UX older versions -Aa -D_HPUX_SOURCE
2875 # SVR4 -Xc -D__EXTENSIONS__
2876 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2878 CC="$ac_save_CC $ac_arg"
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>conftest.er1
2882 ac_status=$?
2883 grep -v '^ *+' conftest.er1 >conftest.err
2884 rm -f conftest.er1
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
2888 { ac_try='test -z "$ac_c_werror_flag"
2889 || test ! -s conftest.err'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 (eval $ac_try) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; } &&
2895 { ac_try='test -s conftest.$ac_objext'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 (eval $ac_try) 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2901 ac_cv_prog_cc_stdc=$ac_arg
2902 break
2903 else
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2908 rm -f conftest.err conftest.$ac_objext
2909 done
2910 rm -f conftest.$ac_ext conftest.$ac_objext
2911 CC=$ac_save_CC
2915 case "x$ac_cv_prog_cc_stdc" in
2916 x|xno)
2917 echo "$as_me:$LINENO: result: none needed" >&5
2918 echo "${ECHO_T}none needed" >&6 ;;
2920 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2921 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2922 CC="$CC $ac_cv_prog_cc_stdc" ;;
2923 esac
2925 # Some people use a C++ compiler to compile C. Since we use `exit',
2926 # in C++ we need to declare it. In case someone uses the same compiler
2927 # for both compiling C and C++ we need to have the C++ compiler decide
2928 # the declaration of exit, since it's the most demanding environment.
2929 cat >conftest.$ac_ext <<_ACEOF
2930 #ifndef __cplusplus
2931 choke me
2932 #endif
2933 _ACEOF
2934 rm -f conftest.$ac_objext
2935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2936 (eval $ac_compile) 2>conftest.er1
2937 ac_status=$?
2938 grep -v '^ *+' conftest.er1 >conftest.err
2939 rm -f conftest.er1
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } &&
2943 { ac_try='test -z "$ac_c_werror_flag"
2944 || test ! -s conftest.err'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 (eval $ac_try) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; } &&
2950 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2956 for ac_declaration in \
2957 '' \
2958 'extern "C" void std::exit (int) throw (); using std::exit;' \
2959 'extern "C" void std::exit (int); using std::exit;' \
2960 'extern "C" void exit (int) throw ();' \
2961 'extern "C" void exit (int);' \
2962 'void exit (int);'
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2970 $ac_declaration
2971 #include <stdlib.h>
2973 main ()
2975 exit (42);
2977 return 0;
2979 _ACEOF
2980 rm -f conftest.$ac_objext
2981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2982 (eval $ac_compile) 2>conftest.er1
2983 ac_status=$?
2984 grep -v '^ *+' conftest.er1 >conftest.err
2985 rm -f conftest.er1
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } &&
2989 { ac_try='test -z "$ac_c_werror_flag"
2990 || test ! -s conftest.err'
2991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 (eval $ac_try) 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; } &&
2996 { ac_try='test -s conftest.$ac_objext'
2997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 (eval $ac_try) 2>&5
2999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; }; then
3003 else
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 continue
3009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3010 cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h. */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3016 $ac_declaration
3018 main ()
3020 exit (42);
3022 return 0;
3024 _ACEOF
3025 rm -f conftest.$ac_objext
3026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3027 (eval $ac_compile) 2>conftest.er1
3028 ac_status=$?
3029 grep -v '^ *+' conftest.er1 >conftest.err
3030 rm -f conftest.er1
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -z "$ac_c_werror_flag"
3035 || test ! -s conftest.err'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 (eval $ac_try) 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 (eval $ac_try) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 break
3048 else
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3054 done
3055 rm -f conftest*
3056 if test -n "$ac_declaration"; then
3057 echo '#ifdef __cplusplus' >>confdefs.h
3058 echo $ac_declaration >>confdefs.h
3059 echo '#endif' >>confdefs.h
3062 else
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3068 ac_ext=c
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 DEPDIR="${am__leading_dot}deps"
3075 ac_config_commands="$ac_config_commands depfiles"
3078 am_make=${MAKE-make}
3079 cat > confinc << 'END'
3080 am__doit:
3081 @echo done
3082 .PHONY: am__doit
3084 # If we don't find an include directive, just comment out the code.
3085 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3086 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3087 am__include="#"
3088 am__quote=
3089 _am_result=none
3090 # First try GNU make style include.
3091 echo "include confinc" > confmf
3092 # We grep out `Entering directory' and `Leaving directory'
3093 # messages which can occur if `w' ends up in MAKEFLAGS.
3094 # In particular we don't look at `^make:' because GNU make might
3095 # be invoked under some other name (usually "gmake"), in which
3096 # case it prints its new name instead of `make'.
3097 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3098 am__include=include
3099 am__quote=
3100 _am_result=GNU
3102 # Now try BSD make style include.
3103 if test "$am__include" = "#"; then
3104 echo '.include "confinc"' > confmf
3105 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3106 am__include=.include
3107 am__quote="\""
3108 _am_result=BSD
3113 echo "$as_me:$LINENO: result: $_am_result" >&5
3114 echo "${ECHO_T}$_am_result" >&6
3115 rm -f confinc confmf
3117 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3118 if test "${enable_dependency_tracking+set}" = set; then
3119 enableval="$enable_dependency_tracking"
3122 if test "x$enable_dependency_tracking" != xno; then
3123 am_depcomp="$ac_aux_dir/depcomp"
3124 AMDEPBACKSLASH='\'
3128 if test "x$enable_dependency_tracking" != xno; then
3129 AMDEP_TRUE=
3130 AMDEP_FALSE='#'
3131 else
3132 AMDEP_TRUE='#'
3133 AMDEP_FALSE=
3139 depcc="$CC" am_compiler_list=
3141 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3142 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3143 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3147 # We make a subdir and do the tests there. Otherwise we can end up
3148 # making bogus files that we don't know about and never remove. For
3149 # instance it was reported that on HP-UX the gcc test will end up
3150 # making a dummy file named `D' -- because `-MD' means `put the output
3151 # in D'.
3152 mkdir conftest.dir
3153 # Copy depcomp to subdir because otherwise we won't find it if we're
3154 # using a relative directory.
3155 cp "$am_depcomp" conftest.dir
3156 cd conftest.dir
3157 # We will build objects and dependencies in a subdirectory because
3158 # it helps to detect inapplicable dependency modes. For instance
3159 # both Tru64's cc and ICC support -MD to output dependencies as a
3160 # side effect of compilation, but ICC will put the dependencies in
3161 # the current directory while Tru64 will put them in the object
3162 # directory.
3163 mkdir sub
3165 am_cv_CC_dependencies_compiler_type=none
3166 if test "$am_compiler_list" = ""; then
3167 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3169 for depmode in $am_compiler_list; do
3170 # Setup a source with many dependencies, because some compilers
3171 # like to wrap large dependency lists on column 80 (with \), and
3172 # we should not choose a depcomp mode which is confused by this.
3174 # We need to recreate these files for each test, as the compiler may
3175 # overwrite some of them when testing with obscure command lines.
3176 # This happens at least with the AIX C compiler.
3177 : > sub/conftest.c
3178 for i in 1 2 3 4 5 6; do
3179 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3180 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3181 # Solaris 8's {/usr,}/bin/sh.
3182 touch sub/conftst$i.h
3183 done
3184 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3186 case $depmode in
3187 nosideeffect)
3188 # after this tag, mechanisms are not by side-effect, so they'll
3189 # only be used when explicitly requested
3190 if test "x$enable_dependency_tracking" = xyes; then
3191 continue
3192 else
3193 break
3196 none) break ;;
3197 esac
3198 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3199 # mode. It turns out that the SunPro C++ compiler does not properly
3200 # handle `-M -o', and we need to detect this.
3201 if depmode=$depmode \
3202 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3203 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3204 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3205 >/dev/null 2>conftest.err &&
3206 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3207 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3208 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3209 # icc doesn't choke on unknown options, it will just issue warnings
3210 # or remarks (even with -Werror). So we grep stderr for any message
3211 # that says an option was ignored or not supported.
3212 # When given -MP, icc 7.0 and 7.1 complain thusly:
3213 # icc: Command line warning: ignoring option '-M'; no argument required
3214 # The diagnosis changed in icc 8.0:
3215 # icc: Command line remark: option '-MP' not supported
3216 if (grep 'ignoring option' conftest.err ||
3217 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3218 am_cv_CC_dependencies_compiler_type=$depmode
3219 break
3222 done
3224 cd ..
3225 rm -rf conftest.dir
3226 else
3227 am_cv_CC_dependencies_compiler_type=none
3231 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3232 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3233 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3238 test "x$enable_dependency_tracking" != xno \
3239 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3240 am__fastdepCC_TRUE=
3241 am__fastdepCC_FALSE='#'
3242 else
3243 am__fastdepCC_TRUE='#'
3244 am__fastdepCC_FALSE=
3248 ac_ext=cc
3249 ac_cpp='$CXXCPP $CPPFLAGS'
3250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3253 if test -n "$ac_tool_prefix"; then
3254 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3258 echo "$as_me:$LINENO: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260 if test "${ac_cv_prog_CXX+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263 if test -n "$CXX"; then
3264 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 break 2
3277 done
3278 done
3282 CXX=$ac_cv_prog_CXX
3283 if test -n "$CXX"; then
3284 echo "$as_me:$LINENO: result: $CXX" >&5
3285 echo "${ECHO_T}$CXX" >&6
3286 else
3287 echo "$as_me:$LINENO: result: no" >&5
3288 echo "${ECHO_T}no" >&6
3291 test -n "$CXX" && break
3292 done
3294 if test -z "$CXX"; then
3295 ac_ct_CXX=$CXX
3296 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3298 # Extract the first word of "$ac_prog", so it can be a program name with args.
3299 set dummy $ac_prog; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305 if test -n "$ac_ct_CXX"; then
3306 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_ac_ct_CXX="$ac_prog"
3316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 break 2
3319 done
3320 done
3324 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3325 if test -n "$ac_ct_CXX"; then
3326 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3327 echo "${ECHO_T}$ac_ct_CXX" >&6
3328 else
3329 echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3333 test -n "$ac_ct_CXX" && break
3334 done
3335 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3337 CXX=$ac_ct_CXX
3341 # Provide some information about the compiler.
3342 echo "$as_me:$LINENO:" \
3343 "checking for C++ compiler version" >&5
3344 ac_compiler=`set X $ac_compile; echo $2`
3345 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3346 (eval $ac_compiler --version </dev/null >&5) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }
3350 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3351 (eval $ac_compiler -v </dev/null >&5) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }
3355 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3356 (eval $ac_compiler -V </dev/null >&5) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }
3361 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3362 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3363 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3374 main ()
3376 #ifndef __GNUC__
3377 choke me
3378 #endif
3381 return 0;
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3386 (eval $ac_compile) 2>conftest.er1
3387 ac_status=$?
3388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } &&
3393 { ac_try='test -z "$ac_cxx_werror_flag"
3394 || test ! -s conftest.err'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; } &&
3400 { ac_try='test -s conftest.$ac_objext'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 ac_compiler_gnu=yes
3407 else
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 ac_compiler_gnu=no
3413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3417 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3418 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3419 GXX=`test $ac_compiler_gnu = yes && echo yes`
3420 ac_test_CXXFLAGS=${CXXFLAGS+set}
3421 ac_save_CXXFLAGS=$CXXFLAGS
3422 CXXFLAGS="-g"
3423 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3424 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3425 if test "${ac_cv_prog_cxx_g+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428 cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h. */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3436 main ()
3440 return 0;
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_cxx_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest.$ac_objext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3465 ac_cv_prog_cxx_g=yes
3466 else
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 ac_cv_prog_cxx_g=no
3472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3474 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3475 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3476 if test "$ac_test_CXXFLAGS" = set; then
3477 CXXFLAGS=$ac_save_CXXFLAGS
3478 elif test $ac_cv_prog_cxx_g = yes; then
3479 if test "$GXX" = yes; then
3480 CXXFLAGS="-g -O2"
3481 else
3482 CXXFLAGS="-g"
3484 else
3485 if test "$GXX" = yes; then
3486 CXXFLAGS="-O2"
3487 else
3488 CXXFLAGS=
3491 for ac_declaration in \
3492 '' \
3493 'extern "C" void std::exit (int) throw (); using std::exit;' \
3494 'extern "C" void std::exit (int); using std::exit;' \
3495 'extern "C" void exit (int) throw ();' \
3496 'extern "C" void exit (int);' \
3497 'void exit (int);'
3499 cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h. */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3505 $ac_declaration
3506 #include <stdlib.h>
3508 main ()
3510 exit (42);
3512 return 0;
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517 (eval $ac_compile) 2>conftest.er1
3518 ac_status=$?
3519 grep -v '^ *+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -z "$ac_cxx_werror_flag"
3525 || test ! -s conftest.err'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 (eval $ac_try) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; } &&
3531 { ac_try='test -s conftest.$ac_objext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3538 else
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 continue
3544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3545 cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h. */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 $ac_declaration
3553 main ()
3555 exit (42);
3557 return 0;
3559 _ACEOF
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>conftest.er1
3563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
3569 { ac_try='test -z "$ac_cxx_werror_flag"
3570 || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try='test -s conftest.$ac_objext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 break
3583 else
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589 done
3590 rm -f conftest*
3591 if test -n "$ac_declaration"; then
3592 echo '#ifdef __cplusplus' >>confdefs.h
3593 echo $ac_declaration >>confdefs.h
3594 echo '#endif' >>confdefs.h
3597 ac_ext=c
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3603 depcc="$CXX" am_compiler_list=
3605 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3606 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3607 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3611 # We make a subdir and do the tests there. Otherwise we can end up
3612 # making bogus files that we don't know about and never remove. For
3613 # instance it was reported that on HP-UX the gcc test will end up
3614 # making a dummy file named `D' -- because `-MD' means `put the output
3615 # in D'.
3616 mkdir conftest.dir
3617 # Copy depcomp to subdir because otherwise we won't find it if we're
3618 # using a relative directory.
3619 cp "$am_depcomp" conftest.dir
3620 cd conftest.dir
3621 # We will build objects and dependencies in a subdirectory because
3622 # it helps to detect inapplicable dependency modes. For instance
3623 # both Tru64's cc and ICC support -MD to output dependencies as a
3624 # side effect of compilation, but ICC will put the dependencies in
3625 # the current directory while Tru64 will put them in the object
3626 # directory.
3627 mkdir sub
3629 am_cv_CXX_dependencies_compiler_type=none
3630 if test "$am_compiler_list" = ""; then
3631 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3633 for depmode in $am_compiler_list; do
3634 # Setup a source with many dependencies, because some compilers
3635 # like to wrap large dependency lists on column 80 (with \), and
3636 # we should not choose a depcomp mode which is confused by this.
3638 # We need to recreate these files for each test, as the compiler may
3639 # overwrite some of them when testing with obscure command lines.
3640 # This happens at least with the AIX C compiler.
3641 : > sub/conftest.c
3642 for i in 1 2 3 4 5 6; do
3643 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3644 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3645 # Solaris 8's {/usr,}/bin/sh.
3646 touch sub/conftst$i.h
3647 done
3648 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3650 case $depmode in
3651 nosideeffect)
3652 # after this tag, mechanisms are not by side-effect, so they'll
3653 # only be used when explicitly requested
3654 if test "x$enable_dependency_tracking" = xyes; then
3655 continue
3656 else
3657 break
3660 none) break ;;
3661 esac
3662 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3663 # mode. It turns out that the SunPro C++ compiler does not properly
3664 # handle `-M -o', and we need to detect this.
3665 if depmode=$depmode \
3666 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3667 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3668 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3669 >/dev/null 2>conftest.err &&
3670 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3671 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3672 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3673 # icc doesn't choke on unknown options, it will just issue warnings
3674 # or remarks (even with -Werror). So we grep stderr for any message
3675 # that says an option was ignored or not supported.
3676 # When given -MP, icc 7.0 and 7.1 complain thusly:
3677 # icc: Command line warning: ignoring option '-M'; no argument required
3678 # The diagnosis changed in icc 8.0:
3679 # icc: Command line remark: option '-MP' not supported
3680 if (grep 'ignoring option' conftest.err ||
3681 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3682 am_cv_CXX_dependencies_compiler_type=$depmode
3683 break
3686 done
3688 cd ..
3689 rm -rf conftest.dir
3690 else
3691 am_cv_CXX_dependencies_compiler_type=none
3695 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3696 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3697 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3702 test "x$enable_dependency_tracking" != xno \
3703 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3704 am__fastdepCXX_TRUE=
3705 am__fastdepCXX_FALSE='#'
3706 else
3707 am__fastdepCXX_TRUE='#'
3708 am__fastdepCXX_FALSE=
3714 if test "x$CC" != xcc; then
3715 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3716 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3717 else
3718 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3719 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3721 set dummy $CC; ac_cc=`echo $2 |
3722 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3723 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726 cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h. */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3734 main ()
3738 return 0;
3740 _ACEOF
3741 # Make sure it works both with $CC and with simple cc.
3742 # We do the test twice because some compilers refuse to overwrite an
3743 # existing .o file with -o, though they will create one.
3744 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3745 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746 (eval $ac_try) 2>&5
3747 ac_status=$?
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
3750 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 (eval $ac_try) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); };
3755 then
3756 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3757 if test "x$CC" != xcc; then
3758 # Test first that cc exists at all.
3759 if { ac_try='cc -c conftest.$ac_ext >&5'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3766 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 (eval $ac_try) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772 (eval $ac_try) 2>&5
3773 ac_status=$?
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); };
3776 then
3777 # cc works too.
3779 else
3780 # cc exists but doesn't like -o.
3781 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3785 else
3786 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3788 rm -f conftest*
3791 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3794 else
3795 echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6
3798 cat >>confdefs.h <<\_ACEOF
3799 #define NO_MINUS_C_MINUS_O 1
3800 _ACEOF
3804 # FIXME: we rely on the cache variable name because
3805 # there is no other way.
3806 set dummy $CC
3807 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3808 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3809 # Losing compiler, so override with the script.
3810 # FIXME: It is wrong to rewrite CC.
3811 # But if we don't then we get into trouble of one sort or another.
3812 # A longer-term fix would be to have automake use am__CC in this case,
3813 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3814 CC="$am_aux_dir/compile $CC"
3821 # Newer automakes demand CCAS and CCASFLAGS.
3822 : ${CCAS='$(CC)'}
3823 : ${CCASFLAGS='$(CFLAGS)'}
3827 if test -n "$ac_tool_prefix"; then
3828 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3829 set dummy ${ac_tool_prefix}as; ac_word=$2
3830 echo "$as_me:$LINENO: checking for $ac_word" >&5
3831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3832 if test "${ac_cv_prog_AS+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835 if test -n "$AS"; then
3836 ac_cv_prog_AS="$AS" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3845 ac_cv_prog_AS="${ac_tool_prefix}as"
3846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 break 2
3849 done
3850 done
3854 AS=$ac_cv_prog_AS
3855 if test -n "$AS"; then
3856 echo "$as_me:$LINENO: result: $AS" >&5
3857 echo "${ECHO_T}$AS" >&6
3858 else
3859 echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3864 if test -z "$ac_cv_prog_AS"; then
3865 ac_ct_AS=$AS
3866 # Extract the first word of "as", so it can be a program name with args.
3867 set dummy as; ac_word=$2
3868 echo "$as_me:$LINENO: checking for $ac_word" >&5
3869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3870 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873 if test -n "$ac_ct_AS"; then
3874 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883 ac_cv_prog_ac_ct_AS="as"
3884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 break 2
3887 done
3888 done
3892 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3893 if test -n "$ac_ct_AS"; then
3894 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3895 echo "${ECHO_T}$ac_ct_AS" >&6
3896 else
3897 echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6
3901 AS=$ac_ct_AS
3902 else
3903 AS="$ac_cv_prog_AS"
3906 if test -n "$ac_tool_prefix"; then
3907 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3908 set dummy ${ac_tool_prefix}ar; ac_word=$2
3909 echo "$as_me:$LINENO: checking for $ac_word" >&5
3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911 if test "${ac_cv_prog_AR+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 if test -n "$AR"; then
3915 ac_cv_prog_AR="$AR" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924 ac_cv_prog_AR="${ac_tool_prefix}ar"
3925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 break 2
3928 done
3929 done
3933 AR=$ac_cv_prog_AR
3934 if test -n "$AR"; then
3935 echo "$as_me:$LINENO: result: $AR" >&5
3936 echo "${ECHO_T}$AR" >&6
3937 else
3938 echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3943 if test -z "$ac_cv_prog_AR"; then
3944 ac_ct_AR=$AR
3945 # Extract the first word of "ar", so it can be a program name with args.
3946 set dummy ar; ac_word=$2
3947 echo "$as_me:$LINENO: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952 if test -n "$ac_ct_AR"; then
3953 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_prog_ac_ct_AR="ar"
3963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 break 2
3966 done
3967 done
3971 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3972 if test -n "$ac_ct_AR"; then
3973 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3974 echo "${ECHO_T}$ac_ct_AR" >&6
3975 else
3976 echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3980 AR=$ac_ct_AR
3981 else
3982 AR="$ac_cv_prog_AR"
3985 if test -n "$ac_tool_prefix"; then
3986 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3987 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3988 echo "$as_me:$LINENO: checking for $ac_word" >&5
3989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3990 if test "${ac_cv_prog_RANLIB+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 if test -n "$RANLIB"; then
3994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3995 else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 break 2
4007 done
4008 done
4012 RANLIB=$ac_cv_prog_RANLIB
4013 if test -n "$RANLIB"; then
4014 echo "$as_me:$LINENO: result: $RANLIB" >&5
4015 echo "${ECHO_T}$RANLIB" >&6
4016 else
4017 echo "$as_me:$LINENO: result: no" >&5
4018 echo "${ECHO_T}no" >&6
4022 if test -z "$ac_cv_prog_RANLIB"; then
4023 ac_ct_RANLIB=$RANLIB
4024 # Extract the first word of "ranlib", so it can be a program name with args.
4025 set dummy ranlib; ac_word=$2
4026 echo "$as_me:$LINENO: checking for $ac_word" >&5
4027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4028 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 if test -n "$ac_ct_RANLIB"; then
4032 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4033 else
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041 ac_cv_prog_ac_ct_RANLIB="ranlib"
4042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 break 2
4045 done
4046 done
4048 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4051 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4052 if test -n "$ac_ct_RANLIB"; then
4053 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4054 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4055 else
4056 echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4060 RANLIB=$ac_ct_RANLIB
4061 else
4062 RANLIB="$ac_cv_prog_RANLIB"
4066 # Find a good install program. We prefer a C program (faster),
4067 # so one script is as good as another. But avoid the broken or
4068 # incompatible versions:
4069 # SysV /etc/install, /usr/sbin/install
4070 # SunOS /usr/etc/install
4071 # IRIX /sbin/install
4072 # AIX /bin/install
4073 # AmigaOS /C/install, which installs bootblocks on floppy discs
4074 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4075 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4076 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4077 # OS/2's system install, which has a completely different semantic
4078 # ./install, which can be erroneously created by make from ./install.sh.
4079 # Reject install programs that cannot install multiple files.
4080 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4081 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4082 if test -z "$INSTALL"; then
4083 if test "${ac_cv_path_install+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 # Account for people who put trailing slashes in PATH elements.
4092 case $as_dir/ in
4093 ./ | .// | /cC/* | \
4094 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4095 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4096 /usr/ucb/* ) ;;
4098 # OSF1 and SCO ODT 3.0 have their own names for install.
4099 # Don't use installbsd from OSF since it installs stuff as root
4100 # by default.
4101 for ac_prog in ginstall scoinst install; do
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4104 if test $ac_prog = install &&
4105 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4106 # AIX install. It has an incompatible calling convention.
4108 elif test $ac_prog = install &&
4109 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4110 # program-specific install script used by HP pwplus--don't use.
4112 else
4113 rm -rf conftest.one conftest.two conftest.dir
4114 echo one > conftest.one
4115 echo two > conftest.two
4116 mkdir conftest.dir
4117 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4118 test -s conftest.one && test -s conftest.two &&
4119 test -s conftest.dir/conftest.one &&
4120 test -s conftest.dir/conftest.two
4121 then
4122 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4123 break 3
4127 done
4128 done
4130 esac
4131 done
4133 rm -rf conftest.one conftest.two conftest.dir
4136 if test "${ac_cv_path_install+set}" = set; then
4137 INSTALL=$ac_cv_path_install
4138 else
4139 # As a last resort, use the slow shell script. Don't cache a
4140 # value for INSTALL within a source directory, because that will
4141 # break other packages using the cache if that directory is
4142 # removed, or if the value is a relative name.
4143 INSTALL=$ac_install_sh
4146 echo "$as_me:$LINENO: result: $INSTALL" >&5
4147 echo "${ECHO_T}$INSTALL" >&6
4149 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4150 # It thinks the first close brace ends the variable substitution.
4151 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4153 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4155 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4158 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4159 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4160 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4161 if test "${enable_maintainer_mode+set}" = set; then
4162 enableval="$enable_maintainer_mode"
4163 USE_MAINTAINER_MODE=$enableval
4164 else
4165 USE_MAINTAINER_MODE=no
4167 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4168 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4171 if test $USE_MAINTAINER_MODE = yes; then
4172 MAINTAINER_MODE_TRUE=
4173 MAINTAINER_MODE_FALSE='#'
4174 else
4175 MAINTAINER_MODE_TRUE='#'
4176 MAINTAINER_MODE_FALSE=
4179 MAINT=$MAINTAINER_MODE_TRUE
4183 . ${srcdir}/configure.host
4185 case ${gc_basedir} in
4186 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
4187 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
4188 esac
4190 gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
4191 case "${host}" in
4192 *-*-cygwin32*)
4193 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
4195 esac
4198 GC_CFLAGS=${gc_cflags}
4201 case `pwd` in
4202 *\ * | *\ *)
4203 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4204 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4205 esac
4209 macro_version='2.2.6'
4210 macro_revision='1.3012'
4224 ltmain="$ac_aux_dir/ltmain.sh"
4226 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4227 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4228 if test "${lt_cv_path_SED+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231 # Loop through the user's path and test for sed and gsed.
4232 # Then use that list of sed's as ones to test for truncation.
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for lt_ac_prog in sed gsed; do
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4241 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4243 done
4244 done
4245 done
4246 IFS=$as_save_IFS
4247 lt_ac_max=0
4248 lt_ac_count=0
4249 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4250 # along with /bin/sed that truncates output.
4251 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4252 test ! -f $lt_ac_sed && continue
4253 cat /dev/null > conftest.in
4254 lt_ac_count=0
4255 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4256 # Check for GNU sed and select it if it is found.
4257 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4258 lt_cv_path_SED=$lt_ac_sed
4259 break
4261 while true; do
4262 cat conftest.in conftest.in >conftest.tmp
4263 mv conftest.tmp conftest.in
4264 cp conftest.in conftest.nl
4265 echo >>conftest.nl
4266 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4267 cmp -s conftest.out conftest.nl || break
4268 # 10000 chars as input seems more than enough
4269 test $lt_ac_count -gt 10 && break
4270 lt_ac_count=`expr $lt_ac_count + 1`
4271 if test $lt_ac_count -gt $lt_ac_max; then
4272 lt_ac_max=$lt_ac_count
4273 lt_cv_path_SED=$lt_ac_sed
4275 done
4276 done
4280 SED=$lt_cv_path_SED
4282 echo "$as_me:$LINENO: result: $SED" >&5
4283 echo "${ECHO_T}$SED" >&6
4285 test -z "$SED" && SED=sed
4286 Xsed="$SED -e 1s/^X//"
4298 echo "$as_me:$LINENO: checking for egrep" >&5
4299 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4300 if test "${ac_cv_prog_egrep+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4304 then ac_cv_prog_egrep='grep -E'
4305 else ac_cv_prog_egrep='egrep'
4308 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4309 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4310 EGREP=$ac_cv_prog_egrep
4313 echo "$as_me:$LINENO: checking for fgrep" >&5
4314 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4315 if test "${ac_cv_prog_fgrep+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4319 then ac_cv_prog_fgrep='grep -F'
4320 else ac_cv_prog_fgrep='fgrep'
4323 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4324 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4325 FGREP=$ac_cv_prog_fgrep
4328 test -z "$GREP" && GREP=grep
4348 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4349 if test "${with_gnu_ld+set}" = set; then
4350 withval="$with_gnu_ld"
4351 test "$withval" = no || with_gnu_ld=yes
4352 else
4353 with_gnu_ld=no
4355 ac_prog=ld
4356 if test "$GCC" = yes; then
4357 # Check if gcc -print-prog-name=ld gives a path.
4358 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4359 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4360 case $host in
4361 *-*-mingw*)
4362 # gcc leaves a trailing carriage return which upsets mingw
4363 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4365 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4366 esac
4367 case $ac_prog in
4368 # Accept absolute paths.
4369 [\\/]* | ?:[\\/]*)
4370 re_direlt='/[^/][^/]*/\.\./'
4371 # Canonicalize the pathname of ld
4372 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4373 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4374 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4375 done
4376 test -z "$LD" && LD="$ac_prog"
4379 # If it fails, then pretend we aren't using GCC.
4380 ac_prog=ld
4383 # If it is relative, then search for the first ld in PATH.
4384 with_gnu_ld=unknown
4386 esac
4387 elif test "$with_gnu_ld" = yes; then
4388 echo "$as_me:$LINENO: checking for GNU ld" >&5
4389 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4390 else
4391 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4392 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4394 if test "${lt_cv_path_LD+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397 if test -z "$LD"; then
4398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4399 for ac_dir in $PATH; do
4400 IFS="$lt_save_ifs"
4401 test -z "$ac_dir" && ac_dir=.
4402 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4403 lt_cv_path_LD="$ac_dir/$ac_prog"
4404 # Check to see if the program is GNU ld. I'd rather use --version,
4405 # but apparently some variants of GNU ld only accept -v.
4406 # Break only if it was the GNU/non-GNU ld that we prefer.
4407 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4408 *GNU* | *'with BFD'*)
4409 test "$with_gnu_ld" != no && break
4412 test "$with_gnu_ld" != yes && break
4414 esac
4416 done
4417 IFS="$lt_save_ifs"
4418 else
4419 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4423 LD="$lt_cv_path_LD"
4424 if test -n "$LD"; then
4425 echo "$as_me:$LINENO: result: $LD" >&5
4426 echo "${ECHO_T}$LD" >&6
4427 else
4428 echo "$as_me:$LINENO: result: no" >&5
4429 echo "${ECHO_T}no" >&6
4431 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4432 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4433 { (exit 1); exit 1; }; }
4434 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4435 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4436 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4440 case `$LD -v 2>&1 </dev/null` in
4441 *GNU* | *'with BFD'*)
4442 lt_cv_prog_gnu_ld=yes
4445 lt_cv_prog_gnu_ld=no
4447 esac
4449 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4450 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4451 with_gnu_ld=$lt_cv_prog_gnu_ld
4461 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4462 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4463 if test "${lt_cv_path_NM+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466 if test -n "$NM"; then
4467 # Let the user override the test.
4468 lt_cv_path_NM="$NM"
4469 else
4470 lt_nm_to_check="${ac_tool_prefix}nm"
4471 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4472 lt_nm_to_check="$lt_nm_to_check nm"
4474 for lt_tmp_nm in $lt_nm_to_check; do
4475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4476 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4477 IFS="$lt_save_ifs"
4478 test -z "$ac_dir" && ac_dir=.
4479 tmp_nm="$ac_dir/$lt_tmp_nm"
4480 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4481 # Check to see if the nm accepts a BSD-compat flag.
4482 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4483 # nm: unknown option "B" ignored
4484 # Tru64's nm complains that /dev/null is an invalid object file
4485 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4486 */dev/null* | *'Invalid file or object type'*)
4487 lt_cv_path_NM="$tmp_nm -B"
4488 break
4491 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4492 */dev/null*)
4493 lt_cv_path_NM="$tmp_nm -p"
4494 break
4497 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4498 continue # so that we can try to find one that supports BSD flags
4500 esac
4502 esac
4504 done
4505 IFS="$lt_save_ifs"
4506 done
4507 : ${lt_cv_path_NM=no}
4510 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4511 echo "${ECHO_T}$lt_cv_path_NM" >&6
4512 if test "$lt_cv_path_NM" != "no"; then
4513 NM="$lt_cv_path_NM"
4514 else
4515 # Didn't find any BSD compatible name lister, look for dumpbin.
4516 if test -n "$ac_tool_prefix"; then
4517 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4521 echo "$as_me:$LINENO: checking for $ac_word" >&5
4522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4523 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 if test -n "$DUMPBIN"; then
4527 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4528 else
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 break 2
4540 done
4541 done
4545 DUMPBIN=$ac_cv_prog_DUMPBIN
4546 if test -n "$DUMPBIN"; then
4547 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4548 echo "${ECHO_T}$DUMPBIN" >&6
4549 else
4550 echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6
4554 test -n "$DUMPBIN" && break
4555 done
4557 if test -z "$DUMPBIN"; then
4558 ac_ct_DUMPBIN=$DUMPBIN
4559 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568 if test -n "$ac_ct_DUMPBIN"; then
4569 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4582 done
4583 done
4587 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4588 if test -n "$ac_ct_DUMPBIN"; then
4589 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4590 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4591 else
4592 echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6
4596 test -n "$ac_ct_DUMPBIN" && break
4597 done
4598 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4600 DUMPBIN=$ac_ct_DUMPBIN
4604 if test "$DUMPBIN" != ":"; then
4605 NM="$DUMPBIN"
4608 test -z "$NM" && NM=nm
4615 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4616 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4617 if test "${lt_cv_nm_interface+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620 lt_cv_nm_interface="BSD nm"
4621 echo "int some_variable = 0;" > conftest.$ac_ext
4622 (eval echo "\"\$as_me:4622: $ac_compile\"" >&5)
4623 (eval "$ac_compile" 2>conftest.err)
4624 cat conftest.err >&5
4625 (eval echo "\"\$as_me:4625: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4626 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4627 cat conftest.err >&5
4628 (eval echo "\"\$as_me:4628: output\"" >&5)
4629 cat conftest.out >&5
4630 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4631 lt_cv_nm_interface="MS dumpbin"
4633 rm -f conftest*
4635 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4636 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4638 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4639 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4640 LN_S=$as_ln_s
4641 if test "$LN_S" = "ln -s"; then
4642 echo "$as_me:$LINENO: result: yes" >&5
4643 echo "${ECHO_T}yes" >&6
4644 else
4645 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4646 echo "${ECHO_T}no, using $LN_S" >&6
4649 # find the maximum length of command line arguments
4650 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4651 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4652 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4656 teststring="ABCD"
4658 case $build_os in
4659 msdosdjgpp*)
4660 # On DJGPP, this test can blow up pretty badly due to problems in libc
4661 # (any single argument exceeding 2000 bytes causes a buffer overrun
4662 # during glob expansion). Even if it were fixed, the result of this
4663 # check would be larger than it should be.
4664 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4667 gnu*)
4668 # Under GNU Hurd, this test is not required because there is
4669 # no limit to the length of command line arguments.
4670 # Libtool will interpret -1 as no limit whatsoever
4671 lt_cv_sys_max_cmd_len=-1;
4674 cygwin* | mingw* | cegcc*)
4675 # On Win9x/ME, this test blows up -- it succeeds, but takes
4676 # about 5 minutes as the teststring grows exponentially.
4677 # Worse, since 9x/ME are not pre-emptively multitasking,
4678 # you end up with a "frozen" computer, even though with patience
4679 # the test eventually succeeds (with a max line length of 256k).
4680 # Instead, let's just punt: use the minimum linelength reported by
4681 # all of the supported platforms: 8192 (on NT/2K/XP).
4682 lt_cv_sys_max_cmd_len=8192;
4685 amigaos*)
4686 # On AmigaOS with pdksh, this test takes hours, literally.
4687 # So we just punt and use a minimum line length of 8192.
4688 lt_cv_sys_max_cmd_len=8192;
4691 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4692 # This has been around since 386BSD, at least. Likely further.
4693 if test -x /sbin/sysctl; then
4694 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4695 elif test -x /usr/sbin/sysctl; then
4696 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4697 else
4698 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4700 # And add a safety zone
4701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4705 interix*)
4706 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4707 lt_cv_sys_max_cmd_len=196608
4710 osf*)
4711 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4712 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4713 # nice to cause kernel panics so lets avoid the loop below.
4714 # First set a reasonable default.
4715 lt_cv_sys_max_cmd_len=16384
4717 if test -x /sbin/sysconfig; then
4718 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4719 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4720 esac
4723 sco3.2v5*)
4724 lt_cv_sys_max_cmd_len=102400
4726 sysv5* | sco5v6* | sysv4.2uw2*)
4727 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4728 if test -n "$kargmax"; then
4729 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4730 else
4731 lt_cv_sys_max_cmd_len=32768
4735 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4736 if test -n "$lt_cv_sys_max_cmd_len"; then
4737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4739 else
4740 # Make teststring a little bigger before we do anything with it.
4741 # a 1K string should be a reasonable start.
4742 for i in 1 2 3 4 5 6 7 8 ; do
4743 teststring=$teststring$teststring
4744 done
4745 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4746 # If test is not a shell built-in, we'll probably end up computing a
4747 # maximum length that is only half of the actual maximum length, but
4748 # we can't tell.
4749 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4750 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4751 test $i != 17 # 1/2 MB should be enough
4753 i=`expr $i + 1`
4754 teststring=$teststring$teststring
4755 done
4756 # Only check the string length outside the loop.
4757 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4758 teststring=
4759 # Add a significant safety factor because C++ compilers can tack on
4760 # massive amounts of additional arguments before passing them to the
4761 # linker. It appears as though 1/2 is a usable value.
4762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4765 esac
4769 if test -n $lt_cv_sys_max_cmd_len ; then
4770 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4771 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4772 else
4773 echo "$as_me:$LINENO: result: none" >&5
4774 echo "${ECHO_T}none" >&6
4776 max_cmd_len=$lt_cv_sys_max_cmd_len
4783 : ${CP="cp -f"}
4784 : ${MV="mv -f"}
4785 : ${RM="rm -f"}
4787 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4788 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4789 # Try some XSI features
4790 xsi_shell=no
4791 ( _lt_dummy="a/b/c"
4792 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4793 = c,a/b,, \
4794 && eval 'test $(( 1 + 1 )) -eq 2 \
4795 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4796 && xsi_shell=yes
4797 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4798 echo "${ECHO_T}$xsi_shell" >&6
4801 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4802 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4803 lt_shell_append=no
4804 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4805 >/dev/null 2>&1 \
4806 && lt_shell_append=yes
4807 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4808 echo "${ECHO_T}$lt_shell_append" >&6
4811 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4812 lt_unset=unset
4813 else
4814 lt_unset=false
4821 # test EBCDIC or ASCII
4822 case `echo X|tr X '\101'` in
4823 A) # ASCII based system
4824 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4825 lt_SP2NL='tr \040 \012'
4826 lt_NL2SP='tr \015\012 \040\040'
4828 *) # EBCDIC based system
4829 lt_SP2NL='tr \100 \n'
4830 lt_NL2SP='tr \r\n \100\100'
4832 esac
4842 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4843 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4844 if test "${lt_cv_ld_reload_flag+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847 lt_cv_ld_reload_flag='-r'
4849 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4850 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4851 reload_flag=$lt_cv_ld_reload_flag
4852 case $reload_flag in
4853 "" | " "*) ;;
4854 *) reload_flag=" $reload_flag" ;;
4855 esac
4856 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4857 case $host_os in
4858 darwin*)
4859 if test "$GCC" = yes; then
4860 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4861 else
4862 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4865 esac
4875 if test -n "$ac_tool_prefix"; then
4876 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4877 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4878 echo "$as_me:$LINENO: checking for $ac_word" >&5
4879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4880 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883 if test -n "$OBJDUMP"; then
4884 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4885 else
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4897 done
4898 done
4902 OBJDUMP=$ac_cv_prog_OBJDUMP
4903 if test -n "$OBJDUMP"; then
4904 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4905 echo "${ECHO_T}$OBJDUMP" >&6
4906 else
4907 echo "$as_me:$LINENO: result: no" >&5
4908 echo "${ECHO_T}no" >&6
4912 if test -z "$ac_cv_prog_OBJDUMP"; then
4913 ac_ct_OBJDUMP=$OBJDUMP
4914 # Extract the first word of "objdump", so it can be a program name with args.
4915 set dummy objdump; ac_word=$2
4916 echo "$as_me:$LINENO: checking for $ac_word" >&5
4917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4918 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921 if test -n "$ac_ct_OBJDUMP"; then
4922 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4935 done
4936 done
4938 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4941 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4942 if test -n "$ac_ct_OBJDUMP"; then
4943 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4944 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4945 else
4946 echo "$as_me:$LINENO: result: no" >&5
4947 echo "${ECHO_T}no" >&6
4950 OBJDUMP=$ac_ct_OBJDUMP
4951 else
4952 OBJDUMP="$ac_cv_prog_OBJDUMP"
4955 test -z "$OBJDUMP" && OBJDUMP=objdump
4965 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4966 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4967 if test "${lt_cv_deplibs_check_method+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970 lt_cv_file_magic_cmd='$MAGIC_CMD'
4971 lt_cv_file_magic_test_file=
4972 lt_cv_deplibs_check_method='unknown'
4973 # Need to set the preceding variable on all platforms that support
4974 # interlibrary dependencies.
4975 # 'none' -- dependencies not supported.
4976 # `unknown' -- same as none, but documents that we really don't know.
4977 # 'pass_all' -- all dependencies passed with no checks.
4978 # 'test_compile' -- check by making test program.
4979 # 'file_magic [[regex]]' -- check by looking for files in library path
4980 # which responds to the $file_magic_cmd with a given extended regex.
4981 # If you have `file' or equivalent on your system and you're not sure
4982 # whether `pass_all' will *always* work, you probably want this one.
4984 case $host_os in
4985 aix[4-9]*)
4986 lt_cv_deplibs_check_method=pass_all
4989 beos*)
4990 lt_cv_deplibs_check_method=pass_all
4993 bsdi[45]*)
4994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4995 lt_cv_file_magic_cmd='/usr/bin/file -L'
4996 lt_cv_file_magic_test_file=/shlib/libc.so
4999 cygwin*)
5000 # func_win32_libid is a shell function defined in ltmain.sh
5001 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5002 lt_cv_file_magic_cmd='func_win32_libid'
5005 mingw* | pw32*)
5006 # Base MSYS/MinGW do not provide the 'file' command needed by
5007 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5008 # unless we find 'file', for example because we are cross-compiling.
5009 if ( file / ) >/dev/null 2>&1; then
5010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5011 lt_cv_file_magic_cmd='func_win32_libid'
5012 else
5013 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5014 lt_cv_file_magic_cmd='$OBJDUMP -f'
5018 cegcc)
5019 # use the weaker test based on 'objdump'. See mingw*.
5020 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5021 lt_cv_file_magic_cmd='$OBJDUMP -f'
5024 darwin* | rhapsody*)
5025 lt_cv_deplibs_check_method=pass_all
5028 freebsd* | dragonfly*)
5029 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5030 case $host_cpu in
5031 i*86 )
5032 # Not sure whether the presence of OpenBSD here was a mistake.
5033 # Let's accept both of them until this is cleared up.
5034 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5035 lt_cv_file_magic_cmd=/usr/bin/file
5036 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5038 esac
5039 else
5040 lt_cv_deplibs_check_method=pass_all
5044 gnu*)
5045 lt_cv_deplibs_check_method=pass_all
5048 hpux10.20* | hpux11*)
5049 lt_cv_file_magic_cmd=/usr/bin/file
5050 case $host_cpu in
5051 ia64*)
5052 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5053 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5055 hppa*64*)
5056 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]'
5057 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5060 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5061 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5063 esac
5066 interix[3-9]*)
5067 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5071 irix5* | irix6* | nonstopux*)
5072 case $LD in
5073 *-32|*"-32 ") libmagic=32-bit;;
5074 *-n32|*"-n32 ") libmagic=N32;;
5075 *-64|*"-64 ") libmagic=64-bit;;
5076 *) libmagic=never-match;;
5077 esac
5078 lt_cv_deplibs_check_method=pass_all
5081 # This must be Linux ELF.
5082 linux* | k*bsd*-gnu)
5083 lt_cv_deplibs_check_method=pass_all
5086 netbsd*)
5087 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5089 else
5090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5094 newos6*)
5095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5096 lt_cv_file_magic_cmd=/usr/bin/file
5097 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5100 *nto* | *qnx*)
5101 lt_cv_deplibs_check_method=pass_all
5104 openbsd*)
5105 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5107 else
5108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5112 osf3* | osf4* | osf5*)
5113 lt_cv_deplibs_check_method=pass_all
5116 rdos*)
5117 lt_cv_deplibs_check_method=pass_all
5120 solaris*)
5121 lt_cv_deplibs_check_method=pass_all
5124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5125 lt_cv_deplibs_check_method=pass_all
5128 sysv4 | sysv4.3*)
5129 case $host_vendor in
5130 motorola)
5131 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]'
5132 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5134 ncr)
5135 lt_cv_deplibs_check_method=pass_all
5137 sequent)
5138 lt_cv_file_magic_cmd='/bin/file'
5139 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5141 sni)
5142 lt_cv_file_magic_cmd='/bin/file'
5143 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5144 lt_cv_file_magic_test_file=/lib/libc.so
5146 siemens)
5147 lt_cv_deplibs_check_method=pass_all
5150 lt_cv_deplibs_check_method=pass_all
5152 esac
5155 tpf*)
5156 lt_cv_deplibs_check_method=pass_all
5158 esac
5161 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5162 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5163 file_magic_cmd=$lt_cv_file_magic_cmd
5164 deplibs_check_method=$lt_cv_deplibs_check_method
5165 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5178 if test -n "$ac_tool_prefix"; then
5179 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5180 set dummy ${ac_tool_prefix}ar; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_prog_AR+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186 if test -n "$AR"; then
5187 ac_cv_prog_AR="$AR" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_AR="${ac_tool_prefix}ar"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5200 done
5201 done
5205 AR=$ac_cv_prog_AR
5206 if test -n "$AR"; then
5207 echo "$as_me:$LINENO: result: $AR" >&5
5208 echo "${ECHO_T}$AR" >&6
5209 else
5210 echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5215 if test -z "$ac_cv_prog_AR"; then
5216 ac_ct_AR=$AR
5217 # Extract the first word of "ar", so it can be a program name with args.
5218 set dummy ar; ac_word=$2
5219 echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5221 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 if test -n "$ac_ct_AR"; then
5225 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_ac_ct_AR="ar"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5238 done
5239 done
5241 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5244 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5245 if test -n "$ac_ct_AR"; then
5246 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5247 echo "${ECHO_T}$ac_ct_AR" >&6
5248 else
5249 echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6
5253 AR=$ac_ct_AR
5254 else
5255 AR="$ac_cv_prog_AR"
5258 test -z "$AR" && AR=ar
5259 test -z "$AR_FLAGS" && AR_FLAGS=cru
5271 if test -n "$ac_tool_prefix"; then
5272 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5273 set dummy ${ac_tool_prefix}strip; ac_word=$2
5274 echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5276 if test "${ac_cv_prog_STRIP+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279 if test -n "$STRIP"; then
5280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5281 else
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5293 done
5294 done
5298 STRIP=$ac_cv_prog_STRIP
5299 if test -n "$STRIP"; then
5300 echo "$as_me:$LINENO: result: $STRIP" >&5
5301 echo "${ECHO_T}$STRIP" >&6
5302 else
5303 echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6
5308 if test -z "$ac_cv_prog_STRIP"; then
5309 ac_ct_STRIP=$STRIP
5310 # Extract the first word of "strip", so it can be a program name with args.
5311 set dummy strip; ac_word=$2
5312 echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5314 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317 if test -n "$ac_ct_STRIP"; then
5318 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_ac_ct_STRIP="strip"
5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5331 done
5332 done
5334 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5337 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5338 if test -n "$ac_ct_STRIP"; then
5339 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5340 echo "${ECHO_T}$ac_ct_STRIP" >&6
5341 else
5342 echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6
5346 STRIP=$ac_ct_STRIP
5347 else
5348 STRIP="$ac_cv_prog_STRIP"
5351 test -z "$STRIP" && STRIP=:
5358 if test -n "$ac_tool_prefix"; then
5359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5361 echo "$as_me:$LINENO: checking for $ac_word" >&5
5362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5363 if test "${ac_cv_prog_RANLIB+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366 if test -n "$RANLIB"; then
5367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5368 else
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 break 2
5380 done
5381 done
5385 RANLIB=$ac_cv_prog_RANLIB
5386 if test -n "$RANLIB"; then
5387 echo "$as_me:$LINENO: result: $RANLIB" >&5
5388 echo "${ECHO_T}$RANLIB" >&6
5389 else
5390 echo "$as_me:$LINENO: result: no" >&5
5391 echo "${ECHO_T}no" >&6
5395 if test -z "$ac_cv_prog_RANLIB"; then
5396 ac_ct_RANLIB=$RANLIB
5397 # Extract the first word of "ranlib", so it can be a program name with args.
5398 set dummy ranlib; ac_word=$2
5399 echo "$as_me:$LINENO: checking for $ac_word" >&5
5400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5401 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404 if test -n "$ac_ct_RANLIB"; then
5405 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_ac_ct_RANLIB="ranlib"
5415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5418 done
5419 done
5421 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5424 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5425 if test -n "$ac_ct_RANLIB"; then
5426 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5427 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5428 else
5429 echo "$as_me:$LINENO: result: no" >&5
5430 echo "${ECHO_T}no" >&6
5433 RANLIB=$ac_ct_RANLIB
5434 else
5435 RANLIB="$ac_cv_prog_RANLIB"
5438 test -z "$RANLIB" && RANLIB=:
5445 # Determine commands to create old-style static archives.
5446 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5447 old_postinstall_cmds='chmod 644 $oldlib'
5448 old_postuninstall_cmds=
5450 if test -n "$RANLIB"; then
5451 case $host_os in
5452 openbsd*)
5453 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5456 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5458 esac
5459 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5495 # If no C compiler was specified, use CC.
5496 LTCC=${LTCC-"$CC"}
5498 # If no C compiler flags were specified, use CFLAGS.
5499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5501 # Allow CC to be a program name with arguments.
5502 compiler=$CC
5505 # Check for command to grab the raw symbol name followed by C symbol from nm.
5506 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5507 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5508 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5512 # These are sane defaults that work on at least a few old systems.
5513 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5515 # Character class describing NM global symbol codes.
5516 symcode='[BCDEGRST]'
5518 # Regexp to match symbols that can be accessed directly from C.
5519 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5521 # Define system-specific variables.
5522 case $host_os in
5523 aix*)
5524 symcode='[BCDT]'
5526 cygwin* | mingw* | pw32* | cegcc*)
5527 symcode='[ABCDGISTW]'
5529 hpux*)
5530 if test "$host_cpu" = ia64; then
5531 symcode='[ABCDEGRST]'
5534 irix* | nonstopux*)
5535 symcode='[BCDEGRST]'
5537 osf*)
5538 symcode='[BCDEGQRST]'
5540 solaris*)
5541 symcode='[BDRT]'
5543 sco3.2v5*)
5544 symcode='[DT]'
5546 sysv4.2uw2*)
5547 symcode='[DT]'
5549 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5550 symcode='[ABDT]'
5552 sysv4)
5553 symcode='[DFNSTU]'
5555 esac
5557 # If we're using GNU nm, then use its standard symbol codes.
5558 case `$NM -V 2>&1` in
5559 *GNU* | *'with BFD'*)
5560 symcode='[ABCDGIRSTW]' ;;
5561 esac
5563 # Transform an extracted symbol line into a proper C declaration.
5564 # Some systems (esp. on ia64) link data and code symbols differently,
5565 # so use this general approach.
5566 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5568 # Transform an extracted symbol line into symbol name and symbol address
5569 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5570 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5572 # Handle CRLF in mingw tool chain
5573 opt_cr=
5574 case $build_os in
5575 mingw*)
5576 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5578 esac
5580 # Try without a prefix underscore, then with it.
5581 for ac_symprfx in "" "_"; do
5583 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5584 symxfrm="\\1 $ac_symprfx\\2 \\2"
5586 # Write the raw and C identifiers.
5587 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5588 # Fake it for dumpbin and say T for any non-static function
5589 # and D for any global variable.
5590 # Also find C++ and __fastcall symbols from MSVC++,
5591 # which start with @ or ?.
5592 lt_cv_sys_global_symbol_pipe="$AWK '"\
5593 " {last_section=section; section=\$ 3};"\
5594 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5595 " \$ 0!~/External *\|/{next};"\
5596 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5597 " {if(hide[section]) next};"\
5598 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5599 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5600 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5601 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5602 " ' prfx=^$ac_symprfx"
5603 else
5604 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5607 # Check to see that the pipe works correctly.
5608 pipe_works=no
5610 rm -f conftest*
5611 cat > conftest.$ac_ext <<_LT_EOF
5612 #ifdef __cplusplus
5613 extern "C" {
5614 #endif
5615 char nm_test_var;
5616 void nm_test_func(void);
5617 void nm_test_func(void){}
5618 #ifdef __cplusplus
5620 #endif
5621 int main(){nm_test_var='a';nm_test_func();return(0);}
5622 _LT_EOF
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625 (eval $ac_compile) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; then
5629 # Now try to grab the symbols.
5630 nlist=conftest.nm
5631 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5632 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5633 ac_status=$?
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } && test -s "$nlist"; then
5636 # Try sorting and uniquifying the output.
5637 if sort "$nlist" | uniq > "$nlist"T; then
5638 mv -f "$nlist"T "$nlist"
5639 else
5640 rm -f "$nlist"T
5643 # Make sure that we snagged all the symbols we need.
5644 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5645 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5646 cat <<_LT_EOF > conftest.$ac_ext
5647 #ifdef __cplusplus
5648 extern "C" {
5649 #endif
5651 _LT_EOF
5652 # Now generate the symbol file.
5653 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5655 cat <<_LT_EOF >> conftest.$ac_ext
5657 /* The mapping between symbol names and symbols. */
5658 const struct {
5659 const char *name;
5660 void *address;
5662 lt__PROGRAM__LTX_preloaded_symbols[] =
5664 { "@PROGRAM@", (void *) 0 },
5665 _LT_EOF
5666 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5667 cat <<\_LT_EOF >> conftest.$ac_ext
5668 {0, (void *) 0}
5671 /* This works around a problem in FreeBSD linker */
5672 #ifdef FREEBSD_WORKAROUND
5673 static const void *lt_preloaded_setup() {
5674 return lt__PROGRAM__LTX_preloaded_symbols;
5676 #endif
5678 #ifdef __cplusplus
5680 #endif
5681 _LT_EOF
5682 # Now try linking the two files.
5683 mv conftest.$ac_objext conftstm.$ac_objext
5684 lt_save_LIBS="$LIBS"
5685 lt_save_CFLAGS="$CFLAGS"
5686 LIBS="conftstm.$ac_objext"
5687 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5689 (eval $ac_link) 2>&5
5690 ac_status=$?
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5693 pipe_works=yes
5695 LIBS="$lt_save_LIBS"
5696 CFLAGS="$lt_save_CFLAGS"
5697 else
5698 echo "cannot find nm_test_func in $nlist" >&5
5700 else
5701 echo "cannot find nm_test_var in $nlist" >&5
5703 else
5704 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5706 else
5707 echo "$progname: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5710 rm -rf conftest* conftst*
5712 # Do not use the global_symbol_pipe unless it works.
5713 if test "$pipe_works" = yes; then
5714 break
5715 else
5716 lt_cv_sys_global_symbol_pipe=
5718 done
5722 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5723 lt_cv_sys_global_symbol_to_cdecl=
5725 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5726 echo "$as_me:$LINENO: result: failed" >&5
5727 echo "${ECHO_T}failed" >&6
5728 else
5729 echo "$as_me:$LINENO: result: ok" >&5
5730 echo "${ECHO_T}ok" >&6
5755 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5756 if test "${enable_libtool_lock+set}" = set; then
5757 enableval="$enable_libtool_lock"
5760 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5762 # Some flags need to be propagated to the compiler or linker for good
5763 # libtool support.
5764 case $host in
5765 ia64-*-hpux*)
5766 # Find out which ABI we are using.
5767 echo 'int i;' > conftest.$ac_ext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; then
5773 case `/usr/bin/file conftest.$ac_objext` in
5774 *ELF-32*)
5775 HPUX_IA64_MODE="32"
5777 *ELF-64*)
5778 HPUX_IA64_MODE="64"
5780 esac
5782 rm -rf conftest*
5784 *-*-irix6*)
5785 # Find out which ABI we are using.
5786 echo '#line 5786 "configure"' > conftest.$ac_ext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5788 (eval $ac_compile) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; then
5792 if test "$lt_cv_prog_gnu_ld" = yes; then
5793 case `/usr/bin/file conftest.$ac_objext` in
5794 *32-bit*)
5795 LD="${LD-ld} -melf32bsmip"
5797 *N32*)
5798 LD="${LD-ld} -melf32bmipn32"
5800 *64-bit*)
5801 LD="${LD-ld} -melf64bmip"
5803 esac
5804 else
5805 case `/usr/bin/file conftest.$ac_objext` in
5806 *32-bit*)
5807 LD="${LD-ld} -32"
5809 *N32*)
5810 LD="${LD-ld} -n32"
5812 *64-bit*)
5813 LD="${LD-ld} -64"
5815 esac
5818 rm -rf conftest*
5821 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5822 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5823 # Find out which ABI we are using.
5824 echo 'int i;' > conftest.$ac_ext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5826 (eval $ac_compile) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; then
5830 case `/usr/bin/file conftest.o` in
5831 *32-bit*)
5832 case $host in
5833 x86_64-*kfreebsd*-gnu)
5834 LD="${LD-ld} -m elf_i386_fbsd"
5836 x86_64-*linux*)
5837 LD="${LD-ld} -m elf_i386"
5839 ppc64-*linux*|powerpc64-*linux*)
5840 LD="${LD-ld} -m elf32ppclinux"
5842 s390x-*linux*)
5843 LD="${LD-ld} -m elf_s390"
5845 sparc64-*linux*)
5846 LD="${LD-ld} -m elf32_sparc"
5848 esac
5850 *64-bit*)
5851 case $host in
5852 x86_64-*kfreebsd*-gnu)
5853 LD="${LD-ld} -m elf_x86_64_fbsd"
5855 x86_64-*linux*)
5856 LD="${LD-ld} -m elf_x86_64"
5858 ppc*-*linux*|powerpc*-*linux*)
5859 LD="${LD-ld} -m elf64ppc"
5861 s390*-*linux*|s390*-*tpf*)
5862 LD="${LD-ld} -m elf64_s390"
5864 sparc*-*linux*)
5865 LD="${LD-ld} -m elf64_sparc"
5867 esac
5869 esac
5871 rm -rf conftest*
5874 *-*-sco3.2v5*)
5875 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5876 SAVE_CFLAGS="$CFLAGS"
5877 CFLAGS="$CFLAGS -belf"
5878 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5879 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5880 if test "${lt_cv_cc_needs_belf+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 else
5883 ac_ext=c
5884 ac_cpp='$CPP $CPPFLAGS'
5885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5889 if test x$gcc_no_link = xyes; then
5890 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5891 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5892 { (exit 1); exit 1; }; }
5894 cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h. */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5902 main ()
5906 return 0;
5908 _ACEOF
5909 rm -f conftest.$ac_objext conftest$ac_exeext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5911 (eval $ac_link) 2>conftest.er1
5912 ac_status=$?
5913 grep -v '^ *+' conftest.er1 >conftest.err
5914 rm -f conftest.er1
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } &&
5918 { ac_try='test -z "$ac_c_werror_flag"
5919 || test ! -s conftest.err'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 (eval $ac_try) 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; } &&
5925 { ac_try='test -s conftest$ac_exeext'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 (eval $ac_try) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
5931 lt_cv_cc_needs_belf=yes
5932 else
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5936 lt_cv_cc_needs_belf=no
5938 rm -f conftest.err conftest.$ac_objext \
5939 conftest$ac_exeext conftest.$ac_ext
5940 ac_ext=c
5941 ac_cpp='$CPP $CPPFLAGS'
5942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5947 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5948 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5949 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5950 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5951 CFLAGS="$SAVE_CFLAGS"
5954 sparc*-*solaris*)
5955 # Find out which ABI we are using.
5956 echo 'int i;' > conftest.$ac_ext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5958 (eval $ac_compile) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; then
5962 case `/usr/bin/file conftest.o` in
5963 *64-bit*)
5964 case $lt_cv_prog_gnu_ld in
5965 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5967 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5968 LD="${LD-ld} -64"
5971 esac
5973 esac
5975 rm -rf conftest*
5977 esac
5979 need_locks="$enable_libtool_lock"
5982 case $host_os in
5983 rhapsody* | darwin*)
5984 if test -n "$ac_tool_prefix"; then
5985 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5986 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5987 echo "$as_me:$LINENO: checking for $ac_word" >&5
5988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5989 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992 if test -n "$DSYMUTIL"; then
5993 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5994 else
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6002 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 break 2
6006 done
6007 done
6011 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6012 if test -n "$DSYMUTIL"; then
6013 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6014 echo "${ECHO_T}$DSYMUTIL" >&6
6015 else
6016 echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6
6021 if test -z "$ac_cv_prog_DSYMUTIL"; then
6022 ac_ct_DSYMUTIL=$DSYMUTIL
6023 # Extract the first word of "dsymutil", so it can be a program name with args.
6024 set dummy dsymutil; ac_word=$2
6025 echo "$as_me:$LINENO: checking for $ac_word" >&5
6026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6027 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030 if test -n "$ac_ct_DSYMUTIL"; then
6031 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6032 else
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6036 IFS=$as_save_IFS
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 break 2
6044 done
6045 done
6047 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6050 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6051 if test -n "$ac_ct_DSYMUTIL"; then
6052 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6053 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6054 else
6055 echo "$as_me:$LINENO: result: no" >&5
6056 echo "${ECHO_T}no" >&6
6059 DSYMUTIL=$ac_ct_DSYMUTIL
6060 else
6061 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6064 if test -n "$ac_tool_prefix"; then
6065 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6066 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6067 echo "$as_me:$LINENO: checking for $ac_word" >&5
6068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6069 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072 if test -n "$NMEDIT"; then
6073 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6086 done
6087 done
6091 NMEDIT=$ac_cv_prog_NMEDIT
6092 if test -n "$NMEDIT"; then
6093 echo "$as_me:$LINENO: result: $NMEDIT" >&5
6094 echo "${ECHO_T}$NMEDIT" >&6
6095 else
6096 echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6
6101 if test -z "$ac_cv_prog_NMEDIT"; then
6102 ac_ct_NMEDIT=$NMEDIT
6103 # Extract the first word of "nmedit", so it can be a program name with args.
6104 set dummy nmedit; ac_word=$2
6105 echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6107 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110 if test -n "$ac_ct_NMEDIT"; then
6111 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6124 done
6125 done
6127 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6130 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6131 if test -n "$ac_ct_NMEDIT"; then
6132 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6133 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6134 else
6135 echo "$as_me:$LINENO: result: no" >&5
6136 echo "${ECHO_T}no" >&6
6139 NMEDIT=$ac_ct_NMEDIT
6140 else
6141 NMEDIT="$ac_cv_prog_NMEDIT"
6144 if test -n "$ac_tool_prefix"; then
6145 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6146 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6147 echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6149 if test "${ac_cv_prog_LIPO+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152 if test -n "$LIPO"; then
6153 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6154 else
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6162 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 break 2
6166 done
6167 done
6171 LIPO=$ac_cv_prog_LIPO
6172 if test -n "$LIPO"; then
6173 echo "$as_me:$LINENO: result: $LIPO" >&5
6174 echo "${ECHO_T}$LIPO" >&6
6175 else
6176 echo "$as_me:$LINENO: result: no" >&5
6177 echo "${ECHO_T}no" >&6
6181 if test -z "$ac_cv_prog_LIPO"; then
6182 ac_ct_LIPO=$LIPO
6183 # Extract the first word of "lipo", so it can be a program name with args.
6184 set dummy lipo; ac_word=$2
6185 echo "$as_me:$LINENO: checking for $ac_word" >&5
6186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6187 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190 if test -n "$ac_ct_LIPO"; then
6191 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6200 ac_cv_prog_ac_ct_LIPO="lipo"
6201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6204 done
6205 done
6207 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6210 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6211 if test -n "$ac_ct_LIPO"; then
6212 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6213 echo "${ECHO_T}$ac_ct_LIPO" >&6
6214 else
6215 echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6
6219 LIPO=$ac_ct_LIPO
6220 else
6221 LIPO="$ac_cv_prog_LIPO"
6224 if test -n "$ac_tool_prefix"; then
6225 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6226 set dummy ${ac_tool_prefix}otool; ac_word=$2
6227 echo "$as_me:$LINENO: checking for $ac_word" >&5
6228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6229 if test "${ac_cv_prog_OTOOL+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232 if test -n "$OTOOL"; then
6233 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6234 else
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6242 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 break 2
6246 done
6247 done
6251 OTOOL=$ac_cv_prog_OTOOL
6252 if test -n "$OTOOL"; then
6253 echo "$as_me:$LINENO: result: $OTOOL" >&5
6254 echo "${ECHO_T}$OTOOL" >&6
6255 else
6256 echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6
6261 if test -z "$ac_cv_prog_OTOOL"; then
6262 ac_ct_OTOOL=$OTOOL
6263 # Extract the first word of "otool", so it can be a program name with args.
6264 set dummy otool; ac_word=$2
6265 echo "$as_me:$LINENO: checking for $ac_word" >&5
6266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6267 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270 if test -n "$ac_ct_OTOOL"; then
6271 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6280 ac_cv_prog_ac_ct_OTOOL="otool"
6281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 break 2
6284 done
6285 done
6287 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6290 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6291 if test -n "$ac_ct_OTOOL"; then
6292 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6293 echo "${ECHO_T}$ac_ct_OTOOL" >&6
6294 else
6295 echo "$as_me:$LINENO: result: no" >&5
6296 echo "${ECHO_T}no" >&6
6299 OTOOL=$ac_ct_OTOOL
6300 else
6301 OTOOL="$ac_cv_prog_OTOOL"
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6307 echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6309 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312 if test -n "$OTOOL64"; then
6313 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 break 2
6326 done
6327 done
6331 OTOOL64=$ac_cv_prog_OTOOL64
6332 if test -n "$OTOOL64"; then
6333 echo "$as_me:$LINENO: result: $OTOOL64" >&5
6334 echo "${ECHO_T}$OTOOL64" >&6
6335 else
6336 echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6
6341 if test -z "$ac_cv_prog_OTOOL64"; then
6342 ac_ct_OTOOL64=$OTOOL64
6343 # Extract the first word of "otool64", so it can be a program name with args.
6344 set dummy otool64; ac_word=$2
6345 echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6347 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350 if test -n "$ac_ct_OTOOL64"; then
6351 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6352 else
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in $PATH
6356 IFS=$as_save_IFS
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360 ac_cv_prog_ac_ct_OTOOL64="otool64"
6361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 break 2
6364 done
6365 done
6367 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6370 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6371 if test -n "$ac_ct_OTOOL64"; then
6372 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6373 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6374 else
6375 echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6
6379 OTOOL64=$ac_ct_OTOOL64
6380 else
6381 OTOOL64="$ac_cv_prog_OTOOL64"
6410 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6411 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6412 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415 lt_cv_apple_cc_single_mod=no
6416 if test -z "${LT_MULTI_MODULE}"; then
6417 # By default we will add the -single_module flag. You can override
6418 # by either setting the environment variable LT_MULTI_MODULE
6419 # non-empty at configure time, or by adding -multi_module to the
6420 # link flags.
6421 rm -rf libconftest.dylib*
6422 echo "int foo(void){return 1;}" > conftest.c
6423 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6424 -dynamiclib -Wl,-single_module conftest.c" >&5
6425 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6426 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6427 _lt_result=$?
6428 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6429 lt_cv_apple_cc_single_mod=yes
6430 else
6431 cat conftest.err >&5
6433 rm -rf libconftest.dylib*
6434 rm -f conftest.*
6437 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6438 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6439 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6440 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6441 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444 lt_cv_ld_exported_symbols_list=no
6445 save_LDFLAGS=$LDFLAGS
6446 echo "_main" > conftest.sym
6447 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6448 if test x$gcc_no_link = xyes; then
6449 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6450 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6451 { (exit 1); exit 1; }; }
6453 cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h. */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6461 main ()
6465 return 0;
6467 _ACEOF
6468 rm -f conftest.$ac_objext conftest$ac_exeext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470 (eval $ac_link) 2>conftest.er1
6471 ac_status=$?
6472 grep -v '^ *+' conftest.er1 >conftest.err
6473 rm -f conftest.er1
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -z "$ac_c_werror_flag"
6478 || test ! -s conftest.err'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 (eval $ac_try) 2>&5
6481 ac_status=$?
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; } &&
6484 { ac_try='test -s conftest$ac_exeext'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 (eval $ac_try) 2>&5
6487 ac_status=$?
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6490 lt_cv_ld_exported_symbols_list=yes
6491 else
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6495 lt_cv_ld_exported_symbols_list=no
6497 rm -f conftest.err conftest.$ac_objext \
6498 conftest$ac_exeext conftest.$ac_ext
6499 LDFLAGS="$save_LDFLAGS"
6502 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6503 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6504 case $host_os in
6505 rhapsody* | darwin1.[012])
6506 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6507 darwin1.*)
6508 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6509 darwin*) # darwin 5.x on
6510 # if running on 10.5 or later, the deployment target defaults
6511 # to the OS version, if on x86, and 10.4, the deployment
6512 # target defaults to 10.4. Don't you love it?
6513 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6514 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6515 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6516 10.[012]*)
6517 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6518 10.*)
6519 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6520 esac
6522 esac
6523 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6524 _lt_dar_single_mod='$single_module'
6526 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6527 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6528 else
6529 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6531 if test "$DSYMUTIL" != ":"; then
6532 _lt_dsymutil='~$DSYMUTIL $lib || :'
6533 else
6534 _lt_dsymutil=
6537 esac
6539 ac_ext=c
6540 ac_cpp='$CPP $CPPFLAGS'
6541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6544 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6545 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6546 # On Suns, sometimes $CPP names a directory.
6547 if test -n "$CPP" && test -d "$CPP"; then
6548 CPP=
6550 if test -z "$CPP"; then
6551 if test "${ac_cv_prog_CPP+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554 # Double quotes because CPP needs to be expanded
6555 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6557 ac_preproc_ok=false
6558 for ac_c_preproc_warn_flag in '' yes
6560 # Use a header file that comes with gcc, so configuring glibc
6561 # with a fresh cross-compiler works.
6562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6563 # <limits.h> exists even on freestanding compilers.
6564 # On the NeXT, cc -E runs the code through the compiler's parser,
6565 # not just through cpp. "Syntax error" is here to catch this case.
6566 cat >conftest.$ac_ext <<_ACEOF
6567 /* confdefs.h. */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 #ifdef __STDC__
6573 # include <limits.h>
6574 #else
6575 # include <assert.h>
6576 #endif
6577 Syntax error
6578 _ACEOF
6579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } >/dev/null; then
6587 if test -s conftest.err; then
6588 ac_cpp_err=$ac_c_preproc_warn_flag
6589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6590 else
6591 ac_cpp_err=
6593 else
6594 ac_cpp_err=yes
6596 if test -z "$ac_cpp_err"; then
6598 else
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6602 # Broken: fails on valid input.
6603 continue
6605 rm -f conftest.err conftest.$ac_ext
6607 # OK, works on sane cases. Now check whether non-existent headers
6608 # can be detected and how.
6609 cat >conftest.$ac_ext <<_ACEOF
6610 /* confdefs.h. */
6611 _ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6615 #include <ac_nonexistent.h>
6616 _ACEOF
6617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6619 ac_status=$?
6620 grep -v '^ *+' conftest.er1 >conftest.err
6621 rm -f conftest.er1
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } >/dev/null; then
6625 if test -s conftest.err; then
6626 ac_cpp_err=$ac_c_preproc_warn_flag
6627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6628 else
6629 ac_cpp_err=
6631 else
6632 ac_cpp_err=yes
6634 if test -z "$ac_cpp_err"; then
6635 # Broken: success on invalid input.
6636 continue
6637 else
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6641 # Passes both tests.
6642 ac_preproc_ok=:
6643 break
6645 rm -f conftest.err conftest.$ac_ext
6647 done
6648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6649 rm -f conftest.err conftest.$ac_ext
6650 if $ac_preproc_ok; then
6651 break
6654 done
6655 ac_cv_prog_CPP=$CPP
6658 CPP=$ac_cv_prog_CPP
6659 else
6660 ac_cv_prog_CPP=$CPP
6662 echo "$as_me:$LINENO: result: $CPP" >&5
6663 echo "${ECHO_T}$CPP" >&6
6664 ac_preproc_ok=false
6665 for ac_c_preproc_warn_flag in '' yes
6667 # Use a header file that comes with gcc, so configuring glibc
6668 # with a fresh cross-compiler works.
6669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6670 # <limits.h> exists even on freestanding compilers.
6671 # On the NeXT, cc -E runs the code through the compiler's parser,
6672 # not just through cpp. "Syntax error" is here to catch this case.
6673 cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h. */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 #ifdef __STDC__
6680 # include <limits.h>
6681 #else
6682 # include <assert.h>
6683 #endif
6684 Syntax error
6685 _ACEOF
6686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6688 ac_status=$?
6689 grep -v '^ *+' conftest.er1 >conftest.err
6690 rm -f conftest.er1
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } >/dev/null; then
6694 if test -s conftest.err; then
6695 ac_cpp_err=$ac_c_preproc_warn_flag
6696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6697 else
6698 ac_cpp_err=
6700 else
6701 ac_cpp_err=yes
6703 if test -z "$ac_cpp_err"; then
6705 else
6706 echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6709 # Broken: fails on valid input.
6710 continue
6712 rm -f conftest.err conftest.$ac_ext
6714 # OK, works on sane cases. Now check whether non-existent headers
6715 # can be detected and how.
6716 cat >conftest.$ac_ext <<_ACEOF
6717 /* confdefs.h. */
6718 _ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6722 #include <ac_nonexistent.h>
6723 _ACEOF
6724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6726 ac_status=$?
6727 grep -v '^ *+' conftest.er1 >conftest.err
6728 rm -f conftest.er1
6729 cat conftest.err >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } >/dev/null; then
6732 if test -s conftest.err; then
6733 ac_cpp_err=$ac_c_preproc_warn_flag
6734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6735 else
6736 ac_cpp_err=
6738 else
6739 ac_cpp_err=yes
6741 if test -z "$ac_cpp_err"; then
6742 # Broken: success on invalid input.
6743 continue
6744 else
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 # Passes both tests.
6749 ac_preproc_ok=:
6750 break
6752 rm -f conftest.err conftest.$ac_ext
6754 done
6755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6756 rm -f conftest.err conftest.$ac_ext
6757 if $ac_preproc_ok; then
6759 else
6760 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6761 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6762 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6763 See \`config.log' for more details." >&5
6764 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6765 See \`config.log' for more details." >&2;}
6766 { (exit 1); exit 1; }; }; }
6769 ac_ext=c
6770 ac_cpp='$CPP $CPPFLAGS'
6771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6776 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6777 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6778 if test "${ac_cv_header_stdc+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781 cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h. */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 #include <stdlib.h>
6788 #include <stdarg.h>
6789 #include <string.h>
6790 #include <float.h>
6793 main ()
6797 return 0;
6799 _ACEOF
6800 rm -f conftest.$ac_objext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6802 (eval $ac_compile) 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try='test -z "$ac_c_werror_flag"
6810 || test ! -s conftest.err'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 (eval $ac_try) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; } &&
6816 { ac_try='test -s conftest.$ac_objext'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 (eval $ac_try) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6822 ac_cv_header_stdc=yes
6823 else
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6827 ac_cv_header_stdc=no
6829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6831 if test $ac_cv_header_stdc = yes; then
6832 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6833 cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h. */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6839 #include <string.h>
6841 _ACEOF
6842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6843 $EGREP "memchr" >/dev/null 2>&1; then
6845 else
6846 ac_cv_header_stdc=no
6848 rm -f conftest*
6852 if test $ac_cv_header_stdc = yes; then
6853 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 #include <stdlib.h>
6862 _ACEOF
6863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6864 $EGREP "free" >/dev/null 2>&1; then
6866 else
6867 ac_cv_header_stdc=no
6869 rm -f conftest*
6873 if test $ac_cv_header_stdc = yes; then
6874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6875 if test "$cross_compiling" = yes; then
6877 else
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 #include <ctype.h>
6885 #if ((' ' & 0x0FF) == 0x020)
6886 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6887 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6888 #else
6889 # define ISLOWER(c) \
6890 (('a' <= (c) && (c) <= 'i') \
6891 || ('j' <= (c) && (c) <= 'r') \
6892 || ('s' <= (c) && (c) <= 'z'))
6893 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6894 #endif
6896 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6898 main ()
6900 int i;
6901 for (i = 0; i < 256; i++)
6902 if (XOR (islower (i), ISLOWER (i))
6903 || toupper (i) != TOUPPER (i))
6904 exit(2);
6905 exit (0);
6907 _ACEOF
6908 rm -f conftest$ac_exeext
6909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910 (eval $ac_link) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6920 else
6921 echo "$as_me: program exited with status $ac_status" >&5
6922 echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6925 ( exit $ac_status )
6926 ac_cv_header_stdc=no
6928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6932 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6933 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6934 if test $ac_cv_header_stdc = yes; then
6936 cat >>confdefs.h <<\_ACEOF
6937 #define STDC_HEADERS 1
6938 _ACEOF
6942 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6952 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6953 inttypes.h stdint.h unistd.h
6955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6956 echo "$as_me:$LINENO: checking for $ac_header" >&5
6957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961 cat >conftest.$ac_ext <<_ACEOF
6962 /* confdefs.h. */
6963 _ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6967 $ac_includes_default
6969 #include <$ac_header>
6970 _ACEOF
6971 rm -f conftest.$ac_objext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6973 (eval $ac_compile) 2>conftest.er1
6974 ac_status=$?
6975 grep -v '^ *+' conftest.er1 >conftest.err
6976 rm -f conftest.er1
6977 cat conftest.err >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); } &&
6980 { ac_try='test -z "$ac_c_werror_flag"
6981 || test ! -s conftest.err'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 (eval $ac_try) 2>&5
6984 ac_status=$?
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; } &&
6987 { ac_try='test -s conftest.$ac_objext'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 (eval $ac_try) 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; }; then
6993 eval "$as_ac_Header=yes"
6994 else
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6998 eval "$as_ac_Header=no"
7000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7005 cat >>confdefs.h <<_ACEOF
7006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7007 _ACEOF
7011 done
7015 for ac_header in dlfcn.h
7017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7018 echo "$as_me:$LINENO: checking for $ac_header" >&5
7019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023 cat >conftest.$ac_ext <<_ACEOF
7024 /* confdefs.h. */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 $ac_includes_default
7031 #include <$ac_header>
7032 _ACEOF
7033 rm -f conftest.$ac_objext
7034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7035 (eval $ac_compile) 2>conftest.er1
7036 ac_status=$?
7037 grep -v '^ *+' conftest.er1 >conftest.err
7038 rm -f conftest.er1
7039 cat conftest.err >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
7042 { ac_try='test -z "$ac_c_werror_flag"
7043 || test ! -s conftest.err'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 (eval $ac_try) 2>&5
7046 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } &&
7049 { ac_try='test -s conftest.$ac_objext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7055 eval "$as_ac_Header=yes"
7056 else
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 eval "$as_ac_Header=no"
7062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7067 cat >>confdefs.h <<_ACEOF
7068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7069 _ACEOF
7073 done
7077 ac_ext=cc
7078 ac_cpp='$CXXCPP $CPPFLAGS'
7079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7082 if test -n "$ac_tool_prefix"; then
7083 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7087 echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7089 if test "${ac_cv_prog_CXX+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092 if test -n "$CXX"; then
7093 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7106 done
7107 done
7111 CXX=$ac_cv_prog_CXX
7112 if test -n "$CXX"; then
7113 echo "$as_me:$LINENO: result: $CXX" >&5
7114 echo "${ECHO_T}$CXX" >&6
7115 else
7116 echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6
7120 test -n "$CXX" && break
7121 done
7123 if test -z "$CXX"; then
7124 ac_ct_CXX=$CXX
7125 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7127 # Extract the first word of "$ac_prog", so it can be a program name with args.
7128 set dummy $ac_prog; ac_word=$2
7129 echo "$as_me:$LINENO: checking for $ac_word" >&5
7130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7131 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134 if test -n "$ac_ct_CXX"; then
7135 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144 ac_cv_prog_ac_ct_CXX="$ac_prog"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7148 done
7149 done
7153 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7154 if test -n "$ac_ct_CXX"; then
7155 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7156 echo "${ECHO_T}$ac_ct_CXX" >&6
7157 else
7158 echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6
7162 test -n "$ac_ct_CXX" && break
7163 done
7164 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7166 CXX=$ac_ct_CXX
7170 # Provide some information about the compiler.
7171 echo "$as_me:$LINENO:" \
7172 "checking for C++ compiler version" >&5
7173 ac_compiler=`set X $ac_compile; echo $2`
7174 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7175 (eval $ac_compiler --version </dev/null >&5) 2>&5
7176 ac_status=$?
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }
7179 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7180 (eval $ac_compiler -v </dev/null >&5) 2>&5
7181 ac_status=$?
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }
7184 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7185 (eval $ac_compiler -V </dev/null >&5) 2>&5
7186 ac_status=$?
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); }
7190 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7191 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7192 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195 cat >conftest.$ac_ext <<_ACEOF
7196 /* confdefs.h. */
7197 _ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7203 main ()
7205 #ifndef __GNUC__
7206 choke me
7207 #endif
7210 return 0;
7212 _ACEOF
7213 rm -f conftest.$ac_objext
7214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215 (eval $ac_compile) 2>conftest.er1
7216 ac_status=$?
7217 grep -v '^ *+' conftest.er1 >conftest.err
7218 rm -f conftest.er1
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
7222 { ac_try='test -z "$ac_cxx_werror_flag"
7223 || test ! -s conftest.err'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 (eval $ac_try) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; } &&
7229 { ac_try='test -s conftest.$ac_objext'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 (eval $ac_try) 2>&5
7232 ac_status=$?
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; }; then
7235 ac_compiler_gnu=yes
7236 else
7237 echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7240 ac_compiler_gnu=no
7242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7243 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7246 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7247 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7248 GXX=`test $ac_compiler_gnu = yes && echo yes`
7249 ac_test_CXXFLAGS=${CXXFLAGS+set}
7250 ac_save_CXXFLAGS=$CXXFLAGS
7251 CXXFLAGS="-g"
7252 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7253 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7254 if test "${ac_cv_prog_cxx_g+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257 cat >conftest.$ac_ext <<_ACEOF
7258 /* confdefs.h. */
7259 _ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7265 main ()
7269 return 0;
7271 _ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7274 (eval $ac_compile) 2>conftest.er1
7275 ac_status=$?
7276 grep -v '^ *+' conftest.er1 >conftest.err
7277 rm -f conftest.er1
7278 cat conftest.err >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } &&
7281 { ac_try='test -z "$ac_cxx_werror_flag"
7282 || test ! -s conftest.err'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; } &&
7288 { ac_try='test -s conftest.$ac_objext'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 (eval $ac_try) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; }; then
7294 ac_cv_prog_cxx_g=yes
7295 else
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7299 ac_cv_prog_cxx_g=no
7301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7303 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7304 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7305 if test "$ac_test_CXXFLAGS" = set; then
7306 CXXFLAGS=$ac_save_CXXFLAGS
7307 elif test $ac_cv_prog_cxx_g = yes; then
7308 if test "$GXX" = yes; then
7309 CXXFLAGS="-g -O2"
7310 else
7311 CXXFLAGS="-g"
7313 else
7314 if test "$GXX" = yes; then
7315 CXXFLAGS="-O2"
7316 else
7317 CXXFLAGS=
7320 for ac_declaration in \
7321 '' \
7322 'extern "C" void std::exit (int) throw (); using std::exit;' \
7323 'extern "C" void std::exit (int); using std::exit;' \
7324 'extern "C" void exit (int) throw ();' \
7325 'extern "C" void exit (int);' \
7326 'void exit (int);'
7328 cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h. */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7334 $ac_declaration
7335 #include <stdlib.h>
7337 main ()
7339 exit (42);
7341 return 0;
7343 _ACEOF
7344 rm -f conftest.$ac_objext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7346 (eval $ac_compile) 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } &&
7353 { ac_try='test -z "$ac_cxx_werror_flag"
7354 || test ! -s conftest.err'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; } &&
7360 { ac_try='test -s conftest.$ac_objext'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362 (eval $ac_try) 2>&5
7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7367 else
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7371 continue
7373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7374 cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h. */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7380 $ac_declaration
7382 main ()
7384 exit (42);
7386 return 0;
7388 _ACEOF
7389 rm -f conftest.$ac_objext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7391 (eval $ac_compile) 2>conftest.er1
7392 ac_status=$?
7393 grep -v '^ *+' conftest.er1 >conftest.err
7394 rm -f conftest.er1
7395 cat conftest.err >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try='test -z "$ac_cxx_werror_flag"
7399 || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 (eval $ac_try) 2>&5
7402 ac_status=$?
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try='test -s conftest.$ac_objext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 (eval $ac_try) 2>&5
7408 ac_status=$?
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 break
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7418 done
7419 rm -f conftest*
7420 if test -n "$ac_declaration"; then
7421 echo '#ifdef __cplusplus' >>confdefs.h
7422 echo $ac_declaration >>confdefs.h
7423 echo '#endif' >>confdefs.h
7426 ac_ext=c
7427 ac_cpp='$CPP $CPPFLAGS'
7428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7432 depcc="$CXX" am_compiler_list=
7434 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7435 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7436 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7440 # We make a subdir and do the tests there. Otherwise we can end up
7441 # making bogus files that we don't know about and never remove. For
7442 # instance it was reported that on HP-UX the gcc test will end up
7443 # making a dummy file named `D' -- because `-MD' means `put the output
7444 # in D'.
7445 mkdir conftest.dir
7446 # Copy depcomp to subdir because otherwise we won't find it if we're
7447 # using a relative directory.
7448 cp "$am_depcomp" conftest.dir
7449 cd conftest.dir
7450 # We will build objects and dependencies in a subdirectory because
7451 # it helps to detect inapplicable dependency modes. For instance
7452 # both Tru64's cc and ICC support -MD to output dependencies as a
7453 # side effect of compilation, but ICC will put the dependencies in
7454 # the current directory while Tru64 will put them in the object
7455 # directory.
7456 mkdir sub
7458 am_cv_CXX_dependencies_compiler_type=none
7459 if test "$am_compiler_list" = ""; then
7460 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7462 for depmode in $am_compiler_list; do
7463 # Setup a source with many dependencies, because some compilers
7464 # like to wrap large dependency lists on column 80 (with \), and
7465 # we should not choose a depcomp mode which is confused by this.
7467 # We need to recreate these files for each test, as the compiler may
7468 # overwrite some of them when testing with obscure command lines.
7469 # This happens at least with the AIX C compiler.
7470 : > sub/conftest.c
7471 for i in 1 2 3 4 5 6; do
7472 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7473 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7474 # Solaris 8's {/usr,}/bin/sh.
7475 touch sub/conftst$i.h
7476 done
7477 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7479 case $depmode in
7480 nosideeffect)
7481 # after this tag, mechanisms are not by side-effect, so they'll
7482 # only be used when explicitly requested
7483 if test "x$enable_dependency_tracking" = xyes; then
7484 continue
7485 else
7486 break
7489 none) break ;;
7490 esac
7491 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7492 # mode. It turns out that the SunPro C++ compiler does not properly
7493 # handle `-M -o', and we need to detect this.
7494 if depmode=$depmode \
7495 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7496 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7497 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7498 >/dev/null 2>conftest.err &&
7499 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7500 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7501 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7502 # icc doesn't choke on unknown options, it will just issue warnings
7503 # or remarks (even with -Werror). So we grep stderr for any message
7504 # that says an option was ignored or not supported.
7505 # When given -MP, icc 7.0 and 7.1 complain thusly:
7506 # icc: Command line warning: ignoring option '-M'; no argument required
7507 # The diagnosis changed in icc 8.0:
7508 # icc: Command line remark: option '-MP' not supported
7509 if (grep 'ignoring option' conftest.err ||
7510 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7511 am_cv_CXX_dependencies_compiler_type=$depmode
7512 break
7515 done
7517 cd ..
7518 rm -rf conftest.dir
7519 else
7520 am_cv_CXX_dependencies_compiler_type=none
7524 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7525 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7526 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7531 test "x$enable_dependency_tracking" != xno \
7532 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7533 am__fastdepCXX_TRUE=
7534 am__fastdepCXX_FALSE='#'
7535 else
7536 am__fastdepCXX_TRUE='#'
7537 am__fastdepCXX_FALSE=
7541 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7542 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7543 (test "X$CXX" != "Xg++"))) ; then
7544 ac_ext=cc
7545 ac_cpp='$CXXCPP $CPPFLAGS'
7546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7549 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7550 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7551 if test -z "$CXXCPP"; then
7552 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555 # Double quotes because CXXCPP needs to be expanded
7556 for CXXCPP in "$CXX -E" "/lib/cpp"
7558 ac_preproc_ok=false
7559 for ac_cxx_preproc_warn_flag in '' yes
7561 # Use a header file that comes with gcc, so configuring glibc
7562 # with a fresh cross-compiler works.
7563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7564 # <limits.h> exists even on freestanding compilers.
7565 # On the NeXT, cc -E runs the code through the compiler's parser,
7566 # not just through cpp. "Syntax error" is here to catch this case.
7567 cat >conftest.$ac_ext <<_ACEOF
7568 /* confdefs.h. */
7569 _ACEOF
7570 cat confdefs.h >>conftest.$ac_ext
7571 cat >>conftest.$ac_ext <<_ACEOF
7572 /* end confdefs.h. */
7573 #ifdef __STDC__
7574 # include <limits.h>
7575 #else
7576 # include <assert.h>
7577 #endif
7578 Syntax error
7579 _ACEOF
7580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7582 ac_status=$?
7583 grep -v '^ *+' conftest.er1 >conftest.err
7584 rm -f conftest.er1
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } >/dev/null; then
7588 if test -s conftest.err; then
7589 ac_cpp_err=$ac_cxx_preproc_warn_flag
7590 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7591 else
7592 ac_cpp_err=
7594 else
7595 ac_cpp_err=yes
7597 if test -z "$ac_cpp_err"; then
7599 else
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7603 # Broken: fails on valid input.
7604 continue
7606 rm -f conftest.err conftest.$ac_ext
7608 # OK, works on sane cases. Now check whether non-existent headers
7609 # can be detected and how.
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h. */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 #include <ac_nonexistent.h>
7617 _ACEOF
7618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } >/dev/null; then
7626 if test -s conftest.err; then
7627 ac_cpp_err=$ac_cxx_preproc_warn_flag
7628 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7629 else
7630 ac_cpp_err=
7632 else
7633 ac_cpp_err=yes
7635 if test -z "$ac_cpp_err"; then
7636 # Broken: success on invalid input.
7637 continue
7638 else
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7642 # Passes both tests.
7643 ac_preproc_ok=:
7644 break
7646 rm -f conftest.err conftest.$ac_ext
7648 done
7649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7650 rm -f conftest.err conftest.$ac_ext
7651 if $ac_preproc_ok; then
7652 break
7655 done
7656 ac_cv_prog_CXXCPP=$CXXCPP
7659 CXXCPP=$ac_cv_prog_CXXCPP
7660 else
7661 ac_cv_prog_CXXCPP=$CXXCPP
7663 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7664 echo "${ECHO_T}$CXXCPP" >&6
7665 ac_preproc_ok=false
7666 for ac_cxx_preproc_warn_flag in '' yes
7668 # Use a header file that comes with gcc, so configuring glibc
7669 # with a fresh cross-compiler works.
7670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7671 # <limits.h> exists even on freestanding compilers.
7672 # On the NeXT, cc -E runs the code through the compiler's parser,
7673 # not just through cpp. "Syntax error" is here to catch this case.
7674 cat >conftest.$ac_ext <<_ACEOF
7675 /* confdefs.h. */
7676 _ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7680 #ifdef __STDC__
7681 # include <limits.h>
7682 #else
7683 # include <assert.h>
7684 #endif
7685 Syntax error
7686 _ACEOF
7687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7689 ac_status=$?
7690 grep -v '^ *+' conftest.er1 >conftest.err
7691 rm -f conftest.er1
7692 cat conftest.err >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); } >/dev/null; then
7695 if test -s conftest.err; then
7696 ac_cpp_err=$ac_cxx_preproc_warn_flag
7697 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7698 else
7699 ac_cpp_err=
7701 else
7702 ac_cpp_err=yes
7704 if test -z "$ac_cpp_err"; then
7706 else
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 # Broken: fails on valid input.
7711 continue
7713 rm -f conftest.err conftest.$ac_ext
7715 # OK, works on sane cases. Now check whether non-existent headers
7716 # can be detected and how.
7717 cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h. */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 #include <ac_nonexistent.h>
7724 _ACEOF
7725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7727 ac_status=$?
7728 grep -v '^ *+' conftest.er1 >conftest.err
7729 rm -f conftest.er1
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } >/dev/null; then
7733 if test -s conftest.err; then
7734 ac_cpp_err=$ac_cxx_preproc_warn_flag
7735 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7736 else
7737 ac_cpp_err=
7739 else
7740 ac_cpp_err=yes
7742 if test -z "$ac_cpp_err"; then
7743 # Broken: success on invalid input.
7744 continue
7745 else
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7749 # Passes both tests.
7750 ac_preproc_ok=:
7751 break
7753 rm -f conftest.err conftest.$ac_ext
7755 done
7756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7757 rm -f conftest.err conftest.$ac_ext
7758 if $ac_preproc_ok; then
7760 else
7761 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7762 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7763 _lt_caught_CXX_error=yes; }
7766 ac_ext=c
7767 ac_cpp='$CPP $CPPFLAGS'
7768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7772 else
7773 _lt_caught_CXX_error=yes
7780 # Set options
7784 enable_dlopen=no
7787 enable_win32_dll=no
7790 # Check whether --enable-shared or --disable-shared was given.
7791 if test "${enable_shared+set}" = set; then
7792 enableval="$enable_shared"
7793 p=${PACKAGE-default}
7794 case $enableval in
7795 yes) enable_shared=yes ;;
7796 no) enable_shared=no ;;
7798 enable_shared=no
7799 # Look at the argument we got. We use all the common list separators.
7800 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7801 for pkg in $enableval; do
7802 IFS="$lt_save_ifs"
7803 if test "X$pkg" = "X$p"; then
7804 enable_shared=yes
7806 done
7807 IFS="$lt_save_ifs"
7809 esac
7810 else
7811 enable_shared=yes
7821 # Check whether --enable-static or --disable-static was given.
7822 if test "${enable_static+set}" = set; then
7823 enableval="$enable_static"
7824 p=${PACKAGE-default}
7825 case $enableval in
7826 yes) enable_static=yes ;;
7827 no) enable_static=no ;;
7829 enable_static=no
7830 # Look at the argument we got. We use all the common list separators.
7831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7832 for pkg in $enableval; do
7833 IFS="$lt_save_ifs"
7834 if test "X$pkg" = "X$p"; then
7835 enable_static=yes
7837 done
7838 IFS="$lt_save_ifs"
7840 esac
7841 else
7842 enable_static=yes
7853 # Check whether --with-pic or --without-pic was given.
7854 if test "${with_pic+set}" = set; then
7855 withval="$with_pic"
7856 pic_mode="$withval"
7857 else
7858 pic_mode=default
7861 test -z "$pic_mode" && pic_mode=default
7869 # Check whether --enable-fast-install or --disable-fast-install was given.
7870 if test "${enable_fast_install+set}" = set; then
7871 enableval="$enable_fast_install"
7872 p=${PACKAGE-default}
7873 case $enableval in
7874 yes) enable_fast_install=yes ;;
7875 no) enable_fast_install=no ;;
7877 enable_fast_install=no
7878 # Look at the argument we got. We use all the common list separators.
7879 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7880 for pkg in $enableval; do
7881 IFS="$lt_save_ifs"
7882 if test "X$pkg" = "X$p"; then
7883 enable_fast_install=yes
7885 done
7886 IFS="$lt_save_ifs"
7888 esac
7889 else
7890 enable_fast_install=yes
7902 # This can be used to rebuild libtool when needed
7903 LIBTOOL_DEPS="$ltmain"
7905 # Always use our own libtool.
7906 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7932 test -z "$LN_S" && LN_S="ln -s"
7947 if test -n "${ZSH_VERSION+set}" ; then
7948 setopt NO_GLOB_SUBST
7951 echo "$as_me:$LINENO: checking for objdir" >&5
7952 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7953 if test "${lt_cv_objdir+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956 rm -f .libs 2>/dev/null
7957 mkdir .libs 2>/dev/null
7958 if test -d .libs; then
7959 lt_cv_objdir=.libs
7960 else
7961 # MS-DOS does not allow filenames that begin with a dot.
7962 lt_cv_objdir=_libs
7964 rmdir .libs 2>/dev/null
7966 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7967 echo "${ECHO_T}$lt_cv_objdir" >&6
7968 objdir=$lt_cv_objdir
7974 cat >>confdefs.h <<_ACEOF
7975 #define LT_OBJDIR "$lt_cv_objdir/"
7976 _ACEOF
7994 case $host_os in
7995 aix3*)
7996 # AIX sometimes has problems with the GCC collect2 program. For some
7997 # reason, if we set the COLLECT_NAMES environment variable, the problems
7998 # vanish in a puff of smoke.
7999 if test "X${COLLECT_NAMES+set}" != Xset; then
8000 COLLECT_NAMES=
8001 export COLLECT_NAMES
8004 esac
8006 # Sed substitution that helps us do robust quoting. It backslashifies
8007 # metacharacters that are still active within double-quoted strings.
8008 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8010 # Same as above, but do not quote variable references.
8011 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8013 # Sed substitution to delay expansion of an escaped shell variable in a
8014 # double_quote_subst'ed string.
8015 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8017 # Sed substitution to delay expansion of an escaped single quote.
8018 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8020 # Sed substitution to avoid accidental globbing in evaled expressions
8021 no_glob_subst='s/\*/\\\*/g'
8023 # Global variables:
8024 ofile=libtool
8025 can_build_shared=yes
8027 # All known linkers require a `.a' archive for static linking (except MSVC,
8028 # which needs '.lib').
8029 libext=a
8031 with_gnu_ld="$lt_cv_prog_gnu_ld"
8033 old_CC="$CC"
8034 old_CFLAGS="$CFLAGS"
8036 # Set sane defaults for various variables
8037 test -z "$CC" && CC=cc
8038 test -z "$LTCC" && LTCC=$CC
8039 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8040 test -z "$LD" && LD=ld
8041 test -z "$ac_objext" && ac_objext=o
8043 for cc_temp in $compiler""; do
8044 case $cc_temp in
8045 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8046 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8047 \-*) ;;
8048 *) break;;
8049 esac
8050 done
8051 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8054 # Only perform the check for file, if the check method requires it
8055 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8056 case $deplibs_check_method in
8057 file_magic*)
8058 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8059 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8060 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8061 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064 case $MAGIC_CMD in
8065 [\\/*] | ?:[\\/]*)
8066 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8069 lt_save_MAGIC_CMD="$MAGIC_CMD"
8070 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8071 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8072 for ac_dir in $ac_dummy; do
8073 IFS="$lt_save_ifs"
8074 test -z "$ac_dir" && ac_dir=.
8075 if test -f $ac_dir/${ac_tool_prefix}file; then
8076 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8077 if test -n "$file_magic_test_file"; then
8078 case $deplibs_check_method in
8079 "file_magic "*)
8080 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8081 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8082 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8083 $EGREP "$file_magic_regex" > /dev/null; then
8085 else
8086 cat <<_LT_EOF 1>&2
8088 *** Warning: the command libtool uses to detect shared libraries,
8089 *** $file_magic_cmd, produces output that libtool cannot recognize.
8090 *** The result is that libtool may fail to recognize shared libraries
8091 *** as such. This will affect the creation of libtool libraries that
8092 *** depend on shared libraries, but programs linked with such libtool
8093 *** libraries will work regardless of this problem. Nevertheless, you
8094 *** may want to report the problem to your system manager and/or to
8095 *** bug-libtool@gnu.org
8097 _LT_EOF
8098 fi ;;
8099 esac
8101 break
8103 done
8104 IFS="$lt_save_ifs"
8105 MAGIC_CMD="$lt_save_MAGIC_CMD"
8107 esac
8110 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8111 if test -n "$MAGIC_CMD"; then
8112 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8113 echo "${ECHO_T}$MAGIC_CMD" >&6
8114 else
8115 echo "$as_me:$LINENO: result: no" >&5
8116 echo "${ECHO_T}no" >&6
8123 if test -z "$lt_cv_path_MAGIC_CMD"; then
8124 if test -n "$ac_tool_prefix"; then
8125 echo "$as_me:$LINENO: checking for file" >&5
8126 echo $ECHO_N "checking for file... $ECHO_C" >&6
8127 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130 case $MAGIC_CMD in
8131 [\\/*] | ?:[\\/]*)
8132 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8135 lt_save_MAGIC_CMD="$MAGIC_CMD"
8136 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8137 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8138 for ac_dir in $ac_dummy; do
8139 IFS="$lt_save_ifs"
8140 test -z "$ac_dir" && ac_dir=.
8141 if test -f $ac_dir/file; then
8142 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8143 if test -n "$file_magic_test_file"; then
8144 case $deplibs_check_method in
8145 "file_magic "*)
8146 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8147 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8148 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8149 $EGREP "$file_magic_regex" > /dev/null; then
8151 else
8152 cat <<_LT_EOF 1>&2
8154 *** Warning: the command libtool uses to detect shared libraries,
8155 *** $file_magic_cmd, produces output that libtool cannot recognize.
8156 *** The result is that libtool may fail to recognize shared libraries
8157 *** as such. This will affect the creation of libtool libraries that
8158 *** depend on shared libraries, but programs linked with such libtool
8159 *** libraries will work regardless of this problem. Nevertheless, you
8160 *** may want to report the problem to your system manager and/or to
8161 *** bug-libtool@gnu.org
8163 _LT_EOF
8164 fi ;;
8165 esac
8167 break
8169 done
8170 IFS="$lt_save_ifs"
8171 MAGIC_CMD="$lt_save_MAGIC_CMD"
8173 esac
8176 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8177 if test -n "$MAGIC_CMD"; then
8178 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8179 echo "${ECHO_T}$MAGIC_CMD" >&6
8180 else
8181 echo "$as_me:$LINENO: result: no" >&5
8182 echo "${ECHO_T}no" >&6
8186 else
8187 MAGIC_CMD=:
8193 esac
8195 # Use C for the default configuration in the libtool script
8197 lt_save_CC="$CC"
8198 ac_ext=c
8199 ac_cpp='$CPP $CPPFLAGS'
8200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8205 # Source file extension for C test sources.
8206 ac_ext=c
8208 # Object file extension for compiled C test sources.
8209 objext=o
8210 objext=$objext
8212 # Code to be used in simple compile tests
8213 lt_simple_compile_test_code="int some_variable = 0;"
8215 # Code to be used in simple link tests
8216 lt_simple_link_test_code='int main(){return(0);}'
8224 # If no C compiler was specified, use CC.
8225 LTCC=${LTCC-"$CC"}
8227 # If no C compiler flags were specified, use CFLAGS.
8228 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8230 # Allow CC to be a program name with arguments.
8231 compiler=$CC
8233 # Save the default compiler, since it gets overwritten when the other
8234 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8235 compiler_DEFAULT=$CC
8237 # save warnings/boilerplate of simple test code
8238 ac_outfile=conftest.$ac_objext
8239 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8240 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8241 _lt_compiler_boilerplate=`cat conftest.err`
8242 $RM conftest*
8244 ac_outfile=conftest.$ac_objext
8245 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8246 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8247 _lt_linker_boilerplate=`cat conftest.err`
8248 $RM -r conftest*
8251 ## CAVEAT EMPTOR:
8252 ## There is no encapsulation within the following macros, do not change
8253 ## the running order or otherwise move them around unless you know exactly
8254 ## what you are doing...
8255 if test -n "$compiler"; then
8257 lt_prog_compiler_no_builtin_flag=
8259 if test "$GCC" = yes; then
8260 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8262 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8263 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8264 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267 lt_cv_prog_compiler_rtti_exceptions=no
8268 ac_outfile=conftest.$ac_objext
8269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8270 lt_compiler_flag="-fno-rtti -fno-exceptions"
8271 # Insert the option either (1) after the last *FLAGS variable, or
8272 # (2) before a word containing "conftest.", or (3) at the end.
8273 # Note that $ac_compile itself does not contain backslashes and begins
8274 # with a dollar sign (not a hyphen), so the echo should work correctly.
8275 # The option is referenced via a variable to avoid confusing sed.
8276 lt_compile=`echo "$ac_compile" | $SED \
8277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8279 -e 's:$: $lt_compiler_flag:'`
8280 (eval echo "\"\$as_me:8280: $lt_compile\"" >&5)
8281 (eval "$lt_compile" 2>conftest.err)
8282 ac_status=$?
8283 cat conftest.err >&5
8284 echo "$as_me:8284: \$? = $ac_status" >&5
8285 if (exit $ac_status) && test -s "$ac_outfile"; then
8286 # The compiler can only warn and ignore the option if not recognized
8287 # So say no if there are warnings other than the usual output.
8288 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8290 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8291 lt_cv_prog_compiler_rtti_exceptions=yes
8294 $RM conftest*
8297 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8298 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8300 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8301 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8302 else
8313 lt_prog_compiler_wl=
8314 lt_prog_compiler_pic=
8315 lt_prog_compiler_static=
8317 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8318 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8320 if test "$GCC" = yes; then
8321 lt_prog_compiler_wl='-Wl,'
8322 lt_prog_compiler_static='-static'
8324 case $host_os in
8325 aix*)
8326 # All AIX code is PIC.
8327 if test "$host_cpu" = ia64; then
8328 # AIX 5 now supports IA64 processor
8329 lt_prog_compiler_static='-Bstatic'
8333 amigaos*)
8334 case $host_cpu in
8335 powerpc)
8336 # see comment about AmigaOS4 .so support
8337 lt_prog_compiler_pic='-fPIC'
8339 m68k)
8340 # FIXME: we need at least 68020 code to build shared libraries, but
8341 # adding the `-m68020' flag to GCC prevents building anything better,
8342 # like `-m68040'.
8343 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8345 esac
8348 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8349 # PIC is the default for these OSes.
8352 mingw* | cygwin* | pw32* | os2* | cegcc*)
8353 # This hack is so that the source file can tell whether it is being
8354 # built for inclusion in a dll (and should export symbols for example).
8355 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8356 # (--disable-auto-import) libraries
8357 lt_prog_compiler_pic='-DDLL_EXPORT'
8360 darwin* | rhapsody*)
8361 # PIC is the default on this platform
8362 # Common symbols not allowed in MH_DYLIB files
8363 lt_prog_compiler_pic='-fno-common'
8366 hpux*)
8367 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8368 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8369 # sets the default TLS model and affects inlining.
8370 case $host_cpu in
8371 hppa*64*)
8372 # +Z the default
8375 lt_prog_compiler_pic='-fPIC'
8377 esac
8380 interix[3-9]*)
8381 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8382 # Instead, we relocate shared libraries at runtime.
8385 msdosdjgpp*)
8386 # Just because we use GCC doesn't mean we suddenly get shared libraries
8387 # on systems that don't support them.
8388 lt_prog_compiler_can_build_shared=no
8389 enable_shared=no
8392 *nto* | *qnx*)
8393 # QNX uses GNU C++, but need to define -shared option too, otherwise
8394 # it will coredump.
8395 lt_prog_compiler_pic='-fPIC -shared'
8398 sysv4*MP*)
8399 if test -d /usr/nec; then
8400 lt_prog_compiler_pic=-Kconform_pic
8405 lt_prog_compiler_pic='-fPIC'
8407 esac
8408 else
8409 # PORTME Check for flag to pass linker flags through the system compiler.
8410 case $host_os in
8411 aix*)
8412 lt_prog_compiler_wl='-Wl,'
8413 if test "$host_cpu" = ia64; then
8414 # AIX 5 now supports IA64 processor
8415 lt_prog_compiler_static='-Bstatic'
8416 else
8417 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8421 mingw* | cygwin* | pw32* | os2* | cegcc*)
8422 # This hack is so that the source file can tell whether it is being
8423 # built for inclusion in a dll (and should export symbols for example).
8424 lt_prog_compiler_pic='-DDLL_EXPORT'
8427 hpux9* | hpux10* | hpux11*)
8428 lt_prog_compiler_wl='-Wl,'
8429 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8430 # not for PA HP-UX.
8431 case $host_cpu in
8432 hppa*64*|ia64*)
8433 # +Z the default
8436 lt_prog_compiler_pic='+Z'
8438 esac
8439 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8440 lt_prog_compiler_static='${wl}-a ${wl}archive'
8443 irix5* | irix6* | nonstopux*)
8444 lt_prog_compiler_wl='-Wl,'
8445 # PIC (with -KPIC) is the default.
8446 lt_prog_compiler_static='-non_shared'
8449 linux* | k*bsd*-gnu)
8450 case $cc_basename in
8451 # old Intel for x86_64 which still supported -KPIC.
8452 ecc*)
8453 lt_prog_compiler_wl='-Wl,'
8454 lt_prog_compiler_pic='-KPIC'
8455 lt_prog_compiler_static='-static'
8457 # icc used to be incompatible with GCC.
8458 # ICC 10 doesn't accept -KPIC any more.
8459 icc* | ifort*)
8460 lt_prog_compiler_wl='-Wl,'
8461 lt_prog_compiler_pic='-fPIC'
8462 lt_prog_compiler_static='-static'
8464 # Lahey Fortran 8.1.
8465 lf95*)
8466 lt_prog_compiler_wl='-Wl,'
8467 lt_prog_compiler_pic='--shared'
8468 lt_prog_compiler_static='--static'
8470 pgcc* | pgf77* | pgf90* | pgf95*)
8471 # Portland Group compilers (*not* the Pentium gcc compiler,
8472 # which looks to be a dead project)
8473 lt_prog_compiler_wl='-Wl,'
8474 lt_prog_compiler_pic='-fpic'
8475 lt_prog_compiler_static='-Bstatic'
8477 ccc*)
8478 lt_prog_compiler_wl='-Wl,'
8479 # All Alpha code is PIC.
8480 lt_prog_compiler_static='-non_shared'
8482 xl*)
8483 # IBM XL C 8.0/Fortran 10.1 on PPC
8484 lt_prog_compiler_wl='-Wl,'
8485 lt_prog_compiler_pic='-qpic'
8486 lt_prog_compiler_static='-qstaticlink'
8489 case `$CC -V 2>&1 | sed 5q` in
8490 *Sun\ C*)
8491 # Sun C 5.9
8492 lt_prog_compiler_pic='-KPIC'
8493 lt_prog_compiler_static='-Bstatic'
8494 lt_prog_compiler_wl='-Wl,'
8496 *Sun\ F*)
8497 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8498 lt_prog_compiler_pic='-KPIC'
8499 lt_prog_compiler_static='-Bstatic'
8500 lt_prog_compiler_wl=''
8502 esac
8504 esac
8507 newsos6)
8508 lt_prog_compiler_pic='-KPIC'
8509 lt_prog_compiler_static='-Bstatic'
8512 *nto* | *qnx*)
8513 # QNX uses GNU C++, but need to define -shared option too, otherwise
8514 # it will coredump.
8515 lt_prog_compiler_pic='-fPIC -shared'
8518 osf3* | osf4* | osf5*)
8519 lt_prog_compiler_wl='-Wl,'
8520 # All OSF/1 code is PIC.
8521 lt_prog_compiler_static='-non_shared'
8524 rdos*)
8525 lt_prog_compiler_static='-non_shared'
8528 solaris*)
8529 lt_prog_compiler_pic='-KPIC'
8530 lt_prog_compiler_static='-Bstatic'
8531 case $cc_basename in
8532 f77* | f90* | f95*)
8533 lt_prog_compiler_wl='-Qoption ld ';;
8535 lt_prog_compiler_wl='-Wl,';;
8536 esac
8539 sunos4*)
8540 lt_prog_compiler_wl='-Qoption ld '
8541 lt_prog_compiler_pic='-PIC'
8542 lt_prog_compiler_static='-Bstatic'
8545 sysv4 | sysv4.2uw2* | sysv4.3*)
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_pic='-KPIC'
8548 lt_prog_compiler_static='-Bstatic'
8551 sysv4*MP*)
8552 if test -d /usr/nec ;then
8553 lt_prog_compiler_pic='-Kconform_pic'
8554 lt_prog_compiler_static='-Bstatic'
8558 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8559 lt_prog_compiler_wl='-Wl,'
8560 lt_prog_compiler_pic='-KPIC'
8561 lt_prog_compiler_static='-Bstatic'
8564 unicos*)
8565 lt_prog_compiler_wl='-Wl,'
8566 lt_prog_compiler_can_build_shared=no
8569 uts4*)
8570 lt_prog_compiler_pic='-pic'
8571 lt_prog_compiler_static='-Bstatic'
8575 lt_prog_compiler_can_build_shared=no
8577 esac
8580 case $host_os in
8581 # For platforms which do not support PIC, -DPIC is meaningless:
8582 *djgpp*)
8583 lt_prog_compiler_pic=
8586 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8588 esac
8589 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8590 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8598 # Check to make sure the PIC flag actually works.
8600 if test -n "$lt_prog_compiler_pic"; then
8601 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8602 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8603 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606 lt_cv_prog_compiler_pic_works=no
8607 ac_outfile=conftest.$ac_objext
8608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8609 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8610 # Insert the option either (1) after the last *FLAGS variable, or
8611 # (2) before a word containing "conftest.", or (3) at the end.
8612 # Note that $ac_compile itself does not contain backslashes and begins
8613 # with a dollar sign (not a hyphen), so the echo should work correctly.
8614 # The option is referenced via a variable to avoid confusing sed.
8615 lt_compile=`echo "$ac_compile" | $SED \
8616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8618 -e 's:$: $lt_compiler_flag:'`
8619 (eval echo "\"\$as_me:8619: $lt_compile\"" >&5)
8620 (eval "$lt_compile" 2>conftest.err)
8621 ac_status=$?
8622 cat conftest.err >&5
8623 echo "$as_me:8623: \$? = $ac_status" >&5
8624 if (exit $ac_status) && test -s "$ac_outfile"; then
8625 # The compiler can only warn and ignore the option if not recognized
8626 # So say no if there are warnings other than the usual output.
8627 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8629 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8630 lt_cv_prog_compiler_pic_works=yes
8633 $RM conftest*
8636 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8637 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8639 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8640 case $lt_prog_compiler_pic in
8641 "" | " "*) ;;
8642 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8643 esac
8644 else
8645 lt_prog_compiler_pic=
8646 lt_prog_compiler_can_build_shared=no
8657 # Check to make sure the static flag actually works.
8659 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8660 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8661 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8662 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665 lt_cv_prog_compiler_static_works=no
8666 save_LDFLAGS="$LDFLAGS"
8667 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8668 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8669 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8670 # The linker can only warn and ignore the option if not recognized
8671 # So say no if there are warnings
8672 if test -s conftest.err; then
8673 # Append any errors to the config.log.
8674 cat conftest.err 1>&5
8675 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8677 if diff conftest.exp conftest.er2 >/dev/null; then
8678 lt_cv_prog_compiler_static_works=yes
8680 else
8681 lt_cv_prog_compiler_static_works=yes
8684 $RM -r conftest*
8685 LDFLAGS="$save_LDFLAGS"
8688 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8689 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8691 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8693 else
8694 lt_prog_compiler_static=
8703 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8704 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8705 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708 lt_cv_prog_compiler_c_o=no
8709 $RM -r conftest 2>/dev/null
8710 mkdir conftest
8711 cd conftest
8712 mkdir out
8713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8715 lt_compiler_flag="-o out/conftest2.$ac_objext"
8716 # Insert the option either (1) after the last *FLAGS variable, or
8717 # (2) before a word containing "conftest.", or (3) at the end.
8718 # Note that $ac_compile itself does not contain backslashes and begins
8719 # with a dollar sign (not a hyphen), so the echo should work correctly.
8720 lt_compile=`echo "$ac_compile" | $SED \
8721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8723 -e 's:$: $lt_compiler_flag:'`
8724 (eval echo "\"\$as_me:8724: $lt_compile\"" >&5)
8725 (eval "$lt_compile" 2>out/conftest.err)
8726 ac_status=$?
8727 cat out/conftest.err >&5
8728 echo "$as_me:8728: \$? = $ac_status" >&5
8729 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8730 then
8731 # The compiler can only warn and ignore the option if not recognized
8732 # So say no if there are warnings
8733 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8734 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8735 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8736 lt_cv_prog_compiler_c_o=yes
8739 chmod u+w . 2>&5
8740 $RM conftest*
8741 # SGI C++ compiler will create directory out/ii_files/ for
8742 # template instantiation
8743 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8744 $RM out/* && rmdir out
8745 cd ..
8746 $RM -r conftest
8747 $RM conftest*
8750 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8751 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8758 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8759 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8760 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 else
8763 lt_cv_prog_compiler_c_o=no
8764 $RM -r conftest 2>/dev/null
8765 mkdir conftest
8766 cd conftest
8767 mkdir out
8768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8770 lt_compiler_flag="-o out/conftest2.$ac_objext"
8771 # Insert the option either (1) after the last *FLAGS variable, or
8772 # (2) before a word containing "conftest.", or (3) at the end.
8773 # Note that $ac_compile itself does not contain backslashes and begins
8774 # with a dollar sign (not a hyphen), so the echo should work correctly.
8775 lt_compile=`echo "$ac_compile" | $SED \
8776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8778 -e 's:$: $lt_compiler_flag:'`
8779 (eval echo "\"\$as_me:8779: $lt_compile\"" >&5)
8780 (eval "$lt_compile" 2>out/conftest.err)
8781 ac_status=$?
8782 cat out/conftest.err >&5
8783 echo "$as_me:8783: \$? = $ac_status" >&5
8784 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8785 then
8786 # The compiler can only warn and ignore the option if not recognized
8787 # So say no if there are warnings
8788 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8789 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8790 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8791 lt_cv_prog_compiler_c_o=yes
8794 chmod u+w . 2>&5
8795 $RM conftest*
8796 # SGI C++ compiler will create directory out/ii_files/ for
8797 # template instantiation
8798 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8799 $RM out/* && rmdir out
8800 cd ..
8801 $RM -r conftest
8802 $RM conftest*
8805 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8806 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8811 hard_links="nottested"
8812 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8813 # do not overwrite the value of need_locks provided by the user
8814 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8815 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8816 hard_links=yes
8817 $RM conftest*
8818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8819 touch conftest.a
8820 ln conftest.a conftest.b 2>&5 || hard_links=no
8821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8822 echo "$as_me:$LINENO: result: $hard_links" >&5
8823 echo "${ECHO_T}$hard_links" >&6
8824 if test "$hard_links" = no; then
8825 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8826 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8827 need_locks=warn
8829 else
8830 need_locks=no
8838 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8839 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8841 runpath_var=
8842 allow_undefined_flag=
8843 always_export_symbols=no
8844 archive_cmds=
8845 archive_expsym_cmds=
8846 compiler_needs_object=no
8847 enable_shared_with_static_runtimes=no
8848 export_dynamic_flag_spec=
8849 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8850 hardcode_automatic=no
8851 hardcode_direct=no
8852 hardcode_direct_absolute=no
8853 hardcode_libdir_flag_spec=
8854 hardcode_libdir_flag_spec_ld=
8855 hardcode_libdir_separator=
8856 hardcode_minus_L=no
8857 hardcode_shlibpath_var=unsupported
8858 inherit_rpath=no
8859 link_all_deplibs=unknown
8860 module_cmds=
8861 module_expsym_cmds=
8862 old_archive_from_new_cmds=
8863 old_archive_from_expsyms_cmds=
8864 thread_safe_flag_spec=
8865 whole_archive_flag_spec=
8866 # include_expsyms should be a list of space-separated symbols to be *always*
8867 # included in the symbol list
8868 include_expsyms=
8869 # exclude_expsyms can be an extended regexp of symbols to exclude
8870 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8871 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8872 # as well as any symbol that contains `d'.
8873 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8874 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8875 # platforms (ab)use it in PIC code, but their linkers get confused if
8876 # the symbol is explicitly referenced. Since portable code cannot
8877 # rely on this symbol name, it's probably fine to never include it in
8878 # preloaded symbol tables.
8879 # Exclude shared library initialization/finalization symbols.
8880 extract_expsyms_cmds=
8882 case $host_os in
8883 cygwin* | mingw* | pw32* | cegcc*)
8884 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8885 # When not using gcc, we currently assume that we are using
8886 # Microsoft Visual C++.
8887 if test "$GCC" != yes; then
8888 with_gnu_ld=no
8891 interix*)
8892 # we just hope/assume this is gcc and not c89 (= MSVC++)
8893 with_gnu_ld=yes
8895 openbsd*)
8896 with_gnu_ld=no
8898 esac
8900 ld_shlibs=yes
8901 if test "$with_gnu_ld" = yes; then
8902 # If archive_cmds runs LD, not CC, wlarc should be empty
8903 wlarc='${wl}'
8905 # Set some defaults for GNU ld with shared library support. These
8906 # are reset later if shared libraries are not supported. Putting them
8907 # here allows them to be overridden if necessary.
8908 runpath_var=LD_RUN_PATH
8909 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8910 export_dynamic_flag_spec='${wl}--export-dynamic'
8911 # ancient GNU ld didn't support --whole-archive et. al.
8912 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8913 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8914 else
8915 whole_archive_flag_spec=
8917 supports_anon_versioning=no
8918 case `$LD -v 2>&1` in
8919 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8920 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8921 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8922 *\ 2.11.*) ;; # other 2.11 versions
8923 *) supports_anon_versioning=yes ;;
8924 esac
8926 # See if GNU ld supports shared libraries.
8927 case $host_os in
8928 aix[3-9]*)
8929 # On AIX/PPC, the GNU linker is very broken
8930 if test "$host_cpu" != ia64; then
8931 ld_shlibs=no
8932 cat <<_LT_EOF 1>&2
8934 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8935 *** to be unable to reliably create shared libraries on AIX.
8936 *** Therefore, libtool is disabling shared libraries support. If you
8937 *** really care for shared libraries, you may want to modify your PATH
8938 *** so that a non-GNU linker is found, and then restart.
8940 _LT_EOF
8944 amigaos*)
8945 case $host_cpu in
8946 powerpc)
8947 # see comment about AmigaOS4 .so support
8948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8949 archive_expsym_cmds=''
8951 m68k)
8952 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)'
8953 hardcode_libdir_flag_spec='-L$libdir'
8954 hardcode_minus_L=yes
8956 esac
8959 beos*)
8960 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8961 allow_undefined_flag=unsupported
8962 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8963 # support --undefined. This deserves some investigation. FIXME
8964 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8965 else
8966 ld_shlibs=no
8970 cygwin* | mingw* | pw32* | cegcc*)
8971 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8972 # as there is no search path for DLLs.
8973 hardcode_libdir_flag_spec='-L$libdir'
8974 allow_undefined_flag=unsupported
8975 always_export_symbols=no
8976 enable_shared_with_static_runtimes=yes
8977 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8979 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8981 # If the export-symbols file already is a .def file (1st line
8982 # is EXPORTS), use it as is; otherwise, prepend...
8983 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8984 cp $export_symbols $output_objdir/$soname.def;
8985 else
8986 echo EXPORTS > $output_objdir/$soname.def;
8987 cat $export_symbols >> $output_objdir/$soname.def;
8989 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8990 else
8991 ld_shlibs=no
8995 interix[3-9]*)
8996 hardcode_direct=no
8997 hardcode_shlibpath_var=no
8998 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8999 export_dynamic_flag_spec='${wl}-E'
9000 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9001 # Instead, shared libraries are loaded at an image base (0x10000000 by
9002 # default) and relocated if they conflict, which is a slow very memory
9003 # consuming and fragmenting process. To avoid this, we pick a random,
9004 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9005 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9006 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9007 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'
9010 gnu* | linux* | tpf* | k*bsd*-gnu)
9011 tmp_diet=no
9012 if test "$host_os" = linux-dietlibc; then
9013 case $cc_basename in
9014 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9015 esac
9017 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9018 && test "$tmp_diet" = no
9019 then
9020 tmp_addflag=
9021 tmp_sharedflag='-shared'
9022 case $cc_basename,$host_cpu in
9023 pgcc*) # Portland Group C compiler
9024 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'
9025 tmp_addflag=' $pic_flag'
9027 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9028 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'
9029 tmp_addflag=' $pic_flag -Mnomain' ;;
9030 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9031 tmp_addflag=' -i_dynamic' ;;
9032 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9033 tmp_addflag=' -i_dynamic -nofor_main' ;;
9034 ifc* | ifort*) # Intel Fortran compiler
9035 tmp_addflag=' -nofor_main' ;;
9036 lf95*) # Lahey Fortran 8.1
9037 whole_archive_flag_spec=
9038 tmp_sharedflag='--shared' ;;
9039 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9040 tmp_sharedflag='-qmkshrobj'
9041 tmp_addflag= ;;
9042 esac
9043 case `$CC -V 2>&1 | sed 5q` in
9044 *Sun\ C*) # Sun C 5.9
9045 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'
9046 compiler_needs_object=yes
9047 tmp_sharedflag='-G' ;;
9048 *Sun\ F*) # Sun Fortran 8.3
9049 tmp_sharedflag='-G' ;;
9050 esac
9051 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9053 if test "x$supports_anon_versioning" = xyes; then
9054 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9055 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9056 echo "local: *; };" >> $output_objdir/$libname.ver~
9057 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9060 case $cc_basename in
9061 xlf*)
9062 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9063 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9064 hardcode_libdir_flag_spec=
9065 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9066 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9067 if test "x$supports_anon_versioning" = xyes; then
9068 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9069 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9070 echo "local: *; };" >> $output_objdir/$libname.ver~
9071 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9074 esac
9075 else
9076 ld_shlibs=no
9080 netbsd*)
9081 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9082 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9083 wlarc=
9084 else
9085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9086 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9090 solaris*)
9091 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9092 ld_shlibs=no
9093 cat <<_LT_EOF 1>&2
9095 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9096 *** create shared libraries on Solaris systems. Therefore, libtool
9097 *** is disabling shared libraries support. We urge you to upgrade GNU
9098 *** binutils to release 2.9.1 or newer. Another option is to modify
9099 *** your PATH or compiler configuration so that the native linker is
9100 *** used, and then restart.
9102 _LT_EOF
9103 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9105 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9106 else
9107 ld_shlibs=no
9111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9112 case `$LD -v 2>&1` in
9113 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9114 ld_shlibs=no
9115 cat <<_LT_EOF 1>&2
9117 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9118 *** reliably create shared libraries on SCO systems. Therefore, libtool
9119 *** is disabling shared libraries support. We urge you to upgrade GNU
9120 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9121 *** your PATH or compiler configuration so that the native linker is
9122 *** used, and then restart.
9124 _LT_EOF
9127 # For security reasons, it is highly recommended that you always
9128 # use absolute paths for naming shared libraries, and exclude the
9129 # DT_RUNPATH tag from executables and libraries. But doing so
9130 # requires that you compile everything twice, which is a pain.
9131 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9134 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9135 else
9136 ld_shlibs=no
9139 esac
9142 sunos4*)
9143 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9144 wlarc=
9145 hardcode_direct=yes
9146 hardcode_shlibpath_var=no
9150 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9152 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9153 else
9154 ld_shlibs=no
9157 esac
9159 if test "$ld_shlibs" = no; then
9160 runpath_var=
9161 hardcode_libdir_flag_spec=
9162 export_dynamic_flag_spec=
9163 whole_archive_flag_spec=
9165 else
9166 # PORTME fill in a description of your system's linker (not GNU ld)
9167 case $host_os in
9168 aix3*)
9169 allow_undefined_flag=unsupported
9170 always_export_symbols=yes
9171 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'
9172 # Note: this linker hardcodes the directories in LIBPATH if there
9173 # are no directories specified by -L.
9174 hardcode_minus_L=yes
9175 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9176 # Neither direct hardcoding nor static linking is supported with a
9177 # broken collect2.
9178 hardcode_direct=unsupported
9182 aix[4-9]*)
9183 if test "$host_cpu" = ia64; then
9184 # On IA64, the linker does run time linking by default, so we don't
9185 # have to do anything special.
9186 aix_use_runtimelinking=no
9187 exp_sym_flag='-Bexport'
9188 no_entry_flag=""
9189 else
9190 # If we're using GNU nm, then we don't want the "-C" option.
9191 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9192 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9193 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'
9194 else
9195 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'
9197 aix_use_runtimelinking=no
9199 # Test if we are trying to use run time linking or normal
9200 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9201 # need to do runtime linking.
9202 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9203 for ld_flag in $LDFLAGS; do
9204 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9205 aix_use_runtimelinking=yes
9206 break
9208 done
9210 esac
9212 exp_sym_flag='-bexport'
9213 no_entry_flag='-bnoentry'
9216 # When large executables or shared objects are built, AIX ld can
9217 # have problems creating the table of contents. If linking a library
9218 # or program results in "error TOC overflow" add -mminimal-toc to
9219 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9220 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9222 archive_cmds=''
9223 hardcode_direct=yes
9224 hardcode_direct_absolute=yes
9225 hardcode_libdir_separator=':'
9226 link_all_deplibs=yes
9227 file_list_spec='${wl}-f,'
9229 if test "$GCC" = yes; then
9230 case $host_os in aix4.[012]|aix4.[012].*)
9231 # We only want to do this on AIX 4.2 and lower, the check
9232 # below for broken collect2 doesn't work under 4.3+
9233 collect2name=`${CC} -print-prog-name=collect2`
9234 if test -f "$collect2name" &&
9235 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9236 then
9237 # We have reworked collect2
9239 else
9240 # We have old collect2
9241 hardcode_direct=unsupported
9242 # It fails to find uninstalled libraries when the uninstalled
9243 # path is not listed in the libpath. Setting hardcode_minus_L
9244 # to unsupported forces relinking
9245 hardcode_minus_L=yes
9246 hardcode_libdir_flag_spec='-L$libdir'
9247 hardcode_libdir_separator=
9250 esac
9251 shared_flag='-shared'
9252 if test "$aix_use_runtimelinking" = yes; then
9253 shared_flag="$shared_flag "'${wl}-G'
9255 else
9256 # not using gcc
9257 if test "$host_cpu" = ia64; then
9258 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9259 # chokes on -Wl,-G. The following line is correct:
9260 shared_flag='-G'
9261 else
9262 if test "$aix_use_runtimelinking" = yes; then
9263 shared_flag='${wl}-G'
9264 else
9265 shared_flag='${wl}-bM:SRE'
9270 export_dynamic_flag_spec='${wl}-bexpall'
9271 # It seems that -bexpall does not export symbols beginning with
9272 # underscore (_), so it is better to generate a list of symbols to export.
9273 always_export_symbols=yes
9274 if test "$aix_use_runtimelinking" = yes; then
9275 # Warning - without using the other runtime loading flags (-brtl),
9276 # -berok will link without error, but may produce a broken library.
9277 allow_undefined_flag='-berok'
9278 # Determine the default libpath from the value encoded in an
9279 # empty executable.
9280 if test x$gcc_no_link = xyes; then
9281 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9282 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9283 { (exit 1); exit 1; }; }
9285 cat >conftest.$ac_ext <<_ACEOF
9286 /* confdefs.h. */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9293 main ()
9297 return 0;
9299 _ACEOF
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9302 (eval $ac_link) 2>conftest.er1
9303 ac_status=$?
9304 grep -v '^ *+' conftest.er1 >conftest.err
9305 rm -f conftest.er1
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } &&
9309 { ac_try='test -z "$ac_c_werror_flag"
9310 || test ! -s conftest.err'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 (eval $ac_try) 2>&5
9313 ac_status=$?
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; } &&
9316 { ac_try='test -s conftest$ac_exeext'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 (eval $ac_try) 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9323 lt_aix_libpath_sed='
9324 /Import File Strings/,/^$/ {
9325 /^0/ {
9326 s/^0 *\(.*\)$/\1/
9330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9331 # Check for a 64-bit object if we didn't find anything.
9332 if test -z "$aix_libpath"; then
9333 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9335 else
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9340 rm -f conftest.err conftest.$ac_objext \
9341 conftest$ac_exeext conftest.$ac_ext
9342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9344 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9345 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"
9346 else
9347 if test "$host_cpu" = ia64; then
9348 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9349 allow_undefined_flag="-z nodefs"
9350 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"
9351 else
9352 # Determine the default libpath from the value encoded in an
9353 # empty executable.
9354 if test x$gcc_no_link = xyes; then
9355 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9356 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9357 { (exit 1); exit 1; }; }
9359 cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h. */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9367 main ()
9371 return 0;
9373 _ACEOF
9374 rm -f conftest.$ac_objext conftest$ac_exeext
9375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9376 (eval $ac_link) 2>conftest.er1
9377 ac_status=$?
9378 grep -v '^ *+' conftest.er1 >conftest.err
9379 rm -f conftest.er1
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } &&
9383 { ac_try='test -z "$ac_c_werror_flag"
9384 || test ! -s conftest.err'
9385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 (eval $ac_try) 2>&5
9387 ac_status=$?
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; } &&
9390 { ac_try='test -s conftest$ac_exeext'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 (eval $ac_try) 2>&5
9393 ac_status=$?
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9397 lt_aix_libpath_sed='
9398 /Import File Strings/,/^$/ {
9399 /^0/ {
9400 s/^0 *\(.*\)$/\1/
9404 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9405 # Check for a 64-bit object if we didn't find anything.
9406 if test -z "$aix_libpath"; then
9407 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9409 else
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9414 rm -f conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9416 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9418 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9419 # Warning - without using the other run time loading flags,
9420 # -berok will link without error, but may produce a broken library.
9421 no_undefined_flag=' ${wl}-bernotok'
9422 allow_undefined_flag=' ${wl}-berok'
9423 # Exported symbols can be pulled into shared objects from archives
9424 whole_archive_flag_spec='$convenience'
9425 archive_cmds_need_lc=yes
9426 # This is similar to how AIX traditionally builds its shared libraries.
9427 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'
9432 amigaos*)
9433 case $host_cpu in
9434 powerpc)
9435 # see comment about AmigaOS4 .so support
9436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9437 archive_expsym_cmds=''
9439 m68k)
9440 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)'
9441 hardcode_libdir_flag_spec='-L$libdir'
9442 hardcode_minus_L=yes
9444 esac
9447 bsdi[45]*)
9448 export_dynamic_flag_spec=-rdynamic
9451 cygwin* | mingw* | pw32* | cegcc*)
9452 # When not using gcc, we currently assume that we are using
9453 # Microsoft Visual C++.
9454 # hardcode_libdir_flag_spec is actually meaningless, as there is
9455 # no search path for DLLs.
9456 hardcode_libdir_flag_spec=' '
9457 allow_undefined_flag=unsupported
9458 # Tell ltmain to make .lib files, not .a files.
9459 libext=lib
9460 # Tell ltmain to make .dll files, not .so files.
9461 shrext_cmds=".dll"
9462 # FIXME: Setting linknames here is a bad hack.
9463 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9464 # The linker will automatically build a .lib file if we build a DLL.
9465 old_archive_from_new_cmds='true'
9466 # FIXME: Should let the user specify the lib program.
9467 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9468 fix_srcfile_path='`cygpath -w "$srcfile"`'
9469 enable_shared_with_static_runtimes=yes
9472 darwin* | rhapsody*)
9475 archive_cmds_need_lc=no
9476 hardcode_direct=no
9477 hardcode_automatic=yes
9478 hardcode_shlibpath_var=unsupported
9479 whole_archive_flag_spec=''
9480 link_all_deplibs=yes
9481 allow_undefined_flag="$_lt_dar_allow_undefined"
9482 case $cc_basename in
9483 ifort*) _lt_dar_can_shared=yes ;;
9484 *) _lt_dar_can_shared=$GCC ;;
9485 esac
9486 if test "$_lt_dar_can_shared" = "yes"; then
9487 output_verbose_link_cmd=echo
9488 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9489 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9490 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9491 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9493 else
9494 ld_shlibs=no
9499 dgux*)
9500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9501 hardcode_libdir_flag_spec='-L$libdir'
9502 hardcode_shlibpath_var=no
9505 freebsd1*)
9506 ld_shlibs=no
9509 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9510 # support. Future versions do this automatically, but an explicit c++rt0.o
9511 # does not break anything, and helps significantly (at the cost of a little
9512 # extra space).
9513 freebsd2.2*)
9514 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9515 hardcode_libdir_flag_spec='-R$libdir'
9516 hardcode_direct=yes
9517 hardcode_shlibpath_var=no
9520 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9521 freebsd2*)
9522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9523 hardcode_direct=yes
9524 hardcode_minus_L=yes
9525 hardcode_shlibpath_var=no
9528 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9529 freebsd* | dragonfly*)
9530 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9531 hardcode_libdir_flag_spec='-R$libdir'
9532 hardcode_direct=yes
9533 hardcode_shlibpath_var=no
9536 hpux9*)
9537 if test "$GCC" = yes; then
9538 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'
9539 else
9540 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'
9542 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9543 hardcode_libdir_separator=:
9544 hardcode_direct=yes
9546 # hardcode_minus_L: Not really in the search PATH,
9547 # but as the default location of the library.
9548 hardcode_minus_L=yes
9549 export_dynamic_flag_spec='${wl}-E'
9552 hpux10*)
9553 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9554 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9555 else
9556 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9558 if test "$with_gnu_ld" = no; then
9559 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9560 hardcode_libdir_flag_spec_ld='+b $libdir'
9561 hardcode_libdir_separator=:
9562 hardcode_direct=yes
9563 hardcode_direct_absolute=yes
9564 export_dynamic_flag_spec='${wl}-E'
9565 # hardcode_minus_L: Not really in the search PATH,
9566 # but as the default location of the library.
9567 hardcode_minus_L=yes
9571 hpux11*)
9572 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9573 case $host_cpu in
9574 hppa*64*)
9575 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 ia64*)
9578 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9581 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9583 esac
9584 else
9585 case $host_cpu in
9586 hppa*64*)
9587 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9589 ia64*)
9590 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9593 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9595 esac
9597 if test "$with_gnu_ld" = no; then
9598 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9599 hardcode_libdir_separator=:
9601 case $host_cpu in
9602 hppa*64*|ia64*)
9603 hardcode_direct=no
9604 hardcode_shlibpath_var=no
9607 hardcode_direct=yes
9608 hardcode_direct_absolute=yes
9609 export_dynamic_flag_spec='${wl}-E'
9611 # hardcode_minus_L: Not really in the search PATH,
9612 # but as the default location of the library.
9613 hardcode_minus_L=yes
9615 esac
9619 irix5* | irix6* | nonstopux*)
9620 if test "$GCC" = yes; then
9621 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'
9622 # Try to use the -exported_symbol ld option, if it does not
9623 # work, assume that -exports_file does not work either and
9624 # implicitly export all symbols.
9625 save_LDFLAGS="$LDFLAGS"
9626 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9627 if test x$gcc_no_link = xyes; then
9628 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9629 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9630 { (exit 1); exit 1; }; }
9632 cat >conftest.$ac_ext <<_ACEOF
9633 int foo(void) {}
9634 _ACEOF
9635 rm -f conftest.$ac_objext conftest$ac_exeext
9636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9637 (eval $ac_link) 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
9644 { ac_try='test -z "$ac_c_werror_flag"
9645 || test ! -s conftest.err'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 (eval $ac_try) 2>&5
9648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; } &&
9651 { ac_try='test -s conftest$ac_exeext'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 (eval $ac_try) 2>&5
9654 ac_status=$?
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; }; then
9657 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'
9659 else
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9664 rm -f conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext conftest.$ac_ext
9666 LDFLAGS="$save_LDFLAGS"
9667 else
9668 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'
9669 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'
9671 archive_cmds_need_lc='no'
9672 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9673 hardcode_libdir_separator=:
9674 inherit_rpath=yes
9675 link_all_deplibs=yes
9678 netbsd*)
9679 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9680 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9681 else
9682 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9684 hardcode_libdir_flag_spec='-R$libdir'
9685 hardcode_direct=yes
9686 hardcode_shlibpath_var=no
9689 newsos6)
9690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691 hardcode_direct=yes
9692 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9693 hardcode_libdir_separator=:
9694 hardcode_shlibpath_var=no
9697 *nto* | *qnx*)
9700 openbsd*)
9701 if test -f /usr/libexec/ld.so; then
9702 hardcode_direct=yes
9703 hardcode_shlibpath_var=no
9704 hardcode_direct_absolute=yes
9705 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9706 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9707 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9708 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9709 export_dynamic_flag_spec='${wl}-E'
9710 else
9711 case $host_os in
9712 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9713 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_libdir_flag_spec='-R$libdir'
9717 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9718 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9720 esac
9722 else
9723 ld_shlibs=no
9727 os2*)
9728 hardcode_libdir_flag_spec='-L$libdir'
9729 hardcode_minus_L=yes
9730 allow_undefined_flag=unsupported
9731 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'
9732 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9735 osf3*)
9736 if test "$GCC" = yes; then
9737 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9738 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'
9739 else
9740 allow_undefined_flag=' -expect_unresolved \*'
9741 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'
9743 archive_cmds_need_lc='no'
9744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9745 hardcode_libdir_separator=:
9748 osf4* | osf5*) # as osf3* with the addition of -msym flag
9749 if test "$GCC" = yes; then
9750 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9751 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'
9752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9753 else
9754 allow_undefined_flag=' -expect_unresolved \*'
9755 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'
9756 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~
9757 $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'
9759 # Both c and cxx compiler support -rpath directly
9760 hardcode_libdir_flag_spec='-rpath $libdir'
9762 archive_cmds_need_lc='no'
9763 hardcode_libdir_separator=:
9766 solaris*)
9767 no_undefined_flag=' -z defs'
9768 if test "$GCC" = yes; then
9769 wlarc='${wl}'
9770 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9771 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9772 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9773 else
9774 case `$CC -V 2>&1` in
9775 *"Compilers 5.0"*)
9776 wlarc=''
9777 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9778 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9779 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9782 wlarc='${wl}'
9783 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9784 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9785 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9787 esac
9789 hardcode_libdir_flag_spec='-R$libdir'
9790 hardcode_shlibpath_var=no
9791 case $host_os in
9792 solaris2.[0-5] | solaris2.[0-5].*) ;;
9794 # The compiler driver will combine and reorder linker options,
9795 # but understands `-z linker_flag'. GCC discards it without `$wl',
9796 # but is careful enough not to reorder.
9797 # Supported since Solaris 2.6 (maybe 2.5.1?)
9798 if test "$GCC" = yes; then
9799 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9800 else
9801 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9804 esac
9805 link_all_deplibs=yes
9808 sunos4*)
9809 if test "x$host_vendor" = xsequent; then
9810 # Use $CC to link under sequent, because it throws in some extra .o
9811 # files that make .init and .fini sections work.
9812 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9813 else
9814 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9816 hardcode_libdir_flag_spec='-L$libdir'
9817 hardcode_direct=yes
9818 hardcode_minus_L=yes
9819 hardcode_shlibpath_var=no
9822 sysv4)
9823 case $host_vendor in
9824 sni)
9825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9826 hardcode_direct=yes # is this really true???
9828 siemens)
9829 ## LD is ld it makes a PLAMLIB
9830 ## CC just makes a GrossModule.
9831 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9832 reload_cmds='$CC -r -o $output$reload_objs'
9833 hardcode_direct=no
9835 motorola)
9836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9837 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9839 esac
9840 runpath_var='LD_RUN_PATH'
9841 hardcode_shlibpath_var=no
9844 sysv4.3*)
9845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9846 hardcode_shlibpath_var=no
9847 export_dynamic_flag_spec='-Bexport'
9850 sysv4*MP*)
9851 if test -d /usr/nec; then
9852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9853 hardcode_shlibpath_var=no
9854 runpath_var=LD_RUN_PATH
9855 hardcode_runpath_var=yes
9856 ld_shlibs=yes
9860 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9861 no_undefined_flag='${wl}-z,text'
9862 archive_cmds_need_lc=no
9863 hardcode_shlibpath_var=no
9864 runpath_var='LD_RUN_PATH'
9866 if test "$GCC" = yes; then
9867 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9868 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9869 else
9870 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9871 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9875 sysv5* | sco3.2v5* | sco5v6*)
9876 # Note: We can NOT use -z defs as we might desire, because we do not
9877 # link with -lc, and that would cause any symbols used from libc to
9878 # always be unresolved, which means just about no library would
9879 # ever link correctly. If we're not using GNU ld we use -z text
9880 # though, which does catch some bad symbols but isn't as heavy-handed
9881 # as -z defs.
9882 no_undefined_flag='${wl}-z,text'
9883 allow_undefined_flag='${wl}-z,nodefs'
9884 archive_cmds_need_lc=no
9885 hardcode_shlibpath_var=no
9886 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9887 hardcode_libdir_separator=':'
9888 link_all_deplibs=yes
9889 export_dynamic_flag_spec='${wl}-Bexport'
9890 runpath_var='LD_RUN_PATH'
9892 if test "$GCC" = yes; then
9893 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9894 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9895 else
9896 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9897 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9901 uts4*)
9902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903 hardcode_libdir_flag_spec='-L$libdir'
9904 hardcode_shlibpath_var=no
9908 ld_shlibs=no
9910 esac
9912 if test x$host_vendor = xsni; then
9913 case $host in
9914 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9915 export_dynamic_flag_spec='${wl}-Blargedynsym'
9917 esac
9921 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9922 echo "${ECHO_T}$ld_shlibs" >&6
9923 test "$ld_shlibs" = no && can_build_shared=no
9925 with_gnu_ld=$with_gnu_ld
9942 # Do we need to explicitly link libc?
9944 case "x$archive_cmds_need_lc" in
9945 x|xyes)
9946 # Assume -lc should be added
9947 archive_cmds_need_lc=yes
9949 if test "$enable_shared" = yes && test "$GCC" = yes; then
9950 case $archive_cmds in
9951 *'~'*)
9952 # FIXME: we may have to deal with multi-command sequences.
9954 '$CC '*)
9955 # Test whether the compiler implicitly links with -lc since on some
9956 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9957 # to ld, don't add -lc before -lgcc.
9958 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9959 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9960 $RM conftest*
9961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9964 (eval $ac_compile) 2>&5
9965 ac_status=$?
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } 2>conftest.err; then
9968 soname=conftest
9969 lib=conftest
9970 libobjs=conftest.$ac_objext
9971 deplibs=
9972 wl=$lt_prog_compiler_wl
9973 pic_flag=$lt_prog_compiler_pic
9974 compiler_flags=-v
9975 linker_flags=-v
9976 verstring=
9977 output_objdir=.
9978 libname=conftest
9979 lt_save_allow_undefined_flag=$allow_undefined_flag
9980 allow_undefined_flag=
9981 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9982 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }
9986 then
9987 archive_cmds_need_lc=no
9988 else
9989 archive_cmds_need_lc=yes
9991 allow_undefined_flag=$lt_save_allow_undefined_flag
9992 else
9993 cat conftest.err 1>&5
9995 $RM conftest*
9996 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9997 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9999 esac
10002 esac
10160 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10161 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10163 if test "$GCC" = yes; then
10164 case $host_os in
10165 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10166 *) lt_awk_arg="/^libraries:/" ;;
10167 esac
10168 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10169 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10170 # if the path contains ";" then we assume it to be the separator
10171 # otherwise default to the standard path separator (i.e. ":") - it is
10172 # assumed that no part of a normal pathname contains ";" but that should
10173 # okay in the real world where ";" in dirpaths is itself problematic.
10174 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10175 else
10176 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10178 # Ok, now we have the path, separated by spaces, we can step through it
10179 # and add multilib dir if necessary.
10180 lt_tmp_lt_search_path_spec=
10181 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10182 for lt_sys_path in $lt_search_path_spec; do
10183 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10184 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10185 else
10186 test -d "$lt_sys_path" && \
10187 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10189 done
10190 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10191 BEGIN {RS=" "; FS="/|\n";} {
10192 lt_foo="";
10193 lt_count=0;
10194 for (lt_i = NF; lt_i > 0; lt_i--) {
10195 if ($lt_i != "" && $lt_i != ".") {
10196 if ($lt_i == "..") {
10197 lt_count++;
10198 } else {
10199 if (lt_count == 0) {
10200 lt_foo="/" $lt_i lt_foo;
10201 } else {
10202 lt_count--;
10207 if (lt_foo != "") { lt_freq[lt_foo]++; }
10208 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10210 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10211 else
10212 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10214 library_names_spec=
10215 libname_spec='lib$name'
10216 soname_spec=
10217 shrext_cmds=".so"
10218 postinstall_cmds=
10219 postuninstall_cmds=
10220 finish_cmds=
10221 finish_eval=
10222 shlibpath_var=
10223 shlibpath_overrides_runpath=unknown
10224 version_type=none
10225 dynamic_linker="$host_os ld.so"
10226 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10227 need_lib_prefix=unknown
10228 hardcode_into_libs=no
10230 # when you set need_version to no, make sure it does not cause -set_version
10231 # flags to be left without arguments
10232 need_version=unknown
10234 case $host_os in
10235 aix3*)
10236 version_type=linux
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10238 shlibpath_var=LIBPATH
10240 # AIX 3 has no versioning support, so we append a major version to the name.
10241 soname_spec='${libname}${release}${shared_ext}$major'
10244 aix[4-9]*)
10245 version_type=linux
10246 need_lib_prefix=no
10247 need_version=no
10248 hardcode_into_libs=yes
10249 if test "$host_cpu" = ia64; then
10250 # AIX 5 supports IA64
10251 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 else
10254 # With GCC up to 2.95.x, collect2 would create an import file
10255 # for dependence libraries. The import file would start with
10256 # the line `#! .'. This would cause the generated library to
10257 # depend on `.', always an invalid library. This was fixed in
10258 # development snapshots of GCC prior to 3.0.
10259 case $host_os in
10260 aix4 | aix4.[01] | aix4.[01].*)
10261 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10262 echo ' yes '
10263 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10265 else
10266 can_build_shared=no
10269 esac
10270 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10271 # soname into executable. Probably we can add versioning support to
10272 # collect2, so additional links can be useful in future.
10273 if test "$aix_use_runtimelinking" = yes; then
10274 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10275 # instead of lib<name>.a to let people know that these are not
10276 # typical AIX shared libraries.
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278 else
10279 # We preserve .a as extension for shared libraries through AIX4.2
10280 # and later when we are not doing run time linking.
10281 library_names_spec='${libname}${release}.a $libname.a'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10284 shlibpath_var=LIBPATH
10288 amigaos*)
10289 case $host_cpu in
10290 powerpc)
10291 # Since July 2007 AmigaOS4 officially supports .so libraries.
10292 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295 m68k)
10296 library_names_spec='$libname.ixlibrary $libname.a'
10297 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10298 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'
10300 esac
10303 beos*)
10304 library_names_spec='${libname}${shared_ext}'
10305 dynamic_linker="$host_os ld.so"
10306 shlibpath_var=LIBRARY_PATH
10309 bsdi[45]*)
10310 version_type=linux
10311 need_version=no
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313 soname_spec='${libname}${release}${shared_ext}$major'
10314 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10317 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10318 # the default ld.so.conf also contains /usr/contrib/lib and
10319 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10320 # libtool to hard-code these into programs
10323 cygwin* | mingw* | pw32* | cegcc*)
10324 version_type=windows
10325 shrext_cmds=".dll"
10326 need_version=no
10327 need_lib_prefix=no
10329 case $GCC,$host_os in
10330 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10331 library_names_spec='$libname.dll.a'
10332 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10333 postinstall_cmds='base_file=`basename \${file}`~
10334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10335 dldir=$destdir/`dirname \$dlpath`~
10336 test -d \$dldir || mkdir -p \$dldir~
10337 $install_prog $dir/$dlname \$dldir/$dlname~
10338 chmod a+x \$dldir/$dlname~
10339 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10340 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10342 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10343 dlpath=$dir/\$dldll~
10344 $RM \$dlpath'
10345 shlibpath_overrides_runpath=yes
10347 case $host_os in
10348 cygwin*)
10349 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10350 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10351 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10353 mingw* | cegcc*)
10354 # MinGW DLLs use traditional 'lib' prefix
10355 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10356 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10357 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10358 # It is most probably a Windows format PATH printed by
10359 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10360 # path with ; separators, and with drive letters. We can handle the
10361 # drive letters (cygwin fileutils understands them), so leave them,
10362 # especially as we might pass files found there to a mingw objdump,
10363 # which wouldn't understand a cygwinified path. Ahh.
10364 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10365 else
10366 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10369 pw32*)
10370 # pw32 DLLs use 'pw' prefix rather than 'lib'
10371 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10373 esac
10377 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10379 esac
10380 dynamic_linker='Win32 ld.exe'
10381 # FIXME: first we should search . and the directory the executable is in
10382 shlibpath_var=PATH
10385 darwin* | rhapsody*)
10386 dynamic_linker="$host_os dyld"
10387 version_type=darwin
10388 need_lib_prefix=no
10389 need_version=no
10390 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10391 soname_spec='${libname}${release}${major}$shared_ext'
10392 shlibpath_overrides_runpath=yes
10393 shlibpath_var=DYLD_LIBRARY_PATH
10394 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10396 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10397 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10400 dgux*)
10401 version_type=linux
10402 need_lib_prefix=no
10403 need_version=no
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10405 soname_spec='${libname}${release}${shared_ext}$major'
10406 shlibpath_var=LD_LIBRARY_PATH
10409 freebsd1*)
10410 dynamic_linker=no
10413 freebsd* | dragonfly*)
10414 # DragonFly does not have aout. When/if they implement a new
10415 # versioning mechanism, adjust this.
10416 if test -x /usr/bin/objformat; then
10417 objformat=`/usr/bin/objformat`
10418 else
10419 case $host_os in
10420 freebsd[123]*) objformat=aout ;;
10421 *) objformat=elf ;;
10422 esac
10424 version_type=freebsd-$objformat
10425 case $version_type in
10426 freebsd-elf*)
10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10428 need_version=no
10429 need_lib_prefix=no
10431 freebsd-*)
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10433 need_version=yes
10435 esac
10436 shlibpath_var=LD_LIBRARY_PATH
10437 case $host_os in
10438 freebsd2*)
10439 shlibpath_overrides_runpath=yes
10441 freebsd3.[01]* | freebsdelf3.[01]*)
10442 shlibpath_overrides_runpath=yes
10443 hardcode_into_libs=yes
10445 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10446 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10447 shlibpath_overrides_runpath=no
10448 hardcode_into_libs=yes
10450 *) # from 4.6 on, and DragonFly
10451 shlibpath_overrides_runpath=yes
10452 hardcode_into_libs=yes
10454 esac
10457 gnu*)
10458 version_type=linux
10459 need_lib_prefix=no
10460 need_version=no
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10462 soname_spec='${libname}${release}${shared_ext}$major'
10463 shlibpath_var=LD_LIBRARY_PATH
10464 hardcode_into_libs=yes
10467 hpux9* | hpux10* | hpux11*)
10468 # Give a soname corresponding to the major version so that dld.sl refuses to
10469 # link against other versions.
10470 version_type=sunos
10471 need_lib_prefix=no
10472 need_version=no
10473 case $host_cpu in
10474 ia64*)
10475 shrext_cmds='.so'
10476 hardcode_into_libs=yes
10477 dynamic_linker="$host_os dld.so"
10478 shlibpath_var=LD_LIBRARY_PATH
10479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481 soname_spec='${libname}${release}${shared_ext}$major'
10482 if test "X$HPUX_IA64_MODE" = X32; then
10483 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10484 else
10485 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10487 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10489 hppa*64*)
10490 shrext_cmds='.sl'
10491 hardcode_into_libs=yes
10492 dynamic_linker="$host_os dld.sl"
10493 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10494 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10496 soname_spec='${libname}${release}${shared_ext}$major'
10497 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10498 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10501 shrext_cmds='.sl'
10502 dynamic_linker="$host_os dld.sl"
10503 shlibpath_var=SHLIB_PATH
10504 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10506 soname_spec='${libname}${release}${shared_ext}$major'
10508 esac
10509 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10510 postinstall_cmds='chmod 555 $lib'
10513 interix[3-9]*)
10514 version_type=linux
10515 need_lib_prefix=no
10516 need_version=no
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10518 soname_spec='${libname}${release}${shared_ext}$major'
10519 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 shlibpath_overrides_runpath=no
10522 hardcode_into_libs=yes
10525 irix5* | irix6* | nonstopux*)
10526 case $host_os in
10527 nonstopux*) version_type=nonstopux ;;
10529 if test "$lt_cv_prog_gnu_ld" = yes; then
10530 version_type=linux
10531 else
10532 version_type=irix
10533 fi ;;
10534 esac
10535 need_lib_prefix=no
10536 need_version=no
10537 soname_spec='${libname}${release}${shared_ext}$major'
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10539 case $host_os in
10540 irix5* | nonstopux*)
10541 libsuff= shlibsuff=
10544 case $LD in # libtool.m4 will add one of these switches to LD
10545 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10546 libsuff= shlibsuff= libmagic=32-bit;;
10547 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10548 libsuff=32 shlibsuff=N32 libmagic=N32;;
10549 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10550 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10551 *) libsuff= shlibsuff= libmagic=never-match;;
10552 esac
10554 esac
10555 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10556 shlibpath_overrides_runpath=no
10557 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10558 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10559 hardcode_into_libs=yes
10562 # No shared lib support for Linux oldld, aout, or coff.
10563 linux*oldld* | linux*aout* | linux*coff*)
10564 dynamic_linker=no
10567 # This must be Linux ELF.
10568 linux* | k*bsd*-gnu)
10569 version_type=linux
10570 need_lib_prefix=no
10571 need_version=no
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10573 soname_spec='${libname}${release}${shared_ext}$major'
10574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 shlibpath_overrides_runpath=no
10577 # Some binutils ld are patched to set DT_RUNPATH
10578 save_LDFLAGS=$LDFLAGS
10579 save_libdir=$libdir
10580 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10581 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10582 if test x$gcc_no_link = xyes; then
10583 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10585 { (exit 1); exit 1; }; }
10587 cat >conftest.$ac_ext <<_ACEOF
10588 /* confdefs.h. */
10589 _ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10595 main ()
10599 return 0;
10601 _ACEOF
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10604 (eval $ac_link) 2>conftest.er1
10605 ac_status=$?
10606 grep -v '^ *+' conftest.er1 >conftest.err
10607 rm -f conftest.er1
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } &&
10611 { ac_try='test -z "$ac_c_werror_flag"
10612 || test ! -s conftest.err'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; } &&
10618 { ac_try='test -s conftest$ac_exeext'
10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620 (eval $ac_try) 2>&5
10621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; }; then
10624 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10625 shlibpath_overrides_runpath=yes
10628 else
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10633 rm -f conftest.err conftest.$ac_objext \
10634 conftest$ac_exeext conftest.$ac_ext
10635 LDFLAGS=$save_LDFLAGS
10636 libdir=$save_libdir
10638 # This implies no fast_install, which is unacceptable.
10639 # Some rework will be needed to allow for fast_install
10640 # before this can be enabled.
10641 hardcode_into_libs=yes
10643 # Append ld.so.conf contents to the search path
10644 if test -f /etc/ld.so.conf; then
10645 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10646 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10649 # We used to test for /lib/ld.so.1 and disable shared libraries on
10650 # powerpc, because MkLinux only supported shared libraries with the
10651 # GNU dynamic linker. Since this was broken with cross compilers,
10652 # most powerpc-linux boxes support dynamic linking these days and
10653 # people can always --disable-shared, the test was removed, and we
10654 # assume the GNU/Linux dynamic linker is in use.
10655 dynamic_linker='GNU/Linux ld.so'
10658 netbsd*)
10659 version_type=sunos
10660 need_lib_prefix=no
10661 need_version=no
10662 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10665 dynamic_linker='NetBSD (a.out) ld.so'
10666 else
10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10668 soname_spec='${libname}${release}${shared_ext}$major'
10669 dynamic_linker='NetBSD ld.elf_so'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=yes
10673 hardcode_into_libs=yes
10676 newsos6)
10677 version_type=linux
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 shlibpath_var=LD_LIBRARY_PATH
10680 shlibpath_overrides_runpath=yes
10683 *nto* | *qnx*)
10684 version_type=qnx
10685 need_lib_prefix=no
10686 need_version=no
10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10688 soname_spec='${libname}${release}${shared_ext}$major'
10689 shlibpath_var=LD_LIBRARY_PATH
10690 shlibpath_overrides_runpath=no
10691 hardcode_into_libs=yes
10692 dynamic_linker='ldqnx.so'
10695 openbsd*)
10696 version_type=sunos
10697 sys_lib_dlsearch_path_spec="/usr/lib"
10698 need_lib_prefix=no
10699 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10700 case $host_os in
10701 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10702 *) need_version=no ;;
10703 esac
10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10706 shlibpath_var=LD_LIBRARY_PATH
10707 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10708 case $host_os in
10709 openbsd2.[89] | openbsd2.[89].*)
10710 shlibpath_overrides_runpath=no
10713 shlibpath_overrides_runpath=yes
10715 esac
10716 else
10717 shlibpath_overrides_runpath=yes
10721 os2*)
10722 libname_spec='$name'
10723 shrext_cmds=".dll"
10724 need_lib_prefix=no
10725 library_names_spec='$libname${shared_ext} $libname.a'
10726 dynamic_linker='OS/2 ld.exe'
10727 shlibpath_var=LIBPATH
10730 osf3* | osf4* | osf5*)
10731 version_type=osf
10732 need_lib_prefix=no
10733 need_version=no
10734 soname_spec='${libname}${release}${shared_ext}$major'
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736 shlibpath_var=LD_LIBRARY_PATH
10737 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10738 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10741 rdos*)
10742 dynamic_linker=no
10745 solaris*)
10746 version_type=linux
10747 need_lib_prefix=no
10748 need_version=no
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750 soname_spec='${libname}${release}${shared_ext}$major'
10751 shlibpath_var=LD_LIBRARY_PATH
10752 shlibpath_overrides_runpath=yes
10753 hardcode_into_libs=yes
10754 # ldd complains unless libraries are executable
10755 postinstall_cmds='chmod +x $lib'
10758 sunos4*)
10759 version_type=sunos
10760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10761 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10762 shlibpath_var=LD_LIBRARY_PATH
10763 shlibpath_overrides_runpath=yes
10764 if test "$with_gnu_ld" = yes; then
10765 need_lib_prefix=no
10767 need_version=yes
10770 sysv4 | sysv4.3*)
10771 version_type=linux
10772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773 soname_spec='${libname}${release}${shared_ext}$major'
10774 shlibpath_var=LD_LIBRARY_PATH
10775 case $host_vendor in
10776 sni)
10777 shlibpath_overrides_runpath=no
10778 need_lib_prefix=no
10779 runpath_var=LD_RUN_PATH
10781 siemens)
10782 need_lib_prefix=no
10784 motorola)
10785 need_lib_prefix=no
10786 need_version=no
10787 shlibpath_overrides_runpath=no
10788 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10790 esac
10793 sysv4*MP*)
10794 if test -d /usr/nec ;then
10795 version_type=linux
10796 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10797 soname_spec='$libname${shared_ext}.$major'
10798 shlibpath_var=LD_LIBRARY_PATH
10802 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10803 version_type=freebsd-elf
10804 need_lib_prefix=no
10805 need_version=no
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10807 soname_spec='${libname}${release}${shared_ext}$major'
10808 shlibpath_var=LD_LIBRARY_PATH
10809 shlibpath_overrides_runpath=yes
10810 hardcode_into_libs=yes
10811 if test "$with_gnu_ld" = yes; then
10812 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10813 else
10814 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10815 case $host_os in
10816 sco3.2v5*)
10817 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10819 esac
10821 sys_lib_dlsearch_path_spec='/usr/lib'
10824 tpf*)
10825 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10826 version_type=linux
10827 need_lib_prefix=no
10828 need_version=no
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10830 shlibpath_var=LD_LIBRARY_PATH
10831 shlibpath_overrides_runpath=no
10832 hardcode_into_libs=yes
10835 uts4*)
10836 version_type=linux
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 shlibpath_var=LD_LIBRARY_PATH
10843 dynamic_linker=no
10845 esac
10846 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10847 echo "${ECHO_T}$dynamic_linker" >&6
10848 test "$dynamic_linker" = no && can_build_shared=no
10850 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10851 if test "$GCC" = yes; then
10852 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10855 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10856 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10858 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10859 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10948 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10949 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10950 hardcode_action=
10951 if test -n "$hardcode_libdir_flag_spec" ||
10952 test -n "$runpath_var" ||
10953 test "X$hardcode_automatic" = "Xyes" ; then
10955 # We can hardcode non-existent directories.
10956 if test "$hardcode_direct" != no &&
10957 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10958 # have to relink, otherwise we might link with an installed library
10959 # when we should be linking with a yet-to-be-installed one
10960 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10961 test "$hardcode_minus_L" != no; then
10962 # Linking always hardcodes the temporary library directory.
10963 hardcode_action=relink
10964 else
10965 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10966 hardcode_action=immediate
10968 else
10969 # We cannot hardcode anything, or else we can only hardcode existing
10970 # directories.
10971 hardcode_action=unsupported
10973 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10974 echo "${ECHO_T}$hardcode_action" >&6
10976 if test "$hardcode_action" = relink ||
10977 test "$inherit_rpath" = yes; then
10978 # Fast installation is not supported
10979 enable_fast_install=no
10980 elif test "$shlibpath_overrides_runpath" = yes ||
10981 test "$enable_shared" = no; then
10982 # Fast installation is not necessary
10983 enable_fast_install=needless
10991 if test "x$enable_dlopen" != xyes; then
10992 enable_dlopen=unknown
10993 enable_dlopen_self=unknown
10994 enable_dlopen_self_static=unknown
10995 else
10996 lt_cv_dlopen=no
10997 lt_cv_dlopen_libs=
10999 case $host_os in
11000 beos*)
11001 lt_cv_dlopen="load_add_on"
11002 lt_cv_dlopen_libs=
11003 lt_cv_dlopen_self=yes
11006 mingw* | pw32* | cegcc*)
11007 lt_cv_dlopen="LoadLibrary"
11008 lt_cv_dlopen_libs=
11011 cygwin*)
11012 lt_cv_dlopen="dlopen"
11013 lt_cv_dlopen_libs=
11016 darwin*)
11017 # if libdl is installed we need to link against it
11018 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11019 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11020 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023 ac_check_lib_save_LIBS=$LIBS
11024 LIBS="-ldl $LIBS"
11025 if test x$gcc_no_link = xyes; then
11026 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11027 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11028 { (exit 1); exit 1; }; }
11030 cat >conftest.$ac_ext <<_ACEOF
11031 /* confdefs.h. */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11037 /* Override any gcc2 internal prototype to avoid an error. */
11038 #ifdef __cplusplus
11039 extern "C"
11040 #endif
11041 /* We use char because int might match the return type of a gcc2
11042 builtin and then its argument prototype would still apply. */
11043 char dlopen ();
11045 main ()
11047 dlopen ();
11049 return 0;
11051 _ACEOF
11052 rm -f conftest.$ac_objext conftest$ac_exeext
11053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11054 (eval $ac_link) 2>conftest.er1
11055 ac_status=$?
11056 grep -v '^ *+' conftest.er1 >conftest.err
11057 rm -f conftest.er1
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -z "$ac_c_werror_flag"
11062 || test ! -s conftest.err'
11063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064 (eval $ac_try) 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; } &&
11068 { ac_try='test -s conftest$ac_exeext'
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11071 ac_status=$?
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; }; then
11074 ac_cv_lib_dl_dlopen=yes
11075 else
11076 echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11079 ac_cv_lib_dl_dlopen=no
11081 rm -f conftest.err conftest.$ac_objext \
11082 conftest$ac_exeext conftest.$ac_ext
11083 LIBS=$ac_check_lib_save_LIBS
11085 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11086 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11087 if test $ac_cv_lib_dl_dlopen = yes; then
11088 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11089 else
11091 lt_cv_dlopen="dyld"
11092 lt_cv_dlopen_libs=
11093 lt_cv_dlopen_self=yes
11100 echo "$as_me:$LINENO: checking for shl_load" >&5
11101 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11102 if test "${ac_cv_func_shl_load+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 else
11105 if test x$gcc_no_link = xyes; then
11106 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11107 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11108 { (exit 1); exit 1; }; }
11110 cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h. */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11118 #define shl_load innocuous_shl_load
11120 /* System header to define __stub macros and hopefully few prototypes,
11121 which can conflict with char shl_load (); below.
11122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11123 <limits.h> exists even on freestanding compilers. */
11125 #ifdef __STDC__
11126 # include <limits.h>
11127 #else
11128 # include <assert.h>
11129 #endif
11131 #undef shl_load
11133 /* Override any gcc2 internal prototype to avoid an error. */
11134 #ifdef __cplusplus
11135 extern "C"
11137 #endif
11138 /* We use char because int might match the return type of a gcc2
11139 builtin and then its argument prototype would still apply. */
11140 char shl_load ();
11141 /* The GNU C library defines this for functions which it implements
11142 to always fail with ENOSYS. Some functions are actually named
11143 something starting with __ and the normal name is an alias. */
11144 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11145 choke me
11146 #else
11147 char (*f) () = shl_load;
11148 #endif
11149 #ifdef __cplusplus
11151 #endif
11154 main ()
11156 return f != shl_load;
11158 return 0;
11160 _ACEOF
11161 rm -f conftest.$ac_objext conftest$ac_exeext
11162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11163 (eval $ac_link) 2>conftest.er1
11164 ac_status=$?
11165 grep -v '^ *+' conftest.er1 >conftest.err
11166 rm -f conftest.er1
11167 cat conftest.err >&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try='test -z "$ac_c_werror_flag"
11171 || test ! -s conftest.err'
11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173 (eval $ac_try) 2>&5
11174 ac_status=$?
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; } &&
11177 { ac_try='test -s conftest$ac_exeext'
11178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179 (eval $ac_try) 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; }; then
11183 ac_cv_func_shl_load=yes
11184 else
11185 echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11188 ac_cv_func_shl_load=no
11190 rm -f conftest.err conftest.$ac_objext \
11191 conftest$ac_exeext conftest.$ac_ext
11193 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11194 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11195 if test $ac_cv_func_shl_load = yes; then
11196 lt_cv_dlopen="shl_load"
11197 else
11198 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11199 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11200 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 else
11203 ac_check_lib_save_LIBS=$LIBS
11204 LIBS="-ldld $LIBS"
11205 if test x$gcc_no_link = xyes; then
11206 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11207 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11208 { (exit 1); exit 1; }; }
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11217 /* Override any gcc2 internal prototype to avoid an error. */
11218 #ifdef __cplusplus
11219 extern "C"
11220 #endif
11221 /* We use char because int might match the return type of a gcc2
11222 builtin and then its argument prototype would still apply. */
11223 char shl_load ();
11225 main ()
11227 shl_load ();
11229 return 0;
11231 _ACEOF
11232 rm -f conftest.$ac_objext conftest$ac_exeext
11233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11234 (eval $ac_link) 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
11241 { ac_try='test -z "$ac_c_werror_flag"
11242 || test ! -s conftest.err'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; } &&
11248 { ac_try='test -s conftest$ac_exeext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 ac_cv_lib_dld_shl_load=yes
11255 else
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11259 ac_cv_lib_dld_shl_load=no
11261 rm -f conftest.err conftest.$ac_objext \
11262 conftest$ac_exeext conftest.$ac_ext
11263 LIBS=$ac_check_lib_save_LIBS
11265 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11266 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11267 if test $ac_cv_lib_dld_shl_load = yes; then
11268 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11269 else
11270 echo "$as_me:$LINENO: checking for dlopen" >&5
11271 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11272 if test "${ac_cv_func_dlopen+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11275 if test x$gcc_no_link = xyes; then
11276 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11277 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11278 { (exit 1); exit 1; }; }
11280 cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h. */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11288 #define dlopen innocuous_dlopen
11290 /* System header to define __stub macros and hopefully few prototypes,
11291 which can conflict with char dlopen (); below.
11292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11293 <limits.h> exists even on freestanding compilers. */
11295 #ifdef __STDC__
11296 # include <limits.h>
11297 #else
11298 # include <assert.h>
11299 #endif
11301 #undef dlopen
11303 /* Override any gcc2 internal prototype to avoid an error. */
11304 #ifdef __cplusplus
11305 extern "C"
11307 #endif
11308 /* We use char because int might match the return type of a gcc2
11309 builtin and then its argument prototype would still apply. */
11310 char dlopen ();
11311 /* The GNU C library defines this for functions which it implements
11312 to always fail with ENOSYS. Some functions are actually named
11313 something starting with __ and the normal name is an alias. */
11314 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11315 choke me
11316 #else
11317 char (*f) () = dlopen;
11318 #endif
11319 #ifdef __cplusplus
11321 #endif
11324 main ()
11326 return f != dlopen;
11328 return 0;
11330 _ACEOF
11331 rm -f conftest.$ac_objext conftest$ac_exeext
11332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11333 (eval $ac_link) 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_exeext'
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_cv_func_dlopen=yes
11354 else
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11358 ac_cv_func_dlopen=no
11360 rm -f conftest.err conftest.$ac_objext \
11361 conftest$ac_exeext conftest.$ac_ext
11363 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11364 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11365 if test $ac_cv_func_dlopen = yes; then
11366 lt_cv_dlopen="dlopen"
11367 else
11368 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11369 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11370 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373 ac_check_lib_save_LIBS=$LIBS
11374 LIBS="-ldl $LIBS"
11375 if test x$gcc_no_link = xyes; then
11376 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11377 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11378 { (exit 1); exit 1; }; }
11380 cat >conftest.$ac_ext <<_ACEOF
11381 /* confdefs.h. */
11382 _ACEOF
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11387 /* Override any gcc2 internal prototype to avoid an error. */
11388 #ifdef __cplusplus
11389 extern "C"
11390 #endif
11391 /* We use char because int might match the return type of a gcc2
11392 builtin and then its argument prototype would still apply. */
11393 char dlopen ();
11395 main ()
11397 dlopen ();
11399 return 0;
11401 _ACEOF
11402 rm -f conftest.$ac_objext conftest$ac_exeext
11403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11404 (eval $ac_link) 2>conftest.er1
11405 ac_status=$?
11406 grep -v '^ *+' conftest.er1 >conftest.err
11407 rm -f conftest.er1
11408 cat conftest.err >&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } &&
11411 { ac_try='test -z "$ac_c_werror_flag"
11412 || test ! -s conftest.err'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11415 ac_status=$?
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; } &&
11418 { ac_try='test -s conftest$ac_exeext'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; }; then
11424 ac_cv_lib_dl_dlopen=yes
11425 else
11426 echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.$ac_ext >&5
11429 ac_cv_lib_dl_dlopen=no
11431 rm -f conftest.err conftest.$ac_objext \
11432 conftest$ac_exeext conftest.$ac_ext
11433 LIBS=$ac_check_lib_save_LIBS
11435 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11436 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11437 if test $ac_cv_lib_dl_dlopen = yes; then
11438 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11439 else
11440 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11441 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11442 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11445 ac_check_lib_save_LIBS=$LIBS
11446 LIBS="-lsvld $LIBS"
11447 if test x$gcc_no_link = xyes; then
11448 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11449 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11450 { (exit 1); exit 1; }; }
11452 cat >conftest.$ac_ext <<_ACEOF
11453 /* confdefs.h. */
11454 _ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11459 /* Override any gcc2 internal prototype to avoid an error. */
11460 #ifdef __cplusplus
11461 extern "C"
11462 #endif
11463 /* We use char because int might match the return type of a gcc2
11464 builtin and then its argument prototype would still apply. */
11465 char dlopen ();
11467 main ()
11469 dlopen ();
11471 return 0;
11473 _ACEOF
11474 rm -f conftest.$ac_objext conftest$ac_exeext
11475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11476 (eval $ac_link) 2>conftest.er1
11477 ac_status=$?
11478 grep -v '^ *+' conftest.er1 >conftest.err
11479 rm -f conftest.er1
11480 cat conftest.err >&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } &&
11483 { ac_try='test -z "$ac_c_werror_flag"
11484 || test ! -s conftest.err'
11485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11487 ac_status=$?
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; } &&
11490 { ac_try='test -s conftest$ac_exeext'
11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then
11496 ac_cv_lib_svld_dlopen=yes
11497 else
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11501 ac_cv_lib_svld_dlopen=no
11503 rm -f conftest.err conftest.$ac_objext \
11504 conftest$ac_exeext conftest.$ac_ext
11505 LIBS=$ac_check_lib_save_LIBS
11507 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11508 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11509 if test $ac_cv_lib_svld_dlopen = yes; then
11510 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11511 else
11512 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11513 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11514 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 else
11517 ac_check_lib_save_LIBS=$LIBS
11518 LIBS="-ldld $LIBS"
11519 if test x$gcc_no_link = xyes; then
11520 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11521 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11522 { (exit 1); exit 1; }; }
11524 cat >conftest.$ac_ext <<_ACEOF
11525 /* confdefs.h. */
11526 _ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h. */
11531 /* Override any gcc2 internal prototype to avoid an error. */
11532 #ifdef __cplusplus
11533 extern "C"
11534 #endif
11535 /* We use char because int might match the return type of a gcc2
11536 builtin and then its argument prototype would still apply. */
11537 char dld_link ();
11539 main ()
11541 dld_link ();
11543 return 0;
11545 _ACEOF
11546 rm -f conftest.$ac_objext conftest$ac_exeext
11547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11548 (eval $ac_link) 2>conftest.er1
11549 ac_status=$?
11550 grep -v '^ *+' conftest.er1 >conftest.err
11551 rm -f conftest.er1
11552 cat conftest.err >&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } &&
11555 { ac_try='test -z "$ac_c_werror_flag"
11556 || test ! -s conftest.err'
11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 (eval $ac_try) 2>&5
11559 ac_status=$?
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; } &&
11562 { ac_try='test -s conftest$ac_exeext'
11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11565 ac_status=$?
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; }; then
11568 ac_cv_lib_dld_dld_link=yes
11569 else
11570 echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11573 ac_cv_lib_dld_dld_link=no
11575 rm -f conftest.err conftest.$ac_objext \
11576 conftest$ac_exeext conftest.$ac_ext
11577 LIBS=$ac_check_lib_save_LIBS
11579 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11580 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11581 if test $ac_cv_lib_dld_dld_link = yes; then
11582 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11601 esac
11603 if test "x$lt_cv_dlopen" != xno; then
11604 enable_dlopen=yes
11605 else
11606 enable_dlopen=no
11609 case $lt_cv_dlopen in
11610 dlopen)
11611 save_CPPFLAGS="$CPPFLAGS"
11612 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11614 save_LDFLAGS="$LDFLAGS"
11615 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11617 save_LIBS="$LIBS"
11618 LIBS="$lt_cv_dlopen_libs $LIBS"
11620 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11621 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11622 if test "${lt_cv_dlopen_self+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 else
11625 if test "$cross_compiling" = yes; then :
11626 lt_cv_dlopen_self=cross
11627 else
11628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11629 lt_status=$lt_dlunknown
11630 cat > conftest.$ac_ext <<_LT_EOF
11631 #line 11631 "configure"
11632 #include "confdefs.h"
11634 #if HAVE_DLFCN_H
11635 #include <dlfcn.h>
11636 #endif
11638 #include <stdio.h>
11640 #ifdef RTLD_GLOBAL
11641 # define LT_DLGLOBAL RTLD_GLOBAL
11642 #else
11643 # ifdef DL_GLOBAL
11644 # define LT_DLGLOBAL DL_GLOBAL
11645 # else
11646 # define LT_DLGLOBAL 0
11647 # endif
11648 #endif
11650 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11651 find out it does not work in some platform. */
11652 #ifndef LT_DLLAZY_OR_NOW
11653 # ifdef RTLD_LAZY
11654 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11655 # else
11656 # ifdef DL_LAZY
11657 # define LT_DLLAZY_OR_NOW DL_LAZY
11658 # else
11659 # ifdef RTLD_NOW
11660 # define LT_DLLAZY_OR_NOW RTLD_NOW
11661 # else
11662 # ifdef DL_NOW
11663 # define LT_DLLAZY_OR_NOW DL_NOW
11664 # else
11665 # define LT_DLLAZY_OR_NOW 0
11666 # endif
11667 # endif
11668 # endif
11669 # endif
11670 #endif
11672 void fnord() { int i=42;}
11673 int main ()
11675 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11676 int status = $lt_dlunknown;
11678 if (self)
11680 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11681 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11682 /* dlclose (self); */
11684 else
11685 puts (dlerror ());
11687 return status;
11689 _LT_EOF
11690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11691 (eval $ac_link) 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11695 (./conftest; exit; ) >&5 2>/dev/null
11696 lt_status=$?
11697 case x$lt_status in
11698 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11699 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11700 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11701 esac
11702 else :
11703 # compilation failed
11704 lt_cv_dlopen_self=no
11707 rm -fr conftest*
11711 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11712 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11714 if test "x$lt_cv_dlopen_self" = xyes; then
11715 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11716 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11717 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11718 if test "${lt_cv_dlopen_self_static+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721 if test "$cross_compiling" = yes; then :
11722 lt_cv_dlopen_self_static=cross
11723 else
11724 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11725 lt_status=$lt_dlunknown
11726 cat > conftest.$ac_ext <<_LT_EOF
11727 #line 11727 "configure"
11728 #include "confdefs.h"
11730 #if HAVE_DLFCN_H
11731 #include <dlfcn.h>
11732 #endif
11734 #include <stdio.h>
11736 #ifdef RTLD_GLOBAL
11737 # define LT_DLGLOBAL RTLD_GLOBAL
11738 #else
11739 # ifdef DL_GLOBAL
11740 # define LT_DLGLOBAL DL_GLOBAL
11741 # else
11742 # define LT_DLGLOBAL 0
11743 # endif
11744 #endif
11746 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11747 find out it does not work in some platform. */
11748 #ifndef LT_DLLAZY_OR_NOW
11749 # ifdef RTLD_LAZY
11750 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11751 # else
11752 # ifdef DL_LAZY
11753 # define LT_DLLAZY_OR_NOW DL_LAZY
11754 # else
11755 # ifdef RTLD_NOW
11756 # define LT_DLLAZY_OR_NOW RTLD_NOW
11757 # else
11758 # ifdef DL_NOW
11759 # define LT_DLLAZY_OR_NOW DL_NOW
11760 # else
11761 # define LT_DLLAZY_OR_NOW 0
11762 # endif
11763 # endif
11764 # endif
11765 # endif
11766 #endif
11768 void fnord() { int i=42;}
11769 int main ()
11771 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11772 int status = $lt_dlunknown;
11774 if (self)
11776 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11777 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11778 /* dlclose (self); */
11780 else
11781 puts (dlerror ());
11783 return status;
11785 _LT_EOF
11786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11787 (eval $ac_link) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11791 (./conftest; exit; ) >&5 2>/dev/null
11792 lt_status=$?
11793 case x$lt_status in
11794 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11795 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11796 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11797 esac
11798 else :
11799 # compilation failed
11800 lt_cv_dlopen_self_static=no
11803 rm -fr conftest*
11807 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11808 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11811 CPPFLAGS="$save_CPPFLAGS"
11812 LDFLAGS="$save_LDFLAGS"
11813 LIBS="$save_LIBS"
11815 esac
11817 case $lt_cv_dlopen_self in
11818 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11819 *) enable_dlopen_self=unknown ;;
11820 esac
11822 case $lt_cv_dlopen_self_static in
11823 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11824 *) enable_dlopen_self_static=unknown ;;
11825 esac
11844 striplib=
11845 old_striplib=
11846 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11847 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11848 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11849 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11850 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11851 echo "$as_me:$LINENO: result: yes" >&5
11852 echo "${ECHO_T}yes" >&6
11853 else
11854 # FIXME - insert some real tests, host_os isn't really good enough
11855 case $host_os in
11856 darwin*)
11857 if test -n "$STRIP" ; then
11858 striplib="$STRIP -x"
11859 old_striplib="$STRIP -S"
11860 echo "$as_me:$LINENO: result: yes" >&5
11861 echo "${ECHO_T}yes" >&6
11862 else
11863 echo "$as_me:$LINENO: result: no" >&5
11864 echo "${ECHO_T}no" >&6
11868 echo "$as_me:$LINENO: result: no" >&5
11869 echo "${ECHO_T}no" >&6
11871 esac
11885 # Report which library types will actually be built
11886 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11887 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11888 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11889 echo "${ECHO_T}$can_build_shared" >&6
11891 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11892 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11893 test "$can_build_shared" = "no" && enable_shared=no
11895 # On AIX, shared libraries and static libraries use the same namespace, and
11896 # are all built from PIC.
11897 case $host_os in
11898 aix3*)
11899 test "$enable_shared" = yes && enable_static=no
11900 if test -n "$RANLIB"; then
11901 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11902 postinstall_cmds='$RANLIB $lib'
11906 aix[4-9]*)
11907 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11908 test "$enable_shared" = yes && enable_static=no
11911 esac
11912 echo "$as_me:$LINENO: result: $enable_shared" >&5
11913 echo "${ECHO_T}$enable_shared" >&6
11915 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11916 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11917 # Make sure either enable_shared or enable_static is yes.
11918 test "$enable_shared" = yes || enable_static=yes
11919 echo "$as_me:$LINENO: result: $enable_static" >&5
11920 echo "${ECHO_T}$enable_static" >&6
11926 ac_ext=c
11927 ac_cpp='$CPP $CPPFLAGS'
11928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11932 CC="$lt_save_CC"
11935 ac_ext=cc
11936 ac_cpp='$CXXCPP $CPPFLAGS'
11937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11941 archive_cmds_need_lc_CXX=no
11942 allow_undefined_flag_CXX=
11943 always_export_symbols_CXX=no
11944 archive_expsym_cmds_CXX=
11945 compiler_needs_object_CXX=no
11946 export_dynamic_flag_spec_CXX=
11947 hardcode_direct_CXX=no
11948 hardcode_direct_absolute_CXX=no
11949 hardcode_libdir_flag_spec_CXX=
11950 hardcode_libdir_flag_spec_ld_CXX=
11951 hardcode_libdir_separator_CXX=
11952 hardcode_minus_L_CXX=no
11953 hardcode_shlibpath_var_CXX=unsupported
11954 hardcode_automatic_CXX=no
11955 inherit_rpath_CXX=no
11956 module_cmds_CXX=
11957 module_expsym_cmds_CXX=
11958 link_all_deplibs_CXX=unknown
11959 old_archive_cmds_CXX=$old_archive_cmds
11960 no_undefined_flag_CXX=
11961 whole_archive_flag_spec_CXX=
11962 enable_shared_with_static_runtimes_CXX=no
11964 # Source file extension for C++ test sources.
11965 ac_ext=cpp
11967 # Object file extension for compiled C++ test sources.
11968 objext=o
11969 objext_CXX=$objext
11971 # No sense in running all these tests if we already determined that
11972 # the CXX compiler isn't working. Some variables (like enable_shared)
11973 # are currently assumed to apply to all compilers on this platform,
11974 # and will be corrupted by setting them based on a non-working compiler.
11975 if test "$_lt_caught_CXX_error" != yes; then
11976 # Code to be used in simple compile tests
11977 lt_simple_compile_test_code="int some_variable = 0;"
11979 # Code to be used in simple link tests
11980 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11982 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11989 # If no C compiler was specified, use CC.
11990 LTCC=${LTCC-"$CC"}
11992 # If no C compiler flags were specified, use CFLAGS.
11993 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11995 # Allow CC to be a program name with arguments.
11996 compiler=$CC
11999 # save warnings/boilerplate of simple test code
12000 ac_outfile=conftest.$ac_objext
12001 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12002 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12003 _lt_compiler_boilerplate=`cat conftest.err`
12004 $RM conftest*
12006 ac_outfile=conftest.$ac_objext
12007 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12008 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12009 _lt_linker_boilerplate=`cat conftest.err`
12010 $RM -r conftest*
12013 # Allow CC to be a program name with arguments.
12014 lt_save_CC=$CC
12015 lt_save_LD=$LD
12016 lt_save_GCC=$GCC
12017 GCC=$GXX
12018 lt_save_with_gnu_ld=$with_gnu_ld
12019 lt_save_path_LD=$lt_cv_path_LD
12020 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12021 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12022 else
12023 $as_unset lt_cv_prog_gnu_ld
12025 if test -n "${lt_cv_path_LDCXX+set}"; then
12026 lt_cv_path_LD=$lt_cv_path_LDCXX
12027 else
12028 $as_unset lt_cv_path_LD
12030 test -z "${LDCXX+set}" || LD=$LDCXX
12031 CC=${CXX-"c++"}
12032 compiler=$CC
12033 compiler_CXX=$CC
12034 for cc_temp in $compiler""; do
12035 case $cc_temp in
12036 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12037 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12038 \-*) ;;
12039 *) break;;
12040 esac
12041 done
12042 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12045 if test -n "$compiler"; then
12046 # We don't want -fno-exception when compiling C++ code, so set the
12047 # no_builtin_flag separately
12048 if test "$GXX" = yes; then
12049 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12050 else
12051 lt_prog_compiler_no_builtin_flag_CXX=
12054 if test "$GXX" = yes; then
12055 # Set up default GNU C++ configuration
12059 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12060 if test "${with_gnu_ld+set}" = set; then
12061 withval="$with_gnu_ld"
12062 test "$withval" = no || with_gnu_ld=yes
12063 else
12064 with_gnu_ld=no
12066 ac_prog=ld
12067 if test "$GCC" = yes; then
12068 # Check if gcc -print-prog-name=ld gives a path.
12069 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12070 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12071 case $host in
12072 *-*-mingw*)
12073 # gcc leaves a trailing carriage return which upsets mingw
12074 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12076 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12077 esac
12078 case $ac_prog in
12079 # Accept absolute paths.
12080 [\\/]* | ?:[\\/]*)
12081 re_direlt='/[^/][^/]*/\.\./'
12082 # Canonicalize the pathname of ld
12083 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12084 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12085 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12086 done
12087 test -z "$LD" && LD="$ac_prog"
12090 # If it fails, then pretend we aren't using GCC.
12091 ac_prog=ld
12094 # If it is relative, then search for the first ld in PATH.
12095 with_gnu_ld=unknown
12097 esac
12098 elif test "$with_gnu_ld" = yes; then
12099 echo "$as_me:$LINENO: checking for GNU ld" >&5
12100 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12101 else
12102 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12103 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12105 if test "${lt_cv_path_LD+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 else
12108 if test -z "$LD"; then
12109 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12110 for ac_dir in $PATH; do
12111 IFS="$lt_save_ifs"
12112 test -z "$ac_dir" && ac_dir=.
12113 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12114 lt_cv_path_LD="$ac_dir/$ac_prog"
12115 # Check to see if the program is GNU ld. I'd rather use --version,
12116 # but apparently some variants of GNU ld only accept -v.
12117 # Break only if it was the GNU/non-GNU ld that we prefer.
12118 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12119 *GNU* | *'with BFD'*)
12120 test "$with_gnu_ld" != no && break
12123 test "$with_gnu_ld" != yes && break
12125 esac
12127 done
12128 IFS="$lt_save_ifs"
12129 else
12130 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12134 LD="$lt_cv_path_LD"
12135 if test -n "$LD"; then
12136 echo "$as_me:$LINENO: result: $LD" >&5
12137 echo "${ECHO_T}$LD" >&6
12138 else
12139 echo "$as_me:$LINENO: result: no" >&5
12140 echo "${ECHO_T}no" >&6
12142 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12143 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12144 { (exit 1); exit 1; }; }
12145 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12146 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12147 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 else
12150 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12151 case `$LD -v 2>&1 </dev/null` in
12152 *GNU* | *'with BFD'*)
12153 lt_cv_prog_gnu_ld=yes
12156 lt_cv_prog_gnu_ld=no
12158 esac
12160 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12161 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12162 with_gnu_ld=$lt_cv_prog_gnu_ld
12170 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12171 # archiving commands below assume that GNU ld is being used.
12172 if test "$with_gnu_ld" = yes; then
12173 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12174 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12176 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12177 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12179 # If archive_cmds runs LD, not CC, wlarc should be empty
12180 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12181 # investigate it a little bit more. (MM)
12182 wlarc='${wl}'
12184 # ancient GNU ld didn't support --whole-archive et. al.
12185 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12186 $GREP 'no-whole-archive' > /dev/null; then
12187 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12188 else
12189 whole_archive_flag_spec_CXX=
12191 else
12192 with_gnu_ld=no
12193 wlarc=
12195 # A generic and very simple default shared library creation
12196 # command for GNU C++ for the case where it uses the native
12197 # linker, instead of GNU ld. If possible, this setting should
12198 # overridden to take advantage of the native linker features on
12199 # the platform it is being used on.
12200 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12203 # Commands to make compiler produce verbose output that lists
12204 # what "hidden" libraries, object files and flags are used when
12205 # linking a shared library.
12206 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12208 else
12209 GXX=no
12210 with_gnu_ld=no
12211 wlarc=
12214 # PORTME: fill in a description of your system's C++ link characteristics
12215 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12216 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12217 ld_shlibs_CXX=yes
12218 case $host_os in
12219 aix3*)
12220 # FIXME: insert proper C++ library support
12221 ld_shlibs_CXX=no
12223 aix[4-9]*)
12224 if test "$host_cpu" = ia64; then
12225 # On IA64, the linker does run time linking by default, so we don't
12226 # have to do anything special.
12227 aix_use_runtimelinking=no
12228 exp_sym_flag='-Bexport'
12229 no_entry_flag=""
12230 else
12231 aix_use_runtimelinking=no
12233 # Test if we are trying to use run time linking or normal
12234 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12235 # need to do runtime linking.
12236 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12237 for ld_flag in $LDFLAGS; do
12238 case $ld_flag in
12239 *-brtl*)
12240 aix_use_runtimelinking=yes
12241 break
12243 esac
12244 done
12246 esac
12248 exp_sym_flag='-bexport'
12249 no_entry_flag='-bnoentry'
12252 # When large executables or shared objects are built, AIX ld can
12253 # have problems creating the table of contents. If linking a library
12254 # or program results in "error TOC overflow" add -mminimal-toc to
12255 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12256 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12258 archive_cmds_CXX=''
12259 hardcode_direct_CXX=yes
12260 hardcode_direct_absolute_CXX=yes
12261 hardcode_libdir_separator_CXX=':'
12262 link_all_deplibs_CXX=yes
12263 file_list_spec_CXX='${wl}-f,'
12265 if test "$GXX" = yes; then
12266 case $host_os in aix4.[012]|aix4.[012].*)
12267 # We only want to do this on AIX 4.2 and lower, the check
12268 # below for broken collect2 doesn't work under 4.3+
12269 collect2name=`${CC} -print-prog-name=collect2`
12270 if test -f "$collect2name" &&
12271 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12272 then
12273 # We have reworked collect2
12275 else
12276 # We have old collect2
12277 hardcode_direct_CXX=unsupported
12278 # It fails to find uninstalled libraries when the uninstalled
12279 # path is not listed in the libpath. Setting hardcode_minus_L
12280 # to unsupported forces relinking
12281 hardcode_minus_L_CXX=yes
12282 hardcode_libdir_flag_spec_CXX='-L$libdir'
12283 hardcode_libdir_separator_CXX=
12285 esac
12286 shared_flag='-shared'
12287 if test "$aix_use_runtimelinking" = yes; then
12288 shared_flag="$shared_flag "'${wl}-G'
12290 else
12291 # not using gcc
12292 if test "$host_cpu" = ia64; then
12293 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12294 # chokes on -Wl,-G. The following line is correct:
12295 shared_flag='-G'
12296 else
12297 if test "$aix_use_runtimelinking" = yes; then
12298 shared_flag='${wl}-G'
12299 else
12300 shared_flag='${wl}-bM:SRE'
12305 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12306 # It seems that -bexpall does not export symbols beginning with
12307 # underscore (_), so it is better to generate a list of symbols to
12308 # export.
12309 always_export_symbols_CXX=yes
12310 if test "$aix_use_runtimelinking" = yes; then
12311 # Warning - without using the other runtime loading flags (-brtl),
12312 # -berok will link without error, but may produce a broken library.
12313 allow_undefined_flag_CXX='-berok'
12314 # Determine the default libpath from the value encoded in an empty
12315 # executable.
12316 if test x$gcc_no_link = xyes; then
12317 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12318 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12319 { (exit 1); exit 1; }; }
12321 cat >conftest.$ac_ext <<_ACEOF
12322 /* confdefs.h. */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12329 main ()
12333 return 0;
12335 _ACEOF
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12338 (eval $ac_link) 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } &&
12345 { ac_try='test -z "$ac_cxx_werror_flag"
12346 || test ! -s conftest.err'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; } &&
12352 { ac_try='test -s conftest$ac_exeext'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12359 lt_aix_libpath_sed='
12360 /Import File Strings/,/^$/ {
12361 /^0/ {
12362 s/^0 *\(.*\)$/\1/
12366 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12367 # Check for a 64-bit object if we didn't find anything.
12368 if test -z "$aix_libpath"; then
12369 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12371 else
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12376 rm -f conftest.err conftest.$ac_objext \
12377 conftest$ac_exeext conftest.$ac_ext
12378 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12380 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12382 archive_expsym_cmds_CXX='$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"
12383 else
12384 if test "$host_cpu" = ia64; then
12385 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12386 allow_undefined_flag_CXX="-z nodefs"
12387 archive_expsym_cmds_CXX="\$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"
12388 else
12389 # Determine the default libpath from the value encoded in an
12390 # empty executable.
12391 if test x$gcc_no_link = xyes; then
12392 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12393 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12394 { (exit 1); exit 1; }; }
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h. */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12404 main ()
12408 return 0;
12410 _ACEOF
12411 rm -f conftest.$ac_objext conftest$ac_exeext
12412 if { (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); } &&
12420 { ac_try='test -z "$ac_cxx_werror_flag"
12421 || test ! -s conftest.err'
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
12434 lt_aix_libpath_sed='
12435 /Import File Strings/,/^$/ {
12436 /^0/ {
12437 s/^0 *\(.*\)$/\1/
12441 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12442 # Check for a 64-bit object if we didn't find anything.
12443 if test -z "$aix_libpath"; then
12444 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12446 else
12447 echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12451 rm -f conftest.err conftest.$ac_objext \
12452 conftest$ac_exeext conftest.$ac_ext
12453 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12455 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12456 # Warning - without using the other run time loading flags,
12457 # -berok will link without error, but may produce a broken library.
12458 no_undefined_flag_CXX=' ${wl}-bernotok'
12459 allow_undefined_flag_CXX=' ${wl}-berok'
12460 # Exported symbols can be pulled into shared objects from archives
12461 whole_archive_flag_spec_CXX='$convenience'
12462 archive_cmds_need_lc_CXX=yes
12463 # This is similar to how AIX traditionally builds its shared
12464 # libraries.
12465 archive_expsym_cmds_CXX="\$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'
12470 beos*)
12471 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12472 allow_undefined_flag_CXX=unsupported
12473 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12474 # support --undefined. This deserves some investigation. FIXME
12475 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12476 else
12477 ld_shlibs_CXX=no
12481 chorus*)
12482 case $cc_basename in
12484 # FIXME: insert proper C++ library support
12485 ld_shlibs_CXX=no
12487 esac
12490 cygwin* | mingw* | pw32* | cegcc*)
12491 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12492 # as there is no search path for DLLs.
12493 hardcode_libdir_flag_spec_CXX='-L$libdir'
12494 allow_undefined_flag_CXX=unsupported
12495 always_export_symbols_CXX=no
12496 enable_shared_with_static_runtimes_CXX=yes
12498 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12499 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12500 # If the export-symbols file already is a .def file (1st line
12501 # is EXPORTS), use it as is; otherwise, prepend...
12502 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12503 cp $export_symbols $output_objdir/$soname.def;
12504 else
12505 echo EXPORTS > $output_objdir/$soname.def;
12506 cat $export_symbols >> $output_objdir/$soname.def;
12508 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12509 else
12510 ld_shlibs_CXX=no
12513 darwin* | rhapsody*)
12516 archive_cmds_need_lc_CXX=no
12517 hardcode_direct_CXX=no
12518 hardcode_automatic_CXX=yes
12519 hardcode_shlibpath_var_CXX=unsupported
12520 whole_archive_flag_spec_CXX=''
12521 link_all_deplibs_CXX=yes
12522 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12523 case $cc_basename in
12524 ifort*) _lt_dar_can_shared=yes ;;
12525 *) _lt_dar_can_shared=$GCC ;;
12526 esac
12527 if test "$_lt_dar_can_shared" = "yes"; then
12528 output_verbose_link_cmd=echo
12529 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12530 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12531 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12532 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12533 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12534 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12535 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12538 else
12539 ld_shlibs_CXX=no
12544 dgux*)
12545 case $cc_basename in
12546 ec++*)
12547 # FIXME: insert proper C++ library support
12548 ld_shlibs_CXX=no
12550 ghcx*)
12551 # Green Hills C++ Compiler
12552 # FIXME: insert proper C++ library support
12553 ld_shlibs_CXX=no
12556 # FIXME: insert proper C++ library support
12557 ld_shlibs_CXX=no
12559 esac
12562 freebsd[12]*)
12563 # C++ shared libraries reported to be fairly broken before
12564 # switch to ELF
12565 ld_shlibs_CXX=no
12568 freebsd-elf*)
12569 archive_cmds_need_lc_CXX=no
12572 freebsd* | dragonfly*)
12573 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12574 # conventions
12575 ld_shlibs_CXX=yes
12578 gnu*)
12581 hpux9*)
12582 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12583 hardcode_libdir_separator_CXX=:
12584 export_dynamic_flag_spec_CXX='${wl}-E'
12585 hardcode_direct_CXX=yes
12586 hardcode_minus_L_CXX=yes # Not in the search PATH,
12587 # but as the default
12588 # location of the library.
12590 case $cc_basename in
12591 CC*)
12592 # FIXME: insert proper C++ library support
12593 ld_shlibs_CXX=no
12595 aCC*)
12596 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12597 # Commands to make compiler produce verbose output that lists
12598 # what "hidden" libraries, object files and flags are used when
12599 # linking a shared library.
12601 # There doesn't appear to be a way to prevent this compiler from
12602 # explicitly linking system object files so we need to strip them
12603 # from the output so that they don't get included in the library
12604 # dependencies.
12605 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12608 if test "$GXX" = yes; then
12609 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12610 else
12611 # FIXME: insert proper C++ library support
12612 ld_shlibs_CXX=no
12615 esac
12618 hpux10*|hpux11*)
12619 if test $with_gnu_ld = no; then
12620 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12621 hardcode_libdir_separator_CXX=:
12623 case $host_cpu in
12624 hppa*64*|ia64*)
12627 export_dynamic_flag_spec_CXX='${wl}-E'
12629 esac
12631 case $host_cpu in
12632 hppa*64*|ia64*)
12633 hardcode_direct_CXX=no
12634 hardcode_shlibpath_var_CXX=no
12637 hardcode_direct_CXX=yes
12638 hardcode_direct_absolute_CXX=yes
12639 hardcode_minus_L_CXX=yes # Not in the search PATH,
12640 # but as the default
12641 # location of the library.
12643 esac
12645 case $cc_basename in
12646 CC*)
12647 # FIXME: insert proper C++ library support
12648 ld_shlibs_CXX=no
12650 aCC*)
12651 case $host_cpu in
12652 hppa*64*)
12653 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12655 ia64*)
12656 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12659 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12661 esac
12662 # Commands to make compiler produce verbose output that lists
12663 # what "hidden" libraries, object files and flags are used when
12664 # linking a shared library.
12666 # There doesn't appear to be a way to prevent this compiler from
12667 # explicitly linking system object files so we need to strip them
12668 # from the output so that they don't get included in the library
12669 # dependencies.
12670 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12673 if test "$GXX" = yes; then
12674 if test $with_gnu_ld = no; then
12675 case $host_cpu in
12676 hppa*64*)
12677 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12679 ia64*)
12680 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12683 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12685 esac
12687 else
12688 # FIXME: insert proper C++ library support
12689 ld_shlibs_CXX=no
12692 esac
12695 interix[3-9]*)
12696 hardcode_direct_CXX=no
12697 hardcode_shlibpath_var_CXX=no
12698 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12699 export_dynamic_flag_spec_CXX='${wl}-E'
12700 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12701 # Instead, shared libraries are loaded at an image base (0x10000000 by
12702 # default) and relocated if they conflict, which is a slow very memory
12703 # consuming and fragmenting process. To avoid this, we pick a random,
12704 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12705 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12706 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12707 archive_expsym_cmds_CXX='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'
12709 irix5* | irix6*)
12710 case $cc_basename in
12711 CC*)
12712 # SGI C++
12713 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12715 # Archives containing C++ object files must be created using
12716 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12717 # necessary to make sure instantiated templates are included
12718 # in the archive.
12719 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12722 if test "$GXX" = yes; then
12723 if test "$with_gnu_ld" = no; then
12724 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12725 else
12726 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12729 link_all_deplibs_CXX=yes
12731 esac
12732 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12733 hardcode_libdir_separator_CXX=:
12734 inherit_rpath_CXX=yes
12737 linux* | k*bsd*-gnu)
12738 case $cc_basename in
12739 KCC*)
12740 # Kuck and Associates, Inc. (KAI) C++ Compiler
12742 # KCC will only create a shared library if the output file
12743 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12744 # to its proper name (with version) after linking.
12745 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12746 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12747 # Commands to make compiler produce verbose output that lists
12748 # what "hidden" libraries, object files and flags are used when
12749 # linking a shared library.
12751 # There doesn't appear to be a way to prevent this compiler from
12752 # explicitly linking system object files so we need to strip them
12753 # from the output so that they don't get included in the library
12754 # dependencies.
12755 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12757 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12758 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12760 # Archives containing C++ object files must be created using
12761 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12762 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12764 icpc* | ecpc* )
12765 # Intel C++
12766 with_gnu_ld=yes
12767 # version 8.0 and above of icpc choke on multiply defined symbols
12768 # if we add $predep_objects and $postdep_objects, however 7.1 and
12769 # earlier do not add the objects themselves.
12770 case `$CC -V 2>&1` in
12771 *"Version 7."*)
12772 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12773 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12775 *) # Version 8.0 or newer
12776 tmp_idyn=
12777 case $host_cpu in
12778 ia64*) tmp_idyn=' -i_dynamic';;
12779 esac
12780 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12781 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12783 esac
12784 archive_cmds_need_lc_CXX=no
12785 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12786 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12787 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12789 pgCC* | pgcpp*)
12790 # Portland Group C++ compiler
12791 case `$CC -V` in
12792 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12793 prelink_cmds_CXX='tpldir=Template.dir~
12794 rm -rf $tpldir~
12795 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12796 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12797 old_archive_cmds_CXX='tpldir=Template.dir~
12798 rm -rf $tpldir~
12799 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12800 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12801 $RANLIB $oldlib'
12802 archive_cmds_CXX='tpldir=Template.dir~
12803 rm -rf $tpldir~
12804 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12805 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12806 archive_expsym_cmds_CXX='tpldir=Template.dir~
12807 rm -rf $tpldir~
12808 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12809 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12811 *) # Version 6 will use weak symbols
12812 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12813 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12815 esac
12817 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12818 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12819 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12821 cxx*)
12822 # Compaq C++
12823 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12824 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12826 runpath_var=LD_RUN_PATH
12827 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12828 hardcode_libdir_separator_CXX=:
12830 # Commands to make compiler produce verbose output that lists
12831 # what "hidden" libraries, object files and flags are used when
12832 # linking a shared library.
12834 # There doesn't appear to be a way to prevent this compiler from
12835 # explicitly linking system object files so we need to strip them
12836 # from the output so that they don't get included in the library
12837 # dependencies.
12838 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12840 xl*)
12841 # IBM XL 8.0 on PPC, with GNU ld
12842 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12843 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12844 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12845 if test "x$supports_anon_versioning" = xyes; then
12846 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12847 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12848 echo "local: *; };" >> $output_objdir/$libname.ver~
12849 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12853 case `$CC -V 2>&1 | sed 5q` in
12854 *Sun\ C*)
12855 # Sun C++ 5.9
12856 no_undefined_flag_CXX=' -zdefs'
12857 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12858 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12859 hardcode_libdir_flag_spec_CXX='-R$libdir'
12860 whole_archive_flag_spec_CXX='${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'
12861 compiler_needs_object_CXX=yes
12863 # Not sure whether something based on
12864 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12865 # would be better.
12866 output_verbose_link_cmd='echo'
12868 # Archives containing C++ object files must be created using
12869 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12870 # necessary to make sure instantiated templates are included
12871 # in the archive.
12872 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12874 esac
12876 esac
12879 lynxos*)
12880 # FIXME: insert proper C++ library support
12881 ld_shlibs_CXX=no
12884 m88k*)
12885 # FIXME: insert proper C++ library support
12886 ld_shlibs_CXX=no
12889 mvs*)
12890 case $cc_basename in
12891 cxx*)
12892 # FIXME: insert proper C++ library support
12893 ld_shlibs_CXX=no
12896 # FIXME: insert proper C++ library support
12897 ld_shlibs_CXX=no
12899 esac
12902 netbsd*)
12903 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12904 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12905 wlarc=
12906 hardcode_libdir_flag_spec_CXX='-R$libdir'
12907 hardcode_direct_CXX=yes
12908 hardcode_shlibpath_var_CXX=no
12910 # Workaround some broken pre-1.5 toolchains
12911 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12914 *nto* | *qnx*)
12915 ld_shlibs_CXX=yes
12918 openbsd2*)
12919 # C++ shared libraries are fairly broken
12920 ld_shlibs_CXX=no
12923 openbsd*)
12924 if test -f /usr/libexec/ld.so; then
12925 hardcode_direct_CXX=yes
12926 hardcode_shlibpath_var_CXX=no
12927 hardcode_direct_absolute_CXX=yes
12928 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12929 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12930 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12931 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12932 export_dynamic_flag_spec_CXX='${wl}-E'
12933 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12935 output_verbose_link_cmd=echo
12936 else
12937 ld_shlibs_CXX=no
12941 osf3* | osf4* | osf5*)
12942 case $cc_basename in
12943 KCC*)
12944 # Kuck and Associates, Inc. (KAI) C++ Compiler
12946 # KCC will only create a shared library if the output file
12947 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12948 # to its proper name (with version) after linking.
12949 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12951 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12952 hardcode_libdir_separator_CXX=:
12954 # Archives containing C++ object files must be created using
12955 # the KAI C++ compiler.
12956 case $host in
12957 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12958 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12959 esac
12961 RCC*)
12962 # Rational C++ 2.4.1
12963 # FIXME: insert proper C++ library support
12964 ld_shlibs_CXX=no
12966 cxx*)
12967 case $host in
12968 osf3*)
12969 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12970 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12971 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12974 allow_undefined_flag_CXX=' -expect_unresolved \*'
12975 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12976 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12977 echo "-hidden">> $lib.exp~
12978 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12979 $RM $lib.exp'
12980 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12982 esac
12984 hardcode_libdir_separator_CXX=:
12986 # Commands to make compiler produce verbose output that lists
12987 # what "hidden" libraries, object files and flags are used when
12988 # linking a shared library.
12990 # There doesn't appear to be a way to prevent this compiler from
12991 # explicitly linking system object files so we need to strip them
12992 # from the output so that they don't get included in the library
12993 # dependencies.
12994 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12997 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12998 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12999 case $host in
13000 osf3*)
13001 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13004 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13006 esac
13008 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13009 hardcode_libdir_separator_CXX=:
13011 # Commands to make compiler produce verbose output that lists
13012 # what "hidden" libraries, object files and flags are used when
13013 # linking a shared library.
13014 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13016 else
13017 # FIXME: insert proper C++ library support
13018 ld_shlibs_CXX=no
13021 esac
13024 psos*)
13025 # FIXME: insert proper C++ library support
13026 ld_shlibs_CXX=no
13029 sunos4*)
13030 case $cc_basename in
13031 CC*)
13032 # Sun C++ 4.x
13033 # FIXME: insert proper C++ library support
13034 ld_shlibs_CXX=no
13036 lcc*)
13037 # Lucid
13038 # FIXME: insert proper C++ library support
13039 ld_shlibs_CXX=no
13042 # FIXME: insert proper C++ library support
13043 ld_shlibs_CXX=no
13045 esac
13048 solaris*)
13049 case $cc_basename in
13050 CC*)
13051 # Sun C++ 4.2, 5.x and Centerline C++
13052 archive_cmds_need_lc_CXX=yes
13053 no_undefined_flag_CXX=' -zdefs'
13054 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13055 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13056 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13058 hardcode_libdir_flag_spec_CXX='-R$libdir'
13059 hardcode_shlibpath_var_CXX=no
13060 case $host_os in
13061 solaris2.[0-5] | solaris2.[0-5].*) ;;
13063 # The compiler driver will combine and reorder linker options,
13064 # but understands `-z linker_flag'.
13065 # Supported since Solaris 2.6 (maybe 2.5.1?)
13066 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13068 esac
13069 link_all_deplibs_CXX=yes
13071 output_verbose_link_cmd='echo'
13073 # Archives containing C++ object files must be created using
13074 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13075 # necessary to make sure instantiated templates are included
13076 # in the archive.
13077 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13079 gcx*)
13080 # Green Hills C++ Compiler
13081 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13083 # The C++ compiler must be used to create the archive.
13084 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13087 # GNU C++ compiler with Solaris linker
13088 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13089 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13090 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13091 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13092 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13093 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13095 # Commands to make compiler produce verbose output that lists
13096 # what "hidden" libraries, object files and flags are used when
13097 # linking a shared library.
13098 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13099 else
13100 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13101 # platform.
13102 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13103 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13104 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13106 # Commands to make compiler produce verbose output that lists
13107 # what "hidden" libraries, object files and flags are used when
13108 # linking a shared library.
13109 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13112 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13113 case $host_os in
13114 solaris2.[0-5] | solaris2.[0-5].*) ;;
13116 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13118 esac
13121 esac
13124 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13125 no_undefined_flag_CXX='${wl}-z,text'
13126 archive_cmds_need_lc_CXX=no
13127 hardcode_shlibpath_var_CXX=no
13128 runpath_var='LD_RUN_PATH'
13130 case $cc_basename in
13131 CC*)
13132 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13133 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13136 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13137 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13139 esac
13142 sysv5* | sco3.2v5* | sco5v6*)
13143 # Note: We can NOT use -z defs as we might desire, because we do not
13144 # link with -lc, and that would cause any symbols used from libc to
13145 # always be unresolved, which means just about no library would
13146 # ever link correctly. If we're not using GNU ld we use -z text
13147 # though, which does catch some bad symbols but isn't as heavy-handed
13148 # as -z defs.
13149 no_undefined_flag_CXX='${wl}-z,text'
13150 allow_undefined_flag_CXX='${wl}-z,nodefs'
13151 archive_cmds_need_lc_CXX=no
13152 hardcode_shlibpath_var_CXX=no
13153 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13154 hardcode_libdir_separator_CXX=':'
13155 link_all_deplibs_CXX=yes
13156 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13157 runpath_var='LD_RUN_PATH'
13159 case $cc_basename in
13160 CC*)
13161 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13162 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13165 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13166 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13168 esac
13171 tandem*)
13172 case $cc_basename in
13173 NCC*)
13174 # NonStop-UX NCC 3.20
13175 # FIXME: insert proper C++ library support
13176 ld_shlibs_CXX=no
13179 # FIXME: insert proper C++ library support
13180 ld_shlibs_CXX=no
13182 esac
13185 vxworks*)
13186 # FIXME: insert proper C++ library support
13187 ld_shlibs_CXX=no
13191 # FIXME: insert proper C++ library support
13192 ld_shlibs_CXX=no
13194 esac
13196 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13197 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13198 test "$ld_shlibs_CXX" = no && can_build_shared=no
13200 GCC_CXX="$GXX"
13201 LD_CXX="$LD"
13203 ## CAVEAT EMPTOR:
13204 ## There is no encapsulation within the following macros, do not change
13205 ## the running order or otherwise move them around unless you know exactly
13206 ## what you are doing...
13207 # Dependencies to place before and after the object being linked:
13208 predep_objects_CXX=
13209 postdep_objects_CXX=
13210 predeps_CXX=
13211 postdeps_CXX=
13212 compiler_lib_search_path_CXX=
13214 cat > conftest.$ac_ext <<_LT_EOF
13215 class Foo
13217 public:
13218 Foo (void) { a = 0; }
13219 private:
13220 int a;
13222 _LT_EOF
13224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13225 (eval $ac_compile) 2>&5
13226 ac_status=$?
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; then
13229 # Parse the compiler output and extract the necessary
13230 # objects, libraries and library flags.
13232 # Sentinel used to keep track of whether or not we are before
13233 # the conftest object file.
13234 pre_test_object_deps_done=no
13236 for p in `eval "$output_verbose_link_cmd"`; do
13237 case $p in
13239 -L* | -R* | -l*)
13240 # Some compilers place space between "-{L,R}" and the path.
13241 # Remove the space.
13242 if test $p = "-L" ||
13243 test $p = "-R"; then
13244 prev=$p
13245 continue
13246 else
13247 prev=
13250 if test "$pre_test_object_deps_done" = no; then
13251 case $p in
13252 -L* | -R*)
13253 # Internal compiler library paths should come after those
13254 # provided the user. The postdeps already come after the
13255 # user supplied libs so there is no need to process them.
13256 if test -z "$compiler_lib_search_path_CXX"; then
13257 compiler_lib_search_path_CXX="${prev}${p}"
13258 else
13259 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13262 # The "-l" case would never come before the object being
13263 # linked, so don't bother handling this case.
13264 esac
13265 else
13266 if test -z "$postdeps_CXX"; then
13267 postdeps_CXX="${prev}${p}"
13268 else
13269 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13274 *.$objext)
13275 # This assumes that the test object file only shows up
13276 # once in the compiler output.
13277 if test "$p" = "conftest.$objext"; then
13278 pre_test_object_deps_done=yes
13279 continue
13282 if test "$pre_test_object_deps_done" = no; then
13283 if test -z "$predep_objects_CXX"; then
13284 predep_objects_CXX="$p"
13285 else
13286 predep_objects_CXX="$predep_objects_CXX $p"
13288 else
13289 if test -z "$postdep_objects_CXX"; then
13290 postdep_objects_CXX="$p"
13291 else
13292 postdep_objects_CXX="$postdep_objects_CXX $p"
13297 *) ;; # Ignore the rest.
13299 esac
13300 done
13302 # Clean up.
13303 rm -f a.out a.exe
13304 else
13305 echo "libtool.m4: error: problem compiling CXX test program"
13308 $RM -f confest.$objext
13310 # PORTME: override above test on systems where it is broken
13311 case $host_os in
13312 interix[3-9]*)
13313 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13314 # hack all around it, let's just trust "g++" to DTRT.
13315 predep_objects_CXX=
13316 postdep_objects_CXX=
13317 postdeps_CXX=
13320 linux*)
13321 case `$CC -V 2>&1 | sed 5q` in
13322 *Sun\ C*)
13323 # Sun C++ 5.9
13325 # The more standards-conforming stlport4 library is
13326 # incompatible with the Cstd library. Avoid specifying
13327 # it if it's in CXXFLAGS. Ignore libCrun as
13328 # -library=stlport4 depends on it.
13329 case " $CXX $CXXFLAGS " in
13330 *" -library=stlport4 "*)
13331 solaris_use_stlport4=yes
13333 esac
13335 if test "$solaris_use_stlport4" != yes; then
13336 postdeps_CXX='-library=Cstd -library=Crun'
13339 esac
13342 solaris*)
13343 case $cc_basename in
13344 CC*)
13345 # The more standards-conforming stlport4 library is
13346 # incompatible with the Cstd library. Avoid specifying
13347 # it if it's in CXXFLAGS. Ignore libCrun as
13348 # -library=stlport4 depends on it.
13349 case " $CXX $CXXFLAGS " in
13350 *" -library=stlport4 "*)
13351 solaris_use_stlport4=yes
13353 esac
13355 # Adding this requires a known-good setup of shared libraries for
13356 # Sun compiler versions before 5.6, else PIC objects from an old
13357 # archive will be linked into the output, leading to subtle bugs.
13358 if test "$solaris_use_stlport4" != yes; then
13359 postdeps_CXX='-library=Cstd -library=Crun'
13362 esac
13364 esac
13367 case " $postdeps_CXX " in
13368 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13369 esac
13370 compiler_lib_search_dirs_CXX=
13371 if test -n "${compiler_lib_search_path_CXX}"; then
13372 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13405 lt_prog_compiler_wl_CXX=
13406 lt_prog_compiler_pic_CXX=
13407 lt_prog_compiler_static_CXX=
13409 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13410 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13412 # C++ specific cases for pic, static, wl, etc.
13413 if test "$GXX" = yes; then
13414 lt_prog_compiler_wl_CXX='-Wl,'
13415 lt_prog_compiler_static_CXX='-static'
13417 case $host_os in
13418 aix*)
13419 # All AIX code is PIC.
13420 if test "$host_cpu" = ia64; then
13421 # AIX 5 now supports IA64 processor
13422 lt_prog_compiler_static_CXX='-Bstatic'
13426 amigaos*)
13427 case $host_cpu in
13428 powerpc)
13429 # see comment about AmigaOS4 .so support
13430 lt_prog_compiler_pic_CXX='-fPIC'
13432 m68k)
13433 # FIXME: we need at least 68020 code to build shared libraries, but
13434 # adding the `-m68020' flag to GCC prevents building anything better,
13435 # like `-m68040'.
13436 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13438 esac
13441 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13442 # PIC is the default for these OSes.
13444 mingw* | cygwin* | os2* | pw32* | cegcc*)
13445 # This hack is so that the source file can tell whether it is being
13446 # built for inclusion in a dll (and should export symbols for example).
13447 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13448 # (--disable-auto-import) libraries
13449 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13451 darwin* | rhapsody*)
13452 # PIC is the default on this platform
13453 # Common symbols not allowed in MH_DYLIB files
13454 lt_prog_compiler_pic_CXX='-fno-common'
13456 *djgpp*)
13457 # DJGPP does not support shared libraries at all
13458 lt_prog_compiler_pic_CXX=
13460 interix[3-9]*)
13461 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13462 # Instead, we relocate shared libraries at runtime.
13464 sysv4*MP*)
13465 if test -d /usr/nec; then
13466 lt_prog_compiler_pic_CXX=-Kconform_pic
13469 hpux*)
13470 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13471 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13472 # sets the default TLS model and affects inlining.
13473 case $host_cpu in
13474 hppa*64*)
13477 lt_prog_compiler_pic_CXX='-fPIC'
13479 esac
13481 *qnx* | *nto*)
13482 # QNX uses GNU C++, but need to define -shared option too, otherwise
13483 # it will coredump.
13484 lt_prog_compiler_pic_CXX='-fPIC -shared'
13487 lt_prog_compiler_pic_CXX='-fPIC'
13489 esac
13490 else
13491 case $host_os in
13492 aix[4-9]*)
13493 # All AIX code is PIC.
13494 if test "$host_cpu" = ia64; then
13495 # AIX 5 now supports IA64 processor
13496 lt_prog_compiler_static_CXX='-Bstatic'
13497 else
13498 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13501 chorus*)
13502 case $cc_basename in
13503 cxch68*)
13504 # Green Hills C++ Compiler
13505 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13507 esac
13509 dgux*)
13510 case $cc_basename in
13511 ec++*)
13512 lt_prog_compiler_pic_CXX='-KPIC'
13514 ghcx*)
13515 # Green Hills C++ Compiler
13516 lt_prog_compiler_pic_CXX='-pic'
13520 esac
13522 freebsd* | dragonfly*)
13523 # FreeBSD uses GNU C++
13525 hpux9* | hpux10* | hpux11*)
13526 case $cc_basename in
13527 CC*)
13528 lt_prog_compiler_wl_CXX='-Wl,'
13529 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13530 if test "$host_cpu" != ia64; then
13531 lt_prog_compiler_pic_CXX='+Z'
13534 aCC*)
13535 lt_prog_compiler_wl_CXX='-Wl,'
13536 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13537 case $host_cpu in
13538 hppa*64*|ia64*)
13539 # +Z the default
13542 lt_prog_compiler_pic_CXX='+Z'
13544 esac
13548 esac
13550 interix*)
13551 # This is c89, which is MS Visual C++ (no shared libs)
13552 # Anyone wants to do a port?
13554 irix5* | irix6* | nonstopux*)
13555 case $cc_basename in
13556 CC*)
13557 lt_prog_compiler_wl_CXX='-Wl,'
13558 lt_prog_compiler_static_CXX='-non_shared'
13559 # CC pic flag -KPIC is the default.
13563 esac
13565 linux* | k*bsd*-gnu)
13566 case $cc_basename in
13567 KCC*)
13568 # KAI C++ Compiler
13569 lt_prog_compiler_wl_CXX='--backend -Wl,'
13570 lt_prog_compiler_pic_CXX='-fPIC'
13572 ecpc* )
13573 # old Intel C++ for x86_64 which still supported -KPIC.
13574 lt_prog_compiler_wl_CXX='-Wl,'
13575 lt_prog_compiler_pic_CXX='-KPIC'
13576 lt_prog_compiler_static_CXX='-static'
13578 icpc* )
13579 # Intel C++, used to be incompatible with GCC.
13580 # ICC 10 doesn't accept -KPIC any more.
13581 lt_prog_compiler_wl_CXX='-Wl,'
13582 lt_prog_compiler_pic_CXX='-fPIC'
13583 lt_prog_compiler_static_CXX='-static'
13585 pgCC* | pgcpp*)
13586 # Portland Group C++ compiler
13587 lt_prog_compiler_wl_CXX='-Wl,'
13588 lt_prog_compiler_pic_CXX='-fpic'
13589 lt_prog_compiler_static_CXX='-Bstatic'
13591 cxx*)
13592 # Compaq C++
13593 # Make sure the PIC flag is empty. It appears that all Alpha
13594 # Linux and Compaq Tru64 Unix objects are PIC.
13595 lt_prog_compiler_pic_CXX=
13596 lt_prog_compiler_static_CXX='-non_shared'
13598 xlc* | xlC*)
13599 # IBM XL 8.0 on PPC
13600 lt_prog_compiler_wl_CXX='-Wl,'
13601 lt_prog_compiler_pic_CXX='-qpic'
13602 lt_prog_compiler_static_CXX='-qstaticlink'
13605 case `$CC -V 2>&1 | sed 5q` in
13606 *Sun\ C*)
13607 # Sun C++ 5.9
13608 lt_prog_compiler_pic_CXX='-KPIC'
13609 lt_prog_compiler_static_CXX='-Bstatic'
13610 lt_prog_compiler_wl_CXX='-Qoption ld '
13612 esac
13614 esac
13616 lynxos*)
13618 m88k*)
13620 mvs*)
13621 case $cc_basename in
13622 cxx*)
13623 lt_prog_compiler_pic_CXX='-W c,exportall'
13627 esac
13629 netbsd*)
13631 *qnx* | *nto*)
13632 # QNX uses GNU C++, but need to define -shared option too, otherwise
13633 # it will coredump.
13634 lt_prog_compiler_pic_CXX='-fPIC -shared'
13636 osf3* | osf4* | osf5*)
13637 case $cc_basename in
13638 KCC*)
13639 lt_prog_compiler_wl_CXX='--backend -Wl,'
13641 RCC*)
13642 # Rational C++ 2.4.1
13643 lt_prog_compiler_pic_CXX='-pic'
13645 cxx*)
13646 # Digital/Compaq C++
13647 lt_prog_compiler_wl_CXX='-Wl,'
13648 # Make sure the PIC flag is empty. It appears that all Alpha
13649 # Linux and Compaq Tru64 Unix objects are PIC.
13650 lt_prog_compiler_pic_CXX=
13651 lt_prog_compiler_static_CXX='-non_shared'
13655 esac
13657 psos*)
13659 solaris*)
13660 case $cc_basename in
13661 CC*)
13662 # Sun C++ 4.2, 5.x and Centerline C++
13663 lt_prog_compiler_pic_CXX='-KPIC'
13664 lt_prog_compiler_static_CXX='-Bstatic'
13665 lt_prog_compiler_wl_CXX='-Qoption ld '
13667 gcx*)
13668 # Green Hills C++ Compiler
13669 lt_prog_compiler_pic_CXX='-PIC'
13673 esac
13675 sunos4*)
13676 case $cc_basename in
13677 CC*)
13678 # Sun C++ 4.x
13679 lt_prog_compiler_pic_CXX='-pic'
13680 lt_prog_compiler_static_CXX='-Bstatic'
13682 lcc*)
13683 # Lucid
13684 lt_prog_compiler_pic_CXX='-pic'
13688 esac
13690 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13691 case $cc_basename in
13692 CC*)
13693 lt_prog_compiler_wl_CXX='-Wl,'
13694 lt_prog_compiler_pic_CXX='-KPIC'
13695 lt_prog_compiler_static_CXX='-Bstatic'
13697 esac
13699 tandem*)
13700 case $cc_basename in
13701 NCC*)
13702 # NonStop-UX NCC 3.20
13703 lt_prog_compiler_pic_CXX='-KPIC'
13707 esac
13709 vxworks*)
13712 lt_prog_compiler_can_build_shared_CXX=no
13714 esac
13717 case $host_os in
13718 # For platforms which do not support PIC, -DPIC is meaningless:
13719 *djgpp*)
13720 lt_prog_compiler_pic_CXX=
13723 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13725 esac
13726 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13727 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13732 # Check to make sure the PIC flag actually works.
13734 if test -n "$lt_prog_compiler_pic_CXX"; then
13735 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13736 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13737 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13739 else
13740 lt_cv_prog_compiler_pic_works_CXX=no
13741 ac_outfile=conftest.$ac_objext
13742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13743 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13744 # Insert the option either (1) after the last *FLAGS variable, or
13745 # (2) before a word containing "conftest.", or (3) at the end.
13746 # Note that $ac_compile itself does not contain backslashes and begins
13747 # with a dollar sign (not a hyphen), so the echo should work correctly.
13748 # The option is referenced via a variable to avoid confusing sed.
13749 lt_compile=`echo "$ac_compile" | $SED \
13750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13752 -e 's:$: $lt_compiler_flag:'`
13753 (eval echo "\"\$as_me:13753: $lt_compile\"" >&5)
13754 (eval "$lt_compile" 2>conftest.err)
13755 ac_status=$?
13756 cat conftest.err >&5
13757 echo "$as_me:13757: \$? = $ac_status" >&5
13758 if (exit $ac_status) && test -s "$ac_outfile"; then
13759 # The compiler can only warn and ignore the option if not recognized
13760 # So say no if there are warnings other than the usual output.
13761 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13763 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13764 lt_cv_prog_compiler_pic_works_CXX=yes
13767 $RM conftest*
13770 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13771 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
13773 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13774 case $lt_prog_compiler_pic_CXX in
13775 "" | " "*) ;;
13776 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13777 esac
13778 else
13779 lt_prog_compiler_pic_CXX=
13780 lt_prog_compiler_can_build_shared_CXX=no
13788 # Check to make sure the static flag actually works.
13790 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13791 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13792 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13793 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13795 else
13796 lt_cv_prog_compiler_static_works_CXX=no
13797 save_LDFLAGS="$LDFLAGS"
13798 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13799 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13800 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13801 # The linker can only warn and ignore the option if not recognized
13802 # So say no if there are warnings
13803 if test -s conftest.err; then
13804 # Append any errors to the config.log.
13805 cat conftest.err 1>&5
13806 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13808 if diff conftest.exp conftest.er2 >/dev/null; then
13809 lt_cv_prog_compiler_static_works_CXX=yes
13811 else
13812 lt_cv_prog_compiler_static_works_CXX=yes
13815 $RM -r conftest*
13816 LDFLAGS="$save_LDFLAGS"
13819 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13820 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
13822 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13824 else
13825 lt_prog_compiler_static_CXX=
13831 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13832 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13833 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13834 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 else
13836 lt_cv_prog_compiler_c_o_CXX=no
13837 $RM -r conftest 2>/dev/null
13838 mkdir conftest
13839 cd conftest
13840 mkdir out
13841 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13843 lt_compiler_flag="-o out/conftest2.$ac_objext"
13844 # Insert the option either (1) after the last *FLAGS variable, or
13845 # (2) before a word containing "conftest.", or (3) at the end.
13846 # Note that $ac_compile itself does not contain backslashes and begins
13847 # with a dollar sign (not a hyphen), so the echo should work correctly.
13848 lt_compile=`echo "$ac_compile" | $SED \
13849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13851 -e 's:$: $lt_compiler_flag:'`
13852 (eval echo "\"\$as_me:13852: $lt_compile\"" >&5)
13853 (eval "$lt_compile" 2>out/conftest.err)
13854 ac_status=$?
13855 cat out/conftest.err >&5
13856 echo "$as_me:13856: \$? = $ac_status" >&5
13857 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13858 then
13859 # The compiler can only warn and ignore the option if not recognized
13860 # So say no if there are warnings
13861 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13862 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13863 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13864 lt_cv_prog_compiler_c_o_CXX=yes
13867 chmod u+w . 2>&5
13868 $RM conftest*
13869 # SGI C++ compiler will create directory out/ii_files/ for
13870 # template instantiation
13871 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13872 $RM out/* && rmdir out
13873 cd ..
13874 $RM -r conftest
13875 $RM conftest*
13878 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13879 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13883 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13884 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13885 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 else
13888 lt_cv_prog_compiler_c_o_CXX=no
13889 $RM -r conftest 2>/dev/null
13890 mkdir conftest
13891 cd conftest
13892 mkdir out
13893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13895 lt_compiler_flag="-o out/conftest2.$ac_objext"
13896 # Insert the option either (1) after the last *FLAGS variable, or
13897 # (2) before a word containing "conftest.", or (3) at the end.
13898 # Note that $ac_compile itself does not contain backslashes and begins
13899 # with a dollar sign (not a hyphen), so the echo should work correctly.
13900 lt_compile=`echo "$ac_compile" | $SED \
13901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13903 -e 's:$: $lt_compiler_flag:'`
13904 (eval echo "\"\$as_me:13904: $lt_compile\"" >&5)
13905 (eval "$lt_compile" 2>out/conftest.err)
13906 ac_status=$?
13907 cat out/conftest.err >&5
13908 echo "$as_me:13908: \$? = $ac_status" >&5
13909 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13910 then
13911 # The compiler can only warn and ignore the option if not recognized
13912 # So say no if there are warnings
13913 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13914 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13915 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13916 lt_cv_prog_compiler_c_o_CXX=yes
13919 chmod u+w . 2>&5
13920 $RM conftest*
13921 # SGI C++ compiler will create directory out/ii_files/ for
13922 # template instantiation
13923 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13924 $RM out/* && rmdir out
13925 cd ..
13926 $RM -r conftest
13927 $RM conftest*
13930 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13931 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13936 hard_links="nottested"
13937 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13938 # do not overwrite the value of need_locks provided by the user
13939 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13940 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13941 hard_links=yes
13942 $RM conftest*
13943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13944 touch conftest.a
13945 ln conftest.a conftest.b 2>&5 || hard_links=no
13946 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13947 echo "$as_me:$LINENO: result: $hard_links" >&5
13948 echo "${ECHO_T}$hard_links" >&6
13949 if test "$hard_links" = no; then
13950 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13951 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13952 need_locks=warn
13954 else
13955 need_locks=no
13960 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13961 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13963 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13964 case $host_os in
13965 aix[4-9]*)
13966 # If we're using GNU nm, then we don't want the "-C" option.
13967 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13968 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13969 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13970 else
13971 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13974 pw32*)
13975 export_symbols_cmds_CXX="$ltdll_cmds"
13977 cygwin* | mingw* | cegcc*)
13978 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13981 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13983 esac
13984 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13986 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13987 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13988 test "$ld_shlibs_CXX" = no && can_build_shared=no
13990 with_gnu_ld_CXX=$with_gnu_ld
13998 # Do we need to explicitly link libc?
14000 case "x$archive_cmds_need_lc_CXX" in
14001 x|xyes)
14002 # Assume -lc should be added
14003 archive_cmds_need_lc_CXX=yes
14005 if test "$enable_shared" = yes && test "$GCC" = yes; then
14006 case $archive_cmds_CXX in
14007 *'~'*)
14008 # FIXME: we may have to deal with multi-command sequences.
14010 '$CC '*)
14011 # Test whether the compiler implicitly links with -lc since on some
14012 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14013 # to ld, don't add -lc before -lgcc.
14014 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14015 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14016 $RM conftest*
14017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14020 (eval $ac_compile) 2>&5
14021 ac_status=$?
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } 2>conftest.err; then
14024 soname=conftest
14025 lib=conftest
14026 libobjs=conftest.$ac_objext
14027 deplibs=
14028 wl=$lt_prog_compiler_wl_CXX
14029 pic_flag=$lt_prog_compiler_pic_CXX
14030 compiler_flags=-v
14031 linker_flags=-v
14032 verstring=
14033 output_objdir=.
14034 libname=conftest
14035 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14036 allow_undefined_flag_CXX=
14037 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14038 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }
14042 then
14043 archive_cmds_need_lc_CXX=no
14044 else
14045 archive_cmds_need_lc_CXX=yes
14047 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14048 else
14049 cat conftest.err 1>&5
14051 $RM conftest*
14052 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14053 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14055 esac
14058 esac
14123 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14124 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14126 library_names_spec=
14127 libname_spec='lib$name'
14128 soname_spec=
14129 shrext_cmds=".so"
14130 postinstall_cmds=
14131 postuninstall_cmds=
14132 finish_cmds=
14133 finish_eval=
14134 shlibpath_var=
14135 shlibpath_overrides_runpath=unknown
14136 version_type=none
14137 dynamic_linker="$host_os ld.so"
14138 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14139 need_lib_prefix=unknown
14140 hardcode_into_libs=no
14142 # when you set need_version to no, make sure it does not cause -set_version
14143 # flags to be left without arguments
14144 need_version=unknown
14146 case $host_os in
14147 aix3*)
14148 version_type=linux
14149 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14150 shlibpath_var=LIBPATH
14152 # AIX 3 has no versioning support, so we append a major version to the name.
14153 soname_spec='${libname}${release}${shared_ext}$major'
14156 aix[4-9]*)
14157 version_type=linux
14158 need_lib_prefix=no
14159 need_version=no
14160 hardcode_into_libs=yes
14161 if test "$host_cpu" = ia64; then
14162 # AIX 5 supports IA64
14163 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14164 shlibpath_var=LD_LIBRARY_PATH
14165 else
14166 # With GCC up to 2.95.x, collect2 would create an import file
14167 # for dependence libraries. The import file would start with
14168 # the line `#! .'. This would cause the generated library to
14169 # depend on `.', always an invalid library. This was fixed in
14170 # development snapshots of GCC prior to 3.0.
14171 case $host_os in
14172 aix4 | aix4.[01] | aix4.[01].*)
14173 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14174 echo ' yes '
14175 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14177 else
14178 can_build_shared=no
14181 esac
14182 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14183 # soname into executable. Probably we can add versioning support to
14184 # collect2, so additional links can be useful in future.
14185 if test "$aix_use_runtimelinking" = yes; then
14186 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14187 # instead of lib<name>.a to let people know that these are not
14188 # typical AIX shared libraries.
14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14190 else
14191 # We preserve .a as extension for shared libraries through AIX4.2
14192 # and later when we are not doing run time linking.
14193 library_names_spec='${libname}${release}.a $libname.a'
14194 soname_spec='${libname}${release}${shared_ext}$major'
14196 shlibpath_var=LIBPATH
14200 amigaos*)
14201 case $host_cpu in
14202 powerpc)
14203 # Since July 2007 AmigaOS4 officially supports .so libraries.
14204 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14207 m68k)
14208 library_names_spec='$libname.ixlibrary $libname.a'
14209 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14210 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'
14212 esac
14215 beos*)
14216 library_names_spec='${libname}${shared_ext}'
14217 dynamic_linker="$host_os ld.so"
14218 shlibpath_var=LIBRARY_PATH
14221 bsdi[45]*)
14222 version_type=linux
14223 need_version=no
14224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14225 soname_spec='${libname}${release}${shared_ext}$major'
14226 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14227 shlibpath_var=LD_LIBRARY_PATH
14228 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14229 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14230 # the default ld.so.conf also contains /usr/contrib/lib and
14231 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14232 # libtool to hard-code these into programs
14235 cygwin* | mingw* | pw32* | cegcc*)
14236 version_type=windows
14237 shrext_cmds=".dll"
14238 need_version=no
14239 need_lib_prefix=no
14241 case $GCC,$host_os in
14242 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14243 library_names_spec='$libname.dll.a'
14244 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14245 postinstall_cmds='base_file=`basename \${file}`~
14246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14247 dldir=$destdir/`dirname \$dlpath`~
14248 test -d \$dldir || mkdir -p \$dldir~
14249 $install_prog $dir/$dlname \$dldir/$dlname~
14250 chmod a+x \$dldir/$dlname~
14251 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14252 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14254 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14255 dlpath=$dir/\$dldll~
14256 $RM \$dlpath'
14257 shlibpath_overrides_runpath=yes
14259 case $host_os in
14260 cygwin*)
14261 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14262 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14263 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14265 mingw* | cegcc*)
14266 # MinGW DLLs use traditional 'lib' prefix
14267 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14268 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14269 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14270 # It is most probably a Windows format PATH printed by
14271 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14272 # path with ; separators, and with drive letters. We can handle the
14273 # drive letters (cygwin fileutils understands them), so leave them,
14274 # especially as we might pass files found there to a mingw objdump,
14275 # which wouldn't understand a cygwinified path. Ahh.
14276 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14277 else
14278 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14281 pw32*)
14282 # pw32 DLLs use 'pw' prefix rather than 'lib'
14283 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14285 esac
14289 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14291 esac
14292 dynamic_linker='Win32 ld.exe'
14293 # FIXME: first we should search . and the directory the executable is in
14294 shlibpath_var=PATH
14297 darwin* | rhapsody*)
14298 dynamic_linker="$host_os dyld"
14299 version_type=darwin
14300 need_lib_prefix=no
14301 need_version=no
14302 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14303 soname_spec='${libname}${release}${major}$shared_ext'
14304 shlibpath_overrides_runpath=yes
14305 shlibpath_var=DYLD_LIBRARY_PATH
14306 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14308 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14311 dgux*)
14312 version_type=linux
14313 need_lib_prefix=no
14314 need_version=no
14315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14316 soname_spec='${libname}${release}${shared_ext}$major'
14317 shlibpath_var=LD_LIBRARY_PATH
14320 freebsd1*)
14321 dynamic_linker=no
14324 freebsd* | dragonfly*)
14325 # DragonFly does not have aout. When/if they implement a new
14326 # versioning mechanism, adjust this.
14327 if test -x /usr/bin/objformat; then
14328 objformat=`/usr/bin/objformat`
14329 else
14330 case $host_os in
14331 freebsd[123]*) objformat=aout ;;
14332 *) objformat=elf ;;
14333 esac
14335 version_type=freebsd-$objformat
14336 case $version_type in
14337 freebsd-elf*)
14338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14339 need_version=no
14340 need_lib_prefix=no
14342 freebsd-*)
14343 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14344 need_version=yes
14346 esac
14347 shlibpath_var=LD_LIBRARY_PATH
14348 case $host_os in
14349 freebsd2*)
14350 shlibpath_overrides_runpath=yes
14352 freebsd3.[01]* | freebsdelf3.[01]*)
14353 shlibpath_overrides_runpath=yes
14354 hardcode_into_libs=yes
14356 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14357 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14358 shlibpath_overrides_runpath=no
14359 hardcode_into_libs=yes
14361 *) # from 4.6 on, and DragonFly
14362 shlibpath_overrides_runpath=yes
14363 hardcode_into_libs=yes
14365 esac
14368 gnu*)
14369 version_type=linux
14370 need_lib_prefix=no
14371 need_version=no
14372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14373 soname_spec='${libname}${release}${shared_ext}$major'
14374 shlibpath_var=LD_LIBRARY_PATH
14375 hardcode_into_libs=yes
14378 hpux9* | hpux10* | hpux11*)
14379 # Give a soname corresponding to the major version so that dld.sl refuses to
14380 # link against other versions.
14381 version_type=sunos
14382 need_lib_prefix=no
14383 need_version=no
14384 case $host_cpu in
14385 ia64*)
14386 shrext_cmds='.so'
14387 hardcode_into_libs=yes
14388 dynamic_linker="$host_os dld.so"
14389 shlibpath_var=LD_LIBRARY_PATH
14390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14392 soname_spec='${libname}${release}${shared_ext}$major'
14393 if test "X$HPUX_IA64_MODE" = X32; then
14394 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14395 else
14396 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14400 hppa*64*)
14401 shrext_cmds='.sl'
14402 hardcode_into_libs=yes
14403 dynamic_linker="$host_os dld.sl"
14404 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14405 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14407 soname_spec='${libname}${release}${shared_ext}$major'
14408 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14409 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14412 shrext_cmds='.sl'
14413 dynamic_linker="$host_os dld.sl"
14414 shlibpath_var=SHLIB_PATH
14415 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14417 soname_spec='${libname}${release}${shared_ext}$major'
14419 esac
14420 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14421 postinstall_cmds='chmod 555 $lib'
14424 interix[3-9]*)
14425 version_type=linux
14426 need_lib_prefix=no
14427 need_version=no
14428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14429 soname_spec='${libname}${release}${shared_ext}$major'
14430 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14431 shlibpath_var=LD_LIBRARY_PATH
14432 shlibpath_overrides_runpath=no
14433 hardcode_into_libs=yes
14436 irix5* | irix6* | nonstopux*)
14437 case $host_os in
14438 nonstopux*) version_type=nonstopux ;;
14440 if test "$lt_cv_prog_gnu_ld" = yes; then
14441 version_type=linux
14442 else
14443 version_type=irix
14444 fi ;;
14445 esac
14446 need_lib_prefix=no
14447 need_version=no
14448 soname_spec='${libname}${release}${shared_ext}$major'
14449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14450 case $host_os in
14451 irix5* | nonstopux*)
14452 libsuff= shlibsuff=
14455 case $LD in # libtool.m4 will add one of these switches to LD
14456 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14457 libsuff= shlibsuff= libmagic=32-bit;;
14458 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14459 libsuff=32 shlibsuff=N32 libmagic=N32;;
14460 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14461 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14462 *) libsuff= shlibsuff= libmagic=never-match;;
14463 esac
14465 esac
14466 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14467 shlibpath_overrides_runpath=no
14468 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14469 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14470 hardcode_into_libs=yes
14473 # No shared lib support for Linux oldld, aout, or coff.
14474 linux*oldld* | linux*aout* | linux*coff*)
14475 dynamic_linker=no
14478 # This must be Linux ELF.
14479 linux* | k*bsd*-gnu)
14480 version_type=linux
14481 need_lib_prefix=no
14482 need_version=no
14483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14484 soname_spec='${libname}${release}${shared_ext}$major'
14485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14486 shlibpath_var=LD_LIBRARY_PATH
14487 shlibpath_overrides_runpath=no
14488 # Some binutils ld are patched to set DT_RUNPATH
14489 save_LDFLAGS=$LDFLAGS
14490 save_libdir=$libdir
14491 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14492 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14493 if test x$gcc_no_link = xyes; then
14494 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14495 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14496 { (exit 1); exit 1; }; }
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h. */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14506 main ()
14510 return 0;
14512 _ACEOF
14513 rm -f conftest.$ac_objext conftest$ac_exeext
14514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14515 (eval $ac_link) 2>conftest.er1
14516 ac_status=$?
14517 grep -v '^ *+' conftest.er1 >conftest.err
14518 rm -f conftest.er1
14519 cat conftest.err >&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } &&
14522 { ac_try='test -z "$ac_cxx_werror_flag"
14523 || test ! -s conftest.err'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14526 ac_status=$?
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; } &&
14529 { ac_try='test -s conftest$ac_exeext'
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14532 ac_status=$?
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; }; then
14535 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14536 shlibpath_overrides_runpath=yes
14539 else
14540 echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14544 rm -f conftest.err conftest.$ac_objext \
14545 conftest$ac_exeext conftest.$ac_ext
14546 LDFLAGS=$save_LDFLAGS
14547 libdir=$save_libdir
14549 # This implies no fast_install, which is unacceptable.
14550 # Some rework will be needed to allow for fast_install
14551 # before this can be enabled.
14552 hardcode_into_libs=yes
14554 # Append ld.so.conf contents to the search path
14555 if test -f /etc/ld.so.conf; then
14556 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14557 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14560 # We used to test for /lib/ld.so.1 and disable shared libraries on
14561 # powerpc, because MkLinux only supported shared libraries with the
14562 # GNU dynamic linker. Since this was broken with cross compilers,
14563 # most powerpc-linux boxes support dynamic linking these days and
14564 # people can always --disable-shared, the test was removed, and we
14565 # assume the GNU/Linux dynamic linker is in use.
14566 dynamic_linker='GNU/Linux ld.so'
14569 netbsd*)
14570 version_type=sunos
14571 need_lib_prefix=no
14572 need_version=no
14573 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14576 dynamic_linker='NetBSD (a.out) ld.so'
14577 else
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14580 dynamic_linker='NetBSD ld.elf_so'
14582 shlibpath_var=LD_LIBRARY_PATH
14583 shlibpath_overrides_runpath=yes
14584 hardcode_into_libs=yes
14587 newsos6)
14588 version_type=linux
14589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14590 shlibpath_var=LD_LIBRARY_PATH
14591 shlibpath_overrides_runpath=yes
14594 *nto* | *qnx*)
14595 version_type=qnx
14596 need_lib_prefix=no
14597 need_version=no
14598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14599 soname_spec='${libname}${release}${shared_ext}$major'
14600 shlibpath_var=LD_LIBRARY_PATH
14601 shlibpath_overrides_runpath=no
14602 hardcode_into_libs=yes
14603 dynamic_linker='ldqnx.so'
14606 openbsd*)
14607 version_type=sunos
14608 sys_lib_dlsearch_path_spec="/usr/lib"
14609 need_lib_prefix=no
14610 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14611 case $host_os in
14612 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14613 *) need_version=no ;;
14614 esac
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14617 shlibpath_var=LD_LIBRARY_PATH
14618 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14619 case $host_os in
14620 openbsd2.[89] | openbsd2.[89].*)
14621 shlibpath_overrides_runpath=no
14624 shlibpath_overrides_runpath=yes
14626 esac
14627 else
14628 shlibpath_overrides_runpath=yes
14632 os2*)
14633 libname_spec='$name'
14634 shrext_cmds=".dll"
14635 need_lib_prefix=no
14636 library_names_spec='$libname${shared_ext} $libname.a'
14637 dynamic_linker='OS/2 ld.exe'
14638 shlibpath_var=LIBPATH
14641 osf3* | osf4* | osf5*)
14642 version_type=osf
14643 need_lib_prefix=no
14644 need_version=no
14645 soname_spec='${libname}${release}${shared_ext}$major'
14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14647 shlibpath_var=LD_LIBRARY_PATH
14648 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14649 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14652 rdos*)
14653 dynamic_linker=no
14656 solaris*)
14657 version_type=linux
14658 need_lib_prefix=no
14659 need_version=no
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661 soname_spec='${libname}${release}${shared_ext}$major'
14662 shlibpath_var=LD_LIBRARY_PATH
14663 shlibpath_overrides_runpath=yes
14664 hardcode_into_libs=yes
14665 # ldd complains unless libraries are executable
14666 postinstall_cmds='chmod +x $lib'
14669 sunos4*)
14670 version_type=sunos
14671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14672 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14673 shlibpath_var=LD_LIBRARY_PATH
14674 shlibpath_overrides_runpath=yes
14675 if test "$with_gnu_ld" = yes; then
14676 need_lib_prefix=no
14678 need_version=yes
14681 sysv4 | sysv4.3*)
14682 version_type=linux
14683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14684 soname_spec='${libname}${release}${shared_ext}$major'
14685 shlibpath_var=LD_LIBRARY_PATH
14686 case $host_vendor in
14687 sni)
14688 shlibpath_overrides_runpath=no
14689 need_lib_prefix=no
14690 runpath_var=LD_RUN_PATH
14692 siemens)
14693 need_lib_prefix=no
14695 motorola)
14696 need_lib_prefix=no
14697 need_version=no
14698 shlibpath_overrides_runpath=no
14699 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14701 esac
14704 sysv4*MP*)
14705 if test -d /usr/nec ;then
14706 version_type=linux
14707 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14708 soname_spec='$libname${shared_ext}.$major'
14709 shlibpath_var=LD_LIBRARY_PATH
14713 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14714 version_type=freebsd-elf
14715 need_lib_prefix=no
14716 need_version=no
14717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14718 soname_spec='${libname}${release}${shared_ext}$major'
14719 shlibpath_var=LD_LIBRARY_PATH
14720 shlibpath_overrides_runpath=yes
14721 hardcode_into_libs=yes
14722 if test "$with_gnu_ld" = yes; then
14723 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14724 else
14725 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14726 case $host_os in
14727 sco3.2v5*)
14728 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14730 esac
14732 sys_lib_dlsearch_path_spec='/usr/lib'
14735 tpf*)
14736 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14737 version_type=linux
14738 need_lib_prefix=no
14739 need_version=no
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741 shlibpath_var=LD_LIBRARY_PATH
14742 shlibpath_overrides_runpath=no
14743 hardcode_into_libs=yes
14746 uts4*)
14747 version_type=linux
14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749 soname_spec='${libname}${release}${shared_ext}$major'
14750 shlibpath_var=LD_LIBRARY_PATH
14754 dynamic_linker=no
14756 esac
14757 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14758 echo "${ECHO_T}$dynamic_linker" >&6
14759 test "$dynamic_linker" = no && can_build_shared=no
14761 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14762 if test "$GCC" = yes; then
14763 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14766 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14767 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14769 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14770 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14808 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14809 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14810 hardcode_action_CXX=
14811 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14812 test -n "$runpath_var_CXX" ||
14813 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14815 # We can hardcode non-existent directories.
14816 if test "$hardcode_direct_CXX" != no &&
14817 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14818 # have to relink, otherwise we might link with an installed library
14819 # when we should be linking with a yet-to-be-installed one
14820 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14821 test "$hardcode_minus_L_CXX" != no; then
14822 # Linking always hardcodes the temporary library directory.
14823 hardcode_action_CXX=relink
14824 else
14825 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14826 hardcode_action_CXX=immediate
14828 else
14829 # We cannot hardcode anything, or else we can only hardcode existing
14830 # directories.
14831 hardcode_action_CXX=unsupported
14833 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14834 echo "${ECHO_T}$hardcode_action_CXX" >&6
14836 if test "$hardcode_action_CXX" = relink ||
14837 test "$inherit_rpath_CXX" = yes; then
14838 # Fast installation is not supported
14839 enable_fast_install=no
14840 elif test "$shlibpath_overrides_runpath" = yes ||
14841 test "$enable_shared" = no; then
14842 # Fast installation is not necessary
14843 enable_fast_install=needless
14852 fi # test -n "$compiler"
14854 CC=$lt_save_CC
14855 LDCXX=$LD
14856 LD=$lt_save_LD
14857 GCC=$lt_save_GCC
14858 with_gnu_ld=$lt_save_with_gnu_ld
14859 lt_cv_path_LDCXX=$lt_cv_path_LD
14860 lt_cv_path_LD=$lt_save_path_LD
14861 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14862 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14863 fi # test "$_lt_caught_CXX_error" != yes
14865 ac_ext=c
14866 ac_cpp='$CPP $CPPFLAGS'
14867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14883 ac_config_commands="$ac_config_commands libtool"
14888 # Only expand once:
14893 # Check whether --with-target-subdir or --without-target-subdir was given.
14894 if test "${with_target_subdir+set}" = set; then
14895 withval="$with_target_subdir"
14899 # Check whether --with-cross-host or --without-cross-host was given.
14900 if test "${with_cross_host+set}" = set; then
14901 withval="$with_cross_host"
14905 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
14906 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
14907 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
14908 if test -z "$THREADS"; then
14909 THREADS=no
14911 echo "$as_me:$LINENO: result: $THREADS" >&5
14912 echo "${ECHO_T}$THREADS" >&6
14914 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
14915 if test "${enable_parallel_mark+set}" = set; then
14916 enableval="$enable_parallel_mark"
14917 case "$THREADS" in
14918 no | none | single)
14919 { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
14920 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
14921 { (exit 1); exit 1; }; }
14923 esac
14927 AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
14928 THREADLIBS=
14929 case "$THREADS" in
14930 no | none | single)
14931 THREADS=none
14933 posix | posix95 | pthreads)
14934 THREADS=posix
14935 THREADLIBS=-lpthread
14936 case "$host" in
14937 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
14939 cat >>confdefs.h <<\_ACEOF
14940 #define GC_LINUX_THREADS 1
14941 _ACEOF
14944 cat >>confdefs.h <<\_ACEOF
14945 #define _REENTRANT 1
14946 _ACEOF
14948 if test "${enable_parallel_mark}" = yes; then
14950 cat >>confdefs.h <<\_ACEOF
14951 #define PARALLEL_MARK 1
14952 _ACEOF
14956 cat >>confdefs.h <<\_ACEOF
14957 #define THREAD_LOCAL_ALLOC 1
14958 _ACEOF
14961 *-*-linux*)
14962 cat >>confdefs.h <<\_ACEOF
14963 #define GC_LINUX_THREADS 1
14964 _ACEOF
14966 cat >>confdefs.h <<\_ACEOF
14967 #define _REENTRANT 1
14968 _ACEOF
14971 *-*-aix*)
14973 cat >>confdefs.h <<\_ACEOF
14974 #define GC_AIX_THREADS 1
14975 _ACEOF
14977 cat >>confdefs.h <<\_ACEOF
14978 #define _REENTRANT 1
14979 _ACEOF
14982 *-*-hpux11*)
14983 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14984 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
14986 cat >>confdefs.h <<\_ACEOF
14987 #define GC_HPUX_THREADS 1
14988 _ACEOF
14991 cat >>confdefs.h <<\_ACEOF
14992 #define _POSIX_C_SOURCE 199506L
14993 _ACEOF
14995 if test "${enable_parallel_mark}" = yes; then
14996 cat >>confdefs.h <<\_ACEOF
14997 #define PARALLEL_MARK 1
14998 _ACEOF
15001 cat >>confdefs.h <<\_ACEOF
15002 #define THREAD_LOCAL_ALLOC 1
15003 _ACEOF
15005 THREADLIBS="-lpthread -lrt"
15006 # HPUX needs REENTRANT for the _r calls.
15008 cat >>confdefs.h <<\_ACEOF
15009 #define _REENTRANT 1
15010 _ACEOF
15013 *-*-hpux10*)
15014 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
15015 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
15017 *-*-kfreebsd*-gnu)
15018 cat >>confdefs.h <<\_ACEOF
15019 #define GC_FREEBSD_THREADS 1
15020 _ACEOF
15022 INCLUDES="$INCLUDES -pthread"
15023 THREADDLLIBS=-pthread
15024 cat >>confdefs.h <<\_ACEOF
15025 #define _REENTRANT 1
15026 _ACEOF
15028 if test "${enable_parallel_mark}" = yes; then
15029 cat >>confdefs.h <<\_ACEOF
15030 #define PARALLEL_MARK 1
15031 _ACEOF
15034 cat >>confdefs.h <<\_ACEOF
15035 #define THREAD_LOCAL_ALLOC 1
15036 _ACEOF
15039 cat >>confdefs.h <<\_ACEOF
15040 #define USE_COMPILER_TLS 1
15041 _ACEOF
15044 *-*-freebsd*)
15045 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
15046 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
15048 cat >>confdefs.h <<\_ACEOF
15049 #define GC_FREEBSD_THREADS 1
15050 _ACEOF
15052 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
15053 THREADLIBS=-pthread
15055 *-*-solaris*)
15057 cat >>confdefs.h <<\_ACEOF
15058 #define GC_SOLARIS_PTHREADS 1
15059 _ACEOF
15061 # Need to use alternate thread library, otherwise gctest hangs
15062 # on Solaris 8.
15063 multi_os_directory=`$CC -print-multi-os-directory`
15064 THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
15065 -R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
15067 *-*-irix*)
15069 cat >>confdefs.h <<\_ACEOF
15070 #define GC_IRIX_THREADS 1
15071 _ACEOF
15074 *-*-cygwin*)
15076 cat >>confdefs.h <<\_ACEOF
15077 #define GC_WIN32_THREADS 1
15078 _ACEOF
15081 *-*-darwin*)
15083 cat >>confdefs.h <<\_ACEOF
15084 #define GC_DARWIN_THREADS 1
15085 _ACEOF
15087 cat >>confdefs.h <<\_ACEOF
15088 #define THREAD_LOCAL_ALLOC 1
15089 _ACEOF
15091 if test "${enable_parallel_mark}" = yes; then
15092 cat >>confdefs.h <<\_ACEOF
15093 #define PARALLEL_MARK 1
15094 _ACEOF
15098 *-*-osf*)
15100 cat >>confdefs.h <<\_ACEOF
15101 #define GC_OSF1_THREADS 1
15102 _ACEOF
15104 if test "${enable_parallel_mark}" = yes; then
15105 cat >>confdefs.h <<\_ACEOF
15106 #define PARALLEL_MARK 1
15107 _ACEOF
15109 cat >>confdefs.h <<\_ACEOF
15110 #define THREAD_LOCAL_ALLOC 1
15111 _ACEOF
15113 # May want to enable it in other cases, too.
15114 # Measurements havent yet been done.
15116 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
15117 THREADLIBS="-lpthread -lrt"
15119 esac
15121 win32)
15122 cat >>confdefs.h <<\_ACEOF
15123 #define GC_WIN32_THREADS 1
15124 _ACEOF
15127 dgux386)
15128 THREADS=dgux386
15129 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
15130 echo "${ECHO_T}$THREADLIBS" >&6
15131 # Use pthread GCC switch
15132 THREADLIBS=-pthread
15133 if test "${enable_parallel_mark}" = yes; then
15134 cat >>confdefs.h <<\_ACEOF
15135 #define PARALLEL_MARK 1
15136 _ACEOF
15139 cat >>confdefs.h <<\_ACEOF
15140 #define THREAD_LOCAL_ALLOC 1
15141 _ACEOF
15144 cat >>confdefs.h <<\_ACEOF
15145 #define GC_DGUX386_THREADS 1
15146 _ACEOF
15149 cat >>confdefs.h <<\_ACEOF
15150 #define DGUX_THREADS 1
15151 _ACEOF
15153 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
15154 AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
15156 aix)
15157 THREADS=posix
15158 THREADLIBS=-lpthread
15159 cat >>confdefs.h <<\_ACEOF
15160 #define GC_AIX_THREADS 1
15161 _ACEOF
15163 cat >>confdefs.h <<\_ACEOF
15164 #define _REENTRANT 1
15165 _ACEOF
15168 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
15169 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
15170 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
15171 { (exit 1); exit 1; }; }
15174 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
15175 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
15176 { (exit 1); exit 1; }; }
15178 esac
15181 case "$host" in
15182 powerpc-*-darwin*)
15183 powerpc_darwin=true
15185 esac
15188 if test x$powerpc_darwin = xtrue; then
15189 POWERPC_DARWIN_TRUE=
15190 POWERPC_DARWIN_FALSE='#'
15191 else
15192 POWERPC_DARWIN_TRUE='#'
15193 POWERPC_DARWIN_FALSE=
15197 # Darwin needs a few extra special tests to deal with variation in the
15198 # system headers.
15199 case "$host" in
15200 powerpc*-*-darwin*)
15201 echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
15202 echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6
15203 if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15205 else
15206 cat >conftest.$ac_ext <<_ACEOF
15207 /* confdefs.h. */
15208 _ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15212 #include <mach/thread_status.h>
15215 main ()
15217 static ppc_thread_state_t ac_aggr;
15218 if (ac_aggr.r0)
15219 return 0;
15221 return 0;
15223 _ACEOF
15224 rm -f conftest.$ac_objext
15225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15226 (eval $ac_compile) 2>conftest.er1
15227 ac_status=$?
15228 grep -v '^ *+' conftest.er1 >conftest.err
15229 rm -f conftest.er1
15230 cat conftest.err >&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } &&
15233 { ac_try='test -z "$ac_c_werror_flag"
15234 || test ! -s conftest.err'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; } &&
15240 { ac_try='test -s conftest.$ac_objext'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15246 ac_cv_member_ppc_thread_state_t_r0=yes
15247 else
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15251 cat >conftest.$ac_ext <<_ACEOF
15252 /* confdefs.h. */
15253 _ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h. */
15257 #include <mach/thread_status.h>
15260 main ()
15262 static ppc_thread_state_t ac_aggr;
15263 if (sizeof ac_aggr.r0)
15264 return 0;
15266 return 0;
15268 _ACEOF
15269 rm -f conftest.$ac_objext
15270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15271 (eval $ac_compile) 2>conftest.er1
15272 ac_status=$?
15273 grep -v '^ *+' conftest.er1 >conftest.err
15274 rm -f conftest.er1
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } &&
15278 { ac_try='test -z "$ac_c_werror_flag"
15279 || test ! -s conftest.err'
15280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281 (eval $ac_try) 2>&5
15282 ac_status=$?
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; } &&
15285 { ac_try='test -s conftest.$ac_objext'
15286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15287 (eval $ac_try) 2>&5
15288 ac_status=$?
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); }; }; then
15291 ac_cv_member_ppc_thread_state_t_r0=yes
15292 else
15293 echo "$as_me: failed program was:" >&5
15294 sed 's/^/| /' conftest.$ac_ext >&5
15296 ac_cv_member_ppc_thread_state_t_r0=no
15298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15302 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
15303 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6
15304 if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then
15306 cat >>confdefs.h <<\_ACEOF
15307 #define HAS_PPC_THREAD_STATE_R0 1
15308 _ACEOF
15312 echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
15313 echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6
15314 if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15316 else
15317 cat >conftest.$ac_ext <<_ACEOF
15318 /* confdefs.h. */
15319 _ACEOF
15320 cat confdefs.h >>conftest.$ac_ext
15321 cat >>conftest.$ac_ext <<_ACEOF
15322 /* end confdefs.h. */
15323 #include <mach/thread_status.h>
15326 main ()
15328 static ppc_thread_state_t ac_aggr;
15329 if (ac_aggr.__r0)
15330 return 0;
15332 return 0;
15334 _ACEOF
15335 rm -f conftest.$ac_objext
15336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15337 (eval $ac_compile) 2>conftest.er1
15338 ac_status=$?
15339 grep -v '^ *+' conftest.er1 >conftest.err
15340 rm -f conftest.er1
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } &&
15344 { ac_try='test -z "$ac_c_werror_flag"
15345 || test ! -s conftest.err'
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; } &&
15351 { ac_try='test -s conftest.$ac_objext'
15352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 ac_cv_member_ppc_thread_state_t___r0=yes
15358 else
15359 echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15362 cat >conftest.$ac_ext <<_ACEOF
15363 /* confdefs.h. */
15364 _ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15368 #include <mach/thread_status.h>
15371 main ()
15373 static ppc_thread_state_t ac_aggr;
15374 if (sizeof ac_aggr.__r0)
15375 return 0;
15377 return 0;
15379 _ACEOF
15380 rm -f conftest.$ac_objext
15381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15382 (eval $ac_compile) 2>conftest.er1
15383 ac_status=$?
15384 grep -v '^ *+' conftest.er1 >conftest.err
15385 rm -f conftest.er1
15386 cat conftest.err >&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } &&
15389 { ac_try='test -z "$ac_c_werror_flag"
15390 || test ! -s conftest.err'
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; } &&
15396 { ac_try='test -s conftest.$ac_objext'
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
15402 ac_cv_member_ppc_thread_state_t___r0=yes
15403 else
15404 echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15407 ac_cv_member_ppc_thread_state_t___r0=no
15409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15413 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
15414 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6
15415 if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then
15417 cat >>confdefs.h <<\_ACEOF
15418 #define HAS_PPC_THREAD_STATE___R0 1
15419 _ACEOF
15423 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
15424 echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6
15425 if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15427 else
15428 cat >conftest.$ac_ext <<_ACEOF
15429 /* confdefs.h. */
15430 _ACEOF
15431 cat confdefs.h >>conftest.$ac_ext
15432 cat >>conftest.$ac_ext <<_ACEOF
15433 /* end confdefs.h. */
15434 #include <mach/thread_status.h>
15437 main ()
15439 static ppc_thread_state64_t ac_aggr;
15440 if (ac_aggr.r0)
15441 return 0;
15443 return 0;
15445 _ACEOF
15446 rm -f conftest.$ac_objext
15447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15448 (eval $ac_compile) 2>conftest.er1
15449 ac_status=$?
15450 grep -v '^ *+' conftest.er1 >conftest.err
15451 rm -f conftest.er1
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } &&
15455 { ac_try='test -z "$ac_c_werror_flag"
15456 || test ! -s conftest.err'
15457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458 (eval $ac_try) 2>&5
15459 ac_status=$?
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; } &&
15462 { ac_try='test -s conftest.$ac_objext'
15463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464 (eval $ac_try) 2>&5
15465 ac_status=$?
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; }; then
15468 ac_cv_member_ppc_thread_state64_t_r0=yes
15469 else
15470 echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15473 cat >conftest.$ac_ext <<_ACEOF
15474 /* confdefs.h. */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15479 #include <mach/thread_status.h>
15482 main ()
15484 static ppc_thread_state64_t ac_aggr;
15485 if (sizeof ac_aggr.r0)
15486 return 0;
15488 return 0;
15490 _ACEOF
15491 rm -f conftest.$ac_objext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15493 (eval $ac_compile) 2>conftest.er1
15494 ac_status=$?
15495 grep -v '^ *+' conftest.er1 >conftest.err
15496 rm -f conftest.er1
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try='test -z "$ac_c_werror_flag"
15501 || test ! -s conftest.err'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; } &&
15507 { ac_try='test -s conftest.$ac_objext'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
15513 ac_cv_member_ppc_thread_state64_t_r0=yes
15514 else
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15518 ac_cv_member_ppc_thread_state64_t_r0=no
15520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15524 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
15525 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6
15526 if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then
15528 cat >>confdefs.h <<\_ACEOF
15529 #define HAS_PPC_THREAD_STATE64_R0 1
15530 _ACEOF
15534 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
15535 echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6
15536 if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
15537 echo $ECHO_N "(cached) $ECHO_C" >&6
15538 else
15539 cat >conftest.$ac_ext <<_ACEOF
15540 /* confdefs.h. */
15541 _ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15545 #include <mach/thread_status.h>
15548 main ()
15550 static ppc_thread_state64_t ac_aggr;
15551 if (ac_aggr.__r0)
15552 return 0;
15554 return 0;
15556 _ACEOF
15557 rm -f conftest.$ac_objext
15558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15559 (eval $ac_compile) 2>conftest.er1
15560 ac_status=$?
15561 grep -v '^ *+' conftest.er1 >conftest.err
15562 rm -f conftest.er1
15563 cat conftest.err >&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } &&
15566 { ac_try='test -z "$ac_c_werror_flag"
15567 || test ! -s conftest.err'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; } &&
15573 { ac_try='test -s conftest.$ac_objext'
15574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15575 (eval $ac_try) 2>&5
15576 ac_status=$?
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; }; then
15579 ac_cv_member_ppc_thread_state64_t___r0=yes
15580 else
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15584 cat >conftest.$ac_ext <<_ACEOF
15585 /* confdefs.h. */
15586 _ACEOF
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h. */
15590 #include <mach/thread_status.h>
15593 main ()
15595 static ppc_thread_state64_t ac_aggr;
15596 if (sizeof ac_aggr.__r0)
15597 return 0;
15599 return 0;
15601 _ACEOF
15602 rm -f conftest.$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604 (eval $ac_compile) 2>conftest.er1
15605 ac_status=$?
15606 grep -v '^ *+' conftest.er1 >conftest.err
15607 rm -f conftest.er1
15608 cat conftest.err >&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } &&
15611 { ac_try='test -z "$ac_c_werror_flag"
15612 || test ! -s conftest.err'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; } &&
15618 { ac_try='test -s conftest.$ac_objext'
15619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620 (eval $ac_try) 2>&5
15621 ac_status=$?
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; }; then
15624 ac_cv_member_ppc_thread_state64_t___r0=yes
15625 else
15626 echo "$as_me: failed program was:" >&5
15627 sed 's/^/| /' conftest.$ac_ext >&5
15629 ac_cv_member_ppc_thread_state64_t___r0=no
15631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15635 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
15636 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6
15637 if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then
15639 cat >>confdefs.h <<\_ACEOF
15640 #define HAS_PPC_THREAD_STATE64___R0 1
15641 _ACEOF
15646 i?86*-*-darwin*)
15647 echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
15648 echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6
15649 if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15651 else
15652 cat >conftest.$ac_ext <<_ACEOF
15653 /* confdefs.h. */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15658 #include <sys/cdefs.h>
15659 #include <mach/thread_status.h>
15662 main ()
15664 static x86_thread_state32_t ac_aggr;
15665 if (ac_aggr.eax)
15666 return 0;
15668 return 0;
15670 _ACEOF
15671 rm -f conftest.$ac_objext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15673 (eval $ac_compile) 2>conftest.er1
15674 ac_status=$?
15675 grep -v '^ *+' conftest.er1 >conftest.err
15676 rm -f conftest.er1
15677 cat conftest.err >&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
15680 { ac_try='test -z "$ac_c_werror_flag"
15681 || test ! -s conftest.err'
15682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683 (eval $ac_try) 2>&5
15684 ac_status=$?
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; } &&
15687 { ac_try='test -s conftest.$ac_objext'
15688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689 (eval $ac_try) 2>&5
15690 ac_status=$?
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; }; then
15693 ac_cv_member_x86_thread_state32_t_eax=yes
15694 else
15695 echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15698 cat >conftest.$ac_ext <<_ACEOF
15699 /* confdefs.h. */
15700 _ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 #include <sys/cdefs.h>
15705 #include <mach/thread_status.h>
15708 main ()
15710 static x86_thread_state32_t ac_aggr;
15711 if (sizeof ac_aggr.eax)
15712 return 0;
15714 return 0;
15716 _ACEOF
15717 rm -f conftest.$ac_objext
15718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15719 (eval $ac_compile) 2>conftest.er1
15720 ac_status=$?
15721 grep -v '^ *+' conftest.er1 >conftest.err
15722 rm -f conftest.er1
15723 cat conftest.err >&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } &&
15726 { ac_try='test -z "$ac_c_werror_flag"
15727 || test ! -s conftest.err'
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15730 ac_status=$?
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; } &&
15733 { ac_try='test -s conftest.$ac_objext'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 ac_cv_member_x86_thread_state32_t_eax=yes
15740 else
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15744 ac_cv_member_x86_thread_state32_t_eax=no
15746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15750 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
15751 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6
15752 if test $ac_cv_member_x86_thread_state32_t_eax = yes; then
15754 cat >>confdefs.h <<\_ACEOF
15755 #define HAS_X86_THREAD_STATE32_EAX 1
15756 _ACEOF
15760 echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
15761 echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6
15762 if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15764 else
15765 cat >conftest.$ac_ext <<_ACEOF
15766 /* confdefs.h. */
15767 _ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771 #include <sys/cdefs.h>
15772 #include <mach/thread_status.h>
15775 main ()
15777 static x86_thread_state32_t ac_aggr;
15778 if (ac_aggr.__eax)
15779 return 0;
15781 return 0;
15783 _ACEOF
15784 rm -f conftest.$ac_objext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15786 (eval $ac_compile) 2>conftest.er1
15787 ac_status=$?
15788 grep -v '^ *+' conftest.er1 >conftest.err
15789 rm -f conftest.er1
15790 cat conftest.err >&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } &&
15793 { ac_try='test -z "$ac_c_werror_flag"
15794 || test ! -s conftest.err'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; } &&
15800 { ac_try='test -s conftest.$ac_objext'
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
15806 ac_cv_member_x86_thread_state32_t___eax=yes
15807 else
15808 echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15811 cat >conftest.$ac_ext <<_ACEOF
15812 /* confdefs.h. */
15813 _ACEOF
15814 cat confdefs.h >>conftest.$ac_ext
15815 cat >>conftest.$ac_ext <<_ACEOF
15816 /* end confdefs.h. */
15817 #include <sys/cdefs.h>
15818 #include <mach/thread_status.h>
15821 main ()
15823 static x86_thread_state32_t ac_aggr;
15824 if (sizeof ac_aggr.__eax)
15825 return 0;
15827 return 0;
15829 _ACEOF
15830 rm -f conftest.$ac_objext
15831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15832 (eval $ac_compile) 2>conftest.er1
15833 ac_status=$?
15834 grep -v '^ *+' conftest.er1 >conftest.err
15835 rm -f conftest.er1
15836 cat conftest.err >&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } &&
15839 { ac_try='test -z "$ac_c_werror_flag"
15840 || test ! -s conftest.err'
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; } &&
15846 { ac_try='test -s conftest.$ac_objext'
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15852 ac_cv_member_x86_thread_state32_t___eax=yes
15853 else
15854 echo "$as_me: failed program was:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15857 ac_cv_member_x86_thread_state32_t___eax=no
15859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15863 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
15864 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6
15865 if test $ac_cv_member_x86_thread_state32_t___eax = yes; then
15867 cat >>confdefs.h <<\_ACEOF
15868 #define HAS_X86_THREAD_STATE32___EAX 1
15869 _ACEOF
15874 x86_64-*-darwin*)
15875 echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
15876 echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6
15877 if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 else
15880 cat >conftest.$ac_ext <<_ACEOF
15881 /* confdefs.h. */
15882 _ACEOF
15883 cat confdefs.h >>conftest.$ac_ext
15884 cat >>conftest.$ac_ext <<_ACEOF
15885 /* end confdefs.h. */
15886 #include <sys/cdefs.h>
15887 #include <mach/thread_status.h>
15890 main ()
15892 static x86_thread_state64_t ac_aggr;
15893 if (ac_aggr.rax)
15894 return 0;
15896 return 0;
15898 _ACEOF
15899 rm -f conftest.$ac_objext
15900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15901 (eval $ac_compile) 2>conftest.er1
15902 ac_status=$?
15903 grep -v '^ *+' conftest.er1 >conftest.err
15904 rm -f conftest.er1
15905 cat conftest.err >&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } &&
15908 { ac_try='test -z "$ac_c_werror_flag"
15909 || test ! -s conftest.err'
15910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911 (eval $ac_try) 2>&5
15912 ac_status=$?
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; } &&
15915 { ac_try='test -s conftest.$ac_objext'
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15918 ac_status=$?
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; }; then
15921 ac_cv_member_x86_thread_state64_t_rax=yes
15922 else
15923 echo "$as_me: failed program was:" >&5
15924 sed 's/^/| /' conftest.$ac_ext >&5
15926 cat >conftest.$ac_ext <<_ACEOF
15927 /* confdefs.h. */
15928 _ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h. */
15932 #include <sys/cdefs.h>
15933 #include <mach/thread_status.h>
15936 main ()
15938 static x86_thread_state64_t ac_aggr;
15939 if (sizeof ac_aggr.rax)
15940 return 0;
15942 return 0;
15944 _ACEOF
15945 rm -f conftest.$ac_objext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15947 (eval $ac_compile) 2>conftest.er1
15948 ac_status=$?
15949 grep -v '^ *+' conftest.er1 >conftest.err
15950 rm -f conftest.er1
15951 cat conftest.err >&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
15954 { ac_try='test -z "$ac_c_werror_flag"
15955 || test ! -s conftest.err'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } &&
15961 { ac_try='test -s conftest.$ac_objext'
15962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963 (eval $ac_try) 2>&5
15964 ac_status=$?
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; }; then
15967 ac_cv_member_x86_thread_state64_t_rax=yes
15968 else
15969 echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15972 ac_cv_member_x86_thread_state64_t_rax=no
15974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15978 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
15979 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6
15980 if test $ac_cv_member_x86_thread_state64_t_rax = yes; then
15982 cat >>confdefs.h <<\_ACEOF
15983 #define HAS_X86_THREAD_STATE64_RAX 1
15984 _ACEOF
15988 echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
15989 echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6
15990 if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 else
15993 cat >conftest.$ac_ext <<_ACEOF
15994 /* confdefs.h. */
15995 _ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h. */
15999 #include <sys/cdefs.h>
16000 #include <mach/thread_status.h>
16003 main ()
16005 static x86_thread_state64_t ac_aggr;
16006 if (ac_aggr.__rax)
16007 return 0;
16009 return 0;
16011 _ACEOF
16012 rm -f conftest.$ac_objext
16013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16014 (eval $ac_compile) 2>conftest.er1
16015 ac_status=$?
16016 grep -v '^ *+' conftest.er1 >conftest.err
16017 rm -f conftest.er1
16018 cat conftest.err >&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } &&
16021 { ac_try='test -z "$ac_c_werror_flag"
16022 || test ! -s conftest.err'
16023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16024 (eval $ac_try) 2>&5
16025 ac_status=$?
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; } &&
16028 { ac_try='test -s conftest.$ac_objext'
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16031 ac_status=$?
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; }; then
16034 ac_cv_member_x86_thread_state64_t___rax=yes
16035 else
16036 echo "$as_me: failed program was:" >&5
16037 sed 's/^/| /' conftest.$ac_ext >&5
16039 cat >conftest.$ac_ext <<_ACEOF
16040 /* confdefs.h. */
16041 _ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16045 #include <sys/cdefs.h>
16046 #include <mach/thread_status.h>
16049 main ()
16051 static x86_thread_state64_t ac_aggr;
16052 if (sizeof ac_aggr.__rax)
16053 return 0;
16055 return 0;
16057 _ACEOF
16058 rm -f conftest.$ac_objext
16059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16060 (eval $ac_compile) 2>conftest.er1
16061 ac_status=$?
16062 grep -v '^ *+' conftest.er1 >conftest.err
16063 rm -f conftest.er1
16064 cat conftest.err >&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } &&
16067 { ac_try='test -z "$ac_c_werror_flag"
16068 || test ! -s conftest.err'
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16071 ac_status=$?
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; } &&
16074 { ac_try='test -s conftest.$ac_objext'
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; }; then
16080 ac_cv_member_x86_thread_state64_t___rax=yes
16081 else
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16085 ac_cv_member_x86_thread_state64_t___rax=no
16087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16091 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
16092 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6
16093 if test $ac_cv_member_x86_thread_state64_t___rax = yes; then
16095 cat >>confdefs.h <<\_ACEOF
16096 #define HAS_X86_THREAD_STATE64___RAX 1
16097 _ACEOF
16102 *) ;;
16103 esac
16105 # We never want libdl on darwin. It is a fake libdl that just ends up making
16106 # dyld calls anyway
16107 case "$host" in
16108 *-*-darwin*) ;;
16110 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16111 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16112 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16114 else
16115 ac_check_lib_save_LIBS=$LIBS
16116 LIBS="-ldl $LIBS"
16117 if test x$gcc_no_link = xyes; then
16118 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16119 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16120 { (exit 1); exit 1; }; }
16122 cat >conftest.$ac_ext <<_ACEOF
16123 /* confdefs.h. */
16124 _ACEOF
16125 cat confdefs.h >>conftest.$ac_ext
16126 cat >>conftest.$ac_ext <<_ACEOF
16127 /* end confdefs.h. */
16129 /* Override any gcc2 internal prototype to avoid an error. */
16130 #ifdef __cplusplus
16131 extern "C"
16132 #endif
16133 /* We use char because int might match the return type of a gcc2
16134 builtin and then its argument prototype would still apply. */
16135 char dlopen ();
16137 main ()
16139 dlopen ();
16141 return 0;
16143 _ACEOF
16144 rm -f conftest.$ac_objext conftest$ac_exeext
16145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16146 (eval $ac_link) 2>conftest.er1
16147 ac_status=$?
16148 grep -v '^ *+' conftest.er1 >conftest.err
16149 rm -f conftest.er1
16150 cat conftest.err >&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } &&
16153 { ac_try='test -z "$ac_c_werror_flag"
16154 || test ! -s conftest.err'
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16157 ac_status=$?
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; } &&
16160 { ac_try='test -s conftest$ac_exeext'
16161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162 (eval $ac_try) 2>&5
16163 ac_status=$?
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; }; then
16166 ac_cv_lib_dl_dlopen=yes
16167 else
16168 echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16171 ac_cv_lib_dl_dlopen=no
16173 rm -f conftest.err conftest.$ac_objext \
16174 conftest$ac_exeext conftest.$ac_ext
16175 LIBS=$ac_check_lib_save_LIBS
16177 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16178 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16179 if test $ac_cv_lib_dl_dlopen = yes; then
16180 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
16184 esac
16186 # extra LD Flags which are required for targets
16187 case "${host}" in
16188 *-*-darwin*)
16189 extra_ldflags_libgc=-Wl,-single_module
16191 esac
16196 target_all=libgcjgc.la
16199 TARGET_ECOS="no"
16201 # Check whether --with-ecos or --without-ecos was given.
16202 if test "${with_ecos+set}" = set; then
16203 withval="$with_ecos"
16204 TARGET_ECOS="$with_ecos"
16208 addobjs=
16209 addlibs=
16210 addincludes=
16211 addtests=
16212 case "$TARGET_ECOS" in
16217 cat >>confdefs.h <<\_ACEOF
16218 #define ECOS 1
16219 _ACEOF
16221 AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
16222 addobjs="$addobjs ecos.lo"
16224 esac
16226 if test "${enable_cplusplus}" = yes; then
16227 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
16228 addtests="$addtests test_cpp"
16233 if test "${enable_cplusplus}" = yes; then
16234 CPLUSPLUS_TRUE=
16235 CPLUSPLUS_FALSE='#'
16236 else
16237 CPLUSPLUS_TRUE='#'
16238 CPLUSPLUS_FALSE=
16246 # Configuration of shared libraries
16248 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16249 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16250 # Check whether --enable-shared or --disable-shared was given.
16251 if test "${enable_shared+set}" = set; then
16252 enableval="$enable_shared"
16253 p=${PACKAGE-default}
16254 case $enableval in
16255 yes) enable_shared=yes ;;
16256 no) enable_shared=no ;;
16258 enable_shared=no
16259 # Look at the argument we got. We use all the common list separators.
16260 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16261 for pkg in $enableval; do
16262 IFS="$lt_save_ifs"
16263 if test "X$pkg" = "X$p"; then
16264 enable_shared=yes
16266 done
16267 IFS="$lt_save_ifs"
16269 esac
16270 else
16271 enable_shared=yes
16279 case "$host" in
16280 alpha-*-openbsd*)
16281 enable_shared=no
16282 echo "$as_me:$LINENO: result: no" >&5
16283 echo "${ECHO_T}no" >&6
16286 echo "$as_me:$LINENO: result: yes" >&5
16287 echo "${ECHO_T}yes" >&6
16289 esac
16291 # Checks for pthreads functions
16293 oldLIBS="$LIBS"
16294 LIBS="$LIBS $THREADLIBS"
16296 for ac_func in pthread_getattr_np
16298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16299 echo "$as_me:$LINENO: checking for $ac_func" >&5
16300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16301 if eval "test \"\${$as_ac_var+set}\" = set"; then
16302 echo $ECHO_N "(cached) $ECHO_C" >&6
16303 else
16304 if test x$gcc_no_link = xyes; then
16305 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16306 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16307 { (exit 1); exit 1; }; }
16309 cat >conftest.$ac_ext <<_ACEOF
16310 /* confdefs.h. */
16311 _ACEOF
16312 cat confdefs.h >>conftest.$ac_ext
16313 cat >>conftest.$ac_ext <<_ACEOF
16314 /* end confdefs.h. */
16315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16317 #define $ac_func innocuous_$ac_func
16319 /* System header to define __stub macros and hopefully few prototypes,
16320 which can conflict with char $ac_func (); below.
16321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16322 <limits.h> exists even on freestanding compilers. */
16324 #ifdef __STDC__
16325 # include <limits.h>
16326 #else
16327 # include <assert.h>
16328 #endif
16330 #undef $ac_func
16332 /* Override any gcc2 internal prototype to avoid an error. */
16333 #ifdef __cplusplus
16334 extern "C"
16336 #endif
16337 /* We use char because int might match the return type of a gcc2
16338 builtin and then its argument prototype would still apply. */
16339 char $ac_func ();
16340 /* The GNU C library defines this for functions which it implements
16341 to always fail with ENOSYS. Some functions are actually named
16342 something starting with __ and the normal name is an alias. */
16343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16344 choke me
16345 #else
16346 char (*f) () = $ac_func;
16347 #endif
16348 #ifdef __cplusplus
16350 #endif
16353 main ()
16355 return f != $ac_func;
16357 return 0;
16359 _ACEOF
16360 rm -f conftest.$ac_objext conftest$ac_exeext
16361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16362 (eval $ac_link) 2>conftest.er1
16363 ac_status=$?
16364 grep -v '^ *+' conftest.er1 >conftest.err
16365 rm -f conftest.er1
16366 cat conftest.err >&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } &&
16369 { ac_try='test -z "$ac_c_werror_flag"
16370 || test ! -s conftest.err'
16371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16372 (eval $ac_try) 2>&5
16373 ac_status=$?
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; } &&
16376 { ac_try='test -s conftest$ac_exeext'
16377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16382 eval "$as_ac_var=yes"
16383 else
16384 echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16387 eval "$as_ac_var=no"
16389 rm -f conftest.err conftest.$ac_objext \
16390 conftest$ac_exeext conftest.$ac_ext
16392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16394 if test `eval echo '${'$as_ac_var'}'` = yes; then
16395 cat >>confdefs.h <<_ACEOF
16396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16397 _ACEOF
16400 done
16402 LIBS="$oldLIBS"
16404 # Configuration of machine-dependent code
16406 # Set NO_EXECUTE_PERMISSION by default because gcj already uses
16407 # ffi_closure_{alloc,free} which takes care of allocating trampolines
16408 # in executable memory.
16410 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
16411 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
16412 machdep=
16413 case "$host" in
16414 alpha*-*-openbsd*)
16415 machdep="alpha_mach_dep.lo"
16416 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
16417 { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
16418 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
16421 alpha*-*-linux*)
16422 machdep="alpha_mach_dep.lo"
16424 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
16426 cat >>confdefs.h <<\_ACEOF
16427 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
16428 _ACEOF
16431 mipstx39-*-elf*)
16432 machdep="mips_ultrix_mach_dep.lo"
16434 cat >>confdefs.h <<\_ACEOF
16435 #define STACKBASE __stackbase
16436 _ACEOF
16439 cat >>confdefs.h <<\_ACEOF
16440 #define DATASTART_IS_ETEXT 1
16441 _ACEOF
16444 mips-dec-ultrix*)
16445 machdep="mips_ultrix_mach-dep.lo"
16447 mips-nec-sysv*|mips-unknown-sysv*)
16449 mips*-*-linux*)
16451 mips-*-*)
16452 machdep="mips_sgi_mach_dep.lo"
16454 sparc-*-netbsd*)
16455 machdep="sparc_netbsd_mach_dep.lo"
16457 sparc-sun-solaris2.3)
16458 machdep="sparc_mach_dep.lo"
16460 cat >>confdefs.h <<\_ACEOF
16461 #define SUNOS53_SHARED_LIB 1
16462 _ACEOF
16465 sparc*-sun-solaris2.*)
16466 machdep="sparc_mach_dep.lo"
16468 ia64-*-*)
16469 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
16471 esac
16473 cat >>confdefs.h <<\_ACEOF
16474 #define NO_EXECUTE_PERMISSION 1
16475 _ACEOF
16477 if test x"$machdep" = x; then
16478 echo "$as_me:$LINENO: result: $machdep" >&5
16479 echo "${ECHO_T}$machdep" >&6
16480 machdep="mach_dep.lo"
16482 addobjs="$addobjs $machdep"
16489 # Check for AViiON Machines running DGUX
16491 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
16492 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
16493 ac_is_dgux=no
16494 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16495 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16496 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16497 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16501 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16502 else
16503 # Is the header compilable?
16504 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16505 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
16506 cat >conftest.$ac_ext <<_ACEOF
16507 /* confdefs.h. */
16508 _ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h. */
16512 $ac_includes_default
16513 #include <sys/dg_sys_info.h>
16514 _ACEOF
16515 rm -f conftest.$ac_objext
16516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16517 (eval $ac_compile) 2>conftest.er1
16518 ac_status=$?
16519 grep -v '^ *+' conftest.er1 >conftest.err
16520 rm -f conftest.er1
16521 cat conftest.err >&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); } &&
16524 { ac_try='test -z "$ac_c_werror_flag"
16525 || test ! -s conftest.err'
16526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527 (eval $ac_try) 2>&5
16528 ac_status=$?
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; } &&
16531 { ac_try='test -s conftest.$ac_objext'
16532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16533 (eval $ac_try) 2>&5
16534 ac_status=$?
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; }; then
16537 ac_header_compiler=yes
16538 else
16539 echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16542 ac_header_compiler=no
16544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16546 echo "${ECHO_T}$ac_header_compiler" >&6
16548 # Is the header present?
16549 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16550 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16551 cat >conftest.$ac_ext <<_ACEOF
16552 /* confdefs.h. */
16553 _ACEOF
16554 cat confdefs.h >>conftest.$ac_ext
16555 cat >>conftest.$ac_ext <<_ACEOF
16556 /* end confdefs.h. */
16557 #include <sys/dg_sys_info.h>
16558 _ACEOF
16559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16561 ac_status=$?
16562 grep -v '^ *+' conftest.er1 >conftest.err
16563 rm -f conftest.er1
16564 cat conftest.err >&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } >/dev/null; then
16567 if test -s conftest.err; then
16568 ac_cpp_err=$ac_c_preproc_warn_flag
16569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16570 else
16571 ac_cpp_err=
16573 else
16574 ac_cpp_err=yes
16576 if test -z "$ac_cpp_err"; then
16577 ac_header_preproc=yes
16578 else
16579 echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16582 ac_header_preproc=no
16584 rm -f conftest.err conftest.$ac_ext
16585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16586 echo "${ECHO_T}$ac_header_preproc" >&6
16588 # So? What about this header?
16589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16590 yes:no: )
16591 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16592 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16593 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16594 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16595 ac_header_preproc=yes
16597 no:yes:* )
16598 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16599 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16601 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16603 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16604 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16605 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16606 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16607 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16608 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16609 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16611 cat <<\_ASBOX
16612 ## ------------------------------------------ ##
16613 ## Report this to the AC_PACKAGE_NAME lists. ##
16614 ## ------------------------------------------ ##
16615 _ASBOX
16617 sed "s/^/$as_me: WARNING: /" >&2
16619 esac
16620 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16621 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16622 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16624 else
16625 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16627 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16628 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16631 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16632 ac_is_dgux=yes;
16637 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
16638 echo "${ECHO_T}$ac_is_dgux" >&6
16639 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
16640 if test $ac_is_dgux = yes; then
16641 if test "$enable_full_debug" = "yes"; then
16642 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16643 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16644 else
16645 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16646 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16652 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
16653 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
16654 case "$host" in
16655 *aix*)
16656 if test "$GCC" = yes; then
16657 echo "$as_me:$LINENO: result: yes" >&5
16658 echo "${ECHO_T}yes" >&6
16659 new_CFLAGS=
16660 for i in $CFLAGS; do
16661 case "$i" in
16662 -O*)
16665 new_CFLAGS="$new_CFLAGS $i"
16667 esac
16668 done
16669 CFLAGS="$new_CFLAGS"
16670 else
16671 echo "$as_me:$LINENO: result: no" >&5
16672 echo "${ECHO_T}no" >&6
16675 *) echo "$as_me:$LINENO: result: no" >&5
16676 echo "${ECHO_T}no" >&6 ;;
16677 esac
16679 MY_CFLAGS="$CFLAGS"
16683 cat >>confdefs.h <<\_ACEOF
16684 #define SILENT 1
16685 _ACEOF
16688 cat >>confdefs.h <<\_ACEOF
16689 #define NO_SIGNALS 1
16690 _ACEOF
16693 cat >>confdefs.h <<\_ACEOF
16694 #define ALL_INTERIOR_POINTERS 1
16695 _ACEOF
16699 cat >>confdefs.h <<\_ACEOF
16700 #define JAVA_FINALIZATION 1
16701 _ACEOF
16704 cat >>confdefs.h <<\_ACEOF
16705 #define GC_GCJ_SUPPORT 1
16706 _ACEOF
16709 cat >>confdefs.h <<\_ACEOF
16710 #define ATOMIC_UNCOLLECTABLE 1
16711 _ACEOF
16714 # Check whether --enable-gc-debug or --disable-gc-debug was given.
16715 if test "${enable_gc_debug+set}" = set; then
16716 enableval="$enable_gc_debug"
16717 if test "$enable_gc_debug" = "yes"; then
16718 { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
16719 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
16721 cat >>confdefs.h <<\_ACEOF
16722 #define KEEP_BACK_PTRS 1
16723 _ACEOF
16726 cat >>confdefs.h <<\_ACEOF
16727 #define DBG_HDRS_ALL 1
16728 _ACEOF
16730 case $host in
16731 ia64-*-linux* )
16733 cat >>confdefs.h <<\_ACEOF
16734 #define MAKE_BACK_GRAPH 1
16735 _ACEOF
16738 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
16739 cat >>confdefs.h <<\_ACEOF
16740 #define MAKE_BACK_GRAPH 1
16741 _ACEOF
16743 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
16744 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
16746 cat >>confdefs.h <<\_ACEOF
16747 #define SAVE_CALL_COUNT 8
16748 _ACEOF
16751 i345686-*-dgux*)
16752 cat >>confdefs.h <<\_ACEOF
16753 #define MAKE_BACK_GRAPH 1
16754 _ACEOF
16757 esac
16761 if test "${gc_use_mmap}" = "yes"; then
16763 cat >>confdefs.h <<\_ACEOF
16764 #define USE_MMAP 1
16765 _ACEOF
16769 if test -n "$with_cross_host" &&
16770 test x"$with_cross_host" != x"no"; then
16771 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
16772 toolexeclibdir='$(toolexecdir)/lib'
16773 else
16774 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
16775 toolexeclibdir='$(libdir)'
16777 multi_os_directory=`$CC -print-multi-os-directory`
16778 case $multi_os_directory in
16779 .) ;; # Avoid trailing /.
16780 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16781 esac
16785 if test "${multilib}" = "yes"; then
16786 multilib_arg="--enable-multilib"
16787 else
16788 multilib_arg=
16791 ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
16794 ac_config_files="$ac_config_files Makefile include/Makefile threads.mk"
16796 cat >confcache <<\_ACEOF
16797 # This file is a shell script that caches the results of configure
16798 # tests run on this system so they can be shared between configure
16799 # scripts and configure runs, see configure's option --config-cache.
16800 # It is not useful on other systems. If it contains results you don't
16801 # want to keep, you may remove or edit it.
16803 # config.status only pays attention to the cache file if you give it
16804 # the --recheck option to rerun configure.
16806 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16807 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16808 # following values.
16810 _ACEOF
16812 # The following way of writing the cache mishandles newlines in values,
16813 # but we know of no workaround that is simple, portable, and efficient.
16814 # So, don't put newlines in cache variables' values.
16815 # Ultrix sh set writes to stderr and can't be redirected directly,
16816 # and sets the high bit in the cache file unless we assign to the vars.
16818 (set) 2>&1 |
16819 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16820 *ac_space=\ *)
16821 # `set' does not quote correctly, so add quotes (double-quote
16822 # substitution turns \\\\ into \\, and sed turns \\ into \).
16823 sed -n \
16824 "s/'/'\\\\''/g;
16825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16828 # `set' quotes correctly as required by POSIX, so do not add quotes.
16829 sed -n \
16830 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16832 esac;
16834 sed '
16835 t clear
16836 : clear
16837 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16838 t end
16839 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16840 : end' >>confcache
16841 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16842 if test -w $cache_file; then
16843 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16844 cat confcache >$cache_file
16845 else
16846 echo "not updating unwritable cache $cache_file"
16849 rm -f confcache
16851 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16852 # Let make expand exec_prefix.
16853 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16855 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16856 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16857 # trailing colons and then remove the whole line if VPATH becomes empty
16858 # (actually we leave an empty line to preserve line numbers).
16859 if test "x$srcdir" = x.; then
16860 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16861 s/:*\$(srcdir):*/:/;
16862 s/:*\${srcdir}:*/:/;
16863 s/:*@srcdir@:*/:/;
16864 s/^\([^=]*=[ ]*\):*/\1/;
16865 s/:*$//;
16866 s/^[^=]*=[ ]*$//;
16870 DEFS=-DHAVE_CONFIG_H
16872 ac_libobjs=
16873 ac_ltlibobjs=
16874 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16875 # 1. Remove the extension, and $U if already installed.
16876 ac_i=`echo "$ac_i" |
16877 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16878 # 2. Add them.
16879 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16880 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16881 done
16882 LIBOBJS=$ac_libobjs
16884 LTLIBOBJS=$ac_ltlibobjs
16887 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16888 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16889 Usually this means the macro was only invoked conditionally." >&5
16890 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16891 Usually this means the macro was only invoked conditionally." >&2;}
16892 { (exit 1); exit 1; }; }
16894 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16895 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16896 Usually this means the macro was only invoked conditionally." >&5
16897 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16898 Usually this means the macro was only invoked conditionally." >&2;}
16899 { (exit 1); exit 1; }; }
16901 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16902 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16903 Usually this means the macro was only invoked conditionally." >&5
16904 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16905 Usually this means the macro was only invoked conditionally." >&2;}
16906 { (exit 1); exit 1; }; }
16908 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16909 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16910 Usually this means the macro was only invoked conditionally." >&5
16911 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16912 Usually this means the macro was only invoked conditionally." >&2;}
16913 { (exit 1); exit 1; }; }
16915 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16916 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16917 Usually this means the macro was only invoked conditionally." >&5
16918 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16919 Usually this means the macro was only invoked conditionally." >&2;}
16920 { (exit 1); exit 1; }; }
16922 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
16923 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
16924 Usually this means the macro was only invoked conditionally." >&5
16925 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
16926 Usually this means the macro was only invoked conditionally." >&2;}
16927 { (exit 1); exit 1; }; }
16929 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
16930 { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
16931 Usually this means the macro was only invoked conditionally." >&5
16932 echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
16933 Usually this means the macro was only invoked conditionally." >&2;}
16934 { (exit 1); exit 1; }; }
16937 : ${CONFIG_STATUS=./config.status}
16938 ac_clean_files_save=$ac_clean_files
16939 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16940 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16941 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16942 cat >$CONFIG_STATUS <<_ACEOF
16943 #! $SHELL
16944 # Generated by $as_me.
16945 # Run this file to recreate the current configuration.
16946 # Compiler output produced by configure, useful for debugging
16947 # configure, is in config.log if it exists.
16949 debug=false
16950 ac_cs_recheck=false
16951 ac_cs_silent=false
16952 SHELL=\${CONFIG_SHELL-$SHELL}
16953 _ACEOF
16955 cat >>$CONFIG_STATUS <<\_ACEOF
16956 ## --------------------- ##
16957 ## M4sh Initialization. ##
16958 ## --------------------- ##
16960 # Be Bourne compatible
16961 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16962 emulate sh
16963 NULLCMD=:
16964 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16965 # is contrary to our usage. Disable this feature.
16966 alias -g '${1+"$@"}'='"$@"'
16967 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16968 set -o posix
16970 DUALCASE=1; export DUALCASE # for MKS sh
16972 # Support unset when possible.
16973 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16974 as_unset=unset
16975 else
16976 as_unset=false
16980 # Work around bugs in pre-3.0 UWIN ksh.
16981 $as_unset ENV MAIL MAILPATH
16982 PS1='$ '
16983 PS2='> '
16984 PS4='+ '
16986 # NLS nuisances.
16987 for as_var in \
16988 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16989 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16990 LC_TELEPHONE LC_TIME
16992 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16993 eval $as_var=C; export $as_var
16994 else
16995 $as_unset $as_var
16997 done
16999 # Required to use basename.
17000 if expr a : '\(a\)' >/dev/null 2>&1; then
17001 as_expr=expr
17002 else
17003 as_expr=false
17006 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17007 as_basename=basename
17008 else
17009 as_basename=false
17013 # Name of the executable.
17014 as_me=`$as_basename "$0" ||
17015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17016 X"$0" : 'X\(//\)$' \| \
17017 X"$0" : 'X\(/\)$' \| \
17018 . : '\(.\)' 2>/dev/null ||
17019 echo X/"$0" |
17020 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17021 /^X\/\(\/\/\)$/{ s//\1/; q; }
17022 /^X\/\(\/\).*/{ s//\1/; q; }
17023 s/.*/./; q'`
17026 # PATH needs CR, and LINENO needs CR and PATH.
17027 # Avoid depending upon Character Ranges.
17028 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17029 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17030 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17031 as_cr_digits='0123456789'
17032 as_cr_alnum=$as_cr_Letters$as_cr_digits
17034 # The user is always right.
17035 if test "${PATH_SEPARATOR+set}" != set; then
17036 echo "#! /bin/sh" >conf$$.sh
17037 echo "exit 0" >>conf$$.sh
17038 chmod +x conf$$.sh
17039 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17040 PATH_SEPARATOR=';'
17041 else
17042 PATH_SEPARATOR=:
17044 rm -f conf$$.sh
17048 as_lineno_1=$LINENO
17049 as_lineno_2=$LINENO
17050 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17051 test "x$as_lineno_1" != "x$as_lineno_2" &&
17052 test "x$as_lineno_3" = "x$as_lineno_2" || {
17053 # Find who we are. Look in the path if we contain no path at all
17054 # relative or not.
17055 case $0 in
17056 *[\\/]* ) as_myself=$0 ;;
17057 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17058 for as_dir in $PATH
17060 IFS=$as_save_IFS
17061 test -z "$as_dir" && as_dir=.
17062 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17063 done
17066 esac
17067 # We did not find ourselves, most probably we were run as `sh COMMAND'
17068 # in which case we are not to be found in the path.
17069 if test "x$as_myself" = x; then
17070 as_myself=$0
17072 if test ! -f "$as_myself"; then
17073 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17074 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17075 { (exit 1); exit 1; }; }
17077 case $CONFIG_SHELL in
17079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17080 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17082 IFS=$as_save_IFS
17083 test -z "$as_dir" && as_dir=.
17084 for as_base in sh bash ksh sh5; do
17085 case $as_dir in
17087 if ("$as_dir/$as_base" -c '
17088 as_lineno_1=$LINENO
17089 as_lineno_2=$LINENO
17090 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17091 test "x$as_lineno_1" != "x$as_lineno_2" &&
17092 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17093 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17094 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17095 CONFIG_SHELL=$as_dir/$as_base
17096 export CONFIG_SHELL
17097 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17098 fi;;
17099 esac
17100 done
17101 done
17103 esac
17105 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17106 # uniformly replaced by the line number. The first 'sed' inserts a
17107 # line-number line before each line; the second 'sed' does the real
17108 # work. The second script uses 'N' to pair each line-number line
17109 # with the numbered line, and appends trailing '-' during
17110 # substitution so that $LINENO is not a special case at line end.
17111 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17112 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17113 sed '=' <$as_myself |
17114 sed '
17116 s,$,-,
17117 : loop
17118 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17119 t loop
17120 s,-$,,
17121 s,^['$as_cr_digits']*\n,,
17122 ' >$as_me.lineno &&
17123 chmod +x $as_me.lineno ||
17124 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17125 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17126 { (exit 1); exit 1; }; }
17128 # Don't try to exec as it changes $[0], causing all sort of problems
17129 # (the dirname of $[0] is not the place where we might find the
17130 # original and so on. Autoconf is especially sensible to this).
17131 . ./$as_me.lineno
17132 # Exit status is that of the last command.
17133 exit
17137 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17138 *c*,-n*) ECHO_N= ECHO_C='
17139 ' ECHO_T=' ' ;;
17140 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17141 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17142 esac
17144 if expr a : '\(a\)' >/dev/null 2>&1; then
17145 as_expr=expr
17146 else
17147 as_expr=false
17150 rm -f conf$$ conf$$.exe conf$$.file
17151 echo >conf$$.file
17152 if ln -s conf$$.file conf$$ 2>/dev/null; then
17153 # We could just check for DJGPP; but this test a) works b) is more generic
17154 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17155 if test -f conf$$.exe; then
17156 # Don't use ln at all; we don't have any links
17157 as_ln_s='cp -p'
17158 else
17159 as_ln_s='ln -s'
17161 elif ln conf$$.file conf$$ 2>/dev/null; then
17162 as_ln_s=ln
17163 else
17164 as_ln_s='cp -p'
17166 rm -f conf$$ conf$$.exe conf$$.file
17168 if mkdir -p . 2>/dev/null; then
17169 as_mkdir_p=:
17170 else
17171 test -d ./-p && rmdir ./-p
17172 as_mkdir_p=false
17175 as_executable_p="test -f"
17177 # Sed expression to map a string onto a valid CPP name.
17178 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17180 # Sed expression to map a string onto a valid variable name.
17181 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17184 # IFS
17185 # We need space, tab and new line, in precisely that order.
17186 as_nl='
17188 IFS=" $as_nl"
17190 # CDPATH.
17191 $as_unset CDPATH
17193 exec 6>&1
17195 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17196 # report actual input values of CONFIG_FILES etc. instead of their
17197 # values after options handling. Logging --version etc. is OK.
17198 exec 5>>config.log
17200 echo
17201 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17202 ## Running $as_me. ##
17203 _ASBOX
17204 } >&5
17205 cat >&5 <<_CSEOF
17207 This file was extended by $as_me, which was
17208 generated by GNU Autoconf 2.59. Invocation command line was
17210 CONFIG_FILES = $CONFIG_FILES
17211 CONFIG_HEADERS = $CONFIG_HEADERS
17212 CONFIG_LINKS = $CONFIG_LINKS
17213 CONFIG_COMMANDS = $CONFIG_COMMANDS
17214 $ $0 $@
17216 _CSEOF
17217 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17218 echo >&5
17219 _ACEOF
17221 # Files that config.status was made for.
17222 if test -n "$ac_config_files"; then
17223 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17226 if test -n "$ac_config_headers"; then
17227 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17230 if test -n "$ac_config_links"; then
17231 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17234 if test -n "$ac_config_commands"; then
17235 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17238 cat >>$CONFIG_STATUS <<\_ACEOF
17240 ac_cs_usage="\
17241 \`$as_me' instantiates files from templates according to the
17242 current configuration.
17244 Usage: $0 [OPTIONS] [FILE]...
17246 -h, --help print this help, then exit
17247 -V, --version print version number, then exit
17248 -q, --quiet do not print progress messages
17249 -d, --debug don't remove temporary files
17250 --recheck update $as_me by reconfiguring in the same conditions
17251 --file=FILE[:TEMPLATE]
17252 instantiate the configuration file FILE
17253 --header=FILE[:TEMPLATE]
17254 instantiate the configuration header FILE
17256 Configuration files:
17257 $config_files
17259 Configuration headers:
17260 $config_headers
17262 Configuration commands:
17263 $config_commands
17265 Report bugs to <bug-autoconf@gnu.org>."
17266 _ACEOF
17268 cat >>$CONFIG_STATUS <<_ACEOF
17269 ac_cs_version="\\
17270 config.status
17271 configured by $0, generated by GNU Autoconf 2.59,
17272 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17274 Copyright (C) 2003 Free Software Foundation, Inc.
17275 This config.status script is free software; the Free Software Foundation
17276 gives unlimited permission to copy, distribute and modify it."
17277 srcdir=$srcdir
17278 INSTALL="$INSTALL"
17279 _ACEOF
17281 cat >>$CONFIG_STATUS <<\_ACEOF
17282 # If no file are specified by the user, then we need to provide default
17283 # value. By we need to know if files were specified by the user.
17284 ac_need_defaults=:
17285 while test $# != 0
17287 case $1 in
17288 --*=*)
17289 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17290 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17291 ac_shift=:
17294 ac_option=$1
17295 ac_optarg=$2
17296 ac_shift=shift
17298 *) # This is not an option, so the user has probably given explicit
17299 # arguments.
17300 ac_option=$1
17301 ac_need_defaults=false;;
17302 esac
17304 case $ac_option in
17305 # Handling of the options.
17306 _ACEOF
17307 cat >>$CONFIG_STATUS <<\_ACEOF
17308 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17309 ac_cs_recheck=: ;;
17310 --version | --vers* | -V )
17311 echo "$ac_cs_version"; exit 0 ;;
17312 --he | --h)
17313 # Conflict between --help and --header
17314 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17315 Try \`$0 --help' for more information." >&5
17316 echo "$as_me: error: ambiguous option: $1
17317 Try \`$0 --help' for more information." >&2;}
17318 { (exit 1); exit 1; }; };;
17319 --help | --hel | -h )
17320 echo "$ac_cs_usage"; exit 0 ;;
17321 --debug | --d* | -d )
17322 debug=: ;;
17323 --file | --fil | --fi | --f )
17324 $ac_shift
17325 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17326 ac_need_defaults=false;;
17327 --header | --heade | --head | --hea )
17328 $ac_shift
17329 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17330 ac_need_defaults=false;;
17331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17332 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17333 ac_cs_silent=: ;;
17335 # This is an error.
17336 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17337 Try \`$0 --help' for more information." >&5
17338 echo "$as_me: error: unrecognized option: $1
17339 Try \`$0 --help' for more information." >&2;}
17340 { (exit 1); exit 1; }; } ;;
17342 *) ac_config_targets="$ac_config_targets $1" ;;
17344 esac
17345 shift
17346 done
17348 ac_configure_extra_args=
17350 if $ac_cs_silent; then
17351 exec 6>/dev/null
17352 ac_configure_extra_args="$ac_configure_extra_args --silent"
17355 _ACEOF
17356 cat >>$CONFIG_STATUS <<_ACEOF
17357 if \$ac_cs_recheck; then
17358 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17359 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17362 _ACEOF
17364 cat >>$CONFIG_STATUS <<_ACEOF
17366 # INIT-COMMANDS section.
17370 srcdir="$srcdir"
17371 host="$host"
17372 target="$target"
17373 with_multisubdir="$with_multisubdir"
17374 with_multisrctop="$with_multisrctop"
17375 with_target_subdir="$with_target_subdir"
17376 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17377 multi_basedir="$multi_basedir"
17378 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17379 CC="$CC"
17380 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17383 # The HP-UX ksh and POSIX shell print the target directory to stdout
17384 # if CDPATH is set.
17385 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17387 sed_quote_subst='$sed_quote_subst'
17388 double_quote_subst='$double_quote_subst'
17389 delay_variable_subst='$delay_variable_subst'
17390 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17391 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17392 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17393 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17394 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17395 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17396 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17397 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17398 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17399 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17400 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17401 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17402 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17403 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17404 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17405 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17406 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17407 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17408 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17409 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17410 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17411 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17412 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17413 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17414 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17415 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17416 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17417 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17418 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17419 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17420 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17421 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17422 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17423 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17424 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17425 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17426 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17427 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17428 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17429 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17430 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17431 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17432 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17433 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17434 lt_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"`'
17435 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17436 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17437 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17438 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17439 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17440 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17441 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17442 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17443 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17444 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17445 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17446 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17447 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17448 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17449 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17450 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17451 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17452 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17453 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17454 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17455 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17456 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17457 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17458 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17459 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17460 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17461 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17462 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17463 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17464 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17465 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17466 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17467 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17468 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17469 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17470 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17471 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17472 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17473 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17474 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17475 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17476 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17477 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17478 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17479 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17480 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17481 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17482 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17483 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17484 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17485 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17486 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17487 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17488 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17489 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17490 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17491 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17492 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17493 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17494 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17495 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17496 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17497 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17498 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17499 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17500 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17501 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17502 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17503 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17504 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17505 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17506 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17507 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17508 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17509 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17510 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17511 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17512 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17513 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17514 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17515 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17516 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17517 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17518 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17519 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17520 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17521 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17522 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17523 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17524 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17525 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17526 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17527 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17528 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17529 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17530 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17531 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17532 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17533 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17534 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17535 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17536 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17537 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17538 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17539 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17540 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17541 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17542 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17543 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17544 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17545 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17546 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17547 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17548 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17549 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17550 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17551 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17552 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17553 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17554 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17555 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17556 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17557 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17558 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17559 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17560 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17562 LTCC='$LTCC'
17563 LTCFLAGS='$LTCFLAGS'
17564 compiler='$compiler_DEFAULT'
17566 # Quote evaled strings.
17567 for var in SED \
17568 GREP \
17569 EGREP \
17570 FGREP \
17571 LD \
17572 NM \
17573 LN_S \
17574 lt_SP2NL \
17575 lt_NL2SP \
17576 reload_flag \
17577 OBJDUMP \
17578 deplibs_check_method \
17579 file_magic_cmd \
17580 AR \
17581 AR_FLAGS \
17582 STRIP \
17583 RANLIB \
17584 CC \
17585 CFLAGS \
17586 compiler \
17587 lt_cv_sys_global_symbol_pipe \
17588 lt_cv_sys_global_symbol_to_cdecl \
17589 lt_cv_sys_global_symbol_to_c_name_address \
17590 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17591 SHELL \
17592 ECHO \
17593 lt_prog_compiler_no_builtin_flag \
17594 lt_prog_compiler_wl \
17595 lt_prog_compiler_pic \
17596 lt_prog_compiler_static \
17597 lt_cv_prog_compiler_c_o \
17598 need_locks \
17599 DSYMUTIL \
17600 NMEDIT \
17601 LIPO \
17602 OTOOL \
17603 OTOOL64 \
17604 shrext_cmds \
17605 export_dynamic_flag_spec \
17606 whole_archive_flag_spec \
17607 compiler_needs_object \
17608 with_gnu_ld \
17609 allow_undefined_flag \
17610 no_undefined_flag \
17611 hardcode_libdir_flag_spec \
17612 hardcode_libdir_flag_spec_ld \
17613 hardcode_libdir_separator \
17614 fix_srcfile_path \
17615 exclude_expsyms \
17616 include_expsyms \
17617 file_list_spec \
17618 variables_saved_for_relink \
17619 libname_spec \
17620 library_names_spec \
17621 soname_spec \
17622 finish_eval \
17623 old_striplib \
17624 striplib \
17625 compiler_lib_search_dirs \
17626 predep_objects \
17627 postdep_objects \
17628 predeps \
17629 postdeps \
17630 compiler_lib_search_path \
17631 LD_CXX \
17632 compiler_CXX \
17633 lt_prog_compiler_no_builtin_flag_CXX \
17634 lt_prog_compiler_wl_CXX \
17635 lt_prog_compiler_pic_CXX \
17636 lt_prog_compiler_static_CXX \
17637 lt_cv_prog_compiler_c_o_CXX \
17638 export_dynamic_flag_spec_CXX \
17639 whole_archive_flag_spec_CXX \
17640 compiler_needs_object_CXX \
17641 with_gnu_ld_CXX \
17642 allow_undefined_flag_CXX \
17643 no_undefined_flag_CXX \
17644 hardcode_libdir_flag_spec_CXX \
17645 hardcode_libdir_flag_spec_ld_CXX \
17646 hardcode_libdir_separator_CXX \
17647 fix_srcfile_path_CXX \
17648 exclude_expsyms_CXX \
17649 include_expsyms_CXX \
17650 file_list_spec_CXX \
17651 compiler_lib_search_dirs_CXX \
17652 predep_objects_CXX \
17653 postdep_objects_CXX \
17654 predeps_CXX \
17655 postdeps_CXX \
17656 compiler_lib_search_path_CXX; do
17657 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17658 *[\\\\\\\`\\"\\\$]*)
17659 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17662 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17664 esac
17665 done
17667 # Double-quote double-evaled strings.
17668 for var in reload_cmds \
17669 old_postinstall_cmds \
17670 old_postuninstall_cmds \
17671 old_archive_cmds \
17672 extract_expsyms_cmds \
17673 old_archive_from_new_cmds \
17674 old_archive_from_expsyms_cmds \
17675 archive_cmds \
17676 archive_expsym_cmds \
17677 module_cmds \
17678 module_expsym_cmds \
17679 export_symbols_cmds \
17680 prelink_cmds \
17681 postinstall_cmds \
17682 postuninstall_cmds \
17683 finish_cmds \
17684 sys_lib_search_path_spec \
17685 sys_lib_dlsearch_path_spec \
17686 old_archive_cmds_CXX \
17687 old_archive_from_new_cmds_CXX \
17688 old_archive_from_expsyms_cmds_CXX \
17689 archive_cmds_CXX \
17690 archive_expsym_cmds_CXX \
17691 module_cmds_CXX \
17692 module_expsym_cmds_CXX \
17693 export_symbols_cmds_CXX \
17694 prelink_cmds_CXX; do
17695 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17696 *[\\\\\\\`\\"\\\$]*)
17697 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17700 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17702 esac
17703 done
17705 # Fix-up fallback echo if it was mangled by the above quoting rules.
17706 case \$lt_ECHO in
17707 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17709 esac
17711 ac_aux_dir='$ac_aux_dir'
17712 xsi_shell='$xsi_shell'
17713 lt_shell_append='$lt_shell_append'
17715 # See if we are running on zsh, and set the options which allow our
17716 # commands through without removal of \ escapes INIT.
17717 if test -n "\${ZSH_VERSION+set}" ; then
17718 setopt NO_GLOB_SUBST
17722 PACKAGE='$PACKAGE'
17723 VERSION='$VERSION'
17724 TIMESTAMP='$TIMESTAMP'
17725 RM='$RM'
17726 ofile='$ofile'
17733 _ACEOF
17737 cat >>$CONFIG_STATUS <<\_ACEOF
17738 for ac_config_target in $ac_config_targets
17740 case "$ac_config_target" in
17741 # Handling of arguments.
17742 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17743 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17744 "threads.mk" ) CONFIG_FILES="$CONFIG_FILES threads.mk" ;;
17745 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17746 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17747 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17748 "include/gc_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
17749 "include/gc_ext_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
17750 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17751 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17752 { (exit 1); exit 1; }; };;
17753 esac
17754 done
17756 # If the user did not use the arguments to specify the items to instantiate,
17757 # then the envvar interface is used. Set only those that are not.
17758 # We use the long form for the default assignment because of an extremely
17759 # bizarre bug on SunOS 4.1.3.
17760 if $ac_need_defaults; then
17761 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17762 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17763 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17766 # Have a temporary directory for convenience. Make it in the build tree
17767 # simply because there is no reason to put it here, and in addition,
17768 # creating and moving files from /tmp can sometimes cause problems.
17769 # Create a temporary directory, and hook for its removal unless debugging.
17770 $debug ||
17772 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17773 trap '{ (exit 1); exit 1; }' 1 2 13 15
17776 # Create a (secure) tmp directory for tmp files.
17779 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17780 test -n "$tmp" && test -d "$tmp"
17781 } ||
17783 tmp=./confstat$$-$RANDOM
17784 (umask 077 && mkdir $tmp)
17785 } ||
17787 echo "$me: cannot create a temporary directory in ." >&2
17788 { (exit 1); exit 1; }
17791 _ACEOF
17793 cat >>$CONFIG_STATUS <<_ACEOF
17796 # CONFIG_FILES section.
17799 # No need to generate the scripts if there are no CONFIG_FILES.
17800 # This happens for instance when ./config.status config.h
17801 if test -n "\$CONFIG_FILES"; then
17802 # Protect against being on the right side of a sed subst in config.status.
17803 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17804 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17805 s,@SHELL@,$SHELL,;t t
17806 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17807 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17808 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17809 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17810 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17811 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17812 s,@exec_prefix@,$exec_prefix,;t t
17813 s,@prefix@,$prefix,;t t
17814 s,@program_transform_name@,$program_transform_name,;t t
17815 s,@bindir@,$bindir,;t t
17816 s,@sbindir@,$sbindir,;t t
17817 s,@libexecdir@,$libexecdir,;t t
17818 s,@datadir@,$datadir,;t t
17819 s,@sysconfdir@,$sysconfdir,;t t
17820 s,@sharedstatedir@,$sharedstatedir,;t t
17821 s,@localstatedir@,$localstatedir,;t t
17822 s,@libdir@,$libdir,;t t
17823 s,@includedir@,$includedir,;t t
17824 s,@oldincludedir@,$oldincludedir,;t t
17825 s,@infodir@,$infodir,;t t
17826 s,@mandir@,$mandir,;t t
17827 s,@build_alias@,$build_alias,;t t
17828 s,@host_alias@,$host_alias,;t t
17829 s,@target_alias@,$target_alias,;t t
17830 s,@DEFS@,$DEFS,;t t
17831 s,@ECHO_C@,$ECHO_C,;t t
17832 s,@ECHO_N@,$ECHO_N,;t t
17833 s,@ECHO_T@,$ECHO_T,;t t
17834 s,@LIBS@,$LIBS,;t t
17835 s,@multi_basedir@,$multi_basedir,;t t
17836 s,@build@,$build,;t t
17837 s,@build_cpu@,$build_cpu,;t t
17838 s,@build_vendor@,$build_vendor,;t t
17839 s,@build_os@,$build_os,;t t
17840 s,@host@,$host,;t t
17841 s,@host_cpu@,$host_cpu,;t t
17842 s,@host_vendor@,$host_vendor,;t t
17843 s,@host_os@,$host_os,;t t
17844 s,@target@,$target,;t t
17845 s,@target_cpu@,$target_cpu,;t t
17846 s,@target_vendor@,$target_vendor,;t t
17847 s,@target_os@,$target_os,;t t
17848 s,@target_noncanonical@,$target_noncanonical,;t t
17849 s,@mkinstalldirs@,$mkinstalldirs,;t t
17850 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17851 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17852 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17853 s,@CYGPATH_W@,$CYGPATH_W,;t t
17854 s,@PACKAGE@,$PACKAGE,;t t
17855 s,@VERSION@,$VERSION,;t t
17856 s,@ACLOCAL@,$ACLOCAL,;t t
17857 s,@AUTOCONF@,$AUTOCONF,;t t
17858 s,@AUTOMAKE@,$AUTOMAKE,;t t
17859 s,@AUTOHEADER@,$AUTOHEADER,;t t
17860 s,@MAKEINFO@,$MAKEINFO,;t t
17861 s,@install_sh@,$install_sh,;t t
17862 s,@STRIP@,$STRIP,;t t
17863 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17864 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17865 s,@mkdir_p@,$mkdir_p,;t t
17866 s,@AWK@,$AWK,;t t
17867 s,@SET_MAKE@,$SET_MAKE,;t t
17868 s,@am__leading_dot@,$am__leading_dot,;t t
17869 s,@AMTAR@,$AMTAR,;t t
17870 s,@am__tar@,$am__tar,;t t
17871 s,@am__untar@,$am__untar,;t t
17872 s,@CC@,$CC,;t t
17873 s,@ac_ct_CC@,$ac_ct_CC,;t t
17874 s,@EXEEXT@,$EXEEXT,;t t
17875 s,@OBJEXT@,$OBJEXT,;t t
17876 s,@DEPDIR@,$DEPDIR,;t t
17877 s,@am__include@,$am__include,;t t
17878 s,@am__quote@,$am__quote,;t t
17879 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17880 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17881 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17882 s,@CCDEPMODE@,$CCDEPMODE,;t t
17883 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17884 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17885 s,@CXX@,$CXX,;t t
17886 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17887 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17888 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17889 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17890 s,@CFLAGS@,$CFLAGS,;t t
17891 s,@CXXFLAGS@,$CXXFLAGS,;t t
17892 s,@CCAS@,$CCAS,;t t
17893 s,@CCASFLAGS@,$CCASFLAGS,;t t
17894 s,@AS@,$AS,;t t
17895 s,@ac_ct_AS@,$ac_ct_AS,;t t
17896 s,@AR@,$AR,;t t
17897 s,@ac_ct_AR@,$ac_ct_AR,;t t
17898 s,@RANLIB@,$RANLIB,;t t
17899 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17900 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17901 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17902 s,@MAINT@,$MAINT,;t t
17903 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
17904 s,@LIBTOOL@,$LIBTOOL,;t t
17905 s,@SED@,$SED,;t t
17906 s,@EGREP@,$EGREP,;t t
17907 s,@FGREP@,$FGREP,;t t
17908 s,@GREP@,$GREP,;t t
17909 s,@LD@,$LD,;t t
17910 s,@DUMPBIN@,$DUMPBIN,;t t
17911 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
17912 s,@NM@,$NM,;t t
17913 s,@LN_S@,$LN_S,;t t
17914 s,@OBJDUMP@,$OBJDUMP,;t t
17915 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
17916 s,@lt_ECHO@,$lt_ECHO,;t t
17917 s,@DSYMUTIL@,$DSYMUTIL,;t t
17918 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
17919 s,@NMEDIT@,$NMEDIT,;t t
17920 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
17921 s,@LIPO@,$LIPO,;t t
17922 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
17923 s,@OTOOL@,$OTOOL,;t t
17924 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
17925 s,@OTOOL64@,$OTOOL64,;t t
17926 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
17927 s,@CPP@,$CPP,;t t
17928 s,@CPPFLAGS@,$CPPFLAGS,;t t
17929 s,@LDFLAGS@,$LDFLAGS,;t t
17930 s,@CXXCPP@,$CXXCPP,;t t
17931 s,@THREADLIBS@,$THREADLIBS,;t t
17932 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
17933 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
17934 s,@extra_ldflags_libgc@,$extra_ldflags_libgc,;t t
17935 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
17936 s,@target_all@,$target_all,;t t
17937 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
17938 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
17939 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
17940 s,@addobjs@,$addobjs,;t t
17941 s,@addincludes@,$addincludes,;t t
17942 s,@addlibs@,$addlibs,;t t
17943 s,@addtests@,$addtests,;t t
17944 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
17945 s,@toolexecdir@,$toolexecdir,;t t
17946 s,@toolexeclibdir@,$toolexeclibdir,;t t
17947 s,@LIBOBJS@,$LIBOBJS,;t t
17948 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17949 CEOF
17951 _ACEOF
17953 cat >>$CONFIG_STATUS <<\_ACEOF
17954 # Split the substitutions into bite-sized pieces for seds with
17955 # small command number limits, like on Digital OSF/1 and HP-UX.
17956 ac_max_sed_lines=48
17957 ac_sed_frag=1 # Number of current file.
17958 ac_beg=1 # First line for current file.
17959 ac_end=$ac_max_sed_lines # Line after last line for current file.
17960 ac_more_lines=:
17961 ac_sed_cmds=
17962 while $ac_more_lines; do
17963 if test $ac_beg -gt 1; then
17964 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17965 else
17966 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17968 if test ! -s $tmp/subs.frag; then
17969 ac_more_lines=false
17970 else
17971 # The purpose of the label and of the branching condition is to
17972 # speed up the sed processing (if there are no `@' at all, there
17973 # is no need to browse any of the substitutions).
17974 # These are the two extra sed commands mentioned above.
17975 (echo ':t
17976 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17977 if test -z "$ac_sed_cmds"; then
17978 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17979 else
17980 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17982 ac_sed_frag=`expr $ac_sed_frag + 1`
17983 ac_beg=$ac_end
17984 ac_end=`expr $ac_end + $ac_max_sed_lines`
17986 done
17987 if test -z "$ac_sed_cmds"; then
17988 ac_sed_cmds=cat
17990 fi # test -n "$CONFIG_FILES"
17992 _ACEOF
17993 cat >>$CONFIG_STATUS <<\_ACEOF
17994 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17995 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17996 case $ac_file in
17997 - | *:- | *:-:* ) # input from stdin
17998 cat >$tmp/stdin
17999 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18000 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18001 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18002 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18003 * ) ac_file_in=$ac_file.in ;;
18004 esac
18006 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18007 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18008 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18009 X"$ac_file" : 'X\(//\)[^/]' \| \
18010 X"$ac_file" : 'X\(//\)$' \| \
18011 X"$ac_file" : 'X\(/\)' \| \
18012 . : '\(.\)' 2>/dev/null ||
18013 echo X"$ac_file" |
18014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18015 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18016 /^X\(\/\/\)$/{ s//\1/; q; }
18017 /^X\(\/\).*/{ s//\1/; q; }
18018 s/.*/./; q'`
18019 { if $as_mkdir_p; then
18020 mkdir -p "$ac_dir"
18021 else
18022 as_dir="$ac_dir"
18023 as_dirs=
18024 while test ! -d "$as_dir"; do
18025 as_dirs="$as_dir $as_dirs"
18026 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18027 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18028 X"$as_dir" : 'X\(//\)[^/]' \| \
18029 X"$as_dir" : 'X\(//\)$' \| \
18030 X"$as_dir" : 'X\(/\)' \| \
18031 . : '\(.\)' 2>/dev/null ||
18032 echo X"$as_dir" |
18033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18034 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18035 /^X\(\/\/\)$/{ s//\1/; q; }
18036 /^X\(\/\).*/{ s//\1/; q; }
18037 s/.*/./; q'`
18038 done
18039 test ! -n "$as_dirs" || mkdir $as_dirs
18040 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18041 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18042 { (exit 1); exit 1; }; }; }
18044 ac_builddir=.
18046 if test "$ac_dir" != .; then
18047 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18048 # A "../" for each directory in $ac_dir_suffix.
18049 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18050 else
18051 ac_dir_suffix= ac_top_builddir=
18054 case $srcdir in
18055 .) # No --srcdir option. We are building in place.
18056 ac_srcdir=.
18057 if test -z "$ac_top_builddir"; then
18058 ac_top_srcdir=.
18059 else
18060 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18061 fi ;;
18062 [\\/]* | ?:[\\/]* ) # Absolute path.
18063 ac_srcdir=$srcdir$ac_dir_suffix;
18064 ac_top_srcdir=$srcdir ;;
18065 *) # Relative path.
18066 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18067 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18068 esac
18070 # Do not use `cd foo && pwd` to compute absolute paths, because
18071 # the directories may not exist.
18072 case `pwd` in
18073 .) ac_abs_builddir="$ac_dir";;
18075 case "$ac_dir" in
18076 .) ac_abs_builddir=`pwd`;;
18077 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18078 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18079 esac;;
18080 esac
18081 case $ac_abs_builddir in
18082 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18084 case ${ac_top_builddir}. in
18085 .) ac_abs_top_builddir=$ac_abs_builddir;;
18086 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18087 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18088 esac;;
18089 esac
18090 case $ac_abs_builddir in
18091 .) ac_abs_srcdir=$ac_srcdir;;
18093 case $ac_srcdir in
18094 .) ac_abs_srcdir=$ac_abs_builddir;;
18095 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18096 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18097 esac;;
18098 esac
18099 case $ac_abs_builddir in
18100 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18102 case $ac_top_srcdir in
18103 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18104 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18105 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18106 esac;;
18107 esac
18110 case $INSTALL in
18111 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18112 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18113 esac
18115 if test x"$ac_file" != x-; then
18116 { echo "$as_me:$LINENO: creating $ac_file" >&5
18117 echo "$as_me: creating $ac_file" >&6;}
18118 rm -f "$ac_file"
18120 # Let's still pretend it is `configure' which instantiates (i.e., don't
18121 # use $as_me), people would be surprised to read:
18122 # /* config.h. Generated by config.status. */
18123 if test x"$ac_file" = x-; then
18124 configure_input=
18125 else
18126 configure_input="$ac_file. "
18128 configure_input=$configure_input"Generated from `echo $ac_file_in |
18129 sed 's,.*/,,'` by configure."
18131 # First look for the input files in the build tree, otherwise in the
18132 # src tree.
18133 ac_file_inputs=`IFS=:
18134 for f in $ac_file_in; do
18135 case $f in
18136 -) echo $tmp/stdin ;;
18137 [\\/$]*)
18138 # Absolute (can't be DOS-style, as IFS=:)
18139 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18140 echo "$as_me: error: cannot find input file: $f" >&2;}
18141 { (exit 1); exit 1; }; }
18142 echo "$f";;
18143 *) # Relative
18144 if test -f "$f"; then
18145 # Build tree
18146 echo "$f"
18147 elif test -f "$srcdir/$f"; then
18148 # Source tree
18149 echo "$srcdir/$f"
18150 else
18151 # /dev/null tree
18152 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18153 echo "$as_me: error: cannot find input file: $f" >&2;}
18154 { (exit 1); exit 1; }; }
18155 fi;;
18156 esac
18157 done` || { (exit 1); exit 1; }
18158 _ACEOF
18159 cat >>$CONFIG_STATUS <<_ACEOF
18160 sed "$ac_vpsub
18161 $extrasub
18162 _ACEOF
18163 cat >>$CONFIG_STATUS <<\_ACEOF
18165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18166 s,@configure_input@,$configure_input,;t t
18167 s,@srcdir@,$ac_srcdir,;t t
18168 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18169 s,@top_srcdir@,$ac_top_srcdir,;t t
18170 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18171 s,@builddir@,$ac_builddir,;t t
18172 s,@abs_builddir@,$ac_abs_builddir,;t t
18173 s,@top_builddir@,$ac_top_builddir,;t t
18174 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18175 s,@INSTALL@,$ac_INSTALL,;t t
18176 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18177 rm -f $tmp/stdin
18178 if test x"$ac_file" != x-; then
18179 mv $tmp/out $ac_file
18180 else
18181 cat $tmp/out
18182 rm -f $tmp/out
18185 done
18186 _ACEOF
18187 cat >>$CONFIG_STATUS <<\_ACEOF
18190 # CONFIG_HEADER section.
18193 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18194 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18196 # ac_d sets the value in "#define NAME VALUE" lines.
18197 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18198 ac_dB='[ ].*$,\1#\2'
18199 ac_dC=' '
18200 ac_dD=',;t'
18201 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18202 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18203 ac_uB='$,\1#\2define\3'
18204 ac_uC=' '
18205 ac_uD=',;t'
18207 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18208 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18209 case $ac_file in
18210 - | *:- | *:-:* ) # input from stdin
18211 cat >$tmp/stdin
18212 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18213 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18214 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18215 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18216 * ) ac_file_in=$ac_file.in ;;
18217 esac
18219 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18220 echo "$as_me: creating $ac_file" >&6;}
18222 # First look for the input files in the build tree, otherwise in the
18223 # src tree.
18224 ac_file_inputs=`IFS=:
18225 for f in $ac_file_in; do
18226 case $f in
18227 -) echo $tmp/stdin ;;
18228 [\\/$]*)
18229 # Absolute (can't be DOS-style, as IFS=:)
18230 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18231 echo "$as_me: error: cannot find input file: $f" >&2;}
18232 { (exit 1); exit 1; }; }
18233 # Do quote $f, to prevent DOS paths from being IFS'd.
18234 echo "$f";;
18235 *) # Relative
18236 if test -f "$f"; then
18237 # Build tree
18238 echo "$f"
18239 elif test -f "$srcdir/$f"; then
18240 # Source tree
18241 echo "$srcdir/$f"
18242 else
18243 # /dev/null tree
18244 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18245 echo "$as_me: error: cannot find input file: $f" >&2;}
18246 { (exit 1); exit 1; }; }
18247 fi;;
18248 esac
18249 done` || { (exit 1); exit 1; }
18250 # Remove the trailing spaces.
18251 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18253 _ACEOF
18255 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18256 # `conftest.undefs', that substitutes the proper values into
18257 # config.h.in to produce config.h. The first handles `#define'
18258 # templates, and the second `#undef' templates.
18259 # And first: Protect against being on the right side of a sed subst in
18260 # config.status. Protect against being in an unquoted here document
18261 # in config.status.
18262 rm -f conftest.defines conftest.undefs
18263 # Using a here document instead of a string reduces the quoting nightmare.
18264 # Putting comments in sed scripts is not portable.
18266 # `end' is used to avoid that the second main sed command (meant for
18267 # 0-ary CPP macros) applies to n-ary macro definitions.
18268 # See the Autoconf documentation for `clear'.
18269 cat >confdef2sed.sed <<\_ACEOF
18270 s/[\\&,]/\\&/g
18271 s,[\\$`],\\&,g
18272 t clear
18273 : clear
18274 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18275 t end
18276 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18277 : end
18278 _ACEOF
18279 # If some macros were called several times there might be several times
18280 # the same #defines, which is useless. Nevertheless, we may not want to
18281 # sort them, since we want the *last* AC-DEFINE to be honored.
18282 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18283 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18284 rm -f confdef2sed.sed
18286 # This sed command replaces #undef with comments. This is necessary, for
18287 # example, in the case of _POSIX_SOURCE, which is predefined and required
18288 # on some systems where configure will not decide to define it.
18289 cat >>conftest.undefs <<\_ACEOF
18290 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18291 _ACEOF
18293 # Break up conftest.defines because some shells have a limit on the size
18294 # of here documents, and old seds have small limits too (100 cmds).
18295 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18296 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18297 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18298 echo ' :' >>$CONFIG_STATUS
18299 rm -f conftest.tail
18300 while grep . conftest.defines >/dev/null
18302 # Write a limited-size here document to $tmp/defines.sed.
18303 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18304 # Speed up: don't consider the non `#define' lines.
18305 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18306 # Work around the forget-to-reset-the-flag bug.
18307 echo 't clr' >>$CONFIG_STATUS
18308 echo ': clr' >>$CONFIG_STATUS
18309 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18310 echo 'CEOF
18311 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18312 rm -f $tmp/in
18313 mv $tmp/out $tmp/in
18314 ' >>$CONFIG_STATUS
18315 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18316 rm -f conftest.defines
18317 mv conftest.tail conftest.defines
18318 done
18319 rm -f conftest.defines
18320 echo ' fi # grep' >>$CONFIG_STATUS
18321 echo >>$CONFIG_STATUS
18323 # Break up conftest.undefs because some shells have a limit on the size
18324 # of here documents, and old seds have small limits too (100 cmds).
18325 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18326 rm -f conftest.tail
18327 while grep . conftest.undefs >/dev/null
18329 # Write a limited-size here document to $tmp/undefs.sed.
18330 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18331 # Speed up: don't consider the non `#undef'
18332 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18333 # Work around the forget-to-reset-the-flag bug.
18334 echo 't clr' >>$CONFIG_STATUS
18335 echo ': clr' >>$CONFIG_STATUS
18336 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18337 echo 'CEOF
18338 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18339 rm -f $tmp/in
18340 mv $tmp/out $tmp/in
18341 ' >>$CONFIG_STATUS
18342 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18343 rm -f conftest.undefs
18344 mv conftest.tail conftest.undefs
18345 done
18346 rm -f conftest.undefs
18348 cat >>$CONFIG_STATUS <<\_ACEOF
18349 # Let's still pretend it is `configure' which instantiates (i.e., don't
18350 # use $as_me), people would be surprised to read:
18351 # /* config.h. Generated by config.status. */
18352 if test x"$ac_file" = x-; then
18353 echo "/* Generated by configure. */" >$tmp/config.h
18354 else
18355 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18357 cat $tmp/in >>$tmp/config.h
18358 rm -f $tmp/in
18359 if test x"$ac_file" != x-; then
18360 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18361 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18362 echo "$as_me: $ac_file is unchanged" >&6;}
18363 else
18364 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18365 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18366 X"$ac_file" : 'X\(//\)[^/]' \| \
18367 X"$ac_file" : 'X\(//\)$' \| \
18368 X"$ac_file" : 'X\(/\)' \| \
18369 . : '\(.\)' 2>/dev/null ||
18370 echo X"$ac_file" |
18371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18373 /^X\(\/\/\)$/{ s//\1/; q; }
18374 /^X\(\/\).*/{ s//\1/; q; }
18375 s/.*/./; q'`
18376 { if $as_mkdir_p; then
18377 mkdir -p "$ac_dir"
18378 else
18379 as_dir="$ac_dir"
18380 as_dirs=
18381 while test ! -d "$as_dir"; do
18382 as_dirs="$as_dir $as_dirs"
18383 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18385 X"$as_dir" : 'X\(//\)[^/]' \| \
18386 X"$as_dir" : 'X\(//\)$' \| \
18387 X"$as_dir" : 'X\(/\)' \| \
18388 . : '\(.\)' 2>/dev/null ||
18389 echo X"$as_dir" |
18390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18391 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18392 /^X\(\/\/\)$/{ s//\1/; q; }
18393 /^X\(\/\).*/{ s//\1/; q; }
18394 s/.*/./; q'`
18395 done
18396 test ! -n "$as_dirs" || mkdir $as_dirs
18397 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18398 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18399 { (exit 1); exit 1; }; }; }
18401 rm -f $ac_file
18402 mv $tmp/config.h $ac_file
18404 else
18405 cat $tmp/config.h
18406 rm -f $tmp/config.h
18408 # Compute $ac_file's index in $config_headers.
18409 _am_stamp_count=1
18410 for _am_header in $config_headers :; do
18411 case $_am_header in
18412 $ac_file | $ac_file:* )
18413 break ;;
18415 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18416 esac
18417 done
18418 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18419 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18420 X$ac_file : 'X\(//\)[^/]' \| \
18421 X$ac_file : 'X\(//\)$' \| \
18422 X$ac_file : 'X\(/\)' \| \
18423 . : '\(.\)' 2>/dev/null ||
18424 echo X$ac_file |
18425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18426 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18427 /^X\(\/\/\)$/{ s//\1/; q; }
18428 /^X\(\/\).*/{ s//\1/; q; }
18429 s/.*/./; q'`/stamp-h$_am_stamp_count
18430 done
18431 _ACEOF
18432 cat >>$CONFIG_STATUS <<\_ACEOF
18435 # CONFIG_COMMANDS section.
18437 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18438 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18439 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18440 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18441 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18442 X"$ac_dest" : 'X\(//\)[^/]' \| \
18443 X"$ac_dest" : 'X\(//\)$' \| \
18444 X"$ac_dest" : 'X\(/\)' \| \
18445 . : '\(.\)' 2>/dev/null ||
18446 echo X"$ac_dest" |
18447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18449 /^X\(\/\/\)$/{ s//\1/; q; }
18450 /^X\(\/\).*/{ s//\1/; q; }
18451 s/.*/./; q'`
18452 { if $as_mkdir_p; then
18453 mkdir -p "$ac_dir"
18454 else
18455 as_dir="$ac_dir"
18456 as_dirs=
18457 while test ! -d "$as_dir"; do
18458 as_dirs="$as_dir $as_dirs"
18459 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18460 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18461 X"$as_dir" : 'X\(//\)[^/]' \| \
18462 X"$as_dir" : 'X\(//\)$' \| \
18463 X"$as_dir" : 'X\(/\)' \| \
18464 . : '\(.\)' 2>/dev/null ||
18465 echo X"$as_dir" |
18466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18467 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18468 /^X\(\/\/\)$/{ s//\1/; q; }
18469 /^X\(\/\).*/{ s//\1/; q; }
18470 s/.*/./; q'`
18471 done
18472 test ! -n "$as_dirs" || mkdir $as_dirs
18473 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18474 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18475 { (exit 1); exit 1; }; }; }
18477 ac_builddir=.
18479 if test "$ac_dir" != .; then
18480 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18481 # A "../" for each directory in $ac_dir_suffix.
18482 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18483 else
18484 ac_dir_suffix= ac_top_builddir=
18487 case $srcdir in
18488 .) # No --srcdir option. We are building in place.
18489 ac_srcdir=.
18490 if test -z "$ac_top_builddir"; then
18491 ac_top_srcdir=.
18492 else
18493 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18494 fi ;;
18495 [\\/]* | ?:[\\/]* ) # Absolute path.
18496 ac_srcdir=$srcdir$ac_dir_suffix;
18497 ac_top_srcdir=$srcdir ;;
18498 *) # Relative path.
18499 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18500 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18501 esac
18503 # Do not use `cd foo && pwd` to compute absolute paths, because
18504 # the directories may not exist.
18505 case `pwd` in
18506 .) ac_abs_builddir="$ac_dir";;
18508 case "$ac_dir" in
18509 .) ac_abs_builddir=`pwd`;;
18510 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18511 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18512 esac;;
18513 esac
18514 case $ac_abs_builddir in
18515 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18517 case ${ac_top_builddir}. in
18518 .) ac_abs_top_builddir=$ac_abs_builddir;;
18519 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18520 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18521 esac;;
18522 esac
18523 case $ac_abs_builddir in
18524 .) ac_abs_srcdir=$ac_srcdir;;
18526 case $ac_srcdir in
18527 .) ac_abs_srcdir=$ac_abs_builddir;;
18528 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18529 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18530 esac;;
18531 esac
18532 case $ac_abs_builddir in
18533 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18535 case $ac_top_srcdir in
18536 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18537 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18538 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18539 esac;;
18540 esac
18543 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18544 echo "$as_me: executing $ac_dest commands" >&6;}
18545 case $ac_dest in
18546 default-1 )
18547 # Only add multilib support code if we just rebuilt the top-level
18548 # Makefile.
18549 case " $CONFIG_FILES " in
18550 *" Makefile "*)
18551 ac_file=Makefile . ${multi_basedir}/config-ml.in
18553 esac ;;
18554 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18555 # Strip MF so we end up with the name of the file.
18556 mf=`echo "$mf" | sed -e 's/:.*$//'`
18557 # Check whether this is an Automake generated Makefile or not.
18558 # We used to match only the files named `Makefile.in', but
18559 # some people rename them; so instead we look at the file content.
18560 # Grep'ing the first line is not enough: some people post-process
18561 # each Makefile.in and add a new line on top of each file to say so.
18562 # So let's grep whole file.
18563 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18564 dirpart=`(dirname "$mf") 2>/dev/null ||
18565 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18566 X"$mf" : 'X\(//\)[^/]' \| \
18567 X"$mf" : 'X\(//\)$' \| \
18568 X"$mf" : 'X\(/\)' \| \
18569 . : '\(.\)' 2>/dev/null ||
18570 echo X"$mf" |
18571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18573 /^X\(\/\/\)$/{ s//\1/; q; }
18574 /^X\(\/\).*/{ s//\1/; q; }
18575 s/.*/./; q'`
18576 else
18577 continue
18579 # Extract the definition of DEPDIR, am__include, and am__quote
18580 # from the Makefile without running `make'.
18581 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18582 test -z "$DEPDIR" && continue
18583 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18584 test -z "am__include" && continue
18585 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18586 # When using ansi2knr, U may be empty or an underscore; expand it
18587 U=`sed -n 's/^U = //p' < "$mf"`
18588 # Find all dependency output files, they are included files with
18589 # $(DEPDIR) in their names. We invoke sed twice because it is the
18590 # simplest approach to changing $(DEPDIR) to its actual value in the
18591 # expansion.
18592 for file in `sed -n "
18593 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18594 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18595 # Make sure the directory exists.
18596 test -f "$dirpart/$file" && continue
18597 fdir=`(dirname "$file") 2>/dev/null ||
18598 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18599 X"$file" : 'X\(//\)[^/]' \| \
18600 X"$file" : 'X\(//\)$' \| \
18601 X"$file" : 'X\(/\)' \| \
18602 . : '\(.\)' 2>/dev/null ||
18603 echo X"$file" |
18604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18606 /^X\(\/\/\)$/{ s//\1/; q; }
18607 /^X\(\/\).*/{ s//\1/; q; }
18608 s/.*/./; q'`
18609 { if $as_mkdir_p; then
18610 mkdir -p $dirpart/$fdir
18611 else
18612 as_dir=$dirpart/$fdir
18613 as_dirs=
18614 while test ! -d "$as_dir"; do
18615 as_dirs="$as_dir $as_dirs"
18616 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18618 X"$as_dir" : 'X\(//\)[^/]' \| \
18619 X"$as_dir" : 'X\(//\)$' \| \
18620 X"$as_dir" : 'X\(/\)' \| \
18621 . : '\(.\)' 2>/dev/null ||
18622 echo X"$as_dir" |
18623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18625 /^X\(\/\/\)$/{ s//\1/; q; }
18626 /^X\(\/\).*/{ s//\1/; q; }
18627 s/.*/./; q'`
18628 done
18629 test ! -n "$as_dirs" || mkdir $as_dirs
18630 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18631 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18632 { (exit 1); exit 1; }; }; }
18634 # echo "creating $dirpart/$file"
18635 echo '# dummy' > "$dirpart/$file"
18636 done
18637 done
18639 libtool )
18641 # See if we are running on zsh, and set the options which allow our
18642 # commands through without removal of \ escapes.
18643 if test -n "${ZSH_VERSION+set}" ; then
18644 setopt NO_GLOB_SUBST
18647 cfgfile="${ofile}T"
18648 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18649 $RM "$cfgfile"
18651 cat <<_LT_EOF >> "$cfgfile"
18652 #! $SHELL
18654 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18655 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18656 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18657 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18659 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18660 # 2006, 2007, 2008 Free Software Foundation, Inc.
18661 # Written by Gordon Matzigkeit, 1996
18663 # This file is part of GNU Libtool.
18665 # GNU Libtool is free software; you can redistribute it and/or
18666 # modify it under the terms of the GNU General Public License as
18667 # published by the Free Software Foundation; either version 2 of
18668 # the License, or (at your option) any later version.
18670 # As a special exception to the GNU General Public License,
18671 # if you distribute this file as part of a program or library that
18672 # is built using GNU Libtool, you may include this file under the
18673 # same distribution terms that you use for the rest of that program.
18675 # GNU Libtool is distributed in the hope that it will be useful,
18676 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18677 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18678 # GNU General Public License for more details.
18680 # You should have received a copy of the GNU General Public License
18681 # along with GNU Libtool; see the file COPYING. If not, a copy
18682 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18683 # obtained by writing to the Free Software Foundation, Inc.,
18684 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18687 # The names of the tagged configurations supported by this script.
18688 available_tags="CXX "
18690 # ### BEGIN LIBTOOL CONFIG
18692 # Which release of libtool.m4 was used?
18693 macro_version=$macro_version
18694 macro_revision=$macro_revision
18696 # Whether or not to build shared libraries.
18697 build_libtool_libs=$enable_shared
18699 # Whether or not to build static libraries.
18700 build_old_libs=$enable_static
18702 # What type of objects to build.
18703 pic_mode=$pic_mode
18705 # Whether or not to optimize for fast installation.
18706 fast_install=$enable_fast_install
18708 # The host system.
18709 host_alias=$host_alias
18710 host=$host
18711 host_os=$host_os
18713 # The build system.
18714 build_alias=$build_alias
18715 build=$build
18716 build_os=$build_os
18718 # A sed program that does not truncate output.
18719 SED=$lt_SED
18721 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18722 Xsed="\$SED -e 1s/^X//"
18724 # A grep program that handles long lines.
18725 GREP=$lt_GREP
18727 # An ERE matcher.
18728 EGREP=$lt_EGREP
18730 # A literal string matcher.
18731 FGREP=$lt_FGREP
18733 # A BSD- or MS-compatible name lister.
18734 NM=$lt_NM
18736 # Whether we need soft or hard links.
18737 LN_S=$lt_LN_S
18739 # What is the maximum length of a command?
18740 max_cmd_len=$max_cmd_len
18742 # Object file suffix (normally "o").
18743 objext=$ac_objext
18745 # Executable file suffix (normally "").
18746 exeext=$exeext
18748 # whether the shell understands "unset".
18749 lt_unset=$lt_unset
18751 # turn spaces into newlines.
18752 SP2NL=$lt_lt_SP2NL
18754 # turn newlines into spaces.
18755 NL2SP=$lt_lt_NL2SP
18757 # How to create reloadable object files.
18758 reload_flag=$lt_reload_flag
18759 reload_cmds=$lt_reload_cmds
18761 # An object symbol dumper.
18762 OBJDUMP=$lt_OBJDUMP
18764 # Method to check whether dependent libraries are shared objects.
18765 deplibs_check_method=$lt_deplibs_check_method
18767 # Command to use when deplibs_check_method == "file_magic".
18768 file_magic_cmd=$lt_file_magic_cmd
18770 # The archiver.
18771 AR=$lt_AR
18772 AR_FLAGS=$lt_AR_FLAGS
18774 # A symbol stripping program.
18775 STRIP=$lt_STRIP
18777 # Commands used to install an old-style archive.
18778 RANLIB=$lt_RANLIB
18779 old_postinstall_cmds=$lt_old_postinstall_cmds
18780 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18782 # A C compiler.
18783 LTCC=$lt_CC
18785 # LTCC compiler flags.
18786 LTCFLAGS=$lt_CFLAGS
18788 # Take the output of nm and produce a listing of raw symbols and C names.
18789 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18791 # Transform the output of nm in a proper C declaration.
18792 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18794 # Transform the output of nm in a C name address pair.
18795 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18797 # Transform the output of nm in a C name address pair when lib prefix is needed.
18798 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18800 # The name of the directory that contains temporary libtool files.
18801 objdir=$objdir
18803 # Shell to use when invoking shell scripts.
18804 SHELL=$lt_SHELL
18806 # An echo program that does not interpret backslashes.
18807 ECHO=$lt_ECHO
18809 # Used to examine libraries when file_magic_cmd begins with "file".
18810 MAGIC_CMD=$MAGIC_CMD
18812 # Must we lock files when doing compilation?
18813 need_locks=$lt_need_locks
18815 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18816 DSYMUTIL=$lt_DSYMUTIL
18818 # Tool to change global to local symbols on Mac OS X.
18819 NMEDIT=$lt_NMEDIT
18821 # Tool to manipulate fat objects and archives on Mac OS X.
18822 LIPO=$lt_LIPO
18824 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18825 OTOOL=$lt_OTOOL
18827 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18828 OTOOL64=$lt_OTOOL64
18830 # Old archive suffix (normally "a").
18831 libext=$libext
18833 # Shared library suffix (normally ".so").
18834 shrext_cmds=$lt_shrext_cmds
18836 # The commands to extract the exported symbol list from a shared archive.
18837 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18839 # Variables whose values should be saved in libtool wrapper scripts and
18840 # restored at link time.
18841 variables_saved_for_relink=$lt_variables_saved_for_relink
18843 # Do we need the "lib" prefix for modules?
18844 need_lib_prefix=$need_lib_prefix
18846 # Do we need a version for libraries?
18847 need_version=$need_version
18849 # Library versioning type.
18850 version_type=$version_type
18852 # Shared library runtime path variable.
18853 runpath_var=$runpath_var
18855 # Shared library path variable.
18856 shlibpath_var=$shlibpath_var
18858 # Is shlibpath searched before the hard-coded library search path?
18859 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18861 # Format of library name prefix.
18862 libname_spec=$lt_libname_spec
18864 # List of archive names. First name is the real one, the rest are links.
18865 # The last name is the one that the linker finds with -lNAME
18866 library_names_spec=$lt_library_names_spec
18868 # The coded name of the library, if different from the real name.
18869 soname_spec=$lt_soname_spec
18871 # Command to use after installation of a shared archive.
18872 postinstall_cmds=$lt_postinstall_cmds
18874 # Command to use after uninstallation of a shared archive.
18875 postuninstall_cmds=$lt_postuninstall_cmds
18877 # Commands used to finish a libtool library installation in a directory.
18878 finish_cmds=$lt_finish_cmds
18880 # As "finish_cmds", except a single script fragment to be evaled but
18881 # not shown.
18882 finish_eval=$lt_finish_eval
18884 # Whether we should hardcode library paths into libraries.
18885 hardcode_into_libs=$hardcode_into_libs
18887 # Compile-time system search path for libraries.
18888 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18890 # Run-time system search path for libraries.
18891 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18893 # Whether dlopen is supported.
18894 dlopen_support=$enable_dlopen
18896 # Whether dlopen of programs is supported.
18897 dlopen_self=$enable_dlopen_self
18899 # Whether dlopen of statically linked programs is supported.
18900 dlopen_self_static=$enable_dlopen_self_static
18902 # Commands to strip libraries.
18903 old_striplib=$lt_old_striplib
18904 striplib=$lt_striplib
18907 # The linker used to build libraries.
18908 LD=$lt_LD
18910 # Commands used to build an old-style archive.
18911 old_archive_cmds=$lt_old_archive_cmds
18913 # A language specific compiler.
18914 CC=$lt_compiler
18916 # Is the compiler the GNU compiler?
18917 with_gcc=$GCC
18919 # Compiler flag to turn off builtin functions.
18920 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18922 # How to pass a linker flag through the compiler.
18923 wl=$lt_lt_prog_compiler_wl
18925 # Additional compiler flags for building library objects.
18926 pic_flag=$lt_lt_prog_compiler_pic
18928 # Compiler flag to prevent dynamic linking.
18929 link_static_flag=$lt_lt_prog_compiler_static
18931 # Does compiler simultaneously support -c and -o options?
18932 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18934 # Whether or not to add -lc for building shared libraries.
18935 build_libtool_need_lc=$archive_cmds_need_lc
18937 # Whether or not to disallow shared libs when runtime libs are static.
18938 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18940 # Compiler flag to allow reflexive dlopens.
18941 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18943 # Compiler flag to generate shared objects directly from archives.
18944 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18946 # Whether the compiler copes with passing no objects directly.
18947 compiler_needs_object=$lt_compiler_needs_object
18949 # Create an old-style archive from a shared archive.
18950 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18952 # Create a temporary old-style archive to link instead of a shared archive.
18953 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18955 # Commands used to build a shared archive.
18956 archive_cmds=$lt_archive_cmds
18957 archive_expsym_cmds=$lt_archive_expsym_cmds
18959 # Commands used to build a loadable module if different from building
18960 # a shared archive.
18961 module_cmds=$lt_module_cmds
18962 module_expsym_cmds=$lt_module_expsym_cmds
18964 # Whether we are building with GNU ld or not.
18965 with_gnu_ld=$lt_with_gnu_ld
18967 # Flag that allows shared libraries with undefined symbols to be built.
18968 allow_undefined_flag=$lt_allow_undefined_flag
18970 # Flag that enforces no undefined symbols.
18971 no_undefined_flag=$lt_no_undefined_flag
18973 # Flag to hardcode \$libdir into a binary during linking.
18974 # This must work even if \$libdir does not exist
18975 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18977 # If ld is used when linking, flag to hardcode \$libdir into a binary
18978 # during linking. This must work even if \$libdir does not exist.
18979 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18981 # Whether we need a single "-rpath" flag with a separated argument.
18982 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18984 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18985 # DIR into the resulting binary.
18986 hardcode_direct=$hardcode_direct
18988 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18989 # DIR into the resulting binary and the resulting library dependency is
18990 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18991 # library is relocated.
18992 hardcode_direct_absolute=$hardcode_direct_absolute
18994 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18995 # into the resulting binary.
18996 hardcode_minus_L=$hardcode_minus_L
18998 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18999 # into the resulting binary.
19000 hardcode_shlibpath_var=$hardcode_shlibpath_var
19002 # Set to "yes" if building a shared library automatically hardcodes DIR
19003 # into the library and all subsequent libraries and executables linked
19004 # against it.
19005 hardcode_automatic=$hardcode_automatic
19007 # Set to yes if linker adds runtime paths of dependent libraries
19008 # to runtime path list.
19009 inherit_rpath=$inherit_rpath
19011 # Whether libtool must link a program against all its dependency libraries.
19012 link_all_deplibs=$link_all_deplibs
19014 # Fix the shell variable \$srcfile for the compiler.
19015 fix_srcfile_path=$lt_fix_srcfile_path
19017 # Set to "yes" if exported symbols are required.
19018 always_export_symbols=$always_export_symbols
19020 # The commands to list exported symbols.
19021 export_symbols_cmds=$lt_export_symbols_cmds
19023 # Symbols that should not be listed in the preloaded symbols.
19024 exclude_expsyms=$lt_exclude_expsyms
19026 # Symbols that must always be exported.
19027 include_expsyms=$lt_include_expsyms
19029 # Commands necessary for linking programs (against libraries) with templates.
19030 prelink_cmds=$lt_prelink_cmds
19032 # Specify filename containing input files.
19033 file_list_spec=$lt_file_list_spec
19035 # How to hardcode a shared library path into an executable.
19036 hardcode_action=$hardcode_action
19038 # The directories searched by this compiler when creating a shared library.
19039 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19041 # Dependencies to place before and after the objects being linked to
19042 # create a shared library.
19043 predep_objects=$lt_predep_objects
19044 postdep_objects=$lt_postdep_objects
19045 predeps=$lt_predeps
19046 postdeps=$lt_postdeps
19048 # The library search path used internally by the compiler when linking
19049 # a shared library.
19050 compiler_lib_search_path=$lt_compiler_lib_search_path
19052 # ### END LIBTOOL CONFIG
19054 _LT_EOF
19056 case $host_os in
19057 aix3*)
19058 cat <<\_LT_EOF >> "$cfgfile"
19059 # AIX sometimes has problems with the GCC collect2 program. For some
19060 # reason, if we set the COLLECT_NAMES environment variable, the problems
19061 # vanish in a puff of smoke.
19062 if test "X${COLLECT_NAMES+set}" != Xset; then
19063 COLLECT_NAMES=
19064 export COLLECT_NAMES
19066 _LT_EOF
19068 esac
19071 ltmain="$ac_aux_dir/ltmain.sh"
19074 # We use sed instead of cat because bash on DJGPP gets confused if
19075 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19076 # text mode, it properly converts lines to CR/LF. This bash problem
19077 # is reportedly fixed, but why not run on old versions too?
19078 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19079 || (rm -f "$cfgfile"; exit 1)
19081 case $xsi_shell in
19082 yes)
19083 cat << \_LT_EOF >> "$cfgfile"
19085 # func_dirname file append nondir_replacement
19086 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19087 # otherwise set result to NONDIR_REPLACEMENT.
19088 func_dirname ()
19090 case ${1} in
19091 */*) func_dirname_result="${1%/*}${2}" ;;
19092 * ) func_dirname_result="${3}" ;;
19093 esac
19096 # func_basename file
19097 func_basename ()
19099 func_basename_result="${1##*/}"
19102 # func_dirname_and_basename file append nondir_replacement
19103 # perform func_basename and func_dirname in a single function
19104 # call:
19105 # dirname: Compute the dirname of FILE. If nonempty,
19106 # add APPEND to the result, otherwise set result
19107 # to NONDIR_REPLACEMENT.
19108 # value returned in "$func_dirname_result"
19109 # basename: Compute filename of FILE.
19110 # value retuned in "$func_basename_result"
19111 # Implementation must be kept synchronized with func_dirname
19112 # and func_basename. For efficiency, we do not delegate to
19113 # those functions but instead duplicate the functionality here.
19114 func_dirname_and_basename ()
19116 case ${1} in
19117 */*) func_dirname_result="${1%/*}${2}" ;;
19118 * ) func_dirname_result="${3}" ;;
19119 esac
19120 func_basename_result="${1##*/}"
19123 # func_stripname prefix suffix name
19124 # strip PREFIX and SUFFIX off of NAME.
19125 # PREFIX and SUFFIX must not contain globbing or regex special
19126 # characters, hashes, percent signs, but SUFFIX may contain a leading
19127 # dot (in which case that matches only a dot).
19128 func_stripname ()
19130 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19131 # positional parameters, so assign one to ordinary parameter first.
19132 func_stripname_result=${3}
19133 func_stripname_result=${func_stripname_result#"${1}"}
19134 func_stripname_result=${func_stripname_result%"${2}"}
19137 # func_opt_split
19138 func_opt_split ()
19140 func_opt_split_opt=${1%%=*}
19141 func_opt_split_arg=${1#*=}
19144 # func_lo2o object
19145 func_lo2o ()
19147 case ${1} in
19148 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19149 *) func_lo2o_result=${1} ;;
19150 esac
19153 # func_xform libobj-or-source
19154 func_xform ()
19156 func_xform_result=${1%.*}.lo
19159 # func_arith arithmetic-term...
19160 func_arith ()
19162 func_arith_result=$(( $* ))
19165 # func_len string
19166 # STRING may not start with a hyphen.
19167 func_len ()
19169 func_len_result=${#1}
19172 _LT_EOF
19174 *) # Bourne compatible functions.
19175 cat << \_LT_EOF >> "$cfgfile"
19177 # func_dirname file append nondir_replacement
19178 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19179 # otherwise set result to NONDIR_REPLACEMENT.
19180 func_dirname ()
19182 # Extract subdirectory from the argument.
19183 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19184 if test "X$func_dirname_result" = "X${1}"; then
19185 func_dirname_result="${3}"
19186 else
19187 func_dirname_result="$func_dirname_result${2}"
19191 # func_basename file
19192 func_basename ()
19194 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19198 # func_stripname prefix suffix name
19199 # strip PREFIX and SUFFIX off of NAME.
19200 # PREFIX and SUFFIX must not contain globbing or regex special
19201 # characters, hashes, percent signs, but SUFFIX may contain a leading
19202 # dot (in which case that matches only a dot).
19203 # func_strip_suffix prefix name
19204 func_stripname ()
19206 case ${2} in
19207 .*) func_stripname_result=`$ECHO "X${3}" \
19208 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19209 *) func_stripname_result=`$ECHO "X${3}" \
19210 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19211 esac
19214 # sed scripts:
19215 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19216 my_sed_long_arg='1s/^-[^=]*=//'
19218 # func_opt_split
19219 func_opt_split ()
19221 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19222 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19225 # func_lo2o object
19226 func_lo2o ()
19228 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19231 # func_xform libobj-or-source
19232 func_xform ()
19234 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19237 # func_arith arithmetic-term...
19238 func_arith ()
19240 func_arith_result=`expr "$@"`
19243 # func_len string
19244 # STRING may not start with a hyphen.
19245 func_len ()
19247 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19250 _LT_EOF
19251 esac
19253 case $lt_shell_append in
19254 yes)
19255 cat << \_LT_EOF >> "$cfgfile"
19257 # func_append var value
19258 # Append VALUE to the end of shell variable VAR.
19259 func_append ()
19261 eval "$1+=\$2"
19263 _LT_EOF
19266 cat << \_LT_EOF >> "$cfgfile"
19268 # func_append var value
19269 # Append VALUE to the end of shell variable VAR.
19270 func_append ()
19272 eval "$1=\$$1\$2"
19275 _LT_EOF
19277 esac
19280 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19281 || (rm -f "$cfgfile"; exit 1)
19283 mv -f "$cfgfile" "$ofile" ||
19284 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19285 chmod +x "$ofile"
19288 cat <<_LT_EOF >> "$ofile"
19290 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19292 # The linker used to build libraries.
19293 LD=$lt_LD_CXX
19295 # Commands used to build an old-style archive.
19296 old_archive_cmds=$lt_old_archive_cmds_CXX
19298 # A language specific compiler.
19299 CC=$lt_compiler_CXX
19301 # Is the compiler the GNU compiler?
19302 with_gcc=$GCC_CXX
19304 # Compiler flag to turn off builtin functions.
19305 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19307 # How to pass a linker flag through the compiler.
19308 wl=$lt_lt_prog_compiler_wl_CXX
19310 # Additional compiler flags for building library objects.
19311 pic_flag=$lt_lt_prog_compiler_pic_CXX
19313 # Compiler flag to prevent dynamic linking.
19314 link_static_flag=$lt_lt_prog_compiler_static_CXX
19316 # Does compiler simultaneously support -c and -o options?
19317 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19319 # Whether or not to add -lc for building shared libraries.
19320 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19322 # Whether or not to disallow shared libs when runtime libs are static.
19323 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19325 # Compiler flag to allow reflexive dlopens.
19326 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19328 # Compiler flag to generate shared objects directly from archives.
19329 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19331 # Whether the compiler copes with passing no objects directly.
19332 compiler_needs_object=$lt_compiler_needs_object_CXX
19334 # Create an old-style archive from a shared archive.
19335 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19337 # Create a temporary old-style archive to link instead of a shared archive.
19338 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19340 # Commands used to build a shared archive.
19341 archive_cmds=$lt_archive_cmds_CXX
19342 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19344 # Commands used to build a loadable module if different from building
19345 # a shared archive.
19346 module_cmds=$lt_module_cmds_CXX
19347 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19349 # Whether we are building with GNU ld or not.
19350 with_gnu_ld=$lt_with_gnu_ld_CXX
19352 # Flag that allows shared libraries with undefined symbols to be built.
19353 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19355 # Flag that enforces no undefined symbols.
19356 no_undefined_flag=$lt_no_undefined_flag_CXX
19358 # Flag to hardcode \$libdir into a binary during linking.
19359 # This must work even if \$libdir does not exist
19360 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19362 # If ld is used when linking, flag to hardcode \$libdir into a binary
19363 # during linking. This must work even if \$libdir does not exist.
19364 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19366 # Whether we need a single "-rpath" flag with a separated argument.
19367 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19369 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19370 # DIR into the resulting binary.
19371 hardcode_direct=$hardcode_direct_CXX
19373 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19374 # DIR into the resulting binary and the resulting library dependency is
19375 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19376 # library is relocated.
19377 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19379 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19380 # into the resulting binary.
19381 hardcode_minus_L=$hardcode_minus_L_CXX
19383 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19384 # into the resulting binary.
19385 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19387 # Set to "yes" if building a shared library automatically hardcodes DIR
19388 # into the library and all subsequent libraries and executables linked
19389 # against it.
19390 hardcode_automatic=$hardcode_automatic_CXX
19392 # Set to yes if linker adds runtime paths of dependent libraries
19393 # to runtime path list.
19394 inherit_rpath=$inherit_rpath_CXX
19396 # Whether libtool must link a program against all its dependency libraries.
19397 link_all_deplibs=$link_all_deplibs_CXX
19399 # Fix the shell variable \$srcfile for the compiler.
19400 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19402 # Set to "yes" if exported symbols are required.
19403 always_export_symbols=$always_export_symbols_CXX
19405 # The commands to list exported symbols.
19406 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19408 # Symbols that should not be listed in the preloaded symbols.
19409 exclude_expsyms=$lt_exclude_expsyms_CXX
19411 # Symbols that must always be exported.
19412 include_expsyms=$lt_include_expsyms_CXX
19414 # Commands necessary for linking programs (against libraries) with templates.
19415 prelink_cmds=$lt_prelink_cmds_CXX
19417 # Specify filename containing input files.
19418 file_list_spec=$lt_file_list_spec_CXX
19420 # How to hardcode a shared library path into an executable.
19421 hardcode_action=$hardcode_action_CXX
19423 # The directories searched by this compiler when creating a shared library.
19424 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19426 # Dependencies to place before and after the objects being linked to
19427 # create a shared library.
19428 predep_objects=$lt_predep_objects_CXX
19429 postdep_objects=$lt_postdep_objects_CXX
19430 predeps=$lt_predeps_CXX
19431 postdeps=$lt_postdeps_CXX
19433 # The library search path used internally by the compiler when linking
19434 # a shared library.
19435 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19437 # ### END LIBTOOL TAG CONFIG: CXX
19438 _LT_EOF
19441 esac
19442 done
19443 _ACEOF
19445 cat >>$CONFIG_STATUS <<\_ACEOF
19447 { (exit 0); exit 0; }
19448 _ACEOF
19449 chmod +x $CONFIG_STATUS
19450 ac_clean_files=$ac_clean_files_save
19453 # configure is writing to config.log, and then calls config.status.
19454 # config.status does its own redirection, appending to config.log.
19455 # Unfortunately, on DOS this fails, as config.log is still kept open
19456 # by configure, so config.status won't be able to write to it; its
19457 # output is simply discarded. So we exec the FD to /dev/null,
19458 # effectively closing config.log, so it can be properly (re)opened and
19459 # appended to by config.status. When coming back to configure, we
19460 # need to make the FD available again.
19461 if test "$no_create" != yes; then
19462 ac_cs_success=:
19463 ac_config_status_args=
19464 test "$silent" = yes &&
19465 ac_config_status_args="$ac_config_status_args --quiet"
19466 exec 5>/dev/null
19467 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19468 exec 5>>config.log
19469 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19470 # would make configure fail if this is the last instruction.
19471 $ac_cs_success || { (exit 1); exit 1; }