Daily bump.
[official-gcc.git] / boehm-gc / configure
blobcadf9b49f116c37d7e1244f8ac536f25e94e924d
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 lt_ECHO 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=''
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
502 ac_prev=
503 for ac_option
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
516 case $ac_option in
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
535 --config-cache | -C)
536 cache_file=config.cache ;;
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798 esac
799 done
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816 done
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828 done
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851 test "$silent" = yes && exec 6>/dev/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
874 else
875 ac_srcdir_defaulted=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910 ac_env_CXX_set=${CXX+set}
911 ac_env_CXX_value=$CXX
912 ac_cv_env_CXX_set=${CXX+set}
913 ac_cv_env_CXX_value=$CXX
914 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_env_CXXFLAGS_value=$CXXFLAGS
916 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CXXCPP_set=${CXXCPP+set}
923 ac_env_CXXCPP_value=$CXXCPP
924 ac_cv_env_CXXCPP_set=${CXXCPP+set}
925 ac_cv_env_CXXCPP_value=$CXXCPP
928 # Report the --help message.
930 if test "$ac_init_help" = "long"; then
931 # Omit some internal or obsolete options to make the list less imposing.
932 # This message is too long to be a string in the A/UX 3.1 sh.
933 cat <<_ACEOF
934 \`configure' configures this package to adapt to many kinds of systems.
936 Usage: $0 [OPTION]... [VAR=VALUE]...
938 To assign environment variables (e.g., CC, CFLAGS...), specify them as
939 VAR=VALUE. See below for descriptions of some of the useful variables.
941 Defaults for the options are specified in brackets.
943 Configuration:
944 -h, --help display this help and exit
945 --help=short display options specific to this package
946 --help=recursive display the short help of all the included packages
947 -V, --version display version information and exit
948 -q, --quiet, --silent do not print \`checking...' messages
949 --cache-file=FILE cache test results in FILE [disabled]
950 -C, --config-cache alias for \`--cache-file=config.cache'
951 -n, --no-create do not create output files
952 --srcdir=DIR find the sources in DIR [configure dir or \`..']
954 _ACEOF
956 cat <<_ACEOF
957 Installation directories:
958 --prefix=PREFIX install architecture-independent files in PREFIX
959 [$ac_default_prefix]
960 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
961 [PREFIX]
963 By default, \`make install' will install all the files in
964 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
965 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
966 for instance \`--prefix=\$HOME'.
968 For better control, use the options below.
970 Fine tuning of the installation directories:
971 --bindir=DIR user executables [EPREFIX/bin]
972 --sbindir=DIR system admin executables [EPREFIX/sbin]
973 --libexecdir=DIR program executables [EPREFIX/libexec]
974 --datadir=DIR read-only architecture-independent data [PREFIX/share]
975 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
976 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
977 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
978 --libdir=DIR object code libraries [EPREFIX/lib]
979 --includedir=DIR C header files [PREFIX/include]
980 --oldincludedir=DIR C header files for non-gcc [/usr/include]
981 --infodir=DIR info documentation [PREFIX/info]
982 --mandir=DIR man documentation [PREFIX/man]
983 _ACEOF
985 cat <<\_ACEOF
987 Program names:
988 --program-prefix=PREFIX prepend PREFIX to installed program names
989 --program-suffix=SUFFIX append SUFFIX to installed program names
990 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
992 System types:
993 --build=BUILD configure for building on BUILD [guessed]
994 --host=HOST cross-compile to build programs to run on HOST [BUILD]
995 --target=TARGET configure for building compilers for TARGET [HOST]
996 _ACEOF
999 if test -n "$ac_init_help"; then
1001 cat <<\_ACEOF
1003 Optional Features:
1004 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1005 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1006 --enable-multilib build many library versions (default)
1007 --disable-dependency-tracking speeds up one-time build
1008 --enable-dependency-tracking do not reject slow dependency extractors
1009 --enable-maintainer-mode enable make rules and dependencies not useful
1010 (and sometimes confusing) to the casual installer
1011 --enable-shared[=PKGS]
1012 build shared libraries [default=yes]
1013 --enable-static[=PKGS]
1014 build static libraries [default=yes]
1015 --enable-fast-install[=PKGS]
1016 optimize for fast installation [default=yes]
1017 --disable-libtool-lock avoid locking (might break parallel builds)
1018 --enable-parallel-mark parallelize marking and free list construction
1019 --enable-gc-debug include full support for pointer backtracing etc.
1021 Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1027 --with-target-subdir=SUBDIR
1028 configuring with a cross compiler
1029 --with-cross-host=HOST configuring with a cross compiler
1030 --with-ecos enable runtime eCos target support
1032 Some influential environment variables:
1033 CC C compiler command
1034 CFLAGS C compiler flags
1035 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1036 nonstandard directory <lib dir>
1037 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1038 headers in a nonstandard directory <include dir>
1039 CXX C++ compiler command
1040 CXXFLAGS C++ compiler flags
1041 CPP C preprocessor
1042 CXXCPP C++ preprocessor
1044 Use these variables to override the choices made by `configure' or to help
1045 it to find libraries and programs with nonstandard names/locations.
1047 _ACEOF
1050 if test "$ac_init_help" = "recursive"; then
1051 # If there are subdirs, report their specific --help.
1052 ac_popdir=`pwd`
1053 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1054 test -d $ac_dir || continue
1055 ac_builddir=.
1057 if test "$ac_dir" != .; then
1058 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1059 # A "../" for each directory in $ac_dir_suffix.
1060 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1061 else
1062 ac_dir_suffix= ac_top_builddir=
1065 case $srcdir in
1066 .) # No --srcdir option. We are building in place.
1067 ac_srcdir=.
1068 if test -z "$ac_top_builddir"; then
1069 ac_top_srcdir=.
1070 else
1071 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1072 fi ;;
1073 [\\/]* | ?:[\\/]* ) # Absolute path.
1074 ac_srcdir=$srcdir$ac_dir_suffix;
1075 ac_top_srcdir=$srcdir ;;
1076 *) # Relative path.
1077 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1078 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1079 esac
1081 # Do not use `cd foo && pwd` to compute absolute paths, because
1082 # the directories may not exist.
1083 case `pwd` in
1084 .) ac_abs_builddir="$ac_dir";;
1086 case "$ac_dir" in
1087 .) ac_abs_builddir=`pwd`;;
1088 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1089 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1090 esac;;
1091 esac
1092 case $ac_abs_builddir in
1093 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1095 case ${ac_top_builddir}. in
1096 .) ac_abs_top_builddir=$ac_abs_builddir;;
1097 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1098 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1099 esac;;
1100 esac
1101 case $ac_abs_builddir in
1102 .) ac_abs_srcdir=$ac_srcdir;;
1104 case $ac_srcdir in
1105 .) ac_abs_srcdir=$ac_abs_builddir;;
1106 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1107 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1108 esac;;
1109 esac
1110 case $ac_abs_builddir in
1111 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1113 case $ac_top_srcdir in
1114 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1115 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1116 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1117 esac;;
1118 esac
1120 cd $ac_dir
1121 # Check for guested configure; otherwise get Cygnus style configure.
1122 if test -f $ac_srcdir/configure.gnu; then
1123 echo
1124 $SHELL $ac_srcdir/configure.gnu --help=recursive
1125 elif test -f $ac_srcdir/configure; then
1126 echo
1127 $SHELL $ac_srcdir/configure --help=recursive
1128 elif test -f $ac_srcdir/configure.ac ||
1129 test -f $ac_srcdir/configure.in; then
1130 echo
1131 $ac_configure --help
1132 else
1133 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1135 cd $ac_popdir
1136 done
1139 test -n "$ac_init_help" && exit 0
1140 if $ac_init_version; then
1141 cat <<\_ACEOF
1143 Copyright (C) 2003 Free Software Foundation, Inc.
1144 This configure script is free software; the Free Software Foundation
1145 gives unlimited permission to copy, distribute and modify it.
1146 _ACEOF
1147 exit 0
1149 exec 5>config.log
1150 cat >&5 <<_ACEOF
1151 This file contains any messages produced by compilers while
1152 running configure, to aid debugging if configure makes a mistake.
1154 It was created by $as_me, which was
1155 generated by GNU Autoconf 2.59. Invocation command line was
1157 $ $0 $@
1159 _ACEOF
1161 cat <<_ASUNAME
1162 ## --------- ##
1163 ## Platform. ##
1164 ## --------- ##
1166 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1172 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1175 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1176 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1177 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1178 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1179 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1180 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1181 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1183 _ASUNAME
1185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186 for as_dir in $PATH
1188 IFS=$as_save_IFS
1189 test -z "$as_dir" && as_dir=.
1190 echo "PATH: $as_dir"
1191 done
1193 } >&5
1195 cat >&5 <<_ACEOF
1198 ## ----------- ##
1199 ## Core tests. ##
1200 ## ----------- ##
1202 _ACEOF
1205 # Keep a trace of the command line.
1206 # Strip out --no-create and --no-recursion so they do not pile up.
1207 # Strip out --silent because we don't want to record it for future runs.
1208 # Also quote any args containing shell meta-characters.
1209 # Make two passes to allow for proper duplicate-argument suppression.
1210 ac_configure_args=
1211 ac_configure_args0=
1212 ac_configure_args1=
1213 ac_sep=
1214 ac_must_keep_next=false
1215 for ac_pass in 1 2
1217 for ac_arg
1219 case $ac_arg in
1220 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 continue ;;
1224 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1226 esac
1227 case $ac_pass in
1228 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1230 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231 if test $ac_must_keep_next = true; then
1232 ac_must_keep_next=false # Got value, back to normal.
1233 else
1234 case $ac_arg in
1235 *=* | --config-cache | -C | -disable-* | --disable-* \
1236 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238 | -with-* | --with-* | -without-* | --without-* | --x)
1239 case "$ac_configure_args0 " in
1240 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1241 esac
1243 -* ) ac_must_keep_next=true ;;
1244 esac
1246 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247 # Get rid of the leading space.
1248 ac_sep=" "
1250 esac
1251 done
1252 done
1253 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1256 # When interrupted or exit'd, cleanup temporary files, and complete
1257 # config.log. We remove comments because anyway the quotes in there
1258 # would cause problems or look ugly.
1259 # WARNING: Be sure not to use single quotes in there, as some shells,
1260 # such as our DU 5.0 friend, will then `close' the trap.
1261 trap 'exit_status=$?
1262 # Save into config.log some information that might help in debugging.
1264 echo
1266 cat <<\_ASBOX
1267 ## ---------------- ##
1268 ## Cache variables. ##
1269 ## ---------------- ##
1270 _ASBOX
1271 echo
1272 # The following way of writing the cache mishandles newlines in values,
1274 (set) 2>&1 |
1275 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1276 *ac_space=\ *)
1277 sed -n \
1278 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1282 sed -n \
1283 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285 esac;
1287 echo
1289 cat <<\_ASBOX
1290 ## ----------------- ##
1291 ## Output variables. ##
1292 ## ----------------- ##
1293 _ASBOX
1294 echo
1295 for ac_var in $ac_subst_vars
1297 eval ac_val=$`echo $ac_var`
1298 echo "$ac_var='"'"'$ac_val'"'"'"
1299 done | sort
1300 echo
1302 if test -n "$ac_subst_files"; then
1303 cat <<\_ASBOX
1304 ## ------------- ##
1305 ## Output files. ##
1306 ## ------------- ##
1307 _ASBOX
1308 echo
1309 for ac_var in $ac_subst_files
1311 eval ac_val=$`echo $ac_var`
1312 echo "$ac_var='"'"'$ac_val'"'"'"
1313 done | sort
1314 echo
1317 if test -s confdefs.h; then
1318 cat <<\_ASBOX
1319 ## ----------- ##
1320 ## confdefs.h. ##
1321 ## ----------- ##
1322 _ASBOX
1323 echo
1324 sed "/^$/d" confdefs.h | sort
1325 echo
1327 test "$ac_signal" != 0 &&
1328 echo "$as_me: caught signal $ac_signal"
1329 echo "$as_me: exit $exit_status"
1330 } >&5
1331 rm -f core *.core &&
1332 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1333 exit $exit_status
1335 for ac_signal in 1 2 13 15; do
1336 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1337 done
1338 ac_signal=0
1340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1341 rm -rf conftest* confdefs.h
1342 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1343 echo >confdefs.h
1345 # Predefined preprocessor variables.
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_NAME "$PACKAGE_NAME"
1349 _ACEOF
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1354 _ACEOF
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1359 _ACEOF
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_STRING "$PACKAGE_STRING"
1364 _ACEOF
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1369 _ACEOF
1372 # Let the site file select an alternate cache file if it wants to.
1373 # Prefer explicitly selected file to automatically selected ones.
1374 if test -z "$CONFIG_SITE"; then
1375 if test "x$prefix" != xNONE; then
1376 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1377 else
1378 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1381 for ac_site_file in $CONFIG_SITE; do
1382 if test -r "$ac_site_file"; then
1383 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384 echo "$as_me: loading site script $ac_site_file" >&6;}
1385 sed 's/^/| /' "$ac_site_file" >&5
1386 . "$ac_site_file"
1388 done
1390 if test -r "$cache_file"; then
1391 # Some versions of bash will fail to source /dev/null (special
1392 # files actually), so we avoid doing that.
1393 if test -f "$cache_file"; then
1394 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395 echo "$as_me: loading cache $cache_file" >&6;}
1396 case $cache_file in
1397 [\\/]* | ?:[\\/]* ) . $cache_file;;
1398 *) . ./$cache_file;;
1399 esac
1401 else
1402 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403 echo "$as_me: creating cache $cache_file" >&6;}
1404 >$cache_file
1407 # Check that the precious variables saved in the cache have kept the same
1408 # value.
1409 ac_cache_corrupted=false
1410 for ac_var in `(set) 2>&1 |
1411 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1412 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413 eval ac_new_set=\$ac_env_${ac_var}_set
1414 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415 eval ac_new_val="\$ac_env_${ac_var}_value"
1416 case $ac_old_set,$ac_new_set in
1417 set,)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,set)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,);;
1427 if test "x$ac_old_val" != "x$ac_new_val"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1431 echo "$as_me: former value: $ac_old_val" >&2;}
1432 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1433 echo "$as_me: current value: $ac_new_val" >&2;}
1434 ac_cache_corrupted=:
1435 fi;;
1436 esac
1437 # Pass precious variables to config.status.
1438 if test "$ac_new_set" = set; then
1439 case $ac_new_val in
1440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442 *) ac_arg=$ac_var=$ac_new_val ;;
1443 esac
1444 case " $ac_configure_args " in
1445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1446 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447 esac
1449 done
1450 if $ac_cache_corrupted; then
1451 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1452 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1453 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1454 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1455 { (exit 1); exit 1; }; }
1458 ac_ext=c
1459 ac_cpp='$CPP $CPPFLAGS'
1460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1483 # This works around the fact that libtool configuration may change LD
1484 # for this particular configuration, but some shells, instead of
1485 # keeping the changes in LD private, export them just because LD is
1486 # exported.
1487 ORIGINAL_LD_FOR_MULTILIBS=$LD
1489 # Default to --enable-multilib
1490 # Check whether --enable-multilib or --disable-multilib was given.
1491 if test "${enable_multilib+set}" = set; then
1492 enableval="$enable_multilib"
1493 case "$enableval" in
1494 yes) multilib=yes ;;
1495 no) multilib=no ;;
1496 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1497 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1498 { (exit 1); exit 1; }; } ;;
1499 esac
1500 else
1501 multilib=yes
1504 # We may get other options which we leave undocumented:
1505 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1506 # See config-ml.in if you want the gory details.
1508 if test "$srcdir" = "."; then
1509 if test "$with_target_subdir" != "."; then
1510 multi_basedir="$srcdir/$with_multisrctop../.."
1511 else
1512 multi_basedir="$srcdir/$with_multisrctop.."
1514 else
1515 multi_basedir="$srcdir/.."
1519 # Even if the default multilib is not a cross compilation,
1520 # it may be that some of the other multilibs are.
1521 if test $cross_compiling = no && test $multilib = yes \
1522 && test "x${with_multisubdir}" != x ; then
1523 cross_compiling=maybe
1526 ac_config_commands="$ac_config_commands default-1"
1529 ac_aux_dir=
1530 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1531 if test -f $ac_dir/install-sh; then
1532 ac_aux_dir=$ac_dir
1533 ac_install_sh="$ac_aux_dir/install-sh -c"
1534 break
1535 elif test -f $ac_dir/install.sh; then
1536 ac_aux_dir=$ac_dir
1537 ac_install_sh="$ac_aux_dir/install.sh -c"
1538 break
1539 elif test -f $ac_dir/shtool; then
1540 ac_aux_dir=$ac_dir
1541 ac_install_sh="$ac_aux_dir/shtool install -c"
1542 break
1544 done
1545 if test -z "$ac_aux_dir"; then
1546 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1547 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1548 { (exit 1); exit 1; }; }
1550 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1551 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1552 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1554 # Make sure we can run config.sub.
1555 $ac_config_sub sun4 >/dev/null 2>&1 ||
1556 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1557 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1558 { (exit 1); exit 1; }; }
1560 echo "$as_me:$LINENO: checking build system type" >&5
1561 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1562 if test "${ac_cv_build+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565 ac_cv_build_alias=$build_alias
1566 test -z "$ac_cv_build_alias" &&
1567 ac_cv_build_alias=`$ac_config_guess`
1568 test -z "$ac_cv_build_alias" &&
1569 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1570 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1571 { (exit 1); exit 1; }; }
1572 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1573 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1574 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1575 { (exit 1); exit 1; }; }
1578 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1579 echo "${ECHO_T}$ac_cv_build" >&6
1580 build=$ac_cv_build
1581 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586 echo "$as_me:$LINENO: checking host system type" >&5
1587 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1588 if test "${ac_cv_host+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591 ac_cv_host_alias=$host_alias
1592 test -z "$ac_cv_host_alias" &&
1593 ac_cv_host_alias=$ac_cv_build_alias
1594 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1595 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1596 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1597 { (exit 1); exit 1; }; }
1600 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1601 echo "${ECHO_T}$ac_cv_host" >&6
1602 host=$ac_cv_host
1603 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608 echo "$as_me:$LINENO: checking target system type" >&5
1609 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1610 if test "${ac_cv_target+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613 ac_cv_target_alias=$target_alias
1614 test "x$ac_cv_target_alias" = "x" &&
1615 ac_cv_target_alias=$ac_cv_host_alias
1616 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1618 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1622 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1623 echo "${ECHO_T}$ac_cv_target" >&6
1624 target=$ac_cv_target
1625 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630 # The aliases save the names the user supplied, while $host etc.
1631 # will get canonicalized.
1632 test -n "$target_alias" &&
1633 test "$program_prefix$program_suffix$program_transform_name" = \
1634 NONENONEs,x,x, &&
1635 program_prefix=${target_alias}-
1637 # Get the 'noncanonical' system names.
1638 case ${build_alias} in
1639 "") build_noncanonical=${build} ;;
1640 *) build_noncanonical=${build_alias} ;;
1641 esac
1643 case ${host_alias} in
1644 "") host_noncanonical=${build_noncanonical} ;;
1645 *) host_noncanonical=${host_alias} ;;
1646 esac
1648 case ${target_alias} in
1649 "") target_noncanonical=${host_noncanonical} ;;
1650 *) target_noncanonical=${target_alias} ;;
1651 esac
1656 # This works around an automake problem.
1657 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1660 am__api_version="1.9"
1661 # Find a good install program. We prefer a C program (faster),
1662 # so one script is as good as another. But avoid the broken or
1663 # incompatible versions:
1664 # SysV /etc/install, /usr/sbin/install
1665 # SunOS /usr/etc/install
1666 # IRIX /sbin/install
1667 # AIX /bin/install
1668 # AmigaOS /C/install, which installs bootblocks on floppy discs
1669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1672 # OS/2's system install, which has a completely different semantic
1673 # ./install, which can be erroneously created by make from ./install.sh.
1674 # Reject install programs that cannot install multiple files.
1675 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1676 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1677 if test -z "$INSTALL"; then
1678 if test "${ac_cv_path_install+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 else
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 for as_dir in $PATH
1684 IFS=$as_save_IFS
1685 test -z "$as_dir" && as_dir=.
1686 # Account for people who put trailing slashes in PATH elements.
1687 case $as_dir/ in
1688 ./ | .// | /cC/* | \
1689 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1690 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1691 /usr/ucb/* ) ;;
1693 # OSF1 and SCO ODT 3.0 have their own names for install.
1694 # Don't use installbsd from OSF since it installs stuff as root
1695 # by default.
1696 for ac_prog in ginstall scoinst install; do
1697 for ac_exec_ext in '' $ac_executable_extensions; do
1698 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1699 if test $ac_prog = install &&
1700 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1701 # AIX install. It has an incompatible calling convention.
1703 elif test $ac_prog = install &&
1704 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1705 # program-specific install script used by HP pwplus--don't use.
1707 else
1708 rm -rf conftest.one conftest.two conftest.dir
1709 echo one > conftest.one
1710 echo two > conftest.two
1711 mkdir conftest.dir
1712 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1713 test -s conftest.one && test -s conftest.two &&
1714 test -s conftest.dir/conftest.one &&
1715 test -s conftest.dir/conftest.two
1716 then
1717 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1718 break 3
1722 done
1723 done
1725 esac
1726 done
1728 rm -rf conftest.one conftest.two conftest.dir
1731 if test "${ac_cv_path_install+set}" = set; then
1732 INSTALL=$ac_cv_path_install
1733 else
1734 # As a last resort, use the slow shell script. Don't cache a
1735 # value for INSTALL within a source directory, because that will
1736 # break other packages using the cache if that directory is
1737 # removed, or if the value is a relative name.
1738 INSTALL=$ac_install_sh
1741 echo "$as_me:$LINENO: result: $INSTALL" >&5
1742 echo "${ECHO_T}$INSTALL" >&6
1744 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1745 # It thinks the first close brace ends the variable substitution.
1746 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1748 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1750 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1752 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1753 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1754 # Just in case
1755 sleep 1
1756 echo timestamp > conftest.file
1757 # Do `set' in a subshell so we don't clobber the current shell's
1758 # arguments. Must try -L first in case configure is actually a
1759 # symlink; some systems play weird games with the mod time of symlinks
1760 # (eg FreeBSD returns the mod time of the symlink's containing
1761 # directory).
1762 if (
1763 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1764 if test "$*" = "X"; then
1765 # -L didn't work.
1766 set X `ls -t $srcdir/configure conftest.file`
1768 rm -f conftest.file
1769 if test "$*" != "X $srcdir/configure conftest.file" \
1770 && test "$*" != "X conftest.file $srcdir/configure"; then
1772 # If neither matched, then we have a broken ls. This can happen
1773 # if, for instance, CONFIG_SHELL is bash and it inherits a
1774 # broken ls alias from the environment. This has actually
1775 # happened. Such a system could not be considered "sane".
1776 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1777 alias in your environment" >&5
1778 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1779 alias in your environment" >&2;}
1780 { (exit 1); exit 1; }; }
1783 test "$2" = conftest.file
1785 then
1786 # Ok.
1788 else
1789 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1790 Check your system clock" >&5
1791 echo "$as_me: error: newly created file is older than distributed files!
1792 Check your system clock" >&2;}
1793 { (exit 1); exit 1; }; }
1795 echo "$as_me:$LINENO: result: yes" >&5
1796 echo "${ECHO_T}yes" >&6
1797 test "$program_prefix" != NONE &&
1798 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1799 # Use a double $ so make ignores it.
1800 test "$program_suffix" != NONE &&
1801 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1802 # Double any \ or $. echo might interpret backslashes.
1803 # By default was `s,x,x', remove it if useless.
1804 cat <<\_ACEOF >conftest.sed
1805 s/[\\$]/&&/g;s/;s,x,x,$//
1806 _ACEOF
1807 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1808 rm conftest.sed
1810 # expand $ac_aux_dir to an absolute path
1811 am_aux_dir=`cd $ac_aux_dir && pwd`
1813 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1814 # Use eval to expand $SHELL
1815 if eval "$MISSING --run true"; then
1816 am_missing_run="$MISSING --run "
1817 else
1818 am_missing_run=
1819 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1820 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1823 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1824 # We used to keeping the `.' as first argument, in order to
1825 # allow $(mkdir_p) to be used without argument. As in
1826 # $(mkdir_p) $(somedir)
1827 # where $(somedir) is conditionally defined. However this is wrong
1828 # for two reasons:
1829 # 1. if the package is installed by a user who cannot write `.'
1830 # make install will fail,
1831 # 2. the above comment should most certainly read
1832 # $(mkdir_p) $(DESTDIR)$(somedir)
1833 # so it does not work when $(somedir) is undefined and
1834 # $(DESTDIR) is not.
1835 # To support the latter case, we have to write
1836 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1837 # so the `.' trick is pointless.
1838 mkdir_p='mkdir -p --'
1839 else
1840 # On NextStep and OpenStep, the `mkdir' command does not
1841 # recognize any option. It will interpret all options as
1842 # directories to create, and then abort because `.' already
1843 # exists.
1844 for d in ./-p ./--version;
1846 test -d $d && rmdir $d
1847 done
1848 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1849 if test -f "$ac_aux_dir/mkinstalldirs"; then
1850 mkdir_p='$(mkinstalldirs)'
1851 else
1852 mkdir_p='$(install_sh) -d'
1856 for ac_prog in gawk mawk nawk awk
1858 # Extract the first word of "$ac_prog", so it can be a program name with args.
1859 set dummy $ac_prog; ac_word=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_AWK+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865 if test -n "$AWK"; then
1866 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1867 else
1868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 for as_dir in $PATH
1871 IFS=$as_save_IFS
1872 test -z "$as_dir" && as_dir=.
1873 for ac_exec_ext in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_AWK="$ac_prog"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 break 2
1879 done
1880 done
1884 AWK=$ac_cv_prog_AWK
1885 if test -n "$AWK"; then
1886 echo "$as_me:$LINENO: result: $AWK" >&5
1887 echo "${ECHO_T}$AWK" >&6
1888 else
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1893 test -n "$AWK" && break
1894 done
1896 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1897 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1898 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1899 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902 cat >conftest.make <<\_ACEOF
1903 all:
1904 @echo 'ac_maketemp="$(MAKE)"'
1905 _ACEOF
1906 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1907 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1908 if test -n "$ac_maketemp"; then
1909 eval ac_cv_prog_make_${ac_make}_set=yes
1910 else
1911 eval ac_cv_prog_make_${ac_make}_set=no
1913 rm -f conftest.make
1915 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1916 echo "$as_me:$LINENO: result: yes" >&5
1917 echo "${ECHO_T}yes" >&6
1918 SET_MAKE=
1919 else
1920 echo "$as_me:$LINENO: result: no" >&5
1921 echo "${ECHO_T}no" >&6
1922 SET_MAKE="MAKE=${MAKE-make}"
1925 rm -rf .tst 2>/dev/null
1926 mkdir .tst 2>/dev/null
1927 if test -d .tst; then
1928 am__leading_dot=.
1929 else
1930 am__leading_dot=_
1932 rmdir .tst 2>/dev/null
1934 # test to see if srcdir already configured
1935 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1936 test -f $srcdir/config.status; then
1937 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1938 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1939 { (exit 1); exit 1; }; }
1942 # test whether we have cygpath
1943 if test -z "$CYGPATH_W"; then
1944 if (cygpath --version) >/dev/null 2>/dev/null; then
1945 CYGPATH_W='cygpath -w'
1946 else
1947 CYGPATH_W=echo
1952 # Define the identity of the package.
1953 PACKAGE=gc
1954 VERSION=6.6
1957 # Some tools Automake needs.
1959 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1962 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1965 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1968 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1971 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1973 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1975 # Installed binaries are usually stripped using `strip' when the user
1976 # run `make install-strip'. However `strip' might not be the right
1977 # tool to use in cross-compilation environments, therefore Automake
1978 # will honor the `STRIP' environment variable to overrule this program.
1979 if test "$cross_compiling" != no; then
1980 if test -n "$ac_tool_prefix"; then
1981 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1982 set dummy ${ac_tool_prefix}strip; ac_word=$2
1983 echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985 if test "${ac_cv_prog_STRIP+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988 if test -n "$STRIP"; then
1989 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1990 else
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 break 2
2002 done
2003 done
2007 STRIP=$ac_cv_prog_STRIP
2008 if test -n "$STRIP"; then
2009 echo "$as_me:$LINENO: result: $STRIP" >&5
2010 echo "${ECHO_T}$STRIP" >&6
2011 else
2012 echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2017 if test -z "$ac_cv_prog_STRIP"; then
2018 ac_ct_STRIP=$STRIP
2019 # Extract the first word of "strip", so it can be a program name with args.
2020 set dummy strip; ac_word=$2
2021 echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2023 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026 if test -n "$ac_ct_STRIP"; then
2027 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2028 else
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 for as_dir in $PATH
2032 IFS=$as_save_IFS
2033 test -z "$as_dir" && as_dir=.
2034 for ac_exec_ext in '' $ac_executable_extensions; do
2035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036 ac_cv_prog_ac_ct_STRIP="strip"
2037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 break 2
2040 done
2041 done
2043 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2046 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2047 if test -n "$ac_ct_STRIP"; then
2048 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2049 echo "${ECHO_T}$ac_ct_STRIP" >&6
2050 else
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2055 STRIP=$ac_ct_STRIP
2056 else
2057 STRIP="$ac_cv_prog_STRIP"
2061 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2063 # We need awk for the "check" target. The system "awk" is bad on
2064 # some platforms.
2065 # Always define AMTAR for backward compatibility.
2067 AMTAR=${AMTAR-"${am_missing_run}tar"}
2069 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2076 # The autoconf 2.5x version of the no-executables hack.
2079 # Yak. We must force CC and CXX to /not/ be precious variables; otherwise
2080 # the wrong, non-multilib-adjusted value will be used in multilibs.
2081 # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
2085 ac_ext=c
2086 ac_cpp='$CPP $CPPFLAGS'
2087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2090 if test -n "$ac_tool_prefix"; then
2091 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2092 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2093 echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095 if test "${ac_cv_prog_CC+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098 if test -n "$CC"; then
2099 ac_cv_prog_CC="$CC" # Let the user override the test.
2100 else
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2104 IFS=$as_save_IFS
2105 test -z "$as_dir" && as_dir=.
2106 for ac_exec_ext in '' $ac_executable_extensions; do
2107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 break 2
2112 done
2113 done
2117 CC=$ac_cv_prog_CC
2118 if test -n "$CC"; then
2119 echo "$as_me:$LINENO: result: $CC" >&5
2120 echo "${ECHO_T}$CC" >&6
2121 else
2122 echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6
2127 if test -z "$ac_cv_prog_CC"; then
2128 ac_ct_CC=$CC
2129 # Extract the first word of "gcc", so it can be a program name with args.
2130 set dummy gcc; ac_word=$2
2131 echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 if test -n "$ac_ct_CC"; then
2137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2142 IFS=$as_save_IFS
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146 ac_cv_prog_ac_ct_CC="gcc"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148 break 2
2150 done
2151 done
2155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2156 if test -n "$ac_ct_CC"; then
2157 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2158 echo "${ECHO_T}$ac_ct_CC" >&6
2159 else
2160 echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2164 CC=$ac_ct_CC
2165 else
2166 CC="$ac_cv_prog_CC"
2169 if test -z "$CC"; then
2170 if test -n "$ac_tool_prefix"; then
2171 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2172 set dummy ${ac_tool_prefix}cc; ac_word=$2
2173 echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2175 if test "${ac_cv_prog_CC+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178 if test -n "$CC"; then
2179 ac_cv_prog_CC="$CC" # Let the user override the test.
2180 else
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2184 IFS=$as_save_IFS
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2188 ac_cv_prog_CC="${ac_tool_prefix}cc"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2192 done
2193 done
2197 CC=$ac_cv_prog_CC
2198 if test -n "$CC"; then
2199 echo "$as_me:$LINENO: result: $CC" >&5
2200 echo "${ECHO_T}$CC" >&6
2201 else
2202 echo "$as_me:$LINENO: result: no" >&5
2203 echo "${ECHO_T}no" >&6
2207 if test -z "$ac_cv_prog_CC"; then
2208 ac_ct_CC=$CC
2209 # Extract the first word of "cc", so it can be a program name with args.
2210 set dummy cc; ac_word=$2
2211 echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216 if test -n "$ac_ct_CC"; then
2217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2218 else
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH
2222 IFS=$as_save_IFS
2223 test -z "$as_dir" && as_dir=.
2224 for ac_exec_ext in '' $ac_executable_extensions; do
2225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2226 ac_cv_prog_ac_ct_CC="cc"
2227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 break 2
2230 done
2231 done
2235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2236 if test -n "$ac_ct_CC"; then
2237 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2238 echo "${ECHO_T}$ac_ct_CC" >&6
2239 else
2240 echo "$as_me:$LINENO: result: no" >&5
2241 echo "${ECHO_T}no" >&6
2244 CC=$ac_ct_CC
2245 else
2246 CC="$ac_cv_prog_CC"
2250 if test -z "$CC"; then
2251 # Extract the first word of "cc", so it can be a program name with args.
2252 set dummy cc; ac_word=$2
2253 echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2255 if test "${ac_cv_prog_CC+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258 if test -n "$CC"; then
2259 ac_cv_prog_CC="$CC" # Let the user override the test.
2260 else
2261 ac_prog_rejected=no
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2265 IFS=$as_save_IFS
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2269 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2270 ac_prog_rejected=yes
2271 continue
2273 ac_cv_prog_CC="cc"
2274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275 break 2
2277 done
2278 done
2280 if test $ac_prog_rejected = yes; then
2281 # We found a bogon in the path, so make sure we never use it.
2282 set dummy $ac_cv_prog_CC
2283 shift
2284 if test $# != 0; then
2285 # We chose a different compiler from the bogus one.
2286 # However, it has the same basename, so the bogon will be chosen
2287 # first if we set CC to just the basename; use the full file name.
2288 shift
2289 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2294 CC=$ac_cv_prog_CC
2295 if test -n "$CC"; then
2296 echo "$as_me:$LINENO: result: $CC" >&5
2297 echo "${ECHO_T}$CC" >&6
2298 else
2299 echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2304 if test -z "$CC"; then
2305 if test -n "$ac_tool_prefix"; then
2306 for ac_prog in cl
2308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2310 echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2312 if test "${ac_cv_prog_CC+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315 if test -n "$CC"; then
2316 ac_cv_prog_CC="$CC" # Let the user override the test.
2317 else
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2325 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 break 2
2329 done
2330 done
2334 CC=$ac_cv_prog_CC
2335 if test -n "$CC"; then
2336 echo "$as_me:$LINENO: result: $CC" >&5
2337 echo "${ECHO_T}$CC" >&6
2338 else
2339 echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6
2343 test -n "$CC" && break
2344 done
2346 if test -z "$CC"; then
2347 ac_ct_CC=$CC
2348 for ac_prog in cl
2350 # Extract the first word of "$ac_prog", so it can be a program name with args.
2351 set dummy $ac_prog; ac_word=$2
2352 echo "$as_me:$LINENO: checking for $ac_word" >&5
2353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2354 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 if test -n "$ac_ct_CC"; then
2358 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2359 else
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367 ac_cv_prog_ac_ct_CC="$ac_prog"
2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369 break 2
2371 done
2372 done
2376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2377 if test -n "$ac_ct_CC"; then
2378 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2379 echo "${ECHO_T}$ac_ct_CC" >&6
2380 else
2381 echo "$as_me:$LINENO: result: no" >&5
2382 echo "${ECHO_T}no" >&6
2385 test -n "$ac_ct_CC" && break
2386 done
2388 CC=$ac_ct_CC
2394 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2395 See \`config.log' for more details." >&5
2396 echo "$as_me: error: no acceptable C compiler found in \$PATH
2397 See \`config.log' for more details." >&2;}
2398 { (exit 1); exit 1; }; }
2400 # Provide some information about the compiler.
2401 echo "$as_me:$LINENO:" \
2402 "checking for C compiler version" >&5
2403 ac_compiler=`set X $ac_compile; echo $2`
2404 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2405 (eval $ac_compiler --version </dev/null >&5) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }
2409 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2410 (eval $ac_compiler -v </dev/null >&5) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }
2414 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2415 (eval $ac_compiler -V </dev/null >&5) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }
2420 cat >conftest.$ac_ext <<_ACEOF
2421 /* confdefs.h. */
2422 _ACEOF
2423 cat confdefs.h >>conftest.$ac_ext
2424 cat >>conftest.$ac_ext <<_ACEOF
2425 /* end confdefs.h. */
2428 main ()
2432 return 0;
2434 _ACEOF
2435 # FIXME: Cleanup?
2436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2437 (eval $ac_link) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; then
2441 gcc_no_link=no
2442 else
2443 gcc_no_link=yes
2446 if test x$gcc_no_link = xyes; then
2447 # Setting cross_compile will disable run tests; it will
2448 # also disable AC_CHECK_FILE but that's generally
2449 # correct if we can't link.
2450 cross_compiling=yes
2451 EXEEXT=
2452 else
2453 cat >conftest.$ac_ext <<_ACEOF
2454 /* confdefs.h. */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2461 main ()
2465 return 0;
2467 _ACEOF
2468 ac_clean_files_save=$ac_clean_files
2469 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2470 # Try to create an executable without -o first, disregard a.out.
2471 # It will help us diagnose broken compilers, and finding out an intuition
2472 # of exeext.
2473 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2474 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2475 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2476 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2477 (eval $ac_link_default) 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; then
2481 # Find the output, starting from the most likely. This scheme is
2482 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2483 # resort.
2485 # Be careful to initialize this variable, since it used to be cached.
2486 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2487 ac_cv_exeext=
2488 # b.out is created by i960 compilers.
2489 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2491 test -f "$ac_file" || continue
2492 case $ac_file in
2493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2495 conftest.$ac_ext )
2496 # This is the source file.
2498 [ab].out )
2499 # We found the default executable, but exeext='' is most
2500 # certainly right.
2501 break;;
2502 *.* )
2503 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2504 # FIXME: I believe we export ac_cv_exeext for Libtool,
2505 # but it would be cool to find out if it's true. Does anybody
2506 # maintain Libtool? --akim.
2507 export ac_cv_exeext
2508 break;;
2510 break;;
2511 esac
2512 done
2513 else
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2517 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2518 See \`config.log' for more details." >&5
2519 echo "$as_me: error: C compiler cannot create executables
2520 See \`config.log' for more details." >&2;}
2521 { (exit 77); exit 77; }; }
2524 ac_exeext=$ac_cv_exeext
2525 echo "$as_me:$LINENO: result: $ac_file" >&5
2526 echo "${ECHO_T}$ac_file" >&6
2528 # Check the compiler produces executables we can run. If not, either
2529 # the compiler is broken, or we cross compile.
2530 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2531 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2532 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2533 # If not cross compiling, check that we can run a simple program.
2534 if test "$cross_compiling" != yes; then
2535 if { ac_try='./$ac_file'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2541 cross_compiling=no
2542 else
2543 if test "$cross_compiling" = maybe; then
2544 cross_compiling=yes
2545 else
2546 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2547 If you meant to cross compile, use \`--host'.
2548 See \`config.log' for more details." >&5
2549 echo "$as_me: error: cannot run C compiled programs.
2550 If you meant to cross compile, use \`--host'.
2551 See \`config.log' for more details." >&2;}
2552 { (exit 1); exit 1; }; }
2556 echo "$as_me:$LINENO: result: yes" >&5
2557 echo "${ECHO_T}yes" >&6
2559 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2560 ac_clean_files=$ac_clean_files_save
2561 # Check the compiler produces executables we can run. If not, either
2562 # the compiler is broken, or we cross compile.
2563 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2564 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2565 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2566 echo "${ECHO_T}$cross_compiling" >&6
2568 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2569 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2571 (eval $ac_link) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; then
2575 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2576 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2577 # work properly (i.e., refer to `conftest.exe'), while it won't with
2578 # `rm'.
2579 for ac_file in conftest.exe conftest conftest.*; do
2580 test -f "$ac_file" || continue
2581 case $ac_file in
2582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2583 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2584 export ac_cv_exeext
2585 break;;
2586 * ) break;;
2587 esac
2588 done
2589 else
2590 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2591 See \`config.log' for more details." >&5
2592 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2593 See \`config.log' for more details." >&2;}
2594 { (exit 1); exit 1; }; }
2597 rm -f conftest$ac_cv_exeext
2598 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2599 echo "${ECHO_T}$ac_cv_exeext" >&6
2601 rm -f conftest.$ac_ext
2602 EXEEXT=$ac_cv_exeext
2603 ac_exeext=$EXEEXT
2605 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2606 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2607 if test "${ac_cv_objext+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610 cat >conftest.$ac_ext <<_ACEOF
2611 /* confdefs.h. */
2612 _ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h. */
2618 main ()
2622 return 0;
2624 _ACEOF
2625 rm -f conftest.o conftest.obj
2626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627 (eval $ac_compile) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; then
2631 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2632 case $ac_file in
2633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2634 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2635 break;;
2636 esac
2637 done
2638 else
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2642 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2643 See \`config.log' for more details." >&5
2644 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2645 See \`config.log' for more details." >&2;}
2646 { (exit 1); exit 1; }; }
2649 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2651 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2652 echo "${ECHO_T}$ac_cv_objext" >&6
2653 OBJEXT=$ac_cv_objext
2654 ac_objext=$OBJEXT
2655 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2656 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2657 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660 cat >conftest.$ac_ext <<_ACEOF
2661 /* confdefs.h. */
2662 _ACEOF
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h. */
2668 main ()
2670 #ifndef __GNUC__
2671 choke me
2672 #endif
2675 return 0;
2677 _ACEOF
2678 rm -f conftest.$ac_objext
2679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680 (eval $ac_compile) 2>conftest.er1
2681 ac_status=$?
2682 grep -v '^ *+' conftest.er1 >conftest.err
2683 rm -f conftest.er1
2684 cat conftest.err >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } &&
2687 { ac_try='test -z "$ac_c_werror_flag"
2688 || test ! -s conftest.err'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; } &&
2694 { ac_try='test -s conftest.$ac_objext'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 (eval $ac_try) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2700 ac_compiler_gnu=yes
2701 else
2702 echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2705 ac_compiler_gnu=no
2707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2708 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2711 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2712 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2713 GCC=`test $ac_compiler_gnu = yes && echo yes`
2714 ac_test_CFLAGS=${CFLAGS+set}
2715 ac_save_CFLAGS=$CFLAGS
2716 CFLAGS="-g"
2717 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2718 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2719 if test "${ac_cv_prog_cc_g+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722 cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h. */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2730 main ()
2734 return 0;
2736 _ACEOF
2737 rm -f conftest.$ac_objext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739 (eval $ac_compile) 2>conftest.er1
2740 ac_status=$?
2741 grep -v '^ *+' conftest.er1 >conftest.err
2742 rm -f conftest.er1
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 { ac_try='test -z "$ac_c_werror_flag"
2747 || test ! -s conftest.err'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 (eval $ac_try) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 ac_cv_prog_cc_g=yes
2760 else
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2764 ac_cv_prog_cc_g=no
2766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2768 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2769 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2770 if test "$ac_test_CFLAGS" = set; then
2771 CFLAGS=$ac_save_CFLAGS
2772 elif test $ac_cv_prog_cc_g = yes; then
2773 if test "$GCC" = yes; then
2774 CFLAGS="-g -O2"
2775 else
2776 CFLAGS="-g"
2778 else
2779 if test "$GCC" = yes; then
2780 CFLAGS="-O2"
2781 else
2782 CFLAGS=
2785 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2786 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2787 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 else
2790 ac_cv_prog_cc_stdc=no
2791 ac_save_CC=$CC
2792 cat >conftest.$ac_ext <<_ACEOF
2793 /* confdefs.h. */
2794 _ACEOF
2795 cat confdefs.h >>conftest.$ac_ext
2796 cat >>conftest.$ac_ext <<_ACEOF
2797 /* end confdefs.h. */
2798 #include <stdarg.h>
2799 #include <stdio.h>
2800 #include <sys/types.h>
2801 #include <sys/stat.h>
2802 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2803 struct buf { int x; };
2804 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2805 static char *e (p, i)
2806 char **p;
2807 int i;
2809 return p[i];
2811 static char *f (char * (*g) (char **, int), char **p, ...)
2813 char *s;
2814 va_list v;
2815 va_start (v,p);
2816 s = g (p, va_arg (v,int));
2817 va_end (v);
2818 return s;
2821 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2822 function prototypes and stuff, but not '\xHH' hex character constants.
2823 These don't provoke an error unfortunately, instead are silently treated
2824 as 'x'. The following induces an error, until -std1 is added to get
2825 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2826 array size at least. It's necessary to write '\x00'==0 to get something
2827 that's true only with -std1. */
2828 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2830 int test (int i, double x);
2831 struct s1 {int (*f) (int a);};
2832 struct s2 {int (*f) (double a);};
2833 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2834 int argc;
2835 char **argv;
2837 main ()
2839 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2841 return 0;
2843 _ACEOF
2844 # Don't try gcc -ansi; that turns off useful extensions and
2845 # breaks some systems' header files.
2846 # AIX -qlanglvl=ansi
2847 # Ultrix and OSF/1 -std1
2848 # HP-UX 10.20 and later -Ae
2849 # HP-UX older versions -Aa -D_HPUX_SOURCE
2850 # SVR4 -Xc -D__EXTENSIONS__
2851 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2853 CC="$ac_save_CC $ac_arg"
2854 rm -f conftest.$ac_objext
2855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2856 (eval $ac_compile) 2>conftest.er1
2857 ac_status=$?
2858 grep -v '^ *+' conftest.er1 >conftest.err
2859 rm -f conftest.er1
2860 cat conftest.err >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 { ac_try='test -z "$ac_c_werror_flag"
2864 || test ! -s conftest.err'
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 (eval $ac_try) 2>&5
2867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; } &&
2870 { ac_try='test -s conftest.$ac_objext'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2876 ac_cv_prog_cc_stdc=$ac_arg
2877 break
2878 else
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2883 rm -f conftest.err conftest.$ac_objext
2884 done
2885 rm -f conftest.$ac_ext conftest.$ac_objext
2886 CC=$ac_save_CC
2890 case "x$ac_cv_prog_cc_stdc" in
2891 x|xno)
2892 echo "$as_me:$LINENO: result: none needed" >&5
2893 echo "${ECHO_T}none needed" >&6 ;;
2895 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2896 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2897 CC="$CC $ac_cv_prog_cc_stdc" ;;
2898 esac
2900 # Some people use a C++ compiler to compile C. Since we use `exit',
2901 # in C++ we need to declare it. In case someone uses the same compiler
2902 # for both compiling C and C++ we need to have the C++ compiler decide
2903 # the declaration of exit, since it's the most demanding environment.
2904 cat >conftest.$ac_ext <<_ACEOF
2905 #ifndef __cplusplus
2906 choke me
2907 #endif
2908 _ACEOF
2909 rm -f conftest.$ac_objext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2911 (eval $ac_compile) 2>conftest.er1
2912 ac_status=$?
2913 grep -v '^ *+' conftest.er1 >conftest.err
2914 rm -f conftest.er1
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } &&
2918 { ac_try='test -z "$ac_c_werror_flag"
2919 || test ! -s conftest.err'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; } &&
2925 { ac_try='test -s conftest.$ac_objext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 (eval $ac_try) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 for ac_declaration in \
2932 '' \
2933 'extern "C" void std::exit (int) throw (); using std::exit;' \
2934 'extern "C" void std::exit (int); using std::exit;' \
2935 'extern "C" void exit (int) throw ();' \
2936 'extern "C" void exit (int);' \
2937 'void exit (int);'
2939 cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h. */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2945 $ac_declaration
2946 #include <stdlib.h>
2948 main ()
2950 exit (42);
2952 return 0;
2954 _ACEOF
2955 rm -f conftest.$ac_objext
2956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2957 (eval $ac_compile) 2>conftest.er1
2958 ac_status=$?
2959 grep -v '^ *+' conftest.er1 >conftest.err
2960 rm -f conftest.er1
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -z "$ac_c_werror_flag"
2965 || test ! -s conftest.err'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; } &&
2971 { ac_try='test -s conftest.$ac_objext'
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 (eval $ac_try) 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2978 else
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2982 continue
2984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2985 cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h. */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2991 $ac_declaration
2993 main ()
2995 exit (42);
2997 return 0;
2999 _ACEOF
3000 rm -f conftest.$ac_objext
3001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3002 (eval $ac_compile) 2>conftest.er1
3003 ac_status=$?
3004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -z "$ac_c_werror_flag"
3010 || test ! -s conftest.err'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 (eval $ac_try) 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; } &&
3016 { ac_try='test -s conftest.$ac_objext'
3017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018 (eval $ac_try) 2>&5
3019 ac_status=$?
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; }; then
3022 break
3023 else
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3029 done
3030 rm -f conftest*
3031 if test -n "$ac_declaration"; then
3032 echo '#ifdef __cplusplus' >>confdefs.h
3033 echo $ac_declaration >>confdefs.h
3034 echo '#endif' >>confdefs.h
3037 else
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3043 ac_ext=c
3044 ac_cpp='$CPP $CPPFLAGS'
3045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048 DEPDIR="${am__leading_dot}deps"
3050 ac_config_commands="$ac_config_commands depfiles"
3053 am_make=${MAKE-make}
3054 cat > confinc << 'END'
3055 am__doit:
3056 @echo done
3057 .PHONY: am__doit
3059 # If we don't find an include directive, just comment out the code.
3060 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3061 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3062 am__include="#"
3063 am__quote=
3064 _am_result=none
3065 # First try GNU make style include.
3066 echo "include confinc" > confmf
3067 # We grep out `Entering directory' and `Leaving directory'
3068 # messages which can occur if `w' ends up in MAKEFLAGS.
3069 # In particular we don't look at `^make:' because GNU make might
3070 # be invoked under some other name (usually "gmake"), in which
3071 # case it prints its new name instead of `make'.
3072 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3073 am__include=include
3074 am__quote=
3075 _am_result=GNU
3077 # Now try BSD make style include.
3078 if test "$am__include" = "#"; then
3079 echo '.include "confinc"' > confmf
3080 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3081 am__include=.include
3082 am__quote="\""
3083 _am_result=BSD
3088 echo "$as_me:$LINENO: result: $_am_result" >&5
3089 echo "${ECHO_T}$_am_result" >&6
3090 rm -f confinc confmf
3092 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3093 if test "${enable_dependency_tracking+set}" = set; then
3094 enableval="$enable_dependency_tracking"
3097 if test "x$enable_dependency_tracking" != xno; then
3098 am_depcomp="$ac_aux_dir/depcomp"
3099 AMDEPBACKSLASH='\'
3103 if test "x$enable_dependency_tracking" != xno; then
3104 AMDEP_TRUE=
3105 AMDEP_FALSE='#'
3106 else
3107 AMDEP_TRUE='#'
3108 AMDEP_FALSE=
3114 depcc="$CC" am_compiler_list=
3116 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3117 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3118 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3122 # We make a subdir and do the tests there. Otherwise we can end up
3123 # making bogus files that we don't know about and never remove. For
3124 # instance it was reported that on HP-UX the gcc test will end up
3125 # making a dummy file named `D' -- because `-MD' means `put the output
3126 # in D'.
3127 mkdir conftest.dir
3128 # Copy depcomp to subdir because otherwise we won't find it if we're
3129 # using a relative directory.
3130 cp "$am_depcomp" conftest.dir
3131 cd conftest.dir
3132 # We will build objects and dependencies in a subdirectory because
3133 # it helps to detect inapplicable dependency modes. For instance
3134 # both Tru64's cc and ICC support -MD to output dependencies as a
3135 # side effect of compilation, but ICC will put the dependencies in
3136 # the current directory while Tru64 will put them in the object
3137 # directory.
3138 mkdir sub
3140 am_cv_CC_dependencies_compiler_type=none
3141 if test "$am_compiler_list" = ""; then
3142 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3144 for depmode in $am_compiler_list; do
3145 # Setup a source with many dependencies, because some compilers
3146 # like to wrap large dependency lists on column 80 (with \), and
3147 # we should not choose a depcomp mode which is confused by this.
3149 # We need to recreate these files for each test, as the compiler may
3150 # overwrite some of them when testing with obscure command lines.
3151 # This happens at least with the AIX C compiler.
3152 : > sub/conftest.c
3153 for i in 1 2 3 4 5 6; do
3154 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3155 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3156 # Solaris 8's {/usr,}/bin/sh.
3157 touch sub/conftst$i.h
3158 done
3159 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3161 case $depmode in
3162 nosideeffect)
3163 # after this tag, mechanisms are not by side-effect, so they'll
3164 # only be used when explicitly requested
3165 if test "x$enable_dependency_tracking" = xyes; then
3166 continue
3167 else
3168 break
3171 none) break ;;
3172 esac
3173 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3174 # mode. It turns out that the SunPro C++ compiler does not properly
3175 # handle `-M -o', and we need to detect this.
3176 if depmode=$depmode \
3177 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3178 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3179 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3180 >/dev/null 2>conftest.err &&
3181 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3182 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3183 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3184 # icc doesn't choke on unknown options, it will just issue warnings
3185 # or remarks (even with -Werror). So we grep stderr for any message
3186 # that says an option was ignored or not supported.
3187 # When given -MP, icc 7.0 and 7.1 complain thusly:
3188 # icc: Command line warning: ignoring option '-M'; no argument required
3189 # The diagnosis changed in icc 8.0:
3190 # icc: Command line remark: option '-MP' not supported
3191 if (grep 'ignoring option' conftest.err ||
3192 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3193 am_cv_CC_dependencies_compiler_type=$depmode
3194 break
3197 done
3199 cd ..
3200 rm -rf conftest.dir
3201 else
3202 am_cv_CC_dependencies_compiler_type=none
3206 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3207 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3208 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3213 test "x$enable_dependency_tracking" != xno \
3214 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3215 am__fastdepCC_TRUE=
3216 am__fastdepCC_FALSE='#'
3217 else
3218 am__fastdepCC_TRUE='#'
3219 am__fastdepCC_FALSE=
3223 ac_ext=cc
3224 ac_cpp='$CXXCPP $CPPFLAGS'
3225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3228 if test -n "$ac_tool_prefix"; then
3229 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3233 echo "$as_me:$LINENO: checking for $ac_word" >&5
3234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3235 if test "${ac_cv_prog_CXX+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238 if test -n "$CXX"; then
3239 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3252 done
3253 done
3257 CXX=$ac_cv_prog_CXX
3258 if test -n "$CXX"; then
3259 echo "$as_me:$LINENO: result: $CXX" >&5
3260 echo "${ECHO_T}$CXX" >&6
3261 else
3262 echo "$as_me:$LINENO: result: no" >&5
3263 echo "${ECHO_T}no" >&6
3266 test -n "$CXX" && break
3267 done
3269 if test -z "$CXX"; then
3270 ac_ct_CXX=$CXX
3271 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3273 # Extract the first word of "$ac_prog", so it can be a program name with args.
3274 set dummy $ac_prog; ac_word=$2
3275 echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 if test -n "$ac_ct_CXX"; then
3281 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_ac_ct_CXX="$ac_prog"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3294 done
3295 done
3299 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3300 if test -n "$ac_ct_CXX"; then
3301 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3302 echo "${ECHO_T}$ac_ct_CXX" >&6
3303 else
3304 echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3308 test -n "$ac_ct_CXX" && break
3309 done
3310 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3312 CXX=$ac_ct_CXX
3316 # Provide some information about the compiler.
3317 echo "$as_me:$LINENO:" \
3318 "checking for C++ compiler version" >&5
3319 ac_compiler=`set X $ac_compile; echo $2`
3320 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3321 (eval $ac_compiler --version </dev/null >&5) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }
3325 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3326 (eval $ac_compiler -v </dev/null >&5) 2>&5
3327 ac_status=$?
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); }
3330 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3331 (eval $ac_compiler -V </dev/null >&5) 2>&5
3332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }
3336 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3337 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3338 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341 cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h. */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3349 main ()
3351 #ifndef __GNUC__
3352 choke me
3353 #endif
3356 return 0;
3358 _ACEOF
3359 rm -f conftest.$ac_objext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3361 (eval $ac_compile) 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try='test -z "$ac_cxx_werror_flag"
3369 || test ! -s conftest.err'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; } &&
3375 { ac_try='test -s conftest.$ac_objext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 ac_compiler_gnu=yes
3382 else
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.$ac_ext >&5
3386 ac_compiler_gnu=no
3388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3389 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3392 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3393 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3394 GXX=`test $ac_compiler_gnu = yes && echo yes`
3395 ac_test_CXXFLAGS=${CXXFLAGS+set}
3396 ac_save_CXXFLAGS=$CXXFLAGS
3397 CXXFLAGS="-g"
3398 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3399 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3400 if test "${ac_cv_prog_cxx_g+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403 cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h. */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3411 main ()
3415 return 0;
3417 _ACEOF
3418 rm -f conftest.$ac_objext
3419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3420 (eval $ac_compile) 2>conftest.er1
3421 ac_status=$?
3422 grep -v '^ *+' conftest.er1 >conftest.err
3423 rm -f conftest.er1
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } &&
3427 { ac_try='test -z "$ac_cxx_werror_flag"
3428 || test ! -s conftest.err'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 (eval $ac_try) 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; } &&
3434 { ac_try='test -s conftest.$ac_objext'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; }; then
3440 ac_cv_prog_cxx_g=yes
3441 else
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3445 ac_cv_prog_cxx_g=no
3447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3449 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3450 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3451 if test "$ac_test_CXXFLAGS" = set; then
3452 CXXFLAGS=$ac_save_CXXFLAGS
3453 elif test $ac_cv_prog_cxx_g = yes; then
3454 if test "$GXX" = yes; then
3455 CXXFLAGS="-g -O2"
3456 else
3457 CXXFLAGS="-g"
3459 else
3460 if test "$GXX" = yes; then
3461 CXXFLAGS="-O2"
3462 else
3463 CXXFLAGS=
3466 for ac_declaration in \
3467 '' \
3468 'extern "C" void std::exit (int) throw (); using std::exit;' \
3469 'extern "C" void std::exit (int); using std::exit;' \
3470 'extern "C" void exit (int) throw ();' \
3471 'extern "C" void exit (int);' \
3472 'void exit (int);'
3474 cat >conftest.$ac_ext <<_ACEOF
3475 /* confdefs.h. */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 $ac_declaration
3481 #include <stdlib.h>
3483 main ()
3485 exit (42);
3487 return 0;
3489 _ACEOF
3490 rm -f conftest.$ac_objext
3491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492 (eval $ac_compile) 2>conftest.er1
3493 ac_status=$?
3494 grep -v '^ *+' conftest.er1 >conftest.err
3495 rm -f conftest.er1
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try='test -z "$ac_cxx_werror_flag"
3500 || test ! -s conftest.err'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; } &&
3506 { ac_try='test -s conftest.$ac_objext'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 (eval $ac_try) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3513 else
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 continue
3519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3520 cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h. */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3526 $ac_declaration
3528 main ()
3530 exit (42);
3532 return 0;
3534 _ACEOF
3535 rm -f conftest.$ac_objext
3536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537 (eval $ac_compile) 2>conftest.er1
3538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try='test -z "$ac_cxx_werror_flag"
3545 || test ! -s conftest.err'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; } &&
3551 { ac_try='test -s conftest.$ac_objext'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3557 break
3558 else
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3564 done
3565 rm -f conftest*
3566 if test -n "$ac_declaration"; then
3567 echo '#ifdef __cplusplus' >>confdefs.h
3568 echo $ac_declaration >>confdefs.h
3569 echo '#endif' >>confdefs.h
3572 ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578 depcc="$CXX" am_compiler_list=
3580 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3581 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3582 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3586 # We make a subdir and do the tests there. Otherwise we can end up
3587 # making bogus files that we don't know about and never remove. For
3588 # instance it was reported that on HP-UX the gcc test will end up
3589 # making a dummy file named `D' -- because `-MD' means `put the output
3590 # in D'.
3591 mkdir conftest.dir
3592 # Copy depcomp to subdir because otherwise we won't find it if we're
3593 # using a relative directory.
3594 cp "$am_depcomp" conftest.dir
3595 cd conftest.dir
3596 # We will build objects and dependencies in a subdirectory because
3597 # it helps to detect inapplicable dependency modes. For instance
3598 # both Tru64's cc and ICC support -MD to output dependencies as a
3599 # side effect of compilation, but ICC will put the dependencies in
3600 # the current directory while Tru64 will put them in the object
3601 # directory.
3602 mkdir sub
3604 am_cv_CXX_dependencies_compiler_type=none
3605 if test "$am_compiler_list" = ""; then
3606 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3608 for depmode in $am_compiler_list; do
3609 # Setup a source with many dependencies, because some compilers
3610 # like to wrap large dependency lists on column 80 (with \), and
3611 # we should not choose a depcomp mode which is confused by this.
3613 # We need to recreate these files for each test, as the compiler may
3614 # overwrite some of them when testing with obscure command lines.
3615 # This happens at least with the AIX C compiler.
3616 : > sub/conftest.c
3617 for i in 1 2 3 4 5 6; do
3618 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3619 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3620 # Solaris 8's {/usr,}/bin/sh.
3621 touch sub/conftst$i.h
3622 done
3623 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3625 case $depmode in
3626 nosideeffect)
3627 # after this tag, mechanisms are not by side-effect, so they'll
3628 # only be used when explicitly requested
3629 if test "x$enable_dependency_tracking" = xyes; then
3630 continue
3631 else
3632 break
3635 none) break ;;
3636 esac
3637 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3638 # mode. It turns out that the SunPro C++ compiler does not properly
3639 # handle `-M -o', and we need to detect this.
3640 if depmode=$depmode \
3641 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3642 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3643 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3644 >/dev/null 2>conftest.err &&
3645 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3646 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3647 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3648 # icc doesn't choke on unknown options, it will just issue warnings
3649 # or remarks (even with -Werror). So we grep stderr for any message
3650 # that says an option was ignored or not supported.
3651 # When given -MP, icc 7.0 and 7.1 complain thusly:
3652 # icc: Command line warning: ignoring option '-M'; no argument required
3653 # The diagnosis changed in icc 8.0:
3654 # icc: Command line remark: option '-MP' not supported
3655 if (grep 'ignoring option' conftest.err ||
3656 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3657 am_cv_CXX_dependencies_compiler_type=$depmode
3658 break
3661 done
3663 cd ..
3664 rm -rf conftest.dir
3665 else
3666 am_cv_CXX_dependencies_compiler_type=none
3670 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3671 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3672 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3677 test "x$enable_dependency_tracking" != xno \
3678 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3679 am__fastdepCXX_TRUE=
3680 am__fastdepCXX_FALSE='#'
3681 else
3682 am__fastdepCXX_TRUE='#'
3683 am__fastdepCXX_FALSE=
3689 if test "x$CC" != xcc; then
3690 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3691 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3692 else
3693 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3694 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3696 set dummy $CC; ac_cc=`echo $2 |
3697 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3698 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 cat >conftest.$ac_ext <<_ACEOF
3702 /* confdefs.h. */
3703 _ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3709 main ()
3713 return 0;
3715 _ACEOF
3716 # Make sure it works both with $CC and with simple cc.
3717 # We do the test twice because some compilers refuse to overwrite an
3718 # existing .o file with -o, though they will create one.
3719 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3720 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 (eval $ac_try) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } &&
3725 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); };
3730 then
3731 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3732 if test "x$CC" != xcc; then
3733 # Test first that cc exists at all.
3734 if { ac_try='cc -c conftest.$ac_ext >&5'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736 (eval $ac_try) 2>&5
3737 ac_status=$?
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; }; then
3740 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3741 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742 (eval $ac_try) 2>&5
3743 ac_status=$?
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } &&
3746 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); };
3751 then
3752 # cc works too.
3754 else
3755 # cc exists but doesn't like -o.
3756 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3760 else
3761 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3763 rm -f conftest*
3766 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3767 echo "$as_me:$LINENO: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6
3769 else
3770 echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3773 cat >>confdefs.h <<\_ACEOF
3774 #define NO_MINUS_C_MINUS_O 1
3775 _ACEOF
3779 # FIXME: we rely on the cache variable name because
3780 # there is no other way.
3781 set dummy $CC
3782 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3783 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3784 # Losing compiler, so override with the script.
3785 # FIXME: It is wrong to rewrite CC.
3786 # But if we don't then we get into trouble of one sort or another.
3787 # A longer-term fix would be to have automake use am__CC in this case,
3788 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3789 CC="$am_aux_dir/compile $CC"
3796 # Newer automakes demand CCAS and CCASFLAGS.
3797 : ${CCAS='$(CC)'}
3798 : ${CCASFLAGS='$(CFLAGS)'}
3802 if test -n "$ac_tool_prefix"; then
3803 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3804 set dummy ${ac_tool_prefix}as; ac_word=$2
3805 echo "$as_me:$LINENO: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807 if test "${ac_cv_prog_AS+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810 if test -n "$AS"; then
3811 ac_cv_prog_AS="$AS" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_prog_AS="${ac_tool_prefix}as"
3821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 break 2
3824 done
3825 done
3829 AS=$ac_cv_prog_AS
3830 if test -n "$AS"; then
3831 echo "$as_me:$LINENO: result: $AS" >&5
3832 echo "${ECHO_T}$AS" >&6
3833 else
3834 echo "$as_me:$LINENO: result: no" >&5
3835 echo "${ECHO_T}no" >&6
3839 if test -z "$ac_cv_prog_AS"; then
3840 ac_ct_AS=$AS
3841 # Extract the first word of "as", so it can be a program name with args.
3842 set dummy as; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 if test -n "$ac_ct_AS"; then
3849 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_ac_ct_AS="as"
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3862 done
3863 done
3867 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3868 if test -n "$ac_ct_AS"; then
3869 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3870 echo "${ECHO_T}$ac_ct_AS" >&6
3871 else
3872 echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3876 AS=$ac_ct_AS
3877 else
3878 AS="$ac_cv_prog_AS"
3881 if test -n "$ac_tool_prefix"; then
3882 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3883 set dummy ${ac_tool_prefix}ar; ac_word=$2
3884 echo "$as_me:$LINENO: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_AR+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 if test -n "$AR"; then
3890 ac_cv_prog_AR="$AR" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_AR="${ac_tool_prefix}ar"
3900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3903 done
3904 done
3908 AR=$ac_cv_prog_AR
3909 if test -n "$AR"; then
3910 echo "$as_me:$LINENO: result: $AR" >&5
3911 echo "${ECHO_T}$AR" >&6
3912 else
3913 echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3918 if test -z "$ac_cv_prog_AR"; then
3919 ac_ct_AR=$AR
3920 # Extract the first word of "ar", so it can be a program name with args.
3921 set dummy ar; ac_word=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 if test -n "$ac_ct_AR"; then
3928 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_ac_ct_AR="ar"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3941 done
3942 done
3946 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3947 if test -n "$ac_ct_AR"; then
3948 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3949 echo "${ECHO_T}$ac_ct_AR" >&6
3950 else
3951 echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3955 AR=$ac_ct_AR
3956 else
3957 AR="$ac_cv_prog_AR"
3960 if test -n "$ac_tool_prefix"; then
3961 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3962 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_RANLIB+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968 if test -n "$RANLIB"; then
3969 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3982 done
3983 done
3987 RANLIB=$ac_cv_prog_RANLIB
3988 if test -n "$RANLIB"; then
3989 echo "$as_me:$LINENO: result: $RANLIB" >&5
3990 echo "${ECHO_T}$RANLIB" >&6
3991 else
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3997 if test -z "$ac_cv_prog_RANLIB"; then
3998 ac_ct_RANLIB=$RANLIB
3999 # Extract the first word of "ranlib", so it can be a program name with args.
4000 set dummy ranlib; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 if test -n "$ac_ct_RANLIB"; then
4007 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_prog_ac_ct_RANLIB="ranlib"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4020 done
4021 done
4023 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4026 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4027 if test -n "$ac_ct_RANLIB"; then
4028 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4029 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4030 else
4031 echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4035 RANLIB=$ac_ct_RANLIB
4036 else
4037 RANLIB="$ac_cv_prog_RANLIB"
4041 # Find a good install program. We prefer a C program (faster),
4042 # so one script is as good as another. But avoid the broken or
4043 # incompatible versions:
4044 # SysV /etc/install, /usr/sbin/install
4045 # SunOS /usr/etc/install
4046 # IRIX /sbin/install
4047 # AIX /bin/install
4048 # AmigaOS /C/install, which installs bootblocks on floppy discs
4049 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4050 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4051 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4052 # OS/2's system install, which has a completely different semantic
4053 # ./install, which can be erroneously created by make from ./install.sh.
4054 # Reject install programs that cannot install multiple files.
4055 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4056 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4057 if test -z "$INSTALL"; then
4058 if test "${ac_cv_path_install+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
4066 # Account for people who put trailing slashes in PATH elements.
4067 case $as_dir/ in
4068 ./ | .// | /cC/* | \
4069 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4070 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4071 /usr/ucb/* ) ;;
4073 # OSF1 and SCO ODT 3.0 have their own names for install.
4074 # Don't use installbsd from OSF since it installs stuff as root
4075 # by default.
4076 for ac_prog in ginstall scoinst install; do
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4079 if test $ac_prog = install &&
4080 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4081 # AIX install. It has an incompatible calling convention.
4083 elif test $ac_prog = install &&
4084 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4085 # program-specific install script used by HP pwplus--don't use.
4087 else
4088 rm -rf conftest.one conftest.two conftest.dir
4089 echo one > conftest.one
4090 echo two > conftest.two
4091 mkdir conftest.dir
4092 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4093 test -s conftest.one && test -s conftest.two &&
4094 test -s conftest.dir/conftest.one &&
4095 test -s conftest.dir/conftest.two
4096 then
4097 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4098 break 3
4102 done
4103 done
4105 esac
4106 done
4108 rm -rf conftest.one conftest.two conftest.dir
4111 if test "${ac_cv_path_install+set}" = set; then
4112 INSTALL=$ac_cv_path_install
4113 else
4114 # As a last resort, use the slow shell script. Don't cache a
4115 # value for INSTALL within a source directory, because that will
4116 # break other packages using the cache if that directory is
4117 # removed, or if the value is a relative name.
4118 INSTALL=$ac_install_sh
4121 echo "$as_me:$LINENO: result: $INSTALL" >&5
4122 echo "${ECHO_T}$INSTALL" >&6
4124 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4125 # It thinks the first close brace ends the variable substitution.
4126 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4128 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4130 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4133 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4134 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4135 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4136 if test "${enable_maintainer_mode+set}" = set; then
4137 enableval="$enable_maintainer_mode"
4138 USE_MAINTAINER_MODE=$enableval
4139 else
4140 USE_MAINTAINER_MODE=no
4142 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4143 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4146 if test $USE_MAINTAINER_MODE = yes; then
4147 MAINTAINER_MODE_TRUE=
4148 MAINTAINER_MODE_FALSE='#'
4149 else
4150 MAINTAINER_MODE_TRUE='#'
4151 MAINTAINER_MODE_FALSE=
4154 MAINT=$MAINTAINER_MODE_TRUE
4158 . ${srcdir}/configure.host
4160 case ${gc_basedir} in
4161 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
4162 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
4163 esac
4165 gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
4166 case "${host}" in
4167 *-*-cygwin32*)
4168 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
4170 esac
4173 GC_CFLAGS=${gc_cflags}
4178 macro_version='2.1a'
4179 macro_revision='1.2435'
4192 ltmain="$ac_aux_dir/ltmain.sh"
4194 # Set options
4196 enable_dlopen=no
4199 enable_win32_dll=no
4202 # Check whether --enable-shared or --disable-shared was given.
4203 if test "${enable_shared+set}" = set; then
4204 enableval="$enable_shared"
4205 p=${PACKAGE-default}
4206 case $enableval in
4207 yes) enable_shared=yes ;;
4208 no) enable_shared=no ;;
4210 enable_shared=no
4211 # Look at the argument we got. We use all the common list separators.
4212 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4213 for pkg in $enableval; do
4214 IFS="$lt_save_ifs"
4215 if test "X$pkg" = "X$p"; then
4216 enable_shared=yes
4218 done
4219 IFS="$lt_save_ifs"
4221 esac
4222 else
4223 enable_shared=yes
4233 # Check whether --enable-static or --disable-static was given.
4234 if test "${enable_static+set}" = set; then
4235 enableval="$enable_static"
4236 p=${PACKAGE-default}
4237 case $enableval in
4238 yes) enable_static=yes ;;
4239 no) enable_static=no ;;
4241 enable_static=no
4242 # Look at the argument we got. We use all the common list separators.
4243 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4244 for pkg in $enableval; do
4245 IFS="$lt_save_ifs"
4246 if test "X$pkg" = "X$p"; then
4247 enable_static=yes
4249 done
4250 IFS="$lt_save_ifs"
4252 esac
4253 else
4254 enable_static=yes
4265 # Check whether --with-pic or --without-pic was given.
4266 if test "${with_pic+set}" = set; then
4267 withval="$with_pic"
4268 pic_mode="$withval"
4269 else
4270 pic_mode=default
4273 test -z "$pic_mode" && pic_mode=default
4281 # Check whether --enable-fast-install or --disable-fast-install was given.
4282 if test "${enable_fast_install+set}" = set; then
4283 enableval="$enable_fast_install"
4284 p=${PACKAGE-default}
4285 case $enableval in
4286 yes) enable_fast_install=yes ;;
4287 no) enable_fast_install=no ;;
4289 enable_fast_install=no
4290 # Look at the argument we got. We use all the common list separators.
4291 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4292 for pkg in $enableval; do
4293 IFS="$lt_save_ifs"
4294 if test "X$pkg" = "X$p"; then
4295 enable_fast_install=yes
4297 done
4298 IFS="$lt_save_ifs"
4300 esac
4301 else
4302 enable_fast_install=yes
4312 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4313 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4314 if test "${lt_cv_path_SED+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317 # Loop through the user's path and test for sed and gsed.
4318 # Then use that list of sed's as ones to test for truncation.
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for lt_ac_prog in sed gsed; do
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4327 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4329 done
4330 done
4331 done
4332 IFS=$as_save_IFS
4333 lt_ac_max=0
4334 lt_ac_count=0
4335 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4336 # along with /bin/sed that truncates output.
4337 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4338 test ! -f $lt_ac_sed && continue
4339 cat /dev/null > conftest.in
4340 lt_ac_count=0
4341 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4342 # Check for GNU sed and select it if it is found.
4343 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4344 lt_cv_path_SED=$lt_ac_sed
4345 break
4347 while true; do
4348 cat conftest.in conftest.in >conftest.tmp
4349 mv conftest.tmp conftest.in
4350 cp conftest.in conftest.nl
4351 echo >>conftest.nl
4352 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4353 cmp -s conftest.out conftest.nl || break
4354 # 10000 chars as input seems more than enough
4355 test $lt_ac_count -gt 10 && break
4356 lt_ac_count=`expr $lt_ac_count + 1`
4357 if test $lt_ac_count -gt $lt_ac_max; then
4358 lt_ac_max=$lt_ac_count
4359 lt_cv_path_SED=$lt_ac_sed
4361 done
4362 done
4366 SED=$lt_cv_path_SED
4368 echo "$as_me:$LINENO: result: $SED" >&5
4369 echo "${ECHO_T}$SED" >&6
4371 test -z "$SED" && SED=sed
4372 Xsed="$SED -e 1s/^X//"
4384 echo "$as_me:$LINENO: checking for egrep" >&5
4385 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4386 if test "${ac_cv_prog_egrep+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4390 then ac_cv_prog_egrep='grep -E'
4391 else ac_cv_prog_egrep='egrep'
4394 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4395 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4396 EGREP=$ac_cv_prog_egrep
4399 echo "$as_me:$LINENO: checking for fgrep" >&5
4400 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4401 if test "${ac_cv_prog_fgrep+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4405 then ac_cv_prog_fgrep='grep -F'
4406 else ac_cv_prog_fgrep='fgrep'
4409 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4410 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4411 FGREP=$ac_cv_prog_fgrep
4414 test -z "$GREP" && GREP=grep
4434 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4435 if test "${with_gnu_ld+set}" = set; then
4436 withval="$with_gnu_ld"
4437 test "$withval" = no || with_gnu_ld=yes
4438 else
4439 with_gnu_ld=no
4441 ac_prog=ld
4442 if test "$GCC" = yes; then
4443 # Check if gcc -print-prog-name=ld gives a path.
4444 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4445 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4446 case $host in
4447 *-*-mingw*)
4448 # gcc leaves a trailing carriage return which upsets mingw
4449 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4451 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4452 esac
4453 case $ac_prog in
4454 # Accept absolute paths.
4455 [\\/]* | ?:[\\/]*)
4456 re_direlt='/[^/][^/]*/\.\./'
4457 # Canonicalize the pathname of ld
4458 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4459 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4460 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4461 done
4462 test -z "$LD" && LD="$ac_prog"
4465 # If it fails, then pretend we aren't using GCC.
4466 ac_prog=ld
4469 # If it is relative, then search for the first ld in PATH.
4470 with_gnu_ld=unknown
4472 esac
4473 elif test "$with_gnu_ld" = yes; then
4474 echo "$as_me:$LINENO: checking for GNU ld" >&5
4475 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4476 else
4477 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4478 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4480 if test "${lt_cv_path_LD+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 if test -z "$LD"; then
4484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4485 for ac_dir in $PATH; do
4486 IFS="$lt_save_ifs"
4487 test -z "$ac_dir" && ac_dir=.
4488 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4489 lt_cv_path_LD="$ac_dir/$ac_prog"
4490 # Check to see if the program is GNU ld. I'd rather use --version,
4491 # but apparently some variants of GNU ld only accept -v.
4492 # Break only if it was the GNU/non-GNU ld that we prefer.
4493 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4494 *GNU* | *'with BFD'*)
4495 test "$with_gnu_ld" != no && break
4498 test "$with_gnu_ld" != yes && break
4500 esac
4502 done
4503 IFS="$lt_save_ifs"
4504 else
4505 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4509 LD="$lt_cv_path_LD"
4510 if test -n "$LD"; then
4511 echo "$as_me:$LINENO: result: $LD" >&5
4512 echo "${ECHO_T}$LD" >&6
4513 else
4514 echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6
4517 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4518 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4519 { (exit 1); exit 1; }; }
4520 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4521 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4522 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4526 case `$LD -v 2>&1 </dev/null` in
4527 *GNU* | *'with BFD'*)
4528 lt_cv_prog_gnu_ld=yes
4531 lt_cv_prog_gnu_ld=no
4533 esac
4535 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4536 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4537 with_gnu_ld=$lt_cv_prog_gnu_ld
4548 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4549 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4550 if test "${lt_cv_path_NM+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 if test -n "$NM"; then
4554 # Let the user override the test.
4555 lt_cv_path_NM="$NM"
4556 else
4557 lt_nm_to_check="${ac_tool_prefix}nm"
4558 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4559 lt_nm_to_check="$lt_nm_to_check nm"
4561 for lt_tmp_nm in $lt_nm_to_check; do
4562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4563 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4564 IFS="$lt_save_ifs"
4565 test -z "$ac_dir" && ac_dir=.
4566 tmp_nm="$ac_dir/$lt_tmp_nm"
4567 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4568 # Check to see if the nm accepts a BSD-compat flag.
4569 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4570 # nm: unknown option "B" ignored
4571 # Tru64's nm complains that /dev/null is an invalid object file
4572 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4573 */dev/null* | *'Invalid file or object type'*)
4574 lt_cv_path_NM="$tmp_nm -B"
4575 break
4578 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4579 */dev/null*)
4580 lt_cv_path_NM="$tmp_nm -p"
4581 break
4584 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4585 continue # so that we can try to find one that supports BSD flags
4587 esac
4589 esac
4591 done
4592 IFS="$lt_save_ifs"
4593 done
4594 : ${lt_cv_path_NM=no}
4597 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4598 echo "${ECHO_T}$lt_cv_path_NM" >&6
4599 if test "$lt_cv_path_NM" != "no"; then
4600 NM="$lt_cv_path_NM"
4601 else
4602 # Didn't find any BSD compatible name lister, look for dumpbin.
4603 if test -n "$ac_tool_prefix"; then
4604 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4608 echo "$as_me:$LINENO: checking for $ac_word" >&5
4609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4610 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613 if test -n "$DUMPBIN"; then
4614 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4615 else
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4623 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4627 done
4628 done
4632 DUMPBIN=$ac_cv_prog_DUMPBIN
4633 if test -n "$DUMPBIN"; then
4634 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4635 echo "${ECHO_T}$DUMPBIN" >&6
4636 else
4637 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4641 test -n "$DUMPBIN" && break
4642 done
4644 if test -z "$DUMPBIN"; then
4645 ac_ct_DUMPBIN=$DUMPBIN
4646 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4648 # Extract the first word of "$ac_prog", so it can be a program name with args.
4649 set dummy $ac_prog; ac_word=$2
4650 echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4652 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655 if test -n "$ac_ct_DUMPBIN"; then
4656 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4669 done
4670 done
4674 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4675 if test -n "$ac_ct_DUMPBIN"; then
4676 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4677 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4678 else
4679 echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6
4683 test -n "$ac_ct_DUMPBIN" && break
4684 done
4685 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4687 DUMPBIN=$ac_ct_DUMPBIN
4691 if test "$DUMPBIN" != ":"; then
4692 NM="$DUMPBIN"
4695 test -z "$NM" && NM=nm
4702 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4703 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4704 if test "${lt_cv_nm_interface+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707 lt_cv_nm_interface="BSD nm"
4708 echo "int some_variable = 0;" > conftest.$ac_ext
4709 (eval echo "\"\$as_me:4709: $ac_compile\"" >&5)
4710 (eval "$ac_compile" 2>conftest.err)
4711 cat conftest.err >&5
4712 (eval echo "\"\$as_me:4712: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4713 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4714 cat conftest.err >&5
4715 (eval echo "\"\$as_me:4715: output\"" >&5)
4716 cat conftest.out >&5
4717 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4718 lt_cv_nm_interface="MS dumpbin"
4720 rm -f conftest*
4722 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4723 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4725 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4726 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4727 LN_S=$as_ln_s
4728 if test "$LN_S" = "ln -s"; then
4729 echo "$as_me:$LINENO: result: yes" >&5
4730 echo "${ECHO_T}yes" >&6
4731 else
4732 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4733 echo "${ECHO_T}no, using $LN_S" >&6
4736 # find the maximum length of command line arguments
4737 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4738 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4739 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4743 teststring="ABCD"
4745 case $build_os in
4746 msdosdjgpp*)
4747 # On DJGPP, this test can blow up pretty badly due to problems in libc
4748 # (any single argument exceeding 2000 bytes causes a buffer overrun
4749 # during glob expansion). Even if it were fixed, the result of this
4750 # check would be larger than it should be.
4751 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4754 gnu*)
4755 # Under GNU Hurd, this test is not required because there is
4756 # no limit to the length of command line arguments.
4757 # Libtool will interpret -1 as no limit whatsoever
4758 lt_cv_sys_max_cmd_len=-1;
4761 cygwin* | mingw*)
4762 # On Win9x/ME, this test blows up -- it succeeds, but takes
4763 # about 5 minutes as the teststring grows exponentially.
4764 # Worse, since 9x/ME are not pre-emptively multitasking,
4765 # you end up with a "frozen" computer, even though with patience
4766 # the test eventually succeeds (with a max line length of 256k).
4767 # Instead, let's just punt: use the minimum linelength reported by
4768 # all of the supported platforms: 8192 (on NT/2K/XP).
4769 lt_cv_sys_max_cmd_len=8192;
4772 amigaos*)
4773 # On AmigaOS with pdksh, this test takes hours, literally.
4774 # So we just punt and use a minimum line length of 8192.
4775 lt_cv_sys_max_cmd_len=8192;
4778 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4779 # This has been around since 386BSD, at least. Likely further.
4780 if test -x /sbin/sysctl; then
4781 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4782 elif test -x /usr/sbin/sysctl; then
4783 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4784 else
4785 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4787 # And add a safety zone
4788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4792 interix*)
4793 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4794 lt_cv_sys_max_cmd_len=196608
4797 osf*)
4798 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4799 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4800 # nice to cause kernel panics so lets avoid the loop below.
4801 # First set a reasonable default.
4802 lt_cv_sys_max_cmd_len=16384
4804 if test -x /sbin/sysconfig; then
4805 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4806 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4807 esac
4810 sco3.2v5*)
4811 lt_cv_sys_max_cmd_len=102400
4813 sysv5* | sco5v6* | sysv4.2uw2*)
4814 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4815 if test -n "$kargmax"; then
4816 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4817 else
4818 lt_cv_sys_max_cmd_len=32768
4822 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4823 if test -n $lt_cv_sys_max_cmd_len; then
4824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4826 else
4827 # Make teststring a little bigger before we do anything with it.
4828 # a 1K string should be a reasonable start.
4829 for i in 1 2 3 4 5 6 7 8 ; do
4830 teststring=$teststring$teststring
4831 done
4832 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4833 # If test is not a shell built-in, we'll probably end up computing a
4834 # maximum length that is only half of the actual maximum length, but
4835 # we can't tell.
4836 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4837 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4838 test $i != 17 # 1/2 MB should be enough
4840 i=`expr $i + 1`
4841 teststring=$teststring$teststring
4842 done
4843 # Only check the string length outside the loop.
4844 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4845 teststring=
4846 # Add a significant safety factor because C++ compilers can tack on
4847 # massive amounts of additional arguments before passing them to the
4848 # linker. It appears as though 1/2 is a usable value.
4849 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4852 esac
4856 if test -n $lt_cv_sys_max_cmd_len ; then
4857 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4858 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4859 else
4860 echo "$as_me:$LINENO: result: none" >&5
4861 echo "${ECHO_T}none" >&6
4863 max_cmd_len=$lt_cv_sys_max_cmd_len
4871 : ${CP="cp -f"}
4872 : ${MV="mv -f"}
4873 : ${RM="rm -f"}
4875 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4876 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4877 # Try some XSI features
4878 xsi_shell=no
4879 ( _lt_dummy="a/b/c"
4880 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4881 = c,a/b,, ) >/dev/null 2>&1 \
4882 && xsi_shell=yes
4883 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4884 echo "${ECHO_T}$xsi_shell" >&6
4887 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4888 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4889 lt_shell_append=no
4890 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4891 >/dev/null 2>&1 \
4892 && lt_shell_append=yes
4893 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4894 echo "${ECHO_T}$lt_shell_append" >&6
4897 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4898 lt_unset=unset
4899 else
4900 lt_unset=false
4907 # test EBCDIC or ASCII
4908 case `echo X|tr X '\101'` in
4909 A) # ASCII based system
4910 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4911 lt_SP2NL='tr \040 \012'
4912 lt_NL2SP='tr \015\012 \040\040'
4914 *) # EBCDIC based system
4915 lt_SP2NL='tr \100 \n'
4916 lt_NL2SP='tr \r\n \100\100'
4918 esac
4928 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4929 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4930 if test "${lt_cv_ld_reload_flag+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4933 lt_cv_ld_reload_flag='-r'
4935 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4936 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4937 reload_flag=$lt_cv_ld_reload_flag
4938 case $reload_flag in
4939 "" | " "*) ;;
4940 *) reload_flag=" $reload_flag" ;;
4941 esac
4942 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4943 case $host_os in
4944 darwin*)
4945 if test "$GCC" = yes; then
4946 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4947 else
4948 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4951 esac
4962 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4963 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4964 if test "${lt_cv_deplibs_check_method+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 else
4967 lt_cv_file_magic_cmd='$MAGIC_CMD'
4968 lt_cv_file_magic_test_file=
4969 lt_cv_deplibs_check_method='unknown'
4970 # Need to set the preceding variable on all platforms that support
4971 # interlibrary dependencies.
4972 # 'none' -- dependencies not supported.
4973 # `unknown' -- same as none, but documents that we really don't know.
4974 # 'pass_all' -- all dependencies passed with no checks.
4975 # 'test_compile' -- check by making test program.
4976 # 'file_magic [[regex]]' -- check by looking for files in library path
4977 # which responds to the $file_magic_cmd with a given extended regex.
4978 # If you have `file' or equivalent on your system and you're not sure
4979 # whether `pass_all' will *always* work, you probably want this one.
4981 case $host_os in
4982 aix[4-9]*)
4983 lt_cv_deplibs_check_method=pass_all
4986 beos*)
4987 lt_cv_deplibs_check_method=pass_all
4990 bsdi[45]*)
4991 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4992 lt_cv_file_magic_cmd='/usr/bin/file -L'
4993 lt_cv_file_magic_test_file=/shlib/libc.so
4996 cygwin*)
4997 # func_win32_libid is a shell function defined in ltmain.sh
4998 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4999 lt_cv_file_magic_cmd='func_win32_libid'
5002 mingw* | pw32*)
5003 # Base MSYS/MinGW do not provide the 'file' command needed by
5004 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5005 # unless we find 'file', for example because we are cross-compiling.
5006 if ( file / ) >/dev/null 2>&1; then
5007 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5008 lt_cv_file_magic_cmd='func_win32_libid'
5009 else
5010 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5011 lt_cv_file_magic_cmd='$OBJDUMP -f'
5015 darwin* | rhapsody*)
5016 lt_cv_deplibs_check_method=pass_all
5019 freebsd* | dragonfly*)
5020 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5021 case $host_cpu in
5022 i*86 )
5023 # Not sure whether the presence of OpenBSD here was a mistake.
5024 # Let's accept both of them until this is cleared up.
5025 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5026 lt_cv_file_magic_cmd=/usr/bin/file
5027 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5029 esac
5030 else
5031 lt_cv_deplibs_check_method=pass_all
5035 gnu*)
5036 lt_cv_deplibs_check_method=pass_all
5039 hpux10.20* | hpux11*)
5040 lt_cv_file_magic_cmd=/usr/bin/file
5041 case $host_cpu in
5042 ia64*)
5043 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5044 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5046 hppa*64*)
5047 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]'
5048 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5051 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5052 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5054 esac
5057 interix[3-9]*)
5058 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5059 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5062 irix5* | irix6* | nonstopux*)
5063 case $LD in
5064 *-32|*"-32 ") libmagic=32-bit;;
5065 *-n32|*"-n32 ") libmagic=N32;;
5066 *-64|*"-64 ") libmagic=64-bit;;
5067 *) libmagic=never-match;;
5068 esac
5069 lt_cv_deplibs_check_method=pass_all
5072 # This must be Linux ELF.
5073 linux* | k*bsd*-gnu)
5074 lt_cv_deplibs_check_method=pass_all
5077 netbsd*)
5078 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5080 else
5081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5085 newos6*)
5086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5087 lt_cv_file_magic_cmd=/usr/bin/file
5088 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5091 *nto* | *qnx*)
5092 lt_cv_deplibs_check_method=pass_all
5095 openbsd*)
5096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5098 else
5099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5103 osf3* | osf4* | osf5*)
5104 lt_cv_deplibs_check_method=pass_all
5107 rdos*)
5108 lt_cv_deplibs_check_method=pass_all
5111 solaris*)
5112 lt_cv_deplibs_check_method=pass_all
5115 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5116 lt_cv_deplibs_check_method=pass_all
5119 sysv4 | sysv4.3*)
5120 case $host_vendor in
5121 motorola)
5122 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]'
5123 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5125 ncr)
5126 lt_cv_deplibs_check_method=pass_all
5128 sequent)
5129 lt_cv_file_magic_cmd='/bin/file'
5130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5132 sni)
5133 lt_cv_file_magic_cmd='/bin/file'
5134 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5135 lt_cv_file_magic_test_file=/lib/libc.so
5137 siemens)
5138 lt_cv_deplibs_check_method=pass_all
5141 lt_cv_deplibs_check_method=pass_all
5143 esac
5146 tpf*)
5147 lt_cv_deplibs_check_method=pass_all
5149 esac
5152 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5153 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5154 file_magic_cmd=$lt_cv_file_magic_cmd
5155 deplibs_check_method=$lt_cv_deplibs_check_method
5156 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5169 if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}ar; ac_word=$2
5172 echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174 if test "${ac_cv_prog_AR+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177 if test -n "$AR"; then
5178 ac_cv_prog_AR="$AR" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187 ac_cv_prog_AR="${ac_tool_prefix}ar"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5191 done
5192 done
5196 AR=$ac_cv_prog_AR
5197 if test -n "$AR"; then
5198 echo "$as_me:$LINENO: result: $AR" >&5
5199 echo "${ECHO_T}$AR" >&6
5200 else
5201 echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6
5206 if test -z "$ac_cv_prog_AR"; then
5207 ac_ct_AR=$AR
5208 # Extract the first word of "ar", so it can be a program name with args.
5209 set dummy ar; ac_word=$2
5210 echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5212 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215 if test -n "$ac_ct_AR"; then
5216 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_prog_ac_ct_AR="ar"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5229 done
5230 done
5232 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5235 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5236 if test -n "$ac_ct_AR"; then
5237 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5238 echo "${ECHO_T}$ac_ct_AR" >&6
5239 else
5240 echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6
5244 AR=$ac_ct_AR
5245 else
5246 AR="$ac_cv_prog_AR"
5249 test -z "$AR" && AR=ar
5250 test -z "$AR_FLAGS" && AR_FLAGS=cru
5262 if test -n "$ac_tool_prefix"; then
5263 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5264 set dummy ${ac_tool_prefix}strip; ac_word=$2
5265 echo "$as_me:$LINENO: checking for $ac_word" >&5
5266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5267 if test "${ac_cv_prog_STRIP+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270 if test -n "$STRIP"; then
5271 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5284 done
5285 done
5289 STRIP=$ac_cv_prog_STRIP
5290 if test -n "$STRIP"; then
5291 echo "$as_me:$LINENO: result: $STRIP" >&5
5292 echo "${ECHO_T}$STRIP" >&6
5293 else
5294 echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6
5299 if test -z "$ac_cv_prog_STRIP"; then
5300 ac_ct_STRIP=$STRIP
5301 # Extract the first word of "strip", so it can be a program name with args.
5302 set dummy strip; ac_word=$2
5303 echo "$as_me:$LINENO: checking for $ac_word" >&5
5304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5305 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 else
5308 if test -n "$ac_ct_STRIP"; then
5309 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5310 else
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318 ac_cv_prog_ac_ct_STRIP="strip"
5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 break 2
5322 done
5323 done
5325 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5328 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5329 if test -n "$ac_ct_STRIP"; then
5330 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5331 echo "${ECHO_T}$ac_ct_STRIP" >&6
5332 else
5333 echo "$as_me:$LINENO: result: no" >&5
5334 echo "${ECHO_T}no" >&6
5337 STRIP=$ac_ct_STRIP
5338 else
5339 STRIP="$ac_cv_prog_STRIP"
5342 test -z "$STRIP" && STRIP=:
5349 if test -n "$ac_tool_prefix"; then
5350 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5352 echo "$as_me:$LINENO: checking for $ac_word" >&5
5353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5354 if test "${ac_cv_prog_RANLIB+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357 if test -n "$RANLIB"; then
5358 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 break 2
5371 done
5372 done
5376 RANLIB=$ac_cv_prog_RANLIB
5377 if test -n "$RANLIB"; then
5378 echo "$as_me:$LINENO: result: $RANLIB" >&5
5379 echo "${ECHO_T}$RANLIB" >&6
5380 else
5381 echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6
5386 if test -z "$ac_cv_prog_RANLIB"; then
5387 ac_ct_RANLIB=$RANLIB
5388 # Extract the first word of "ranlib", so it can be a program name with args.
5389 set dummy ranlib; ac_word=$2
5390 echo "$as_me:$LINENO: checking for $ac_word" >&5
5391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5392 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395 if test -n "$ac_ct_RANLIB"; then
5396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5397 else
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_ac_ct_RANLIB="ranlib"
5406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5409 done
5410 done
5412 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5416 if test -n "$ac_ct_RANLIB"; then
5417 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5418 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5419 else
5420 echo "$as_me:$LINENO: result: no" >&5
5421 echo "${ECHO_T}no" >&6
5424 RANLIB=$ac_ct_RANLIB
5425 else
5426 RANLIB="$ac_cv_prog_RANLIB"
5429 test -z "$RANLIB" && RANLIB=:
5436 # Determine commands to create old-style static archives.
5437 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5438 old_postinstall_cmds='chmod 644 $oldlib'
5439 old_postuninstall_cmds=
5441 if test -n "$RANLIB"; then
5442 case $host_os in
5443 openbsd*)
5444 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5447 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5449 esac
5450 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5486 # If no C compiler was specified, use CC.
5487 LTCC=${LTCC-"$CC"}
5489 # If no C compiler flags were specified, use CFLAGS.
5490 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5492 # Allow CC to be a program name with arguments.
5493 compiler=$CC
5496 # Check for command to grab the raw symbol name followed by C symbol from nm.
5497 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5498 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5499 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5503 # These are sane defaults that work on at least a few old systems.
5504 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5506 # Character class describing NM global symbol codes.
5507 symcode='[BCDEGRST]'
5509 # Regexp to match symbols that can be accessed directly from C.
5510 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5512 # Define system-specific variables.
5513 case $host_os in
5514 aix*)
5515 symcode='[BCDT]'
5517 cygwin* | mingw* | pw32*)
5518 symcode='[ABCDGISTW]'
5520 hpux*)
5521 if test "$host_cpu" = ia64; then
5522 symcode='[ABCDEGRST]'
5525 irix* | nonstopux*)
5526 symcode='[BCDEGRST]'
5528 osf*)
5529 symcode='[BCDEGQRST]'
5531 solaris*)
5532 symcode='[BDRT]'
5534 sco3.2v5*)
5535 symcode='[DT]'
5537 sysv4.2uw2*)
5538 symcode='[DT]'
5540 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5541 symcode='[ABDT]'
5543 sysv4)
5544 symcode='[DFNSTU]'
5546 esac
5548 # If we're using GNU nm, then use its standard symbol codes.
5549 case `$NM -V 2>&1` in
5550 *GNU* | *'with BFD'*)
5551 symcode='[ABCDGIRSTW]' ;;
5552 esac
5554 # Transform an extracted symbol line into a proper C declaration.
5555 # Some systems (esp. on ia64) link data and code symbols differently,
5556 # so use this general approach.
5557 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5559 # Transform an extracted symbol line into symbol name and symbol address
5560 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5562 # Handle CRLF in mingw tool chain
5563 opt_cr=
5564 case $build_os in
5565 mingw*)
5566 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5568 esac
5570 # Try without a prefix underscore, then with it.
5571 for ac_symprfx in "" "_"; do
5573 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5574 symxfrm="\\1 $ac_symprfx\\2 \\2"
5576 # Write the raw and C identifiers.
5577 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5578 # Fake it for dumpbin and say T for any non-static function
5579 # and D for any global variable.
5580 # Also find C++ and __fastcall symbols from MSVC++,
5581 # which start with @ or ?.
5582 lt_cv_sys_global_symbol_pipe="$AWK '"\
5583 " {last_section=section; section=\$ 3};"\
5584 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5585 " \$ 0!~/External *\|/{next};"\
5586 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5587 " {if(hide[section]) next};"\
5588 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5589 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5590 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5591 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5592 " ' prfx=^$ac_symprfx"
5593 else
5594 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5597 # Check to see that the pipe works correctly.
5598 pipe_works=no
5600 rm -f conftest*
5601 cat > conftest.$ac_ext <<_LT_EOF
5602 #ifdef __cplusplus
5603 extern "C" {
5604 #endif
5605 char nm_test_var;
5606 void nm_test_func(void);
5607 void nm_test_func(void){}
5608 #ifdef __cplusplus
5610 #endif
5611 int main(){nm_test_var='a';nm_test_func();return(0);}
5612 _LT_EOF
5614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615 (eval $ac_compile) 2>&5
5616 ac_status=$?
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; then
5619 # Now try to grab the symbols.
5620 nlist=conftest.nm
5621 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5622 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } && test -s "$nlist"; then
5626 # Try sorting and uniquifying the output.
5627 if sort "$nlist" | uniq > "$nlist"T; then
5628 mv -f "$nlist"T "$nlist"
5629 else
5630 rm -f "$nlist"T
5633 # Make sure that we snagged all the symbols we need.
5634 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5635 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5636 cat <<_LT_EOF > conftest.$ac_ext
5637 #ifdef __cplusplus
5638 extern "C" {
5639 #endif
5641 _LT_EOF
5642 # Now generate the symbol file.
5643 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5645 cat <<_LT_EOF >> conftest.$ac_ext
5647 /* The mapping between symbol names and symbols. */
5648 const struct {
5649 const char *name;
5650 void *address;
5652 lt__PROGRAM__LTX_preloaded_symbols[] =
5654 { "@PROGRAM@", (void *) 0 },
5655 _LT_EOF
5656 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5657 cat <<\_LT_EOF >> conftest.$ac_ext
5658 {0, (void *) 0}
5661 /* This works around a problem in FreeBSD linker */
5662 #ifdef FREEBSD_WORKAROUND
5663 static const void *lt_preloaded_setup() {
5664 return lt__PROGRAM__LTX_preloaded_symbols;
5666 #endif
5668 #ifdef __cplusplus
5670 #endif
5671 _LT_EOF
5672 # Now try linking the two files.
5673 mv conftest.$ac_objext conftstm.$ac_objext
5674 lt_save_LIBS="$LIBS"
5675 lt_save_CFLAGS="$CFLAGS"
5676 LIBS="conftstm.$ac_objext"
5677 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5679 (eval $ac_link) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5683 pipe_works=yes
5685 LIBS="$lt_save_LIBS"
5686 CFLAGS="$lt_save_CFLAGS"
5687 else
5688 echo "cannot find nm_test_func in $nlist" >&5
5690 else
5691 echo "cannot find nm_test_var in $nlist" >&5
5693 else
5694 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5696 else
5697 echo "$progname: failed program was:" >&5
5698 cat conftest.$ac_ext >&5
5700 rm -f conftest* conftst*
5702 # Do not use the global_symbol_pipe unless it works.
5703 if test "$pipe_works" = yes; then
5704 break
5705 else
5706 lt_cv_sys_global_symbol_pipe=
5708 done
5712 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5713 lt_cv_sys_global_symbol_to_cdecl=
5715 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5716 echo "$as_me:$LINENO: result: failed" >&5
5717 echo "${ECHO_T}failed" >&6
5718 else
5719 echo "$as_me:$LINENO: result: ok" >&5
5720 echo "${ECHO_T}ok" >&6
5740 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5741 if test "${enable_libtool_lock+set}" = set; then
5742 enableval="$enable_libtool_lock"
5745 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5747 # Some flags need to be propagated to the compiler or linker for good
5748 # libtool support.
5749 case $host in
5750 ia64-*-hpux*)
5751 # Find out which ABI we are using.
5752 echo 'int i;' > conftest.$ac_ext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; then
5758 case `/usr/bin/file conftest.$ac_objext` in
5759 *ELF-32*)
5760 HPUX_IA64_MODE="32"
5762 *ELF-64*)
5763 HPUX_IA64_MODE="64"
5765 esac
5767 rm -rf conftest*
5769 *-*-irix6*)
5770 # Find out which ABI we are using.
5771 echo '#line 5771 "configure"' > conftest.$ac_ext
5772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5773 (eval $ac_compile) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; then
5777 if test "$lt_cv_prog_gnu_ld" = yes; then
5778 case `/usr/bin/file conftest.$ac_objext` in
5779 *32-bit*)
5780 LD="${LD-ld} -melf32bsmip"
5782 *N32*)
5783 LD="${LD-ld} -melf32bmipn32"
5785 *64-bit*)
5786 LD="${LD-ld} -melf64bmip"
5788 esac
5789 else
5790 case `/usr/bin/file conftest.$ac_objext` in
5791 *32-bit*)
5792 LD="${LD-ld} -32"
5794 *N32*)
5795 LD="${LD-ld} -n32"
5797 *64-bit*)
5798 LD="${LD-ld} -64"
5800 esac
5803 rm -rf conftest*
5806 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5807 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5808 # Find out which ABI we are using.
5809 echo 'int i;' > conftest.$ac_ext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811 (eval $ac_compile) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; then
5815 case `/usr/bin/file conftest.o` in
5816 *32-bit*)
5817 case $host in
5818 x86_64-*kfreebsd*-gnu)
5819 LD="${LD-ld} -m elf_i386_fbsd"
5821 x86_64-*linux*)
5822 LD="${LD-ld} -m elf_i386"
5824 ppc64-*linux*|powerpc64-*linux*)
5825 LD="${LD-ld} -m elf32ppclinux"
5827 s390x-*linux*)
5828 LD="${LD-ld} -m elf_s390"
5830 sparc64-*linux*)
5831 LD="${LD-ld} -m elf32_sparc"
5833 esac
5835 *64-bit*)
5836 case $host in
5837 x86_64-*kfreebsd*-gnu)
5838 LD="${LD-ld} -m elf_x86_64_fbsd"
5840 x86_64-*linux*)
5841 LD="${LD-ld} -m elf_x86_64"
5843 ppc*-*linux*|powerpc*-*linux*)
5844 LD="${LD-ld} -m elf64ppc"
5846 s390*-*linux*|s390*-*tpf*)
5847 LD="${LD-ld} -m elf64_s390"
5849 sparc*-*linux*)
5850 LD="${LD-ld} -m elf64_sparc"
5852 esac
5854 esac
5856 rm -rf conftest*
5859 *-*-sco3.2v5*)
5860 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5861 SAVE_CFLAGS="$CFLAGS"
5862 CFLAGS="$CFLAGS -belf"
5863 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5864 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5865 if test "${lt_cv_cc_needs_belf+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868 ac_ext=c
5869 ac_cpp='$CPP $CPPFLAGS'
5870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5874 if test x$gcc_no_link = xyes; then
5875 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5877 { (exit 1); exit 1; }; }
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5887 main ()
5891 return 0;
5893 _ACEOF
5894 rm -f conftest.$ac_objext conftest$ac_exeext
5895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5896 (eval $ac_link) 2>conftest.er1
5897 ac_status=$?
5898 grep -v '^ *+' conftest.er1 >conftest.err
5899 rm -f conftest.er1
5900 cat conftest.err >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } &&
5903 { ac_try='test -z "$ac_c_werror_flag"
5904 || test ! -s conftest.err'
5905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906 (eval $ac_try) 2>&5
5907 ac_status=$?
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; } &&
5910 { ac_try='test -s conftest$ac_exeext'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912 (eval $ac_try) 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; }; then
5916 lt_cv_cc_needs_belf=yes
5917 else
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5921 lt_cv_cc_needs_belf=no
5923 rm -f conftest.err conftest.$ac_objext \
5924 conftest$ac_exeext conftest.$ac_ext
5925 ac_ext=c
5926 ac_cpp='$CPP $CPPFLAGS'
5927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5932 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5933 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5934 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5935 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5936 CFLAGS="$SAVE_CFLAGS"
5939 sparc*-*solaris*)
5940 # Find out which ABI we are using.
5941 echo 'int i;' > conftest.$ac_ext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943 (eval $ac_compile) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; then
5947 case `/usr/bin/file conftest.o` in
5948 *64-bit*)
5949 case $lt_cv_prog_gnu_ld in
5950 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5951 *) LD="${LD-ld} -64" ;;
5952 esac
5954 esac
5956 rm -rf conftest*
5958 esac
5960 need_locks="$enable_libtool_lock"
5962 ac_ext=c
5963 ac_cpp='$CPP $CPPFLAGS'
5964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5967 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5968 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5969 # On Suns, sometimes $CPP names a directory.
5970 if test -n "$CPP" && test -d "$CPP"; then
5971 CPP=
5973 if test -z "$CPP"; then
5974 if test "${ac_cv_prog_CPP+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977 # Double quotes because CPP needs to be expanded
5978 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5980 ac_preproc_ok=false
5981 for ac_c_preproc_warn_flag in '' yes
5983 # Use a header file that comes with gcc, so configuring glibc
5984 # with a fresh cross-compiler works.
5985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5986 # <limits.h> exists even on freestanding compilers.
5987 # On the NeXT, cc -E runs the code through the compiler's parser,
5988 # not just through cpp. "Syntax error" is here to catch this case.
5989 cat >conftest.$ac_ext <<_ACEOF
5990 /* confdefs.h. */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 #ifdef __STDC__
5996 # include <limits.h>
5997 #else
5998 # include <assert.h>
5999 #endif
6000 Syntax error
6001 _ACEOF
6002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } >/dev/null; then
6010 if test -s conftest.err; then
6011 ac_cpp_err=$ac_c_preproc_warn_flag
6012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6013 else
6014 ac_cpp_err=
6016 else
6017 ac_cpp_err=yes
6019 if test -z "$ac_cpp_err"; then
6021 else
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 # Broken: fails on valid input.
6026 continue
6028 rm -f conftest.err conftest.$ac_ext
6030 # OK, works on sane cases. Now check whether non-existent headers
6031 # can be detected and how.
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <ac_nonexistent.h>
6039 _ACEOF
6040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6042 ac_status=$?
6043 grep -v '^ *+' conftest.er1 >conftest.err
6044 rm -f conftest.er1
6045 cat conftest.err >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } >/dev/null; then
6048 if test -s conftest.err; then
6049 ac_cpp_err=$ac_c_preproc_warn_flag
6050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6051 else
6052 ac_cpp_err=
6054 else
6055 ac_cpp_err=yes
6057 if test -z "$ac_cpp_err"; then
6058 # Broken: success on invalid input.
6059 continue
6060 else
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6064 # Passes both tests.
6065 ac_preproc_ok=:
6066 break
6068 rm -f conftest.err conftest.$ac_ext
6070 done
6071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6072 rm -f conftest.err conftest.$ac_ext
6073 if $ac_preproc_ok; then
6074 break
6077 done
6078 ac_cv_prog_CPP=$CPP
6081 CPP=$ac_cv_prog_CPP
6082 else
6083 ac_cv_prog_CPP=$CPP
6085 echo "$as_me:$LINENO: result: $CPP" >&5
6086 echo "${ECHO_T}$CPP" >&6
6087 ac_preproc_ok=false
6088 for ac_c_preproc_warn_flag in '' yes
6090 # Use a header file that comes with gcc, so configuring glibc
6091 # with a fresh cross-compiler works.
6092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6093 # <limits.h> exists even on freestanding compilers.
6094 # On the NeXT, cc -E runs the code through the compiler's parser,
6095 # not just through cpp. "Syntax error" is here to catch this case.
6096 cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h. */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6102 #ifdef __STDC__
6103 # include <limits.h>
6104 #else
6105 # include <assert.h>
6106 #endif
6107 Syntax error
6108 _ACEOF
6109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } >/dev/null; then
6117 if test -s conftest.err; then
6118 ac_cpp_err=$ac_c_preproc_warn_flag
6119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6120 else
6121 ac_cpp_err=
6123 else
6124 ac_cpp_err=yes
6126 if test -z "$ac_cpp_err"; then
6128 else
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6132 # Broken: fails on valid input.
6133 continue
6135 rm -f conftest.err conftest.$ac_ext
6137 # OK, works on sane cases. Now check whether non-existent headers
6138 # can be detected and how.
6139 cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h. */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 #include <ac_nonexistent.h>
6146 _ACEOF
6147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6149 ac_status=$?
6150 grep -v '^ *+' conftest.er1 >conftest.err
6151 rm -f conftest.er1
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } >/dev/null; then
6155 if test -s conftest.err; then
6156 ac_cpp_err=$ac_c_preproc_warn_flag
6157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6158 else
6159 ac_cpp_err=
6161 else
6162 ac_cpp_err=yes
6164 if test -z "$ac_cpp_err"; then
6165 # Broken: success on invalid input.
6166 continue
6167 else
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6171 # Passes both tests.
6172 ac_preproc_ok=:
6173 break
6175 rm -f conftest.err conftest.$ac_ext
6177 done
6178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6179 rm -f conftest.err conftest.$ac_ext
6180 if $ac_preproc_ok; then
6182 else
6183 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6184 See \`config.log' for more details." >&5
6185 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6186 See \`config.log' for more details." >&2;}
6187 { (exit 1); exit 1; }; }
6190 ac_ext=c
6191 ac_cpp='$CPP $CPPFLAGS'
6192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6197 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6198 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6199 if test "${ac_cv_header_stdc+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 cat >conftest.$ac_ext <<_ACEOF
6203 /* confdefs.h. */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 #include <stdlib.h>
6209 #include <stdarg.h>
6210 #include <string.h>
6211 #include <float.h>
6214 main ()
6218 return 0;
6220 _ACEOF
6221 rm -f conftest.$ac_objext
6222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6223 (eval $ac_compile) 2>conftest.er1
6224 ac_status=$?
6225 grep -v '^ *+' conftest.er1 >conftest.err
6226 rm -f conftest.er1
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try='test -z "$ac_c_werror_flag"
6231 || test ! -s conftest.err'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 (eval $ac_try) 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; } &&
6237 { ac_try='test -s conftest.$ac_objext'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 (eval $ac_try) 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
6243 ac_cv_header_stdc=yes
6244 else
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6248 ac_cv_header_stdc=no
6250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6252 if test $ac_cv_header_stdc = yes; then
6253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6254 cat >conftest.$ac_ext <<_ACEOF
6255 /* confdefs.h. */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6260 #include <string.h>
6262 _ACEOF
6263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6264 $EGREP "memchr" >/dev/null 2>&1; then
6266 else
6267 ac_cv_header_stdc=no
6269 rm -f conftest*
6273 if test $ac_cv_header_stdc = yes; then
6274 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6275 cat >conftest.$ac_ext <<_ACEOF
6276 /* confdefs.h. */
6277 _ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6281 #include <stdlib.h>
6283 _ACEOF
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "free" >/dev/null 2>&1; then
6287 else
6288 ac_cv_header_stdc=no
6290 rm -f conftest*
6294 if test $ac_cv_header_stdc = yes; then
6295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6296 if test "$cross_compiling" = yes; then
6298 else
6299 cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h. */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 #include <ctype.h>
6306 #if ((' ' & 0x0FF) == 0x020)
6307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6309 #else
6310 # define ISLOWER(c) \
6311 (('a' <= (c) && (c) <= 'i') \
6312 || ('j' <= (c) && (c) <= 'r') \
6313 || ('s' <= (c) && (c) <= 'z'))
6314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6315 #endif
6317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6319 main ()
6321 int i;
6322 for (i = 0; i < 256; i++)
6323 if (XOR (islower (i), ISLOWER (i))
6324 || toupper (i) != TOUPPER (i))
6325 exit(2);
6326 exit (0);
6328 _ACEOF
6329 rm -f conftest$ac_exeext
6330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6331 (eval $ac_link) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 (eval $ac_try) 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6341 else
6342 echo "$as_me: program exited with status $ac_status" >&5
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6346 ( exit $ac_status )
6347 ac_cv_header_stdc=no
6349 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6353 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6354 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6355 if test $ac_cv_header_stdc = yes; then
6357 cat >>confdefs.h <<\_ACEOF
6358 #define STDC_HEADERS 1
6359 _ACEOF
6363 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6373 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6374 inttypes.h stdint.h unistd.h
6376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6377 echo "$as_me:$LINENO: checking for $ac_header" >&5
6378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 else
6382 cat >conftest.$ac_ext <<_ACEOF
6383 /* confdefs.h. */
6384 _ACEOF
6385 cat confdefs.h >>conftest.$ac_ext
6386 cat >>conftest.$ac_ext <<_ACEOF
6387 /* end confdefs.h. */
6388 $ac_includes_default
6390 #include <$ac_header>
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_c_werror_flag"
6402 || test ! -s conftest.err'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; } &&
6408 { ac_try='test -s conftest.$ac_objext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 eval "$as_ac_Header=yes"
6415 else
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 eval "$as_ac_Header=no"
6421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6426 cat >>confdefs.h <<_ACEOF
6427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6428 _ACEOF
6432 done
6436 for ac_header in dlfcn.h
6438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6439 echo "$as_me:$LINENO: checking for $ac_header" >&5
6440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444 cat >conftest.$ac_ext <<_ACEOF
6445 /* confdefs.h. */
6446 _ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450 $ac_includes_default
6452 #include <$ac_header>
6453 _ACEOF
6454 rm -f conftest.$ac_objext
6455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6456 (eval $ac_compile) 2>conftest.er1
6457 ac_status=$?
6458 grep -v '^ *+' conftest.er1 >conftest.err
6459 rm -f conftest.er1
6460 cat conftest.err >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } &&
6463 { ac_try='test -z "$ac_c_werror_flag"
6464 || test ! -s conftest.err'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 (eval $ac_try) 2>&5
6467 ac_status=$?
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; } &&
6470 { ac_try='test -s conftest.$ac_objext'
6471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 (eval $ac_try) 2>&5
6473 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; }; then
6476 eval "$as_ac_Header=yes"
6477 else
6478 echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.$ac_ext >&5
6481 eval "$as_ac_Header=no"
6483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6488 cat >>confdefs.h <<_ACEOF
6489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6490 _ACEOF
6494 done
6498 ac_ext=cc
6499 ac_cpp='$CXXCPP $CPPFLAGS'
6500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6503 if test -n "$ac_tool_prefix"; then
6504 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6508 echo "$as_me:$LINENO: checking for $ac_word" >&5
6509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6510 if test "${ac_cv_prog_CXX+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513 if test -n "$CXX"; then
6514 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6515 else
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6519 IFS=$as_save_IFS
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6523 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 break 2
6527 done
6528 done
6532 CXX=$ac_cv_prog_CXX
6533 if test -n "$CXX"; then
6534 echo "$as_me:$LINENO: result: $CXX" >&5
6535 echo "${ECHO_T}$CXX" >&6
6536 else
6537 echo "$as_me:$LINENO: result: no" >&5
6538 echo "${ECHO_T}no" >&6
6541 test -n "$CXX" && break
6542 done
6544 if test -z "$CXX"; then
6545 ac_ct_CXX=$CXX
6546 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6548 # Extract the first word of "$ac_prog", so it can be a program name with args.
6549 set dummy $ac_prog; ac_word=$2
6550 echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6552 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555 if test -n "$ac_ct_CXX"; then
6556 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6565 ac_cv_prog_ac_ct_CXX="$ac_prog"
6566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6569 done
6570 done
6574 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6575 if test -n "$ac_ct_CXX"; then
6576 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6577 echo "${ECHO_T}$ac_ct_CXX" >&6
6578 else
6579 echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6
6583 test -n "$ac_ct_CXX" && break
6584 done
6585 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6587 CXX=$ac_ct_CXX
6591 # Provide some information about the compiler.
6592 echo "$as_me:$LINENO:" \
6593 "checking for C++ compiler version" >&5
6594 ac_compiler=`set X $ac_compile; echo $2`
6595 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6596 (eval $ac_compiler --version </dev/null >&5) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }
6600 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6601 (eval $ac_compiler -v </dev/null >&5) 2>&5
6602 ac_status=$?
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }
6605 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6606 (eval $ac_compiler -V </dev/null >&5) 2>&5
6607 ac_status=$?
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }
6611 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6612 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6613 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616 cat >conftest.$ac_ext <<_ACEOF
6617 /* confdefs.h. */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6624 main ()
6626 #ifndef __GNUC__
6627 choke me
6628 #endif
6631 return 0;
6633 _ACEOF
6634 rm -f conftest.$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>conftest.er1
6637 ac_status=$?
6638 grep -v '^ *+' conftest.er1 >conftest.err
6639 rm -f conftest.er1
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try='test -z "$ac_cxx_werror_flag"
6644 || test ! -s conftest.err'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try='test -s conftest.$ac_objext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 ac_compiler_gnu=yes
6657 else
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6661 ac_compiler_gnu=no
6663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6664 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6667 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6668 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6669 GXX=`test $ac_compiler_gnu = yes && echo yes`
6670 ac_test_CXXFLAGS=${CXXFLAGS+set}
6671 ac_save_CXXFLAGS=$CXXFLAGS
6672 CXXFLAGS="-g"
6673 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6674 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6675 if test "${ac_cv_prog_cxx_g+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678 cat >conftest.$ac_ext <<_ACEOF
6679 /* confdefs.h. */
6680 _ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6686 main ()
6690 return 0;
6692 _ACEOF
6693 rm -f conftest.$ac_objext
6694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6695 (eval $ac_compile) 2>conftest.er1
6696 ac_status=$?
6697 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -f conftest.er1
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } &&
6702 { ac_try='test -z "$ac_cxx_werror_flag"
6703 || test ! -s conftest.err'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 (eval $ac_try) 2>&5
6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; } &&
6709 { ac_try='test -s conftest.$ac_objext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 ac_cv_prog_cxx_g=yes
6716 else
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 ac_cv_prog_cxx_g=no
6722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6724 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6725 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6726 if test "$ac_test_CXXFLAGS" = set; then
6727 CXXFLAGS=$ac_save_CXXFLAGS
6728 elif test $ac_cv_prog_cxx_g = yes; then
6729 if test "$GXX" = yes; then
6730 CXXFLAGS="-g -O2"
6731 else
6732 CXXFLAGS="-g"
6734 else
6735 if test "$GXX" = yes; then
6736 CXXFLAGS="-O2"
6737 else
6738 CXXFLAGS=
6741 for ac_declaration in \
6742 '' \
6743 'extern "C" void std::exit (int) throw (); using std::exit;' \
6744 'extern "C" void std::exit (int); using std::exit;' \
6745 'extern "C" void exit (int) throw ();' \
6746 'extern "C" void exit (int);' \
6747 'void exit (int);'
6749 cat >conftest.$ac_ext <<_ACEOF
6750 /* confdefs.h. */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6755 $ac_declaration
6756 #include <stdlib.h>
6758 main ()
6760 exit (42);
6762 return 0;
6764 _ACEOF
6765 rm -f conftest.$ac_objext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6767 (eval $ac_compile) 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try='test -z "$ac_cxx_werror_flag"
6775 || test ! -s conftest.err'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest.$ac_objext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 (eval $ac_try) 2>&5
6784 ac_status=$?
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6788 else
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6792 continue
6794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 $ac_declaration
6803 main ()
6805 exit (42);
6807 return 0;
6809 _ACEOF
6810 rm -f conftest.$ac_objext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>conftest.er1
6813 ac_status=$?
6814 grep -v '^ *+' conftest.er1 >conftest.err
6815 rm -f conftest.er1
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } &&
6819 { ac_try='test -z "$ac_cxx_werror_flag"
6820 || test ! -s conftest.err'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; } &&
6826 { ac_try='test -s conftest.$ac_objext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 break
6833 else
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6839 done
6840 rm -f conftest*
6841 if test -n "$ac_declaration"; then
6842 echo '#ifdef __cplusplus' >>confdefs.h
6843 echo $ac_declaration >>confdefs.h
6844 echo '#endif' >>confdefs.h
6847 ac_ext=c
6848 ac_cpp='$CPP $CPPFLAGS'
6849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6853 depcc="$CXX" am_compiler_list=
6855 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6856 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6857 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6861 # We make a subdir and do the tests there. Otherwise we can end up
6862 # making bogus files that we don't know about and never remove. For
6863 # instance it was reported that on HP-UX the gcc test will end up
6864 # making a dummy file named `D' -- because `-MD' means `put the output
6865 # in D'.
6866 mkdir conftest.dir
6867 # Copy depcomp to subdir because otherwise we won't find it if we're
6868 # using a relative directory.
6869 cp "$am_depcomp" conftest.dir
6870 cd conftest.dir
6871 # We will build objects and dependencies in a subdirectory because
6872 # it helps to detect inapplicable dependency modes. For instance
6873 # both Tru64's cc and ICC support -MD to output dependencies as a
6874 # side effect of compilation, but ICC will put the dependencies in
6875 # the current directory while Tru64 will put them in the object
6876 # directory.
6877 mkdir sub
6879 am_cv_CXX_dependencies_compiler_type=none
6880 if test "$am_compiler_list" = ""; then
6881 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6883 for depmode in $am_compiler_list; do
6884 # Setup a source with many dependencies, because some compilers
6885 # like to wrap large dependency lists on column 80 (with \), and
6886 # we should not choose a depcomp mode which is confused by this.
6888 # We need to recreate these files for each test, as the compiler may
6889 # overwrite some of them when testing with obscure command lines.
6890 # This happens at least with the AIX C compiler.
6891 : > sub/conftest.c
6892 for i in 1 2 3 4 5 6; do
6893 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6894 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6895 # Solaris 8's {/usr,}/bin/sh.
6896 touch sub/conftst$i.h
6897 done
6898 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6900 case $depmode in
6901 nosideeffect)
6902 # after this tag, mechanisms are not by side-effect, so they'll
6903 # only be used when explicitly requested
6904 if test "x$enable_dependency_tracking" = xyes; then
6905 continue
6906 else
6907 break
6910 none) break ;;
6911 esac
6912 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6913 # mode. It turns out that the SunPro C++ compiler does not properly
6914 # handle `-M -o', and we need to detect this.
6915 if depmode=$depmode \
6916 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6917 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6918 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6919 >/dev/null 2>conftest.err &&
6920 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6921 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6922 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6923 # icc doesn't choke on unknown options, it will just issue warnings
6924 # or remarks (even with -Werror). So we grep stderr for any message
6925 # that says an option was ignored or not supported.
6926 # When given -MP, icc 7.0 and 7.1 complain thusly:
6927 # icc: Command line warning: ignoring option '-M'; no argument required
6928 # The diagnosis changed in icc 8.0:
6929 # icc: Command line remark: option '-MP' not supported
6930 if (grep 'ignoring option' conftest.err ||
6931 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6932 am_cv_CXX_dependencies_compiler_type=$depmode
6933 break
6936 done
6938 cd ..
6939 rm -rf conftest.dir
6940 else
6941 am_cv_CXX_dependencies_compiler_type=none
6945 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6946 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6947 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6952 test "x$enable_dependency_tracking" != xno \
6953 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6954 am__fastdepCXX_TRUE=
6955 am__fastdepCXX_FALSE='#'
6956 else
6957 am__fastdepCXX_TRUE='#'
6958 am__fastdepCXX_FALSE=
6962 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6963 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6964 (test "X$CXX" != "Xg++"))) ; then
6965 ac_ext=cc
6966 ac_cpp='$CXXCPP $CPPFLAGS'
6967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6970 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6971 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6972 if test -z "$CXXCPP"; then
6973 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976 # Double quotes because CXXCPP needs to be expanded
6977 for CXXCPP in "$CXX -E" "/lib/cpp"
6979 ac_preproc_ok=false
6980 for ac_cxx_preproc_warn_flag in '' yes
6982 # Use a header file that comes with gcc, so configuring glibc
6983 # with a fresh cross-compiler works.
6984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6985 # <limits.h> exists even on freestanding compilers.
6986 # On the NeXT, cc -E runs the code through the compiler's parser,
6987 # not just through cpp. "Syntax error" is here to catch this case.
6988 cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h. */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 #ifdef __STDC__
6995 # include <limits.h>
6996 #else
6997 # include <assert.h>
6998 #endif
6999 Syntax error
7000 _ACEOF
7001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7003 ac_status=$?
7004 grep -v '^ *+' conftest.er1 >conftest.err
7005 rm -f conftest.er1
7006 cat conftest.err >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } >/dev/null; then
7009 if test -s conftest.err; then
7010 ac_cpp_err=$ac_cxx_preproc_warn_flag
7011 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7012 else
7013 ac_cpp_err=
7015 else
7016 ac_cpp_err=yes
7018 if test -z "$ac_cpp_err"; then
7020 else
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7024 # Broken: fails on valid input.
7025 continue
7027 rm -f conftest.err conftest.$ac_ext
7029 # OK, works on sane cases. Now check whether non-existent headers
7030 # can be detected and how.
7031 cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h. */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 #include <ac_nonexistent.h>
7038 _ACEOF
7039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7041 ac_status=$?
7042 grep -v '^ *+' conftest.er1 >conftest.err
7043 rm -f conftest.er1
7044 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } >/dev/null; then
7047 if test -s conftest.err; then
7048 ac_cpp_err=$ac_cxx_preproc_warn_flag
7049 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7050 else
7051 ac_cpp_err=
7053 else
7054 ac_cpp_err=yes
7056 if test -z "$ac_cpp_err"; then
7057 # Broken: success on invalid input.
7058 continue
7059 else
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 # Passes both tests.
7064 ac_preproc_ok=:
7065 break
7067 rm -f conftest.err conftest.$ac_ext
7069 done
7070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7071 rm -f conftest.err conftest.$ac_ext
7072 if $ac_preproc_ok; then
7073 break
7076 done
7077 ac_cv_prog_CXXCPP=$CXXCPP
7080 CXXCPP=$ac_cv_prog_CXXCPP
7081 else
7082 ac_cv_prog_CXXCPP=$CXXCPP
7084 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7085 echo "${ECHO_T}$CXXCPP" >&6
7086 ac_preproc_ok=false
7087 for ac_cxx_preproc_warn_flag in '' yes
7089 # Use a header file that comes with gcc, so configuring glibc
7090 # with a fresh cross-compiler works.
7091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7092 # <limits.h> exists even on freestanding compilers.
7093 # On the NeXT, cc -E runs the code through the compiler's parser,
7094 # not just through cpp. "Syntax error" is here to catch this case.
7095 cat >conftest.$ac_ext <<_ACEOF
7096 /* confdefs.h. */
7097 _ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 #ifdef __STDC__
7102 # include <limits.h>
7103 #else
7104 # include <assert.h>
7105 #endif
7106 Syntax error
7107 _ACEOF
7108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7110 ac_status=$?
7111 grep -v '^ *+' conftest.er1 >conftest.err
7112 rm -f conftest.er1
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } >/dev/null; then
7116 if test -s conftest.err; then
7117 ac_cpp_err=$ac_cxx_preproc_warn_flag
7118 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7119 else
7120 ac_cpp_err=
7122 else
7123 ac_cpp_err=yes
7125 if test -z "$ac_cpp_err"; then
7127 else
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7131 # Broken: fails on valid input.
7132 continue
7134 rm -f conftest.err conftest.$ac_ext
7136 # OK, works on sane cases. Now check whether non-existent headers
7137 # can be detected and how.
7138 cat >conftest.$ac_ext <<_ACEOF
7139 /* confdefs.h. */
7140 _ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 #include <ac_nonexistent.h>
7145 _ACEOF
7146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7148 ac_status=$?
7149 grep -v '^ *+' conftest.er1 >conftest.err
7150 rm -f conftest.er1
7151 cat conftest.err >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } >/dev/null; then
7154 if test -s conftest.err; then
7155 ac_cpp_err=$ac_cxx_preproc_warn_flag
7156 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7157 else
7158 ac_cpp_err=
7160 else
7161 ac_cpp_err=yes
7163 if test -z "$ac_cpp_err"; then
7164 # Broken: success on invalid input.
7165 continue
7166 else
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7170 # Passes both tests.
7171 ac_preproc_ok=:
7172 break
7174 rm -f conftest.err conftest.$ac_ext
7176 done
7177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7178 rm -f conftest.err conftest.$ac_ext
7179 if $ac_preproc_ok; then
7181 else
7182 _lt_caught_CXX_error=yes
7185 ac_ext=c
7186 ac_cpp='$CPP $CPPFLAGS'
7187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7191 else
7192 _lt_caught_CXX_error=yes
7199 # This can be used to rebuild libtool when needed
7200 LIBTOOL_DEPS="$ltmain"
7202 # Always use our own libtool.
7203 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7229 test -z "$LN_S" && LN_S="ln -s"
7244 if test -n "${ZSH_VERSION+set}" ; then
7245 setopt NO_GLOB_SUBST
7248 echo "$as_me:$LINENO: checking for objdir" >&5
7249 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7250 if test "${lt_cv_objdir+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253 rm -f .libs 2>/dev/null
7254 mkdir .libs 2>/dev/null
7255 if test -d .libs; then
7256 lt_cv_objdir=.libs
7257 else
7258 # MS-DOS does not allow filenames that begin with a dot.
7259 lt_cv_objdir=_libs
7261 rmdir .libs 2>/dev/null
7263 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7264 echo "${ECHO_T}$lt_cv_objdir" >&6
7265 objdir=$lt_cv_objdir
7271 cat >>confdefs.h <<_ACEOF
7272 #define LT_OBJDIR "$lt_cv_objdir/"
7273 _ACEOF
7291 case $host_os in
7292 aix3*)
7293 # AIX sometimes has problems with the GCC collect2 program. For some
7294 # reason, if we set the COLLECT_NAMES environment variable, the problems
7295 # vanish in a puff of smoke.
7296 if test "X${COLLECT_NAMES+set}" != Xset; then
7297 COLLECT_NAMES=
7298 export COLLECT_NAMES
7301 esac
7303 # Sed substitution that helps us do robust quoting. It backslashifies
7304 # metacharacters that are still active within double-quoted strings.
7305 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7307 # Same as above, but do not quote variable references.
7308 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7310 # Sed substitution to delay expansion of an escaped shell variable in a
7311 # double_quote_subst'ed string.
7312 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7314 # Sed substitution to delay expansion of an escaped single quote.
7315 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7317 # Sed substitution to avoid accidental globbing in evaled expressions
7318 no_glob_subst='s/\*/\\\*/g'
7320 # Global variables:
7321 ofile=libtool
7322 can_build_shared=yes
7324 # All known linkers require a `.a' archive for static linking (except MSVC,
7325 # which needs '.lib').
7326 libext=a
7328 with_gnu_ld="$lt_cv_prog_gnu_ld"
7330 old_CC="$CC"
7331 old_CFLAGS="$CFLAGS"
7333 # Set sane defaults for various variables
7334 test -z "$CC" && CC=cc
7335 test -z "$LTCC" && LTCC=$CC
7336 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7337 test -z "$LD" && LD=ld
7338 test -z "$ac_objext" && ac_objext=o
7340 for cc_temp in $compiler""; do
7341 case $cc_temp in
7342 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7343 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7344 \-*) ;;
7345 *) break;;
7346 esac
7347 done
7348 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7351 # Only perform the check for file, if the check method requires it
7352 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7353 case $deplibs_check_method in
7354 file_magic*)
7355 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7356 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7357 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7358 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361 case $MAGIC_CMD in
7362 [\\/*] | ?:[\\/]*)
7363 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7366 lt_save_MAGIC_CMD="$MAGIC_CMD"
7367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7368 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7369 for ac_dir in $ac_dummy; do
7370 IFS="$lt_save_ifs"
7371 test -z "$ac_dir" && ac_dir=.
7372 if test -f $ac_dir/${ac_tool_prefix}file; then
7373 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7374 if test -n "$file_magic_test_file"; then
7375 case $deplibs_check_method in
7376 "file_magic "*)
7377 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7378 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7379 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7380 $EGREP "$file_magic_regex" > /dev/null; then
7382 else
7383 cat <<_LT_EOF 1>&2
7385 *** Warning: the command libtool uses to detect shared libraries,
7386 *** $file_magic_cmd, produces output that libtool cannot recognize.
7387 *** The result is that libtool may fail to recognize shared libraries
7388 *** as such. This will affect the creation of libtool libraries that
7389 *** depend on shared libraries, but programs linked with such libtool
7390 *** libraries will work regardless of this problem. Nevertheless, you
7391 *** may want to report the problem to your system manager and/or to
7392 *** bug-libtool@gnu.org
7394 _LT_EOF
7395 fi ;;
7396 esac
7398 break
7400 done
7401 IFS="$lt_save_ifs"
7402 MAGIC_CMD="$lt_save_MAGIC_CMD"
7404 esac
7407 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7408 if test -n "$MAGIC_CMD"; then
7409 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7410 echo "${ECHO_T}$MAGIC_CMD" >&6
7411 else
7412 echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6
7420 if test -z "$lt_cv_path_MAGIC_CMD"; then
7421 if test -n "$ac_tool_prefix"; then
7422 echo "$as_me:$LINENO: checking for file" >&5
7423 echo $ECHO_N "checking for file... $ECHO_C" >&6
7424 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427 case $MAGIC_CMD in
7428 [\\/*] | ?:[\\/]*)
7429 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7432 lt_save_MAGIC_CMD="$MAGIC_CMD"
7433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7434 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7435 for ac_dir in $ac_dummy; do
7436 IFS="$lt_save_ifs"
7437 test -z "$ac_dir" && ac_dir=.
7438 if test -f $ac_dir/file; then
7439 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7440 if test -n "$file_magic_test_file"; then
7441 case $deplibs_check_method in
7442 "file_magic "*)
7443 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7444 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7445 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7446 $EGREP "$file_magic_regex" > /dev/null; then
7448 else
7449 cat <<_LT_EOF 1>&2
7451 *** Warning: the command libtool uses to detect shared libraries,
7452 *** $file_magic_cmd, produces output that libtool cannot recognize.
7453 *** The result is that libtool may fail to recognize shared libraries
7454 *** as such. This will affect the creation of libtool libraries that
7455 *** depend on shared libraries, but programs linked with such libtool
7456 *** libraries will work regardless of this problem. Nevertheless, you
7457 *** may want to report the problem to your system manager and/or to
7458 *** bug-libtool@gnu.org
7460 _LT_EOF
7461 fi ;;
7462 esac
7464 break
7466 done
7467 IFS="$lt_save_ifs"
7468 MAGIC_CMD="$lt_save_MAGIC_CMD"
7470 esac
7473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7474 if test -n "$MAGIC_CMD"; then
7475 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7476 echo "${ECHO_T}$MAGIC_CMD" >&6
7477 else
7478 echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6
7483 else
7484 MAGIC_CMD=:
7490 esac
7492 # Use C for the default configuration in the libtool script
7494 lt_save_CC="$CC"
7495 ac_ext=c
7496 ac_cpp='$CPP $CPPFLAGS'
7497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7502 # Source file extension for C test sources.
7503 ac_ext=c
7505 # Object file extension for compiled C test sources.
7506 objext=o
7507 objext=$objext
7509 # Code to be used in simple compile tests
7510 lt_simple_compile_test_code="int some_variable = 0;"
7512 # Code to be used in simple link tests
7513 lt_simple_link_test_code='int main(){return(0);}'
7521 # If no C compiler was specified, use CC.
7522 LTCC=${LTCC-"$CC"}
7524 # If no C compiler flags were specified, use CFLAGS.
7525 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7527 # Allow CC to be a program name with arguments.
7528 compiler=$CC
7530 # Save the default compiler, since it gets overwritten when the other
7531 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7532 compiler_DEFAULT=$CC
7534 # save warnings/boilerplate of simple test code
7535 ac_outfile=conftest.$ac_objext
7536 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7537 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7538 _lt_compiler_boilerplate=`cat conftest.err`
7539 $RM conftest*
7541 ac_outfile=conftest.$ac_objext
7542 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7543 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7544 _lt_linker_boilerplate=`cat conftest.err`
7545 $RM conftest*
7548 ## CAVEAT EMPTOR:
7549 ## There is no encapsulation within the following macros, do not change
7550 ## the running order or otherwise move them around unless you know exactly
7551 ## what you are doing...
7552 if test -n "$compiler"; then
7554 lt_prog_compiler_no_builtin_flag=
7556 if test "$GCC" = yes; then
7557 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7559 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7560 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7561 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564 lt_cv_prog_compiler_rtti_exceptions=no
7565 ac_outfile=conftest.$ac_objext
7566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7567 lt_compiler_flag="-fno-rtti -fno-exceptions"
7568 # Insert the option either (1) after the last *FLAGS variable, or
7569 # (2) before a word containing "conftest.", or (3) at the end.
7570 # Note that $ac_compile itself does not contain backslashes and begins
7571 # with a dollar sign (not a hyphen), so the echo should work correctly.
7572 # The option is referenced via a variable to avoid confusing sed.
7573 lt_compile=`echo "$ac_compile" | $SED \
7574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7576 -e 's:$: $lt_compiler_flag:'`
7577 (eval echo "\"\$as_me:7577: $lt_compile\"" >&5)
7578 (eval "$lt_compile" 2>conftest.err)
7579 ac_status=$?
7580 cat conftest.err >&5
7581 echo "$as_me:7581: \$? = $ac_status" >&5
7582 if (exit $ac_status) && test -s "$ac_outfile"; then
7583 # The compiler can only warn and ignore the option if not recognized
7584 # So say no if there are warnings other than the usual output.
7585 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7587 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7588 lt_cv_prog_compiler_rtti_exceptions=yes
7591 $RM conftest*
7594 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7595 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7597 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7598 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7599 else
7610 lt_prog_compiler_wl=
7611 lt_prog_compiler_pic=
7612 lt_prog_compiler_static=
7614 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7615 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7617 if test "$GCC" = yes; then
7618 lt_prog_compiler_wl='-Wl,'
7619 lt_prog_compiler_static='-static'
7621 case $host_os in
7622 aix*)
7623 # All AIX code is PIC.
7624 if test "$host_cpu" = ia64; then
7625 # AIX 5 now supports IA64 processor
7626 lt_prog_compiler_static='-Bstatic'
7630 amigaos*)
7631 if test "$host_cpu" = m68k; then
7632 # FIXME: we need at least 68020 code to build shared libraries, but
7633 # adding the `-m68020' flag to GCC prevents building anything better,
7634 # like `-m68040'.
7635 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7639 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7640 # PIC is the default for these OSes.
7643 mingw* | cygwin* | pw32* | os2*)
7644 # This hack is so that the source file can tell whether it is being
7645 # built for inclusion in a dll (and should export symbols for example).
7646 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7647 # (--disable-auto-import) libraries
7648 lt_prog_compiler_pic='-DDLL_EXPORT'
7651 darwin* | rhapsody*)
7652 # PIC is the default on this platform
7653 # Common symbols not allowed in MH_DYLIB files
7654 lt_prog_compiler_pic='-fno-common'
7657 hpux*)
7658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7659 # not for PA HP-UX.
7660 case $host_cpu in
7661 hppa*64*|ia64*)
7662 # +Z the default
7665 lt_prog_compiler_pic='-fPIC'
7667 esac
7670 interix[3-9]*)
7671 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7672 # Instead, we relocate shared libraries at runtime.
7675 msdosdjgpp*)
7676 # Just because we use GCC doesn't mean we suddenly get shared libraries
7677 # on systems that don't support them.
7678 lt_prog_compiler_can_build_shared=no
7679 enable_shared=no
7682 *nto* | *qnx*)
7683 # QNX uses GNU C++, but need to define -shared option too, otherwise
7684 # it will coredump.
7685 lt_prog_compiler_pic='-fPIC -shared'
7688 sysv4*MP*)
7689 if test -d /usr/nec; then
7690 lt_prog_compiler_pic=-Kconform_pic
7695 lt_prog_compiler_pic='-fPIC'
7697 esac
7698 else
7699 # PORTME Check for flag to pass linker flags through the system compiler.
7700 case $host_os in
7701 aix*)
7702 lt_prog_compiler_wl='-Wl,'
7703 if test "$host_cpu" = ia64; then
7704 # AIX 5 now supports IA64 processor
7705 lt_prog_compiler_static='-Bstatic'
7706 else
7707 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7710 darwin*)
7711 # PIC is the default on this platform
7712 # Common symbols not allowed in MH_DYLIB files
7713 case $cc_basename in
7714 xlc*)
7715 lt_prog_compiler_pic='-qnocommon'
7716 lt_prog_compiler_wl='-Wl,'
7718 esac
7721 mingw* | cygwin* | pw32* | os2*)
7722 # This hack is so that the source file can tell whether it is being
7723 # built for inclusion in a dll (and should export symbols for example).
7724 lt_prog_compiler_pic='-DDLL_EXPORT'
7727 hpux9* | hpux10* | hpux11*)
7728 lt_prog_compiler_wl='-Wl,'
7729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7730 # not for PA HP-UX.
7731 case $host_cpu in
7732 hppa*64*|ia64*)
7733 # +Z the default
7736 lt_prog_compiler_pic='+Z'
7738 esac
7739 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7740 lt_prog_compiler_static='${wl}-a ${wl}archive'
7743 irix5* | irix6* | nonstopux*)
7744 lt_prog_compiler_wl='-Wl,'
7745 # PIC (with -KPIC) is the default.
7746 lt_prog_compiler_static='-non_shared'
7749 linux* | k*bsd*-gnu)
7750 case $cc_basename in
7751 icc* | ecc*)
7752 lt_prog_compiler_wl='-Wl,'
7753 lt_prog_compiler_pic='-KPIC'
7754 lt_prog_compiler_static='-static'
7756 pgcc* | pgf77* | pgf90* | pgf95*)
7757 # Portland Group compilers (*not* the Pentium gcc compiler,
7758 # which looks to be a dead project)
7759 lt_prog_compiler_wl='-Wl,'
7760 lt_prog_compiler_pic='-fpic'
7761 lt_prog_compiler_static='-Bstatic'
7763 ccc*)
7764 lt_prog_compiler_wl='-Wl,'
7765 # All Alpha code is PIC.
7766 lt_prog_compiler_static='-non_shared'
7769 case `$CC -V 2>&1 | sed 5q` in
7770 *Sun\ C*)
7771 # Sun C 5.9
7772 lt_prog_compiler_pic='-KPIC'
7773 lt_prog_compiler_static='-Bstatic'
7774 lt_prog_compiler_wl='-Wl,'
7776 *Sun\ F*)
7777 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7778 lt_prog_compiler_pic='-KPIC'
7779 lt_prog_compiler_static='-Bstatic'
7780 lt_prog_compiler_wl=''
7782 esac
7784 esac
7787 newsos6)
7788 lt_prog_compiler_pic='-KPIC'
7789 lt_prog_compiler_static='-Bstatic'
7792 *nto* | *qnx*)
7793 # QNX uses GNU C++, but need to define -shared option too, otherwise
7794 # it will coredump.
7795 lt_prog_compiler_pic='-fPIC -shared'
7798 osf3* | osf4* | osf5*)
7799 lt_prog_compiler_wl='-Wl,'
7800 # All OSF/1 code is PIC.
7801 lt_prog_compiler_static='-non_shared'
7804 rdos*)
7805 lt_prog_compiler_static='-non_shared'
7808 solaris*)
7809 lt_prog_compiler_pic='-KPIC'
7810 lt_prog_compiler_static='-Bstatic'
7811 case $cc_basename in
7812 f77* | f90* | f95*)
7813 lt_prog_compiler_wl='-Qoption ld ';;
7815 lt_prog_compiler_wl='-Wl,';;
7816 esac
7819 sunos4*)
7820 lt_prog_compiler_wl='-Qoption ld '
7821 lt_prog_compiler_pic='-PIC'
7822 lt_prog_compiler_static='-Bstatic'
7825 sysv4 | sysv4.2uw2* | sysv4.3*)
7826 lt_prog_compiler_wl='-Wl,'
7827 lt_prog_compiler_pic='-KPIC'
7828 lt_prog_compiler_static='-Bstatic'
7831 sysv4*MP*)
7832 if test -d /usr/nec ;then
7833 lt_prog_compiler_pic='-Kconform_pic'
7834 lt_prog_compiler_static='-Bstatic'
7838 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7839 lt_prog_compiler_wl='-Wl,'
7840 lt_prog_compiler_pic='-KPIC'
7841 lt_prog_compiler_static='-Bstatic'
7844 unicos*)
7845 lt_prog_compiler_wl='-Wl,'
7846 lt_prog_compiler_can_build_shared=no
7849 uts4*)
7850 lt_prog_compiler_pic='-pic'
7851 lt_prog_compiler_static='-Bstatic'
7855 lt_prog_compiler_can_build_shared=no
7857 esac
7860 case $host_os in
7861 # For platforms which do not support PIC, -DPIC is meaningless:
7862 *djgpp*)
7863 lt_prog_compiler_pic=
7866 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7868 esac
7869 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7870 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7878 # Check to make sure the PIC flag actually works.
7880 if test -n "$lt_prog_compiler_pic"; then
7881 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7882 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7883 if test "${lt_prog_compiler_pic_works+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 else
7886 lt_prog_compiler_pic_works=no
7887 ac_outfile=conftest.$ac_objext
7888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7889 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7890 # Insert the option either (1) after the last *FLAGS variable, or
7891 # (2) before a word containing "conftest.", or (3) at the end.
7892 # Note that $ac_compile itself does not contain backslashes and begins
7893 # with a dollar sign (not a hyphen), so the echo should work correctly.
7894 # The option is referenced via a variable to avoid confusing sed.
7895 lt_compile=`echo "$ac_compile" | $SED \
7896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7898 -e 's:$: $lt_compiler_flag:'`
7899 (eval echo "\"\$as_me:7899: $lt_compile\"" >&5)
7900 (eval "$lt_compile" 2>conftest.err)
7901 ac_status=$?
7902 cat conftest.err >&5
7903 echo "$as_me:7903: \$? = $ac_status" >&5
7904 if (exit $ac_status) && test -s "$ac_outfile"; then
7905 # The compiler can only warn and ignore the option if not recognized
7906 # So say no if there are warnings other than the usual output.
7907 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7909 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7910 lt_prog_compiler_pic_works=yes
7913 $RM conftest*
7916 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7917 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7919 if test x"$lt_prog_compiler_pic_works" = xyes; then
7920 case $lt_prog_compiler_pic in
7921 "" | " "*) ;;
7922 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7923 esac
7924 else
7925 lt_prog_compiler_pic=
7926 lt_prog_compiler_can_build_shared=no
7937 # Check to make sure the static flag actually works.
7939 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7940 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7941 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7942 if test "${lt_prog_compiler_static_works+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945 lt_prog_compiler_static_works=no
7946 save_LDFLAGS="$LDFLAGS"
7947 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7948 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7949 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7950 # The linker can only warn and ignore the option if not recognized
7951 # So say no if there are warnings
7952 if test -s conftest.err; then
7953 # Append any errors to the config.log.
7954 cat conftest.err 1>&5
7955 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7957 if diff conftest.exp conftest.er2 >/dev/null; then
7958 lt_prog_compiler_static_works=yes
7960 else
7961 lt_prog_compiler_static_works=yes
7964 $RM conftest*
7965 LDFLAGS="$save_LDFLAGS"
7968 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7969 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7971 if test x"$lt_prog_compiler_static_works" = xyes; then
7973 else
7974 lt_prog_compiler_static=
7983 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7984 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7985 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988 lt_cv_prog_compiler_c_o=no
7989 $RM -r conftest 2>/dev/null
7990 mkdir conftest
7991 cd conftest
7992 mkdir out
7993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7995 lt_compiler_flag="-o out/conftest2.$ac_objext"
7996 # Insert the option either (1) after the last *FLAGS variable, or
7997 # (2) before a word containing "conftest.", or (3) at the end.
7998 # Note that $ac_compile itself does not contain backslashes and begins
7999 # with a dollar sign (not a hyphen), so the echo should work correctly.
8000 lt_compile=`echo "$ac_compile" | $SED \
8001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8003 -e 's:$: $lt_compiler_flag:'`
8004 (eval echo "\"\$as_me:8004: $lt_compile\"" >&5)
8005 (eval "$lt_compile" 2>out/conftest.err)
8006 ac_status=$?
8007 cat out/conftest.err >&5
8008 echo "$as_me:8008: \$? = $ac_status" >&5
8009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8010 then
8011 # The compiler can only warn and ignore the option if not recognized
8012 # So say no if there are warnings
8013 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8016 lt_cv_prog_compiler_c_o=yes
8019 chmod u+w . 2>&5
8020 $RM conftest*
8021 # SGI C++ compiler will create directory out/ii_files/ for
8022 # template instantiation
8023 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8024 $RM out/* && rmdir out
8025 cd ..
8026 $RM -r conftest
8027 $RM conftest*
8030 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8031 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8038 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8039 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8040 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 else
8043 lt_cv_prog_compiler_c_o=no
8044 $RM -r conftest 2>/dev/null
8045 mkdir conftest
8046 cd conftest
8047 mkdir out
8048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8050 lt_compiler_flag="-o out/conftest2.$ac_objext"
8051 # Insert the option either (1) after the last *FLAGS variable, or
8052 # (2) before a word containing "conftest.", or (3) at the end.
8053 # Note that $ac_compile itself does not contain backslashes and begins
8054 # with a dollar sign (not a hyphen), so the echo should work correctly.
8055 lt_compile=`echo "$ac_compile" | $SED \
8056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8058 -e 's:$: $lt_compiler_flag:'`
8059 (eval echo "\"\$as_me:8059: $lt_compile\"" >&5)
8060 (eval "$lt_compile" 2>out/conftest.err)
8061 ac_status=$?
8062 cat out/conftest.err >&5
8063 echo "$as_me:8063: \$? = $ac_status" >&5
8064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8065 then
8066 # The compiler can only warn and ignore the option if not recognized
8067 # So say no if there are warnings
8068 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8071 lt_cv_prog_compiler_c_o=yes
8074 chmod u+w . 2>&5
8075 $RM conftest*
8076 # SGI C++ compiler will create directory out/ii_files/ for
8077 # template instantiation
8078 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8079 $RM out/* && rmdir out
8080 cd ..
8081 $RM -r conftest
8082 $RM conftest*
8085 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8086 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8091 hard_links="nottested"
8092 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8093 # do not overwrite the value of need_locks provided by the user
8094 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8095 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8096 hard_links=yes
8097 $RM conftest*
8098 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8099 touch conftest.a
8100 ln conftest.a conftest.b 2>&5 || hard_links=no
8101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8102 echo "$as_me:$LINENO: result: $hard_links" >&5
8103 echo "${ECHO_T}$hard_links" >&6
8104 if test "$hard_links" = no; then
8105 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8106 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8107 need_locks=warn
8109 else
8110 need_locks=no
8118 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8119 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8121 runpath_var=
8122 allow_undefined_flag=
8123 always_export_symbols=no
8124 archive_cmds=
8125 archive_expsym_cmds=
8126 compiler_needs_object=no
8127 enable_shared_with_static_runtimes=no
8128 export_dynamic_flag_spec=
8129 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8130 hardcode_automatic=no
8131 hardcode_direct=no
8132 hardcode_direct_absolute=no
8133 hardcode_libdir_flag_spec=
8134 hardcode_libdir_flag_spec_ld=
8135 hardcode_libdir_separator=
8136 hardcode_minus_L=no
8137 hardcode_shlibpath_var=unsupported
8138 inherit_rpath=no
8139 link_all_deplibs=unknown
8140 module_cmds=
8141 module_expsym_cmds=
8142 old_archive_from_new_cmds=
8143 old_archive_from_expsyms_cmds=
8144 thread_safe_flag_spec=
8145 whole_archive_flag_spec=
8146 # include_expsyms should be a list of space-separated symbols to be *always*
8147 # included in the symbol list
8148 include_expsyms=
8149 # exclude_expsyms can be an extended regexp of symbols to exclude
8150 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8151 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8152 # as well as any symbol that contains `d'.
8153 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8154 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8155 # platforms (ab)use it in PIC code, but their linkers get confused if
8156 # the symbol is explicitly referenced. Since portable code cannot
8157 # rely on this symbol name, it's probably fine to never include it in
8158 # preloaded symbol tables.
8159 extract_expsyms_cmds=
8161 case $host_os in
8162 cygwin* | mingw* | pw32*)
8163 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8164 # When not using gcc, we currently assume that we are using
8165 # Microsoft Visual C++.
8166 if test "$GCC" != yes; then
8167 with_gnu_ld=no
8170 interix*)
8171 # we just hope/assume this is gcc and not c89 (= MSVC++)
8172 with_gnu_ld=yes
8174 openbsd*)
8175 with_gnu_ld=no
8177 esac
8179 ld_shlibs=yes
8180 if test "$with_gnu_ld" = yes; then
8181 # If archive_cmds runs LD, not CC, wlarc should be empty
8182 wlarc='${wl}'
8184 # Set some defaults for GNU ld with shared library support. These
8185 # are reset later if shared libraries are not supported. Putting them
8186 # here allows them to be overridden if necessary.
8187 runpath_var=LD_RUN_PATH
8188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8189 export_dynamic_flag_spec='${wl}--export-dynamic'
8190 # ancient GNU ld didn't support --whole-archive et. al.
8191 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8192 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8193 else
8194 whole_archive_flag_spec=
8196 supports_anon_versioning=no
8197 case `$LD -v 2>&1` in
8198 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8199 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8200 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8201 *\ 2.11.*) ;; # other 2.11 versions
8202 *) supports_anon_versioning=yes ;;
8203 esac
8205 # See if GNU ld supports shared libraries.
8206 case $host_os in
8207 aix[3-9]*)
8208 # On AIX/PPC, the GNU linker is very broken
8209 if test "$host_cpu" != ia64; then
8210 ld_shlibs=no
8211 cat <<_LT_EOF 1>&2
8213 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8214 *** to be unable to reliably create shared libraries on AIX.
8215 *** Therefore, libtool is disabling shared libraries support. If you
8216 *** really care for shared libraries, you may want to modify your PATH
8217 *** so that a non-GNU linker is found, and then restart.
8219 _LT_EOF
8223 amigaos*)
8224 if test "$host_cpu" = m68k; then
8225 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)'
8226 hardcode_libdir_flag_spec='-L$libdir'
8227 hardcode_minus_L=yes
8230 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8231 # that the semantics of dynamic libraries on AmigaOS, at least up
8232 # to version 4, is to share data among multiple programs linked
8233 # with the same dynamic library. Since this doesn't match the
8234 # behavior of shared libraries on other platforms, we can't use
8235 # them.
8236 ld_shlibs=no
8239 beos*)
8240 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8241 allow_undefined_flag=unsupported
8242 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8243 # support --undefined. This deserves some investigation. FIXME
8244 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8245 else
8246 ld_shlibs=no
8250 cygwin* | mingw* | pw32*)
8251 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8252 # as there is no search path for DLLs.
8253 hardcode_libdir_flag_spec='-L$libdir'
8254 allow_undefined_flag=unsupported
8255 always_export_symbols=no
8256 enable_shared_with_static_runtimes=yes
8257 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8259 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8261 # If the export-symbols file already is a .def file (1st line
8262 # is EXPORTS), use it as is; otherwise, prepend...
8263 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8264 cp $export_symbols $output_objdir/$soname.def;
8265 else
8266 echo EXPORTS > $output_objdir/$soname.def;
8267 cat $export_symbols >> $output_objdir/$soname.def;
8269 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8270 else
8271 ld_shlibs=no
8275 interix[3-9]*)
8276 hardcode_direct=no
8277 hardcode_shlibpath_var=no
8278 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8279 export_dynamic_flag_spec='${wl}-E'
8280 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8281 # Instead, shared libraries are loaded at an image base (0x10000000 by
8282 # default) and relocated if they conflict, which is a slow very memory
8283 # consuming and fragmenting process. To avoid this, we pick a random,
8284 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8285 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8286 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8287 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'
8290 gnu* | linux* | tpf* | k*bsd*-gnu)
8291 tmp_diet=no
8292 if test "$host_os" = linux-dietlibc; then
8293 case $cc_basename in
8294 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8295 esac
8297 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8298 && test "$tmp_diet" = no
8299 then
8300 tmp_addflag=
8301 case $cc_basename,$host_cpu in
8302 pgcc*) # Portland Group C compiler
8303 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'
8304 tmp_addflag=' $pic_flag'
8306 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8307 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'
8308 tmp_addflag=' $pic_flag -Mnomain' ;;
8309 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8310 tmp_addflag=' -i_dynamic' ;;
8311 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8312 tmp_addflag=' -i_dynamic -nofor_main' ;;
8313 ifc* | ifort*) # Intel Fortran compiler
8314 tmp_addflag=' -nofor_main' ;;
8315 esac
8316 case `$CC -V 2>&1 | sed 5q` in
8317 *Sun\ C*) # Sun C 5.9
8318 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'
8319 compiler_needs_object=yes
8320 tmp_sharedflag='-G' ;;
8321 *Sun\ F*) # Sun Fortran 8.3
8322 tmp_sharedflag='-G' ;;
8324 tmp_sharedflag='-shared' ;;
8325 esac
8326 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8328 if test "x$supports_anon_versioning" = xyes; then
8329 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8330 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8331 echo "local: *; };" >> $output_objdir/$libname.ver~
8332 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8334 else
8335 ld_shlibs=no
8339 netbsd*)
8340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8341 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8342 wlarc=
8343 else
8344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8345 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8349 solaris*)
8350 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8351 ld_shlibs=no
8352 cat <<_LT_EOF 1>&2
8354 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8355 *** create shared libraries on Solaris systems. Therefore, libtool
8356 *** is disabling shared libraries support. We urge you to upgrade GNU
8357 *** binutils to release 2.9.1 or newer. Another option is to modify
8358 *** your PATH or compiler configuration so that the native linker is
8359 *** used, and then restart.
8361 _LT_EOF
8362 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8364 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8365 else
8366 ld_shlibs=no
8370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8371 case `$LD -v 2>&1` in
8372 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8373 ld_shlibs=no
8374 cat <<_LT_EOF 1>&2
8376 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8377 *** reliably create shared libraries on SCO systems. Therefore, libtool
8378 *** is disabling shared libraries support. We urge you to upgrade GNU
8379 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8380 *** your PATH or compiler configuration so that the native linker is
8381 *** used, and then restart.
8383 _LT_EOF
8386 # For security reasons, it is highly recommended that you always
8387 # use absolute paths for naming shared libraries, and exclude the
8388 # DT_RUNPATH tag from executables and libraries. But doing so
8389 # requires that you compile everything twice, which is a pain.
8390 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8394 else
8395 ld_shlibs=no
8398 esac
8401 sunos4*)
8402 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8403 wlarc=
8404 hardcode_direct=yes
8405 hardcode_shlibpath_var=no
8409 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8411 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8412 else
8413 ld_shlibs=no
8416 esac
8418 if test "$ld_shlibs" = no; then
8419 runpath_var=
8420 hardcode_libdir_flag_spec=
8421 export_dynamic_flag_spec=
8422 whole_archive_flag_spec=
8424 else
8425 # PORTME fill in a description of your system's linker (not GNU ld)
8426 case $host_os in
8427 aix3*)
8428 allow_undefined_flag=unsupported
8429 always_export_symbols=yes
8430 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'
8431 # Note: this linker hardcodes the directories in LIBPATH if there
8432 # are no directories specified by -L.
8433 hardcode_minus_L=yes
8434 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8435 # Neither direct hardcoding nor static linking is supported with a
8436 # broken collect2.
8437 hardcode_direct=unsupported
8441 aix[4-9]*)
8442 if test "$host_cpu" = ia64; then
8443 # On IA64, the linker does run time linking by default, so we don't
8444 # have to do anything special.
8445 aix_use_runtimelinking=no
8446 exp_sym_flag='-Bexport'
8447 no_entry_flag=""
8448 else
8449 # If we're using GNU nm, then we don't want the "-C" option.
8450 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8451 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8452 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'
8453 else
8454 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'
8456 aix_use_runtimelinking=no
8458 # Test if we are trying to use run time linking or normal
8459 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8460 # need to do runtime linking.
8461 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8462 for ld_flag in $LDFLAGS; do
8463 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8464 aix_use_runtimelinking=yes
8465 break
8467 done
8469 esac
8471 exp_sym_flag='-bexport'
8472 no_entry_flag='-bnoentry'
8475 # When large executables or shared objects are built, AIX ld can
8476 # have problems creating the table of contents. If linking a library
8477 # or program results in "error TOC overflow" add -mminimal-toc to
8478 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8479 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8481 archive_cmds=''
8482 hardcode_direct=yes
8483 hardcode_direct_absolute=yes
8484 hardcode_libdir_separator=':'
8485 link_all_deplibs=yes
8486 file_list_spec='${wl}-f,'
8488 if test "$GCC" = yes; then
8489 case $host_os in aix4.[012]|aix4.[012].*)
8490 # We only want to do this on AIX 4.2 and lower, the check
8491 # below for broken collect2 doesn't work under 4.3+
8492 collect2name=`${CC} -print-prog-name=collect2`
8493 if test -f "$collect2name" &&
8494 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8495 then
8496 # We have reworked collect2
8498 else
8499 # We have old collect2
8500 hardcode_direct=unsupported
8501 # It fails to find uninstalled libraries when the uninstalled
8502 # path is not listed in the libpath. Setting hardcode_minus_L
8503 # to unsupported forces relinking
8504 hardcode_minus_L=yes
8505 hardcode_libdir_flag_spec='-L$libdir'
8506 hardcode_libdir_separator=
8509 esac
8510 shared_flag='-shared'
8511 if test "$aix_use_runtimelinking" = yes; then
8512 shared_flag="$shared_flag "'${wl}-G'
8514 else
8515 # not using gcc
8516 if test "$host_cpu" = ia64; then
8517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8518 # chokes on -Wl,-G. The following line is correct:
8519 shared_flag='-G'
8520 else
8521 if test "$aix_use_runtimelinking" = yes; then
8522 shared_flag='${wl}-G'
8523 else
8524 shared_flag='${wl}-bM:SRE'
8529 # It seems that -bexpall does not export symbols beginning with
8530 # underscore (_), so it is better to generate a list of symbols to export.
8531 always_export_symbols=yes
8532 if test "$aix_use_runtimelinking" = yes; then
8533 # Warning - without using the other runtime loading flags (-brtl),
8534 # -berok will link without error, but may produce a broken library.
8535 allow_undefined_flag='-berok'
8536 # Determine the default libpath from the value encoded in an
8537 # empty executable.
8538 if test x$gcc_no_link = xyes; then
8539 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8540 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8541 { (exit 1); exit 1; }; }
8543 cat >conftest.$ac_ext <<_ACEOF
8544 /* confdefs.h. */
8545 _ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h. */
8551 main ()
8555 return 0;
8557 _ACEOF
8558 rm -f conftest.$ac_objext conftest$ac_exeext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8560 (eval $ac_link) 2>conftest.er1
8561 ac_status=$?
8562 grep -v '^ *+' conftest.er1 >conftest.err
8563 rm -f conftest.er1
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try='test -z "$ac_c_werror_flag"
8568 || test ! -s conftest.err'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 (eval $ac_try) 2>&5
8571 ac_status=$?
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; } &&
8574 { ac_try='test -s conftest$ac_exeext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 (eval $ac_try) 2>&5
8577 ac_status=$?
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8581 lt_aix_libpath_sed='
8582 /Import File Strings/,/^$/ {
8583 /^0/ {
8584 s/^0 *\(.*\)$/\1/
8588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8589 # Check for a 64-bit object if we didn't find anything.
8590 if test -z "$aix_libpath"; then
8591 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8593 else
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8598 rm -f conftest.err conftest.$ac_objext \
8599 conftest$ac_exeext conftest.$ac_ext
8600 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8602 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8603 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"
8604 else
8605 if test "$host_cpu" = ia64; then
8606 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8607 allow_undefined_flag="-z nodefs"
8608 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"
8609 else
8610 # Determine the default libpath from the value encoded in an
8611 # empty executable.
8612 if test x$gcc_no_link = xyes; then
8613 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8614 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8615 { (exit 1); exit 1; }; }
8617 cat >conftest.$ac_ext <<_ACEOF
8618 /* confdefs.h. */
8619 _ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8625 main ()
8629 return 0;
8631 _ACEOF
8632 rm -f conftest.$ac_objext conftest$ac_exeext
8633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8634 (eval $ac_link) 2>conftest.er1
8635 ac_status=$?
8636 grep -v '^ *+' conftest.er1 >conftest.err
8637 rm -f conftest.er1
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } &&
8641 { ac_try='test -z "$ac_c_werror_flag"
8642 || test ! -s conftest.err'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 (eval $ac_try) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try='test -s conftest$ac_exeext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8655 lt_aix_libpath_sed='
8656 /Import File Strings/,/^$/ {
8657 /^0/ {
8658 s/^0 *\(.*\)$/\1/
8662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8663 # Check for a 64-bit object if we didn't find anything.
8664 if test -z "$aix_libpath"; then
8665 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8667 else
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8672 rm -f conftest.err conftest.$ac_objext \
8673 conftest$ac_exeext conftest.$ac_ext
8674 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8676 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8677 # Warning - without using the other run time loading flags,
8678 # -berok will link without error, but may produce a broken library.
8679 no_undefined_flag=' ${wl}-bernotok'
8680 allow_undefined_flag=' ${wl}-berok'
8681 # Exported symbols can be pulled into shared objects from archives
8682 whole_archive_flag_spec='$convenience'
8683 archive_cmds_need_lc=yes
8684 # This is similar to how AIX traditionally builds its shared libraries.
8685 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'
8690 amigaos*)
8691 if test "$host_cpu" = m68k; then
8692 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)'
8693 hardcode_libdir_flag_spec='-L$libdir'
8694 hardcode_minus_L=yes
8696 # see comment about different semantics on the GNU ld section
8697 ld_shlibs=no
8700 bsdi[45]*)
8701 export_dynamic_flag_spec=-rdynamic
8704 cygwin* | mingw* | pw32*)
8705 # When not using gcc, we currently assume that we are using
8706 # Microsoft Visual C++.
8707 # hardcode_libdir_flag_spec is actually meaningless, as there is
8708 # no search path for DLLs.
8709 hardcode_libdir_flag_spec=' '
8710 allow_undefined_flag=unsupported
8711 # Tell ltmain to make .lib files, not .a files.
8712 libext=lib
8713 # Tell ltmain to make .dll files, not .so files.
8714 shrext_cmds=".dll"
8715 # FIXME: Setting linknames here is a bad hack.
8716 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8717 # The linker will automatically build a .lib file if we build a DLL.
8718 old_archive_from_new_cmds='true'
8719 # FIXME: Should let the user specify the lib program.
8720 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8721 fix_srcfile_path='`cygpath -w "$srcfile"`'
8722 enable_shared_with_static_runtimes=yes
8725 darwin* | rhapsody*)
8726 case $host_os in
8727 rhapsody* | darwin1.[012])
8728 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8730 *) # Darwin 1.3 on
8731 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8732 10.[012])
8733 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8735 10.*)
8736 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8738 esac
8740 esac
8741 archive_cmds_need_lc=no
8742 hardcode_direct=no
8743 hardcode_automatic=yes
8744 hardcode_shlibpath_var=unsupported
8745 whole_archive_flag_spec=''
8746 link_all_deplibs=yes
8747 if test "$GCC" = yes ; then
8748 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8750 else
8751 lt_cv_apple_cc_single_mod=no
8752 if test -z "${LT_MULTI_MODULE}"; then
8753 # By default we will add the -single_module flag. You can override
8754 # by either setting the environment variable LT_MULTI_MODULE
8755 # non-empty at configure time, or by adding -multi-module to the
8756 # link flags.
8757 echo "int foo(void){return 1;}" > conftest.c
8758 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8759 -dynamiclib ${wl}-single_module conftest.c
8760 if test -f libconftest.dylib; then
8761 lt_cv_apple_cc_single_mod=yes
8762 rm libconftest.dylib
8764 rm conftest.$ac_ext
8768 output_verbose_link_cmd=echo
8769 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8770 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8771 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8772 else
8773 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8774 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8776 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8777 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8778 else
8779 case $cc_basename in
8780 xlc*)
8781 output_verbose_link_cmd=echo
8782 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8783 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8784 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8785 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8786 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8789 ld_shlibs=no
8791 esac
8795 dgux*)
8796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8797 hardcode_libdir_flag_spec='-L$libdir'
8798 hardcode_shlibpath_var=no
8801 freebsd1*)
8802 ld_shlibs=no
8805 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8806 # support. Future versions do this automatically, but an explicit c++rt0.o
8807 # does not break anything, and helps significantly (at the cost of a little
8808 # extra space).
8809 freebsd2.2*)
8810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8811 hardcode_libdir_flag_spec='-R$libdir'
8812 hardcode_direct=yes
8813 hardcode_shlibpath_var=no
8816 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8817 freebsd2*)
8818 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8819 hardcode_direct=yes
8820 hardcode_minus_L=yes
8821 hardcode_shlibpath_var=no
8824 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8825 freebsd* | dragonfly*)
8826 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8827 hardcode_libdir_flag_spec='-R$libdir'
8828 hardcode_direct=yes
8829 hardcode_shlibpath_var=no
8832 hpux9*)
8833 if test "$GCC" = yes; then
8834 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'
8835 else
8836 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'
8838 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8839 hardcode_libdir_separator=:
8840 hardcode_direct=yes
8842 # hardcode_minus_L: Not really in the search PATH,
8843 # but as the default location of the library.
8844 hardcode_minus_L=yes
8845 export_dynamic_flag_spec='${wl}-E'
8848 hpux10*)
8849 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8850 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8851 else
8852 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8854 if test "$with_gnu_ld" = no; then
8855 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8856 hardcode_libdir_flag_spec_ld='+b $libdir'
8857 hardcode_libdir_separator=:
8858 hardcode_direct=yes
8859 hardcode_direct_absolute=yes
8860 export_dynamic_flag_spec='${wl}-E'
8861 # hardcode_minus_L: Not really in the search PATH,
8862 # but as the default location of the library.
8863 hardcode_minus_L=yes
8867 hpux11*)
8868 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8869 case $host_cpu in
8870 hppa*64*)
8871 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8873 ia64*)
8874 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8877 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8879 esac
8880 else
8881 case $host_cpu in
8882 hppa*64*)
8883 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8885 ia64*)
8886 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8889 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8891 esac
8893 if test "$with_gnu_ld" = no; then
8894 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8895 hardcode_libdir_separator=:
8897 case $host_cpu in
8898 hppa*64*|ia64*)
8899 hardcode_direct=no
8900 hardcode_shlibpath_var=no
8903 hardcode_direct=yes
8904 hardcode_direct_absolute=yes
8905 export_dynamic_flag_spec='${wl}-E'
8907 # hardcode_minus_L: Not really in the search PATH,
8908 # but as the default location of the library.
8909 hardcode_minus_L=yes
8911 esac
8915 irix5* | irix6* | nonstopux*)
8916 if test "$GCC" = yes; then
8917 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'
8918 # Try to use the -exported_symbol ld option, if it does not
8919 # work, assume that -exports_file does not work either and
8920 # implicitly export all symbols.
8921 save_LDFLAGS="$LDFLAGS"
8922 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8923 if test x$gcc_no_link = xyes; then
8924 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8925 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8926 { (exit 1); exit 1; }; }
8928 cat >conftest.$ac_ext <<_ACEOF
8929 int foo(void) {}
8930 _ACEOF
8931 rm -f conftest.$ac_objext conftest$ac_exeext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8933 (eval $ac_link) 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -z "$ac_c_werror_flag"
8941 || test ! -s conftest.err'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 (eval $ac_try) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; } &&
8947 { ac_try='test -s conftest$ac_exeext'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 (eval $ac_try) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8953 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'
8955 else
8956 echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8960 rm -f conftest.err conftest.$ac_objext \
8961 conftest$ac_exeext conftest.$ac_ext
8962 LDFLAGS="$save_LDFLAGS"
8963 else
8964 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'
8965 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'
8967 archive_cmds_need_lc='no'
8968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8969 hardcode_libdir_separator=:
8970 inherit_rpath=yes
8971 link_all_deplibs=yes
8974 netbsd*)
8975 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8977 else
8978 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8980 hardcode_libdir_flag_spec='-R$libdir'
8981 hardcode_direct=yes
8982 hardcode_shlibpath_var=no
8985 newsos6)
8986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8987 hardcode_direct=yes
8988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8989 hardcode_libdir_separator=:
8990 hardcode_shlibpath_var=no
8993 *nto* | *qnx*)
8996 openbsd*)
8997 hardcode_direct=yes
8998 hardcode_shlibpath_var=no
8999 hardcode_direct_absolute=yes
9000 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9001 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9002 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9003 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9004 export_dynamic_flag_spec='${wl}-E'
9005 else
9006 case $host_os in
9007 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9008 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9009 hardcode_libdir_flag_spec='-R$libdir'
9012 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9013 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9015 esac
9019 os2*)
9020 hardcode_libdir_flag_spec='-L$libdir'
9021 hardcode_minus_L=yes
9022 allow_undefined_flag=unsupported
9023 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'
9024 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9027 osf3*)
9028 if test "$GCC" = yes; then
9029 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9030 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'
9031 else
9032 allow_undefined_flag=' -expect_unresolved \*'
9033 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'
9035 archive_cmds_need_lc='no'
9036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9037 hardcode_libdir_separator=:
9040 osf4* | osf5*) # as osf3* with the addition of -msym flag
9041 if test "$GCC" = yes; then
9042 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9043 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'
9044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9045 else
9046 allow_undefined_flag=' -expect_unresolved \*'
9047 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'
9048 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~
9049 $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'
9051 # Both c and cxx compiler support -rpath directly
9052 hardcode_libdir_flag_spec='-rpath $libdir'
9054 archive_cmds_need_lc='no'
9055 hardcode_libdir_separator=:
9058 solaris*)
9059 no_undefined_flag=' -z defs'
9060 if test "$GCC" = yes; then
9061 wlarc='${wl}'
9062 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9063 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9064 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9065 else
9066 case `$CC -V 2>&1` in
9067 *"Compilers 5.0"*)
9068 wlarc=''
9069 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9070 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9071 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9074 wlarc='${wl}'
9075 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9076 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9077 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9079 esac
9081 hardcode_libdir_flag_spec='-R$libdir'
9082 hardcode_shlibpath_var=no
9083 case $host_os in
9084 solaris2.[0-5] | solaris2.[0-5].*) ;;
9086 # The compiler driver will combine and reorder linker options,
9087 # but understands `-z linker_flag'. GCC discards it without `$wl',
9088 # but is careful enough not to reorder.
9089 # Supported since Solaris 2.6 (maybe 2.5.1?)
9090 if test "$GCC" = yes; then
9091 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9092 else
9093 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9096 esac
9097 link_all_deplibs=yes
9100 sunos4*)
9101 if test "x$host_vendor" = xsequent; then
9102 # Use $CC to link under sequent, because it throws in some extra .o
9103 # files that make .init and .fini sections work.
9104 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9105 else
9106 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9108 hardcode_libdir_flag_spec='-L$libdir'
9109 hardcode_direct=yes
9110 hardcode_minus_L=yes
9111 hardcode_shlibpath_var=no
9114 sysv4)
9115 case $host_vendor in
9116 sni)
9117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9118 hardcode_direct=yes # is this really true???
9120 siemens)
9121 ## LD is ld it makes a PLAMLIB
9122 ## CC just makes a GrossModule.
9123 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9124 reload_cmds='$CC -r -o $output$reload_objs'
9125 hardcode_direct=no
9127 motorola)
9128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9129 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9131 esac
9132 runpath_var='LD_RUN_PATH'
9133 hardcode_shlibpath_var=no
9136 sysv4.3*)
9137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9138 hardcode_shlibpath_var=no
9139 export_dynamic_flag_spec='-Bexport'
9142 sysv4*MP*)
9143 if test -d /usr/nec; then
9144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9145 hardcode_shlibpath_var=no
9146 runpath_var=LD_RUN_PATH
9147 hardcode_runpath_var=yes
9148 ld_shlibs=yes
9152 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9153 no_undefined_flag='${wl}-z,text'
9154 archive_cmds_need_lc=no
9155 hardcode_shlibpath_var=no
9156 runpath_var='LD_RUN_PATH'
9158 if test "$GCC" = yes; then
9159 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9160 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9161 else
9162 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9163 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9167 sysv5* | sco3.2v5* | sco5v6*)
9168 # Note: We can NOT use -z defs as we might desire, because we do not
9169 # link with -lc, and that would cause any symbols used from libc to
9170 # always be unresolved, which means just about no library would
9171 # ever link correctly. If we're not using GNU ld we use -z text
9172 # though, which does catch some bad symbols but isn't as heavy-handed
9173 # as -z defs.
9174 no_undefined_flag='${wl}-z,text'
9175 allow_undefined_flag='${wl}-z,nodefs'
9176 archive_cmds_need_lc=no
9177 hardcode_shlibpath_var=no
9178 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9179 hardcode_libdir_separator=':'
9180 link_all_deplibs=yes
9181 export_dynamic_flag_spec='${wl}-Bexport'
9182 runpath_var='LD_RUN_PATH'
9184 if test "$GCC" = yes; then
9185 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9186 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9187 else
9188 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9189 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9193 uts4*)
9194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9195 hardcode_libdir_flag_spec='-L$libdir'
9196 hardcode_shlibpath_var=no
9200 ld_shlibs=no
9202 esac
9204 if test x$host_vendor = xsni; then
9205 case $host in
9206 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9207 export_dynamic_flag_spec='${wl}-Blargedynsym'
9209 esac
9213 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9214 echo "${ECHO_T}$ld_shlibs" >&6
9215 test "$ld_shlibs" = no && can_build_shared=no
9217 with_gnu_ld=$with_gnu_ld
9234 # Do we need to explicitly link libc?
9236 case "x$archive_cmds_need_lc" in
9237 x|xyes)
9238 # Assume -lc should be added
9239 archive_cmds_need_lc=yes
9241 if test "$enable_shared" = yes && test "$GCC" = yes; then
9242 case $archive_cmds in
9243 *'~'*)
9244 # FIXME: we may have to deal with multi-command sequences.
9246 '$CC '*)
9247 # Test whether the compiler implicitly links with -lc since on some
9248 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9249 # to ld, don't add -lc before -lgcc.
9250 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9251 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9252 $RM conftest*
9253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9256 (eval $ac_compile) 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } 2>conftest.err; then
9260 soname=conftest
9261 lib=conftest
9262 libobjs=conftest.$ac_objext
9263 deplibs=
9264 wl=$lt_prog_compiler_wl
9265 pic_flag=$lt_prog_compiler_pic
9266 compiler_flags=-v
9267 linker_flags=-v
9268 verstring=
9269 output_objdir=.
9270 libname=conftest
9271 lt_save_allow_undefined_flag=$allow_undefined_flag
9272 allow_undefined_flag=
9273 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9274 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9275 ac_status=$?
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }
9278 then
9279 archive_cmds_need_lc=no
9280 else
9281 archive_cmds_need_lc=yes
9283 allow_undefined_flag=$lt_save_allow_undefined_flag
9284 else
9285 cat conftest.err 1>&5
9287 $RM conftest*
9288 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9289 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9291 esac
9294 esac
9452 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9453 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9454 withGCC=$GCC
9455 if test "$withGCC" = yes; then
9456 case $host_os in
9457 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9458 *) lt_awk_arg="/^libraries:/" ;;
9459 esac
9460 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9461 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9462 # if the path contains ";" then we assume it to be the separator
9463 # otherwise default to the standard path separator (i.e. ":") - it is
9464 # assumed that no part of a normal pathname contains ";" but that should
9465 # okay in the real world where ";" in dirpaths is itself problematic.
9466 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9467 else
9468 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9470 # Ok, now we have the path, separated by spaces, we can step through it
9471 # and add multilib dir if necessary.
9472 lt_tmp_lt_search_path_spec=
9473 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9474 for lt_sys_path in $lt_search_path_spec; do
9475 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9476 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9477 else
9478 test -d "$lt_sys_path" && \
9479 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9481 done
9482 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9483 BEGIN {RS=" "; FS="/|\n";} {
9484 lt_foo="";
9485 lt_count=0;
9486 for (lt_i = NF; lt_i > 0; lt_i--) {
9487 if ($lt_i != "" && $lt_i != ".") {
9488 if ($lt_i == "..") {
9489 lt_count++;
9490 } else {
9491 if (lt_count == 0) {
9492 lt_foo="/" $lt_i lt_foo;
9493 } else {
9494 lt_count--;
9499 if (lt_foo != "") { lt_freq[lt_foo]++; }
9500 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9502 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9503 else
9504 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9506 library_names_spec=
9507 libname_spec='lib$name'
9508 soname_spec=
9509 shrext_cmds=".so"
9510 postinstall_cmds=
9511 postuninstall_cmds=
9512 finish_cmds=
9513 finish_eval=
9514 shlibpath_var=
9515 shlibpath_overrides_runpath=unknown
9516 version_type=none
9517 dynamic_linker="$host_os ld.so"
9518 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9519 need_lib_prefix=unknown
9520 hardcode_into_libs=no
9522 # when you set need_version to no, make sure it does not cause -set_version
9523 # flags to be left without arguments
9524 need_version=unknown
9526 case $host_os in
9527 aix3*)
9528 version_type=linux
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9530 shlibpath_var=LIBPATH
9532 # AIX 3 has no versioning support, so we append a major version to the name.
9533 soname_spec='${libname}${release}${shared_ext}$major'
9536 aix[4-9]*)
9537 version_type=linux
9538 need_lib_prefix=no
9539 need_version=no
9540 hardcode_into_libs=yes
9541 if test "$host_cpu" = ia64; then
9542 # AIX 5 supports IA64
9543 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9544 shlibpath_var=LD_LIBRARY_PATH
9545 else
9546 # With GCC up to 2.95.x, collect2 would create an import file
9547 # for dependence libraries. The import file would start with
9548 # the line `#! .'. This would cause the generated library to
9549 # depend on `.', always an invalid library. This was fixed in
9550 # development snapshots of GCC prior to 3.0.
9551 case $host_os in
9552 aix4 | aix4.[01] | aix4.[01].*)
9553 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9554 echo ' yes '
9555 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9557 else
9558 can_build_shared=no
9561 esac
9562 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9563 # soname into executable. Probably we can add versioning support to
9564 # collect2, so additional links can be useful in future.
9565 if test "$aix_use_runtimelinking" = yes; then
9566 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9567 # instead of lib<name>.a to let people know that these are not
9568 # typical AIX shared libraries.
9569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9570 else
9571 # We preserve .a as extension for shared libraries through AIX4.2
9572 # and later when we are not doing run time linking.
9573 library_names_spec='${libname}${release}.a $libname.a'
9574 soname_spec='${libname}${release}${shared_ext}$major'
9576 shlibpath_var=LIBPATH
9580 amigaos*)
9581 if test "$host_cpu" = m68k; then
9582 library_names_spec='$libname.ixlibrary $libname.a'
9583 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9584 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'
9585 else
9586 dynamic_linker=no
9590 beos*)
9591 library_names_spec='${libname}${shared_ext}'
9592 dynamic_linker="$host_os ld.so"
9593 shlibpath_var=LIBRARY_PATH
9596 bsdi[45]*)
9597 version_type=linux
9598 need_version=no
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9600 soname_spec='${libname}${release}${shared_ext}$major'
9601 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9602 shlibpath_var=LD_LIBRARY_PATH
9603 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9604 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9605 # the default ld.so.conf also contains /usr/contrib/lib and
9606 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9607 # libtool to hard-code these into programs
9610 cygwin* | mingw* | pw32*)
9611 version_type=windows
9612 shrext_cmds=".dll"
9613 need_version=no
9614 need_lib_prefix=no
9616 case $withGCC,$host_os in
9617 yes,cygwin* | yes,mingw* | yes,pw32*)
9618 library_names_spec='$libname.dll.a'
9619 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9620 postinstall_cmds='base_file=`basename \${file}`~
9621 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9622 dldir=$destdir/`dirname \$dlpath`~
9623 test -d \$dldir || mkdir -p \$dldir~
9624 $install_prog $dir/$dlname \$dldir/$dlname~
9625 chmod a+x \$dldir/$dlname~
9626 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9627 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9629 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9630 dlpath=$dir/\$dldll~
9631 $RM \$dlpath'
9632 shlibpath_overrides_runpath=yes
9634 case $host_os in
9635 cygwin*)
9636 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9637 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9638 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9640 mingw*)
9641 # MinGW DLLs use traditional 'lib' prefix
9642 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9643 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9644 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9645 # It is most probably a Windows format PATH printed by
9646 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9647 # path with ; separators, and with drive letters. We can handle the
9648 # drive letters (cygwin fileutils understands them), so leave them,
9649 # especially as we might pass files found there to a mingw objdump,
9650 # which wouldn't understand a cygwinified path. Ahh.
9651 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9652 else
9653 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9656 pw32*)
9657 # pw32 DLLs use 'pw' prefix rather than 'lib'
9658 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9660 esac
9664 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9666 esac
9667 dynamic_linker='Win32 ld.exe'
9668 # FIXME: first we should search . and the directory the executable is in
9669 shlibpath_var=PATH
9672 darwin* | rhapsody*)
9673 dynamic_linker="$host_os dyld"
9674 version_type=darwin
9675 need_lib_prefix=no
9676 need_version=no
9677 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9678 soname_spec='${libname}${release}${major}$shared_ext'
9679 shlibpath_overrides_runpath=yes
9680 shlibpath_var=DYLD_LIBRARY_PATH
9681 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9683 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9684 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9687 dgux*)
9688 version_type=linux
9689 need_lib_prefix=no
9690 need_version=no
9691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9692 soname_spec='${libname}${release}${shared_ext}$major'
9693 shlibpath_var=LD_LIBRARY_PATH
9696 freebsd1*)
9697 dynamic_linker=no
9700 freebsd* | dragonfly*)
9701 # DragonFly does not have aout. When/if they implement a new
9702 # versioning mechanism, adjust this.
9703 if test -x /usr/bin/objformat; then
9704 objformat=`/usr/bin/objformat`
9705 else
9706 case $host_os in
9707 freebsd[123]*) objformat=aout ;;
9708 *) objformat=elf ;;
9709 esac
9711 version_type=freebsd-$objformat
9712 case $version_type in
9713 freebsd-elf*)
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9715 need_version=no
9716 need_lib_prefix=no
9718 freebsd-*)
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9720 need_version=yes
9722 esac
9723 shlibpath_var=LD_LIBRARY_PATH
9724 case $host_os in
9725 freebsd2*)
9726 shlibpath_overrides_runpath=yes
9728 freebsd3.[01]* | freebsdelf3.[01]*)
9729 shlibpath_overrides_runpath=yes
9730 hardcode_into_libs=yes
9732 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9733 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9734 shlibpath_overrides_runpath=no
9735 hardcode_into_libs=yes
9737 *) # from 4.6 on, and DragonFly
9738 shlibpath_overrides_runpath=yes
9739 hardcode_into_libs=yes
9741 esac
9744 gnu*)
9745 version_type=linux
9746 need_lib_prefix=no
9747 need_version=no
9748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9749 soname_spec='${libname}${release}${shared_ext}$major'
9750 shlibpath_var=LD_LIBRARY_PATH
9751 hardcode_into_libs=yes
9754 hpux9* | hpux10* | hpux11*)
9755 # Give a soname corresponding to the major version so that dld.sl refuses to
9756 # link against other versions.
9757 version_type=sunos
9758 need_lib_prefix=no
9759 need_version=no
9760 case $host_cpu in
9761 ia64*)
9762 shrext_cmds='.so'
9763 hardcode_into_libs=yes
9764 dynamic_linker="$host_os dld.so"
9765 shlibpath_var=LD_LIBRARY_PATH
9766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9768 soname_spec='${libname}${release}${shared_ext}$major'
9769 if test "X$HPUX_IA64_MODE" = X32; then
9770 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9771 else
9772 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9776 hppa*64*)
9777 shrext_cmds='.sl'
9778 hardcode_into_libs=yes
9779 dynamic_linker="$host_os dld.sl"
9780 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783 soname_spec='${libname}${release}${shared_ext}$major'
9784 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9788 shrext_cmds='.sl'
9789 dynamic_linker="$host_os dld.sl"
9790 shlibpath_var=SHLIB_PATH
9791 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793 soname_spec='${libname}${release}${shared_ext}$major'
9795 esac
9796 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9797 postinstall_cmds='chmod 555 $lib'
9800 interix[3-9]*)
9801 version_type=linux
9802 need_lib_prefix=no
9803 need_version=no
9804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9805 soname_spec='${libname}${release}${shared_ext}$major'
9806 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9807 shlibpath_var=LD_LIBRARY_PATH
9808 shlibpath_overrides_runpath=no
9809 hardcode_into_libs=yes
9812 irix5* | irix6* | nonstopux*)
9813 case $host_os in
9814 nonstopux*) version_type=nonstopux ;;
9816 if test "$lt_cv_prog_gnu_ld" = yes; then
9817 version_type=linux
9818 else
9819 version_type=irix
9820 fi ;;
9821 esac
9822 need_lib_prefix=no
9823 need_version=no
9824 soname_spec='${libname}${release}${shared_ext}$major'
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9826 case $host_os in
9827 irix5* | nonstopux*)
9828 libsuff= shlibsuff=
9831 case $LD in # libtool.m4 will add one of these switches to LD
9832 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9833 libsuff= shlibsuff= libmagic=32-bit;;
9834 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9835 libsuff=32 shlibsuff=N32 libmagic=N32;;
9836 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9837 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9838 *) libsuff= shlibsuff= libmagic=never-match;;
9839 esac
9841 esac
9842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9843 shlibpath_overrides_runpath=no
9844 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9845 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9846 hardcode_into_libs=yes
9849 # No shared lib support for Linux oldld, aout, or coff.
9850 linux*oldld* | linux*aout* | linux*coff*)
9851 dynamic_linker=no
9854 # This must be Linux ELF.
9855 linux* | k*bsd*-gnu)
9856 version_type=linux
9857 need_lib_prefix=no
9858 need_version=no
9859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9860 soname_spec='${libname}${release}${shared_ext}$major'
9861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9862 shlibpath_var=LD_LIBRARY_PATH
9863 shlibpath_overrides_runpath=no
9864 # Some binutils ld are patched to set DT_RUNPATH
9865 save_LDFLAGS=$LDFLAGS
9866 save_libdir=$libdir
9867 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9868 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9869 if test x$gcc_no_link = xyes; then
9870 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9871 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9872 { (exit 1); exit 1; }; }
9874 cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h. */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9882 main ()
9886 return 0;
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891 (eval $ac_link) 2>conftest.er1
9892 ac_status=$?
9893 grep -v '^ *+' conftest.er1 >conftest.err
9894 rm -f conftest.er1
9895 cat conftest.err >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try='test -z "$ac_c_werror_flag"
9899 || test ! -s conftest.err'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901 (eval $ac_try) 2>&5
9902 ac_status=$?
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try='test -s conftest$ac_exeext'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 (eval $ac_try) 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9912 shlibpath_overrides_runpath=yes
9915 else
9916 echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9920 rm -f conftest.err conftest.$ac_objext \
9921 conftest$ac_exeext conftest.$ac_ext
9922 LDFLAGS=$save_LDFLAGS
9923 libdir=$save_libdir
9925 # This implies no fast_install, which is unacceptable.
9926 # Some rework will be needed to allow for fast_install
9927 # before this can be enabled.
9928 hardcode_into_libs=yes
9930 # Append ld.so.conf contents to the search path
9931 if test -f /etc/ld.so.conf; then
9932 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9933 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9936 # We used to test for /lib/ld.so.1 and disable shared libraries on
9937 # powerpc, because MkLinux only supported shared libraries with the
9938 # GNU dynamic linker. Since this was broken with cross compilers,
9939 # most powerpc-linux boxes support dynamic linking these days and
9940 # people can always --disable-shared, the test was removed, and we
9941 # assume the GNU/Linux dynamic linker is in use.
9942 dynamic_linker='GNU/Linux ld.so'
9945 netbsd*)
9946 version_type=sunos
9947 need_lib_prefix=no
9948 need_version=no
9949 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9952 dynamic_linker='NetBSD (a.out) ld.so'
9953 else
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 dynamic_linker='NetBSD ld.elf_so'
9958 shlibpath_var=LD_LIBRARY_PATH
9959 shlibpath_overrides_runpath=yes
9960 hardcode_into_libs=yes
9963 newsos6)
9964 version_type=linux
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 shlibpath_var=LD_LIBRARY_PATH
9967 shlibpath_overrides_runpath=yes
9970 *nto* | *qnx*)
9971 version_type=qnx
9972 need_lib_prefix=no
9973 need_version=no
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975 soname_spec='${libname}${release}${shared_ext}$major'
9976 shlibpath_var=LD_LIBRARY_PATH
9977 shlibpath_overrides_runpath=no
9978 hardcode_into_libs=yes
9979 dynamic_linker='ldqnx.so'
9982 openbsd*)
9983 version_type=sunos
9984 sys_lib_dlsearch_path_spec="/usr/lib"
9985 need_lib_prefix=no
9986 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9987 case $host_os in
9988 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9989 *) need_version=no ;;
9990 esac
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9993 shlibpath_var=LD_LIBRARY_PATH
9994 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9995 case $host_os in
9996 openbsd2.[89] | openbsd2.[89].*)
9997 shlibpath_overrides_runpath=no
10000 shlibpath_overrides_runpath=yes
10002 esac
10003 else
10004 shlibpath_overrides_runpath=yes
10008 os2*)
10009 libname_spec='$name'
10010 shrext_cmds=".dll"
10011 need_lib_prefix=no
10012 library_names_spec='$libname${shared_ext} $libname.a'
10013 dynamic_linker='OS/2 ld.exe'
10014 shlibpath_var=LIBPATH
10017 osf3* | osf4* | osf5*)
10018 version_type=osf
10019 need_lib_prefix=no
10020 need_version=no
10021 soname_spec='${libname}${release}${shared_ext}$major'
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10023 shlibpath_var=LD_LIBRARY_PATH
10024 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10025 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10028 rdos*)
10029 dynamic_linker=no
10032 solaris*)
10033 version_type=linux
10034 need_lib_prefix=no
10035 need_version=no
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037 soname_spec='${libname}${release}${shared_ext}$major'
10038 shlibpath_var=LD_LIBRARY_PATH
10039 shlibpath_overrides_runpath=yes
10040 hardcode_into_libs=yes
10041 # ldd complains unless libraries are executable
10042 postinstall_cmds='chmod +x $lib'
10045 sunos4*)
10046 version_type=sunos
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10048 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10049 shlibpath_var=LD_LIBRARY_PATH
10050 shlibpath_overrides_runpath=yes
10051 if test "$with_gnu_ld" = yes; then
10052 need_lib_prefix=no
10054 need_version=yes
10057 sysv4 | sysv4.3*)
10058 version_type=linux
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10060 soname_spec='${libname}${release}${shared_ext}$major'
10061 shlibpath_var=LD_LIBRARY_PATH
10062 case $host_vendor in
10063 sni)
10064 shlibpath_overrides_runpath=no
10065 need_lib_prefix=no
10066 runpath_var=LD_RUN_PATH
10068 siemens)
10069 need_lib_prefix=no
10071 motorola)
10072 need_lib_prefix=no
10073 need_version=no
10074 shlibpath_overrides_runpath=no
10075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10077 esac
10080 sysv4*MP*)
10081 if test -d /usr/nec ;then
10082 version_type=linux
10083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10084 soname_spec='$libname${shared_ext}.$major'
10085 shlibpath_var=LD_LIBRARY_PATH
10089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10090 version_type=freebsd-elf
10091 need_lib_prefix=no
10092 need_version=no
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10094 soname_spec='${libname}${release}${shared_ext}$major'
10095 shlibpath_var=LD_LIBRARY_PATH
10096 shlibpath_overrides_runpath=yes
10097 hardcode_into_libs=yes
10098 if test "$with_gnu_ld" = yes; then
10099 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10100 else
10101 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10102 case $host_os in
10103 sco3.2v5*)
10104 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10106 esac
10108 sys_lib_dlsearch_path_spec='/usr/lib'
10111 tpf*)
10112 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10113 version_type=linux
10114 need_lib_prefix=no
10115 need_version=no
10116 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117 shlibpath_var=LD_LIBRARY_PATH
10118 shlibpath_overrides_runpath=no
10119 hardcode_into_libs=yes
10122 uts4*)
10123 version_type=linux
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 shlibpath_var=LD_LIBRARY_PATH
10130 dynamic_linker=no
10132 esac
10133 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10134 echo "${ECHO_T}$dynamic_linker" >&6
10135 test "$dynamic_linker" = no && can_build_shared=no
10137 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10138 if test "$GCC" = yes; then
10139 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10228 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10229 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10230 hardcode_action=
10231 if test -n "$hardcode_libdir_flag_spec" ||
10232 test -n "$runpath_var" ||
10233 test "X$hardcode_automatic" = "Xyes" ; then
10235 # We can hardcode non-existent directories.
10236 if test "$hardcode_direct" != no &&
10237 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10238 # have to relink, otherwise we might link with an installed library
10239 # when we should be linking with a yet-to-be-installed one
10240 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10241 test "$hardcode_minus_L" != no; then
10242 # Linking always hardcodes the temporary library directory.
10243 hardcode_action=relink
10244 else
10245 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10246 hardcode_action=immediate
10248 else
10249 # We cannot hardcode anything, or else we can only hardcode existing
10250 # directories.
10251 hardcode_action=unsupported
10253 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10254 echo "${ECHO_T}$hardcode_action" >&6
10256 if test "$hardcode_action" = relink ||
10257 test "$inherit_rpath" = yes; then
10258 # Fast installation is not supported
10259 enable_fast_install=no
10260 elif test "$shlibpath_overrides_runpath" = yes ||
10261 test "$enable_shared" = no; then
10262 # Fast installation is not necessary
10263 enable_fast_install=needless
10271 if test "x$enable_dlopen" != xyes; then
10272 enable_dlopen=unknown
10273 enable_dlopen_self=unknown
10274 enable_dlopen_self_static=unknown
10275 else
10276 lt_cv_dlopen=no
10277 lt_cv_dlopen_libs=
10279 case $host_os in
10280 beos*)
10281 lt_cv_dlopen="load_add_on"
10282 lt_cv_dlopen_libs=
10283 lt_cv_dlopen_self=yes
10286 mingw* | pw32*)
10287 lt_cv_dlopen="LoadLibrary"
10288 lt_cv_dlopen_libs=
10291 cygwin*)
10292 lt_cv_dlopen="dlopen"
10293 lt_cv_dlopen_libs=
10296 darwin*)
10297 # if libdl is installed we need to link against it
10298 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10299 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10300 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10303 ac_check_lib_save_LIBS=$LIBS
10304 LIBS="-ldl $LIBS"
10305 if test x$gcc_no_link = xyes; then
10306 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10307 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10308 { (exit 1); exit 1; }; }
10310 cat >conftest.$ac_ext <<_ACEOF
10311 /* confdefs.h. */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10317 /* Override any gcc2 internal prototype to avoid an error. */
10318 #ifdef __cplusplus
10319 extern "C"
10320 #endif
10321 /* We use char because int might match the return type of a gcc2
10322 builtin and then its argument prototype would still apply. */
10323 char dlopen ();
10325 main ()
10327 dlopen ();
10329 return 0;
10331 _ACEOF
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10334 (eval $ac_link) 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } &&
10341 { ac_try='test -z "$ac_c_werror_flag"
10342 || test ! -s conftest.err'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; } &&
10348 { ac_try='test -s conftest$ac_exeext'
10349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10351 ac_status=$?
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; }; then
10354 ac_cv_lib_dl_dlopen=yes
10355 else
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 ac_cv_lib_dl_dlopen=no
10361 rm -f conftest.err conftest.$ac_objext \
10362 conftest$ac_exeext conftest.$ac_ext
10363 LIBS=$ac_check_lib_save_LIBS
10365 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10366 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10367 if test $ac_cv_lib_dl_dlopen = yes; then
10368 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10369 else
10371 lt_cv_dlopen="dyld"
10372 lt_cv_dlopen_libs=
10373 lt_cv_dlopen_self=yes
10380 echo "$as_me:$LINENO: checking for shl_load" >&5
10381 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10382 if test "${ac_cv_func_shl_load+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385 if test x$gcc_no_link = xyes; then
10386 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10387 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10388 { (exit 1); exit 1; }; }
10390 cat >conftest.$ac_ext <<_ACEOF
10391 /* confdefs.h. */
10392 _ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10396 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10398 #define shl_load innocuous_shl_load
10400 /* System header to define __stub macros and hopefully few prototypes,
10401 which can conflict with char shl_load (); below.
10402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10403 <limits.h> exists even on freestanding compilers. */
10405 #ifdef __STDC__
10406 # include <limits.h>
10407 #else
10408 # include <assert.h>
10409 #endif
10411 #undef shl_load
10413 /* Override any gcc2 internal prototype to avoid an error. */
10414 #ifdef __cplusplus
10415 extern "C"
10417 #endif
10418 /* We use char because int might match the return type of a gcc2
10419 builtin and then its argument prototype would still apply. */
10420 char shl_load ();
10421 /* The GNU C library defines this for functions which it implements
10422 to always fail with ENOSYS. Some functions are actually named
10423 something starting with __ and the normal name is an alias. */
10424 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10425 choke me
10426 #else
10427 char (*f) () = shl_load;
10428 #endif
10429 #ifdef __cplusplus
10431 #endif
10434 main ()
10436 return f != shl_load;
10438 return 0;
10440 _ACEOF
10441 rm -f conftest.$ac_objext conftest$ac_exeext
10442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10443 (eval $ac_link) 2>conftest.er1
10444 ac_status=$?
10445 grep -v '^ *+' conftest.er1 >conftest.err
10446 rm -f conftest.er1
10447 cat conftest.err >&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } &&
10450 { ac_try='test -z "$ac_c_werror_flag"
10451 || test ! -s conftest.err'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10454 ac_status=$?
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; } &&
10457 { ac_try='test -s conftest$ac_exeext'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; }; then
10463 ac_cv_func_shl_load=yes
10464 else
10465 echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10468 ac_cv_func_shl_load=no
10470 rm -f conftest.err conftest.$ac_objext \
10471 conftest$ac_exeext conftest.$ac_ext
10473 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10474 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10475 if test $ac_cv_func_shl_load = yes; then
10476 lt_cv_dlopen="shl_load"
10477 else
10478 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10479 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10480 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483 ac_check_lib_save_LIBS=$LIBS
10484 LIBS="-ldld $LIBS"
10485 if test x$gcc_no_link = xyes; then
10486 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10487 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10488 { (exit 1); exit 1; }; }
10490 cat >conftest.$ac_ext <<_ACEOF
10491 /* confdefs.h. */
10492 _ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10497 /* Override any gcc2 internal prototype to avoid an error. */
10498 #ifdef __cplusplus
10499 extern "C"
10500 #endif
10501 /* We use char because int might match the return type of a gcc2
10502 builtin and then its argument prototype would still apply. */
10503 char shl_load ();
10505 main ()
10507 shl_load ();
10509 return 0;
10511 _ACEOF
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10514 (eval $ac_link) 2>conftest.er1
10515 ac_status=$?
10516 grep -v '^ *+' conftest.er1 >conftest.err
10517 rm -f conftest.er1
10518 cat conftest.err >&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } &&
10521 { ac_try='test -z "$ac_c_werror_flag"
10522 || test ! -s conftest.err'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; } &&
10528 { ac_try='test -s conftest$ac_exeext'
10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530 (eval $ac_try) 2>&5
10531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; }; then
10534 ac_cv_lib_dld_shl_load=yes
10535 else
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10539 ac_cv_lib_dld_shl_load=no
10541 rm -f conftest.err conftest.$ac_objext \
10542 conftest$ac_exeext conftest.$ac_ext
10543 LIBS=$ac_check_lib_save_LIBS
10545 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10546 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10547 if test $ac_cv_lib_dld_shl_load = yes; then
10548 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10549 else
10550 echo "$as_me:$LINENO: checking for dlopen" >&5
10551 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10552 if test "${ac_cv_func_dlopen+set}" = set; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555 if test x$gcc_no_link = xyes; then
10556 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10557 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10558 { (exit 1); exit 1; }; }
10560 cat >conftest.$ac_ext <<_ACEOF
10561 /* confdefs.h. */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10568 #define dlopen innocuous_dlopen
10570 /* System header to define __stub macros and hopefully few prototypes,
10571 which can conflict with char dlopen (); below.
10572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10573 <limits.h> exists even on freestanding compilers. */
10575 #ifdef __STDC__
10576 # include <limits.h>
10577 #else
10578 # include <assert.h>
10579 #endif
10581 #undef dlopen
10583 /* Override any gcc2 internal prototype to avoid an error. */
10584 #ifdef __cplusplus
10585 extern "C"
10587 #endif
10588 /* We use char because int might match the return type of a gcc2
10589 builtin and then its argument prototype would still apply. */
10590 char dlopen ();
10591 /* The GNU C library defines this for functions which it implements
10592 to always fail with ENOSYS. Some functions are actually named
10593 something starting with __ and the normal name is an alias. */
10594 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10595 choke me
10596 #else
10597 char (*f) () = dlopen;
10598 #endif
10599 #ifdef __cplusplus
10601 #endif
10604 main ()
10606 return f != dlopen;
10608 return 0;
10610 _ACEOF
10611 rm -f conftest.$ac_objext conftest$ac_exeext
10612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10613 (eval $ac_link) 2>conftest.er1
10614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } &&
10620 { ac_try='test -z "$ac_c_werror_flag"
10621 || test ! -s conftest.err'
10622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623 (eval $ac_try) 2>&5
10624 ac_status=$?
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; } &&
10627 { ac_try='test -s conftest$ac_exeext'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; }; then
10633 ac_cv_func_dlopen=yes
10634 else
10635 echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10638 ac_cv_func_dlopen=no
10640 rm -f conftest.err conftest.$ac_objext \
10641 conftest$ac_exeext conftest.$ac_ext
10643 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10644 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10645 if test $ac_cv_func_dlopen = yes; then
10646 lt_cv_dlopen="dlopen"
10647 else
10648 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10649 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10650 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653 ac_check_lib_save_LIBS=$LIBS
10654 LIBS="-ldl $LIBS"
10655 if test x$gcc_no_link = xyes; then
10656 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10658 { (exit 1); exit 1; }; }
10660 cat >conftest.$ac_ext <<_ACEOF
10661 /* confdefs.h. */
10662 _ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h. */
10667 /* Override any gcc2 internal prototype to avoid an error. */
10668 #ifdef __cplusplus
10669 extern "C"
10670 #endif
10671 /* We use char because int might match the return type of a gcc2
10672 builtin and then its argument prototype would still apply. */
10673 char dlopen ();
10675 main ()
10677 dlopen ();
10679 return 0;
10681 _ACEOF
10682 rm -f conftest.$ac_objext conftest$ac_exeext
10683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10684 (eval $ac_link) 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try='test -z "$ac_c_werror_flag"
10692 || test ! -s conftest.err'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10695 ac_status=$?
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; } &&
10698 { ac_try='test -s conftest$ac_exeext'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
10704 ac_cv_lib_dl_dlopen=yes
10705 else
10706 echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10709 ac_cv_lib_dl_dlopen=no
10711 rm -f conftest.err conftest.$ac_objext \
10712 conftest$ac_exeext conftest.$ac_ext
10713 LIBS=$ac_check_lib_save_LIBS
10715 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10716 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10717 if test $ac_cv_lib_dl_dlopen = yes; then
10718 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10719 else
10720 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10721 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10722 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725 ac_check_lib_save_LIBS=$LIBS
10726 LIBS="-lsvld $LIBS"
10727 if test x$gcc_no_link = xyes; then
10728 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10729 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10730 { (exit 1); exit 1; }; }
10732 cat >conftest.$ac_ext <<_ACEOF
10733 /* confdefs.h. */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10739 /* Override any gcc2 internal prototype to avoid an error. */
10740 #ifdef __cplusplus
10741 extern "C"
10742 #endif
10743 /* We use char because int might match the return type of a gcc2
10744 builtin and then its argument prototype would still apply. */
10745 char dlopen ();
10747 main ()
10749 dlopen ();
10751 return 0;
10753 _ACEOF
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10756 (eval $ac_link) 2>conftest.er1
10757 ac_status=$?
10758 grep -v '^ *+' conftest.er1 >conftest.err
10759 rm -f conftest.er1
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } &&
10763 { ac_try='test -z "$ac_c_werror_flag"
10764 || test ! -s conftest.err'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; } &&
10770 { ac_try='test -s conftest$ac_exeext'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10773 ac_status=$?
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; }; then
10776 ac_cv_lib_svld_dlopen=yes
10777 else
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10781 ac_cv_lib_svld_dlopen=no
10783 rm -f conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785 LIBS=$ac_check_lib_save_LIBS
10787 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10788 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10789 if test $ac_cv_lib_svld_dlopen = yes; then
10790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10791 else
10792 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10793 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10794 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797 ac_check_lib_save_LIBS=$LIBS
10798 LIBS="-ldld $LIBS"
10799 if test x$gcc_no_link = xyes; then
10800 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10801 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10802 { (exit 1); exit 1; }; }
10804 cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h. */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10811 /* Override any gcc2 internal prototype to avoid an error. */
10812 #ifdef __cplusplus
10813 extern "C"
10814 #endif
10815 /* We use char because int might match the return type of a gcc2
10816 builtin and then its argument prototype would still apply. */
10817 char dld_link ();
10819 main ()
10821 dld_link ();
10823 return 0;
10825 _ACEOF
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10828 (eval $ac_link) 2>conftest.er1
10829 ac_status=$?
10830 grep -v '^ *+' conftest.er1 >conftest.err
10831 rm -f conftest.er1
10832 cat conftest.err >&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); } &&
10835 { ac_try='test -z "$ac_c_werror_flag"
10836 || test ! -s conftest.err'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; } &&
10842 { ac_try='test -s conftest$ac_exeext'
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_cv_lib_dld_dld_link=yes
10849 else
10850 echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10853 ac_cv_lib_dld_dld_link=no
10855 rm -f conftest.err conftest.$ac_objext \
10856 conftest$ac_exeext conftest.$ac_ext
10857 LIBS=$ac_check_lib_save_LIBS
10859 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10860 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10861 if test $ac_cv_lib_dld_dld_link = yes; then
10862 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10881 esac
10883 if test "x$lt_cv_dlopen" != xno; then
10884 enable_dlopen=yes
10885 else
10886 enable_dlopen=no
10889 case $lt_cv_dlopen in
10890 dlopen)
10891 save_CPPFLAGS="$CPPFLAGS"
10892 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10894 save_LDFLAGS="$LDFLAGS"
10895 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10897 save_LIBS="$LIBS"
10898 LIBS="$lt_cv_dlopen_libs $LIBS"
10900 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10901 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10902 if test "${lt_cv_dlopen_self+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905 if test "$cross_compiling" = yes; then :
10906 lt_cv_dlopen_self=cross
10907 else
10908 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10909 lt_status=$lt_dlunknown
10910 cat > conftest.$ac_ext <<_LT_EOF
10911 #line 10911 "configure"
10912 #include "confdefs.h"
10914 #if HAVE_DLFCN_H
10915 #include <dlfcn.h>
10916 #endif
10918 #include <stdio.h>
10920 #ifdef RTLD_GLOBAL
10921 # define LT_DLGLOBAL RTLD_GLOBAL
10922 #else
10923 # ifdef DL_GLOBAL
10924 # define LT_DLGLOBAL DL_GLOBAL
10925 # else
10926 # define LT_DLGLOBAL 0
10927 # endif
10928 #endif
10930 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10931 find out it does not work in some platform. */
10932 #ifndef LT_DLLAZY_OR_NOW
10933 # ifdef RTLD_LAZY
10934 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10935 # else
10936 # ifdef DL_LAZY
10937 # define LT_DLLAZY_OR_NOW DL_LAZY
10938 # else
10939 # ifdef RTLD_NOW
10940 # define LT_DLLAZY_OR_NOW RTLD_NOW
10941 # else
10942 # ifdef DL_NOW
10943 # define LT_DLLAZY_OR_NOW DL_NOW
10944 # else
10945 # define LT_DLLAZY_OR_NOW 0
10946 # endif
10947 # endif
10948 # endif
10949 # endif
10950 #endif
10952 #ifdef __cplusplus
10953 extern "C" void exit (int);
10954 #endif
10956 void fnord() { int i=42;}
10957 int main ()
10959 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10960 int status = $lt_dlunknown;
10962 if (self)
10964 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10965 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10966 /* dlclose (self); */
10968 else
10969 puts (dlerror ());
10971 exit (status);
10973 _LT_EOF
10974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10975 (eval $ac_link) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10979 (./conftest; exit; ) >&5 2>/dev/null
10980 lt_status=$?
10981 case x$lt_status in
10982 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10983 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10984 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10985 esac
10986 else :
10987 # compilation failed
10988 lt_cv_dlopen_self=no
10991 rm -fr conftest*
10995 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10996 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10998 if test "x$lt_cv_dlopen_self" = xyes; then
10999 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11000 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11001 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11002 if test "${lt_cv_dlopen_self_static+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005 if test "$cross_compiling" = yes; then :
11006 lt_cv_dlopen_self_static=cross
11007 else
11008 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11009 lt_status=$lt_dlunknown
11010 cat > conftest.$ac_ext <<_LT_EOF
11011 #line 11011 "configure"
11012 #include "confdefs.h"
11014 #if HAVE_DLFCN_H
11015 #include <dlfcn.h>
11016 #endif
11018 #include <stdio.h>
11020 #ifdef RTLD_GLOBAL
11021 # define LT_DLGLOBAL RTLD_GLOBAL
11022 #else
11023 # ifdef DL_GLOBAL
11024 # define LT_DLGLOBAL DL_GLOBAL
11025 # else
11026 # define LT_DLGLOBAL 0
11027 # endif
11028 #endif
11030 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11031 find out it does not work in some platform. */
11032 #ifndef LT_DLLAZY_OR_NOW
11033 # ifdef RTLD_LAZY
11034 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11035 # else
11036 # ifdef DL_LAZY
11037 # define LT_DLLAZY_OR_NOW DL_LAZY
11038 # else
11039 # ifdef RTLD_NOW
11040 # define LT_DLLAZY_OR_NOW RTLD_NOW
11041 # else
11042 # ifdef DL_NOW
11043 # define LT_DLLAZY_OR_NOW DL_NOW
11044 # else
11045 # define LT_DLLAZY_OR_NOW 0
11046 # endif
11047 # endif
11048 # endif
11049 # endif
11050 #endif
11052 #ifdef __cplusplus
11053 extern "C" void exit (int);
11054 #endif
11056 void fnord() { int i=42;}
11057 int main ()
11059 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11060 int status = $lt_dlunknown;
11062 if (self)
11064 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11065 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11066 /* dlclose (self); */
11068 else
11069 puts (dlerror ());
11071 exit (status);
11073 _LT_EOF
11074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075 (eval $ac_link) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11079 (./conftest; exit; ) >&5 2>/dev/null
11080 lt_status=$?
11081 case x$lt_status in
11082 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11083 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11084 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11085 esac
11086 else :
11087 # compilation failed
11088 lt_cv_dlopen_self_static=no
11091 rm -fr conftest*
11095 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11096 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11099 CPPFLAGS="$save_CPPFLAGS"
11100 LDFLAGS="$save_LDFLAGS"
11101 LIBS="$save_LIBS"
11103 esac
11105 case $lt_cv_dlopen_self in
11106 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11107 *) enable_dlopen_self=unknown ;;
11108 esac
11110 case $lt_cv_dlopen_self_static in
11111 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11112 *) enable_dlopen_self_static=unknown ;;
11113 esac
11132 striplib=
11133 old_striplib=
11134 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11135 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11136 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11137 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11138 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11139 echo "$as_me:$LINENO: result: yes" >&5
11140 echo "${ECHO_T}yes" >&6
11141 else
11142 # FIXME - insert some real tests, host_os isn't really good enough
11143 case $host_os in
11144 darwin*)
11145 if test -n "$STRIP" ; then
11146 striplib="$STRIP -x"
11147 old_striplib="$STRIP -S"
11148 echo "$as_me:$LINENO: result: yes" >&5
11149 echo "${ECHO_T}yes" >&6
11150 else
11151 echo "$as_me:$LINENO: result: no" >&5
11152 echo "${ECHO_T}no" >&6
11156 echo "$as_me:$LINENO: result: no" >&5
11157 echo "${ECHO_T}no" >&6
11159 esac
11173 # Report which library types will actually be built
11174 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11175 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11176 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11177 echo "${ECHO_T}$can_build_shared" >&6
11179 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11180 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11181 test "$can_build_shared" = "no" && enable_shared=no
11183 # On AIX, shared libraries and static libraries use the same namespace, and
11184 # are all built from PIC.
11185 case $host_os in
11186 aix3*)
11187 test "$enable_shared" = yes && enable_static=no
11188 if test -n "$RANLIB"; then
11189 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11190 postinstall_cmds='$RANLIB $lib'
11194 aix[4-9]*)
11195 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11196 test "$enable_shared" = yes && enable_static=no
11199 esac
11200 echo "$as_me:$LINENO: result: $enable_shared" >&5
11201 echo "${ECHO_T}$enable_shared" >&6
11203 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11204 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11205 # Make sure either enable_shared or enable_static is yes.
11206 test "$enable_shared" = yes || enable_static=yes
11207 echo "$as_me:$LINENO: result: $enable_static" >&5
11208 echo "${ECHO_T}$enable_static" >&6
11214 ac_ext=c
11215 ac_cpp='$CPP $CPPFLAGS'
11216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11220 CC="$lt_save_CC"
11223 ac_ext=cc
11224 ac_cpp='$CXXCPP $CPPFLAGS'
11225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11229 archive_cmds_need_lc_CXX=no
11230 allow_undefined_flag_CXX=
11231 always_export_symbols_CXX=no
11232 archive_expsym_cmds_CXX=
11233 compiler_needs_object_CXX=no
11234 export_dynamic_flag_spec_CXX=
11235 hardcode_direct_CXX=no
11236 hardcode_direct_absolute_CXX=no
11237 hardcode_libdir_flag_spec_CXX=
11238 hardcode_libdir_flag_spec_ld_CXX=
11239 hardcode_libdir_separator_CXX=
11240 hardcode_minus_L_CXX=no
11241 hardcode_shlibpath_var_CXX=unsupported
11242 hardcode_automatic_CXX=no
11243 inherit_rpath_CXX=no
11244 module_cmds_CXX=
11245 module_expsym_cmds_CXX=
11246 link_all_deplibs_CXX=unknown
11247 old_archive_cmds_CXX=$old_archive_cmds
11248 no_undefined_flag_CXX=
11249 whole_archive_flag_spec_CXX=
11250 enable_shared_with_static_runtimes_CXX=no
11252 # Source file extension for C++ test sources.
11253 ac_ext=cpp
11255 # Object file extension for compiled C++ test sources.
11256 objext=o
11257 objext_CXX=$objext
11259 # No sense in running all these tests if we already determined that
11260 # the CXX compiler isn't working. Some variables (like enable_shared)
11261 # are currently assumed to apply to all compilers on this platform,
11262 # and will be corrupted by setting them based on a non-working compiler.
11263 if test "$_lt_caught_CXX_error" != yes; then
11264 # Code to be used in simple compile tests
11265 lt_simple_compile_test_code="int some_variable = 0;"
11267 # Code to be used in simple link tests
11268 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11270 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11277 # If no C compiler was specified, use CC.
11278 LTCC=${LTCC-"$CC"}
11280 # If no C compiler flags were specified, use CFLAGS.
11281 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11283 # Allow CC to be a program name with arguments.
11284 compiler=$CC
11287 # save warnings/boilerplate of simple test code
11288 ac_outfile=conftest.$ac_objext
11289 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11290 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11291 _lt_compiler_boilerplate=`cat conftest.err`
11292 $RM conftest*
11294 ac_outfile=conftest.$ac_objext
11295 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11296 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11297 _lt_linker_boilerplate=`cat conftest.err`
11298 $RM conftest*
11301 # Allow CC to be a program name with arguments.
11302 lt_save_CC=$CC
11303 lt_save_LD=$LD
11304 lt_save_GCC=$GCC
11305 GCC=$GXX
11306 lt_save_with_gnu_ld=$with_gnu_ld
11307 lt_save_path_LD=$lt_cv_path_LD
11308 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11309 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11310 else
11311 $as_unset lt_cv_prog_gnu_ld
11313 if test -n "${lt_cv_path_LDCXX+set}"; then
11314 lt_cv_path_LD=$lt_cv_path_LDCXX
11315 else
11316 $as_unset lt_cv_path_LD
11318 test -z "${LDCXX+set}" || LD=$LDCXX
11319 CC=${CXX-"c++"}
11320 compiler=$CC
11321 compiler_CXX=$CC
11322 for cc_temp in $compiler""; do
11323 case $cc_temp in
11324 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11325 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11326 \-*) ;;
11327 *) break;;
11328 esac
11329 done
11330 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11333 if test -n "$compiler"; then
11334 # We don't want -fno-exception when compiling C++ code, so set the
11335 # no_builtin_flag separately
11336 if test "$GXX" = yes; then
11337 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11338 else
11339 lt_prog_compiler_no_builtin_flag_CXX=
11342 if test "$GXX" = yes; then
11343 # Set up default GNU C++ configuration
11347 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11348 if test "${with_gnu_ld+set}" = set; then
11349 withval="$with_gnu_ld"
11350 test "$withval" = no || with_gnu_ld=yes
11351 else
11352 with_gnu_ld=no
11354 ac_prog=ld
11355 if test "$GCC" = yes; then
11356 # Check if gcc -print-prog-name=ld gives a path.
11357 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11358 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11359 case $host in
11360 *-*-mingw*)
11361 # gcc leaves a trailing carriage return which upsets mingw
11362 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11364 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11365 esac
11366 case $ac_prog in
11367 # Accept absolute paths.
11368 [\\/]* | ?:[\\/]*)
11369 re_direlt='/[^/][^/]*/\.\./'
11370 # Canonicalize the pathname of ld
11371 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11372 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11373 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11374 done
11375 test -z "$LD" && LD="$ac_prog"
11378 # If it fails, then pretend we aren't using GCC.
11379 ac_prog=ld
11382 # If it is relative, then search for the first ld in PATH.
11383 with_gnu_ld=unknown
11385 esac
11386 elif test "$with_gnu_ld" = yes; then
11387 echo "$as_me:$LINENO: checking for GNU ld" >&5
11388 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11389 else
11390 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11391 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11393 if test "${lt_cv_path_LD+set}" = set; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 else
11396 if test -z "$LD"; then
11397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11398 for ac_dir in $PATH; do
11399 IFS="$lt_save_ifs"
11400 test -z "$ac_dir" && ac_dir=.
11401 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11402 lt_cv_path_LD="$ac_dir/$ac_prog"
11403 # Check to see if the program is GNU ld. I'd rather use --version,
11404 # but apparently some variants of GNU ld only accept -v.
11405 # Break only if it was the GNU/non-GNU ld that we prefer.
11406 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11407 *GNU* | *'with BFD'*)
11408 test "$with_gnu_ld" != no && break
11411 test "$with_gnu_ld" != yes && break
11413 esac
11415 done
11416 IFS="$lt_save_ifs"
11417 else
11418 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11422 LD="$lt_cv_path_LD"
11423 if test -n "$LD"; then
11424 echo "$as_me:$LINENO: result: $LD" >&5
11425 echo "${ECHO_T}$LD" >&6
11426 else
11427 echo "$as_me:$LINENO: result: no" >&5
11428 echo "${ECHO_T}no" >&6
11430 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11431 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11432 { (exit 1); exit 1; }; }
11433 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11434 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11435 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11436 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 else
11438 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11439 case `$LD -v 2>&1 </dev/null` in
11440 *GNU* | *'with BFD'*)
11441 lt_cv_prog_gnu_ld=yes
11444 lt_cv_prog_gnu_ld=no
11446 esac
11448 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11449 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11450 with_gnu_ld=$lt_cv_prog_gnu_ld
11458 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11459 # archiving commands below assume that GNU ld is being used.
11460 if test "$with_gnu_ld" = yes; then
11461 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11462 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'
11464 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11465 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11467 # If archive_cmds runs LD, not CC, wlarc should be empty
11468 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11469 # investigate it a little bit more. (MM)
11470 wlarc='${wl}'
11472 # ancient GNU ld didn't support --whole-archive et. al.
11473 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11474 $GREP 'no-whole-archive' > /dev/null; then
11475 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11476 else
11477 whole_archive_flag_spec_CXX=
11479 else
11480 with_gnu_ld=no
11481 wlarc=
11483 # A generic and very simple default shared library creation
11484 # command for GNU C++ for the case where it uses the native
11485 # linker, instead of GNU ld. If possible, this setting should
11486 # overridden to take advantage of the native linker features on
11487 # the platform it is being used on.
11488 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11491 # Commands to make compiler produce verbose output that lists
11492 # what "hidden" libraries, object files and flags are used when
11493 # linking a shared library.
11494 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11496 else
11497 GXX=no
11498 with_gnu_ld=no
11499 wlarc=
11502 # PORTME: fill in a description of your system's C++ link characteristics
11503 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11504 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11505 ld_shlibs_CXX=yes
11506 case $host_os in
11507 aix3*)
11508 # FIXME: insert proper C++ library support
11509 ld_shlibs_CXX=no
11511 aix[4-9]*)
11512 if test "$host_cpu" = ia64; then
11513 # On IA64, the linker does run time linking by default, so we don't
11514 # have to do anything special.
11515 aix_use_runtimelinking=no
11516 exp_sym_flag='-Bexport'
11517 no_entry_flag=""
11518 else
11519 aix_use_runtimelinking=no
11521 # Test if we are trying to use run time linking or normal
11522 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11523 # need to do runtime linking.
11524 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11525 for ld_flag in $LDFLAGS; do
11526 case $ld_flag in
11527 *-brtl*)
11528 aix_use_runtimelinking=yes
11529 break
11531 esac
11532 done
11534 esac
11536 exp_sym_flag='-bexport'
11537 no_entry_flag='-bnoentry'
11540 # When large executables or shared objects are built, AIX ld can
11541 # have problems creating the table of contents. If linking a library
11542 # or program results in "error TOC overflow" add -mminimal-toc to
11543 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11544 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11546 archive_cmds_CXX=''
11547 hardcode_direct_CXX=yes
11548 hardcode_direct_absolute_CXX=yes
11549 hardcode_libdir_separator_CXX=':'
11550 link_all_deplibs_CXX=yes
11551 file_list_spec_CXX='${wl}-f,'
11553 if test "$GXX" = yes; then
11554 case $host_os in aix4.[012]|aix4.[012].*)
11555 # We only want to do this on AIX 4.2 and lower, the check
11556 # below for broken collect2 doesn't work under 4.3+
11557 collect2name=`${CC} -print-prog-name=collect2`
11558 if test -f "$collect2name" &&
11559 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11560 then
11561 # We have reworked collect2
11563 else
11564 # We have old collect2
11565 hardcode_direct_CXX=unsupported
11566 # It fails to find uninstalled libraries when the uninstalled
11567 # path is not listed in the libpath. Setting hardcode_minus_L
11568 # to unsupported forces relinking
11569 hardcode_minus_L_CXX=yes
11570 hardcode_libdir_flag_spec_CXX='-L$libdir'
11571 hardcode_libdir_separator_CXX=
11573 esac
11574 shared_flag='-shared'
11575 if test "$aix_use_runtimelinking" = yes; then
11576 shared_flag="$shared_flag "'${wl}-G'
11578 else
11579 # not using gcc
11580 if test "$host_cpu" = ia64; then
11581 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11582 # chokes on -Wl,-G. The following line is correct:
11583 shared_flag='-G'
11584 else
11585 if test "$aix_use_runtimelinking" = yes; then
11586 shared_flag='${wl}-G'
11587 else
11588 shared_flag='${wl}-bM:SRE'
11593 # It seems that -bexpall does not export symbols beginning with
11594 # underscore (_), so it is better to generate a list of symbols to
11595 # export.
11596 always_export_symbols_CXX=yes
11597 if test "$aix_use_runtimelinking" = yes; then
11598 # Warning - without using the other runtime loading flags (-brtl),
11599 # -berok will link without error, but may produce a broken library.
11600 allow_undefined_flag_CXX='-berok'
11601 # Determine the default libpath from the value encoded in an empty
11602 # executable.
11603 if test x$gcc_no_link = xyes; then
11604 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11605 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11606 { (exit 1); exit 1; }; }
11608 cat >conftest.$ac_ext <<_ACEOF
11609 /* confdefs.h. */
11610 _ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h. */
11616 main ()
11620 return 0;
11622 _ACEOF
11623 rm -f conftest.$ac_objext conftest$ac_exeext
11624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11625 (eval $ac_link) 2>conftest.er1
11626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } &&
11632 { ac_try='test -z "$ac_cxx_werror_flag"
11633 || test ! -s conftest.err'
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11636 ac_status=$?
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; } &&
11639 { ac_try='test -s conftest$ac_exeext'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11646 lt_aix_libpath_sed='
11647 /Import File Strings/,/^$/ {
11648 /^0/ {
11649 s/^0 *\(.*\)$/\1/
11653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11654 # Check for a 64-bit object if we didn't find anything.
11655 if test -z "$aix_libpath"; then
11656 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11658 else
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11663 rm -f conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11665 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11667 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11669 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"
11670 else
11671 if test "$host_cpu" = ia64; then
11672 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11673 allow_undefined_flag_CXX="-z nodefs"
11674 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"
11675 else
11676 # Determine the default libpath from the value encoded in an
11677 # empty executable.
11678 if test x$gcc_no_link = xyes; then
11679 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11680 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11681 { (exit 1); exit 1; }; }
11683 cat >conftest.$ac_ext <<_ACEOF
11684 /* confdefs.h. */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h. */
11691 main ()
11695 return 0;
11697 _ACEOF
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11700 (eval $ac_link) 2>conftest.er1
11701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -z "$ac_cxx_werror_flag"
11708 || test ! -s conftest.err'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest$ac_exeext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11721 lt_aix_libpath_sed='
11722 /Import File Strings/,/^$/ {
11723 /^0/ {
11724 s/^0 *\(.*\)$/\1/
11728 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11729 # Check for a 64-bit object if we didn't find anything.
11730 if test -z "$aix_libpath"; then
11731 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11733 else
11734 echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11738 rm -f conftest.err conftest.$ac_objext \
11739 conftest$ac_exeext conftest.$ac_ext
11740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11742 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11743 # Warning - without using the other run time loading flags,
11744 # -berok will link without error, but may produce a broken library.
11745 no_undefined_flag_CXX=' ${wl}-bernotok'
11746 allow_undefined_flag_CXX=' ${wl}-berok'
11747 # Exported symbols can be pulled into shared objects from archives
11748 whole_archive_flag_spec_CXX='$convenience'
11749 archive_cmds_need_lc_CXX=yes
11750 # This is similar to how AIX traditionally builds its shared
11751 # libraries.
11752 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'
11757 beos*)
11758 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11759 allow_undefined_flag_CXX=unsupported
11760 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11761 # support --undefined. This deserves some investigation. FIXME
11762 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11763 else
11764 ld_shlibs_CXX=no
11768 chorus*)
11769 case $cc_basename in
11771 # FIXME: insert proper C++ library support
11772 ld_shlibs_CXX=no
11774 esac
11777 cygwin* | mingw* | pw32*)
11778 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11779 # as there is no search path for DLLs.
11780 hardcode_libdir_flag_spec_CXX='-L$libdir'
11781 allow_undefined_flag_CXX=unsupported
11782 always_export_symbols_CXX=no
11783 enable_shared_with_static_runtimes_CXX=yes
11785 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11786 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'
11787 # If the export-symbols file already is a .def file (1st line
11788 # is EXPORTS), use it as is; otherwise, prepend...
11789 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11790 cp $export_symbols $output_objdir/$soname.def;
11791 else
11792 echo EXPORTS > $output_objdir/$soname.def;
11793 cat $export_symbols >> $output_objdir/$soname.def;
11795 $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'
11796 else
11797 ld_shlibs_CXX=no
11800 darwin* | rhapsody*)
11801 case $host_os in
11802 rhapsody* | darwin1.[012])
11803 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11805 *) # Darwin 1.3 on
11806 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11807 10.[012])
11808 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11810 10.*)
11811 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11813 esac
11815 esac
11816 archive_cmds_need_lc_CXX=no
11817 hardcode_direct_CXX=no
11818 hardcode_automatic_CXX=yes
11819 hardcode_shlibpath_var_CXX=unsupported
11820 whole_archive_flag_spec_CXX=''
11821 link_all_deplibs_CXX=yes
11823 if test "$GXX" = yes ; then
11824 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 else
11827 lt_cv_apple_cc_single_mod=no
11828 if test -z "${LT_MULTI_MODULE}"; then
11829 # By default we will add the -single_module flag. You can override
11830 # by either setting the environment variable LT_MULTI_MODULE
11831 # non-empty at configure time, or by adding -multi-module to the
11832 # link flags.
11833 echo "int foo(void){return 1;}" > conftest.c
11834 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11835 -dynamiclib ${wl}-single_module conftest.c
11836 if test -f libconftest.dylib; then
11837 lt_cv_apple_cc_single_mod=yes
11838 rm libconftest.dylib
11840 rm conftest.$ac_ext
11844 output_verbose_link_cmd=echo
11845 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11846 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11847 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11848 else
11849 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'
11850 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11852 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11853 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11854 else
11855 case $cc_basename in
11856 xlc*)
11857 output_verbose_link_cmd=echo
11858 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring'
11859 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11860 # Don't fix this by using the ld -exported_symbols_list flag,
11861 # it doesn't exist in older darwin lds
11862 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11863 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11866 ld_shlibs_CXX=no
11868 esac
11872 dgux*)
11873 case $cc_basename in
11874 ec++*)
11875 # FIXME: insert proper C++ library support
11876 ld_shlibs_CXX=no
11878 ghcx*)
11879 # Green Hills C++ Compiler
11880 # FIXME: insert proper C++ library support
11881 ld_shlibs_CXX=no
11884 # FIXME: insert proper C++ library support
11885 ld_shlibs_CXX=no
11887 esac
11890 freebsd[12]*)
11891 # C++ shared libraries reported to be fairly broken before
11892 # switch to ELF
11893 ld_shlibs_CXX=no
11896 freebsd-elf*)
11897 archive_cmds_need_lc_CXX=no
11900 freebsd* | dragonfly*)
11901 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11902 # conventions
11903 ld_shlibs_CXX=yes
11906 gnu*)
11909 hpux9*)
11910 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11911 hardcode_libdir_separator_CXX=:
11912 export_dynamic_flag_spec_CXX='${wl}-E'
11913 hardcode_direct_CXX=yes
11914 hardcode_minus_L_CXX=yes # Not in the search PATH,
11915 # but as the default
11916 # location of the library.
11918 case $cc_basename in
11919 CC*)
11920 # FIXME: insert proper C++ library support
11921 ld_shlibs_CXX=no
11923 aCC*)
11924 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'
11925 # Commands to make compiler produce verbose output that lists
11926 # what "hidden" libraries, object files and flags are used when
11927 # linking a shared library.
11929 # There doesn't appear to be a way to prevent this compiler from
11930 # explicitly linking system object files so we need to strip them
11931 # from the output so that they don't get included in the library
11932 # dependencies.
11933 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'
11936 if test "$GXX" = yes; then
11937 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'
11938 else
11939 # FIXME: insert proper C++ library support
11940 ld_shlibs_CXX=no
11943 esac
11946 hpux10*|hpux11*)
11947 if test $with_gnu_ld = no; then
11948 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11949 hardcode_libdir_separator_CXX=:
11951 case $host_cpu in
11952 hppa*64*|ia64*)
11955 export_dynamic_flag_spec_CXX='${wl}-E'
11957 esac
11959 case $host_cpu in
11960 hppa*64*|ia64*)
11961 hardcode_direct_CXX=no
11962 hardcode_shlibpath_var_CXX=no
11965 hardcode_direct_CXX=yes
11966 hardcode_direct_absolute_CXX=yes
11967 hardcode_minus_L_CXX=yes # Not in the search PATH,
11968 # but as the default
11969 # location of the library.
11971 esac
11973 case $cc_basename in
11974 CC*)
11975 # FIXME: insert proper C++ library support
11976 ld_shlibs_CXX=no
11978 aCC*)
11979 case $host_cpu in
11980 hppa*64*)
11981 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11983 ia64*)
11984 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11987 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11989 esac
11990 # Commands to make compiler produce verbose output that lists
11991 # what "hidden" libraries, object files and flags are used when
11992 # linking a shared library.
11994 # There doesn't appear to be a way to prevent this compiler from
11995 # explicitly linking system object files so we need to strip them
11996 # from the output so that they don't get included in the library
11997 # dependencies.
11998 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'
12001 if test "$GXX" = yes; then
12002 if test $with_gnu_ld = no; then
12003 case $host_cpu in
12004 hppa*64*)
12005 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12007 ia64*)
12008 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12011 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'
12013 esac
12015 else
12016 # FIXME: insert proper C++ library support
12017 ld_shlibs_CXX=no
12020 esac
12023 interix[3-9]*)
12024 hardcode_direct_CXX=no
12025 hardcode_shlibpath_var_CXX=no
12026 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12027 export_dynamic_flag_spec_CXX='${wl}-E'
12028 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12029 # Instead, shared libraries are loaded at an image base (0x10000000 by
12030 # default) and relocated if they conflict, which is a slow very memory
12031 # consuming and fragmenting process. To avoid this, we pick a random,
12032 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12033 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12034 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'
12035 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'
12037 irix5* | irix6*)
12038 case $cc_basename in
12039 CC*)
12040 # SGI C++
12041 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'
12043 # Archives containing C++ object files must be created using
12044 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12045 # necessary to make sure instantiated templates are included
12046 # in the archive.
12047 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12050 if test "$GXX" = yes; then
12051 if test "$with_gnu_ld" = no; then
12052 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'
12053 else
12054 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'
12057 link_all_deplibs_CXX=yes
12059 esac
12060 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12061 hardcode_libdir_separator_CXX=:
12062 inherit_rpath_CXX=yes
12065 linux* | k*bsd*-gnu)
12066 case $cc_basename in
12067 KCC*)
12068 # Kuck and Associates, Inc. (KAI) C++ Compiler
12070 # KCC will only create a shared library if the output file
12071 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12072 # to its proper name (with version) after linking.
12073 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'
12074 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'
12075 # Commands to make compiler produce verbose output that lists
12076 # what "hidden" libraries, object files and flags are used when
12077 # linking a shared library.
12079 # There doesn't appear to be a way to prevent this compiler from
12080 # explicitly linking system object files so we need to strip them
12081 # from the output so that they don't get included in the library
12082 # dependencies.
12083 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'
12085 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12086 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12088 # Archives containing C++ object files must be created using
12089 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12090 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12092 icpc* | ecpc* )
12093 # Intel C++
12094 with_gnu_ld=yes
12095 # version 8.0 and above of icpc choke on multiply defined symbols
12096 # if we add $predep_objects and $postdep_objects, however 7.1 and
12097 # earlier do not add the objects themselves.
12098 case `$CC -V 2>&1` in
12099 *"Version 7."*)
12100 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12101 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'
12103 *) # Version 8.0 or newer
12104 tmp_idyn=
12105 case $host_cpu in
12106 ia64*) tmp_idyn=' -i_dynamic';;
12107 esac
12108 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12109 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'
12111 esac
12112 archive_cmds_need_lc_CXX=no
12113 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12114 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12115 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12117 pgCC*)
12118 # Portland Group C++ compiler
12119 case `$CC -V` in
12120 *pgCC\ [1-5]*)
12121 prelink_cmds_CXX='tpldir=Template.dir~
12122 rm -rf $tpldir~
12123 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12124 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12125 old_archive_cmds_CXX='tpldir=Template.dir~
12126 rm -rf $tpldir~
12127 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12128 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12129 $RANLIB $oldlib'
12130 archive_cmds_CXX='tpldir=Template.dir~
12131 rm -rf $tpldir~
12132 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12133 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12134 archive_expsym_cmds_CXX='tpldir=Template.dir~
12135 rm -rf $tpldir~
12136 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12137 $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'
12139 *) # Version 6 will use weak symbols
12140 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12141 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'
12143 esac
12145 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12146 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12147 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'
12149 cxx*)
12150 # Compaq C++
12151 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12152 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'
12154 runpath_var=LD_RUN_PATH
12155 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12156 hardcode_libdir_separator_CXX=:
12158 # Commands to make compiler produce verbose output that lists
12159 # what "hidden" libraries, object files and flags are used when
12160 # linking a shared library.
12162 # There doesn't appear to be a way to prevent this compiler from
12163 # explicitly linking system object files so we need to strip them
12164 # from the output so that they don't get included in the library
12165 # dependencies.
12166 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'
12169 case `$CC -V 2>&1 | sed 5q` in
12170 *Sun\ C*)
12171 # Sun C++ 5.9
12172 no_undefined_flag_CXX=' -zdefs'
12173 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12174 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'
12175 hardcode_libdir_flag_spec_CXX='-R$libdir'
12176 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'
12177 compiler_needs_object_CXX=yes
12179 # Not sure whether something based on
12180 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12181 # would be better.
12182 output_verbose_link_cmd='echo'
12184 # Archives containing C++ object files must be created using
12185 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12186 # necessary to make sure instantiated templates are included
12187 # in the archive.
12188 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12190 esac
12192 esac
12195 lynxos*)
12196 # FIXME: insert proper C++ library support
12197 ld_shlibs_CXX=no
12200 m88k*)
12201 # FIXME: insert proper C++ library support
12202 ld_shlibs_CXX=no
12205 mvs*)
12206 case $cc_basename in
12207 cxx*)
12208 # FIXME: insert proper C++ library support
12209 ld_shlibs_CXX=no
12212 # FIXME: insert proper C++ library support
12213 ld_shlibs_CXX=no
12215 esac
12218 netbsd*)
12219 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12220 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12221 wlarc=
12222 hardcode_libdir_flag_spec_CXX='-R$libdir'
12223 hardcode_direct_CXX=yes
12224 hardcode_shlibpath_var_CXX=no
12226 # Workaround some broken pre-1.5 toolchains
12227 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12230 *nto* | *qnx*)
12231 ld_shlibs_CXX=yes
12234 openbsd2*)
12235 # C++ shared libraries are fairly broken
12236 ld_shlibs_CXX=no
12239 openbsd*)
12240 hardcode_direct_CXX=yes
12241 hardcode_shlibpath_var_CXX=no
12242 hardcode_direct_absolute_CXX=yes
12243 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12244 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12245 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12246 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12247 export_dynamic_flag_spec_CXX='${wl}-E'
12248 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12250 output_verbose_link_cmd=echo
12253 osf3* | osf4* | osf5*)
12254 case $cc_basename in
12255 KCC*)
12256 # Kuck and Associates, Inc. (KAI) C++ Compiler
12258 # KCC will only create a shared library if the output file
12259 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12260 # to its proper name (with version) after linking.
12261 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'
12263 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12264 hardcode_libdir_separator_CXX=:
12266 # Archives containing C++ object files must be created using
12267 # the KAI C++ compiler.
12268 case $host in
12269 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12270 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12271 esac
12273 RCC*)
12274 # Rational C++ 2.4.1
12275 # FIXME: insert proper C++ library support
12276 ld_shlibs_CXX=no
12278 cxx*)
12279 case $host in
12280 osf3*)
12281 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12282 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'
12283 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12286 allow_undefined_flag_CXX=' -expect_unresolved \*'
12287 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'
12288 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12289 echo "-hidden">> $lib.exp~
12290 $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~
12291 $RM $lib.exp'
12292 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12294 esac
12296 hardcode_libdir_separator_CXX=:
12298 # Commands to make compiler produce verbose output that lists
12299 # what "hidden" libraries, object files and flags are used when
12300 # linking a shared library.
12302 # There doesn't appear to be a way to prevent this compiler from
12303 # explicitly linking system object files so we need to strip them
12304 # from the output so that they don't get included in the library
12305 # dependencies.
12306 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'
12309 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12310 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12311 case $host in
12312 osf3*)
12313 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'
12316 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'
12318 esac
12320 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12321 hardcode_libdir_separator_CXX=:
12323 # Commands to make compiler produce verbose output that lists
12324 # what "hidden" libraries, object files and flags are used when
12325 # linking a shared library.
12326 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12328 else
12329 # FIXME: insert proper C++ library support
12330 ld_shlibs_CXX=no
12333 esac
12336 psos*)
12337 # FIXME: insert proper C++ library support
12338 ld_shlibs_CXX=no
12341 sunos4*)
12342 case $cc_basename in
12343 CC*)
12344 # Sun C++ 4.x
12345 # FIXME: insert proper C++ library support
12346 ld_shlibs_CXX=no
12348 lcc*)
12349 # Lucid
12350 # FIXME: insert proper C++ library support
12351 ld_shlibs_CXX=no
12354 # FIXME: insert proper C++ library support
12355 ld_shlibs_CXX=no
12357 esac
12360 solaris*)
12361 case $cc_basename in
12362 CC*)
12363 # Sun C++ 4.2, 5.x and Centerline C++
12364 archive_cmds_need_lc_CXX=yes
12365 no_undefined_flag_CXX=' -zdefs'
12366 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12367 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12368 $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'
12370 hardcode_libdir_flag_spec_CXX='-R$libdir'
12371 hardcode_shlibpath_var_CXX=no
12372 case $host_os in
12373 solaris2.[0-5] | solaris2.[0-5].*) ;;
12375 # The compiler driver will combine and reorder linker options,
12376 # but understands `-z linker_flag'.
12377 # Supported since Solaris 2.6 (maybe 2.5.1?)
12378 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12380 esac
12381 link_all_deplibs_CXX=yes
12383 output_verbose_link_cmd='echo'
12385 # Archives containing C++ object files must be created using
12386 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12387 # necessary to make sure instantiated templates are included
12388 # in the archive.
12389 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12391 gcx*)
12392 # Green Hills C++ Compiler
12393 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12395 # The C++ compiler must be used to create the archive.
12396 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12399 # GNU C++ compiler with Solaris linker
12400 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12401 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12402 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12403 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12404 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12405 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12407 # Commands to make compiler produce verbose output that lists
12408 # what "hidden" libraries, object files and flags are used when
12409 # linking a shared library.
12410 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12411 else
12412 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12413 # platform.
12414 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12415 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12416 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12418 # Commands to make compiler produce verbose output that lists
12419 # what "hidden" libraries, object files and flags are used when
12420 # linking a shared library.
12421 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12424 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12425 case $host_os in
12426 solaris2.[0-5] | solaris2.[0-5].*) ;;
12428 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12430 esac
12433 esac
12436 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12437 no_undefined_flag_CXX='${wl}-z,text'
12438 archive_cmds_need_lc_CXX=no
12439 hardcode_shlibpath_var_CXX=no
12440 runpath_var='LD_RUN_PATH'
12442 case $cc_basename in
12443 CC*)
12444 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12445 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12448 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12449 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12451 esac
12454 sysv5* | sco3.2v5* | sco5v6*)
12455 # Note: We can NOT use -z defs as we might desire, because we do not
12456 # link with -lc, and that would cause any symbols used from libc to
12457 # always be unresolved, which means just about no library would
12458 # ever link correctly. If we're not using GNU ld we use -z text
12459 # though, which does catch some bad symbols but isn't as heavy-handed
12460 # as -z defs.
12461 no_undefined_flag_CXX='${wl}-z,text'
12462 allow_undefined_flag_CXX='${wl}-z,nodefs'
12463 archive_cmds_need_lc_CXX=no
12464 hardcode_shlibpath_var_CXX=no
12465 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12466 hardcode_libdir_separator_CXX=':'
12467 link_all_deplibs_CXX=yes
12468 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12469 runpath_var='LD_RUN_PATH'
12471 case $cc_basename in
12472 CC*)
12473 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12474 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12477 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12478 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12480 esac
12483 tandem*)
12484 case $cc_basename in
12485 NCC*)
12486 # NonStop-UX NCC 3.20
12487 # FIXME: insert proper C++ library support
12488 ld_shlibs_CXX=no
12491 # FIXME: insert proper C++ library support
12492 ld_shlibs_CXX=no
12494 esac
12497 vxworks*)
12498 # FIXME: insert proper C++ library support
12499 ld_shlibs_CXX=no
12503 # FIXME: insert proper C++ library support
12504 ld_shlibs_CXX=no
12506 esac
12508 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12509 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12510 test "$ld_shlibs_CXX" = no && can_build_shared=no
12512 GCC_CXX="$GXX"
12513 LD_CXX="$LD"
12515 ## CAVEAT EMPTOR:
12516 ## There is no encapsulation within the following macros, do not change
12517 ## the running order or otherwise move them around unless you know exactly
12518 ## what you are doing...
12519 # Dependencies to place before and after the object being linked:
12520 predep_objects_CXX=
12521 postdep_objects_CXX=
12522 predeps_CXX=
12523 postdeps_CXX=
12524 compiler_lib_search_path_CXX=
12526 cat > conftest.$ac_ext <<_LT_EOF
12527 class Foo
12529 public:
12530 Foo (void) { a = 0; }
12531 private:
12532 int a;
12534 _LT_EOF
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; then
12541 # Parse the compiler output and extract the necessary
12542 # objects, libraries and library flags.
12544 # Sentinel used to keep track of whether or not we are before
12545 # the conftest object file.
12546 pre_test_object_deps_done=no
12548 # The `*' in the case matches for architectures that use `case' in
12549 # $output_verbose_cmd can trigger glob expansion during the loop
12550 # eval without this substitution.
12551 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12553 for p in `eval $output_verbose_link_cmd`; do
12554 case $p in
12556 -L* | -R* | -l*)
12557 # Some compilers place space between "-{L,R}" and the path.
12558 # Remove the space.
12559 if test $p = "-L" ||
12560 test $p = "-R"; then
12561 prev=$p
12562 continue
12563 else
12564 prev=
12567 if test "$pre_test_object_deps_done" = no; then
12568 case $p in
12569 -L* | -R*)
12570 # Internal compiler library paths should come after those
12571 # provided the user. The postdeps already come after the
12572 # user supplied libs so there is no need to process them.
12573 if test -z "$compiler_lib_search_path_CXX"; then
12574 compiler_lib_search_path_CXX="${prev}${p}"
12575 else
12576 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12579 # The "-l" case would never come before the object being
12580 # linked, so don't bother handling this case.
12581 esac
12582 else
12583 if test -z "$postdeps_CXX"; then
12584 postdeps_CXX="${prev}${p}"
12585 else
12586 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12591 *.$objext)
12592 # This assumes that the test object file only shows up
12593 # once in the compiler output.
12594 if test "$p" = "conftest.$objext"; then
12595 pre_test_object_deps_done=yes
12596 continue
12599 if test "$pre_test_object_deps_done" = no; then
12600 if test -z "$predep_objects_CXX"; then
12601 predep_objects_CXX="$p"
12602 else
12603 predep_objects_CXX="$predep_objects_CXX $p"
12605 else
12606 if test -z "$postdep_objects_CXX"; then
12607 postdep_objects_CXX="$p"
12608 else
12609 postdep_objects_CXX="$postdep_objects_CXX $p"
12614 *) ;; # Ignore the rest.
12616 esac
12617 done
12619 # Clean up.
12620 rm -f a.out a.exe
12621 else
12622 echo "libtool.m4: error: problem compiling CXX test program"
12625 $RM -f confest.$objext
12627 # PORTME: override above test on systems where it is broken
12628 case $host_os in
12629 interix[3-9]*)
12630 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12631 # hack all around it, let's just trust "g++" to DTRT.
12632 predep_objects_CXX=
12633 postdep_objects_CXX=
12634 postdeps_CXX=
12637 linux*)
12638 case `$CC -V 2>&1 | sed 5q` in
12639 *Sun\ C*)
12640 # Sun C++ 5.9
12642 # The more standards-conforming stlport4 library is
12643 # incompatible with the Cstd library. Avoid specifying
12644 # it if it's in CXXFLAGS. Ignore libCrun as
12645 # -library=stlport4 depends on it.
12646 case " $CXX $CXXFLAGS " in
12647 *" -library=stlport4 "*)
12648 solaris_use_stlport4=yes
12650 esac
12652 if test "$solaris_use_stlport4" != yes; then
12653 postdeps_CXX='-library=Cstd -library=Crun'
12656 esac
12659 solaris*)
12660 case $cc_basename in
12661 CC*)
12662 # The more standards-conforming stlport4 library is
12663 # incompatible with the Cstd library. Avoid specifying
12664 # it if it's in CXXFLAGS. Ignore libCrun as
12665 # -library=stlport4 depends on it.
12666 case " $CXX $CXXFLAGS " in
12667 *" -library=stlport4 "*)
12668 solaris_use_stlport4=yes
12670 esac
12672 # Adding this requires a known-good setup of shared libraries for
12673 # Sun compiler versions before 5.6, else PIC objects from an old
12674 # archive will be linked into the output, leading to subtle bugs.
12675 if test "$solaris_use_stlport4" != yes; then
12676 postdeps_CXX='-library=Cstd -library=Crun'
12679 esac
12681 esac
12684 case " $postdeps_CXX " in
12685 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12686 esac
12713 lt_prog_compiler_wl_CXX=
12714 lt_prog_compiler_pic_CXX=
12715 lt_prog_compiler_static_CXX=
12717 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12718 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12720 # C++ specific cases for pic, static, wl, etc.
12721 if test "$GXX" = yes; then
12722 lt_prog_compiler_wl_CXX='-Wl,'
12723 lt_prog_compiler_static_CXX='-static'
12725 case $host_os in
12726 aix*)
12727 # All AIX code is PIC.
12728 if test "$host_cpu" = ia64; then
12729 # AIX 5 now supports IA64 processor
12730 lt_prog_compiler_static_CXX='-Bstatic'
12733 amigaos*)
12734 if test "$host_cpu" = m68k; then
12735 # FIXME: we need at least 68020 code to build shared libraries, but
12736 # adding the `-m68020' flag to GCC prevents building anything better,
12737 # like `-m68040'.
12738 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12741 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12742 # PIC is the default for these OSes.
12744 mingw* | cygwin* | os2* | pw32*)
12745 # This hack is so that the source file can tell whether it is being
12746 # built for inclusion in a dll (and should export symbols for example).
12747 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12748 # (--disable-auto-import) libraries
12749 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12751 darwin* | rhapsody*)
12752 # PIC is the default on this platform
12753 # Common symbols not allowed in MH_DYLIB files
12754 lt_prog_compiler_pic_CXX='-fno-common'
12756 *djgpp*)
12757 # DJGPP does not support shared libraries at all
12758 lt_prog_compiler_pic_CXX=
12760 interix[3-9]*)
12761 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12762 # Instead, we relocate shared libraries at runtime.
12764 sysv4*MP*)
12765 if test -d /usr/nec; then
12766 lt_prog_compiler_pic_CXX=-Kconform_pic
12769 hpux*)
12770 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12771 # not for PA HP-UX.
12772 case $host_cpu in
12773 hppa*64*|ia64*)
12776 lt_prog_compiler_pic_CXX='-fPIC'
12778 esac
12780 *qnx* | *nto*)
12781 # QNX uses GNU C++, but need to define -shared option too, otherwise
12782 # it will coredump.
12783 lt_prog_compiler_pic_CXX='-fPIC -shared'
12786 lt_prog_compiler_pic_CXX='-fPIC'
12788 esac
12789 else
12790 case $host_os in
12791 aix[4-9]*)
12792 # All AIX code is PIC.
12793 if test "$host_cpu" = ia64; then
12794 # AIX 5 now supports IA64 processor
12795 lt_prog_compiler_static_CXX='-Bstatic'
12796 else
12797 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12800 chorus*)
12801 case $cc_basename in
12802 cxch68*)
12803 # Green Hills C++ Compiler
12804 # _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"
12806 esac
12808 darwin*)
12809 # PIC is the default on this platform
12810 # Common symbols not allowed in MH_DYLIB files
12811 case $cc_basename in
12812 xlc*)
12813 lt_prog_compiler_pic_CXX='-qnocommon'
12814 lt_prog_compiler_wl_CXX='-Wl,'
12816 esac
12818 dgux*)
12819 case $cc_basename in
12820 ec++*)
12821 lt_prog_compiler_pic_CXX='-KPIC'
12823 ghcx*)
12824 # Green Hills C++ Compiler
12825 lt_prog_compiler_pic_CXX='-pic'
12829 esac
12831 freebsd* | dragonfly*)
12832 # FreeBSD uses GNU C++
12834 hpux9* | hpux10* | hpux11*)
12835 case $cc_basename in
12836 CC*)
12837 lt_prog_compiler_wl_CXX='-Wl,'
12838 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12839 if test "$host_cpu" != ia64; then
12840 lt_prog_compiler_pic_CXX='+Z'
12843 aCC*)
12844 lt_prog_compiler_wl_CXX='-Wl,'
12845 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12846 case $host_cpu in
12847 hppa*64*|ia64*)
12848 # +Z the default
12851 lt_prog_compiler_pic_CXX='+Z'
12853 esac
12857 esac
12859 interix*)
12860 # This is c89, which is MS Visual C++ (no shared libs)
12861 # Anyone wants to do a port?
12863 irix5* | irix6* | nonstopux*)
12864 case $cc_basename in
12865 CC*)
12866 lt_prog_compiler_wl_CXX='-Wl,'
12867 lt_prog_compiler_static_CXX='-non_shared'
12868 # CC pic flag -KPIC is the default.
12872 esac
12874 linux* | k*bsd*-gnu)
12875 case $cc_basename in
12876 KCC*)
12877 # KAI C++ Compiler
12878 lt_prog_compiler_wl_CXX='--backend -Wl,'
12879 lt_prog_compiler_pic_CXX='-fPIC'
12881 icpc* | ecpc* )
12882 # Intel C++
12883 lt_prog_compiler_wl_CXX='-Wl,'
12884 lt_prog_compiler_pic_CXX='-KPIC'
12885 lt_prog_compiler_static_CXX='-static'
12887 pgCC*)
12888 # Portland Group C++ compiler
12889 lt_prog_compiler_wl_CXX='-Wl,'
12890 lt_prog_compiler_pic_CXX='-fpic'
12891 lt_prog_compiler_static_CXX='-Bstatic'
12893 cxx*)
12894 # Compaq C++
12895 # Make sure the PIC flag is empty. It appears that all Alpha
12896 # Linux and Compaq Tru64 Unix objects are PIC.
12897 lt_prog_compiler_pic_CXX=
12898 lt_prog_compiler_static_CXX='-non_shared'
12901 case `$CC -V 2>&1 | sed 5q` in
12902 *Sun\ C*)
12903 # Sun C++ 5.9
12904 lt_prog_compiler_pic_CXX='-KPIC'
12905 lt_prog_compiler_static_CXX='-Bstatic'
12906 lt_prog_compiler_wl_CXX='-Qoption ld '
12908 esac
12910 esac
12912 lynxos*)
12914 m88k*)
12916 mvs*)
12917 case $cc_basename in
12918 cxx*)
12919 lt_prog_compiler_pic_CXX='-W c,exportall'
12923 esac
12925 netbsd*)
12927 *qnx* | *nto*)
12928 # QNX uses GNU C++, but need to define -shared option too, otherwise
12929 # it will coredump.
12930 lt_prog_compiler_pic_CXX='-fPIC -shared'
12932 osf3* | osf4* | osf5*)
12933 case $cc_basename in
12934 KCC*)
12935 lt_prog_compiler_wl_CXX='--backend -Wl,'
12937 RCC*)
12938 # Rational C++ 2.4.1
12939 lt_prog_compiler_pic_CXX='-pic'
12941 cxx*)
12942 # Digital/Compaq C++
12943 lt_prog_compiler_wl_CXX='-Wl,'
12944 # Make sure the PIC flag is empty. It appears that all Alpha
12945 # Linux and Compaq Tru64 Unix objects are PIC.
12946 lt_prog_compiler_pic_CXX=
12947 lt_prog_compiler_static_CXX='-non_shared'
12951 esac
12953 psos*)
12955 solaris*)
12956 case $cc_basename in
12957 CC*)
12958 # Sun C++ 4.2, 5.x and Centerline C++
12959 lt_prog_compiler_pic_CXX='-KPIC'
12960 lt_prog_compiler_static_CXX='-Bstatic'
12961 lt_prog_compiler_wl_CXX='-Qoption ld '
12963 gcx*)
12964 # Green Hills C++ Compiler
12965 lt_prog_compiler_pic_CXX='-PIC'
12969 esac
12971 sunos4*)
12972 case $cc_basename in
12973 CC*)
12974 # Sun C++ 4.x
12975 lt_prog_compiler_pic_CXX='-pic'
12976 lt_prog_compiler_static_CXX='-Bstatic'
12978 lcc*)
12979 # Lucid
12980 lt_prog_compiler_pic_CXX='-pic'
12984 esac
12986 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12987 case $cc_basename in
12988 CC*)
12989 lt_prog_compiler_wl_CXX='-Wl,'
12990 lt_prog_compiler_pic_CXX='-KPIC'
12991 lt_prog_compiler_static_CXX='-Bstatic'
12993 esac
12995 tandem*)
12996 case $cc_basename in
12997 NCC*)
12998 # NonStop-UX NCC 3.20
12999 lt_prog_compiler_pic_CXX='-KPIC'
13003 esac
13005 vxworks*)
13008 lt_prog_compiler_can_build_shared_CXX=no
13010 esac
13013 case $host_os in
13014 # For platforms which do not support PIC, -DPIC is meaningless:
13015 *djgpp*)
13016 lt_prog_compiler_pic_CXX=
13019 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13021 esac
13022 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13023 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13028 # Check to make sure the PIC flag actually works.
13030 if test -n "$lt_prog_compiler_pic_CXX"; then
13031 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13032 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13033 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 else
13036 lt_prog_compiler_pic_works_CXX=no
13037 ac_outfile=conftest.$ac_objext
13038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13039 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13040 # Insert the option either (1) after the last *FLAGS variable, or
13041 # (2) before a word containing "conftest.", or (3) at the end.
13042 # Note that $ac_compile itself does not contain backslashes and begins
13043 # with a dollar sign (not a hyphen), so the echo should work correctly.
13044 # The option is referenced via a variable to avoid confusing sed.
13045 lt_compile=`echo "$ac_compile" | $SED \
13046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13048 -e 's:$: $lt_compiler_flag:'`
13049 (eval echo "\"\$as_me:13049: $lt_compile\"" >&5)
13050 (eval "$lt_compile" 2>conftest.err)
13051 ac_status=$?
13052 cat conftest.err >&5
13053 echo "$as_me:13053: \$? = $ac_status" >&5
13054 if (exit $ac_status) && test -s "$ac_outfile"; then
13055 # The compiler can only warn and ignore the option if not recognized
13056 # So say no if there are warnings other than the usual output.
13057 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13058 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13059 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13060 lt_prog_compiler_pic_works_CXX=yes
13063 $RM conftest*
13066 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13067 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13069 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13070 case $lt_prog_compiler_pic_CXX in
13071 "" | " "*) ;;
13072 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13073 esac
13074 else
13075 lt_prog_compiler_pic_CXX=
13076 lt_prog_compiler_can_build_shared_CXX=no
13084 # Check to make sure the static flag actually works.
13086 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13087 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13088 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13089 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 else
13092 lt_prog_compiler_static_works_CXX=no
13093 save_LDFLAGS="$LDFLAGS"
13094 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13095 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13096 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13097 # The linker can only warn and ignore the option if not recognized
13098 # So say no if there are warnings
13099 if test -s conftest.err; then
13100 # Append any errors to the config.log.
13101 cat conftest.err 1>&5
13102 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13103 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13104 if diff conftest.exp conftest.er2 >/dev/null; then
13105 lt_prog_compiler_static_works_CXX=yes
13107 else
13108 lt_prog_compiler_static_works_CXX=yes
13111 $RM conftest*
13112 LDFLAGS="$save_LDFLAGS"
13115 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13116 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13118 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13120 else
13121 lt_prog_compiler_static_CXX=
13127 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13128 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13129 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 else
13132 lt_cv_prog_compiler_c_o_CXX=no
13133 $RM -r conftest 2>/dev/null
13134 mkdir conftest
13135 cd conftest
13136 mkdir out
13137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13139 lt_compiler_flag="-o out/conftest2.$ac_objext"
13140 # Insert the option either (1) after the last *FLAGS variable, or
13141 # (2) before a word containing "conftest.", or (3) at the end.
13142 # Note that $ac_compile itself does not contain backslashes and begins
13143 # with a dollar sign (not a hyphen), so the echo should work correctly.
13144 lt_compile=`echo "$ac_compile" | $SED \
13145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13147 -e 's:$: $lt_compiler_flag:'`
13148 (eval echo "\"\$as_me:13148: $lt_compile\"" >&5)
13149 (eval "$lt_compile" 2>out/conftest.err)
13150 ac_status=$?
13151 cat out/conftest.err >&5
13152 echo "$as_me:13152: \$? = $ac_status" >&5
13153 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13154 then
13155 # The compiler can only warn and ignore the option if not recognized
13156 # So say no if there are warnings
13157 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13158 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13159 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13160 lt_cv_prog_compiler_c_o_CXX=yes
13163 chmod u+w . 2>&5
13164 $RM conftest*
13165 # SGI C++ compiler will create directory out/ii_files/ for
13166 # template instantiation
13167 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13168 $RM out/* && rmdir out
13169 cd ..
13170 $RM -r conftest
13171 $RM conftest*
13174 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13175 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13179 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13180 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13181 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 else
13184 lt_cv_prog_compiler_c_o_CXX=no
13185 $RM -r conftest 2>/dev/null
13186 mkdir conftest
13187 cd conftest
13188 mkdir out
13189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13191 lt_compiler_flag="-o out/conftest2.$ac_objext"
13192 # Insert the option either (1) after the last *FLAGS variable, or
13193 # (2) before a word containing "conftest.", or (3) at the end.
13194 # Note that $ac_compile itself does not contain backslashes and begins
13195 # with a dollar sign (not a hyphen), so the echo should work correctly.
13196 lt_compile=`echo "$ac_compile" | $SED \
13197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13199 -e 's:$: $lt_compiler_flag:'`
13200 (eval echo "\"\$as_me:13200: $lt_compile\"" >&5)
13201 (eval "$lt_compile" 2>out/conftest.err)
13202 ac_status=$?
13203 cat out/conftest.err >&5
13204 echo "$as_me:13204: \$? = $ac_status" >&5
13205 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13206 then
13207 # The compiler can only warn and ignore the option if not recognized
13208 # So say no if there are warnings
13209 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13210 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13211 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13212 lt_cv_prog_compiler_c_o_CXX=yes
13215 chmod u+w . 2>&5
13216 $RM conftest*
13217 # SGI C++ compiler will create directory out/ii_files/ for
13218 # template instantiation
13219 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13220 $RM out/* && rmdir out
13221 cd ..
13222 $RM -r conftest
13223 $RM conftest*
13226 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13227 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13232 hard_links="nottested"
13233 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13234 # do not overwrite the value of need_locks provided by the user
13235 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13236 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13237 hard_links=yes
13238 $RM conftest*
13239 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13240 touch conftest.a
13241 ln conftest.a conftest.b 2>&5 || hard_links=no
13242 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13243 echo "$as_me:$LINENO: result: $hard_links" >&5
13244 echo "${ECHO_T}$hard_links" >&6
13245 if test "$hard_links" = no; then
13246 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13247 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13248 need_locks=warn
13250 else
13251 need_locks=no
13256 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13257 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13259 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13260 case $host_os in
13261 aix[4-9]*)
13262 # If we're using GNU nm, then we don't want the "-C" option.
13263 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13264 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13265 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'
13266 else
13267 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'
13270 pw32*)
13271 export_symbols_cmds_CXX="$ltdll_cmds"
13273 cygwin* | mingw*)
13274 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'
13277 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13279 esac
13281 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13282 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13283 test "$ld_shlibs_CXX" = no && can_build_shared=no
13285 with_gnu_ld_CXX=$with_gnu_ld
13293 # Do we need to explicitly link libc?
13295 case "x$archive_cmds_need_lc_CXX" in
13296 x|xyes)
13297 # Assume -lc should be added
13298 archive_cmds_need_lc_CXX=yes
13300 if test "$enable_shared" = yes && test "$GCC" = yes; then
13301 case $archive_cmds_CXX in
13302 *'~'*)
13303 # FIXME: we may have to deal with multi-command sequences.
13305 '$CC '*)
13306 # Test whether the compiler implicitly links with -lc since on some
13307 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13308 # to ld, don't add -lc before -lgcc.
13309 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13310 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13311 $RM conftest*
13312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13315 (eval $ac_compile) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } 2>conftest.err; then
13319 soname=conftest
13320 lib=conftest
13321 libobjs=conftest.$ac_objext
13322 deplibs=
13323 wl=$lt_prog_compiler_wl_CXX
13324 pic_flag=$lt_prog_compiler_pic_CXX
13325 compiler_flags=-v
13326 linker_flags=-v
13327 verstring=
13328 output_objdir=.
13329 libname=conftest
13330 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13331 allow_undefined_flag_CXX=
13332 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
13333 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13334 ac_status=$?
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }
13337 then
13338 archive_cmds_need_lc_CXX=no
13339 else
13340 archive_cmds_need_lc_CXX=yes
13342 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13343 else
13344 cat conftest.err 1>&5
13346 $RM conftest*
13347 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13348 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13350 esac
13353 esac
13418 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13419 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13420 withGCC=$GXX
13421 library_names_spec=
13422 libname_spec='lib$name'
13423 soname_spec=
13424 shrext_cmds=".so"
13425 postinstall_cmds=
13426 postuninstall_cmds=
13427 finish_cmds=
13428 finish_eval=
13429 shlibpath_var=
13430 shlibpath_overrides_runpath=unknown
13431 version_type=none
13432 dynamic_linker="$host_os ld.so"
13433 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13434 need_lib_prefix=unknown
13435 hardcode_into_libs=no
13437 # when you set need_version to no, make sure it does not cause -set_version
13438 # flags to be left without arguments
13439 need_version=unknown
13441 case $host_os in
13442 aix3*)
13443 version_type=linux
13444 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13445 shlibpath_var=LIBPATH
13447 # AIX 3 has no versioning support, so we append a major version to the name.
13448 soname_spec='${libname}${release}${shared_ext}$major'
13451 aix[4-9]*)
13452 version_type=linux
13453 need_lib_prefix=no
13454 need_version=no
13455 hardcode_into_libs=yes
13456 if test "$host_cpu" = ia64; then
13457 # AIX 5 supports IA64
13458 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13459 shlibpath_var=LD_LIBRARY_PATH
13460 else
13461 # With GCC up to 2.95.x, collect2 would create an import file
13462 # for dependence libraries. The import file would start with
13463 # the line `#! .'. This would cause the generated library to
13464 # depend on `.', always an invalid library. This was fixed in
13465 # development snapshots of GCC prior to 3.0.
13466 case $host_os in
13467 aix4 | aix4.[01] | aix4.[01].*)
13468 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13469 echo ' yes '
13470 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13472 else
13473 can_build_shared=no
13476 esac
13477 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13478 # soname into executable. Probably we can add versioning support to
13479 # collect2, so additional links can be useful in future.
13480 if test "$aix_use_runtimelinking" = yes; then
13481 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13482 # instead of lib<name>.a to let people know that these are not
13483 # typical AIX shared libraries.
13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13485 else
13486 # We preserve .a as extension for shared libraries through AIX4.2
13487 # and later when we are not doing run time linking.
13488 library_names_spec='${libname}${release}.a $libname.a'
13489 soname_spec='${libname}${release}${shared_ext}$major'
13491 shlibpath_var=LIBPATH
13495 amigaos*)
13496 if test "$host_cpu" = m68k; then
13497 library_names_spec='$libname.ixlibrary $libname.a'
13498 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13499 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'
13500 else
13501 dynamic_linker=no
13505 beos*)
13506 library_names_spec='${libname}${shared_ext}'
13507 dynamic_linker="$host_os ld.so"
13508 shlibpath_var=LIBRARY_PATH
13511 bsdi[45]*)
13512 version_type=linux
13513 need_version=no
13514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13515 soname_spec='${libname}${release}${shared_ext}$major'
13516 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13517 shlibpath_var=LD_LIBRARY_PATH
13518 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13519 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13520 # the default ld.so.conf also contains /usr/contrib/lib and
13521 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13522 # libtool to hard-code these into programs
13525 cygwin* | mingw* | pw32*)
13526 version_type=windows
13527 shrext_cmds=".dll"
13528 need_version=no
13529 need_lib_prefix=no
13531 case $withGCC,$host_os in
13532 yes,cygwin* | yes,mingw* | yes,pw32*)
13533 library_names_spec='$libname.dll.a'
13534 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13535 postinstall_cmds='base_file=`basename \${file}`~
13536 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13537 dldir=$destdir/`dirname \$dlpath`~
13538 test -d \$dldir || mkdir -p \$dldir~
13539 $install_prog $dir/$dlname \$dldir/$dlname~
13540 chmod a+x \$dldir/$dlname~
13541 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13542 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13544 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13545 dlpath=$dir/\$dldll~
13546 $RM \$dlpath'
13547 shlibpath_overrides_runpath=yes
13549 case $host_os in
13550 cygwin*)
13551 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13552 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13553 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13555 mingw*)
13556 # MinGW DLLs use traditional 'lib' prefix
13557 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13558 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13559 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13560 # It is most probably a Windows format PATH printed by
13561 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13562 # path with ; separators, and with drive letters. We can handle the
13563 # drive letters (cygwin fileutils understands them), so leave them,
13564 # especially as we might pass files found there to a mingw objdump,
13565 # which wouldn't understand a cygwinified path. Ahh.
13566 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13567 else
13568 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13571 pw32*)
13572 # pw32 DLLs use 'pw' prefix rather than 'lib'
13573 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13575 esac
13579 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13581 esac
13582 dynamic_linker='Win32 ld.exe'
13583 # FIXME: first we should search . and the directory the executable is in
13584 shlibpath_var=PATH
13587 darwin* | rhapsody*)
13588 dynamic_linker="$host_os dyld"
13589 version_type=darwin
13590 need_lib_prefix=no
13591 need_version=no
13592 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13593 soname_spec='${libname}${release}${major}$shared_ext'
13594 shlibpath_overrides_runpath=yes
13595 shlibpath_var=DYLD_LIBRARY_PATH
13596 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13598 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13601 dgux*)
13602 version_type=linux
13603 need_lib_prefix=no
13604 need_version=no
13605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13606 soname_spec='${libname}${release}${shared_ext}$major'
13607 shlibpath_var=LD_LIBRARY_PATH
13610 freebsd1*)
13611 dynamic_linker=no
13614 freebsd* | dragonfly*)
13615 # DragonFly does not have aout. When/if they implement a new
13616 # versioning mechanism, adjust this.
13617 if test -x /usr/bin/objformat; then
13618 objformat=`/usr/bin/objformat`
13619 else
13620 case $host_os in
13621 freebsd[123]*) objformat=aout ;;
13622 *) objformat=elf ;;
13623 esac
13625 version_type=freebsd-$objformat
13626 case $version_type in
13627 freebsd-elf*)
13628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13629 need_version=no
13630 need_lib_prefix=no
13632 freebsd-*)
13633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13634 need_version=yes
13636 esac
13637 shlibpath_var=LD_LIBRARY_PATH
13638 case $host_os in
13639 freebsd2*)
13640 shlibpath_overrides_runpath=yes
13642 freebsd3.[01]* | freebsdelf3.[01]*)
13643 shlibpath_overrides_runpath=yes
13644 hardcode_into_libs=yes
13646 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13647 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13648 shlibpath_overrides_runpath=no
13649 hardcode_into_libs=yes
13651 *) # from 4.6 on, and DragonFly
13652 shlibpath_overrides_runpath=yes
13653 hardcode_into_libs=yes
13655 esac
13658 gnu*)
13659 version_type=linux
13660 need_lib_prefix=no
13661 need_version=no
13662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13663 soname_spec='${libname}${release}${shared_ext}$major'
13664 shlibpath_var=LD_LIBRARY_PATH
13665 hardcode_into_libs=yes
13668 hpux9* | hpux10* | hpux11*)
13669 # Give a soname corresponding to the major version so that dld.sl refuses to
13670 # link against other versions.
13671 version_type=sunos
13672 need_lib_prefix=no
13673 need_version=no
13674 case $host_cpu in
13675 ia64*)
13676 shrext_cmds='.so'
13677 hardcode_into_libs=yes
13678 dynamic_linker="$host_os dld.so"
13679 shlibpath_var=LD_LIBRARY_PATH
13680 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13682 soname_spec='${libname}${release}${shared_ext}$major'
13683 if test "X$HPUX_IA64_MODE" = X32; then
13684 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13685 else
13686 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13688 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13690 hppa*64*)
13691 shrext_cmds='.sl'
13692 hardcode_into_libs=yes
13693 dynamic_linker="$host_os dld.sl"
13694 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13697 soname_spec='${libname}${release}${shared_ext}$major'
13698 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13699 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13702 shrext_cmds='.sl'
13703 dynamic_linker="$host_os dld.sl"
13704 shlibpath_var=SHLIB_PATH
13705 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13707 soname_spec='${libname}${release}${shared_ext}$major'
13709 esac
13710 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13711 postinstall_cmds='chmod 555 $lib'
13714 interix[3-9]*)
13715 version_type=linux
13716 need_lib_prefix=no
13717 need_version=no
13718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13719 soname_spec='${libname}${release}${shared_ext}$major'
13720 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13721 shlibpath_var=LD_LIBRARY_PATH
13722 shlibpath_overrides_runpath=no
13723 hardcode_into_libs=yes
13726 irix5* | irix6* | nonstopux*)
13727 case $host_os in
13728 nonstopux*) version_type=nonstopux ;;
13730 if test "$lt_cv_prog_gnu_ld" = yes; then
13731 version_type=linux
13732 else
13733 version_type=irix
13734 fi ;;
13735 esac
13736 need_lib_prefix=no
13737 need_version=no
13738 soname_spec='${libname}${release}${shared_ext}$major'
13739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13740 case $host_os in
13741 irix5* | nonstopux*)
13742 libsuff= shlibsuff=
13745 case $LD in # libtool.m4 will add one of these switches to LD
13746 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13747 libsuff= shlibsuff= libmagic=32-bit;;
13748 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13749 libsuff=32 shlibsuff=N32 libmagic=N32;;
13750 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13751 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13752 *) libsuff= shlibsuff= libmagic=never-match;;
13753 esac
13755 esac
13756 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13757 shlibpath_overrides_runpath=no
13758 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13759 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13760 hardcode_into_libs=yes
13763 # No shared lib support for Linux oldld, aout, or coff.
13764 linux*oldld* | linux*aout* | linux*coff*)
13765 dynamic_linker=no
13768 # This must be Linux ELF.
13769 linux* | k*bsd*-gnu)
13770 version_type=linux
13771 need_lib_prefix=no
13772 need_version=no
13773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13774 soname_spec='${libname}${release}${shared_ext}$major'
13775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13776 shlibpath_var=LD_LIBRARY_PATH
13777 shlibpath_overrides_runpath=no
13778 # Some binutils ld are patched to set DT_RUNPATH
13779 save_LDFLAGS=$LDFLAGS
13780 save_libdir=$libdir
13781 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13782 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13783 if test x$gcc_no_link = xyes; then
13784 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13785 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13786 { (exit 1); exit 1; }; }
13788 cat >conftest.$ac_ext <<_ACEOF
13789 /* confdefs.h. */
13790 _ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13796 main ()
13800 return 0;
13802 _ACEOF
13803 rm -f conftest.$ac_objext conftest$ac_exeext
13804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13805 (eval $ac_link) 2>conftest.er1
13806 ac_status=$?
13807 grep -v '^ *+' conftest.er1 >conftest.err
13808 rm -f conftest.er1
13809 cat conftest.err >&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } &&
13812 { ac_try='test -z "$ac_cxx_werror_flag"
13813 || test ! -s conftest.err'
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; } &&
13819 { ac_try='test -s conftest$ac_exeext'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; }; then
13825 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
13826 shlibpath_overrides_runpath=yes
13829 else
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13834 rm -f conftest.err conftest.$ac_objext \
13835 conftest$ac_exeext conftest.$ac_ext
13836 LDFLAGS=$save_LDFLAGS
13837 libdir=$save_libdir
13839 # This implies no fast_install, which is unacceptable.
13840 # Some rework will be needed to allow for fast_install
13841 # before this can be enabled.
13842 hardcode_into_libs=yes
13844 # Append ld.so.conf contents to the search path
13845 if test -f /etc/ld.so.conf; then
13846 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13847 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13850 # We used to test for /lib/ld.so.1 and disable shared libraries on
13851 # powerpc, because MkLinux only supported shared libraries with the
13852 # GNU dynamic linker. Since this was broken with cross compilers,
13853 # most powerpc-linux boxes support dynamic linking these days and
13854 # people can always --disable-shared, the test was removed, and we
13855 # assume the GNU/Linux dynamic linker is in use.
13856 dynamic_linker='GNU/Linux ld.so'
13859 netbsd*)
13860 version_type=sunos
13861 need_lib_prefix=no
13862 need_version=no
13863 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13866 dynamic_linker='NetBSD (a.out) ld.so'
13867 else
13868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13869 soname_spec='${libname}${release}${shared_ext}$major'
13870 dynamic_linker='NetBSD ld.elf_so'
13872 shlibpath_var=LD_LIBRARY_PATH
13873 shlibpath_overrides_runpath=yes
13874 hardcode_into_libs=yes
13877 newsos6)
13878 version_type=linux
13879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13880 shlibpath_var=LD_LIBRARY_PATH
13881 shlibpath_overrides_runpath=yes
13884 *nto* | *qnx*)
13885 version_type=qnx
13886 need_lib_prefix=no
13887 need_version=no
13888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13889 soname_spec='${libname}${release}${shared_ext}$major'
13890 shlibpath_var=LD_LIBRARY_PATH
13891 shlibpath_overrides_runpath=no
13892 hardcode_into_libs=yes
13893 dynamic_linker='ldqnx.so'
13896 openbsd*)
13897 version_type=sunos
13898 sys_lib_dlsearch_path_spec="/usr/lib"
13899 need_lib_prefix=no
13900 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13901 case $host_os in
13902 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13903 *) need_version=no ;;
13904 esac
13905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13907 shlibpath_var=LD_LIBRARY_PATH
13908 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13909 case $host_os in
13910 openbsd2.[89] | openbsd2.[89].*)
13911 shlibpath_overrides_runpath=no
13914 shlibpath_overrides_runpath=yes
13916 esac
13917 else
13918 shlibpath_overrides_runpath=yes
13922 os2*)
13923 libname_spec='$name'
13924 shrext_cmds=".dll"
13925 need_lib_prefix=no
13926 library_names_spec='$libname${shared_ext} $libname.a'
13927 dynamic_linker='OS/2 ld.exe'
13928 shlibpath_var=LIBPATH
13931 osf3* | osf4* | osf5*)
13932 version_type=osf
13933 need_lib_prefix=no
13934 need_version=no
13935 soname_spec='${libname}${release}${shared_ext}$major'
13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13937 shlibpath_var=LD_LIBRARY_PATH
13938 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13939 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13942 rdos*)
13943 dynamic_linker=no
13946 solaris*)
13947 version_type=linux
13948 need_lib_prefix=no
13949 need_version=no
13950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13951 soname_spec='${libname}${release}${shared_ext}$major'
13952 shlibpath_var=LD_LIBRARY_PATH
13953 shlibpath_overrides_runpath=yes
13954 hardcode_into_libs=yes
13955 # ldd complains unless libraries are executable
13956 postinstall_cmds='chmod +x $lib'
13959 sunos4*)
13960 version_type=sunos
13961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13962 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13963 shlibpath_var=LD_LIBRARY_PATH
13964 shlibpath_overrides_runpath=yes
13965 if test "$with_gnu_ld" = yes; then
13966 need_lib_prefix=no
13968 need_version=yes
13971 sysv4 | sysv4.3*)
13972 version_type=linux
13973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13974 soname_spec='${libname}${release}${shared_ext}$major'
13975 shlibpath_var=LD_LIBRARY_PATH
13976 case $host_vendor in
13977 sni)
13978 shlibpath_overrides_runpath=no
13979 need_lib_prefix=no
13980 runpath_var=LD_RUN_PATH
13982 siemens)
13983 need_lib_prefix=no
13985 motorola)
13986 need_lib_prefix=no
13987 need_version=no
13988 shlibpath_overrides_runpath=no
13989 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13991 esac
13994 sysv4*MP*)
13995 if test -d /usr/nec ;then
13996 version_type=linux
13997 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13998 soname_spec='$libname${shared_ext}.$major'
13999 shlibpath_var=LD_LIBRARY_PATH
14003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14004 version_type=freebsd-elf
14005 need_lib_prefix=no
14006 need_version=no
14007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14008 soname_spec='${libname}${release}${shared_ext}$major'
14009 shlibpath_var=LD_LIBRARY_PATH
14010 shlibpath_overrides_runpath=yes
14011 hardcode_into_libs=yes
14012 if test "$with_gnu_ld" = yes; then
14013 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14014 else
14015 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14016 case $host_os in
14017 sco3.2v5*)
14018 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14020 esac
14022 sys_lib_dlsearch_path_spec='/usr/lib'
14025 tpf*)
14026 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14027 version_type=linux
14028 need_lib_prefix=no
14029 need_version=no
14030 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14031 shlibpath_var=LD_LIBRARY_PATH
14032 shlibpath_overrides_runpath=no
14033 hardcode_into_libs=yes
14036 uts4*)
14037 version_type=linux
14038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14039 soname_spec='${libname}${release}${shared_ext}$major'
14040 shlibpath_var=LD_LIBRARY_PATH
14044 dynamic_linker=no
14046 esac
14047 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14048 echo "${ECHO_T}$dynamic_linker" >&6
14049 test "$dynamic_linker" = no && can_build_shared=no
14051 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14052 if test "$GCC" = yes; then
14053 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14091 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14092 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14093 hardcode_action_CXX=
14094 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14095 test -n "$runpath_var_CXX" ||
14096 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14098 # We can hardcode non-existent directories.
14099 if test "$hardcode_direct_CXX" != no &&
14100 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14101 # have to relink, otherwise we might link with an installed library
14102 # when we should be linking with a yet-to-be-installed one
14103 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14104 test "$hardcode_minus_L_CXX" != no; then
14105 # Linking always hardcodes the temporary library directory.
14106 hardcode_action_CXX=relink
14107 else
14108 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14109 hardcode_action_CXX=immediate
14111 else
14112 # We cannot hardcode anything, or else we can only hardcode existing
14113 # directories.
14114 hardcode_action_CXX=unsupported
14116 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14117 echo "${ECHO_T}$hardcode_action_CXX" >&6
14119 if test "$hardcode_action_CXX" = relink ||
14120 test "$inherit_rpath_CXX" = yes; then
14121 # Fast installation is not supported
14122 enable_fast_install=no
14123 elif test "$shlibpath_overrides_runpath" = yes ||
14124 test "$enable_shared" = no; then
14125 # Fast installation is not necessary
14126 enable_fast_install=needless
14135 fi # test -n "$compiler"
14137 CC=$lt_save_CC
14138 LDCXX=$LD
14139 LD=$lt_save_LD
14140 GCC=$lt_save_GCC
14141 with_gnu_ld=$lt_save_with_gnu_ld
14142 lt_cv_path_LDCXX=$lt_cv_path_LD
14143 lt_cv_path_LD=$lt_save_path_LD
14144 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14145 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14146 fi # test "$_lt_caught_CXX_error" != yes
14148 ac_ext=c
14149 ac_cpp='$CPP $CPPFLAGS'
14150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14166 ac_config_commands="$ac_config_commands libtool"
14171 # Only expand once:
14176 # Check whether --with-target-subdir or --without-target-subdir was given.
14177 if test "${with_target_subdir+set}" = set; then
14178 withval="$with_target_subdir"
14182 # Check whether --with-cross-host or --without-cross-host was given.
14183 if test "${with_cross_host+set}" = set; then
14184 withval="$with_cross_host"
14188 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
14189 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
14190 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
14191 if test -z "$THREADS"; then
14192 THREADS=no
14194 echo "$as_me:$LINENO: result: $THREADS" >&5
14195 echo "${ECHO_T}$THREADS" >&6
14197 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
14198 if test "${enable_parallel_mark+set}" = set; then
14199 enableval="$enable_parallel_mark"
14200 case "$THREADS" in
14201 no | none | single)
14202 { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
14203 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
14204 { (exit 1); exit 1; }; }
14206 esac
14210 AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
14211 THREADLIBS=
14212 case "$THREADS" in
14213 no | none | single)
14214 THREADS=none
14216 posix | posix95 | pthreads)
14217 THREADS=posix
14218 THREADLIBS=-lpthread
14219 case "$host" in
14220 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
14222 cat >>confdefs.h <<\_ACEOF
14223 #define GC_LINUX_THREADS 1
14224 _ACEOF
14227 cat >>confdefs.h <<\_ACEOF
14228 #define _REENTRANT 1
14229 _ACEOF
14231 if test "${enable_parallel_mark}" = yes; then
14233 cat >>confdefs.h <<\_ACEOF
14234 #define PARALLEL_MARK 1
14235 _ACEOF
14239 cat >>confdefs.h <<\_ACEOF
14240 #define THREAD_LOCAL_ALLOC 1
14241 _ACEOF
14244 *-*-linux*)
14245 cat >>confdefs.h <<\_ACEOF
14246 #define GC_LINUX_THREADS 1
14247 _ACEOF
14249 cat >>confdefs.h <<\_ACEOF
14250 #define _REENTRANT 1
14251 _ACEOF
14254 *-*-aix*)
14256 cat >>confdefs.h <<\_ACEOF
14257 #define GC_AIX_THREADS 1
14258 _ACEOF
14260 cat >>confdefs.h <<\_ACEOF
14261 #define _REENTRANT 1
14262 _ACEOF
14265 *-*-hpux11*)
14266 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14267 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
14269 cat >>confdefs.h <<\_ACEOF
14270 #define GC_HPUX_THREADS 1
14271 _ACEOF
14274 cat >>confdefs.h <<\_ACEOF
14275 #define _POSIX_C_SOURCE 199506L
14276 _ACEOF
14278 if test "${enable_parallel_mark}" = yes; then
14279 cat >>confdefs.h <<\_ACEOF
14280 #define PARALLEL_MARK 1
14281 _ACEOF
14284 cat >>confdefs.h <<\_ACEOF
14285 #define THREAD_LOCAL_ALLOC 1
14286 _ACEOF
14288 THREADLIBS="-lpthread -lrt"
14289 # HPUX needs REENTRANT for the _r calls.
14291 cat >>confdefs.h <<\_ACEOF
14292 #define _REENTRANT 1
14293 _ACEOF
14296 *-*-hpux10*)
14297 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14298 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
14300 *-*-kfreebsd*-gnu)
14301 cat >>confdefs.h <<\_ACEOF
14302 #define GC_FREEBSD_THREADS 1
14303 _ACEOF
14305 INCLUDES="$INCLUDES -pthread"
14306 THREADDLLIBS=-pthread
14307 cat >>confdefs.h <<\_ACEOF
14308 #define _REENTRANT 1
14309 _ACEOF
14311 if test "${enable_parallel_mark}" = yes; then
14312 cat >>confdefs.h <<\_ACEOF
14313 #define PARALLEL_MARK 1
14314 _ACEOF
14317 cat >>confdefs.h <<\_ACEOF
14318 #define THREAD_LOCAL_ALLOC 1
14319 _ACEOF
14322 cat >>confdefs.h <<\_ACEOF
14323 #define USE_COMPILER_TLS 1
14324 _ACEOF
14327 *-*-freebsd*)
14328 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
14329 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
14331 cat >>confdefs.h <<\_ACEOF
14332 #define GC_FREEBSD_THREADS 1
14333 _ACEOF
14335 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
14336 THREADLIBS=-pthread
14338 *-*-solaris*)
14340 cat >>confdefs.h <<\_ACEOF
14341 #define GC_SOLARIS_PTHREADS 1
14342 _ACEOF
14344 # Need to use alternate thread library, otherwise gctest hangs
14345 # on Solaris 8.
14346 multi_os_directory=`$CC -print-multi-os-directory`
14347 THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
14348 -R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
14350 *-*-irix*)
14352 cat >>confdefs.h <<\_ACEOF
14353 #define GC_IRIX_THREADS 1
14354 _ACEOF
14357 *-*-cygwin*)
14359 cat >>confdefs.h <<\_ACEOF
14360 #define GC_WIN32_THREADS 1
14361 _ACEOF
14364 *-*-darwin*)
14366 cat >>confdefs.h <<\_ACEOF
14367 #define GC_DARWIN_THREADS 1
14368 _ACEOF
14370 cat >>confdefs.h <<\_ACEOF
14371 #define THREAD_LOCAL_ALLOC 1
14372 _ACEOF
14374 if test "${enable_parallel_mark}" = yes; then
14375 cat >>confdefs.h <<\_ACEOF
14376 #define PARALLEL_MARK 1
14377 _ACEOF
14381 *-*-osf*)
14383 cat >>confdefs.h <<\_ACEOF
14384 #define GC_OSF1_THREADS 1
14385 _ACEOF
14387 if test "${enable_parallel_mark}" = yes; then
14388 cat >>confdefs.h <<\_ACEOF
14389 #define PARALLEL_MARK 1
14390 _ACEOF
14392 cat >>confdefs.h <<\_ACEOF
14393 #define THREAD_LOCAL_ALLOC 1
14394 _ACEOF
14396 # May want to enable it in other cases, too.
14397 # Measurements havent yet been done.
14399 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
14400 THREADLIBS="-lpthread -lrt"
14402 esac
14404 win32)
14405 cat >>confdefs.h <<\_ACEOF
14406 #define GC_WIN32_THREADS 1
14407 _ACEOF
14410 dgux386)
14411 THREADS=dgux386
14412 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
14413 echo "${ECHO_T}$THREADLIBS" >&6
14414 # Use pthread GCC switch
14415 THREADLIBS=-pthread
14416 if test "${enable_parallel_mark}" = yes; then
14417 cat >>confdefs.h <<\_ACEOF
14418 #define PARALLEL_MARK 1
14419 _ACEOF
14422 cat >>confdefs.h <<\_ACEOF
14423 #define THREAD_LOCAL_ALLOC 1
14424 _ACEOF
14427 cat >>confdefs.h <<\_ACEOF
14428 #define GC_DGUX386_THREADS 1
14429 _ACEOF
14432 cat >>confdefs.h <<\_ACEOF
14433 #define DGUX_THREADS 1
14434 _ACEOF
14436 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
14437 AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
14439 aix)
14440 THREADS=posix
14441 THREADLIBS=-lpthread
14442 cat >>confdefs.h <<\_ACEOF
14443 #define GC_AIX_THREADS 1
14444 _ACEOF
14446 cat >>confdefs.h <<\_ACEOF
14447 #define _REENTRANT 1
14448 _ACEOF
14451 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
14452 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
14453 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
14454 { (exit 1); exit 1; }; }
14457 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
14458 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
14459 { (exit 1); exit 1; }; }
14461 esac
14464 case "$host" in
14465 powerpc-*-darwin*)
14466 powerpc_darwin=true
14468 esac
14471 if test x$powerpc_darwin = xtrue; then
14472 POWERPC_DARWIN_TRUE=
14473 POWERPC_DARWIN_FALSE='#'
14474 else
14475 POWERPC_DARWIN_TRUE='#'
14476 POWERPC_DARWIN_FALSE=
14480 # Darwin needs a few extra special tests to deal with variation in the
14481 # system headers.
14482 case "$host" in
14483 powerpc*-*-darwin*)
14484 echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
14485 echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6
14486 if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14488 else
14489 cat >conftest.$ac_ext <<_ACEOF
14490 /* confdefs.h. */
14491 _ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14495 #include <mach/thread_status.h>
14498 main ()
14500 static ppc_thread_state_t ac_aggr;
14501 if (ac_aggr.r0)
14502 return 0;
14504 return 0;
14506 _ACEOF
14507 rm -f conftest.$ac_objext
14508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14509 (eval $ac_compile) 2>conftest.er1
14510 ac_status=$?
14511 grep -v '^ *+' conftest.er1 >conftest.err
14512 rm -f conftest.er1
14513 cat conftest.err >&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
14516 { ac_try='test -z "$ac_c_werror_flag"
14517 || test ! -s conftest.err'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14529 ac_cv_member_ppc_thread_state_t_r0=yes
14530 else
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 cat >conftest.$ac_ext <<_ACEOF
14535 /* confdefs.h. */
14536 _ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h. */
14540 #include <mach/thread_status.h>
14543 main ()
14545 static ppc_thread_state_t ac_aggr;
14546 if (sizeof ac_aggr.r0)
14547 return 0;
14549 return 0;
14551 _ACEOF
14552 rm -f conftest.$ac_objext
14553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14554 (eval $ac_compile) 2>conftest.er1
14555 ac_status=$?
14556 grep -v '^ *+' conftest.er1 >conftest.err
14557 rm -f conftest.er1
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
14561 { ac_try='test -z "$ac_c_werror_flag"
14562 || test ! -s conftest.err'
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try='test -s conftest.$ac_objext'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; }; then
14574 ac_cv_member_ppc_thread_state_t_r0=yes
14575 else
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14579 ac_cv_member_ppc_thread_state_t_r0=no
14581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14585 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
14586 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6
14587 if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then
14589 cat >>confdefs.h <<\_ACEOF
14590 #define HAS_PPC_THREAD_STATE_R0 1
14591 _ACEOF
14595 echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
14596 echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6
14597 if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
14598 echo $ECHO_N "(cached) $ECHO_C" >&6
14599 else
14600 cat >conftest.$ac_ext <<_ACEOF
14601 /* confdefs.h. */
14602 _ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 #include <mach/thread_status.h>
14609 main ()
14611 static ppc_thread_state_t ac_aggr;
14612 if (ac_aggr.__r0)
14613 return 0;
14615 return 0;
14617 _ACEOF
14618 rm -f conftest.$ac_objext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14620 (eval $ac_compile) 2>conftest.er1
14621 ac_status=$?
14622 grep -v '^ *+' conftest.er1 >conftest.err
14623 rm -f conftest.er1
14624 cat conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } &&
14627 { ac_try='test -z "$ac_c_werror_flag"
14628 || test ! -s conftest.err'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; } &&
14634 { ac_try='test -s conftest.$ac_objext'
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14637 ac_status=$?
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; }; then
14640 ac_cv_member_ppc_thread_state_t___r0=yes
14641 else
14642 echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14645 cat >conftest.$ac_ext <<_ACEOF
14646 /* confdefs.h. */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 #include <mach/thread_status.h>
14654 main ()
14656 static ppc_thread_state_t ac_aggr;
14657 if (sizeof ac_aggr.__r0)
14658 return 0;
14660 return 0;
14662 _ACEOF
14663 rm -f conftest.$ac_objext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665 (eval $ac_compile) 2>conftest.er1
14666 ac_status=$?
14667 grep -v '^ *+' conftest.er1 >conftest.err
14668 rm -f conftest.er1
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -z "$ac_c_werror_flag"
14673 || test ! -s conftest.err'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; } &&
14679 { ac_try='test -s conftest.$ac_objext'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14682 ac_status=$?
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14685 ac_cv_member_ppc_thread_state_t___r0=yes
14686 else
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14690 ac_cv_member_ppc_thread_state_t___r0=no
14692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14696 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
14697 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6
14698 if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then
14700 cat >>confdefs.h <<\_ACEOF
14701 #define HAS_PPC_THREAD_STATE___R0 1
14702 _ACEOF
14706 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
14707 echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6
14708 if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14710 else
14711 cat >conftest.$ac_ext <<_ACEOF
14712 /* confdefs.h. */
14713 _ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h. */
14717 #include <mach/thread_status.h>
14720 main ()
14722 static ppc_thread_state64_t ac_aggr;
14723 if (ac_aggr.r0)
14724 return 0;
14726 return 0;
14728 _ACEOF
14729 rm -f conftest.$ac_objext
14730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14731 (eval $ac_compile) 2>conftest.er1
14732 ac_status=$?
14733 grep -v '^ *+' conftest.er1 >conftest.err
14734 rm -f conftest.er1
14735 cat conftest.err >&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } &&
14738 { ac_try='test -z "$ac_c_werror_flag"
14739 || test ! -s conftest.err'
14740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; } &&
14745 { ac_try='test -s conftest.$ac_objext'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }; then
14751 ac_cv_member_ppc_thread_state64_t_r0=yes
14752 else
14753 echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14756 cat >conftest.$ac_ext <<_ACEOF
14757 /* confdefs.h. */
14758 _ACEOF
14759 cat confdefs.h >>conftest.$ac_ext
14760 cat >>conftest.$ac_ext <<_ACEOF
14761 /* end confdefs.h. */
14762 #include <mach/thread_status.h>
14765 main ()
14767 static ppc_thread_state64_t ac_aggr;
14768 if (sizeof ac_aggr.r0)
14769 return 0;
14771 return 0;
14773 _ACEOF
14774 rm -f conftest.$ac_objext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14776 (eval $ac_compile) 2>conftest.er1
14777 ac_status=$?
14778 grep -v '^ *+' conftest.er1 >conftest.err
14779 rm -f conftest.er1
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } &&
14783 { ac_try='test -z "$ac_c_werror_flag"
14784 || test ! -s conftest.err'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14787 ac_status=$?
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; } &&
14790 { ac_try='test -s conftest.$ac_objext'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14793 ac_status=$?
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; }; then
14796 ac_cv_member_ppc_thread_state64_t_r0=yes
14797 else
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801 ac_cv_member_ppc_thread_state64_t_r0=no
14803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14807 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
14808 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6
14809 if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then
14811 cat >>confdefs.h <<\_ACEOF
14812 #define HAS_PPC_THREAD_STATE64_R0 1
14813 _ACEOF
14817 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
14818 echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6
14819 if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14821 else
14822 cat >conftest.$ac_ext <<_ACEOF
14823 /* confdefs.h. */
14824 _ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14828 #include <mach/thread_status.h>
14831 main ()
14833 static ppc_thread_state64_t ac_aggr;
14834 if (ac_aggr.__r0)
14835 return 0;
14837 return 0;
14839 _ACEOF
14840 rm -f conftest.$ac_objext
14841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14842 (eval $ac_compile) 2>conftest.er1
14843 ac_status=$?
14844 grep -v '^ *+' conftest.er1 >conftest.err
14845 rm -f conftest.er1
14846 cat conftest.err >&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); } &&
14849 { ac_try='test -z "$ac_c_werror_flag"
14850 || test ! -s conftest.err'
14851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14853 ac_status=$?
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); }; } &&
14856 { ac_try='test -s conftest.$ac_objext'
14857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858 (eval $ac_try) 2>&5
14859 ac_status=$?
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; }; then
14862 ac_cv_member_ppc_thread_state64_t___r0=yes
14863 else
14864 echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14867 cat >conftest.$ac_ext <<_ACEOF
14868 /* confdefs.h. */
14869 _ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 #include <mach/thread_status.h>
14876 main ()
14878 static ppc_thread_state64_t ac_aggr;
14879 if (sizeof ac_aggr.__r0)
14880 return 0;
14882 return 0;
14884 _ACEOF
14885 rm -f conftest.$ac_objext
14886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14887 (eval $ac_compile) 2>conftest.er1
14888 ac_status=$?
14889 grep -v '^ *+' conftest.er1 >conftest.err
14890 rm -f conftest.er1
14891 cat conftest.err >&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try='test -z "$ac_c_werror_flag"
14895 || test ! -s conftest.err'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; } &&
14901 { ac_try='test -s conftest.$ac_objext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 ac_cv_member_ppc_thread_state64_t___r0=yes
14908 else
14909 echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14912 ac_cv_member_ppc_thread_state64_t___r0=no
14914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14918 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
14919 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6
14920 if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then
14922 cat >>confdefs.h <<\_ACEOF
14923 #define HAS_PPC_THREAD_STATE64___R0 1
14924 _ACEOF
14929 i?86*-*-darwin*)
14930 echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
14931 echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6
14932 if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935 cat >conftest.$ac_ext <<_ACEOF
14936 /* confdefs.h. */
14937 _ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14941 #include <sys/cdefs.h>
14942 #include <mach/thread_status.h>
14945 main ()
14947 static x86_thread_state32_t ac_aggr;
14948 if (ac_aggr.eax)
14949 return 0;
14951 return 0;
14953 _ACEOF
14954 rm -f conftest.$ac_objext
14955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14956 (eval $ac_compile) 2>conftest.er1
14957 ac_status=$?
14958 grep -v '^ *+' conftest.er1 >conftest.err
14959 rm -f conftest.er1
14960 cat conftest.err >&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } &&
14963 { ac_try='test -z "$ac_c_werror_flag"
14964 || test ! -s conftest.err'
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14967 ac_status=$?
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; } &&
14970 { ac_try='test -s conftest.$ac_objext'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14976 ac_cv_member_x86_thread_state32_t_eax=yes
14977 else
14978 echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14981 cat >conftest.$ac_ext <<_ACEOF
14982 /* confdefs.h. */
14983 _ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14987 #include <sys/cdefs.h>
14988 #include <mach/thread_status.h>
14991 main ()
14993 static x86_thread_state32_t ac_aggr;
14994 if (sizeof ac_aggr.eax)
14995 return 0;
14997 return 0;
14999 _ACEOF
15000 rm -f conftest.$ac_objext
15001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15002 (eval $ac_compile) 2>conftest.er1
15003 ac_status=$?
15004 grep -v '^ *+' conftest.er1 >conftest.err
15005 rm -f conftest.er1
15006 cat conftest.err >&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } &&
15009 { ac_try='test -z "$ac_c_werror_flag"
15010 || test ! -s conftest.err'
15011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012 (eval $ac_try) 2>&5
15013 ac_status=$?
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; } &&
15016 { ac_try='test -s conftest.$ac_objext'
15017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15019 ac_status=$?
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; }; then
15022 ac_cv_member_x86_thread_state32_t_eax=yes
15023 else
15024 echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15027 ac_cv_member_x86_thread_state32_t_eax=no
15029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15033 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
15034 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6
15035 if test $ac_cv_member_x86_thread_state32_t_eax = yes; then
15037 cat >>confdefs.h <<\_ACEOF
15038 #define HAS_X86_THREAD_STATE32_EAX 1
15039 _ACEOF
15043 echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
15044 echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6
15045 if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15047 else
15048 cat >conftest.$ac_ext <<_ACEOF
15049 /* confdefs.h. */
15050 _ACEOF
15051 cat confdefs.h >>conftest.$ac_ext
15052 cat >>conftest.$ac_ext <<_ACEOF
15053 /* end confdefs.h. */
15054 #include <sys/cdefs.h>
15055 #include <mach/thread_status.h>
15058 main ()
15060 static x86_thread_state32_t ac_aggr;
15061 if (ac_aggr.__eax)
15062 return 0;
15064 return 0;
15066 _ACEOF
15067 rm -f conftest.$ac_objext
15068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15069 (eval $ac_compile) 2>conftest.er1
15070 ac_status=$?
15071 grep -v '^ *+' conftest.er1 >conftest.err
15072 rm -f conftest.er1
15073 cat conftest.err >&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); } &&
15076 { ac_try='test -z "$ac_c_werror_flag"
15077 || test ! -s conftest.err'
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5
15080 ac_status=$?
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; } &&
15083 { ac_try='test -s conftest.$ac_objext'
15084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085 (eval $ac_try) 2>&5
15086 ac_status=$?
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; }; then
15089 ac_cv_member_x86_thread_state32_t___eax=yes
15090 else
15091 echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.$ac_ext >&5
15094 cat >conftest.$ac_ext <<_ACEOF
15095 /* confdefs.h. */
15096 _ACEOF
15097 cat confdefs.h >>conftest.$ac_ext
15098 cat >>conftest.$ac_ext <<_ACEOF
15099 /* end confdefs.h. */
15100 #include <sys/cdefs.h>
15101 #include <mach/thread_status.h>
15104 main ()
15106 static x86_thread_state32_t ac_aggr;
15107 if (sizeof ac_aggr.__eax)
15108 return 0;
15110 return 0;
15112 _ACEOF
15113 rm -f conftest.$ac_objext
15114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15115 (eval $ac_compile) 2>conftest.er1
15116 ac_status=$?
15117 grep -v '^ *+' conftest.er1 >conftest.err
15118 rm -f conftest.er1
15119 cat conftest.err >&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } &&
15122 { ac_try='test -z "$ac_c_werror_flag"
15123 || test ! -s conftest.err'
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; } &&
15129 { ac_try='test -s conftest.$ac_objext'
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15132 ac_status=$?
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; }; then
15135 ac_cv_member_x86_thread_state32_t___eax=yes
15136 else
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15140 ac_cv_member_x86_thread_state32_t___eax=no
15142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15146 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
15147 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6
15148 if test $ac_cv_member_x86_thread_state32_t___eax = yes; then
15150 cat >>confdefs.h <<\_ACEOF
15151 #define HAS_X86_THREAD_STATE32___EAX 1
15152 _ACEOF
15157 x86_64-*-darwin*)
15158 echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
15159 echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6
15160 if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
15161 echo $ECHO_N "(cached) $ECHO_C" >&6
15162 else
15163 cat >conftest.$ac_ext <<_ACEOF
15164 /* confdefs.h. */
15165 _ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15169 #include <sys/cdefs.h>
15170 #include <mach/thread_status.h>
15173 main ()
15175 static x86_thread_state64_t ac_aggr;
15176 if (ac_aggr.rax)
15177 return 0;
15179 return 0;
15181 _ACEOF
15182 rm -f conftest.$ac_objext
15183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15184 (eval $ac_compile) 2>conftest.er1
15185 ac_status=$?
15186 grep -v '^ *+' conftest.er1 >conftest.err
15187 rm -f conftest.er1
15188 cat conftest.err >&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); } &&
15191 { ac_try='test -z "$ac_c_werror_flag"
15192 || test ! -s conftest.err'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15195 ac_status=$?
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; } &&
15198 { ac_try='test -s conftest.$ac_objext'
15199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200 (eval $ac_try) 2>&5
15201 ac_status=$?
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; }; then
15204 ac_cv_member_x86_thread_state64_t_rax=yes
15205 else
15206 echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15209 cat >conftest.$ac_ext <<_ACEOF
15210 /* confdefs.h. */
15211 _ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h. */
15215 #include <sys/cdefs.h>
15216 #include <mach/thread_status.h>
15219 main ()
15221 static x86_thread_state64_t ac_aggr;
15222 if (sizeof ac_aggr.rax)
15223 return 0;
15225 return 0;
15227 _ACEOF
15228 rm -f conftest.$ac_objext
15229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15230 (eval $ac_compile) 2>conftest.er1
15231 ac_status=$?
15232 grep -v '^ *+' conftest.er1 >conftest.err
15233 rm -f conftest.er1
15234 cat conftest.err >&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } &&
15237 { ac_try='test -z "$ac_c_werror_flag"
15238 || test ! -s conftest.err'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15241 ac_status=$?
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; } &&
15244 { ac_try='test -s conftest.$ac_objext'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15250 ac_cv_member_x86_thread_state64_t_rax=yes
15251 else
15252 echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15255 ac_cv_member_x86_thread_state64_t_rax=no
15257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15261 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
15262 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6
15263 if test $ac_cv_member_x86_thread_state64_t_rax = yes; then
15265 cat >>confdefs.h <<\_ACEOF
15266 #define HAS_X86_THREAD_STATE64_RAX 1
15267 _ACEOF
15271 echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
15272 echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6
15273 if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276 cat >conftest.$ac_ext <<_ACEOF
15277 /* confdefs.h. */
15278 _ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15282 #include <sys/cdefs.h>
15283 #include <mach/thread_status.h>
15286 main ()
15288 static x86_thread_state64_t ac_aggr;
15289 if (ac_aggr.__rax)
15290 return 0;
15292 return 0;
15294 _ACEOF
15295 rm -f conftest.$ac_objext
15296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15297 (eval $ac_compile) 2>conftest.er1
15298 ac_status=$?
15299 grep -v '^ *+' conftest.er1 >conftest.err
15300 rm -f conftest.er1
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } &&
15304 { ac_try='test -z "$ac_c_werror_flag"
15305 || test ! -s conftest.err'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15308 ac_status=$?
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; } &&
15311 { ac_try='test -s conftest.$ac_objext'
15312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313 (eval $ac_try) 2>&5
15314 ac_status=$?
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); }; }; then
15317 ac_cv_member_x86_thread_state64_t___rax=yes
15318 else
15319 echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 cat >conftest.$ac_ext <<_ACEOF
15323 /* confdefs.h. */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 #include <sys/cdefs.h>
15329 #include <mach/thread_status.h>
15332 main ()
15334 static x86_thread_state64_t ac_aggr;
15335 if (sizeof ac_aggr.__rax)
15336 return 0;
15338 return 0;
15340 _ACEOF
15341 rm -f conftest.$ac_objext
15342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15343 (eval $ac_compile) 2>conftest.er1
15344 ac_status=$?
15345 grep -v '^ *+' conftest.er1 >conftest.err
15346 rm -f conftest.er1
15347 cat conftest.err >&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); } &&
15350 { ac_try='test -z "$ac_c_werror_flag"
15351 || test ! -s conftest.err'
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); }; } &&
15357 { ac_try='test -s conftest.$ac_objext'
15358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15359 (eval $ac_try) 2>&5
15360 ac_status=$?
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); }; }; then
15363 ac_cv_member_x86_thread_state64_t___rax=yes
15364 else
15365 echo "$as_me: failed program was:" >&5
15366 sed 's/^/| /' conftest.$ac_ext >&5
15368 ac_cv_member_x86_thread_state64_t___rax=no
15370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15374 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
15375 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6
15376 if test $ac_cv_member_x86_thread_state64_t___rax = yes; then
15378 cat >>confdefs.h <<\_ACEOF
15379 #define HAS_X86_THREAD_STATE64___RAX 1
15380 _ACEOF
15385 *) ;;
15386 esac
15388 # We never want libdl on darwin. It is a fake libdl that just ends up making
15389 # dyld calls anyway
15390 case "$host" in
15391 *-*-darwin*) ;;
15393 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15394 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15395 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 else
15398 ac_check_lib_save_LIBS=$LIBS
15399 LIBS="-ldl $LIBS"
15400 if test x$gcc_no_link = xyes; then
15401 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15402 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15403 { (exit 1); exit 1; }; }
15405 cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h. */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15412 /* Override any gcc2 internal prototype to avoid an error. */
15413 #ifdef __cplusplus
15414 extern "C"
15415 #endif
15416 /* We use char because int might match the return type of a gcc2
15417 builtin and then its argument prototype would still apply. */
15418 char dlopen ();
15420 main ()
15422 dlopen ();
15424 return 0;
15426 _ACEOF
15427 rm -f conftest.$ac_objext conftest$ac_exeext
15428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15429 (eval $ac_link) 2>conftest.er1
15430 ac_status=$?
15431 grep -v '^ *+' conftest.er1 >conftest.err
15432 rm -f conftest.er1
15433 cat conftest.err >&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } &&
15436 { ac_try='test -z "$ac_c_werror_flag"
15437 || test ! -s conftest.err'
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15440 ac_status=$?
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; } &&
15443 { ac_try='test -s conftest$ac_exeext'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15446 ac_status=$?
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15449 ac_cv_lib_dl_dlopen=yes
15450 else
15451 echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15454 ac_cv_lib_dl_dlopen=no
15456 rm -f conftest.err conftest.$ac_objext \
15457 conftest$ac_exeext conftest.$ac_ext
15458 LIBS=$ac_check_lib_save_LIBS
15460 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15461 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15462 if test $ac_cv_lib_dl_dlopen = yes; then
15463 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
15467 esac
15469 # extra LD Flags which are required for targets
15470 case "${host}" in
15471 *-*-darwin*)
15472 extra_ldflags_libgc=-Wl,-single_module
15474 esac
15479 target_all=libgcjgc.la
15482 TARGET_ECOS="no"
15484 # Check whether --with-ecos or --without-ecos was given.
15485 if test "${with_ecos+set}" = set; then
15486 withval="$with_ecos"
15487 TARGET_ECOS="$with_ecos"
15491 addobjs=
15492 addlibs=
15493 addincludes=
15494 addtests=
15495 case "$TARGET_ECOS" in
15500 cat >>confdefs.h <<\_ACEOF
15501 #define ECOS 1
15502 _ACEOF
15504 AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
15505 addobjs="$addobjs ecos.lo"
15507 esac
15509 if test "${enable_cplusplus}" = yes; then
15510 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
15511 addtests="$addtests test_cpp"
15516 if test "${enable_cplusplus}" = yes; then
15517 CPLUSPLUS_TRUE=
15518 CPLUSPLUS_FALSE='#'
15519 else
15520 CPLUSPLUS_TRUE='#'
15521 CPLUSPLUS_FALSE=
15529 # Configuration of shared libraries
15531 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15532 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15533 # Check whether --enable-shared or --disable-shared was given.
15534 if test "${enable_shared+set}" = set; then
15535 enableval="$enable_shared"
15536 p=${PACKAGE-default}
15537 case $enableval in
15538 yes) enable_shared=yes ;;
15539 no) enable_shared=no ;;
15541 enable_shared=no
15542 # Look at the argument we got. We use all the common list separators.
15543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15544 for pkg in $enableval; do
15545 IFS="$lt_save_ifs"
15546 if test "X$pkg" = "X$p"; then
15547 enable_shared=yes
15549 done
15550 IFS="$lt_save_ifs"
15552 esac
15553 else
15554 enable_shared=yes
15562 case "$host" in
15563 alpha-*-openbsd*)
15564 enable_shared=no
15565 echo "$as_me:$LINENO: result: no" >&5
15566 echo "${ECHO_T}no" >&6
15569 echo "$as_me:$LINENO: result: yes" >&5
15570 echo "${ECHO_T}yes" >&6
15572 esac
15574 # Checks for pthreads functions
15576 oldLIBS="$LIBS"
15577 LIBS="$LIBS $THREADLIBS"
15579 for ac_func in pthread_getattr_np
15581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15582 echo "$as_me:$LINENO: checking for $ac_func" >&5
15583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15584 if eval "test \"\${$as_ac_var+set}\" = set"; then
15585 echo $ECHO_N "(cached) $ECHO_C" >&6
15586 else
15587 if test x$gcc_no_link = xyes; then
15588 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15589 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15590 { (exit 1); exit 1; }; }
15592 cat >conftest.$ac_ext <<_ACEOF
15593 /* confdefs.h. */
15594 _ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15600 #define $ac_func innocuous_$ac_func
15602 /* System header to define __stub macros and hopefully few prototypes,
15603 which can conflict with char $ac_func (); below.
15604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15605 <limits.h> exists even on freestanding compilers. */
15607 #ifdef __STDC__
15608 # include <limits.h>
15609 #else
15610 # include <assert.h>
15611 #endif
15613 #undef $ac_func
15615 /* Override any gcc2 internal prototype to avoid an error. */
15616 #ifdef __cplusplus
15617 extern "C"
15619 #endif
15620 /* We use char because int might match the return type of a gcc2
15621 builtin and then its argument prototype would still apply. */
15622 char $ac_func ();
15623 /* The GNU C library defines this for functions which it implements
15624 to always fail with ENOSYS. Some functions are actually named
15625 something starting with __ and the normal name is an alias. */
15626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15627 choke me
15628 #else
15629 char (*f) () = $ac_func;
15630 #endif
15631 #ifdef __cplusplus
15633 #endif
15636 main ()
15638 return f != $ac_func;
15640 return 0;
15642 _ACEOF
15643 rm -f conftest.$ac_objext conftest$ac_exeext
15644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15645 (eval $ac_link) 2>conftest.er1
15646 ac_status=$?
15647 grep -v '^ *+' conftest.er1 >conftest.err
15648 rm -f conftest.er1
15649 cat conftest.err >&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } &&
15652 { ac_try='test -z "$ac_c_werror_flag"
15653 || test ! -s conftest.err'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15656 ac_status=$?
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; } &&
15659 { ac_try='test -s conftest$ac_exeext'
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; }; then
15665 eval "$as_ac_var=yes"
15666 else
15667 echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15670 eval "$as_ac_var=no"
15672 rm -f conftest.err conftest.$ac_objext \
15673 conftest$ac_exeext conftest.$ac_ext
15675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15677 if test `eval echo '${'$as_ac_var'}'` = yes; then
15678 cat >>confdefs.h <<_ACEOF
15679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15680 _ACEOF
15683 done
15685 LIBS="$oldLIBS"
15687 # Configuration of machine-dependent code
15689 # Set NO_EXECUTE_PERMISSION by default because gcj already uses
15690 # ffi_closure_{alloc,free} which takes care of allocating trampolines
15691 # in executable memory.
15693 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
15694 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
15695 machdep=
15696 case "$host" in
15697 alpha*-*-openbsd*)
15698 machdep="alpha_mach_dep.lo"
15699 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
15700 { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
15701 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
15704 alpha*-*-linux*)
15705 machdep="alpha_mach_dep.lo"
15707 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
15709 cat >>confdefs.h <<\_ACEOF
15710 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
15711 _ACEOF
15714 mipstx39-*-elf*)
15715 machdep="mips_ultrix_mach_dep.lo"
15717 cat >>confdefs.h <<\_ACEOF
15718 #define STACKBASE __stackbase
15719 _ACEOF
15722 cat >>confdefs.h <<\_ACEOF
15723 #define DATASTART_IS_ETEXT 1
15724 _ACEOF
15727 mips-dec-ultrix*)
15728 machdep="mips_ultrix_mach-dep.lo"
15730 mips-nec-sysv*|mips-unknown-sysv*)
15732 mips*-*-linux*)
15734 mips-*-*)
15735 machdep="mips_sgi_mach_dep.lo"
15737 sparc-*-netbsd*)
15738 machdep="sparc_netbsd_mach_dep.lo"
15740 sparc-sun-solaris2.3)
15741 machdep="sparc_mach_dep.lo"
15743 cat >>confdefs.h <<\_ACEOF
15744 #define SUNOS53_SHARED_LIB 1
15745 _ACEOF
15748 sparc*-sun-solaris2.*)
15749 machdep="sparc_mach_dep.lo"
15751 ia64-*-*)
15752 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
15754 esac
15756 cat >>confdefs.h <<\_ACEOF
15757 #define NO_EXECUTE_PERMISSION 1
15758 _ACEOF
15760 if test x"$machdep" = x; then
15761 echo "$as_me:$LINENO: result: $machdep" >&5
15762 echo "${ECHO_T}$machdep" >&6
15763 machdep="mach_dep.lo"
15765 addobjs="$addobjs $machdep"
15772 # Check for AViiON Machines running DGUX
15774 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
15775 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
15776 ac_is_dgux=no
15777 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15778 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15779 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15780 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15784 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15785 else
15786 # Is the header compilable?
15787 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15788 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15789 cat >conftest.$ac_ext <<_ACEOF
15790 /* confdefs.h. */
15791 _ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15795 $ac_includes_default
15796 #include <sys/dg_sys_info.h>
15797 _ACEOF
15798 rm -f conftest.$ac_objext
15799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15800 (eval $ac_compile) 2>conftest.er1
15801 ac_status=$?
15802 grep -v '^ *+' conftest.er1 >conftest.err
15803 rm -f conftest.er1
15804 cat conftest.err >&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } &&
15807 { ac_try='test -z "$ac_c_werror_flag"
15808 || test ! -s conftest.err'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15811 ac_status=$?
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; } &&
15814 { ac_try='test -s conftest.$ac_objext'
15815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816 (eval $ac_try) 2>&5
15817 ac_status=$?
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); }; }; then
15820 ac_header_compiler=yes
15821 else
15822 echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15825 ac_header_compiler=no
15827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15828 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15829 echo "${ECHO_T}$ac_header_compiler" >&6
15831 # Is the header present?
15832 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15833 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15834 cat >conftest.$ac_ext <<_ACEOF
15835 /* confdefs.h. */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 #include <sys/dg_sys_info.h>
15841 _ACEOF
15842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15844 ac_status=$?
15845 grep -v '^ *+' conftest.er1 >conftest.err
15846 rm -f conftest.er1
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } >/dev/null; then
15850 if test -s conftest.err; then
15851 ac_cpp_err=$ac_c_preproc_warn_flag
15852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15853 else
15854 ac_cpp_err=
15856 else
15857 ac_cpp_err=yes
15859 if test -z "$ac_cpp_err"; then
15860 ac_header_preproc=yes
15861 else
15862 echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.$ac_ext >&5
15865 ac_header_preproc=no
15867 rm -f conftest.err conftest.$ac_ext
15868 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15869 echo "${ECHO_T}$ac_header_preproc" >&6
15871 # So? What about this header?
15872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15873 yes:no: )
15874 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15875 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15877 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15878 ac_header_preproc=yes
15880 no:yes:* )
15881 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15882 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15883 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15884 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15885 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15886 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15887 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15888 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15890 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15892 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15894 cat <<\_ASBOX
15895 ## ------------------------------------------ ##
15896 ## Report this to the AC_PACKAGE_NAME lists. ##
15897 ## ------------------------------------------ ##
15898 _ASBOX
15900 sed "s/^/$as_me: WARNING: /" >&2
15902 esac
15903 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15904 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15905 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15907 else
15908 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15910 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15911 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15914 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15915 ac_is_dgux=yes;
15920 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
15921 echo "${ECHO_T}$ac_is_dgux" >&6
15922 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
15923 if test $ac_is_dgux = yes; then
15924 if test "$enable_full_debug" = "yes"; then
15925 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15926 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15927 else
15928 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15929 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15935 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
15936 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
15937 case "$host" in
15938 *aix*)
15939 if test "$GCC" = yes; then
15940 echo "$as_me:$LINENO: result: yes" >&5
15941 echo "${ECHO_T}yes" >&6
15942 new_CFLAGS=
15943 for i in $CFLAGS; do
15944 case "$i" in
15945 -O*)
15948 new_CFLAGS="$new_CFLAGS $i"
15950 esac
15951 done
15952 CFLAGS="$new_CFLAGS"
15953 else
15954 echo "$as_me:$LINENO: result: no" >&5
15955 echo "${ECHO_T}no" >&6
15958 *) echo "$as_me:$LINENO: result: no" >&5
15959 echo "${ECHO_T}no" >&6 ;;
15960 esac
15962 MY_CFLAGS="$CFLAGS"
15966 cat >>confdefs.h <<\_ACEOF
15967 #define SILENT 1
15968 _ACEOF
15971 cat >>confdefs.h <<\_ACEOF
15972 #define NO_SIGNALS 1
15973 _ACEOF
15976 cat >>confdefs.h <<\_ACEOF
15977 #define ALL_INTERIOR_POINTERS 1
15978 _ACEOF
15982 cat >>confdefs.h <<\_ACEOF
15983 #define JAVA_FINALIZATION 1
15984 _ACEOF
15987 cat >>confdefs.h <<\_ACEOF
15988 #define GC_GCJ_SUPPORT 1
15989 _ACEOF
15992 cat >>confdefs.h <<\_ACEOF
15993 #define ATOMIC_UNCOLLECTABLE 1
15994 _ACEOF
15997 # Check whether --enable-gc-debug or --disable-gc-debug was given.
15998 if test "${enable_gc_debug+set}" = set; then
15999 enableval="$enable_gc_debug"
16000 if test "$enable_gc_debug" = "yes"; then
16001 { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
16002 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
16004 cat >>confdefs.h <<\_ACEOF
16005 #define KEEP_BACK_PTRS 1
16006 _ACEOF
16009 cat >>confdefs.h <<\_ACEOF
16010 #define DBG_HDRS_ALL 1
16011 _ACEOF
16013 case $host in
16014 ia64-*-linux* )
16016 cat >>confdefs.h <<\_ACEOF
16017 #define MAKE_BACK_GRAPH 1
16018 _ACEOF
16021 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
16022 cat >>confdefs.h <<\_ACEOF
16023 #define MAKE_BACK_GRAPH 1
16024 _ACEOF
16026 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
16027 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
16029 cat >>confdefs.h <<\_ACEOF
16030 #define SAVE_CALL_COUNT 8
16031 _ACEOF
16034 i345686-*-dgux*)
16035 cat >>confdefs.h <<\_ACEOF
16036 #define MAKE_BACK_GRAPH 1
16037 _ACEOF
16040 esac
16044 if test "${gc_use_mmap}" = "yes"; then
16046 cat >>confdefs.h <<\_ACEOF
16047 #define USE_MMAP 1
16048 _ACEOF
16052 if test -n "$with_cross_host" &&
16053 test x"$with_cross_host" != x"no"; then
16054 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
16055 toolexeclibdir='$(toolexecdir)/lib'
16056 else
16057 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
16058 toolexeclibdir='$(libdir)'
16060 multi_os_directory=`$CC -print-multi-os-directory`
16061 case $multi_os_directory in
16062 .) ;; # Avoid trailing /.
16063 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16064 esac
16068 if test "${multilib}" = "yes"; then
16069 multilib_arg="--enable-multilib"
16070 else
16071 multilib_arg=
16074 ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
16077 ac_config_files="$ac_config_files Makefile include/Makefile"
16079 cat >confcache <<\_ACEOF
16080 # This file is a shell script that caches the results of configure
16081 # tests run on this system so they can be shared between configure
16082 # scripts and configure runs, see configure's option --config-cache.
16083 # It is not useful on other systems. If it contains results you don't
16084 # want to keep, you may remove or edit it.
16086 # config.status only pays attention to the cache file if you give it
16087 # the --recheck option to rerun configure.
16089 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16090 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16091 # following values.
16093 _ACEOF
16095 # The following way of writing the cache mishandles newlines in values,
16096 # but we know of no workaround that is simple, portable, and efficient.
16097 # So, don't put newlines in cache variables' values.
16098 # Ultrix sh set writes to stderr and can't be redirected directly,
16099 # and sets the high bit in the cache file unless we assign to the vars.
16101 (set) 2>&1 |
16102 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16103 *ac_space=\ *)
16104 # `set' does not quote correctly, so add quotes (double-quote
16105 # substitution turns \\\\ into \\, and sed turns \\ into \).
16106 sed -n \
16107 "s/'/'\\\\''/g;
16108 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16111 # `set' quotes correctly as required by POSIX, so do not add quotes.
16112 sed -n \
16113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16115 esac;
16117 sed '
16118 t clear
16119 : clear
16120 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16121 t end
16122 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16123 : end' >>confcache
16124 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16125 if test -w $cache_file; then
16126 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16127 cat confcache >$cache_file
16128 else
16129 echo "not updating unwritable cache $cache_file"
16132 rm -f confcache
16134 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16135 # Let make expand exec_prefix.
16136 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16138 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16139 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16140 # trailing colons and then remove the whole line if VPATH becomes empty
16141 # (actually we leave an empty line to preserve line numbers).
16142 if test "x$srcdir" = x.; then
16143 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16144 s/:*\$(srcdir):*/:/;
16145 s/:*\${srcdir}:*/:/;
16146 s/:*@srcdir@:*/:/;
16147 s/^\([^=]*=[ ]*\):*/\1/;
16148 s/:*$//;
16149 s/^[^=]*=[ ]*$//;
16153 DEFS=-DHAVE_CONFIG_H
16155 ac_libobjs=
16156 ac_ltlibobjs=
16157 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16158 # 1. Remove the extension, and $U if already installed.
16159 ac_i=`echo "$ac_i" |
16160 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16161 # 2. Add them.
16162 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16163 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16164 done
16165 LIBOBJS=$ac_libobjs
16167 LTLIBOBJS=$ac_ltlibobjs
16170 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16171 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16172 Usually this means the macro was only invoked conditionally." >&5
16173 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16174 Usually this means the macro was only invoked conditionally." >&2;}
16175 { (exit 1); exit 1; }; }
16177 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16178 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16179 Usually this means the macro was only invoked conditionally." >&5
16180 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16181 Usually this means the macro was only invoked conditionally." >&2;}
16182 { (exit 1); exit 1; }; }
16184 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16185 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16186 Usually this means the macro was only invoked conditionally." >&5
16187 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16188 Usually this means the macro was only invoked conditionally." >&2;}
16189 { (exit 1); exit 1; }; }
16191 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16192 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16193 Usually this means the macro was only invoked conditionally." >&5
16194 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16195 Usually this means the macro was only invoked conditionally." >&2;}
16196 { (exit 1); exit 1; }; }
16198 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16199 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16200 Usually this means the macro was only invoked conditionally." >&5
16201 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16202 Usually this means the macro was only invoked conditionally." >&2;}
16203 { (exit 1); exit 1; }; }
16205 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
16206 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
16207 Usually this means the macro was only invoked conditionally." >&5
16208 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
16209 Usually this means the macro was only invoked conditionally." >&2;}
16210 { (exit 1); exit 1; }; }
16212 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
16213 { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
16214 Usually this means the macro was only invoked conditionally." >&5
16215 echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
16216 Usually this means the macro was only invoked conditionally." >&2;}
16217 { (exit 1); exit 1; }; }
16220 : ${CONFIG_STATUS=./config.status}
16221 ac_clean_files_save=$ac_clean_files
16222 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16223 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16224 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16225 cat >$CONFIG_STATUS <<_ACEOF
16226 #! $SHELL
16227 # Generated by $as_me.
16228 # Run this file to recreate the current configuration.
16229 # Compiler output produced by configure, useful for debugging
16230 # configure, is in config.log if it exists.
16232 debug=false
16233 ac_cs_recheck=false
16234 ac_cs_silent=false
16235 SHELL=\${CONFIG_SHELL-$SHELL}
16236 _ACEOF
16238 cat >>$CONFIG_STATUS <<\_ACEOF
16239 ## --------------------- ##
16240 ## M4sh Initialization. ##
16241 ## --------------------- ##
16243 # Be Bourne compatible
16244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16245 emulate sh
16246 NULLCMD=:
16247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16248 # is contrary to our usage. Disable this feature.
16249 alias -g '${1+"$@"}'='"$@"'
16250 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16251 set -o posix
16253 DUALCASE=1; export DUALCASE # for MKS sh
16255 # Support unset when possible.
16256 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16257 as_unset=unset
16258 else
16259 as_unset=false
16263 # Work around bugs in pre-3.0 UWIN ksh.
16264 $as_unset ENV MAIL MAILPATH
16265 PS1='$ '
16266 PS2='> '
16267 PS4='+ '
16269 # NLS nuisances.
16270 for as_var in \
16271 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16272 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16273 LC_TELEPHONE LC_TIME
16275 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16276 eval $as_var=C; export $as_var
16277 else
16278 $as_unset $as_var
16280 done
16282 # Required to use basename.
16283 if expr a : '\(a\)' >/dev/null 2>&1; then
16284 as_expr=expr
16285 else
16286 as_expr=false
16289 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16290 as_basename=basename
16291 else
16292 as_basename=false
16296 # Name of the executable.
16297 as_me=`$as_basename "$0" ||
16298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16299 X"$0" : 'X\(//\)$' \| \
16300 X"$0" : 'X\(/\)$' \| \
16301 . : '\(.\)' 2>/dev/null ||
16302 echo X/"$0" |
16303 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16304 /^X\/\(\/\/\)$/{ s//\1/; q; }
16305 /^X\/\(\/\).*/{ s//\1/; q; }
16306 s/.*/./; q'`
16309 # PATH needs CR, and LINENO needs CR and PATH.
16310 # Avoid depending upon Character Ranges.
16311 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16312 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16313 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16314 as_cr_digits='0123456789'
16315 as_cr_alnum=$as_cr_Letters$as_cr_digits
16317 # The user is always right.
16318 if test "${PATH_SEPARATOR+set}" != set; then
16319 echo "#! /bin/sh" >conf$$.sh
16320 echo "exit 0" >>conf$$.sh
16321 chmod +x conf$$.sh
16322 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16323 PATH_SEPARATOR=';'
16324 else
16325 PATH_SEPARATOR=:
16327 rm -f conf$$.sh
16331 as_lineno_1=$LINENO
16332 as_lineno_2=$LINENO
16333 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16334 test "x$as_lineno_1" != "x$as_lineno_2" &&
16335 test "x$as_lineno_3" = "x$as_lineno_2" || {
16336 # Find who we are. Look in the path if we contain no path at all
16337 # relative or not.
16338 case $0 in
16339 *[\\/]* ) as_myself=$0 ;;
16340 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16341 for as_dir in $PATH
16343 IFS=$as_save_IFS
16344 test -z "$as_dir" && as_dir=.
16345 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16346 done
16349 esac
16350 # We did not find ourselves, most probably we were run as `sh COMMAND'
16351 # in which case we are not to be found in the path.
16352 if test "x$as_myself" = x; then
16353 as_myself=$0
16355 if test ! -f "$as_myself"; then
16356 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16357 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16358 { (exit 1); exit 1; }; }
16360 case $CONFIG_SHELL in
16362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16363 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16365 IFS=$as_save_IFS
16366 test -z "$as_dir" && as_dir=.
16367 for as_base in sh bash ksh sh5; do
16368 case $as_dir in
16370 if ("$as_dir/$as_base" -c '
16371 as_lineno_1=$LINENO
16372 as_lineno_2=$LINENO
16373 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16374 test "x$as_lineno_1" != "x$as_lineno_2" &&
16375 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16376 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16377 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16378 CONFIG_SHELL=$as_dir/$as_base
16379 export CONFIG_SHELL
16380 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16381 fi;;
16382 esac
16383 done
16384 done
16386 esac
16388 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16389 # uniformly replaced by the line number. The first 'sed' inserts a
16390 # line-number line before each line; the second 'sed' does the real
16391 # work. The second script uses 'N' to pair each line-number line
16392 # with the numbered line, and appends trailing '-' during
16393 # substitution so that $LINENO is not a special case at line end.
16394 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16395 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16396 sed '=' <$as_myself |
16397 sed '
16399 s,$,-,
16400 : loop
16401 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16402 t loop
16403 s,-$,,
16404 s,^['$as_cr_digits']*\n,,
16405 ' >$as_me.lineno &&
16406 chmod +x $as_me.lineno ||
16407 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16408 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16409 { (exit 1); exit 1; }; }
16411 # Don't try to exec as it changes $[0], causing all sort of problems
16412 # (the dirname of $[0] is not the place where we might find the
16413 # original and so on. Autoconf is especially sensible to this).
16414 . ./$as_me.lineno
16415 # Exit status is that of the last command.
16416 exit
16420 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16421 *c*,-n*) ECHO_N= ECHO_C='
16422 ' ECHO_T=' ' ;;
16423 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16424 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16425 esac
16427 if expr a : '\(a\)' >/dev/null 2>&1; then
16428 as_expr=expr
16429 else
16430 as_expr=false
16433 rm -f conf$$ conf$$.exe conf$$.file
16434 echo >conf$$.file
16435 if ln -s conf$$.file conf$$ 2>/dev/null; then
16436 # We could just check for DJGPP; but this test a) works b) is more generic
16437 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16438 if test -f conf$$.exe; then
16439 # Don't use ln at all; we don't have any links
16440 as_ln_s='cp -p'
16441 else
16442 as_ln_s='ln -s'
16444 elif ln conf$$.file conf$$ 2>/dev/null; then
16445 as_ln_s=ln
16446 else
16447 as_ln_s='cp -p'
16449 rm -f conf$$ conf$$.exe conf$$.file
16451 if mkdir -p . 2>/dev/null; then
16452 as_mkdir_p=:
16453 else
16454 test -d ./-p && rmdir ./-p
16455 as_mkdir_p=false
16458 as_executable_p="test -f"
16460 # Sed expression to map a string onto a valid CPP name.
16461 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16463 # Sed expression to map a string onto a valid variable name.
16464 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16467 # IFS
16468 # We need space, tab and new line, in precisely that order.
16469 as_nl='
16471 IFS=" $as_nl"
16473 # CDPATH.
16474 $as_unset CDPATH
16476 exec 6>&1
16478 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16479 # report actual input values of CONFIG_FILES etc. instead of their
16480 # values after options handling. Logging --version etc. is OK.
16481 exec 5>>config.log
16483 echo
16484 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16485 ## Running $as_me. ##
16486 _ASBOX
16487 } >&5
16488 cat >&5 <<_CSEOF
16490 This file was extended by $as_me, which was
16491 generated by GNU Autoconf 2.59. Invocation command line was
16493 CONFIG_FILES = $CONFIG_FILES
16494 CONFIG_HEADERS = $CONFIG_HEADERS
16495 CONFIG_LINKS = $CONFIG_LINKS
16496 CONFIG_COMMANDS = $CONFIG_COMMANDS
16497 $ $0 $@
16499 _CSEOF
16500 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16501 echo >&5
16502 _ACEOF
16504 # Files that config.status was made for.
16505 if test -n "$ac_config_files"; then
16506 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16509 if test -n "$ac_config_headers"; then
16510 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16513 if test -n "$ac_config_links"; then
16514 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16517 if test -n "$ac_config_commands"; then
16518 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16521 cat >>$CONFIG_STATUS <<\_ACEOF
16523 ac_cs_usage="\
16524 \`$as_me' instantiates files from templates according to the
16525 current configuration.
16527 Usage: $0 [OPTIONS] [FILE]...
16529 -h, --help print this help, then exit
16530 -V, --version print version number, then exit
16531 -q, --quiet do not print progress messages
16532 -d, --debug don't remove temporary files
16533 --recheck update $as_me by reconfiguring in the same conditions
16534 --file=FILE[:TEMPLATE]
16535 instantiate the configuration file FILE
16536 --header=FILE[:TEMPLATE]
16537 instantiate the configuration header FILE
16539 Configuration files:
16540 $config_files
16542 Configuration headers:
16543 $config_headers
16545 Configuration commands:
16546 $config_commands
16548 Report bugs to <bug-autoconf@gnu.org>."
16549 _ACEOF
16551 cat >>$CONFIG_STATUS <<_ACEOF
16552 ac_cs_version="\\
16553 config.status
16554 configured by $0, generated by GNU Autoconf 2.59,
16555 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16557 Copyright (C) 2003 Free Software Foundation, Inc.
16558 This config.status script is free software; the Free Software Foundation
16559 gives unlimited permission to copy, distribute and modify it."
16560 srcdir=$srcdir
16561 INSTALL="$INSTALL"
16562 _ACEOF
16564 cat >>$CONFIG_STATUS <<\_ACEOF
16565 # If no file are specified by the user, then we need to provide default
16566 # value. By we need to know if files were specified by the user.
16567 ac_need_defaults=:
16568 while test $# != 0
16570 case $1 in
16571 --*=*)
16572 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16573 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16574 ac_shift=:
16577 ac_option=$1
16578 ac_optarg=$2
16579 ac_shift=shift
16581 *) # This is not an option, so the user has probably given explicit
16582 # arguments.
16583 ac_option=$1
16584 ac_need_defaults=false;;
16585 esac
16587 case $ac_option in
16588 # Handling of the options.
16589 _ACEOF
16590 cat >>$CONFIG_STATUS <<\_ACEOF
16591 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16592 ac_cs_recheck=: ;;
16593 --version | --vers* | -V )
16594 echo "$ac_cs_version"; exit 0 ;;
16595 --he | --h)
16596 # Conflict between --help and --header
16597 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16598 Try \`$0 --help' for more information." >&5
16599 echo "$as_me: error: ambiguous option: $1
16600 Try \`$0 --help' for more information." >&2;}
16601 { (exit 1); exit 1; }; };;
16602 --help | --hel | -h )
16603 echo "$ac_cs_usage"; exit 0 ;;
16604 --debug | --d* | -d )
16605 debug=: ;;
16606 --file | --fil | --fi | --f )
16607 $ac_shift
16608 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16609 ac_need_defaults=false;;
16610 --header | --heade | --head | --hea )
16611 $ac_shift
16612 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16613 ac_need_defaults=false;;
16614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16616 ac_cs_silent=: ;;
16618 # This is an error.
16619 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16620 Try \`$0 --help' for more information." >&5
16621 echo "$as_me: error: unrecognized option: $1
16622 Try \`$0 --help' for more information." >&2;}
16623 { (exit 1); exit 1; }; } ;;
16625 *) ac_config_targets="$ac_config_targets $1" ;;
16627 esac
16628 shift
16629 done
16631 ac_configure_extra_args=
16633 if $ac_cs_silent; then
16634 exec 6>/dev/null
16635 ac_configure_extra_args="$ac_configure_extra_args --silent"
16638 _ACEOF
16639 cat >>$CONFIG_STATUS <<_ACEOF
16640 if \$ac_cs_recheck; then
16641 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16642 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16645 _ACEOF
16647 cat >>$CONFIG_STATUS <<_ACEOF
16649 # INIT-COMMANDS section.
16653 srcdir="$srcdir"
16654 host="$host"
16655 target="$target"
16656 with_multisubdir="$with_multisubdir"
16657 with_multisrctop="$with_multisrctop"
16658 with_target_subdir="$with_target_subdir"
16659 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16660 multi_basedir="$multi_basedir"
16661 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16662 CC="$CC"
16663 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16666 # The HP-UX ksh and POSIX shell print the target directory to stdout
16667 # if CDPATH is set.
16668 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16670 sed_quote_subst='$sed_quote_subst'
16671 double_quote_subst='$double_quote_subst'
16672 delay_variable_subst='$delay_variable_subst'
16673 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16674 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16675 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16676 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16677 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16678 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16679 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16680 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16681 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16682 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16683 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16684 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16685 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16686 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16687 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16688 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16689 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16690 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16691 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16692 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16693 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16694 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16695 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16696 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16697 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16698 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16699 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16700 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16701 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16702 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16703 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16704 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16705 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16706 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16707 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16708 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16709 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16710 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16711 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16712 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16713 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16714 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16715 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16716 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"`'
16717 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16718 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16719 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16720 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16721 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16722 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16723 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16724 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16725 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16726 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16727 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16728 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16729 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16730 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16731 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16732 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16733 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16734 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16735 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16736 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16737 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16738 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16739 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16740 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16741 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16742 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16743 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16744 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16745 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16746 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16747 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16748 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16749 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16750 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16751 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16752 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16753 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16754 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16755 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16756 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16757 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16758 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16759 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16760 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16761 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16762 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16763 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16764 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16765 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16766 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16767 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16768 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16769 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16770 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16771 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16772 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16773 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16774 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16775 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16776 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16777 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16778 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16779 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16780 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16781 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16782 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16783 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16784 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16785 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16786 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16787 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16788 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16789 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16790 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16791 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16792 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16793 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16794 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16795 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16796 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16797 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16798 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16799 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16800 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16801 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16802 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16803 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16804 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16805 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16806 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16807 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16808 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16809 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16810 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16811 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16812 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16813 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16814 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16815 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16816 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16817 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16818 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16819 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16820 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16821 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16822 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16823 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16824 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16825 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16826 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16827 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16828 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16829 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16830 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16831 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16832 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16833 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16834 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16836 LTCC='$LTCC'
16837 LTCFLAGS='$LTCFLAGS'
16838 compiler='$compiler_DEFAULT'
16840 # Quote evaled strings.
16841 for var in SED \
16842 GREP \
16843 EGREP \
16844 FGREP \
16845 LD \
16846 NM \
16847 LN_S \
16848 lt_SP2NL \
16849 lt_NL2SP \
16850 reload_flag \
16851 deplibs_check_method \
16852 file_magic_cmd \
16853 AR \
16854 AR_FLAGS \
16855 STRIP \
16856 RANLIB \
16857 CC \
16858 CFLAGS \
16859 compiler \
16860 lt_cv_sys_global_symbol_pipe \
16861 lt_cv_sys_global_symbol_to_cdecl \
16862 lt_cv_sys_global_symbol_to_c_name_address \
16863 SHELL \
16864 ECHO \
16865 lt_prog_compiler_no_builtin_flag \
16866 lt_prog_compiler_wl \
16867 lt_prog_compiler_pic \
16868 lt_prog_compiler_static \
16869 lt_cv_prog_compiler_c_o \
16870 need_locks \
16871 shrext_cmds \
16872 export_dynamic_flag_spec \
16873 whole_archive_flag_spec \
16874 compiler_needs_object \
16875 with_gnu_ld \
16876 allow_undefined_flag \
16877 no_undefined_flag \
16878 hardcode_libdir_flag_spec \
16879 hardcode_libdir_flag_spec_ld \
16880 hardcode_libdir_separator \
16881 fix_srcfile_path \
16882 exclude_expsyms \
16883 include_expsyms \
16884 file_list_spec \
16885 variables_saved_for_relink \
16886 libname_spec \
16887 library_names_spec \
16888 soname_spec \
16889 finish_eval \
16890 old_striplib \
16891 striplib \
16892 predep_objects \
16893 postdep_objects \
16894 predeps \
16895 postdeps \
16896 compiler_lib_search_path \
16897 LD_CXX \
16898 compiler_CXX \
16899 lt_prog_compiler_no_builtin_flag_CXX \
16900 lt_prog_compiler_wl_CXX \
16901 lt_prog_compiler_pic_CXX \
16902 lt_prog_compiler_static_CXX \
16903 lt_cv_prog_compiler_c_o_CXX \
16904 export_dynamic_flag_spec_CXX \
16905 whole_archive_flag_spec_CXX \
16906 compiler_needs_object_CXX \
16907 with_gnu_ld_CXX \
16908 allow_undefined_flag_CXX \
16909 no_undefined_flag_CXX \
16910 hardcode_libdir_flag_spec_CXX \
16911 hardcode_libdir_flag_spec_ld_CXX \
16912 hardcode_libdir_separator_CXX \
16913 fix_srcfile_path_CXX \
16914 exclude_expsyms_CXX \
16915 include_expsyms_CXX \
16916 file_list_spec_CXX \
16917 predep_objects_CXX \
16918 postdep_objects_CXX \
16919 predeps_CXX \
16920 postdeps_CXX \
16921 compiler_lib_search_path_CXX; do
16922 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16923 *[\\\\\\\`\\"\\\$]*)
16924 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16927 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16929 esac
16930 done
16932 # Double-quote double-evaled strings.
16933 for var in reload_cmds \
16934 old_postinstall_cmds \
16935 old_postuninstall_cmds \
16936 old_archive_cmds \
16937 extract_expsyms_cmds \
16938 old_archive_from_new_cmds \
16939 old_archive_from_expsyms_cmds \
16940 archive_cmds \
16941 archive_expsym_cmds \
16942 module_cmds \
16943 module_expsym_cmds \
16944 export_symbols_cmds \
16945 prelink_cmds \
16946 postinstall_cmds \
16947 postuninstall_cmds \
16948 finish_cmds \
16949 sys_lib_search_path_spec \
16950 sys_lib_dlsearch_path_spec \
16951 old_archive_cmds_CXX \
16952 old_archive_from_new_cmds_CXX \
16953 old_archive_from_expsyms_cmds_CXX \
16954 archive_cmds_CXX \
16955 archive_expsym_cmds_CXX \
16956 module_cmds_CXX \
16957 module_expsym_cmds_CXX \
16958 export_symbols_cmds_CXX \
16959 prelink_cmds_CXX; do
16960 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16961 *[\\\\\\\`\\"\\\$]*)
16962 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16965 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16967 esac
16968 done
16970 # Fix-up fallback echo if it was mangled by the above quoting rules.
16971 case \$lt_ECHO in
16972 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16974 esac
16976 ac_aux_dir='$ac_aux_dir'
16977 xsi_shell='$xsi_shell'
16978 lt_shell_append='$lt_shell_append'
16980 # See if we are running on zsh, and set the options which allow our
16981 # commands through without removal of \ escapes INIT.
16982 if test -n "\${ZSH_VERSION+set}" ; then
16983 setopt NO_GLOB_SUBST
16987 PACKAGE='$PACKAGE'
16988 VERSION='$VERSION'
16989 TIMESTAMP='$TIMESTAMP'
16990 RM='$RM'
16991 ofile='$ofile'
16998 _ACEOF
17002 cat >>$CONFIG_STATUS <<\_ACEOF
17003 for ac_config_target in $ac_config_targets
17005 case "$ac_config_target" in
17006 # Handling of arguments.
17007 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17008 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17009 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17010 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17011 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17012 "include/gc_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
17013 "include/gc_ext_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
17014 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17015 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17016 { (exit 1); exit 1; }; };;
17017 esac
17018 done
17020 # If the user did not use the arguments to specify the items to instantiate,
17021 # then the envvar interface is used. Set only those that are not.
17022 # We use the long form for the default assignment because of an extremely
17023 # bizarre bug on SunOS 4.1.3.
17024 if $ac_need_defaults; then
17025 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17026 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17027 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17030 # Have a temporary directory for convenience. Make it in the build tree
17031 # simply because there is no reason to put it here, and in addition,
17032 # creating and moving files from /tmp can sometimes cause problems.
17033 # Create a temporary directory, and hook for its removal unless debugging.
17034 $debug ||
17036 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17037 trap '{ (exit 1); exit 1; }' 1 2 13 15
17040 # Create a (secure) tmp directory for tmp files.
17043 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17044 test -n "$tmp" && test -d "$tmp"
17045 } ||
17047 tmp=./confstat$$-$RANDOM
17048 (umask 077 && mkdir $tmp)
17049 } ||
17051 echo "$me: cannot create a temporary directory in ." >&2
17052 { (exit 1); exit 1; }
17055 _ACEOF
17057 cat >>$CONFIG_STATUS <<_ACEOF
17060 # CONFIG_FILES section.
17063 # No need to generate the scripts if there are no CONFIG_FILES.
17064 # This happens for instance when ./config.status config.h
17065 if test -n "\$CONFIG_FILES"; then
17066 # Protect against being on the right side of a sed subst in config.status.
17067 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17068 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17069 s,@SHELL@,$SHELL,;t t
17070 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17071 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17072 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17073 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17074 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17075 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17076 s,@exec_prefix@,$exec_prefix,;t t
17077 s,@prefix@,$prefix,;t t
17078 s,@program_transform_name@,$program_transform_name,;t t
17079 s,@bindir@,$bindir,;t t
17080 s,@sbindir@,$sbindir,;t t
17081 s,@libexecdir@,$libexecdir,;t t
17082 s,@datadir@,$datadir,;t t
17083 s,@sysconfdir@,$sysconfdir,;t t
17084 s,@sharedstatedir@,$sharedstatedir,;t t
17085 s,@localstatedir@,$localstatedir,;t t
17086 s,@libdir@,$libdir,;t t
17087 s,@includedir@,$includedir,;t t
17088 s,@oldincludedir@,$oldincludedir,;t t
17089 s,@infodir@,$infodir,;t t
17090 s,@mandir@,$mandir,;t t
17091 s,@build_alias@,$build_alias,;t t
17092 s,@host_alias@,$host_alias,;t t
17093 s,@target_alias@,$target_alias,;t t
17094 s,@DEFS@,$DEFS,;t t
17095 s,@ECHO_C@,$ECHO_C,;t t
17096 s,@ECHO_N@,$ECHO_N,;t t
17097 s,@ECHO_T@,$ECHO_T,;t t
17098 s,@LIBS@,$LIBS,;t t
17099 s,@multi_basedir@,$multi_basedir,;t t
17100 s,@build@,$build,;t t
17101 s,@build_cpu@,$build_cpu,;t t
17102 s,@build_vendor@,$build_vendor,;t t
17103 s,@build_os@,$build_os,;t t
17104 s,@host@,$host,;t t
17105 s,@host_cpu@,$host_cpu,;t t
17106 s,@host_vendor@,$host_vendor,;t t
17107 s,@host_os@,$host_os,;t t
17108 s,@target@,$target,;t t
17109 s,@target_cpu@,$target_cpu,;t t
17110 s,@target_vendor@,$target_vendor,;t t
17111 s,@target_os@,$target_os,;t t
17112 s,@target_noncanonical@,$target_noncanonical,;t t
17113 s,@mkinstalldirs@,$mkinstalldirs,;t t
17114 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17115 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17116 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17117 s,@CYGPATH_W@,$CYGPATH_W,;t t
17118 s,@PACKAGE@,$PACKAGE,;t t
17119 s,@VERSION@,$VERSION,;t t
17120 s,@ACLOCAL@,$ACLOCAL,;t t
17121 s,@AUTOCONF@,$AUTOCONF,;t t
17122 s,@AUTOMAKE@,$AUTOMAKE,;t t
17123 s,@AUTOHEADER@,$AUTOHEADER,;t t
17124 s,@MAKEINFO@,$MAKEINFO,;t t
17125 s,@install_sh@,$install_sh,;t t
17126 s,@STRIP@,$STRIP,;t t
17127 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17128 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17129 s,@mkdir_p@,$mkdir_p,;t t
17130 s,@AWK@,$AWK,;t t
17131 s,@SET_MAKE@,$SET_MAKE,;t t
17132 s,@am__leading_dot@,$am__leading_dot,;t t
17133 s,@AMTAR@,$AMTAR,;t t
17134 s,@am__tar@,$am__tar,;t t
17135 s,@am__untar@,$am__untar,;t t
17136 s,@CC@,$CC,;t t
17137 s,@ac_ct_CC@,$ac_ct_CC,;t t
17138 s,@EXEEXT@,$EXEEXT,;t t
17139 s,@OBJEXT@,$OBJEXT,;t t
17140 s,@DEPDIR@,$DEPDIR,;t t
17141 s,@am__include@,$am__include,;t t
17142 s,@am__quote@,$am__quote,;t t
17143 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17144 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17145 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17146 s,@CCDEPMODE@,$CCDEPMODE,;t t
17147 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17148 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17149 s,@CXX@,$CXX,;t t
17150 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17151 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17152 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17153 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17154 s,@CFLAGS@,$CFLAGS,;t t
17155 s,@CXXFLAGS@,$CXXFLAGS,;t t
17156 s,@CCAS@,$CCAS,;t t
17157 s,@CCASFLAGS@,$CCASFLAGS,;t t
17158 s,@AS@,$AS,;t t
17159 s,@ac_ct_AS@,$ac_ct_AS,;t t
17160 s,@AR@,$AR,;t t
17161 s,@ac_ct_AR@,$ac_ct_AR,;t t
17162 s,@RANLIB@,$RANLIB,;t t
17163 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17164 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17165 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17166 s,@MAINT@,$MAINT,;t t
17167 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
17168 s,@LIBTOOL@,$LIBTOOL,;t t
17169 s,@SED@,$SED,;t t
17170 s,@EGREP@,$EGREP,;t t
17171 s,@FGREP@,$FGREP,;t t
17172 s,@GREP@,$GREP,;t t
17173 s,@LD@,$LD,;t t
17174 s,@DUMPBIN@,$DUMPBIN,;t t
17175 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
17176 s,@NM@,$NM,;t t
17177 s,@LN_S@,$LN_S,;t t
17178 s,@lt_ECHO@,$lt_ECHO,;t t
17179 s,@CPP@,$CPP,;t t
17180 s,@CPPFLAGS@,$CPPFLAGS,;t t
17181 s,@LDFLAGS@,$LDFLAGS,;t t
17182 s,@CXXCPP@,$CXXCPP,;t t
17183 s,@THREADLIBS@,$THREADLIBS,;t t
17184 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
17185 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
17186 s,@extra_ldflags_libgc@,$extra_ldflags_libgc,;t t
17187 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
17188 s,@target_all@,$target_all,;t t
17189 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
17190 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
17191 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
17192 s,@addobjs@,$addobjs,;t t
17193 s,@addincludes@,$addincludes,;t t
17194 s,@addlibs@,$addlibs,;t t
17195 s,@addtests@,$addtests,;t t
17196 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
17197 s,@toolexecdir@,$toolexecdir,;t t
17198 s,@toolexeclibdir@,$toolexeclibdir,;t t
17199 s,@LIBOBJS@,$LIBOBJS,;t t
17200 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17201 CEOF
17203 _ACEOF
17205 cat >>$CONFIG_STATUS <<\_ACEOF
17206 # Split the substitutions into bite-sized pieces for seds with
17207 # small command number limits, like on Digital OSF/1 and HP-UX.
17208 ac_max_sed_lines=48
17209 ac_sed_frag=1 # Number of current file.
17210 ac_beg=1 # First line for current file.
17211 ac_end=$ac_max_sed_lines # Line after last line for current file.
17212 ac_more_lines=:
17213 ac_sed_cmds=
17214 while $ac_more_lines; do
17215 if test $ac_beg -gt 1; then
17216 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17217 else
17218 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17220 if test ! -s $tmp/subs.frag; then
17221 ac_more_lines=false
17222 else
17223 # The purpose of the label and of the branching condition is to
17224 # speed up the sed processing (if there are no `@' at all, there
17225 # is no need to browse any of the substitutions).
17226 # These are the two extra sed commands mentioned above.
17227 (echo ':t
17228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17229 if test -z "$ac_sed_cmds"; then
17230 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17231 else
17232 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17234 ac_sed_frag=`expr $ac_sed_frag + 1`
17235 ac_beg=$ac_end
17236 ac_end=`expr $ac_end + $ac_max_sed_lines`
17238 done
17239 if test -z "$ac_sed_cmds"; then
17240 ac_sed_cmds=cat
17242 fi # test -n "$CONFIG_FILES"
17244 _ACEOF
17245 cat >>$CONFIG_STATUS <<\_ACEOF
17246 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17247 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17248 case $ac_file in
17249 - | *:- | *:-:* ) # input from stdin
17250 cat >$tmp/stdin
17251 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17253 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17254 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17255 * ) ac_file_in=$ac_file.in ;;
17256 esac
17258 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17259 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17260 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17261 X"$ac_file" : 'X\(//\)[^/]' \| \
17262 X"$ac_file" : 'X\(//\)$' \| \
17263 X"$ac_file" : 'X\(/\)' \| \
17264 . : '\(.\)' 2>/dev/null ||
17265 echo X"$ac_file" |
17266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17268 /^X\(\/\/\)$/{ s//\1/; q; }
17269 /^X\(\/\).*/{ s//\1/; q; }
17270 s/.*/./; q'`
17271 { if $as_mkdir_p; then
17272 mkdir -p "$ac_dir"
17273 else
17274 as_dir="$ac_dir"
17275 as_dirs=
17276 while test ! -d "$as_dir"; do
17277 as_dirs="$as_dir $as_dirs"
17278 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17279 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17280 X"$as_dir" : 'X\(//\)[^/]' \| \
17281 X"$as_dir" : 'X\(//\)$' \| \
17282 X"$as_dir" : 'X\(/\)' \| \
17283 . : '\(.\)' 2>/dev/null ||
17284 echo X"$as_dir" |
17285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17286 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17287 /^X\(\/\/\)$/{ s//\1/; q; }
17288 /^X\(\/\).*/{ s//\1/; q; }
17289 s/.*/./; q'`
17290 done
17291 test ! -n "$as_dirs" || mkdir $as_dirs
17292 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17293 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17294 { (exit 1); exit 1; }; }; }
17296 ac_builddir=.
17298 if test "$ac_dir" != .; then
17299 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17300 # A "../" for each directory in $ac_dir_suffix.
17301 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17302 else
17303 ac_dir_suffix= ac_top_builddir=
17306 case $srcdir in
17307 .) # No --srcdir option. We are building in place.
17308 ac_srcdir=.
17309 if test -z "$ac_top_builddir"; then
17310 ac_top_srcdir=.
17311 else
17312 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17313 fi ;;
17314 [\\/]* | ?:[\\/]* ) # Absolute path.
17315 ac_srcdir=$srcdir$ac_dir_suffix;
17316 ac_top_srcdir=$srcdir ;;
17317 *) # Relative path.
17318 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17319 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17320 esac
17322 # Do not use `cd foo && pwd` to compute absolute paths, because
17323 # the directories may not exist.
17324 case `pwd` in
17325 .) ac_abs_builddir="$ac_dir";;
17327 case "$ac_dir" in
17328 .) ac_abs_builddir=`pwd`;;
17329 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17330 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17331 esac;;
17332 esac
17333 case $ac_abs_builddir in
17334 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17336 case ${ac_top_builddir}. in
17337 .) ac_abs_top_builddir=$ac_abs_builddir;;
17338 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17339 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17340 esac;;
17341 esac
17342 case $ac_abs_builddir in
17343 .) ac_abs_srcdir=$ac_srcdir;;
17345 case $ac_srcdir in
17346 .) ac_abs_srcdir=$ac_abs_builddir;;
17347 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17348 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17349 esac;;
17350 esac
17351 case $ac_abs_builddir in
17352 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17354 case $ac_top_srcdir in
17355 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17356 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17357 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17358 esac;;
17359 esac
17362 case $INSTALL in
17363 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17364 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17365 esac
17367 if test x"$ac_file" != x-; then
17368 { echo "$as_me:$LINENO: creating $ac_file" >&5
17369 echo "$as_me: creating $ac_file" >&6;}
17370 rm -f "$ac_file"
17372 # Let's still pretend it is `configure' which instantiates (i.e., don't
17373 # use $as_me), people would be surprised to read:
17374 # /* config.h. Generated by config.status. */
17375 if test x"$ac_file" = x-; then
17376 configure_input=
17377 else
17378 configure_input="$ac_file. "
17380 configure_input=$configure_input"Generated from `echo $ac_file_in |
17381 sed 's,.*/,,'` by configure."
17383 # First look for the input files in the build tree, otherwise in the
17384 # src tree.
17385 ac_file_inputs=`IFS=:
17386 for f in $ac_file_in; do
17387 case $f in
17388 -) echo $tmp/stdin ;;
17389 [\\/$]*)
17390 # Absolute (can't be DOS-style, as IFS=:)
17391 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17392 echo "$as_me: error: cannot find input file: $f" >&2;}
17393 { (exit 1); exit 1; }; }
17394 echo "$f";;
17395 *) # Relative
17396 if test -f "$f"; then
17397 # Build tree
17398 echo "$f"
17399 elif test -f "$srcdir/$f"; then
17400 # Source tree
17401 echo "$srcdir/$f"
17402 else
17403 # /dev/null tree
17404 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17405 echo "$as_me: error: cannot find input file: $f" >&2;}
17406 { (exit 1); exit 1; }; }
17407 fi;;
17408 esac
17409 done` || { (exit 1); exit 1; }
17410 _ACEOF
17411 cat >>$CONFIG_STATUS <<_ACEOF
17412 sed "$ac_vpsub
17413 $extrasub
17414 _ACEOF
17415 cat >>$CONFIG_STATUS <<\_ACEOF
17417 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17418 s,@configure_input@,$configure_input,;t t
17419 s,@srcdir@,$ac_srcdir,;t t
17420 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17421 s,@top_srcdir@,$ac_top_srcdir,;t t
17422 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17423 s,@builddir@,$ac_builddir,;t t
17424 s,@abs_builddir@,$ac_abs_builddir,;t t
17425 s,@top_builddir@,$ac_top_builddir,;t t
17426 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17427 s,@INSTALL@,$ac_INSTALL,;t t
17428 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17429 rm -f $tmp/stdin
17430 if test x"$ac_file" != x-; then
17431 mv $tmp/out $ac_file
17432 else
17433 cat $tmp/out
17434 rm -f $tmp/out
17437 done
17438 _ACEOF
17439 cat >>$CONFIG_STATUS <<\_ACEOF
17442 # CONFIG_HEADER section.
17445 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17446 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17448 # ac_d sets the value in "#define NAME VALUE" lines.
17449 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17450 ac_dB='[ ].*$,\1#\2'
17451 ac_dC=' '
17452 ac_dD=',;t'
17453 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17454 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17455 ac_uB='$,\1#\2define\3'
17456 ac_uC=' '
17457 ac_uD=',;t'
17459 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17460 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17461 case $ac_file in
17462 - | *:- | *:-:* ) # input from stdin
17463 cat >$tmp/stdin
17464 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17465 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17466 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17467 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17468 * ) ac_file_in=$ac_file.in ;;
17469 esac
17471 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17472 echo "$as_me: creating $ac_file" >&6;}
17474 # First look for the input files in the build tree, otherwise in the
17475 # src tree.
17476 ac_file_inputs=`IFS=:
17477 for f in $ac_file_in; do
17478 case $f in
17479 -) echo $tmp/stdin ;;
17480 [\\/$]*)
17481 # Absolute (can't be DOS-style, as IFS=:)
17482 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17483 echo "$as_me: error: cannot find input file: $f" >&2;}
17484 { (exit 1); exit 1; }; }
17485 # Do quote $f, to prevent DOS paths from being IFS'd.
17486 echo "$f";;
17487 *) # Relative
17488 if test -f "$f"; then
17489 # Build tree
17490 echo "$f"
17491 elif test -f "$srcdir/$f"; then
17492 # Source tree
17493 echo "$srcdir/$f"
17494 else
17495 # /dev/null tree
17496 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17497 echo "$as_me: error: cannot find input file: $f" >&2;}
17498 { (exit 1); exit 1; }; }
17499 fi;;
17500 esac
17501 done` || { (exit 1); exit 1; }
17502 # Remove the trailing spaces.
17503 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17505 _ACEOF
17507 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17508 # `conftest.undefs', that substitutes the proper values into
17509 # config.h.in to produce config.h. The first handles `#define'
17510 # templates, and the second `#undef' templates.
17511 # And first: Protect against being on the right side of a sed subst in
17512 # config.status. Protect against being in an unquoted here document
17513 # in config.status.
17514 rm -f conftest.defines conftest.undefs
17515 # Using a here document instead of a string reduces the quoting nightmare.
17516 # Putting comments in sed scripts is not portable.
17518 # `end' is used to avoid that the second main sed command (meant for
17519 # 0-ary CPP macros) applies to n-ary macro definitions.
17520 # See the Autoconf documentation for `clear'.
17521 cat >confdef2sed.sed <<\_ACEOF
17522 s/[\\&,]/\\&/g
17523 s,[\\$`],\\&,g
17524 t clear
17525 : clear
17526 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17527 t end
17528 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17529 : end
17530 _ACEOF
17531 # If some macros were called several times there might be several times
17532 # the same #defines, which is useless. Nevertheless, we may not want to
17533 # sort them, since we want the *last* AC-DEFINE to be honored.
17534 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17535 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17536 rm -f confdef2sed.sed
17538 # This sed command replaces #undef with comments. This is necessary, for
17539 # example, in the case of _POSIX_SOURCE, which is predefined and required
17540 # on some systems where configure will not decide to define it.
17541 cat >>conftest.undefs <<\_ACEOF
17542 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17543 _ACEOF
17545 # Break up conftest.defines because some shells have a limit on the size
17546 # of here documents, and old seds have small limits too (100 cmds).
17547 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17548 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17549 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17550 echo ' :' >>$CONFIG_STATUS
17551 rm -f conftest.tail
17552 while grep . conftest.defines >/dev/null
17554 # Write a limited-size here document to $tmp/defines.sed.
17555 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17556 # Speed up: don't consider the non `#define' lines.
17557 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17558 # Work around the forget-to-reset-the-flag bug.
17559 echo 't clr' >>$CONFIG_STATUS
17560 echo ': clr' >>$CONFIG_STATUS
17561 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17562 echo 'CEOF
17563 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17564 rm -f $tmp/in
17565 mv $tmp/out $tmp/in
17566 ' >>$CONFIG_STATUS
17567 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17568 rm -f conftest.defines
17569 mv conftest.tail conftest.defines
17570 done
17571 rm -f conftest.defines
17572 echo ' fi # grep' >>$CONFIG_STATUS
17573 echo >>$CONFIG_STATUS
17575 # Break up conftest.undefs because some shells have a limit on the size
17576 # of here documents, and old seds have small limits too (100 cmds).
17577 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17578 rm -f conftest.tail
17579 while grep . conftest.undefs >/dev/null
17581 # Write a limited-size here document to $tmp/undefs.sed.
17582 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17583 # Speed up: don't consider the non `#undef'
17584 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17585 # Work around the forget-to-reset-the-flag bug.
17586 echo 't clr' >>$CONFIG_STATUS
17587 echo ': clr' >>$CONFIG_STATUS
17588 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17589 echo 'CEOF
17590 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17591 rm -f $tmp/in
17592 mv $tmp/out $tmp/in
17593 ' >>$CONFIG_STATUS
17594 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17595 rm -f conftest.undefs
17596 mv conftest.tail conftest.undefs
17597 done
17598 rm -f conftest.undefs
17600 cat >>$CONFIG_STATUS <<\_ACEOF
17601 # Let's still pretend it is `configure' which instantiates (i.e., don't
17602 # use $as_me), people would be surprised to read:
17603 # /* config.h. Generated by config.status. */
17604 if test x"$ac_file" = x-; then
17605 echo "/* Generated by configure. */" >$tmp/config.h
17606 else
17607 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17609 cat $tmp/in >>$tmp/config.h
17610 rm -f $tmp/in
17611 if test x"$ac_file" != x-; then
17612 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17613 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17614 echo "$as_me: $ac_file is unchanged" >&6;}
17615 else
17616 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17617 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17618 X"$ac_file" : 'X\(//\)[^/]' \| \
17619 X"$ac_file" : 'X\(//\)$' \| \
17620 X"$ac_file" : 'X\(/\)' \| \
17621 . : '\(.\)' 2>/dev/null ||
17622 echo X"$ac_file" |
17623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17625 /^X\(\/\/\)$/{ s//\1/; q; }
17626 /^X\(\/\).*/{ s//\1/; q; }
17627 s/.*/./; q'`
17628 { if $as_mkdir_p; then
17629 mkdir -p "$ac_dir"
17630 else
17631 as_dir="$ac_dir"
17632 as_dirs=
17633 while test ! -d "$as_dir"; do
17634 as_dirs="$as_dir $as_dirs"
17635 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17636 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17637 X"$as_dir" : 'X\(//\)[^/]' \| \
17638 X"$as_dir" : 'X\(//\)$' \| \
17639 X"$as_dir" : 'X\(/\)' \| \
17640 . : '\(.\)' 2>/dev/null ||
17641 echo X"$as_dir" |
17642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17644 /^X\(\/\/\)$/{ s//\1/; q; }
17645 /^X\(\/\).*/{ s//\1/; q; }
17646 s/.*/./; q'`
17647 done
17648 test ! -n "$as_dirs" || mkdir $as_dirs
17649 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17650 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17651 { (exit 1); exit 1; }; }; }
17653 rm -f $ac_file
17654 mv $tmp/config.h $ac_file
17656 else
17657 cat $tmp/config.h
17658 rm -f $tmp/config.h
17660 # Compute $ac_file's index in $config_headers.
17661 _am_stamp_count=1
17662 for _am_header in $config_headers :; do
17663 case $_am_header in
17664 $ac_file | $ac_file:* )
17665 break ;;
17667 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17668 esac
17669 done
17670 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17671 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17672 X$ac_file : 'X\(//\)[^/]' \| \
17673 X$ac_file : 'X\(//\)$' \| \
17674 X$ac_file : 'X\(/\)' \| \
17675 . : '\(.\)' 2>/dev/null ||
17676 echo X$ac_file |
17677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17678 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17679 /^X\(\/\/\)$/{ s//\1/; q; }
17680 /^X\(\/\).*/{ s//\1/; q; }
17681 s/.*/./; q'`/stamp-h$_am_stamp_count
17682 done
17683 _ACEOF
17684 cat >>$CONFIG_STATUS <<\_ACEOF
17687 # CONFIG_COMMANDS section.
17689 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17690 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17691 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17692 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17693 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17694 X"$ac_dest" : 'X\(//\)[^/]' \| \
17695 X"$ac_dest" : 'X\(//\)$' \| \
17696 X"$ac_dest" : 'X\(/\)' \| \
17697 . : '\(.\)' 2>/dev/null ||
17698 echo X"$ac_dest" |
17699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17701 /^X\(\/\/\)$/{ s//\1/; q; }
17702 /^X\(\/\).*/{ s//\1/; q; }
17703 s/.*/./; q'`
17704 { if $as_mkdir_p; then
17705 mkdir -p "$ac_dir"
17706 else
17707 as_dir="$ac_dir"
17708 as_dirs=
17709 while test ! -d "$as_dir"; do
17710 as_dirs="$as_dir $as_dirs"
17711 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17713 X"$as_dir" : 'X\(//\)[^/]' \| \
17714 X"$as_dir" : 'X\(//\)$' \| \
17715 X"$as_dir" : 'X\(/\)' \| \
17716 . : '\(.\)' 2>/dev/null ||
17717 echo X"$as_dir" |
17718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17720 /^X\(\/\/\)$/{ s//\1/; q; }
17721 /^X\(\/\).*/{ s//\1/; q; }
17722 s/.*/./; q'`
17723 done
17724 test ! -n "$as_dirs" || mkdir $as_dirs
17725 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17726 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17727 { (exit 1); exit 1; }; }; }
17729 ac_builddir=.
17731 if test "$ac_dir" != .; then
17732 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17733 # A "../" for each directory in $ac_dir_suffix.
17734 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17735 else
17736 ac_dir_suffix= ac_top_builddir=
17739 case $srcdir in
17740 .) # No --srcdir option. We are building in place.
17741 ac_srcdir=.
17742 if test -z "$ac_top_builddir"; then
17743 ac_top_srcdir=.
17744 else
17745 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17746 fi ;;
17747 [\\/]* | ?:[\\/]* ) # Absolute path.
17748 ac_srcdir=$srcdir$ac_dir_suffix;
17749 ac_top_srcdir=$srcdir ;;
17750 *) # Relative path.
17751 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17752 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17753 esac
17755 # Do not use `cd foo && pwd` to compute absolute paths, because
17756 # the directories may not exist.
17757 case `pwd` in
17758 .) ac_abs_builddir="$ac_dir";;
17760 case "$ac_dir" in
17761 .) ac_abs_builddir=`pwd`;;
17762 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17763 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17764 esac;;
17765 esac
17766 case $ac_abs_builddir in
17767 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17769 case ${ac_top_builddir}. in
17770 .) ac_abs_top_builddir=$ac_abs_builddir;;
17771 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17772 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17773 esac;;
17774 esac
17775 case $ac_abs_builddir in
17776 .) ac_abs_srcdir=$ac_srcdir;;
17778 case $ac_srcdir in
17779 .) ac_abs_srcdir=$ac_abs_builddir;;
17780 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17781 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17782 esac;;
17783 esac
17784 case $ac_abs_builddir in
17785 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17787 case $ac_top_srcdir in
17788 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17789 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17790 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17791 esac;;
17792 esac
17795 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17796 echo "$as_me: executing $ac_dest commands" >&6;}
17797 case $ac_dest in
17798 default-1 )
17799 # Only add multilib support code if we just rebuilt the top-level
17800 # Makefile.
17801 case " $CONFIG_FILES " in
17802 *" Makefile "*)
17803 ac_file=Makefile . ${multi_basedir}/config-ml.in
17805 esac ;;
17806 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17807 # Strip MF so we end up with the name of the file.
17808 mf=`echo "$mf" | sed -e 's/:.*$//'`
17809 # Check whether this is an Automake generated Makefile or not.
17810 # We used to match only the files named `Makefile.in', but
17811 # some people rename them; so instead we look at the file content.
17812 # Grep'ing the first line is not enough: some people post-process
17813 # each Makefile.in and add a new line on top of each file to say so.
17814 # So let's grep whole file.
17815 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17816 dirpart=`(dirname "$mf") 2>/dev/null ||
17817 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17818 X"$mf" : 'X\(//\)[^/]' \| \
17819 X"$mf" : 'X\(//\)$' \| \
17820 X"$mf" : 'X\(/\)' \| \
17821 . : '\(.\)' 2>/dev/null ||
17822 echo X"$mf" |
17823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17824 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17825 /^X\(\/\/\)$/{ s//\1/; q; }
17826 /^X\(\/\).*/{ s//\1/; q; }
17827 s/.*/./; q'`
17828 else
17829 continue
17831 # Extract the definition of DEPDIR, am__include, and am__quote
17832 # from the Makefile without running `make'.
17833 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17834 test -z "$DEPDIR" && continue
17835 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17836 test -z "am__include" && continue
17837 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17838 # When using ansi2knr, U may be empty or an underscore; expand it
17839 U=`sed -n 's/^U = //p' < "$mf"`
17840 # Find all dependency output files, they are included files with
17841 # $(DEPDIR) in their names. We invoke sed twice because it is the
17842 # simplest approach to changing $(DEPDIR) to its actual value in the
17843 # expansion.
17844 for file in `sed -n "
17845 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17846 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17847 # Make sure the directory exists.
17848 test -f "$dirpart/$file" && continue
17849 fdir=`(dirname "$file") 2>/dev/null ||
17850 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17851 X"$file" : 'X\(//\)[^/]' \| \
17852 X"$file" : 'X\(//\)$' \| \
17853 X"$file" : 'X\(/\)' \| \
17854 . : '\(.\)' 2>/dev/null ||
17855 echo X"$file" |
17856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17857 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17858 /^X\(\/\/\)$/{ s//\1/; q; }
17859 /^X\(\/\).*/{ s//\1/; q; }
17860 s/.*/./; q'`
17861 { if $as_mkdir_p; then
17862 mkdir -p $dirpart/$fdir
17863 else
17864 as_dir=$dirpart/$fdir
17865 as_dirs=
17866 while test ! -d "$as_dir"; do
17867 as_dirs="$as_dir $as_dirs"
17868 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17870 X"$as_dir" : 'X\(//\)[^/]' \| \
17871 X"$as_dir" : 'X\(//\)$' \| \
17872 X"$as_dir" : 'X\(/\)' \| \
17873 . : '\(.\)' 2>/dev/null ||
17874 echo X"$as_dir" |
17875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17877 /^X\(\/\/\)$/{ s//\1/; q; }
17878 /^X\(\/\).*/{ s//\1/; q; }
17879 s/.*/./; q'`
17880 done
17881 test ! -n "$as_dirs" || mkdir $as_dirs
17882 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17883 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17884 { (exit 1); exit 1; }; }; }
17886 # echo "creating $dirpart/$file"
17887 echo '# dummy' > "$dirpart/$file"
17888 done
17889 done
17891 libtool )
17893 # See if we are running on zsh, and set the options which allow our
17894 # commands through without removal of \ escapes.
17895 if test -n "${ZSH_VERSION+set}" ; then
17896 setopt NO_GLOB_SUBST
17899 cfgfile="${ofile}T"
17900 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17901 $RM "$cfgfile"
17903 cat <<_LT_EOF >> "$cfgfile"
17904 #! $SHELL
17906 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17907 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
17908 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17909 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17911 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17912 # 2006, 2007 Free Software Foundation, Inc.
17914 # This file is part of GNU Libtool:
17915 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17917 # This program is free software; you can redistribute it and/or modify
17918 # it under the terms of the GNU General Public License as published by
17919 # the Free Software Foundation; either version 2 of the License, or
17920 # (at your option) any later version.
17922 # This program is distributed in the hope that it will be useful, but
17923 # WITHOUT ANY WARRANTY; without even the implied warranty of
17924 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17925 # General Public License for more details.
17927 # You should have received a copy of the GNU General Public License
17928 # along with this program; if not, a copy can be downloaded from
17929 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
17930 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17931 # MA 02110-1301, USA.
17933 # As a special exception to the GNU General Public License, if you
17934 # distribute this file as part of a program that contains a
17935 # configuration script generated by Autoconf, you may include it under
17936 # the same distribution terms that you use for the rest of that program.
17939 # The names of the tagged configurations supported by this script.
17940 available_tags="CXX "
17942 # ### BEGIN LIBTOOL CONFIG
17944 # Which release of libtool.m4 was used?
17945 macro_version=$macro_version
17946 macro_revision=$macro_revision
17948 # Whether or not to build shared libraries.
17949 build_libtool_libs=$enable_shared
17951 # Whether or not to build static libraries.
17952 build_old_libs=$enable_static
17954 # What type of objects to build.
17955 pic_mode=$pic_mode
17957 # Whether or not to optimize for fast installation.
17958 fast_install=$enable_fast_install
17960 # The host system.
17961 host_alias=$host_alias
17962 host=$host
17963 host_os=$host_os
17965 # The build system.
17966 build_alias=$build_alias
17967 build=$build
17968 build_os=$build_os
17970 # A sed program that does not truncate output.
17971 SED=$lt_SED
17973 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17974 Xsed="\$SED -e 1s/^X//"
17976 # A grep program that handles long lines.
17977 GREP=$lt_GREP
17979 # An ERE matcher.
17980 EGREP=$lt_EGREP
17982 # A literal string matcher.
17983 FGREP=$lt_FGREP
17985 # A BSD- or MS-compatible name lister.
17986 NM=$lt_NM
17988 # Whether we need soft or hard links.
17989 LN_S=$lt_LN_S
17991 # What is the maximum length of a command?
17992 max_cmd_len=$max_cmd_len
17994 # Object file suffix (normally "o").
17995 objext=$ac_objext
17997 # Executable file suffix (normally "").
17998 exeext=$exeext
18000 # whether the shell understands "unset".
18001 lt_unset=$lt_unset
18003 # turn spaces into newlines.
18004 SP2NL=$lt_lt_SP2NL
18006 # turn newlines into spaces.
18007 NL2SP=$lt_lt_NL2SP
18009 # How to create reloadable object files.
18010 reload_flag=$lt_reload_flag
18011 reload_cmds=$lt_reload_cmds
18013 # Method to check whether dependent libraries are shared objects.
18014 deplibs_check_method=$lt_deplibs_check_method
18016 # Command to use when deplibs_check_method == "file_magic".
18017 file_magic_cmd=$lt_file_magic_cmd
18019 # The archiver.
18020 AR=$lt_AR
18021 AR_FLAGS=$lt_AR_FLAGS
18023 # A symbol stripping program.
18024 STRIP=$lt_STRIP
18026 # Commands used to install an old-style archive.
18027 RANLIB=$lt_RANLIB
18028 old_postinstall_cmds=$lt_old_postinstall_cmds
18029 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18031 # A C compiler.
18032 LTCC=$lt_CC
18034 # LTCC compiler flags.
18035 LTCFLAGS=$lt_CFLAGS
18037 # Take the output of nm and produce a listing of raw symbols and C names.
18038 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18040 # Transform the output of nm in a proper C declaration.
18041 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18043 # Transform the output of nm in a C name address pair.
18044 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18046 # The name of the directory that contains temporary libtool files.
18047 objdir=$objdir
18049 # Shell to use when invoking shell scripts.
18050 SHELL=$lt_SHELL
18052 # An echo program that does not interpret backslashes.
18053 ECHO=$lt_ECHO
18055 # Used to examine libraries when file_magic_cmd begins with "file".
18056 MAGIC_CMD=$MAGIC_CMD
18058 # Must we lock files when doing compilation?
18059 need_locks=$lt_need_locks
18061 # Old archive suffix (normally "a").
18062 libext=$libext
18064 # Shared library suffix (normally ".so").
18065 shrext_cmds=$lt_shrext_cmds
18067 # The commands to extract the exported symbol list from a shared archive.
18068 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18070 # Variables whose values should be saved in libtool wrapper scripts and
18071 # restored at link time.
18072 variables_saved_for_relink=$lt_variables_saved_for_relink
18074 # Do we need the "lib" prefix for modules?
18075 need_lib_prefix=$need_lib_prefix
18077 # Do we need a version for libraries?
18078 need_version=$need_version
18080 # Library versioning type.
18081 version_type=$version_type
18083 # Shared library runtime path variable.
18084 runpath_var=$runpath_var
18086 # Shared library path variable.
18087 shlibpath_var=$shlibpath_var
18089 # Is shlibpath searched before the hard-coded library search path?
18090 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18092 # Format of library name prefix.
18093 libname_spec=$lt_libname_spec
18095 # List of archive names. First name is the real one, the rest are links.
18096 # The last name is the one that the linker finds with -lNAME
18097 library_names_spec=$lt_library_names_spec
18099 # The coded name of the library, if different from the real name.
18100 soname_spec=$lt_soname_spec
18102 # Command to use after installation of a shared archive.
18103 postinstall_cmds=$lt_postinstall_cmds
18105 # Command to use after uninstallation of a shared archive.
18106 postuninstall_cmds=$lt_postuninstall_cmds
18108 # Commands used to finish a libtool library installation in a directory.
18109 finish_cmds=$lt_finish_cmds
18111 # As "finish_cmds", except a single script fragment to be evaled but
18112 # not shown.
18113 finish_eval=$lt_finish_eval
18115 # Whether we should hardcode library paths into libraries.
18116 hardcode_into_libs=$hardcode_into_libs
18118 # Compile-time system search path for libraries.
18119 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18121 # Run-time system search path for libraries.
18122 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18124 # Whether dlopen is supported.
18125 dlopen_support=$enable_dlopen
18127 # Whether dlopen of programs is supported.
18128 dlopen_self=$enable_dlopen_self
18130 # Whether dlopen of statically linked programs is supported.
18131 dlopen_self_static=$enable_dlopen_self_static
18133 # Commands to strip libraries.
18134 old_striplib=$lt_old_striplib
18135 striplib=$lt_striplib
18138 # The linker used to build libraries.
18139 LD=$lt_LD
18141 # Commands used to build an old-style archive.
18142 old_archive_cmds=$lt_old_archive_cmds
18144 # A language specific compiler.
18145 CC=$lt_compiler
18147 # Is the compiler the GNU compiler?
18148 with_gcc=$GCC
18150 # Compiler flag to turn off builtin functions.
18151 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18153 # How to pass a linker flag through the compiler.
18154 wl=$lt_lt_prog_compiler_wl
18156 # Additional compiler flags for building library objects.
18157 pic_flag=$lt_lt_prog_compiler_pic
18159 # Compiler flag to prevent dynamic linking.
18160 link_static_flag=$lt_lt_prog_compiler_static
18162 # Does compiler simultaneously support -c and -o options?
18163 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18165 # Whether or not to add -lc for building shared libraries.
18166 build_libtool_need_lc=$archive_cmds_need_lc
18168 # Whether or not to disallow shared libs when runtime libs are static.
18169 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18171 # Compiler flag to allow reflexive dlopens.
18172 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18174 # Compiler flag to generate shared objects directly from archives.
18175 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18177 # Whether the compiler copes with passing no objects directly.
18178 compiler_needs_object=$lt_compiler_needs_object
18180 # Create an old-style archive from a shared archive.
18181 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18183 # Create a temporary old-style archive to link instead of a shared archive.
18184 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18186 # Commands used to build a shared archive.
18187 archive_cmds=$lt_archive_cmds
18188 archive_expsym_cmds=$lt_archive_expsym_cmds
18190 # Commands used to build a loadable module if different from building
18191 # a shared archive.
18192 module_cmds=$lt_module_cmds
18193 module_expsym_cmds=$lt_module_expsym_cmds
18195 # Whether we are building with GNU ld or not.
18196 with_gnu_ld=$lt_with_gnu_ld
18198 # Flag that allows shared libraries with undefined symbols to be built.
18199 allow_undefined_flag=$lt_allow_undefined_flag
18201 # Flag that enforces no undefined symbols.
18202 no_undefined_flag=$lt_no_undefined_flag
18204 # Flag to hardcode \$libdir into a binary during linking.
18205 # This must work even if \$libdir does not exist
18206 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18208 # If ld is used when linking, flag to hardcode \$libdir into a binary
18209 # during linking. This must work even if \$libdir does not exist.
18210 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18212 # Whether we need a single "-rpath" flag with a separated argument.
18213 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18215 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18216 # DIR into the resulting binary.
18217 hardcode_direct=$hardcode_direct
18219 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18220 # DIR into the resulting binary and the resulting library dependency is
18221 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18222 # library is relocated.
18223 hardcode_direct_absolute=$hardcode_direct_absolute
18225 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18226 # into the resulting binary.
18227 hardcode_minus_L=$hardcode_minus_L
18229 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18230 # into the resulting binary.
18231 hardcode_shlibpath_var=$hardcode_shlibpath_var
18233 # Set to "yes" if building a shared library automatically hardcodes DIR
18234 # into the library and all subsequent libraries and executables linked
18235 # against it.
18236 hardcode_automatic=$hardcode_automatic
18238 # Set to yes if linker adds runtime paths of dependent libraries
18239 # to runtime path list.
18240 inherit_rpath=$inherit_rpath
18242 # Whether libtool must link a program against all its dependency libraries.
18243 link_all_deplibs=$link_all_deplibs
18245 # Fix the shell variable \$srcfile for the compiler.
18246 fix_srcfile_path=$lt_fix_srcfile_path
18248 # Set to "yes" if exported symbols are required.
18249 always_export_symbols=$always_export_symbols
18251 # The commands to list exported symbols.
18252 export_symbols_cmds=$lt_export_symbols_cmds
18254 # Symbols that should not be listed in the preloaded symbols.
18255 exclude_expsyms=$lt_exclude_expsyms
18257 # Symbols that must always be exported.
18258 include_expsyms=$lt_include_expsyms
18260 # Commands necessary for linking programs (against libraries) with templates.
18261 prelink_cmds=$lt_prelink_cmds
18263 # Specify filename containing input files.
18264 file_list_spec=$lt_file_list_spec
18266 # How to hardcode a shared library path into an executable.
18267 hardcode_action=$hardcode_action
18269 # Dependencies to place before and after the objects being linked to
18270 # create a shared library.
18271 predep_objects=$lt_predep_objects
18272 postdep_objects=$lt_postdep_objects
18273 predeps=$lt_predeps
18274 postdeps=$lt_postdeps
18276 # The library search path used internally by the compiler when linking
18277 # a shared library.
18278 compiler_lib_search_path=$lt_compiler_lib_search_path
18280 # ### END LIBTOOL CONFIG
18282 _LT_EOF
18284 case $host_os in
18285 aix3*)
18286 cat <<\_LT_EOF >> "$cfgfile"
18287 # AIX sometimes has problems with the GCC collect2 program. For some
18288 # reason, if we set the COLLECT_NAMES environment variable, the problems
18289 # vanish in a puff of smoke.
18290 if test "X${COLLECT_NAMES+set}" != Xset; then
18291 COLLECT_NAMES=
18292 export COLLECT_NAMES
18294 _LT_EOF
18296 esac
18299 ltmain="$ac_aux_dir/ltmain.sh"
18302 # We use sed instead of cat because bash on DJGPP gets confused if
18303 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18304 # text mode, it properly converts lines to CR/LF. This bash problem
18305 # is reportedly fixed, but why not run on old versions too?
18306 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18307 || (rm -f "$cfgfile"; exit 1)
18309 case $xsi_shell in
18310 yes)
18311 cat << \_LT_EOF >> "$cfgfile"
18312 # func_dirname file append nondir_replacement
18313 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18314 # otherwise set result to NONDIR_REPLACEMENT.
18315 func_dirname ()
18317 case ${1} in
18318 */*) func_dirname_result="${1%/*}${2}" ;;
18319 * ) func_dirname_result="${3}" ;;
18320 esac
18323 # func_basename file
18324 func_basename ()
18326 func_basename_result="${1##*/}"
18329 # func_stripname prefix suffix name
18330 # strip PREFIX and SUFFIX off of NAME.
18331 # PREFIX and SUFFIX must not contain globbing or regex special
18332 # characters, hashes, percent signs, but SUFFIX may contain a leading
18333 # dot (in which case that matches only a dot).
18334 func_stripname ()
18336 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18337 # positional parameters, so assign one to ordinary parameter first.
18338 func_stripname_result=${3}
18339 func_stripname_result=${func_stripname_result#"${1}"}
18340 func_stripname_result=${func_stripname_result%"${2}"}
18343 # func_opt_split
18344 func_opt_split ()
18346 func_opt_split_opt=${1%%=*}
18347 func_opt_split_arg=${1#*=}
18350 # func_lo2o object
18351 func_lo2o ()
18353 case ${1} in
18354 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18355 *) func_lo2o_result=${1} ;;
18356 esac
18358 _LT_EOF
18360 *) # Bourne compatible functions.
18361 cat << \_LT_EOF >> "$cfgfile"
18362 # func_dirname file append nondir_replacement
18363 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18364 # otherwise set result to NONDIR_REPLACEMENT.
18365 func_dirname ()
18367 # Extract subdirectory from the argument.
18368 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18369 if test "X$func_dirname_result" = "X${1}"; then
18370 func_dirname_result="${3}"
18371 else
18372 func_dirname_result="$func_dirname_result${2}"
18376 # func_basename file
18377 func_basename ()
18379 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18382 # func_stripname prefix suffix name
18383 # strip PREFIX and SUFFIX off of NAME.
18384 # PREFIX and SUFFIX must not contain globbing or regex special
18385 # characters, hashes, percent signs, but SUFFIX may contain a leading
18386 # dot (in which case that matches only a dot).
18387 # func_strip_suffix prefix name
18388 func_stripname ()
18390 case ${2} in
18391 .*) func_stripname_result=`$ECHO "X${3}" \
18392 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18393 *) func_stripname_result=`$ECHO "X${3}" \
18394 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18395 esac
18398 # sed scripts:
18399 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18400 my_sed_long_arg='1s/^-[^=]*=//'
18402 # func_opt_split
18403 func_opt_split ()
18405 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18406 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18409 # func_lo2o object
18410 func_lo2o ()
18412 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18414 _LT_EOF
18415 esac
18417 case $lt_shell_append in
18418 yes)
18419 cat << \_LT_EOF >> "$cfgfile"
18421 # func_append var value
18422 # Append VALUE to the end of shell variable VAR.
18423 func_append ()
18425 eval "$1+=\$2"
18427 _LT_EOF
18430 cat << \_LT_EOF >> "$cfgfile"
18432 # func_append var value
18433 # Append VALUE to the end of shell variable VAR.
18434 func_append ()
18436 eval "$1=\$$1\$2"
18438 _LT_EOF
18440 esac
18443 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18444 || (rm -f "$cfgfile"; exit 1)
18446 mv -f "$cfgfile" "$ofile" ||
18447 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18448 chmod +x "$ofile"
18451 cat <<_LT_EOF >> "$ofile"
18453 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18455 # The linker used to build libraries.
18456 LD=$lt_LD_CXX
18458 # Commands used to build an old-style archive.
18459 old_archive_cmds=$lt_old_archive_cmds_CXX
18461 # A language specific compiler.
18462 CC=$lt_compiler_CXX
18464 # Is the compiler the GNU compiler?
18465 with_gcc=$GCC_CXX
18467 # Compiler flag to turn off builtin functions.
18468 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18470 # How to pass a linker flag through the compiler.
18471 wl=$lt_lt_prog_compiler_wl_CXX
18473 # Additional compiler flags for building library objects.
18474 pic_flag=$lt_lt_prog_compiler_pic_CXX
18476 # Compiler flag to prevent dynamic linking.
18477 link_static_flag=$lt_lt_prog_compiler_static_CXX
18479 # Does compiler simultaneously support -c and -o options?
18480 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18482 # Whether or not to add -lc for building shared libraries.
18483 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18485 # Whether or not to disallow shared libs when runtime libs are static.
18486 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18488 # Compiler flag to allow reflexive dlopens.
18489 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18491 # Compiler flag to generate shared objects directly from archives.
18492 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18494 # Whether the compiler copes with passing no objects directly.
18495 compiler_needs_object=$lt_compiler_needs_object_CXX
18497 # Create an old-style archive from a shared archive.
18498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18500 # Create a temporary old-style archive to link instead of a shared archive.
18501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18503 # Commands used to build a shared archive.
18504 archive_cmds=$lt_archive_cmds_CXX
18505 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18507 # Commands used to build a loadable module if different from building
18508 # a shared archive.
18509 module_cmds=$lt_module_cmds_CXX
18510 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18512 # Whether we are building with GNU ld or not.
18513 with_gnu_ld=$lt_with_gnu_ld_CXX
18515 # Flag that allows shared libraries with undefined symbols to be built.
18516 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18518 # Flag that enforces no undefined symbols.
18519 no_undefined_flag=$lt_no_undefined_flag_CXX
18521 # Flag to hardcode \$libdir into a binary during linking.
18522 # This must work even if \$libdir does not exist
18523 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18525 # If ld is used when linking, flag to hardcode \$libdir into a binary
18526 # during linking. This must work even if \$libdir does not exist.
18527 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18529 # Whether we need a single "-rpath" flag with a separated argument.
18530 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18532 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18533 # DIR into the resulting binary.
18534 hardcode_direct=$hardcode_direct_CXX
18536 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18537 # DIR into the resulting binary and the resulting library dependency is
18538 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18539 # library is relocated.
18540 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18542 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18543 # into the resulting binary.
18544 hardcode_minus_L=$hardcode_minus_L_CXX
18546 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18547 # into the resulting binary.
18548 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18550 # Set to "yes" if building a shared library automatically hardcodes DIR
18551 # into the library and all subsequent libraries and executables linked
18552 # against it.
18553 hardcode_automatic=$hardcode_automatic_CXX
18555 # Set to yes if linker adds runtime paths of dependent libraries
18556 # to runtime path list.
18557 inherit_rpath=$inherit_rpath_CXX
18559 # Whether libtool must link a program against all its dependency libraries.
18560 link_all_deplibs=$link_all_deplibs_CXX
18562 # Fix the shell variable \$srcfile for the compiler.
18563 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18565 # Set to "yes" if exported symbols are required.
18566 always_export_symbols=$always_export_symbols_CXX
18568 # The commands to list exported symbols.
18569 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18571 # Symbols that should not be listed in the preloaded symbols.
18572 exclude_expsyms=$lt_exclude_expsyms_CXX
18574 # Symbols that must always be exported.
18575 include_expsyms=$lt_include_expsyms_CXX
18577 # Commands necessary for linking programs (against libraries) with templates.
18578 prelink_cmds=$lt_prelink_cmds_CXX
18580 # Specify filename containing input files.
18581 file_list_spec=$lt_file_list_spec_CXX
18583 # How to hardcode a shared library path into an executable.
18584 hardcode_action=$hardcode_action_CXX
18586 # Dependencies to place before and after the objects being linked to
18587 # create a shared library.
18588 predep_objects=$lt_predep_objects_CXX
18589 postdep_objects=$lt_postdep_objects_CXX
18590 predeps=$lt_predeps_CXX
18591 postdeps=$lt_postdeps_CXX
18593 # The library search path used internally by the compiler when linking
18594 # a shared library.
18595 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18597 # ### END LIBTOOL TAG CONFIG: CXX
18598 _LT_EOF
18601 esac
18602 done
18603 _ACEOF
18605 cat >>$CONFIG_STATUS <<\_ACEOF
18607 { (exit 0); exit 0; }
18608 _ACEOF
18609 chmod +x $CONFIG_STATUS
18610 ac_clean_files=$ac_clean_files_save
18613 # configure is writing to config.log, and then calls config.status.
18614 # config.status does its own redirection, appending to config.log.
18615 # Unfortunately, on DOS this fails, as config.log is still kept open
18616 # by configure, so config.status won't be able to write to it; its
18617 # output is simply discarded. So we exec the FD to /dev/null,
18618 # effectively closing config.log, so it can be properly (re)opened and
18619 # appended to by config.status. When coming back to configure, we
18620 # need to make the FD available again.
18621 if test "$no_create" != yes; then
18622 ac_cs_success=:
18623 ac_config_status_args=
18624 test "$silent" = yes &&
18625 ac_config_status_args="$ac_config_status_args --quiet"
18626 exec 5>/dev/null
18627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18628 exec 5>>config.log
18629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18630 # would make configure fail if this is the last instruction.
18631 $ac_cs_success || { (exit 1); exit 1; }