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
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
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; 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
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe 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
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
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'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec
; then
257 # Discard the --no-reexec flag, and continue.
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!
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
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
283 if test -z "$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 echo_test_string
="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
309 for dir
in $PATH /usr
/ucb
; do
311 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho
; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL
=/bin
/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
350 SHELL
="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string
=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames
=${tagnames+${tagnames},}CXX
396 tagnames
=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix
=/usr
/local
409 ac_config_libobj_dir
=.
414 SHELL
=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file
="src/sigsegv.h.in"
429 # Factoring default headers for most tests.
430 ac_includes_default
="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 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 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 CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os PLATFORM EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL FAULT_CONTEXT FAULT_CONTEXT_INCLUDE FAULT_CONTEXT_INCLUDE2 HAVE_SIGSEGV_RECOVERY CFG_STACKVMA HAVE_STACK_OVERFLOW_RECOVERY CFG_LEAVE CFG_HANDLER RELOCATABLE LIBOBJS LTLIBOBJS'
469 # Initialize some variables set by options.
471 ac_init_version
=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
481 program_transform_name
=s
,x
,x
,
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir
='${exec_prefix}/bin'
495 sbindir
='${exec_prefix}/sbin'
496 libexecdir
='${exec_prefix}/libexec'
497 datadir
='${prefix}/share'
498 sysconfdir
='${prefix}/etc'
499 sharedstatedir
='${prefix}/com'
500 localstatedir
='${prefix}/var'
501 libdir
='${exec_prefix}/lib'
502 includedir
='${prefix}/include'
503 oldincludedir
='/usr/include'
504 infodir
='${prefix}/info'
505 mandir
='${prefix}/man'
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
517 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519 # Accept the important Cygnus configure options, so we can diagnose typos.
523 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
525 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
528 -build |
--build |
--buil |
--bui |
--bu)
529 ac_prev
=build_alias
;;
530 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
531 build_alias
=$ac_optarg ;;
533 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
534 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
535 ac_prev
=cache_file
;;
536 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
537 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
538 cache_file
=$ac_optarg ;;
541 cache_file
=config.cache
;;
543 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
545 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
547 datadir
=$ac_optarg ;;
549 -disable-* |
--disable-*)
550 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
558 -enable-* |
--enable-*)
559 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
566 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 eval "enable_$ac_feature='$ac_optarg'" ;;
571 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
572 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
573 |
--exec |
--exe |
--ex)
574 ac_prev
=exec_prefix
;;
575 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
576 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
577 |
--exec=* |
--exe=* |
--ex=*)
578 exec_prefix
=$ac_optarg ;;
580 -gas |
--gas |
--ga |
--g)
581 # Obsolete; use --with-gas.
584 -help |
--help |
--hel |
--he |
-h)
586 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
587 ac_init_help
=recursive
;;
588 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
589 ac_init_help
=short
;;
591 -host |
--host |
--hos |
--ho)
592 ac_prev
=host_alias
;;
593 -host=* |
--host=* |
--hos=* |
--ho=*)
594 host_alias
=$ac_optarg ;;
596 -includedir |
--includedir |
--includedi |
--included |
--include \
597 |
--includ |
--inclu |
--incl |
--inc)
598 ac_prev
=includedir
;;
599 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
600 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
601 includedir
=$ac_optarg ;;
603 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
605 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
606 infodir
=$ac_optarg ;;
608 -libdir |
--libdir |
--libdi |
--libd)
610 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
613 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
614 |
--libexe |
--libex |
--libe)
615 ac_prev
=libexecdir
;;
616 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
617 |
--libexe=* |
--libex=* |
--libe=*)
618 libexecdir
=$ac_optarg ;;
620 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
621 |
--localstate |
--localstat |
--localsta |
--localst \
622 |
--locals |
--local |
--loca |
--loc |
--lo)
623 ac_prev
=localstatedir
;;
624 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
625 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
626 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
627 localstatedir
=$ac_optarg ;;
629 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
631 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
635 # Obsolete; use --without-fp.
638 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
639 |
--no-cr |
--no-c |
-n)
642 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
643 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
646 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
647 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
648 |
--oldin |
--oldi |
--old |
--ol |
--o)
649 ac_prev
=oldincludedir
;;
650 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
651 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
652 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
653 oldincludedir
=$ac_optarg ;;
655 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
657 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
660 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
661 |
--program-pre |
--program-pr |
--program-p)
662 ac_prev
=program_prefix
;;
663 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
664 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
665 program_prefix
=$ac_optarg ;;
667 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
668 |
--program-suf |
--program-su |
--program-s)
669 ac_prev
=program_suffix
;;
670 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
671 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
672 program_suffix
=$ac_optarg ;;
674 -program-transform-name |
--program-transform-name \
675 |
--program-transform-nam |
--program-transform-na \
676 |
--program-transform-n |
--program-transform- \
677 |
--program-transform |
--program-transfor \
678 |
--program-transfo |
--program-transf \
679 |
--program-trans |
--program-tran \
680 |
--progr-tra |
--program-tr |
--program-t)
681 ac_prev
=program_transform_name
;;
682 -program-transform-name=* |
--program-transform-name=* \
683 |
--program-transform-nam=* |
--program-transform-na=* \
684 |
--program-transform-n=* |
--program-transform-=* \
685 |
--program-transform=* |
--program-transfor=* \
686 |
--program-transfo=* |
--program-transf=* \
687 |
--program-trans=* |
--program-tran=* \
688 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
689 program_transform_name
=$ac_optarg ;;
691 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
692 |
-silent |
--silent |
--silen |
--sile |
--sil)
695 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
697 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
699 sbindir
=$ac_optarg ;;
701 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
702 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
703 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
705 ac_prev
=sharedstatedir
;;
706 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
707 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
708 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
710 sharedstatedir
=$ac_optarg ;;
712 -site |
--site |
--sit)
714 -site=* |
--site=* |
--sit=*)
717 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
719 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
722 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
723 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
724 ac_prev
=sysconfdir
;;
725 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
726 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
727 sysconfdir
=$ac_optarg ;;
729 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
730 ac_prev
=target_alias
;;
731 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
732 target_alias
=$ac_optarg ;;
734 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
737 -version |
--version |
--versio |
--versi |
--vers |
-V)
741 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package
=`echo $ac_package| sed 's/-/_/g'`
748 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 eval "with_$ac_package='$ac_optarg'" ;;
753 -without-* |
--without-*)
754 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package
=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
763 # Obsolete; use --with-x.
766 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
767 |
--x-incl |
--x-inc |
--x-in |
--x-i)
768 ac_prev
=x_includes
;;
769 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
770 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
771 x_includes
=$ac_optarg ;;
773 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
774 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
775 ac_prev
=x_libraries
;;
776 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
777 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
778 x_libraries
=$ac_optarg ;;
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
786 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 if test -n "$ac_prev"; then
807 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
812 # Be sure to have absolute paths.
813 for ac_var
in exec_prefix prefix
815 eval ac_val
=$
`echo $ac_var`
817 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
823 # Be sure to have absolute paths.
824 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
827 eval ac_val
=$
`echo $ac_var`
829 [\\/$
]* | ?
:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x
; then
844 if test "x$build_alias" = x
; then
845 cross_compiling
=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
854 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
856 test "$silent" = yes && exec 6>/dev
/null
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted
=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir
=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
876 if test ! -r $srcdir/$ac_unique_file; then
880 ac_srcdir_defaulted
=no
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
891 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set
=${build_alias+set}
896 ac_env_build_alias_value
=$build_alias
897 ac_cv_env_build_alias_set
=${build_alias+set}
898 ac_cv_env_build_alias_value
=$build_alias
899 ac_env_host_alias_set
=${host_alias+set}
900 ac_env_host_alias_value
=$host_alias
901 ac_cv_env_host_alias_set
=${host_alias+set}
902 ac_cv_env_host_alias_value
=$host_alias
903 ac_env_target_alias_set
=${target_alias+set}
904 ac_env_target_alias_value
=$target_alias
905 ac_cv_env_target_alias_set
=${target_alias+set}
906 ac_cv_env_target_alias_value
=$target_alias
907 ac_env_CC_set
=${CC+set}
909 ac_cv_env_CC_set
=${CC+set}
910 ac_cv_env_CC_value
=$CC
911 ac_env_CFLAGS_set
=${CFLAGS+set}
912 ac_env_CFLAGS_value
=$CFLAGS
913 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value
=$CFLAGS
915 ac_env_LDFLAGS_set
=${LDFLAGS+set}
916 ac_env_LDFLAGS_value
=$LDFLAGS
917 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value
=$LDFLAGS
919 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value
=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
923 ac_env_CPP_set
=${CPP+set}
924 ac_env_CPP_value
=$CPP
925 ac_cv_env_CPP_set
=${CPP+set}
926 ac_cv_env_CPP_value
=$CPP
927 ac_env_CXX_set
=${CXX+set}
928 ac_env_CXX_value
=$CXX
929 ac_cv_env_CXX_set
=${CXX+set}
930 ac_cv_env_CXX_value
=$CXX
931 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value
=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
935 ac_env_CXXCPP_set
=${CXXCPP+set}
936 ac_env_CXXCPP_value
=$CXXCPP
937 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value
=$CXXCPP
939 ac_env_F77_set
=${F77+set}
940 ac_env_F77_value
=$F77
941 ac_cv_env_F77_set
=${F77+set}
942 ac_cv_env_F77_value
=$F77
943 ac_env_FFLAGS_set
=${FFLAGS+set}
944 ac_env_FFLAGS_value
=$FFLAGS
945 ac_cv_env_FFLAGS_set
=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value
=$FFLAGS
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1014 --build=BUILD configure
for building on BUILD
[guessed
]
1015 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1019 if test -n "$ac_init_help"; then
1024 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1025 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1026 --disable-dependency-tracking speeds up one-time build
1027 --enable-dependency-tracking do not reject slow dependency extractors
1028 --enable-shared[=PKGS
]
1029 build shared libraries
[default
=no
]
1030 --enable-static[=PKGS
]
1031 build static libraries
[default
=yes]
1032 --enable-fast-install[=PKGS
]
1033 optimize
for fast installation
[default
=yes]
1034 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1035 --enable-relocatable install a package that can be moved
in the filesystem
1038 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1039 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1040 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1041 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1044 include additional configurations
[automatic
]
1046 Some influential environment variables
:
1047 CC C compiler
command
1048 CFLAGS C compiler flags
1049 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1050 nonstandard directory
<lib dir
>
1051 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1052 headers
in a nonstandard directory
<include dir
>
1054 CXX C
++ compiler
command
1055 CXXFLAGS C
++ compiler flags
1056 CXXCPP C
++ preprocessor
1057 F77 Fortran
77 compiler
command
1058 FFLAGS Fortran
77 compiler flags
1060 Use these variables to override the choices made by
`configure' or to help
1061 it to find libraries and programs with nonstandard names/locations.
1066 if test "$ac_init_help" = "recursive"; then
1067 # If there are subdirs, report their specific --help.
1069 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1070 test -d $ac_dir || continue
1073 if test "$ac_dir" != .; then
1074 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1075 # A "../" for each directory in $ac_dir_suffix.
1076 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1078 ac_dir_suffix= ac_top_builddir=
1082 .) # No --srcdir option. We are building in place.
1084 if test -z "$ac_top_builddir"; then
1087 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1089 [\\/]* | ?:[\\/]* ) # Absolute path.
1090 ac_srcdir=$srcdir$ac_dir_suffix;
1091 ac_top_srcdir=$srcdir ;;
1093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1097 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1098 # the directories may not exist.
1100 .) ac_abs_builddir="$ac_dir";;
1103 .) ac_abs_builddir=`pwd`;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1108 case $ac_abs_builddir in
1109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1111 case ${ac_top_builddir}. in
1112 .) ac_abs_top_builddir=$ac_abs_builddir;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1117 case $ac_abs_builddir in
1118 .) ac_abs_srcdir=$ac_srcdir;;
1121 .) ac_abs_srcdir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1126 case $ac_abs_builddir in
1127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1129 case $ac_top_srcdir in
1130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137 # Check for guested configure; otherwise get Cygnus style configure.
1138 if test -f $ac_srcdir/configure.gnu; then
1140 $SHELL $ac_srcdir/configure.gnu --help=recursive
1141 elif test -f $ac_srcdir/configure; then
1143 $SHELL $ac_srcdir/configure --help=recursive
1144 elif test -f $ac_srcdir/configure.ac ||
1145 test -f $ac_srcdir/configure.in; then
1147 $ac_configure --help
1149 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155 test -n "$ac_init_help" && exit 0
1156 if $ac_init_version; then
1159 Copyright (C) 2003 Free Software Foundation, Inc.
1160 This configure script is free software; the Free Software Foundation
1161 gives unlimited permission to copy, distribute and modify it.
1167 This file contains any messages produced by compilers while
1168 running configure, to aid debugging if configure makes a mistake.
1170 It was created by $as_me, which was
1171 generated by GNU Autoconf 2.59. Invocation command line was
1182 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1183 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1184 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1185 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1186 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1188 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1189 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1191 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1192 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1193 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1194 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1195 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1196 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1197 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1205 test -z "$as_dir" && as_dir=.
1206 echo "PATH: $as_dir"
1221 # Keep a trace of the command line.
1222 # Strip out --no-create and --no-recursion so they do not pile up.
1223 # Strip out --silent because we don't want to record it for future runs.
1224 # Also quote any args containing shell meta-characters.
1225 # Make two passes to allow for proper duplicate-argument suppression.
1230 ac_must_keep_next=false
1236 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1244 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1246 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1247 if test $ac_must_keep_next = true; then
1248 ac_must_keep_next=false # Got value, back to normal.
1251 *=* | --config-cache | -C | -disable-* | --disable-* \
1252 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1253 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1254 | -with-* | --with-* | -without-* | --without-* | --x)
1255 case "$ac_configure_args0 " in
1256 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1259 -* ) ac_must_keep_next=true ;;
1262 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1263 # Get rid of the leading space.
1269 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1270 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1272 # When interrupted or exit'd, cleanup temporary files, and complete
1273 # config.log. We remove comments because anyway the quotes in there
1274 # would cause problems or look ugly.
1275 # WARNING: Be sure not to use single quotes in there, as some shells,
1276 # such as our DU 5.0 friend, will then `close
' the trap.
1277 trap 'exit_status
=$?
1278 # Save into config.log some information that might help in debugging.
1283 ## ---------------- ##
1284 ## Cache variables. ##
1285 ## ---------------- ##
1288 # The following way of writing the cache mishandles newlines in values,
1291 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1294 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1299 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306 ## ----------------- ##
1307 ## Output variables. ##
1308 ## ----------------- ##
1311 for ac_var
in $ac_subst_vars
1313 eval ac_val
=$
`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1318 if test -n "$ac_subst_files"; then
1325 for ac_var
in $ac_subst_files
1327 eval ac_val
=$
`echo $ac_var`
1328 echo "$ac_var='"'"'$ac_val'"'"'"
1333 if test -s confdefs.h
; then
1340 sed "/^$/d" confdefs.h |
sort
1343 test "$ac_signal" != 0 &&
1344 echo "$as_me: caught signal $ac_signal"
1345 echo "$as_me: exit $exit_status"
1347 rm -f core
*.core
&&
1348 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1351 for ac_signal in 1 2 13 15; do
1352 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1356 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1357 rm -rf conftest* confdefs.h
1358 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1361 # Predefined preprocessor variables.
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_NAME "$PACKAGE_NAME"
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_STRING "$PACKAGE_STRING"
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1388 # Let the site file select an alternate cache file if it wants to.
1389 # Prefer explicitly selected file to automatically selected ones.
1390 if test -z "$CONFIG_SITE"; then
1391 if test "x$prefix" != xNONE; then
1392 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1394 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1397 for ac_site_file in $CONFIG_SITE; do
1398 if test -r "$ac_site_file"; then
1399 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1400 echo "$as_me: loading site script $ac_site_file" >&6;}
1401 sed 's
/^
/|
/' "$ac_site_file" >&5
1406 if test -r "$cache_file"; then
1407 # Some versions of bash will fail to source /dev/null (special
1408 # files actually), so we avoid doing that.
1409 if test -f "$cache_file"; then
1410 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1411 echo "$as_me: loading cache $cache_file" >&6;}
1413 [\\/]* | ?:[\\/]* ) . $cache_file;;
1414 *) . ./$cache_file;;
1418 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1419 echo "$as_me: creating cache $cache_file" >&6;}
1423 # Check that the precious variables saved in the cache have kept the same
1425 ac_cache_corrupted=false
1426 for ac_var in `(set) 2>&1 |
1427 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1428 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1429 eval ac_new_set=\$ac_env_${ac_var}_set
1430 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1431 eval ac_new_val="\$ac_env_${ac_var}_value"
1432 case $ac_old_set,$ac_new_set in
1434 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1435 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1436 ac_cache_corrupted=: ;;
1438 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1439 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1443 if test "x$ac_old_val" != "x$ac_new_val"; then
1444 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1445 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1446 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1447 echo "$as_me: former value: $ac_old_val" >&2;}
1448 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1449 echo "$as_me: current value: $ac_new_val" >&2;}
1450 ac_cache_corrupted=:
1453 # Pass precious variables to config.status.
1454 if test "$ac_new_set" = set; then
1456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1457 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1458 *) ac_arg=$ac_var=$ac_new_val ;;
1460 case " $ac_configure_args " in
1461 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1462 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1466 if $ac_cache_corrupted; then
1467 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1470 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471 { (exit 1); exit 1; }; }
1475 ac_cpp='$CPP $CPPFLAGS'
1476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1477 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500 for ac_dir in autoconf $srcdir/autoconf; do
1501 if test -f $ac_dir/install-sh; then
1503 ac_install_sh="$ac_aux_dir/install-sh -c"
1505 elif test -f $ac_dir/install.sh; then
1507 ac_install_sh="$ac_aux_dir/install.sh -c"
1509 elif test -f $ac_dir/shtool; then
1511 ac_install_sh="$ac_aux_dir/shtool install -c"
1515 if test -z "$ac_aux_dir"; then
1516 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1517 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1518 { (exit 1); exit 1; }; }
1520 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1521 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1522 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1528 # for the most important terminal types we directly know the sequences
1530 term_bold=`${AWK:-awk} 'BEGIN
{ printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
1531 term_norm=`${AWK:-awk} 'BEGIN
{ printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
1534 term_bold=`${AWK:-awk} 'BEGIN
{ printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
1535 term_norm=`${AWK:-awk} 'BEGIN
{ printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
1537 # for all others, we try to use a possibly existing `tput' or
`tcout' utility
1539 paths=`echo "$PATH" |
sed -e 's/:/ /g'`
1540 for tool in tput tcout; do
1541 for dir in $paths; do
1542 if test -r "$dir/$tool"; then
1543 for seq in bold md smso; do # 'smso' is last
1544 bold="`$dir/$tool $seq 2>/dev
/null
`"
1545 if test -n "$bold"; then
1550 if test -n "$term_bold"; then
1551 for seq in sgr0 me rmso reset; do # 'reset' is last
1552 norm="`$dir/$tool $seq 2>/dev
/null
`"
1553 if test -n "$norm"; then
1562 if test -n "$term_bold" && test -n "$term_norm"; then
1568 echo "$term_bold" | tr -d '\n' > termbold
1569 echo "$term_norm" | tr -d '\n' > termnorm
1572 { echo; echo "${term_bold}Build Tools:${term_norm}"; } >& 6
1574 am__api_version="1.9"
1575 # Find a good install program. We prefer a C program (faster),
1576 # so one script is as good as another. But avoid the broken or
1577 # incompatible versions:
1578 # SysV /etc/install, /usr/sbin/install
1579 # SunOS /usr/etc/install
1580 # IRIX /sbin/install
1582 # AmigaOS /C/install, which installs bootblocks on floppy discs
1583 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1584 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1585 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1586 # OS/2's system install, which has a completely different semantic
1587 # ./install, which can be erroneously created by make from ./install.sh.
1588 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1589 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1590 if test -z "$INSTALL"; then
1591 if test "${ac_cv_path_install+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 test -z "$as_dir" && as_dir=.
1599 # Account for people who put trailing slashes in PATH elements.
1601 ./ | .// | /cC/* | \
1602 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1603 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1606 # OSF1 and SCO ODT 3.0 have their own names for install.
1607 # Don't use installbsd from OSF since it installs stuff as root
1609 for ac_prog in ginstall scoinst install; do
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1612 if test $ac_prog = install &&
1613 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1614 # AIX install. It has an incompatible calling convention.
1616 elif test $ac_prog = install &&
1617 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1618 # program-specific install script used by HP pwplus--don't use.
1621 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1633 if test "${ac_cv_path_install+set}" = set; then
1634 INSTALL=$ac_cv_path_install
1636 # As a last resort, use the slow shell script. We don't cache a
1637 # path for INSTALL within a source directory, because that will
1638 # break other packages using the cache if that directory is
1639 # removed, or if the path is relative.
1640 INSTALL=$ac_install_sh
1643 echo "$as_me:$LINENO: result: $INSTALL" >&5
1644 echo "${ECHO_T}$INSTALL" >&6
1646 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1647 # It thinks the first close brace ends the variable substitution.
1648 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1650 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1652 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1654 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1655 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1658 echo timestamp > conftest.file
1659 # Do `set' in a subshell so we don't clobber the current shell
's
1660 # arguments. Must try -L first in case configure is actually a
1661 # symlink; some systems play weird games with the mod time of symlinks
1662 # (eg FreeBSD returns the mod time of the symlink's containing
1665 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1666 if test "$*" = "X"; then
1668 set X
`ls -t $srcdir/configure conftest.file`
1671 if test "$*" != "X $srcdir/configure conftest.file" \
1672 && test "$*" != "X conftest.file $srcdir/configure"; then
1674 # If neither matched, then we have a broken ls. This can happen
1675 # if, for instance, CONFIG_SHELL is bash and it inherits a
1676 # broken ls alias from the environment. This has actually
1677 # happened. Such a system could not be considered "sane".
1678 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1679 alias in your environment" >&5
1680 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1681 alias in your environment" >&2;}
1682 { (exit 1); exit 1; }; }
1685 test "$2" = conftest.
file
1691 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1692 Check your system clock" >&5
1693 echo "$as_me: error: newly created file is older than distributed files!
1694 Check your system clock" >&2;}
1695 { (exit 1); exit 1; }; }
1697 echo "$as_me:$LINENO: result: yes" >&5
1698 echo "${ECHO_T}yes" >&6
1699 test "$program_prefix" != NONE
&&
1700 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1701 # Use a double $ so make ignores it.
1702 test "$program_suffix" != NONE
&&
1703 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1704 # Double any \ or $. echo might interpret backslashes.
1705 # By default was `s,x,x', remove it if useless.
1706 cat <<\_ACEOF
>conftest.
sed
1707 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1709 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1712 # expand $ac_aux_dir to an absolute path
1713 am_aux_dir
=`cd $ac_aux_dir && pwd`
1715 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1716 # Use eval to expand $SHELL
1717 if eval "$MISSING --run true"; then
1718 am_missing_run
="$MISSING --run "
1721 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1722 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1725 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1726 # We used to keeping the `.' as first argument, in order to
1727 # allow $(mkdir_p) to be used without argument. As in
1728 # $(mkdir_p) $(somedir)
1729 # where $(somedir) is conditionally defined. However this is wrong
1731 # 1. if the package is installed by a user who cannot write `.'
1732 # make install will fail,
1733 # 2. the above comment should most certainly read
1734 # $(mkdir_p) $(DESTDIR)$(somedir)
1735 # so it does not work when $(somedir) is undefined and
1736 # $(DESTDIR) is not.
1737 # To support the latter case, we have to write
1738 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1739 # so the `.' trick is pointless.
1740 mkdir_p
='mkdir -p --'
1742 # On NextStep and OpenStep, the `mkdir' command does not
1743 # recognize any option. It will interpret all options as
1744 # directories to create, and then abort because `.' already
1746 for d
in .
/-p .
/--version;
1748 test -d $d && rmdir $d
1750 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1751 if test -f "$ac_aux_dir/mkinstalldirs"; then
1752 mkdir_p
='$(mkinstalldirs)'
1754 mkdir_p
='$(install_sh) -d'
1758 for ac_prog
in gawk mawk nawk
awk
1760 # Extract the first word of "$ac_prog", so it can be a program name with args.
1761 set dummy
$ac_prog; ac_word
=$2
1762 echo "$as_me:$LINENO: checking for $ac_word" >&5
1763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764 if test "${ac_cv_prog_AWK+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 if test -n "$AWK"; then
1768 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1774 test -z "$as_dir" && as_dir
=.
1775 for ac_exec_ext
in '' $ac_executable_extensions; do
1776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777 ac_cv_prog_AWK
="$ac_prog"
1778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787 if test -n "$AWK"; then
1788 echo "$as_me:$LINENO: result: $AWK" >&5
1789 echo "${ECHO_T}$AWK" >&6
1791 echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1795 test -n "$AWK" && break
1798 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1799 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1800 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1801 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 cat >conftest.
make <<\_ACEOF
1806 @
echo 'ac_maketemp="$(MAKE)"'
1808 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1809 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1810 if test -n "$ac_maketemp"; then
1811 eval ac_cv_prog_make_
${ac_make}_set
=yes
1813 eval ac_cv_prog_make_
${ac_make}_set
=no
1817 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1818 echo "$as_me:$LINENO: result: yes" >&5
1819 echo "${ECHO_T}yes" >&6
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1824 SET_MAKE
="MAKE=${MAKE-make}"
1827 rm -rf .tst
2>/dev
/null
1828 mkdir .tst
2>/dev
/null
1829 if test -d .tst
; then
1834 rmdir .tst
2>/dev
/null
1836 # test to see if srcdir already configured
1837 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1838 test -f $srcdir/config.status
; then
1839 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1840 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1841 { (exit 1); exit 1; }; }
1844 # test whether we have cygpath
1845 if test -z "$CYGPATH_W"; then
1846 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1847 CYGPATH_W
='cygpath -w'
1854 # Define the identity of the package.
1859 cat >>confdefs.h
<<_ACEOF
1860 #define PACKAGE "$PACKAGE"
1864 cat >>confdefs.h
<<_ACEOF
1865 #define VERSION "$VERSION"
1868 # Some tools Automake needs.
1870 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1873 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1876 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1879 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1882 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1884 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1886 # Installed binaries are usually stripped using `strip' when the user
1887 # run `make install-strip'. However `strip' might not be the right
1888 # tool to use in cross-compilation environments, therefore Automake
1889 # will honor the `STRIP' environment variable to overrule this program.
1890 if test "$cross_compiling" != no
; then
1891 if test -n "$ac_tool_prefix"; then
1892 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1893 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_STRIP+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 if test -n "$STRIP"; then
1900 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1906 test -z "$as_dir" && as_dir
=.
1907 for ac_exec_ext
in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918 STRIP
=$ac_cv_prog_STRIP
1919 if test -n "$STRIP"; then
1920 echo "$as_me:$LINENO: result: $STRIP" >&5
1921 echo "${ECHO_T}$STRIP" >&6
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1928 if test -z "$ac_cv_prog_STRIP"; then
1930 # Extract the first word of "strip", so it can be a program name with args.
1931 set dummy strip
; ac_word
=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 if test -n "$ac_ct_STRIP"; then
1938 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1944 test -z "$as_dir" && as_dir
=.
1945 for ac_exec_ext
in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 ac_cv_prog_ac_ct_STRIP
="strip"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1957 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1958 if test -n "$ac_ct_STRIP"; then
1959 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1960 echo "${ECHO_T}$ac_ct_STRIP" >&6
1962 echo "$as_me:$LINENO: result: no" >&5
1963 echo "${ECHO_T}no" >&6
1968 STRIP
="$ac_cv_prog_STRIP"
1972 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1974 # We need awk for the "check" target. The system "awk" is bad on
1976 # Always define AMTAR for backward compatibility.
1978 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1980 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1986 ac_config_headers
="$ac_config_headers config.h"
1990 ac_cpp
='$CPP $CPPFLAGS'
1991 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1992 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1993 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1994 if test -n "$ac_tool_prefix"; then
1995 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1996 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1997 echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999 if test "${ac_cv_prog_CC+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 if test -n "$CC"; then
2003 ac_cv_prog_CC
="$CC" # Let the user override the test.
2005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2009 test -z "$as_dir" && as_dir
=.
2010 for ac_exec_ext
in '' $ac_executable_extensions; do
2011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 if test -n "$CC"; then
2023 echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2031 if test -z "$ac_cv_prog_CC"; then
2033 # Extract the first word of "gcc", so it can be a program name with args.
2034 set dummy gcc
; ac_word
=$2
2035 echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 if test -n "$ac_ct_CC"; then
2041 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2047 test -z "$as_dir" && as_dir
=.
2048 for ac_exec_ext
in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 ac_cv_prog_ac_ct_CC
="gcc"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2060 if test -n "$ac_ct_CC"; then
2061 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2062 echo "${ECHO_T}$ac_ct_CC" >&6
2064 echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2073 if test -z "$CC"; then
2074 if test -n "$ac_tool_prefix"; then
2075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2076 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2077 echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079 if test "${ac_cv_prog_CC+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 if test -n "$CC"; then
2083 ac_cv_prog_CC
="$CC" # Let the user override the test.
2085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2089 test -z "$as_dir" && as_dir
=.
2090 for ac_exec_ext
in '' $ac_executable_extensions; do
2091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 if test -n "$CC"; then
2103 echo "$as_me:$LINENO: result: $CC" >&5
2104 echo "${ECHO_T}$CC" >&6
2106 echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6
2111 if test -z "$ac_cv_prog_CC"; then
2113 # Extract the first word of "cc", so it can be a program name with args.
2114 set dummy cc
; ac_word
=$2
2115 echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 if test -n "$ac_ct_CC"; then
2121 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2123 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2127 test -z "$as_dir" && as_dir
=.
2128 for ac_exec_ext
in '' $ac_executable_extensions; do
2129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2130 ac_cv_prog_ac_ct_CC
="cc"
2131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2140 if test -n "$ac_ct_CC"; then
2141 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2142 echo "${ECHO_T}$ac_ct_CC" >&6
2144 echo "$as_me:$LINENO: result: no" >&5
2145 echo "${ECHO_T}no" >&6
2154 if test -z "$CC"; then
2155 # Extract the first word of "cc", so it can be a program name with args.
2156 set dummy cc
; ac_word
=$2
2157 echo "$as_me:$LINENO: checking for $ac_word" >&5
2158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2159 if test "${ac_cv_prog_CC+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 if test -n "$CC"; then
2163 ac_cv_prog_CC
="$CC" # Let the user override the test.
2166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2170 test -z "$as_dir" && as_dir
=.
2171 for ac_exec_ext
in '' $ac_executable_extensions; do
2172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2174 ac_prog_rejected
=yes
2178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184 if test $ac_prog_rejected = yes; then
2185 # We found a bogon in the path, so make sure we never use it.
2186 set dummy
$ac_cv_prog_CC
2188 if test $# != 0; then
2189 # We chose a different compiler from the bogus one.
2190 # However, it has the same basename, so the bogon will be chosen
2191 # first if we set CC to just the basename; use the full file name.
2193 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2199 if test -n "$CC"; then
2200 echo "$as_me:$LINENO: result: $CC" >&5
2201 echo "${ECHO_T}$CC" >&6
2203 echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6
2208 if test -z "$CC"; then
2209 if test -n "$ac_tool_prefix"; then
2212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2213 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2214 echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216 if test "${ac_cv_prog_CC+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 if test -n "$CC"; then
2220 ac_cv_prog_CC
="$CC" # Let the user override the test.
2222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2226 test -z "$as_dir" && as_dir
=.
2227 for ac_exec_ext
in '' $ac_executable_extensions; do
2228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 if test -n "$CC"; then
2240 echo "$as_me:$LINENO: result: $CC" >&5
2241 echo "${ECHO_T}$CC" >&6
2243 echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2247 test -n "$CC" && break
2250 if test -z "$CC"; then
2254 # Extract the first word of "$ac_prog", so it can be a program name with args.
2255 set dummy
$ac_prog; ac_word
=$2
2256 echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2258 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 if test -n "$ac_ct_CC"; then
2262 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2268 test -z "$as_dir" && as_dir
=.
2269 for ac_exec_ext
in '' $ac_executable_extensions; do
2270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2271 ac_cv_prog_ac_ct_CC
="$ac_prog"
2272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2281 if test -n "$ac_ct_CC"; then
2282 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2283 echo "${ECHO_T}$ac_ct_CC" >&6
2285 echo "$as_me:$LINENO: result: no" >&5
2286 echo "${ECHO_T}no" >&6
2289 test -n "$ac_ct_CC" && break
2298 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: no acceptable C compiler found in \$PATH
2301 See \`config.log' for more details." >&2;}
2302 { (exit 1); exit 1; }; }
2304 # Provide some information about the compiler.
2305 echo "$as_me:$LINENO:" \
2306 "checking for C compiler version" >&5
2307 ac_compiler
=`set X $ac_compile; echo $2`
2308 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2309 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }
2313 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2314 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }
2318 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2319 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }
2324 cat >conftest.
$ac_ext <<_ACEOF
2327 cat confdefs.h
>>conftest.
$ac_ext
2328 cat >>conftest.
$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2339 ac_clean_files_save
=$ac_clean_files
2340 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2341 # Try to create an executable without -o first, disregard a.out.
2342 # It will help us diagnose broken compilers, and finding out an intuition
2344 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2345 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2346 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2347 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2348 (eval $ac_link_default) 2>&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; then
2352 # Find the output, starting from the most likely. This scheme is
2353 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2356 # Be careful to initialize this variable, since it used to be cached.
2357 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2359 # b.out is created by i960 compilers.
2360 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2362 test -f "$ac_file" ||
continue
2364 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2367 # This is the source file.
2370 # We found the default executable, but exeext='' is most
2374 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2375 # FIXME: I believe we export ac_cv_exeext for Libtool,
2376 # but it would be cool to find out if it's true. Does anybody
2377 # maintain Libtool? --akim.
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.
$ac_ext >&5
2388 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2389 See \`config.log' for more details." >&5
2390 echo "$as_me: error: C compiler cannot create executables
2391 See \`config.log' for more details." >&2;}
2392 { (exit 77); exit 77; }; }
2395 ac_exeext
=$ac_cv_exeext
2396 echo "$as_me:$LINENO: result: $ac_file" >&5
2397 echo "${ECHO_T}$ac_file" >&6
2399 # Check the compiler produces executables we can run. If not, either
2400 # the compiler is broken, or we cross compile.
2401 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2402 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2403 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2404 # If not cross compiling, check that we can run a simple program.
2405 if test "$cross_compiling" != yes; then
2406 if { ac_try
='./$ac_file'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2414 if test "$cross_compiling" = maybe
; then
2417 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2418 If you meant to cross compile, use \`--host'.
2419 See \`config.log' for more details." >&5
2420 echo "$as_me: error: cannot run C compiled programs.
2421 If you meant to cross compile, use \`--host'.
2422 See \`config.log' for more details." >&2;}
2423 { (exit 1); exit 1; }; }
2427 echo "$as_me:$LINENO: result: yes" >&5
2428 echo "${ECHO_T}yes" >&6
2430 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2431 ac_clean_files
=$ac_clean_files_save
2432 # Check the compiler produces executables we can run. If not, either
2433 # the compiler is broken, or we cross compile.
2434 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2435 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2436 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2437 echo "${ECHO_T}$cross_compiling" >&6
2439 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2440 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2442 (eval $ac_link) 2>&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; then
2446 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2447 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2448 # work properly (i.e., refer to `conftest.exe'), while it won't with
2450 for ac_file
in conftest.exe conftest conftest.
*; do
2451 test -f "$ac_file" ||
continue
2453 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2454 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2461 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2462 See \`config.log' for more details." >&5
2463 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2464 See \`config.log' for more details." >&2;}
2465 { (exit 1); exit 1; }; }
2468 rm -f conftest
$ac_cv_exeext
2469 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2470 echo "${ECHO_T}$ac_cv_exeext" >&6
2472 rm -f conftest.
$ac_ext
2473 EXEEXT
=$ac_cv_exeext
2475 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2476 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2477 if test "${ac_cv_objext+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 cat >conftest.
$ac_ext <<_ACEOF
2483 cat confdefs.h
>>conftest.
$ac_ext
2484 cat >>conftest.
$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2495 rm -f conftest.o conftest.obj
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; then
2501 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2503 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2504 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.
$ac_ext >&5
2512 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2513 See \`config.log' for more details." >&5
2514 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2515 See \`config.log' for more details." >&2;}
2516 { (exit 1); exit 1; }; }
2519 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2521 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2522 echo "${ECHO_T}$ac_cv_objext" >&6
2523 OBJEXT
=$ac_cv_objext
2525 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2526 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2527 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 cat >conftest.
$ac_ext <<_ACEOF
2533 cat confdefs.h
>>conftest.
$ac_ext
2534 cat >>conftest.
$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2548 rm -f conftest.
$ac_objext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550 (eval $ac_compile) 2>conftest.er1
2552 grep -v '^ *+' conftest.er1
>conftest.err
2554 cat conftest.err
>&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); } &&
2557 { ac_try
='test -z "$ac_c_werror_flag"
2558 || test ! -s conftest.err'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; } &&
2564 { ac_try
='test -s conftest.$ac_objext'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.
$ac_ext >&5
2577 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2578 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2581 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2582 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2583 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2584 ac_test_CFLAGS
=${CFLAGS+set}
2585 ac_save_CFLAGS
=$CFLAGS
2587 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2588 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2589 if test "${ac_cv_prog_cc_g+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 cat >conftest.
$ac_ext <<_ACEOF
2595 cat confdefs.h
>>conftest.
$ac_ext
2596 cat >>conftest.
$ac_ext <<_ACEOF
2597 /* end confdefs.h. */
2607 rm -f conftest.
$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2611 grep -v '^ *+' conftest.er1
>conftest.err
2613 cat conftest.err
>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try
='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try
='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.
$ac_ext >&5
2636 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2638 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2639 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2640 if test "$ac_test_CFLAGS" = set; then
2641 CFLAGS
=$ac_save_CFLAGS
2642 elif test $ac_cv_prog_cc_g = yes; then
2643 if test "$GCC" = yes; then
2649 if test "$GCC" = yes; then
2655 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2656 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2657 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 ac_cv_prog_cc_stdc
=no
2662 cat >conftest.
$ac_ext <<_ACEOF
2665 cat confdefs.h
>>conftest.
$ac_ext
2666 cat >>conftest.
$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2670 #include <sys/types.h>
2671 #include <sys/stat.h>
2672 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2673 struct buf { int x; };
2674 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2675 static char *e (p, i)
2681 static char *f (char * (*g) (char **, int), char **p, ...)
2686 s = g (p, va_arg (v,int));
2691 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2692 function prototypes and stuff, but not '\xHH' hex character constants.
2693 These don't provoke an error unfortunately, instead are silently treated
2694 as 'x'. The following induces an error, until -std1 is added to get
2695 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2696 array size at least. It's necessary to write '\x00'==0 to get something
2697 that's true only with -std1. */
2698 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2700 int test (int i, double x);
2701 struct s1 {int (*f) (int a);};
2702 struct s2 {int (*f) (double a);};
2703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2709 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2714 # Don't try gcc -ansi; that turns off useful extensions and
2715 # breaks some systems' header files.
2716 # AIX -qlanglvl=ansi
2717 # Ultrix and OSF/1 -std1
2718 # HP-UX 10.20 and later -Ae
2719 # HP-UX older versions -Aa -D_HPUX_SOURCE
2720 # SVR4 -Xc -D__EXTENSIONS__
2721 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2723 CC
="$ac_save_CC $ac_arg"
2724 rm -f conftest.
$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726 (eval $ac_compile) 2>conftest.er1
2728 grep -v '^ *+' conftest.er1
>conftest.err
2730 cat conftest.err
>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try
='test -z "$ac_c_werror_flag"
2734 || test ! -s conftest.err'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; } &&
2740 { ac_try
='test -s conftest.$ac_objext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2746 ac_cv_prog_cc_stdc
=$ac_arg
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.
$ac_ext >&5
2753 rm -f conftest.err conftest.
$ac_objext
2755 rm -f conftest.
$ac_ext conftest.
$ac_objext
2760 case "x$ac_cv_prog_cc_stdc" in
2762 echo "$as_me:$LINENO: result: none needed" >&5
2763 echo "${ECHO_T}none needed" >&6 ;;
2765 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2766 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2767 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2770 # Some people use a C++ compiler to compile C. Since we use `exit',
2771 # in C++ we need to declare it. In case someone uses the same compiler
2772 # for both compiling C and C++ we need to have the C++ compiler decide
2773 # the declaration of exit, since it's the most demanding environment.
2774 cat >conftest.
$ac_ext <<_ACEOF
2779 rm -f conftest.
$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2783 grep -v '^ *+' conftest.er1
>conftest.err
2785 cat conftest.err
>&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try
='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try
='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 for ac_declaration
in \
2803 'extern "C" void std::exit (int) throw (); using std::exit;' \
2804 'extern "C" void std::exit (int); using std::exit;' \
2805 'extern "C" void exit (int) throw ();' \
2806 'extern "C" void exit (int);' \
2809 cat >conftest.
$ac_ext <<_ACEOF
2812 cat confdefs.h
>>conftest.
$ac_ext
2813 cat >>conftest.
$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2825 rm -f conftest.
$ac_objext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>conftest.er1
2829 grep -v '^ *+' conftest.er1
>conftest.err
2831 cat conftest.err
>&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try
='test -z "$ac_c_werror_flag"
2835 || test ! -s conftest.err'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; } &&
2841 { ac_try
='test -s conftest.$ac_objext'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.
$ac_ext >&5
2854 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2855 cat >conftest.
$ac_ext <<_ACEOF
2858 cat confdefs.h
>>conftest.
$ac_ext
2859 cat >>conftest.
$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2870 rm -f conftest.
$ac_objext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872 (eval $ac_compile) 2>conftest.er1
2874 grep -v '^ *+' conftest.er1
>conftest.err
2876 cat conftest.err
>&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } &&
2879 { ac_try
='test -z "$ac_c_werror_flag"
2880 || test ! -s conftest.err'
2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; } &&
2886 { ac_try
='test -s conftest.$ac_objext'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.
$ac_ext >&5
2898 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2901 if test -n "$ac_declaration"; then
2902 echo '#ifdef __cplusplus' >>confdefs.h
2903 echo $ac_declaration >>confdefs.h
2904 echo '#endif' >>confdefs.h
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.
$ac_ext >&5
2912 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2914 ac_cpp
='$CPP $CPPFLAGS'
2915 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2918 DEPDIR
="${am__leading_dot}deps"
2920 ac_config_commands
="$ac_config_commands depfiles"
2923 am_make
=${MAKE-make}
2924 cat > confinc
<< 'END'
2929 # If we don't find an include directive, just comment out the code.
2930 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2931 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2935 # First try GNU make style include.
2936 echo "include confinc" > confmf
2937 # We grep out `Entering directory' and `Leaving directory'
2938 # messages which can occur if `w' ends up in MAKEFLAGS.
2939 # In particular we don't look at `^make:' because GNU make might
2940 # be invoked under some other name (usually "gmake"), in which
2941 # case it prints its new name instead of `make'.
2942 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2947 # Now try BSD make style include.
2948 if test "$am__include" = "#"; then
2949 echo '.include "confinc"' > confmf
2950 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2951 am__include
=.include
2958 echo "$as_me:$LINENO: result: $_am_result" >&5
2959 echo "${ECHO_T}$_am_result" >&6
2960 rm -f confinc confmf
2962 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2963 if test "${enable_dependency_tracking+set}" = set; then
2964 enableval
="$enable_dependency_tracking"
2967 if test "x$enable_dependency_tracking" != xno
; then
2968 am_depcomp
="$ac_aux_dir/depcomp"
2973 if test "x$enable_dependency_tracking" != xno; then
2984 depcc
="$CC" am_compiler_list
=
2986 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2987 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2988 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2992 # We make a subdir and do the tests there. Otherwise we can end up
2993 # making bogus files that we don't know about and never remove. For
2994 # instance it was reported that on HP-UX the gcc test will end up
2995 # making a dummy file named `D' -- because `-MD' means `put the output
2998 # Copy depcomp to subdir because otherwise we won't find it if we're
2999 # using a relative directory.
3000 cp "$am_depcomp" conftest.dir
3002 # We will build objects and dependencies in a subdirectory because
3003 # it helps to detect inapplicable dependency modes. For instance
3004 # both Tru64's cc and ICC support -MD to output dependencies as a
3005 # side effect of compilation, but ICC will put the dependencies in
3006 # the current directory while Tru64 will put them in the object
3010 am_cv_CC_dependencies_compiler_type
=none
3011 if test "$am_compiler_list" = ""; then
3012 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3014 for depmode
in $am_compiler_list; do
3015 # Setup a source with many dependencies, because some compilers
3016 # like to wrap large dependency lists on column 80 (with \), and
3017 # we should not choose a depcomp mode which is confused by this.
3019 # We need to recreate these files for each test, as the compiler may
3020 # overwrite some of them when testing with obscure command lines.
3021 # This happens at least with the AIX C compiler.
3023 for i
in 1 2 3 4 5 6; do
3024 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3025 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3026 # Solaris 8's {/usr,}/bin/sh.
3027 touch sub
/conftst
$i.h
3029 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3033 # after this tag, mechanisms are not by side-effect, so they'll
3034 # only be used when explicitly requested
3035 if test "x$enable_dependency_tracking" = xyes
; then
3043 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3044 # mode. It turns out that the SunPro C++ compiler does not properly
3045 # handle `-M -o', and we need to detect this.
3046 if depmode
=$depmode \
3047 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3048 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3049 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3050 >/dev
/null
2>conftest.err
&&
3051 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3052 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3053 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3054 # icc doesn't choke on unknown options, it will just issue warnings
3055 # or remarks (even with -Werror). So we grep stderr for any message
3056 # that says an option was ignored or not supported.
3057 # When given -MP, icc 7.0 and 7.1 complain thusly:
3058 # icc: Command line warning: ignoring option '-M'; no argument required
3059 # The diagnosis changed in icc 8.0:
3060 # icc: Command line remark: option '-MP' not supported
3061 if (grep 'ignoring option' conftest.err ||
3062 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3063 am_cv_CC_dependencies_compiler_type
=$depmode
3072 am_cv_CC_dependencies_compiler_type
=none
3076 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3077 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3078 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3083 test "x$enable_dependency_tracking" != xno \
3084 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3086 am__fastdepCC_FALSE
='#'
3088 am__fastdepCC_TRUE
='#'
3089 am__fastdepCC_FALSE
=
3094 ac_cpp
='$CPP $CPPFLAGS'
3095 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3098 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3099 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3100 # On Suns, sometimes $CPP names a directory.
3101 if test -n "$CPP" && test -d "$CPP"; then
3104 if test -z "$CPP"; then
3105 if test "${ac_cv_prog_CPP+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 # Double quotes because CPP needs to be expanded
3109 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3112 for ac_c_preproc_warn_flag
in '' yes
3114 # Use a header file that comes with gcc, so configuring glibc
3115 # with a fresh cross-compiler works.
3116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3117 # <limits.h> exists even on freestanding compilers.
3118 # On the NeXT, cc -E runs the code through the compiler's parser,
3119 # not just through cpp. "Syntax error" is here to catch this case.
3120 cat >conftest.
$ac_ext <<_ACEOF
3123 cat confdefs.h
>>conftest.
$ac_ext
3124 cat >>conftest.
$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3127 # include <limits.h>
3129 # include <assert.h>
3133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3134 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3136 grep -v '^ *+' conftest.er1
>conftest.err
3138 cat conftest.err
>&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev
/null
; then
3141 if test -s conftest.err
; then
3142 ac_cpp_err
=$ac_c_preproc_warn_flag
3143 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3150 if test -z "$ac_cpp_err"; then
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.
$ac_ext >&5
3156 # Broken: fails on valid input.
3159 rm -f conftest.err conftest.
$ac_ext
3161 # OK, works on sane cases. Now check whether non-existent headers
3162 # can be detected and how.
3163 cat >conftest.
$ac_ext <<_ACEOF
3166 cat confdefs.h
>>conftest.
$ac_ext
3167 cat >>conftest.
$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3169 #include <ac_nonexistent.h>
3171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3172 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3174 grep -v '^ *+' conftest.er1
>conftest.err
3176 cat conftest.err
>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } >/dev
/null
; then
3179 if test -s conftest.err
; then
3180 ac_cpp_err
=$ac_c_preproc_warn_flag
3181 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3188 if test -z "$ac_cpp_err"; then
3189 # Broken: success on invalid input.
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.
$ac_ext >&5
3195 # Passes both tests.
3199 rm -f conftest.err conftest.
$ac_ext
3202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3203 rm -f conftest.err conftest.
$ac_ext
3204 if $ac_preproc_ok; then
3216 echo "$as_me:$LINENO: result: $CPP" >&5
3217 echo "${ECHO_T}$CPP" >&6
3219 for ac_c_preproc_warn_flag
in '' yes
3221 # Use a header file that comes with gcc, so configuring glibc
3222 # with a fresh cross-compiler works.
3223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3224 # <limits.h> exists even on freestanding compilers.
3225 # On the NeXT, cc -E runs the code through the compiler's parser,
3226 # not just through cpp. "Syntax error" is here to catch this case.
3227 cat >conftest.
$ac_ext <<_ACEOF
3230 cat confdefs.h
>>conftest.
$ac_ext
3231 cat >>conftest.
$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3234 # include <limits.h>
3236 # include <assert.h>
3240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3241 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3243 grep -v '^ *+' conftest.er1
>conftest.err
3245 cat conftest.err
>&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } >/dev
/null
; then
3248 if test -s conftest.err
; then
3249 ac_cpp_err
=$ac_c_preproc_warn_flag
3250 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3257 if test -z "$ac_cpp_err"; then
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.
$ac_ext >&5
3263 # Broken: fails on valid input.
3266 rm -f conftest.err conftest.
$ac_ext
3268 # OK, works on sane cases. Now check whether non-existent headers
3269 # can be detected and how.
3270 cat >conftest.
$ac_ext <<_ACEOF
3273 cat confdefs.h
>>conftest.
$ac_ext
3274 cat >>conftest.
$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3276 #include <ac_nonexistent.h>
3278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3279 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3281 grep -v '^ *+' conftest.er1
>conftest.err
3283 cat conftest.err
>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } >/dev
/null
; then
3286 if test -s conftest.err
; then
3287 ac_cpp_err
=$ac_c_preproc_warn_flag
3288 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3295 if test -z "$ac_cpp_err"; then
3296 # Broken: success on invalid input.
3299 echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.
$ac_ext >&5
3302 # Passes both tests.
3306 rm -f conftest.err conftest.
$ac_ext
3309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3310 rm -f conftest.err conftest.
$ac_ext
3311 if $ac_preproc_ok; then
3314 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3315 See \`config.log' for more details." >&5
3316 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3317 See \`config.log' for more details." >&2;}
3318 { (exit 1); exit 1; }; }
3322 ac_cpp
='$CPP $CPPFLAGS'
3323 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3328 # Make sure we can run config.sub.
3329 $ac_config_sub sun4
>/dev
/null
2>&1 ||
3330 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3331 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3332 { (exit 1); exit 1; }; }
3334 echo "$as_me:$LINENO: checking build system type" >&5
3335 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3336 if test "${ac_cv_build+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 ac_cv_build_alias
=$build_alias
3340 test -z "$ac_cv_build_alias" &&
3341 ac_cv_build_alias
=`$ac_config_guess`
3342 test -z "$ac_cv_build_alias" &&
3343 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3344 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3345 { (exit 1); exit 1; }; }
3346 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
3347 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3348 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3349 { (exit 1); exit 1; }; }
3352 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3353 echo "${ECHO_T}$ac_cv_build" >&6
3355 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3356 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3357 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3360 echo "$as_me:$LINENO: checking host system type" >&5
3361 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3362 if test "${ac_cv_host+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 ac_cv_host_alias
=$host_alias
3366 test -z "$ac_cv_host_alias" &&
3367 ac_cv_host_alias
=$ac_cv_build_alias
3368 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
3369 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3370 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3371 { (exit 1); exit 1; }; }
3374 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3375 echo "${ECHO_T}$ac_cv_host" >&6
3377 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3378 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3379 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3382 echo "$as_me:$LINENO: checking host platform" >&5
3383 echo $ECHO_N "checking host platform... $ECHO_C" >&6
3387 kernelversion
=`uname -r | sed -e 's/^\([0-9.]*\).*/\1/'`
3388 sv_cv_host
=`echo $sv_cv_host | sed -e "s/linux/linux$kernelversion/"`
3391 cat > conftest.c
<< EOF
3392 #include <features.h>
3393 #ifdef __GNU_LIBRARY__
3394 Version __GLIBC__ . __GLIBC_MINOR__
3397 glibcversion
=`$CPP $CPPFLAGS conftest.c 2>/dev/null | grep Version | sed -e 's/Version//' -e 's/ //g'`
3398 if test -n "$glibcversion"; then
3399 sv_cv_host
="$sv_cv_host-glibc$glibcversion"
3401 echo "$as_me:$LINENO: result: $sv_cv_host" >&5
3402 echo "${ECHO_T}$sv_cv_host" >&6
3403 PLATFORM
="$sv_cv_host"
3406 # Find a good install program. We prefer a C program (faster),
3407 # so one script is as good as another. But avoid the broken or
3408 # incompatible versions:
3409 # SysV /etc/install, /usr/sbin/install
3410 # SunOS /usr/etc/install
3411 # IRIX /sbin/install
3413 # AmigaOS /C/install, which installs bootblocks on floppy discs
3414 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3415 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3416 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3417 # OS/2's system install, which has a completely different semantic
3418 # ./install, which can be erroneously created by make from ./install.sh.
3419 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3420 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3421 if test -z "$INSTALL"; then
3422 if test "${ac_cv_path_install+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3429 test -z "$as_dir" && as_dir
=.
3430 # Account for people who put trailing slashes in PATH elements.
3432 .
/ | .
// |
/cC
/* | \
3433 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3434 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3437 # OSF1 and SCO ODT 3.0 have their own names for install.
3438 # Don't use installbsd from OSF since it installs stuff as root
3440 for ac_prog
in ginstall scoinst
install; do
3441 for ac_exec_ext
in '' $ac_executable_extensions; do
3442 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3443 if test $ac_prog = install &&
3444 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3445 # AIX install. It has an incompatible calling convention.
3447 elif test $ac_prog = install &&
3448 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3449 # program-specific install script used by HP pwplus--don't use.
3452 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3464 if test "${ac_cv_path_install+set}" = set; then
3465 INSTALL
=$ac_cv_path_install
3467 # As a last resort, use the slow shell script. We don't cache a
3468 # path for INSTALL within a source directory, because that will
3469 # break other packages using the cache if that directory is
3470 # removed, or if the path is relative.
3471 INSTALL
=$ac_install_sh
3474 echo "$as_me:$LINENO: result: $INSTALL" >&5
3475 echo "${ECHO_T}$INSTALL" >&6
3477 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3478 # It thinks the first close brace ends the variable substitution.
3479 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3481 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3483 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3486 # Check whether --enable-shared or --disable-shared was given.
3487 if test "${enable_shared+set}" = set; then
3488 enableval
="$enable_shared"
3489 p
=${PACKAGE-default}
3491 yes) enable_shared
=yes ;;
3492 no
) enable_shared
=no
;;
3495 # Look at the argument we got. We use all the common list separators.
3496 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3497 for pkg
in $enableval; do
3499 if test "X$pkg" = "X$p"; then
3511 # Check whether --enable-static or --disable-static was given.
3512 if test "${enable_static+set}" = set; then
3513 enableval
="$enable_static"
3514 p
=${PACKAGE-default}
3516 yes) enable_static
=yes ;;
3517 no
) enable_static
=no
;;
3520 # Look at the argument we got. We use all the common list separators.
3521 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3522 for pkg
in $enableval; do
3524 if test "X$pkg" = "X$p"; then
3535 # Check whether --enable-fast-install or --disable-fast-install was given.
3536 if test "${enable_fast_install+set}" = set; then
3537 enableval
="$enable_fast_install"
3538 p
=${PACKAGE-default}
3540 yes) enable_fast_install
=yes ;;
3541 no
) enable_fast_install
=no
;;
3543 enable_fast_install
=no
3544 # Look at the argument we got. We use all the common list separators.
3545 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3546 for pkg
in $enableval; do
3548 if test "X$pkg" = "X$p"; then
3549 enable_fast_install
=yes
3556 enable_fast_install
=yes
3559 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3560 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3561 if test "${lt_cv_path_SED+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 # Loop through the user's path and test for sed and gsed.
3565 # Then use that list of sed's as ones to test for truncation.
3566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3570 test -z "$as_dir" && as_dir
=.
3571 for lt_ac_prog
in sed gsed
; do
3572 for ac_exec_ext
in '' $ac_executable_extensions; do
3573 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3574 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3581 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3582 # along with /bin/sed that truncates output.
3583 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
3584 test ! -f $lt_ac_sed && continue
3585 cat /dev
/null
> conftest.
in
3587 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
3588 # Check for GNU sed and select it if it is found.
3589 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
3590 lt_cv_path_SED
=$lt_ac_sed
3594 cat conftest.
in conftest.
in >conftest.tmp
3595 mv conftest.tmp conftest.
in
3596 cp conftest.
in conftest.
nl
3598 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
3599 cmp -s conftest.out conftest.
nl ||
break
3600 # 10000 chars as input seems more than enough
3601 test $lt_ac_count -gt 10 && break
3602 lt_ac_count
=`expr $lt_ac_count + 1`
3603 if test $lt_ac_count -gt $lt_ac_max; then
3604 lt_ac_max
=$lt_ac_count
3605 lt_cv_path_SED
=$lt_ac_sed
3613 echo "$as_me:$LINENO: result: $SED" >&5
3614 echo "${ECHO_T}$SED" >&6
3616 echo "$as_me:$LINENO: checking for egrep" >&5
3617 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3618 if test "${ac_cv_prog_egrep+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3622 then ac_cv_prog_egrep
='grep -E'
3623 else ac_cv_prog_egrep
='egrep'
3626 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3627 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3628 EGREP
=$ac_cv_prog_egrep
3632 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3633 if test "${with_gnu_ld+set}" = set; then
3634 withval
="$with_gnu_ld"
3635 test "$withval" = no || with_gnu_ld
=yes
3640 if test "$GCC" = yes; then
3641 # Check if gcc -print-prog-name=ld gives a path.
3642 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3643 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3646 # gcc leaves a trailing carriage return which upsets mingw
3647 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3649 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3652 # Accept absolute paths.
3654 re_direlt
='/[^/][^/]*/\.\./'
3655 # Canonicalize the pathname of ld
3656 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
3657 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
3658 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3660 test -z "$LD" && LD
="$ac_prog"
3663 # If it fails, then pretend we aren't using GCC.
3667 # If it is relative, then search for the first ld in PATH.
3671 elif test "$with_gnu_ld" = yes; then
3672 echo "$as_me:$LINENO: checking for GNU ld" >&5
3673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3675 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3678 if test "${lt_cv_path_LD+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 if test -z "$LD"; then
3682 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3683 for ac_dir
in $PATH; do
3685 test -z "$ac_dir" && ac_dir
=.
3686 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3687 lt_cv_path_LD
="$ac_dir/$ac_prog"
3688 # Check to see if the program is GNU ld. I'd rather use --version,
3689 # but apparently some GNU ld's only accept -v.
3690 # Break only if it was the GNU/non-GNU ld that we prefer.
3691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3692 *GNU
* |
*'with BFD'*)
3693 test "$with_gnu_ld" != no
&& break
3696 test "$with_gnu_ld" != yes && break
3703 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3708 if test -n "$LD"; then
3709 echo "$as_me:$LINENO: result: $LD" >&5
3710 echo "${ECHO_T}$LD" >&6
3712 echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6
3715 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3716 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3717 { (exit 1); exit 1; }; }
3718 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3719 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3720 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3724 case `$LD -v 2>&1 </dev/null` in
3725 *GNU
* |
*'with BFD'*)
3726 lt_cv_prog_gnu_ld
=yes
3729 lt_cv_prog_gnu_ld
=no
3733 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3734 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3735 with_gnu_ld
=$lt_cv_prog_gnu_ld
3738 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3739 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3740 if test "${lt_cv_ld_reload_flag+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 lt_cv_ld_reload_flag
='-r'
3745 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3746 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3747 reload_flag
=$lt_cv_ld_reload_flag
3748 case $reload_flag in
3750 *) reload_flag
=" $reload_flag" ;;
3752 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3755 if test "$GCC" = yes; then
3756 reload_cmds
='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3758 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
3763 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3764 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3765 if test "${lt_cv_path_NM+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 if test -n "$NM"; then
3769 # Let the user override the test.
3772 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3773 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
3775 test -z "$ac_dir" && ac_dir
=.
3776 tmp_nm
="$ac_dir/${ac_tool_prefix}nm"
3777 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
3778 # Check to see if the nm accepts a BSD-compat flag.
3779 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3780 # nm: unknown option "B" ignored
3781 # Tru64's nm complains that /dev/null is an invalid object file
3782 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3783 */dev
/null
* |
*'Invalid file or object type'*)
3784 lt_cv_path_NM
="$tmp_nm -B"
3788 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3790 lt_cv_path_NM
="$tmp_nm -p"
3794 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3795 continue # so that we can try to find one that supports BSD flags
3802 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
3805 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3806 echo "${ECHO_T}$lt_cv_path_NM" >&6
3809 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3810 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3812 if test "$LN_S" = "ln -s"; then
3813 echo "$as_me:$LINENO: result: yes" >&5
3814 echo "${ECHO_T}yes" >&6
3816 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3817 echo "${ECHO_T}no, using $LN_S" >&6
3820 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3821 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3822 if test "${lt_cv_deplibs_check_method+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 lt_cv_file_magic_cmd
='$MAGIC_CMD'
3826 lt_cv_file_magic_test_file
=
3827 lt_cv_deplibs_check_method
='unknown'
3828 # Need to set the preceding variable on all platforms that support
3829 # interlibrary dependencies.
3830 # 'none' -- dependencies not supported.
3831 # `unknown' -- same as none, but documents that we really don't know.
3832 # 'pass_all' -- all dependencies passed with no checks.
3833 # 'test_compile' -- check by making test program.
3834 # 'file_magic [[regex]]' -- check by looking for files in library path
3835 # which responds to the $file_magic_cmd with a given extended regex.
3836 # If you have `file' or equivalent on your system and you're not sure
3837 # whether `pass_all' will *always* work, you probably want this one.
3841 lt_cv_deplibs_check_method
=pass_all
3845 lt_cv_deplibs_check_method
=pass_all
3849 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3850 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3851 lt_cv_file_magic_test_file
=/shlib
/libc.so
3855 # func_win32_libid is a shell function defined in ltmain.sh
3856 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
3857 lt_cv_file_magic_cmd
='func_win32_libid'
3861 # Base MSYS/MinGW do not provide the 'file' command needed by
3862 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3863 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
3864 lt_cv_file_magic_cmd
='$OBJDUMP -f'
3867 darwin
* | rhapsody
*)
3868 lt_cv_deplibs_check_method
=pass_all
3871 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
3872 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3875 # Not sure whether the presence of OpenBSD here was a mistake.
3876 # Let's accept both of them until this is cleared up.
3877 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3878 lt_cv_file_magic_cmd
=/usr
/bin
/file
3879 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
3883 lt_cv_deplibs_check_method
=pass_all
3888 lt_cv_deplibs_check_method
=pass_all
3891 hpux10.20
* | hpux11
*)
3892 lt_cv_file_magic_cmd
=/usr
/bin
/file
3895 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3896 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
3899 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]'
3900 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
3903 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3904 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
3909 irix5
* | irix6
* | nonstopux
*)
3911 *-32|
*"-32 ") libmagic
=32-bit;;
3912 *-n32|
*"-n32 ") libmagic
=N32
;;
3913 *-64|
*"-64 ") libmagic
=64-bit;;
3914 *) libmagic
=never-match
;;
3916 lt_cv_deplibs_check_method
=pass_all
3919 # This must be Linux ELF.
3921 lt_cv_deplibs_check_method
=pass_all
3925 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3926 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3928 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3933 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3934 lt_cv_file_magic_cmd
=/usr
/bin
/file
3935 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
3939 lt_cv_deplibs_check_method
=unknown
3943 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3944 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3946 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3950 osf3
* | osf4
* | osf5
*)
3951 lt_cv_deplibs_check_method
=pass_all
3955 lt_cv_deplibs_check_method
=pass_all
3959 lt_cv_deplibs_check_method
=pass_all
3962 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
3963 case $host_vendor in
3965 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]'
3966 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
3969 lt_cv_deplibs_check_method
=pass_all
3972 lt_cv_file_magic_cmd
='/bin/file'
3973 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3976 lt_cv_file_magic_cmd
='/bin/file'
3977 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3978 lt_cv_file_magic_test_file
=/lib
/libc.so
3981 lt_cv_deplibs_check_method
=pass_all
3986 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
* | sysv4
*uw2
*)
3987 lt_cv_deplibs_check_method
=pass_all
3992 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3993 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3994 file_magic_cmd
=$lt_cv_file_magic_cmd
3995 deplibs_check_method
=$lt_cv_deplibs_check_method
3996 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4001 # If no C compiler was specified, use CC.
4004 # Allow CC to be a program name with arguments.
4008 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4009 if test "${enable_libtool_lock+set}" = set; then
4010 enableval
="$enable_libtool_lock"
4013 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
4015 # Some flags need to be propagated to the compiler or linker for good
4019 # Find out which ABI we are using.
4020 echo 'int i;' > conftest.
$ac_ext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022 (eval $ac_compile) 2>&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; then
4026 case `/usr/bin/file conftest.$ac_objext` in
4038 # Find out which ABI we are using.
4039 echo '#line 4039 "configure"' > conftest.
$ac_ext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; then
4045 if test "$lt_cv_prog_gnu_ld" = yes; then
4046 case `/usr/bin/file conftest.$ac_objext` in
4048 LD
="${LD-ld} -melf32bsmip"
4051 LD
="${LD-ld} -melf32bmipn32"
4054 LD
="${LD-ld} -melf64bmip"
4058 case `/usr/bin/file conftest.$ac_objext` in
4074 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
4075 # Find out which ABI we are using.
4076 echo 'int i;' > conftest.
$ac_ext
4077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4078 (eval $ac_compile) 2>&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; then
4082 case "`/usr/bin/file conftest.o`" in
4086 LD
="${LD-ld} -m elf_i386"
4088 ppc64-
*linux
*|powerpc64-
*linux
*)
4089 LD
="${LD-ld} -m elf32ppclinux"
4092 LD
="${LD-ld} -m elf_s390"
4095 LD
="${LD-ld} -m elf32_sparc"
4102 LD
="${LD-ld} -m elf_x86_64"
4104 ppc
*-*linux
*|powerpc
*-*linux
*)
4105 LD
="${LD-ld} -m elf64ppc"
4108 LD
="${LD-ld} -m elf64_s390"
4111 LD
="${LD-ld} -m elf64_sparc"
4121 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4122 SAVE_CFLAGS
="$CFLAGS"
4123 CFLAGS
="$CFLAGS -belf"
4124 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4125 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4126 if test "${lt_cv_cc_needs_belf+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 ac_cpp
='$CPP $CPPFLAGS'
4131 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4135 cat >conftest.
$ac_ext <<_ACEOF
4138 cat confdefs.h
>>conftest.
$ac_ext
4139 cat >>conftest.
$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4150 rm -f conftest.
$ac_objext conftest
$ac_exeext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4152 (eval $ac_link) 2>conftest.er1
4154 grep -v '^ *+' conftest.er1
>conftest.err
4156 cat conftest.err
>&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try
='test -z "$ac_c_werror_flag"
4160 || test ! -s conftest.err'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; } &&
4166 { ac_try
='test -s conftest$ac_exeext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 lt_cv_cc_needs_belf
=yes
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.
$ac_ext >&5
4177 lt_cv_cc_needs_belf
=no
4179 rm -f conftest.err conftest.
$ac_objext \
4180 conftest
$ac_exeext conftest.
$ac_ext
4182 ac_cpp
='$CPP $CPPFLAGS'
4183 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4188 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4189 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4190 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
4191 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4192 CFLAGS
="$SAVE_CFLAGS"
4198 need_locks
="$enable_libtool_lock"
4202 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4203 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4204 if test "${ac_cv_header_stdc+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 cat >conftest.
$ac_ext <<_ACEOF
4210 cat confdefs.h
>>conftest.
$ac_ext
4211 cat >>conftest.
$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4226 rm -f conftest.
$ac_objext
4227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4228 (eval $ac_compile) 2>conftest.er1
4230 grep -v '^ *+' conftest.er1
>conftest.err
4232 cat conftest.err
>&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 { ac_try
='test -z "$ac_c_werror_flag"
4236 || test ! -s conftest.err'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; } &&
4242 { ac_try
='test -s conftest.$ac_objext'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_cv_header_stdc
=yes
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.
$ac_ext >&5
4253 ac_cv_header_stdc
=no
4255 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4257 if test $ac_cv_header_stdc = yes; then
4258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4259 cat >conftest.
$ac_ext <<_ACEOF
4262 cat confdefs.h
>>conftest.
$ac_ext
4263 cat >>conftest.
$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4269 $EGREP "memchr" >/dev
/null
2>&1; then
4272 ac_cv_header_stdc
=no
4278 if test $ac_cv_header_stdc = yes; then
4279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4280 cat >conftest.
$ac_ext <<_ACEOF
4283 cat confdefs.h
>>conftest.
$ac_ext
4284 cat >>conftest.
$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4290 $EGREP "free" >/dev
/null
2>&1; then
4293 ac_cv_header_stdc
=no
4299 if test $ac_cv_header_stdc = yes; then
4300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4301 if test "$cross_compiling" = yes; then
4304 cat >conftest.
$ac_ext <<_ACEOF
4307 cat confdefs.h
>>conftest.
$ac_ext
4308 cat >>conftest.
$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4311 #if ((' ' & 0x0FF) == 0x020)
4312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4315 # define ISLOWER(c) \
4316 (('a' <= (c) && (c) <= 'i') \
4317 || ('j' <= (c) && (c) <= 'r') \
4318 || ('s' <= (c) && (c) <= 'z'))
4319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4327 for (i = 0; i < 256; i++)
4328 if (XOR (islower (i), ISLOWER (i))
4329 || toupper (i) != TOUPPER (i))
4334 rm -f conftest
$ac_exeext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4336 (eval $ac_link) 2>&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
4347 echo "$as_me: program exited with status $ac_status" >&5
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.
$ac_ext >&5
4352 ac_cv_header_stdc
=no
4354 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4358 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4359 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4360 if test $ac_cv_header_stdc = yes; then
4362 cat >>confdefs.h
<<\_ACEOF
4363 #define STDC_HEADERS 1
4368 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4378 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4379 inttypes.h stdint.h unistd.h
4381 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4382 echo "$as_me:$LINENO: checking for $ac_header" >&5
4383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 cat >conftest.
$ac_ext <<_ACEOF
4390 cat confdefs.h
>>conftest.
$ac_ext
4391 cat >>conftest.
$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393 $ac_includes_default
4395 #include <$ac_header>
4397 rm -f conftest.
$ac_objext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399 (eval $ac_compile) 2>conftest.er1
4401 grep -v '^ *+' conftest.er1
>conftest.err
4403 cat conftest.err
>&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try
='test -z "$ac_c_werror_flag"
4407 || test ! -s conftest.err'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; } &&
4413 { ac_try
='test -s conftest.$ac_objext'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4419 eval "$as_ac_Header=yes"
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.
$ac_ext >&5
4424 eval "$as_ac_Header=no"
4426 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4431 cat >>confdefs.h
<<_ACEOF
4432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4441 for ac_header
in dlfcn.h
4443 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4445 echo "$as_me:$LINENO: checking for $ac_header" >&5
4446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4453 # Is the header compilable?
4454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4456 cat >conftest.
$ac_ext <<_ACEOF
4459 cat confdefs.h
>>conftest.
$ac_ext
4460 cat >>conftest.
$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 $ac_includes_default
4463 #include <$ac_header>
4465 rm -f conftest.
$ac_objext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467 (eval $ac_compile) 2>conftest.er1
4469 grep -v '^ *+' conftest.er1
>conftest.err
4471 cat conftest.err
>&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } &&
4474 { ac_try
='test -z "$ac_c_werror_flag"
4475 || test ! -s conftest.err'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; } &&
4481 { ac_try
='test -s conftest.$ac_objext'
4482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; }; then
4487 ac_header_compiler
=yes
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.
$ac_ext >&5
4492 ac_header_compiler
=no
4494 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4496 echo "${ECHO_T}$ac_header_compiler" >&6
4498 # Is the header present?
4499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4501 cat >conftest.
$ac_ext <<_ACEOF
4504 cat confdefs.h
>>conftest.
$ac_ext
4505 cat >>conftest.
$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4507 #include <$ac_header>
4509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4510 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4512 grep -v '^ *+' conftest.er1
>conftest.err
4514 cat conftest.err
>&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } >/dev
/null
; then
4517 if test -s conftest.err
; then
4518 ac_cpp_err
=$ac_c_preproc_warn_flag
4519 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4526 if test -z "$ac_cpp_err"; then
4527 ac_header_preproc
=yes
4529 echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.
$ac_ext >&5
4532 ac_header_preproc
=no
4534 rm -f conftest.err conftest.
$ac_ext
4535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4536 echo "${ECHO_T}$ac_header_preproc" >&6
4538 # So? What about this header?
4539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4545 ac_header_preproc
=yes
4548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4562 ## ------------------------------------------ ##
4563 ## Report this to the AC_PACKAGE_NAME lists. ##
4564 ## ------------------------------------------ ##
4567 sed "s/^/$as_me: WARNING: /" >&2
4570 echo "$as_me:$LINENO: checking for $ac_header" >&5
4571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 eval "$as_ac_Header=\$ac_header_preproc"
4577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4582 cat >>confdefs.h
<<_ACEOF
4583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4591 ac_cpp
='$CXXCPP $CPPFLAGS'
4592 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4593 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4594 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4595 if test -n "$ac_tool_prefix"; then
4596 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
4598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4599 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4600 echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602 if test "${ac_cv_prog_CXX+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 if test -n "$CXX"; then
4606 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4612 test -z "$as_dir" && as_dir
=.
4613 for ac_exec_ext
in '' $ac_executable_extensions; do
4614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 if test -n "$CXX"; then
4626 echo "$as_me:$LINENO: result: $CXX" >&5
4627 echo "${ECHO_T}$CXX" >&6
4629 echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6
4633 test -n "$CXX" && break
4636 if test -z "$CXX"; then
4638 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
4640 # Extract the first word of "$ac_prog", so it can be a program name with args.
4641 set dummy
$ac_prog; ac_word
=$2
4642 echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4644 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 if test -n "$ac_ct_CXX"; then
4648 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4654 test -z "$as_dir" && as_dir
=.
4655 for ac_exec_ext
in '' $ac_executable_extensions; do
4656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4667 if test -n "$ac_ct_CXX"; then
4668 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4669 echo "${ECHO_T}$ac_ct_CXX" >&6
4671 echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6
4675 test -n "$ac_ct_CXX" && break
4677 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
4683 # Provide some information about the compiler.
4684 echo "$as_me:$LINENO:" \
4685 "checking for C++ compiler version" >&5
4686 ac_compiler
=`set X $ac_compile; echo $2`
4687 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4688 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }
4692 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4693 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }
4697 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4698 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }
4703 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4704 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4705 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 cat >conftest.
$ac_ext <<_ACEOF
4711 cat confdefs.h
>>conftest.
$ac_ext
4712 cat >>conftest.
$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4726 rm -f conftest.
$ac_objext
4727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4728 (eval $ac_compile) 2>conftest.er1
4730 grep -v '^ *+' conftest.er1
>conftest.err
4732 cat conftest.err
>&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } &&
4735 { ac_try
='test -z "$ac_cxx_werror_flag"
4736 || test ! -s conftest.err'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; } &&
4742 { ac_try
='test -s conftest.$ac_objext'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.
$ac_ext >&5
4755 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4756 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4759 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4760 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4761 GXX
=`test $ac_compiler_gnu = yes && echo yes`
4762 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4763 ac_save_CXXFLAGS
=$CXXFLAGS
4765 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4766 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4767 if test "${ac_cv_prog_cxx_g+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 cat >conftest.
$ac_ext <<_ACEOF
4773 cat confdefs.h
>>conftest.
$ac_ext
4774 cat >>conftest.
$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4785 rm -f conftest.
$ac_objext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4787 (eval $ac_compile) 2>conftest.er1
4789 grep -v '^ *+' conftest.er1
>conftest.err
4791 cat conftest.err
>&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } &&
4794 { ac_try
='test -z "$ac_cxx_werror_flag"
4795 || test ! -s conftest.err'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; } &&
4801 { ac_try
='test -s conftest.$ac_objext'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; }; then
4807 ac_cv_prog_cxx_g
=yes
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.
$ac_ext >&5
4814 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4816 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4817 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4818 if test "$ac_test_CXXFLAGS" = set; then
4819 CXXFLAGS
=$ac_save_CXXFLAGS
4820 elif test $ac_cv_prog_cxx_g = yes; then
4821 if test "$GXX" = yes; then
4827 if test "$GXX" = yes; then
4833 for ac_declaration
in \
4835 'extern "C" void std::exit (int) throw (); using std::exit;' \
4836 'extern "C" void std::exit (int); using std::exit;' \
4837 'extern "C" void exit (int) throw ();' \
4838 'extern "C" void exit (int);' \
4841 cat >conftest.
$ac_ext <<_ACEOF
4844 cat confdefs.h
>>conftest.
$ac_ext
4845 cat >>conftest.
$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4857 rm -f conftest.
$ac_objext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859 (eval $ac_compile) 2>conftest.er1
4861 grep -v '^ *+' conftest.er1
>conftest.err
4863 cat conftest.err
>&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try
='test -z "$ac_cxx_werror_flag"
4867 || test ! -s conftest.err'
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; } &&
4873 { ac_try
='test -s conftest.$ac_objext'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; }; then
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.
$ac_ext >&5
4886 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4887 cat >conftest.
$ac_ext <<_ACEOF
4890 cat confdefs.h
>>conftest.
$ac_ext
4891 cat >>conftest.
$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4902 rm -f conftest.
$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>conftest.er1
4906 grep -v '^ *+' conftest.er1
>conftest.err
4908 cat conftest.err
>&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try
='test -z "$ac_cxx_werror_flag"
4912 || test ! -s conftest.err'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; } &&
4918 { ac_try
='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.
$ac_ext >&5
4930 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4933 if test -n "$ac_declaration"; then
4934 echo '#ifdef __cplusplus' >>confdefs.h
4935 echo $ac_declaration >>confdefs.h
4936 echo '#endif' >>confdefs.h
4940 ac_cpp
='$CXXCPP $CPPFLAGS'
4941 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4945 depcc
="$CXX" am_compiler_list
=
4947 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4948 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4949 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4953 # We make a subdir and do the tests there. Otherwise we can end up
4954 # making bogus files that we don't know about and never remove. For
4955 # instance it was reported that on HP-UX the gcc test will end up
4956 # making a dummy file named `D' -- because `-MD' means `put the output
4959 # Copy depcomp to subdir because otherwise we won't find it if we're
4960 # using a relative directory.
4961 cp "$am_depcomp" conftest.dir
4963 # We will build objects and dependencies in a subdirectory because
4964 # it helps to detect inapplicable dependency modes. For instance
4965 # both Tru64's cc and ICC support -MD to output dependencies as a
4966 # side effect of compilation, but ICC will put the dependencies in
4967 # the current directory while Tru64 will put them in the object
4971 am_cv_CXX_dependencies_compiler_type
=none
4972 if test "$am_compiler_list" = ""; then
4973 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4975 for depmode
in $am_compiler_list; do
4976 # Setup a source with many dependencies, because some compilers
4977 # like to wrap large dependency lists on column 80 (with \), and
4978 # we should not choose a depcomp mode which is confused by this.
4980 # We need to recreate these files for each test, as the compiler may
4981 # overwrite some of them when testing with obscure command lines.
4982 # This happens at least with the AIX C compiler.
4984 for i
in 1 2 3 4 5 6; do
4985 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4986 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4987 # Solaris 8's {/usr,}/bin/sh.
4988 touch sub
/conftst
$i.h
4990 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4994 # after this tag, mechanisms are not by side-effect, so they'll
4995 # only be used when explicitly requested
4996 if test "x$enable_dependency_tracking" = xyes
; then
5004 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5005 # mode. It turns out that the SunPro C++ compiler does not properly
5006 # handle `-M -o', and we need to detect this.
5007 if depmode
=$depmode \
5008 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
5009 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5010 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
5011 >/dev
/null
2>conftest.err
&&
5012 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5013 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
5014 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5015 # icc doesn't choke on unknown options, it will just issue warnings
5016 # or remarks (even with -Werror). So we grep stderr for any message
5017 # that says an option was ignored or not supported.
5018 # When given -MP, icc 7.0 and 7.1 complain thusly:
5019 # icc: Command line warning: ignoring option '-M'; no argument required
5020 # The diagnosis changed in icc 8.0:
5021 # icc: Command line remark: option '-MP' not supported
5022 if (grep 'ignoring option' conftest.err ||
5023 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5024 am_cv_CXX_dependencies_compiler_type
=$depmode
5033 am_cv_CXX_dependencies_compiler_type
=none
5037 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5038 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5039 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5044 test "x$enable_dependency_tracking" != xno \
5045 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5046 am__fastdepCXX_TRUE
=
5047 am__fastdepCXX_FALSE
='#'
5049 am__fastdepCXX_TRUE
='#'
5050 am__fastdepCXX_FALSE
=
5056 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5057 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5058 (test "X$CXX" != "Xg++"))) ; then
5060 ac_cpp
='$CXXCPP $CPPFLAGS'
5061 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5062 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5063 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5064 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5065 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5066 if test -z "$CXXCPP"; then
5067 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 # Double quotes because CXXCPP needs to be expanded
5071 for CXXCPP
in "$CXX -E" "/lib/cpp"
5074 for ac_cxx_preproc_warn_flag
in '' yes
5076 # Use a header file that comes with gcc, so configuring glibc
5077 # with a fresh cross-compiler works.
5078 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5079 # <limits.h> exists even on freestanding compilers.
5080 # On the NeXT, cc -E runs the code through the compiler's parser,
5081 # not just through cpp. "Syntax error" is here to catch this case.
5082 cat >conftest.
$ac_ext <<_ACEOF
5085 cat confdefs.h
>>conftest.
$ac_ext
5086 cat >>conftest.
$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5089 # include <limits.h>
5091 # include <assert.h>
5095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5096 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5098 grep -v '^ *+' conftest.er1
>conftest.err
5100 cat conftest.err
>&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } >/dev
/null
; then
5103 if test -s conftest.err
; then
5104 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5105 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5112 if test -z "$ac_cpp_err"; then
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.
$ac_ext >&5
5118 # Broken: fails on valid input.
5121 rm -f conftest.err conftest.
$ac_ext
5123 # OK, works on sane cases. Now check whether non-existent headers
5124 # can be detected and how.
5125 cat >conftest.
$ac_ext <<_ACEOF
5128 cat confdefs.h
>>conftest.
$ac_ext
5129 cat >>conftest.
$ac_ext <<_ACEOF
5130 /* end confdefs.h. */
5131 #include <ac_nonexistent.h>
5133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5134 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5136 grep -v '^ *+' conftest.er1
>conftest.err
5138 cat conftest.err
>&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } >/dev
/null
; then
5141 if test -s conftest.err
; then
5142 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5143 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5150 if test -z "$ac_cpp_err"; then
5151 # Broken: success on invalid input.
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.
$ac_ext >&5
5157 # Passes both tests.
5161 rm -f conftest.err conftest.
$ac_ext
5164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5165 rm -f conftest.err conftest.
$ac_ext
5166 if $ac_preproc_ok; then
5171 ac_cv_prog_CXXCPP
=$CXXCPP
5174 CXXCPP
=$ac_cv_prog_CXXCPP
5176 ac_cv_prog_CXXCPP
=$CXXCPP
5178 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5179 echo "${ECHO_T}$CXXCPP" >&6
5181 for ac_cxx_preproc_warn_flag
in '' yes
5183 # Use a header file that comes with gcc, so configuring glibc
5184 # with a fresh cross-compiler works.
5185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5186 # <limits.h> exists even on freestanding compilers.
5187 # On the NeXT, cc -E runs the code through the compiler's parser,
5188 # not just through cpp. "Syntax error" is here to catch this case.
5189 cat >conftest.
$ac_ext <<_ACEOF
5192 cat confdefs.h
>>conftest.
$ac_ext
5193 cat >>conftest.
$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5196 # include <limits.h>
5198 # include <assert.h>
5202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5203 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5205 grep -v '^ *+' conftest.er1
>conftest.err
5207 cat conftest.err
>&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } >/dev
/null
; then
5210 if test -s conftest.err
; then
5211 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5212 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5219 if test -z "$ac_cpp_err"; then
5222 echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.
$ac_ext >&5
5225 # Broken: fails on valid input.
5228 rm -f conftest.err conftest.
$ac_ext
5230 # OK, works on sane cases. Now check whether non-existent headers
5231 # can be detected and how.
5232 cat >conftest.
$ac_ext <<_ACEOF
5235 cat confdefs.h
>>conftest.
$ac_ext
5236 cat >>conftest.
$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 #include <ac_nonexistent.h>
5240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5241 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5243 grep -v '^ *+' conftest.er1
>conftest.err
5245 cat conftest.err
>&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } >/dev
/null
; then
5248 if test -s conftest.err
; then
5249 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5250 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5257 if test -z "$ac_cpp_err"; then
5258 # Broken: success on invalid input.
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.
$ac_ext >&5
5264 # Passes both tests.
5268 rm -f conftest.err conftest.
$ac_ext
5271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5272 rm -f conftest.err conftest.
$ac_ext
5273 if $ac_preproc_ok; then
5276 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5277 See \`config.log' for more details." >&5
5278 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5279 See \`config.log' for more details." >&2;}
5280 { (exit 1); exit 1; }; }
5284 ac_cpp
='$CXXCPP $CPPFLAGS'
5285 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5286 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5287 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5293 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5294 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
5296 if test -n "$ac_tool_prefix"; then
5297 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5300 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5301 echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5303 if test "${ac_cv_prog_F77+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 if test -n "$F77"; then
5307 ac_cv_prog_F77
="$F77" # Let the user override the test.
5309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5313 test -z "$as_dir" && as_dir
=.
5314 for ac_exec_ext
in '' $ac_executable_extensions; do
5315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
5317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 if test -n "$F77"; then
5327 echo "$as_me:$LINENO: result: $F77" >&5
5328 echo "${ECHO_T}$F77" >&6
5330 echo "$as_me:$LINENO: result: no" >&5
5331 echo "${ECHO_T}no" >&6
5334 test -n "$F77" && break
5337 if test -z "$F77"; then
5339 for ac_prog
in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5341 # Extract the first word of "$ac_prog", so it can be a program name with args.
5342 set dummy
$ac_prog; ac_word
=$2
5343 echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5345 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 if test -n "$ac_ct_F77"; then
5349 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
5351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5355 test -z "$as_dir" && as_dir
=.
5356 for ac_exec_ext
in '' $ac_executable_extensions; do
5357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358 ac_cv_prog_ac_ct_F77
="$ac_prog"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
5368 if test -n "$ac_ct_F77"; then
5369 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5370 echo "${ECHO_T}$ac_ct_F77" >&6
5372 echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6
5376 test -n "$ac_ct_F77" && break
5383 # Provide some information about the compiler.
5384 echo "$as_me:5384:" \
5385 "checking for Fortran 77 compiler version" >&5
5386 ac_compiler
=`set X $ac_compile; echo $2`
5387 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5388 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }
5392 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5393 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }
5397 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5398 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }
5404 # If we don't use `.F' as extension, the preprocessor is not run on the
5405 # input file. (Note that this only needs to work for GNU compilers.)
5408 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5409 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5410 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 cat >conftest.
$ac_ext <<_ACEOF
5421 rm -f conftest.
$ac_objext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423 (eval $ac_compile) 2>conftest.er1
5425 grep -v '^ *+' conftest.er1
>conftest.err
5427 cat conftest.err
>&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } &&
5430 { ac_try
='test -z "$ac_f77_werror_flag"
5431 || test ! -s conftest.err'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try
='test -s conftest.$ac_objext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.
$ac_ext >&5
5450 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5451 ac_cv_f77_compiler_gnu
=$ac_compiler_gnu
5454 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5455 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5457 ac_test_FFLAGS
=${FFLAGS+set}
5458 ac_save_FFLAGS
=$FFLAGS
5460 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5461 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5462 if test "${ac_cv_prog_f77_g+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 cat >conftest.
$ac_ext <<_ACEOF
5471 rm -f conftest.
$ac_objext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>conftest.er1
5475 grep -v '^ *+' conftest.er1
>conftest.err
5477 cat conftest.err
>&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try
='test -z "$ac_f77_werror_flag"
5481 || test ! -s conftest.err'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; } &&
5487 { ac_try
='test -s conftest.$ac_objext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_cv_prog_f77_g
=yes
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.
$ac_ext >&5
5500 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5503 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5504 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5505 if test "$ac_test_FFLAGS" = set; then
5506 FFLAGS
=$ac_save_FFLAGS
5507 elif test $ac_cv_prog_f77_g = yes; then
5508 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5514 if test "x$ac_cv_f77_compiler_gnu" = xyes
; then
5521 G77
=`test $ac_compiler_gnu = yes && echo yes`
5523 ac_cpp
='$CPP $CPPFLAGS'
5524 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5525 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5526 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5530 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5532 # find the maximum length of command line arguments
5533 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5534 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5535 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 # On DJGPP, this test can blow up pretty badly due to problems in libc
5544 # (any single argument exceeding 2000 bytes causes a buffer overrun
5545 # during glob expansion). Even if it were fixed, the result of this
5546 # check would be larger than it should be.
5547 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5551 # Under GNU Hurd, this test is not required because there is
5552 # no limit to the length of command line arguments.
5553 # Libtool will interpret -1 as no limit whatsoever
5554 lt_cv_sys_max_cmd_len
=-1;
5558 # On Win9x/ME, this test blows up -- it succeeds, but takes
5559 # about 5 minutes as the teststring grows exponentially.
5560 # Worse, since 9x/ME are not pre-emptively multitasking,
5561 # you end up with a "frozen" computer, even though with patience
5562 # the test eventually succeeds (with a max line length of 256k).
5563 # Instead, let's just punt: use the minimum linelength reported by
5564 # all of the supported platforms: 8192 (on NT/2K/XP).
5565 lt_cv_sys_max_cmd_len
=8192;
5569 # On AmigaOS with pdksh, this test takes hours, literally.
5570 # So we just punt and use a minimum line length of 8192.
5571 lt_cv_sys_max_cmd_len
=8192;
5574 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5575 # This has been around since 386BSD, at least. Likely further.
5576 if test -x /sbin
/sysctl
; then
5577 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5578 elif test -x /usr
/sbin
/sysctl
; then
5579 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5581 lt_cv_sys_max_cmd_len
=65536 # usable default for *BSD
5583 # And add a safety zone
5584 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5587 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5588 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5589 # nice to cause kernel panics so lets avoid the loop below.
5590 # First set a reasonable default.
5591 lt_cv_sys_max_cmd_len
=16384
5593 if test -x /sbin
/sysconfig
; then
5594 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5595 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5600 # If test is not a shell built-in, we'll probably end up computing a
5601 # maximum length that is only half of the actual maximum length, but
5603 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5604 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5605 = "XX$teststring") >/dev
/null
2>&1 &&
5606 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
5607 lt_cv_sys_max_cmd_len
=$new_result &&
5608 test $i != 17 # 1/2 MB should be enough
5611 teststring
=$teststring$teststring
5614 # Add a significant safety factor because C++ compilers can tack on massive
5615 # amounts of additional arguments before passing them to the linker.
5616 # It appears as though 1/2 is a usable value.
5617 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5623 if test -n $lt_cv_sys_max_cmd_len ; then
5624 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5625 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5627 echo "$as_me:$LINENO: result: none" >&5
5628 echo "${ECHO_T}none" >&6
5634 # Check for command to grab the raw symbol name followed by C symbol from nm.
5635 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5636 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5637 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 # These are sane defaults that work on at least a few old systems.
5642 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5644 # Character class describing NM global symbol codes.
5645 symcode
='[BCDEGRST]'
5647 # Regexp to match symbols that can be accessed directly from C.
5648 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
5650 # Transform an extracted symbol line into a proper C declaration
5651 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5653 # Transform an extracted symbol line into symbol name and symbol address
5654 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5656 # Define system-specific variables.
5661 cygwin
* | mingw
* | pw32
*)
5662 symcode
='[ABCDGISTW]'
5664 hpux
*) # Its linker distinguishes data from code symbols
5665 if test "$host_cpu" = ia64
; then
5666 symcode
='[ABCDEGRST]'
5668 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5669 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5672 if test "$host_cpu" = ia64
; then
5673 symcode
='[ABCDGIRSTW]'
5674 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5675 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5679 symcode
='[BCDEGRST]'
5682 symcode
='[BCDEGQRST]'
5692 # Handle CRLF in mingw tool chain
5696 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5700 # If we're using GNU nm, then use its standard symbol codes.
5701 case `$NM -V 2>&1` in
5702 *GNU
* |
*'with BFD'*)
5703 symcode
='[ABCDGIRSTW]' ;;
5706 # Try without a prefix undercore, then with it.
5707 for ac_symprfx
in "" "_"; do
5709 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5710 symxfrm
="\\1 $ac_symprfx\\2 \\2"
5712 # Write the raw and C identifiers.
5713 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5715 # Check to see that the pipe works correctly.
5719 cat > conftest.
$ac_ext <<EOF
5724 void nm_test_func(){}
5728 int main(){nm_test_var='a';nm_test_func();return(0);}
5731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; then
5736 # Now try to grab the symbols.
5738 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5739 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } && test -s "$nlist"; then
5743 # Try sorting and uniquifying the output.
5744 if sort "$nlist" |
uniq > "$nlist"T
; then
5745 mv -f "$nlist"T
"$nlist"
5750 # Make sure that we snagged all the symbols we need.
5751 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
5752 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
5753 cat <<EOF > conftest.$ac_ext
5759 # Now generate the symbol file.
5760 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5762 cat <<EOF >> conftest.$ac_ext
5763 #if defined (__STDC__) && __STDC__
5764 # define lt_ptr_t void *
5766 # define lt_ptr_t char *
5770 /* The mapping between symbol names and symbols. */
5775 lt_preloaded_symbols[] =
5778 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
5779 cat <<\EOF
>> conftest.
$ac_ext
5787 # Now try linking the two files.
5788 mv conftest.
$ac_objext conftstm.
$ac_objext
5789 lt_save_LIBS
="$LIBS"
5790 lt_save_CFLAGS
="$CFLAGS"
5791 LIBS
="conftstm.$ac_objext"
5792 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5794 (eval $ac_link) 2>&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
5800 LIBS
="$lt_save_LIBS"
5801 CFLAGS
="$lt_save_CFLAGS"
5803 echo "cannot find nm_test_func in $nlist" >&5
5806 echo "cannot find nm_test_var in $nlist" >&5
5809 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5812 echo "$progname: failed program was:" >&5
5813 cat conftest.
$ac_ext >&5
5815 rm -f conftest
* conftst
*
5817 # Do not use the global_symbol_pipe unless it works.
5818 if test "$pipe_works" = yes; then
5821 lt_cv_sys_global_symbol_pipe
=
5827 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5828 lt_cv_sys_global_symbol_to_cdecl
=
5830 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5831 echo "$as_me:$LINENO: result: failed" >&5
5832 echo "${ECHO_T}failed" >&6
5834 echo "$as_me:$LINENO: result: ok" >&5
5835 echo "${ECHO_T}ok" >&6
5838 echo "$as_me:$LINENO: checking for objdir" >&5
5839 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5840 if test "${lt_cv_objdir+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 rm -f .libs
2>/dev
/null
5844 mkdir .libs
2>/dev
/null
5845 if test -d .libs
; then
5848 # MS-DOS does not allow filenames that begin with a dot.
5851 rmdir .libs
2>/dev
/null
5853 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5854 echo "${ECHO_T}$lt_cv_objdir" >&6
5855 objdir
=$lt_cv_objdir
5863 # AIX sometimes has problems with the GCC collect2 program. For some
5864 # reason, if we set the COLLECT_NAMES environment variable, the problems
5865 # vanish in a puff of smoke.
5866 if test "X${COLLECT_NAMES+set}" != Xset
; then
5868 export COLLECT_NAMES
5873 # Sed substitution that helps us do robust quoting. It backslashifies
5874 # metacharacters that are still active within double-quoted strings.
5875 Xsed
='sed -e s/^X//'
5876 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
5878 # Same as above, but do not quote variable references.
5879 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
5881 # Sed substitution to delay expansion of an escaped shell variable in a
5882 # double_quote_subst'ed string.
5883 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5885 # Sed substitution to avoid accidental globbing in evaled expressions
5886 no_glob_subst
='s/\*/\\\*/g'
5892 default_ofile
=libtool
5893 can_build_shared
=yes
5895 # All known linkers require a `.a' archive for static linking (except M$VC,
5896 # which needs '.lib').
5898 ltmain
="$ac_aux_dir/ltmain.sh"
5899 ofile
="$default_ofile"
5900 with_gnu_ld
="$lt_cv_prog_gnu_ld"
5902 if test -n "$ac_tool_prefix"; then
5903 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5904 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5905 echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5907 if test "${ac_cv_prog_AR+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 if test -n "$AR"; then
5911 ac_cv_prog_AR
="$AR" # Let the user override the test.
5913 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5917 test -z "$as_dir" && as_dir
=.
5918 for ac_exec_ext
in '' $ac_executable_extensions; do
5919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5920 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 if test -n "$AR"; then
5931 echo "$as_me:$LINENO: result: $AR" >&5
5932 echo "${ECHO_T}$AR" >&6
5934 echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6
5939 if test -z "$ac_cv_prog_AR"; then
5941 # Extract the first word of "ar", so it can be a program name with args.
5942 set dummy
ar; ac_word
=$2
5943 echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5945 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 if test -n "$ac_ct_AR"; then
5949 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir
=.
5956 for ac_exec_ext
in '' $ac_executable_extensions; do
5957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958 ac_cv_prog_ac_ct_AR
="ar"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR
="false"
5968 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5969 if test -n "$ac_ct_AR"; then
5970 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5971 echo "${ECHO_T}$ac_ct_AR" >&6
5973 echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6
5982 if test -n "$ac_tool_prefix"; then
5983 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5984 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5985 echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5987 if test "${ac_cv_prog_RANLIB+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 if test -n "$RANLIB"; then
5991 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5997 test -z "$as_dir" && as_dir
=.
5998 for ac_exec_ext
in '' $ac_executable_extensions; do
5999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 RANLIB
=$ac_cv_prog_RANLIB
6010 if test -n "$RANLIB"; then
6011 echo "$as_me:$LINENO: result: $RANLIB" >&5
6012 echo "${ECHO_T}$RANLIB" >&6
6014 echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6
6019 if test -z "$ac_cv_prog_RANLIB"; then
6020 ac_ct_RANLIB
=$RANLIB
6021 # Extract the first word of "ranlib", so it can be a program name with args.
6022 set dummy ranlib
; ac_word
=$2
6023 echo "$as_me:$LINENO: checking for $ac_word" >&5
6024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6025 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 if test -n "$ac_ct_RANLIB"; then
6029 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6035 test -z "$as_dir" && as_dir
=.
6036 for ac_exec_ext
in '' $ac_executable_extensions; do
6037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6038 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
6048 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6049 if test -n "$ac_ct_RANLIB"; then
6050 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6051 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6053 echo "$as_me:$LINENO: result: no" >&5
6054 echo "${ECHO_T}no" >&6
6057 RANLIB
=$ac_ct_RANLIB
6059 RANLIB
="$ac_cv_prog_RANLIB"
6062 if test -n "$ac_tool_prefix"; then
6063 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6064 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6065 echo "$as_me:$LINENO: checking for $ac_word" >&5
6066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6067 if test "${ac_cv_prog_STRIP+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 if test -n "$STRIP"; then
6071 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6077 test -z "$as_dir" && as_dir
=.
6078 for ac_exec_ext
in '' $ac_executable_extensions; do
6079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6080 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 STRIP
=$ac_cv_prog_STRIP
6090 if test -n "$STRIP"; then
6091 echo "$as_me:$LINENO: result: $STRIP" >&5
6092 echo "${ECHO_T}$STRIP" >&6
6094 echo "$as_me:$LINENO: result: no" >&5
6095 echo "${ECHO_T}no" >&6
6099 if test -z "$ac_cv_prog_STRIP"; then
6101 # Extract the first word of "strip", so it can be a program name with args.
6102 set dummy strip
; ac_word
=$2
6103 echo "$as_me:$LINENO: checking for $ac_word" >&5
6104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6105 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 if test -n "$ac_ct_STRIP"; then
6109 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6115 test -z "$as_dir" && as_dir
=.
6116 for ac_exec_ext
in '' $ac_executable_extensions; do
6117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6118 ac_cv_prog_ac_ct_STRIP
="strip"
6119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
6128 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6129 if test -n "$ac_ct_STRIP"; then
6130 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6131 echo "${ECHO_T}$ac_ct_STRIP" >&6
6133 echo "$as_me:$LINENO: result: no" >&5
6134 echo "${ECHO_T}no" >&6
6139 STRIP
="$ac_cv_prog_STRIP"
6144 old_CFLAGS
="$CFLAGS"
6146 # Set sane defaults for various variables
6147 test -z "$AR" && AR
=ar
6148 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6149 test -z "$AS" && AS
=as
6150 test -z "$CC" && CC
=cc
6151 test -z "$LTCC" && LTCC
=$CC
6152 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6153 test -z "$LD" && LD
=ld
6154 test -z "$LN_S" && LN_S
="ln -s"
6155 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
6156 test -z "$NM" && NM
=nm
6157 test -z "$SED" && SED
=sed
6158 test -z "$OBJDUMP" && OBJDUMP
=objdump
6159 test -z "$RANLIB" && RANLIB
=:
6160 test -z "$STRIP" && STRIP
=:
6161 test -z "$ac_objext" && ac_objext
=o
6163 # Determine commands to create old-style static archives.
6164 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6165 old_postinstall_cmds
='chmod 644 $oldlib'
6166 old_postuninstall_cmds
=
6168 if test -n "$RANLIB"; then
6171 old_postinstall_cmds
="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6174 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
6177 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6180 cc_basename
=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6182 # Only perform the check for file, if the check method requires it
6183 case $deplibs_check_method in
6185 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6186 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6187 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6188 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6196 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6197 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6198 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6199 for ac_dir
in $ac_dummy; do
6201 test -z "$ac_dir" && ac_dir
=.
6202 if test -f $ac_dir/${ac_tool_prefix}file; then
6203 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
6204 if test -n "$file_magic_test_file"; then
6205 case $deplibs_check_method in
6207 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6208 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6209 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6210 $EGREP "$file_magic_regex" > /dev
/null
; then
6215 *** Warning: the command libtool uses to detect shared libraries,
6216 *** $file_magic_cmd, produces output that libtool cannot recognize.
6217 *** The result is that libtool may fail to recognize shared libraries
6218 *** as such. This will affect the creation of libtool libraries that
6219 *** depend on shared libraries, but programs linked with such libtool
6220 *** libraries will work regardless of this problem. Nevertheless, you
6221 *** may want to report the problem to your system manager and/or to
6222 *** bug-libtool@gnu.org
6232 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6237 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6238 if test -n "$MAGIC_CMD"; then
6239 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6240 echo "${ECHO_T}$MAGIC_CMD" >&6
6242 echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6
6246 if test -z "$lt_cv_path_MAGIC_CMD"; then
6247 if test -n "$ac_tool_prefix"; then
6248 echo "$as_me:$LINENO: checking for file" >&5
6249 echo $ECHO_N "checking for file... $ECHO_C" >&6
6250 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
6258 lt_save_MAGIC_CMD
="$MAGIC_CMD"
6259 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6260 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
6261 for ac_dir
in $ac_dummy; do
6263 test -z "$ac_dir" && ac_dir
=.
6264 if test -f $ac_dir/file; then
6265 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
6266 if test -n "$file_magic_test_file"; then
6267 case $deplibs_check_method in
6269 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6270 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6271 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
6272 $EGREP "$file_magic_regex" > /dev
/null
; then
6277 *** Warning: the command libtool uses to detect shared libraries,
6278 *** $file_magic_cmd, produces output that libtool cannot recognize.
6279 *** The result is that libtool may fail to recognize shared libraries
6280 *** as such. This will affect the creation of libtool libraries that
6281 *** depend on shared libraries, but programs linked with such libtool
6282 *** libraries will work regardless of this problem. Nevertheless, you
6283 *** may want to report the problem to your system manager and/or to
6284 *** bug-libtool@gnu.org
6294 MAGIC_CMD
="$lt_save_MAGIC_CMD"
6299 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
6300 if test -n "$MAGIC_CMD"; then
6301 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6302 echo "${ECHO_T}$MAGIC_CMD" >&6
6304 echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6
6320 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6321 if test "${enable_libtool_lock+set}" = set; then
6322 enableval
="$enable_libtool_lock"
6325 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6328 # Check whether --with-pic or --without-pic was given.
6329 if test "${with_pic+set}" = set; then
6335 test -z "$pic_mode" && pic_mode
=default
6337 # Use C for the default configuration in the libtool script
6341 ac_cpp
='$CPP $CPPFLAGS'
6342 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6343 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6344 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6347 # Source file extension for C test sources.
6350 # Object file extension for compiled C test sources.
6354 # Code to be used in simple compile tests
6355 lt_simple_compile_test_code
="int some_variable = 0;\n"
6357 # Code to be used in simple link tests
6358 lt_simple_link_test_code
='int main(){return(0);}\n'
6361 # If no C compiler was specified, use CC.
6364 # Allow CC to be a program name with arguments.
6369 # Check for any special shared library compilation flags.
6372 if test "$GCC" = no
; then
6375 lt_prog_cc_shlib
='-belf'
6379 if test -n "$lt_prog_cc_shlib"; then
6380 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6381 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6382 if echo "$old_CC $old_CFLAGS " |
grep "[ ]$lt_prog_cc_shlib[ ]" >/dev
/null
; then :
6384 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6385 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6386 lt_cv_prog_cc_can_build_shared
=no
6392 # Check to make sure the static flag actually works.
6394 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6395 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6396 if test "${lt_prog_compiler_static_works+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 lt_prog_compiler_static_works
=no
6400 save_LDFLAGS
="$LDFLAGS"
6401 LDFLAGS
="$LDFLAGS $lt_prog_compiler_static"
6402 printf "$lt_simple_link_test_code" > conftest.
$ac_ext
6403 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
6404 # The compiler can only warn and ignore the option if not recognized
6405 # So say no if there are warnings
6406 if test -s conftest.err
; then
6407 # Append any errors to the config.log.
6408 cat conftest.err
1>&5
6410 lt_prog_compiler_static_works
=yes
6414 LDFLAGS
="$save_LDFLAGS"
6417 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6418 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6420 if test x
"$lt_prog_compiler_static_works" = xyes
; then
6423 lt_prog_compiler_static
=
6429 ## There is no encapsulation within the following macros, do not change
6430 ## the running order or otherwise move them around unless you know exactly
6431 ## what you are doing...
6433 lt_prog_compiler_no_builtin_flag
=
6435 if test "$GCC" = yes; then
6436 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
6439 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6440 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6441 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 lt_cv_prog_compiler_rtti_exceptions
=no
6445 ac_outfile
=conftest.
$ac_objext
6446 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6447 lt_compiler_flag
="-fno-rtti -fno-exceptions"
6448 # Insert the option either (1) after the last *FLAGS variable, or
6449 # (2) before a word containing "conftest.", or (3) at the end.
6450 # Note that $ac_compile itself does not contain backslashes and begins
6451 # with a dollar sign (not a hyphen), so the echo should work correctly.
6452 # The option is referenced via a variable to avoid confusing sed.
6453 lt_compile
=`echo "$ac_compile" | $SED \
6454 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6456 -e 's:$: $lt_compiler_flag:'`
6457 (eval echo "\"\$as_me:6457: $lt_compile\"" >&5)
6458 (eval "$lt_compile" 2>conftest.err
)
6460 cat conftest.err
>&5
6461 echo "$as_me:6461: \$? = $ac_status" >&5
6462 if (exit $ac_status) && test -s "$ac_outfile"; then
6463 # The compiler can only warn and ignore the option if not recognized
6464 # So say no if there are warnings
6465 if test ! -s conftest.err
; then
6466 lt_cv_prog_compiler_rtti_exceptions
=yes
6472 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6473 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6475 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
6476 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6483 lt_prog_compiler_wl
=
6484 lt_prog_compiler_pic
=
6485 lt_prog_compiler_static
=
6487 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6488 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6490 if test "$GCC" = yes; then
6491 lt_prog_compiler_wl
='-Wl,'
6492 lt_prog_compiler_static
='-static'
6496 # All AIX code is PIC.
6497 if test "$host_cpu" = ia64
; then
6498 # AIX 5 now supports IA64 processor
6499 lt_prog_compiler_static
='-Bstatic'
6504 # FIXME: we need at least 68020 code to build shared libraries, but
6505 # adding the `-m68020' flag to GCC prevents building anything better,
6507 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
6510 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
6511 # PIC is the default for these OSes.
6514 mingw
* | pw32
* | os2
*)
6515 # This hack is so that the source file can tell whether it is being
6516 # built for inclusion in a dll (and should export symbols for example).
6517 lt_prog_compiler_pic
='-DDLL_EXPORT'
6520 darwin
* | rhapsody
*)
6521 # PIC is the default on this platform
6522 # Common symbols not allowed in MH_DYLIB files
6523 lt_prog_compiler_pic
='-fno-common'
6527 # Just because we use GCC doesn't mean we suddenly get shared libraries
6528 # on systems that don't support them.
6529 lt_prog_compiler_can_build_shared
=no
6534 if test -d /usr
/nec
; then
6535 lt_prog_compiler_pic
=-Kconform_pic
6540 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6547 lt_prog_compiler_pic
='-fPIC'
6553 lt_prog_compiler_pic
='-fPIC'
6557 # PORTME Check for flag to pass linker flags through the system compiler.
6560 lt_prog_compiler_wl
='-Wl,'
6561 if test "$host_cpu" = ia64
; then
6562 # AIX 5 now supports IA64 processor
6563 lt_prog_compiler_static
='-Bstatic'
6565 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
6569 # PIC is the default on this platform
6570 # Common symbols not allowed in MH_DYLIB files
6571 case "$cc_basename" in
6573 lt_prog_compiler_pic
='-qnocommon'
6574 lt_prog_compiler_wl
='-Wl,'
6579 mingw
* | pw32
* | os2
*)
6580 # This hack is so that the source file can tell whether it is being
6581 # built for inclusion in a dll (and should export symbols for example).
6582 lt_prog_compiler_pic
='-DDLL_EXPORT'
6585 hpux9
* | hpux10
* | hpux11
*)
6586 lt_prog_compiler_wl
='-Wl,'
6587 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6594 lt_prog_compiler_pic
='+Z'
6597 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6598 lt_prog_compiler_static
='${wl}-a ${wl}archive'
6601 irix5
* | irix6
* | nonstopux
*)
6602 lt_prog_compiler_wl
='-Wl,'
6603 # PIC (with -KPIC) is the default.
6604 lt_prog_compiler_static
='-non_shared'
6608 lt_prog_compiler_pic
='-KPIC'
6609 lt_prog_compiler_static
='-Bstatic'
6613 case $cc_basename in
6615 lt_prog_compiler_wl
='-Wl,'
6616 lt_prog_compiler_pic
='-KPIC'
6617 lt_prog_compiler_static
='-static'
6619 pgcc | pgf77 | pgf90
)
6620 # Portland Group compilers (*not* the Pentium gcc compiler,
6621 # which looks to be a dead project)
6622 lt_prog_compiler_wl
='-Wl,'
6623 lt_prog_compiler_pic
='-fpic'
6624 lt_prog_compiler_static
='-static'
6627 lt_prog_compiler_wl
='-Wl,'
6628 # All Alpha code is PIC.
6629 lt_prog_compiler_static
='-non_shared'
6632 lt_prog_compiler_wl
='-lopt='
6637 osf3
* | osf4
* | osf5
*)
6638 lt_prog_compiler_wl
='-Wl,'
6639 # All OSF/1 code is PIC.
6640 lt_prog_compiler_static
='-non_shared'
6644 lt_prog_compiler_pic
='-Kpic'
6645 lt_prog_compiler_static
='-dn'
6649 lt_prog_compiler_wl
='-Wl,'
6650 lt_prog_compiler_pic
='-KPIC'
6651 lt_prog_compiler_static
='-Bstatic'
6655 lt_prog_compiler_wl
='-Qoption ld '
6656 lt_prog_compiler_pic
='-PIC'
6657 lt_prog_compiler_static
='-Bstatic'
6660 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
6661 lt_prog_compiler_wl
='-Wl,'
6662 lt_prog_compiler_pic
='-KPIC'
6663 lt_prog_compiler_static
='-Bstatic'
6667 if test -d /usr
/nec
;then
6668 lt_prog_compiler_pic
='-Kconform_pic'
6669 lt_prog_compiler_static
='-Bstatic'
6674 lt_prog_compiler_wl
='-Wl,'
6675 lt_prog_compiler_can_build_shared
=no
6679 lt_prog_compiler_pic
='-pic'
6680 lt_prog_compiler_static
='-Bstatic'
6684 lt_prog_compiler_can_build_shared
=no
6689 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6690 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6693 # Check to make sure the PIC flag actually works.
6695 if test -n "$lt_prog_compiler_pic"; then
6697 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6698 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6699 if test "${lt_prog_compiler_pic_works+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 lt_prog_compiler_pic_works
=no
6703 ac_outfile
=conftest.
$ac_objext
6704 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6705 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
6706 # Insert the option either (1) after the last *FLAGS variable, or
6707 # (2) before a word containing "conftest.", or (3) at the end.
6708 # Note that $ac_compile itself does not contain backslashes and begins
6709 # with a dollar sign (not a hyphen), so the echo should work correctly.
6710 # The option is referenced via a variable to avoid confusing sed.
6711 lt_compile
=`echo "$ac_compile" | $SED \
6712 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6714 -e 's:$: $lt_compiler_flag:'`
6715 (eval echo "\"\$as_me:6715: $lt_compile\"" >&5)
6716 (eval "$lt_compile" 2>conftest.err
)
6718 cat conftest.err
>&5
6719 echo "$as_me:6719: \$? = $ac_status" >&5
6720 if (exit $ac_status) && test -s "$ac_outfile"; then
6721 # The compiler can only warn and ignore the option if not recognized
6722 # So say no if there are warnings
6723 if test ! -s conftest.err
; then
6724 lt_prog_compiler_pic_works
=yes
6730 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6731 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6733 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
6734 case $lt_prog_compiler_pic in
6736 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
6739 lt_prog_compiler_pic
=
6740 lt_prog_compiler_can_build_shared
=no
6745 # For platforms which do not support PIC, -DPIC is meaningless:
6747 lt_prog_compiler_pic
=
6750 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
6754 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6755 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6756 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 lt_cv_prog_compiler_c_o
=no
6760 $rm -r conftest
2>/dev
/null
6764 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
6766 lt_compiler_flag
="-o out/conftest2.$ac_objext"
6767 # Insert the option either (1) after the last *FLAGS variable, or
6768 # (2) before a word containing "conftest.", or (3) at the end.
6769 # Note that $ac_compile itself does not contain backslashes and begins
6770 # with a dollar sign (not a hyphen), so the echo should work correctly.
6771 lt_compile
=`echo "$ac_compile" | $SED \
6772 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6774 -e 's:$: $lt_compiler_flag:'`
6775 (eval echo "\"\$as_me:6775: $lt_compile\"" >&5)
6776 (eval "$lt_compile" 2>out
/conftest.err
)
6778 cat out
/conftest.err
>&5
6779 echo "$as_me:6779: \$? = $ac_status" >&5
6780 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
6782 # The compiler can only warn and ignore the option if not recognized
6783 # So say no if there are warnings
6784 if test ! -s out
/conftest.err
; then
6785 lt_cv_prog_compiler_c_o
=yes
6790 # SGI C++ compiler will create directory out/ii_files/ for
6791 # template instantiation
6792 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
6793 $rm out
/* && rmdir out
6799 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6800 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6803 hard_links
="nottested"
6804 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
6805 # do not overwrite the value of need_locks provided by the user
6806 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6807 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6810 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6812 ln conftest.a conftest.b
2>&5 || hard_links
=no
6813 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6814 echo "$as_me:$LINENO: result: $hard_links" >&5
6815 echo "${ECHO_T}$hard_links" >&6
6816 if test "$hard_links" = no
; then
6817 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6818 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6825 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6826 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6829 allow_undefined_flag
=
6830 enable_shared_with_static_runtimes
=no
6832 archive_expsym_cmds
=
6833 old_archive_From_new_cmds
=
6834 old_archive_from_expsyms_cmds
=
6835 export_dynamic_flag_spec
=
6836 whole_archive_flag_spec
=
6837 thread_safe_flag_spec
=
6838 hardcode_libdir_flag_spec
=
6839 hardcode_libdir_flag_spec_ld
=
6840 hardcode_libdir_separator
=
6843 hardcode_shlibpath_var
=unsupported
6844 link_all_deplibs
=unknown
6845 hardcode_automatic
=no
6848 always_export_symbols
=no
6849 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6850 # include_expsyms should be a list of space-separated symbols to be *always*
6851 # included in the symbol list
6853 # exclude_expsyms can be an extended regexp of symbols to exclude
6854 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6855 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6856 # as well as any symbol that contains `d'.
6857 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
6858 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6859 # platforms (ab)use it in PIC code, but their linkers get confused if
6860 # the symbol is explicitly referenced. Since portable code cannot
6861 # rely on this symbol name, it's probably fine to never include it in
6862 # preloaded symbol tables.
6863 extract_expsyms_cmds
=
6866 cygwin
* | mingw
* | pw32
*)
6867 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6868 # When not using gcc, we currently assume that we are using
6869 # Microsoft Visual C++.
6870 if test "$GCC" != yes; then
6880 if test "$with_gnu_ld" = yes; then
6881 # If archive_cmds runs LD, not CC, wlarc should be empty
6884 # See if GNU ld supports shared libraries.
6886 aix3
* | aix4
* | aix5
*)
6887 # On AIX/PPC, the GNU linker is very broken
6888 if test "$host_cpu" != ia64
; then
6892 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6893 *** to be unable to reliably create shared libraries on AIX.
6894 *** Therefore, libtool is disabling shared libraries support. If you
6895 *** really care for shared libraries, you may want to modify your PATH
6896 *** so that a non-GNU linker is found, and then restart.
6903 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)'
6904 hardcode_libdir_flag_spec
='-L$libdir'
6905 hardcode_minus_L
=yes
6907 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6908 # that the semantics of dynamic libraries on AmigaOS, at least up
6909 # to version 4, is to share data among multiple programs linked
6910 # with the same dynamic library. Since this doesn't match the
6911 # behavior of shared libraries on other platforms, we can't use
6917 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
6918 allow_undefined_flag
=unsupported
6919 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6920 # support --undefined. This deserves some investigation. FIXME
6921 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6927 cygwin
* | mingw
* | pw32
*)
6928 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6929 # as there is no search path for DLLs.
6930 hardcode_libdir_flag_spec
='-L$libdir'
6931 allow_undefined_flag
=unsupported
6932 always_export_symbols
=no
6933 enable_shared_with_static_runtimes
=yes
6934 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6936 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
6937 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6938 # If the export-symbols file already is a .def file (1st line
6939 # is EXPORTS), use it as is; otherwise, prepend...
6940 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6941 cp $export_symbols $output_objdir/$soname.def;
6943 echo EXPORTS > $output_objdir/$soname.def;
6944 cat $export_symbols >> $output_objdir/$soname.def;
6946 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6953 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
6954 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6957 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6958 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6963 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
6967 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6968 *** create shared libraries on Solaris systems. Therefore, libtool
6969 *** is disabling shared libraries support. We urge you to upgrade GNU
6970 *** binutils to release 2.9.1 or newer. Another option is to modify
6971 *** your PATH or compiler configuration so that the native linker is
6972 *** used, and then restart.
6975 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
6976 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6977 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6984 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6987 hardcode_shlibpath_var
=no
6991 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
6993 case $CC,$host_cpu in
6994 pgf77
* | pgf90
* ) # Portland Group f77 and f90 compilers
6995 tmp_addflag
=' -fpic' ;;
6996 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
6997 tmp_addflag
=' -i_dynamic' ;;
6998 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
6999 tmp_addflag
=' -i_dynamic -nofor_main' ;;
7000 ifc
* | ifort
*) # Intel Fortran compiler
7001 tmp_addflag
=' -nofor_main' ;;
7003 archive_cmds
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7004 supports_anon_versioning
=no
7005 case `$LD -v 2>/dev/null` in
7006 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7007 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7008 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7009 *\
2.11.
*) ;; # other 2.11 versions
7010 *) supports_anon_versioning
=yes ;;
7012 if test $supports_anon_versioning = yes; then
7013 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
7014 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7015 $echo "local: *; };" >> $output_objdir/$libname.ver~
7016 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7018 archive_expsym_cmds
=$archive_cmds
7026 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
7027 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7028 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7035 if test "$ld_shlibs" = yes; then
7036 runpath_var
=LD_RUN_PATH
7037 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7038 export_dynamic_flag_spec
='${wl}--export-dynamic'
7039 # ancient GNU ld didn't support --whole-archive et. al.
7040 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7041 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7043 whole_archive_flag_spec
=
7047 # PORTME fill in a description of your system's linker (not GNU ld)
7050 allow_undefined_flag
=unsupported
7051 always_export_symbols
=yes
7052 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'
7053 # Note: this linker hardcodes the directories in LIBPATH if there
7054 # are no directories specified by -L.
7055 hardcode_minus_L
=yes
7056 if test "$GCC" = yes && test -z "$link_static_flag"; then
7057 # Neither direct hardcoding nor static linking is supported with a
7059 hardcode_direct
=unsupported
7064 if test "$host_cpu" = ia64
; then
7065 # On IA64, the linker does run time linking by default, so we don't
7066 # have to do anything special.
7067 aix_use_runtimelinking
=no
7068 exp_sym_flag
='-Bexport'
7071 # If we're using GNU nm, then we don't want the "-C" option.
7072 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7073 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
7074 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'
7076 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'
7078 aix_use_runtimelinking
=no
7080 # Test if we are trying to use run time linking or normal
7081 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7082 # need to do runtime linking.
7083 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
7084 for ld_flag
in $LDFLAGS; do
7085 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7086 aix_use_runtimelinking
=yes
7092 exp_sym_flag
='-bexport'
7093 no_entry_flag
='-bnoentry'
7096 # When large executables or shared objects are built, AIX ld can
7097 # have problems creating the table of contents. If linking a library
7098 # or program results in "error TOC overflow" add -mminimal-toc to
7099 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7100 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7104 hardcode_libdir_separator
=':'
7105 link_all_deplibs
=yes
7107 if test "$GCC" = yes; then
7108 case $host_os in aix4.
[012]|aix4.
[012].
*)
7109 # We only want to do this on AIX 4.2 and lower, the check
7110 # below for broken collect2 doesn't work under 4.3+
7111 collect2name
=`${CC} -print-prog-name=collect2`
7112 if test -f "$collect2name" && \
7113 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
7115 # We have reworked collect2
7118 # We have old collect2
7119 hardcode_direct
=unsupported
7120 # It fails to find uninstalled libraries when the uninstalled
7121 # path is not listed in the libpath. Setting hardcode_minus_L
7122 # to unsupported forces relinking
7123 hardcode_minus_L
=yes
7124 hardcode_libdir_flag_spec
='-L$libdir'
7125 hardcode_libdir_separator
=
7128 shared_flag
='-shared'
7129 if test "$aix_use_runtimelinking" = yes; then
7130 shared_flag
="$shared_flag "'${wl}-G'
7134 if test "$host_cpu" = ia64
; then
7135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7136 # chokes on -Wl,-G. The following line is correct:
7139 if test "$aix_use_runtimelinking" = yes; then
7140 shared_flag
='${wl}-G'
7142 shared_flag
='${wl}-bM:SRE'
7147 # It seems that -bexpall does not export symbols beginning with
7148 # underscore (_), so it is better to generate a list of symbols to export.
7149 always_export_symbols
=yes
7150 if test "$aix_use_runtimelinking" = yes; then
7151 # Warning - without using the other runtime loading flags (-brtl),
7152 # -berok will link without error, but may produce a broken library.
7153 allow_undefined_flag
='-berok'
7154 # Determine the default libpath from the value encoded in an empty executable.
7155 cat >conftest.
$ac_ext <<_ACEOF
7158 cat confdefs.h
>>conftest.
$ac_ext
7159 cat >>conftest.
$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7170 rm -f conftest.
$ac_objext conftest
$ac_exeext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7172 (eval $ac_link) 2>conftest.er1
7174 grep -v '^ *+' conftest.er1
>conftest.err
7176 cat conftest.err
>&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try
='test -z "$ac_c_werror_flag"
7180 || test ! -s conftest.err'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try
='test -s conftest$ac_exeext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7193 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7195 # Check for a 64-bit object if we didn't find anything.
7196 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.
$ac_ext >&5
7203 rm -f conftest.err conftest.
$ac_objext \
7204 conftest
$ac_exeext conftest.
$ac_ext
7205 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7207 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7208 archive_expsym_cmds
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7210 if test "$host_cpu" = ia64; then
7211 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr
/lib
:/lib
'
7212 allow_undefined_flag="-z nodefs"
7213 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
7215 # Determine the default libpath from the value encoded in an empty executable.
7216 cat >conftest.$ac_ext <<_ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7231 rm -f conftest.$ac_objext conftest$ac_exeext
7232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7233 (eval $ac_link) 2>conftest.er1
7235 grep -v '^ *+' conftest.er1 >conftest.err
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7239 (exit $ac_status); } &&
7240 { ac_try='test -z "$ac_c_werror_flag"
7241 || test ! -s conftest.err'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7246 (exit $ac_status); }; } &&
7247 { ac_try='test -s conftest$ac_exeext'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7252 (exit $ac_status); }; }; then
7254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7256 # Check for a 64-bit object if we didn't find anything.
7257 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7260 echo "$as_me: failed program was
:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7264 rm -f conftest.err conftest.$ac_objext \
7265 conftest$ac_exeext conftest.$ac_ext
7266 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
7268 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7269 # Warning - without using the other run time loading flags,
7270 # -berok will link without error, but may produce a broken library.
7271 no_undefined_flag=' ${wl}-bernotok'
7272 allow_undefined_flag=' ${wl}-berok'
7273 # -bexpall does not export symbols beginning with underscore (_)
7274 always_export_symbols=yes
7275 # Exported symbols can be pulled into shared objects from archives
7276 whole_archive_flag_spec=' '
7277 archive_cmds_need_lc=yes
7278 # This is similar to how AIX traditionally builds it's shared libraries.
7279 archive_expsym_cmds="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7285 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)'
7286 hardcode_libdir_flag_spec
='-L$libdir'
7287 hardcode_minus_L
=yes
7288 # see comment about different semantics on the GNU ld section
7293 export_dynamic_flag_spec
=-rdynamic
7296 cygwin
* | mingw
* | pw32
*)
7297 # When not using gcc, we currently assume that we are using
7298 # Microsoft Visual C++.
7299 # hardcode_libdir_flag_spec is actually meaningless, as there is
7300 # no search path for DLLs.
7301 hardcode_libdir_flag_spec
=' '
7302 allow_undefined_flag
=unsupported
7303 # Tell ltmain to make .lib files, not .a files.
7305 # Tell ltmain to make .dll files, not .so files.
7307 # FIXME: Setting linknames here is a bad hack.
7308 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7309 # The linker will automatically build a .lib file if we build a DLL.
7310 old_archive_From_new_cmds
='true'
7311 # FIXME: Should let the user specify the lib program.
7312 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
7313 fix_srcfile_path
='`cygpath -w "$srcfile"`'
7314 enable_shared_with_static_runtimes
=yes
7317 darwin
* | rhapsody
*)
7319 rhapsody
* | darwin1.
[012])
7320 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
7323 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7324 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7326 case ${MACOSX_DEPLOYMENT_TARGET} in
7328 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7331 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
7337 archive_cmds_need_lc
=no
7339 hardcode_automatic
=yes
7340 hardcode_shlibpath_var
=unsupported
7341 whole_archive_flag_spec
=''
7342 link_all_deplibs
=yes
7343 if test "$GCC" = yes ; then
7344 output_verbose_link_cmd
='echo'
7345 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7346 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7347 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7348 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
7349 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
7351 case "$cc_basename" in
7353 output_verbose_link_cmd
='echo'
7354 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7355 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7356 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7357 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
7358 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
7368 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7369 hardcode_libdir_flag_spec
='-L$libdir'
7370 hardcode_shlibpath_var
=no
7377 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7378 # support. Future versions do this automatically, but an explicit c++rt0.o
7379 # does not break anything, and helps significantly (at the cost of a little
7382 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7383 hardcode_libdir_flag_spec
='-R$libdir'
7385 hardcode_shlibpath_var
=no
7388 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7390 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7392 hardcode_minus_L
=yes
7393 hardcode_shlibpath_var
=no
7396 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7397 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
7398 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7399 hardcode_libdir_flag_spec
='-R$libdir'
7401 hardcode_shlibpath_var
=no
7405 if test "$GCC" = yes; then
7406 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'
7408 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'
7410 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7411 hardcode_libdir_separator
=:
7414 # hardcode_minus_L: Not really in the search PATH,
7415 # but as the default location of the library.
7416 hardcode_minus_L
=yes
7417 export_dynamic_flag_spec
='${wl}-E'
7421 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7424 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7427 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7433 archive_cmds
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7436 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7440 if test "$with_gnu_ld" = no
; then
7443 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7444 hardcode_libdir_flag_spec_ld
='+b $libdir'
7445 hardcode_libdir_separator
=:
7447 hardcode_shlibpath_var
=no
7450 hardcode_libdir_flag_spec
='-L$libdir'
7452 hardcode_shlibpath_var
=no
7454 # hardcode_minus_L: Not really in the search PATH,
7455 # but as the default location of the library.
7456 hardcode_minus_L
=yes
7459 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7460 hardcode_libdir_separator
=:
7462 export_dynamic_flag_spec
='${wl}-E'
7464 # hardcode_minus_L: Not really in the search PATH,
7465 # but as the default location of the library.
7466 hardcode_minus_L
=yes
7472 irix5
* | irix6
* | nonstopux
*)
7473 if test "$GCC" = yes; then
7474 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7476 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7477 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
7479 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7480 hardcode_libdir_separator
=:
7481 link_all_deplibs
=yes
7485 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
7486 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7488 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7490 hardcode_libdir_flag_spec
='-R$libdir'
7492 hardcode_shlibpath_var
=no
7496 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7498 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7499 hardcode_libdir_separator
=:
7500 hardcode_shlibpath_var
=no
7505 hardcode_shlibpath_var
=no
7506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7507 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7508 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7509 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7510 export_dynamic_flag_spec
='${wl}-E'
7513 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
7514 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7515 hardcode_libdir_flag_spec
='-R$libdir'
7518 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7519 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7526 hardcode_libdir_flag_spec
='-L$libdir'
7527 hardcode_minus_L
=yes
7528 allow_undefined_flag
=unsupported
7529 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'
7530 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7534 if test "$GCC" = yes; then
7535 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7536 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7538 allow_undefined_flag
=' -expect_unresolved \*'
7539 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7541 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7542 hardcode_libdir_separator
=:
7545 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
7546 if test "$GCC" = yes; then
7547 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7548 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7549 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7551 allow_undefined_flag
=' -expect_unresolved \*'
7552 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7553 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7554 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7556 # Both c and cxx compiler support -rpath directly
7557 hardcode_libdir_flag_spec
='-rpath $libdir'
7559 hardcode_libdir_separator
=:
7563 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7564 hardcode_shlibpath_var
=no
7565 export_dynamic_flag_spec
='${wl}-Bexport'
7566 runpath_var
=LD_RUN_PATH
7567 hardcode_runpath_var
=yes
7571 no_undefined_flag
=' -z text'
7572 if test "$GCC" = yes; then
7573 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7574 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7575 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7577 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7578 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7579 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7581 hardcode_libdir_flag_spec
='-R$libdir'
7582 hardcode_shlibpath_var
=no
7584 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
7585 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7586 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
7588 link_all_deplibs
=yes
7592 if test "x$host_vendor" = xsequent
; then
7593 # Use $CC to link under sequent, because it throws in some extra .o
7594 # files that make .init and .fini sections work.
7595 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7597 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7599 hardcode_libdir_flag_spec
='-L$libdir'
7601 hardcode_minus_L
=yes
7602 hardcode_shlibpath_var
=no
7606 case $host_vendor in
7608 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7609 hardcode_direct
=yes # is this really true???
7612 ## LD is ld it makes a PLAMLIB
7613 ## CC just makes a GrossModule.
7614 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7615 reload_cmds
='$CC -r -o $output$reload_objs'
7619 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7620 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
7623 runpath_var
='LD_RUN_PATH'
7624 hardcode_shlibpath_var
=no
7628 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7629 hardcode_shlibpath_var
=no
7630 export_dynamic_flag_spec
='-Bexport'
7634 if test -d /usr
/nec
; then
7635 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7636 hardcode_shlibpath_var
=no
7637 runpath_var
=LD_RUN_PATH
7638 hardcode_runpath_var
=yes
7644 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7647 hardcode_shlibpath_var
=no
7648 hardcode_runpath_var
=yes
7649 runpath_var
=LD_RUN_PATH
7652 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
7653 no_undefined_flag
='${wl}-z ${wl}text'
7654 if test "$GCC" = yes; then
7655 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7657 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7659 runpath_var
='LD_RUN_PATH'
7660 hardcode_shlibpath_var
=no
7664 no_undefined_flag
=' -z text'
7665 # $CC -shared without GNU ld will not create a library from C++
7666 # object files and a static libstdc++, better avoid it by now
7667 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7668 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7669 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7670 hardcode_libdir_flag_spec
=
7671 hardcode_shlibpath_var
=no
7672 runpath_var
='LD_RUN_PATH'
7676 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7677 hardcode_libdir_flag_spec
='-L$libdir'
7678 hardcode_shlibpath_var
=no
7687 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7688 echo "${ECHO_T}$ld_shlibs" >&6
7689 test "$ld_shlibs" = no
&& can_build_shared
=no
7691 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
7692 if test "$GCC" = yes; then
7693 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7697 # Do we need to explicitly link libc?
7699 case "x$archive_cmds_need_lc" in
7701 # Assume -lc should be added
7702 archive_cmds_need_lc
=yes
7704 if test "$enable_shared" = yes && test "$GCC" = yes; then
7705 case $archive_cmds in
7707 # FIXME: we may have to deal with multi-command sequences.
7710 # Test whether the compiler implicitly links with -lc since on some
7711 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7712 # to ld, don't add -lc before -lgcc.
7713 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7714 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7716 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
7718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7719 (eval $ac_compile) 2>&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } 2>conftest.err
; then
7725 libobjs
=conftest.
$ac_objext
7727 wl
=$lt_prog_compiler_wl
7733 lt_save_allow_undefined_flag
=$allow_undefined_flag
7734 allow_undefined_flag
=
7735 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7736 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }
7741 archive_cmds_need_lc
=no
7743 archive_cmds_need_lc
=yes
7745 allow_undefined_flag
=$lt_save_allow_undefined_flag
7747 cat conftest.err
1>&5
7750 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7751 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7758 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7759 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7761 libname_spec
='lib$name'
7769 shlibpath_overrides_runpath
=unknown
7771 dynamic_linker
="$host_os ld.so"
7772 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
7773 if test "$GCC" = yes; then
7774 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7775 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
7776 # if the path contains ";" then we assume it to be the separator
7777 # otherwise default to the standard path separator (i.e. ":") - it is
7778 # assumed that no part of a normal pathname contains ";" but that should
7779 # okay in the real world where ";" in dirpaths is itself problematic.
7780 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7782 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7785 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
7787 need_lib_prefix
=unknown
7788 hardcode_into_libs
=no
7790 # when you set need_version to no, make sure it does not cause -set_version
7791 # flags to be left without arguments
7792 need_version
=unknown
7797 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
7798 shlibpath_var
=LIBPATH
7800 # AIX 3 has no versioning support, so we append a major version to the name.
7801 soname_spec
='${libname}${release}${shared_ext}$major'
7808 hardcode_into_libs
=yes
7809 if test "$host_cpu" = ia64
; then
7810 # AIX 5 supports IA64
7811 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7812 shlibpath_var
=LD_LIBRARY_PATH
7814 # With GCC up to 2.95.x, collect2 would create an import file
7815 # for dependence libraries. The import file would start with
7816 # the line `#! .'. This would cause the generated library to
7817 # depend on `.', always an invalid library. This was fixed in
7818 # development snapshots of GCC prior to 3.0.
7820 aix4 | aix4.
[01] | aix4.
[01].
*)
7821 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7823 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
7830 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7831 # soname into executable. Probably we can add versioning support to
7832 # collect2, so additional links can be useful in future.
7833 if test "$aix_use_runtimelinking" = yes; then
7834 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7835 # instead of lib<name>.a to let people know that these are not
7836 # typical AIX shared libraries.
7837 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7839 # We preserve .a as extension for shared libraries through AIX4.2
7840 # and later when we are not doing run time linking.
7841 library_names_spec
='${libname}${release}.a $libname.a'
7842 soname_spec
='${libname}${release}${shared_ext}$major'
7844 shlibpath_var
=LIBPATH
7849 library_names_spec
='$libname.ixlibrary $libname.a'
7850 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7851 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'
7855 library_names_spec
='${libname}${shared_ext}'
7856 dynamic_linker
="$host_os ld.so"
7857 shlibpath_var
=LIBRARY_PATH
7863 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7864 soname_spec
='${libname}${release}${shared_ext}$major'
7865 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
7866 shlibpath_var
=LD_LIBRARY_PATH
7867 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7868 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
7869 # the default ld.so.conf also contains /usr/contrib/lib and
7870 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7871 # libtool to hard-code these into programs
7874 cygwin
* | mingw
* | pw32
*)
7875 version_type
=windows
7880 case $GCC,$host_os in
7881 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
7882 library_names_spec
='$libname.dll.a'
7883 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7884 postinstall_cmds
='base_file=`basename \${file}`~
7885 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7886 dldir=$destdir/`dirname \$dlpath`~
7887 test -d \$dldir || mkdir -p \$dldir~
7888 $install_prog $dir/$dlname \$dldir/$dlname'
7889 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7890 dlpath=$dir/\$dldll~
7892 shlibpath_overrides_runpath
=yes
7896 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7897 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7898 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
7901 # MinGW DLLs use traditional 'lib' prefix
7902 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7903 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7904 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
7905 # It is most probably a Windows format PATH printed by
7906 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7907 # path with ; separators, and with drive letters. We can handle the
7908 # drive letters (cygwin fileutils understands them), so leave them,
7909 # especially as we might pass files found there to a mingw objdump,
7910 # which wouldn't understand a cygwinified path. Ahh.
7911 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7913 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7917 # pw32 DLLs use 'pw' prefix rather than 'lib'
7918 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7924 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7927 dynamic_linker
='Win32 ld.exe'
7928 # FIXME: first we should search . and the directory the executable is in
7932 darwin
* | rhapsody
*)
7933 dynamic_linker
="$host_os dyld"
7937 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7938 soname_spec
='${libname}${release}${major}$shared_ext'
7939 shlibpath_overrides_runpath
=yes
7940 shlibpath_var
=DYLD_LIBRARY_PATH
7941 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
7942 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7943 if test "$GCC" = yes; then
7944 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7946 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
7948 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
7955 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7956 soname_spec
='${libname}${release}${shared_ext}$major'
7957 shlibpath_var
=LD_LIBRARY_PATH
7968 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7969 soname_spec
='${libname}${release}${shared_ext}$major'
7970 shlibpath_var
=LD_LIBRARY_PATH
7971 shlibpath_overrides_runpath
=no
7972 hardcode_into_libs
=yes
7973 dynamic_linker
='GNU ld.so'
7976 freebsd
* | dragonfly
*)
7977 # DragonFly does not have aout. When/if they implement a new
7978 # versioning mechanism, adjust this.
7979 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7980 version_type
=freebsd-
$objformat
7981 case $version_type in
7983 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7988 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7992 shlibpath_var
=LD_LIBRARY_PATH
7995 shlibpath_overrides_runpath
=yes
7997 freebsd3.
[01]* | freebsdelf3.
[01]*)
7998 shlibpath_overrides_runpath
=yes
7999 hardcode_into_libs
=yes
8002 shlibpath_overrides_runpath
=no
8003 hardcode_into_libs
=yes
8012 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8013 soname_spec
='${libname}${release}${shared_ext}$major'
8014 shlibpath_var
=LD_LIBRARY_PATH
8015 hardcode_into_libs
=yes
8018 hpux9
* | hpux10
* | hpux11
*)
8019 # Give a soname corresponding to the major version so that dld.sl refuses to
8020 # link against other versions.
8027 hardcode_into_libs
=yes
8028 dynamic_linker
="$host_os dld.so"
8029 shlibpath_var
=LD_LIBRARY_PATH
8030 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8032 soname_spec
='${libname}${release}${shared_ext}$major'
8033 if test "X$HPUX_IA64_MODE" = X32
; then
8034 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8036 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8038 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8042 hardcode_into_libs
=yes
8043 dynamic_linker
="$host_os dld.sl"
8044 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8045 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8046 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8047 soname_spec
='${libname}${release}${shared_ext}$major'
8048 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8049 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8053 dynamic_linker
="$host_os dld.sl"
8054 shlibpath_var
=SHLIB_PATH
8055 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8056 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8057 soname_spec
='${libname}${release}${shared_ext}$major'
8060 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8061 postinstall_cmds
='chmod 555 $lib'
8064 irix5
* | irix6
* | nonstopux
*)
8066 nonstopux
*) version_type
=nonstopux
;;
8068 if test "$lt_cv_prog_gnu_ld" = yes; then
8076 soname_spec
='${libname}${release}${shared_ext}$major'
8077 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8079 irix5
* | nonstopux
*)
8083 case $LD in # libtool.m4 will add one of these switches to LD
8084 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8085 libsuff
= shlibsuff
= libmagic
=32-bit;;
8086 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8087 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8088 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8089 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8090 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8094 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8095 shlibpath_overrides_runpath
=no
8096 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8097 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8098 hardcode_into_libs
=yes
8101 # No shared lib support for Linux oldld, aout, or coff.
8102 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8106 # This must be Linux ELF.
8111 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8112 soname_spec
='${libname}${release}${shared_ext}$major'
8113 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8114 shlibpath_var
=LD_LIBRARY_PATH
8115 shlibpath_overrides_runpath
=no
8116 # This implies no fast_install, which is unacceptable.
8117 # Some rework will be needed to allow for fast_install
8118 # before this can be enabled.
8119 hardcode_into_libs
=yes
8121 # Append ld.so.conf contents to the search path
8122 if test -f /etc
/ld.so.conf
; then
8123 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8124 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
8127 # We used to test for /lib/ld.so.1 and disable shared libraries on
8128 # powerpc, because MkLinux only supported shared libraries with the
8129 # GNU dynamic linker. Since this was broken with cross compilers,
8130 # most powerpc-linux boxes support dynamic linking these days and
8131 # people can always --disable-shared, the test was removed, and we
8132 # assume the GNU/Linux dynamic linker is in use.
8133 dynamic_linker
='GNU/Linux ld.so'
8140 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8141 soname_spec
='${libname}${release}${shared_ext}$major'
8142 shlibpath_var
=LD_LIBRARY_PATH
8143 shlibpath_overrides_runpath
=no
8144 hardcode_into_libs
=yes
8145 dynamic_linker
='GNU ld.so'
8152 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8154 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8155 dynamic_linker
='NetBSD (a.out) ld.so'
8157 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8158 soname_spec
='${libname}${release}${shared_ext}$major'
8159 dynamic_linker
='NetBSD ld.elf_so'
8161 shlibpath_var
=LD_LIBRARY_PATH
8162 shlibpath_overrides_runpath
=yes
8163 hardcode_into_libs
=yes
8168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8169 shlibpath_var
=LD_LIBRARY_PATH
8170 shlibpath_overrides_runpath
=yes
8177 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8178 soname_spec
='${libname}${release}${shared_ext}$major'
8179 shlibpath_var
=LD_LIBRARY_PATH
8180 shlibpath_overrides_runpath
=yes
8187 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8188 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8189 shlibpath_var
=LD_LIBRARY_PATH
8190 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8192 openbsd2.
[89] | openbsd2.
[89].
*)
8193 shlibpath_overrides_runpath
=no
8196 shlibpath_overrides_runpath
=yes
8200 shlibpath_overrides_runpath
=yes
8205 libname_spec
='$name'
8208 library_names_spec
='$libname${shared_ext} $libname.a'
8209 dynamic_linker
='OS/2 ld.exe'
8210 shlibpath_var
=LIBPATH
8213 osf3
* | osf4
* | osf5
*)
8217 soname_spec
='${libname}${release}${shared_ext}$major'
8218 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8219 shlibpath_var
=LD_LIBRARY_PATH
8220 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8221 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
8226 soname_spec
='${libname}${release}${shared_ext}$major'
8227 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8228 shlibpath_var
=LD_LIBRARY_PATH
8235 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8236 soname_spec
='${libname}${release}${shared_ext}$major'
8237 shlibpath_var
=LD_LIBRARY_PATH
8238 shlibpath_overrides_runpath
=yes
8239 hardcode_into_libs
=yes
8240 # ldd complains unless libraries are executable
8241 postinstall_cmds
='chmod +x $lib'
8246 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8247 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8248 shlibpath_var
=LD_LIBRARY_PATH
8249 shlibpath_overrides_runpath
=yes
8250 if test "$with_gnu_ld" = yes; then
8256 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
8258 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8259 soname_spec
='${libname}${release}${shared_ext}$major'
8260 shlibpath_var
=LD_LIBRARY_PATH
8261 case $host_vendor in
8263 shlibpath_overrides_runpath
=no
8265 export_dynamic_flag_spec
='${wl}-Blargedynsym'
8266 runpath_var
=LD_RUN_PATH
8274 shlibpath_overrides_runpath
=no
8275 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
8281 if test -d /usr
/nec
;then
8283 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8284 soname_spec
='$libname${shared_ext}.$major'
8285 shlibpath_var
=LD_LIBRARY_PATH
8291 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8292 soname_spec
='${libname}${release}${shared_ext}$major'
8293 shlibpath_var
=LD_LIBRARY_PATH
8300 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8301 echo "${ECHO_T}$dynamic_linker" >&6
8302 test "$dynamic_linker" = no
&& can_build_shared
=no
8304 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8305 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8307 if test -n "$hardcode_libdir_flag_spec" || \
8308 test -n "$runpath_var" || \
8309 test "X$hardcode_automatic" = "Xyes" ; then
8311 # We can hardcode non-existant directories.
8312 if test "$hardcode_direct" != no
&&
8313 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8314 # have to relink, otherwise we might link with an installed library
8315 # when we should be linking with a yet-to-be-installed one
8316 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8317 test "$hardcode_minus_L" != no
; then
8318 # Linking always hardcodes the temporary library directory.
8319 hardcode_action
=relink
8321 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8322 hardcode_action
=immediate
8325 # We cannot hardcode anything, or else we can only hardcode existing
8327 hardcode_action
=unsupported
8329 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8330 echo "${ECHO_T}$hardcode_action" >&6
8332 if test "$hardcode_action" = relink
; then
8333 # Fast installation is not supported
8334 enable_fast_install
=no
8335 elif test "$shlibpath_overrides_runpath" = yes ||
8336 test "$enable_shared" = no
; then
8337 # Fast installation is not necessary
8338 enable_fast_install
=needless
8343 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8344 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8345 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
8346 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
8347 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
8348 echo "$as_me:$LINENO: result: yes" >&5
8349 echo "${ECHO_T}yes" >&6
8351 # FIXME - insert some real tests, host_os isn't really good enough
8354 if test -n "$STRIP" ; then
8355 striplib
="$STRIP -x"
8356 echo "$as_me:$LINENO: result: yes" >&5
8357 echo "${ECHO_T}yes" >&6
8359 echo "$as_me:$LINENO: result: no" >&5
8360 echo "${ECHO_T}no" >&6
8364 echo "$as_me:$LINENO: result: no" >&5
8365 echo "${ECHO_T}no" >&6
8370 if test "x$enable_dlopen" != xyes
; then
8371 enable_dlopen
=unknown
8372 enable_dlopen_self
=unknown
8373 enable_dlopen_self_static
=unknown
8380 lt_cv_dlopen
="load_add_on"
8382 lt_cv_dlopen_self
=yes
8386 lt_cv_dlopen
="LoadLibrary"
8391 lt_cv_dlopen
="dlopen"
8396 # if libdl is installed we need to link against it
8397 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8398 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8399 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 ac_check_lib_save_LIBS
=$LIBS
8404 cat >conftest.
$ac_ext <<_ACEOF
8407 cat confdefs.h
>>conftest.
$ac_ext
8408 cat >>conftest.
$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8411 /* Override any gcc2 internal prototype to avoid an error. */
8415 /* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
8426 rm -f conftest.
$ac_objext conftest
$ac_exeext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428 (eval $ac_link) 2>conftest.er1
8430 grep -v '^ *+' conftest.er1
>conftest.err
8432 cat conftest.err
>&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } &&
8435 { ac_try
='test -z "$ac_c_werror_flag"
8436 || test ! -s conftest.err'
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; } &&
8442 { ac_try
='test -s conftest$ac_exeext'
8443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; }; then
8448 ac_cv_lib_dl_dlopen
=yes
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.
$ac_ext >&5
8453 ac_cv_lib_dl_dlopen
=no
8455 rm -f conftest.err conftest.
$ac_objext \
8456 conftest
$ac_exeext conftest.
$ac_ext
8457 LIBS
=$ac_check_lib_save_LIBS
8459 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8460 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8461 if test $ac_cv_lib_dl_dlopen = yes; then
8462 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
8467 lt_cv_dlopen_self
=yes
8474 echo "$as_me:$LINENO: checking for shl_load" >&5
8475 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8476 if test "${ac_cv_func_shl_load+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 cat >conftest.
$ac_ext <<_ACEOF
8482 cat confdefs.h
>>conftest.
$ac_ext
8483 cat >>conftest.
$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8485 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8487 #define shl_load innocuous_shl_load
8489 /* System header to define __stub macros and hopefully few prototypes,
8490 which can conflict with char shl_load (); below.
8491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8492 <limits.h> exists even on freestanding compilers. */
8495 # include <limits.h>
8497 # include <assert.h>
8502 /* Override any gcc2 internal prototype to avoid an error. */
8507 /* We use char because int might match the return type of a gcc2
8508 builtin and then its argument prototype would still apply. */
8510 /* The GNU C library defines this for functions which it implements
8511 to always fail with ENOSYS. Some functions are actually named
8512 something starting with __ and the normal name is an alias. */
8513 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8516 char (*f) () = shl_load;
8525 return f != shl_load;
8530 rm -f conftest.
$ac_objext conftest
$ac_exeext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8532 (eval $ac_link) 2>conftest.er1
8534 grep -v '^ *+' conftest.er1
>conftest.err
8536 cat conftest.err
>&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try
='test -z "$ac_c_werror_flag"
8540 || test ! -s conftest.err'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try
='test -s conftest$ac_exeext'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 ac_cv_func_shl_load
=yes
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.
$ac_ext >&5
8557 ac_cv_func_shl_load
=no
8559 rm -f conftest.err conftest.
$ac_objext \
8560 conftest
$ac_exeext conftest.
$ac_ext
8562 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8563 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8564 if test $ac_cv_func_shl_load = yes; then
8565 lt_cv_dlopen
="shl_load"
8567 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8568 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8569 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 ac_check_lib_save_LIBS
=$LIBS
8574 cat >conftest.
$ac_ext <<_ACEOF
8577 cat confdefs.h
>>conftest.
$ac_ext
8578 cat >>conftest.
$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8581 /* Override any gcc2 internal prototype to avoid an error. */
8585 /* We use char because int might match the return type of a gcc2
8586 builtin and then its argument prototype would still apply. */
8596 rm -f conftest.
$ac_objext conftest
$ac_exeext
8597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8598 (eval $ac_link) 2>conftest.er1
8600 grep -v '^ *+' conftest.er1
>conftest.err
8602 cat conftest.err
>&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } &&
8605 { ac_try
='test -z "$ac_c_werror_flag"
8606 || test ! -s conftest.err'
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; } &&
8612 { ac_try
='test -s conftest$ac_exeext'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; }; then
8618 ac_cv_lib_dld_shl_load
=yes
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.
$ac_ext >&5
8623 ac_cv_lib_dld_shl_load
=no
8625 rm -f conftest.err conftest.
$ac_objext \
8626 conftest
$ac_exeext conftest.
$ac_ext
8627 LIBS
=$ac_check_lib_save_LIBS
8629 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8630 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8631 if test $ac_cv_lib_dld_shl_load = yes; then
8632 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
8634 echo "$as_me:$LINENO: checking for dlopen" >&5
8635 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8636 if test "${ac_cv_func_dlopen+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 cat >conftest.
$ac_ext <<_ACEOF
8642 cat confdefs.h
>>conftest.
$ac_ext
8643 cat >>conftest.
$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8645 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8647 #define dlopen innocuous_dlopen
8649 /* System header to define __stub macros and hopefully few prototypes,
8650 which can conflict with char dlopen (); below.
8651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8652 <limits.h> exists even on freestanding compilers. */
8655 # include <limits.h>
8657 # include <assert.h>
8662 /* Override any gcc2 internal prototype to avoid an error. */
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8670 /* The GNU C library defines this for functions which it implements
8671 to always fail with ENOSYS. Some functions are actually named
8672 something starting with __ and the normal name is an alias. */
8673 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8676 char (*f) () = dlopen;
8690 rm -f conftest.
$ac_objext conftest
$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>conftest.er1
8694 grep -v '^ *+' conftest.er1
>conftest.err
8696 cat conftest.err
>&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } &&
8699 { ac_try
='test -z "$ac_c_werror_flag"
8700 || test ! -s conftest.err'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; } &&
8706 { ac_try
='test -s conftest$ac_exeext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_func_dlopen
=yes
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.
$ac_ext >&5
8717 ac_cv_func_dlopen
=no
8719 rm -f conftest.err conftest.
$ac_objext \
8720 conftest
$ac_exeext conftest.
$ac_ext
8722 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8723 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8724 if test $ac_cv_func_dlopen = yes; then
8725 lt_cv_dlopen
="dlopen"
8727 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8728 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8729 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 ac_check_lib_save_LIBS
=$LIBS
8734 cat >conftest.
$ac_ext <<_ACEOF
8737 cat confdefs.h
>>conftest.
$ac_ext
8738 cat >>conftest.
$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8741 /* Override any gcc2 internal prototype to avoid an error. */
8745 /* We use char because int might match the return type of a gcc2
8746 builtin and then its argument prototype would still apply. */
8756 rm -f conftest.
$ac_objext conftest
$ac_exeext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758 (eval $ac_link) 2>conftest.er1
8760 grep -v '^ *+' conftest.er1
>conftest.err
8762 cat conftest.err
>&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
8765 { ac_try
='test -z "$ac_c_werror_flag"
8766 || test ! -s conftest.err'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; } &&
8772 { ac_try
='test -s conftest$ac_exeext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 ac_cv_lib_dl_dlopen
=yes
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.
$ac_ext >&5
8783 ac_cv_lib_dl_dlopen
=no
8785 rm -f conftest.err conftest.
$ac_objext \
8786 conftest
$ac_exeext conftest.
$ac_ext
8787 LIBS
=$ac_check_lib_save_LIBS
8789 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8790 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8791 if test $ac_cv_lib_dl_dlopen = yes; then
8792 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
8794 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8795 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8796 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 ac_check_lib_save_LIBS
=$LIBS
8801 cat >conftest.
$ac_ext <<_ACEOF
8804 cat confdefs.h
>>conftest.
$ac_ext
8805 cat >>conftest.
$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8808 /* Override any gcc2 internal prototype to avoid an error. */
8812 /* We use char because int might match the return type of a gcc2
8813 builtin and then its argument prototype would still apply. */
8823 rm -f conftest.
$ac_objext conftest
$ac_exeext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825 (eval $ac_link) 2>conftest.er1
8827 grep -v '^ *+' conftest.er1
>conftest.err
8829 cat conftest.err
>&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } &&
8832 { ac_try
='test -z "$ac_c_werror_flag"
8833 || test ! -s conftest.err'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try
='test -s conftest$ac_exeext'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; }; then
8845 ac_cv_lib_svld_dlopen
=yes
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.
$ac_ext >&5
8850 ac_cv_lib_svld_dlopen
=no
8852 rm -f conftest.err conftest.
$ac_objext \
8853 conftest
$ac_exeext conftest.
$ac_ext
8854 LIBS
=$ac_check_lib_save_LIBS
8856 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8857 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8858 if test $ac_cv_lib_svld_dlopen = yes; then
8859 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
8861 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8862 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8863 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 ac_check_lib_save_LIBS
=$LIBS
8868 cat >conftest.
$ac_ext <<_ACEOF
8871 cat confdefs.h
>>conftest.
$ac_ext
8872 cat >>conftest.
$ac_ext <<_ACEOF
8873 /* end confdefs.h. */
8875 /* Override any gcc2 internal prototype to avoid an error. */
8879 /* We use char because int might match the return type of a gcc2
8880 builtin and then its argument prototype would still apply. */
8890 rm -f conftest.
$ac_objext conftest
$ac_exeext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8892 (eval $ac_link) 2>conftest.er1
8894 grep -v '^ *+' conftest.er1
>conftest.err
8896 cat conftest.err
>&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try
='test -z "$ac_c_werror_flag"
8900 || test ! -s conftest.err'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; } &&
8906 { ac_try
='test -s conftest$ac_exeext'
8907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; }; then
8912 ac_cv_lib_dld_dld_link
=yes
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.
$ac_ext >&5
8917 ac_cv_lib_dld_dld_link
=no
8919 rm -f conftest.err conftest.
$ac_objext \
8920 conftest
$ac_exeext conftest.
$ac_ext
8921 LIBS
=$ac_check_lib_save_LIBS
8923 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8924 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8925 if test $ac_cv_lib_dld_dld_link = yes; then
8926 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
8947 if test "x$lt_cv_dlopen" != xno
; then
8953 case $lt_cv_dlopen in
8955 save_CPPFLAGS
="$CPPFLAGS"
8956 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
8958 save_LDFLAGS
="$LDFLAGS"
8959 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
8962 LIBS
="$lt_cv_dlopen_libs $LIBS"
8964 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8965 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8966 if test "${lt_cv_dlopen_self+set}" = set; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8969 if test "$cross_compiling" = yes; then :
8970 lt_cv_dlopen_self
=cross
8972 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
8973 lt_status
=$lt_dlunknown
8974 cat > conftest.
$ac_ext <<EOF
8975 #line 8975 "configure"
8976 #include "confdefs.h"
8985 # define LT_DLGLOBAL RTLD_GLOBAL
8988 # define LT_DLGLOBAL DL_GLOBAL
8990 # define LT_DLGLOBAL 0
8994 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8995 find out it does not work in some platform. */
8996 #ifndef LT_DLLAZY_OR_NOW
8998 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9001 # define LT_DLLAZY_OR_NOW DL_LAZY
9004 # define LT_DLLAZY_OR_NOW RTLD_NOW
9007 # define LT_DLLAZY_OR_NOW DL_NOW
9009 # define LT_DLLAZY_OR_NOW 0
9017 extern "C" void exit (int);
9020 void fnord() { int i=42;}
9023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9024 int status = $lt_dlunknown;
9028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9029 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9030 /* dlclose (self); */
9036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9037 (eval $ac_link) 2>&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
9041 (.
/conftest
; exit; ) 2>/dev
/null
9044 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
9045 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
9046 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
9049 # compilation failed
9050 lt_cv_dlopen_self
=no
9057 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9058 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9060 if test "x$lt_cv_dlopen_self" = xyes
; then
9061 LDFLAGS
="$LDFLAGS $link_static_flag"
9062 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9063 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9064 if test "${lt_cv_dlopen_self_static+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 if test "$cross_compiling" = yes; then :
9068 lt_cv_dlopen_self_static
=cross
9070 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
9071 lt_status
=$lt_dlunknown
9072 cat > conftest.
$ac_ext <<EOF
9073 #line 9073 "configure"
9074 #include "confdefs.h"
9083 # define LT_DLGLOBAL RTLD_GLOBAL
9086 # define LT_DLGLOBAL DL_GLOBAL
9088 # define LT_DLGLOBAL 0
9092 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9093 find out it does not work in some platform. */
9094 #ifndef LT_DLLAZY_OR_NOW
9096 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9099 # define LT_DLLAZY_OR_NOW DL_LAZY
9102 # define LT_DLLAZY_OR_NOW RTLD_NOW
9105 # define LT_DLLAZY_OR_NOW DL_NOW
9107 # define LT_DLLAZY_OR_NOW 0
9115 extern "C" void exit (int);
9118 void fnord() { int i=42;}
9121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9122 int status = $lt_dlunknown;
9126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9127 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9128 /* dlclose (self); */
9134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9135 (eval $ac_link) 2>&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
9139 (.
/conftest
; exit; ) 2>/dev
/null
9142 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
9143 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
9144 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
9147 # compilation failed
9148 lt_cv_dlopen_self_static
=no
9155 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9156 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9159 CPPFLAGS
="$save_CPPFLAGS"
9160 LDFLAGS
="$save_LDFLAGS"
9165 case $lt_cv_dlopen_self in
9166 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
9167 *) enable_dlopen_self
=unknown
;;
9170 case $lt_cv_dlopen_self_static in
9171 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
9172 *) enable_dlopen_self_static
=unknown
;;
9177 # Report which librarie types wil actually be built
9178 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9179 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9180 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9181 echo "${ECHO_T}$can_build_shared" >&6
9183 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9184 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9185 test "$can_build_shared" = "no" && enable_shared
=no
9187 # On AIX, shared libraries and static libraries use the same namespace, and
9188 # are all built from PIC.
9191 test "$enable_shared" = yes && enable_static
=no
9192 if test -n "$RANLIB"; then
9193 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
9194 postinstall_cmds
='$RANLIB $lib'
9199 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
9200 test "$enable_shared" = yes && enable_static
=no
9204 echo "$as_me:$LINENO: result: $enable_shared" >&5
9205 echo "${ECHO_T}$enable_shared" >&6
9207 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9208 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9209 # Make sure either enable_shared or enable_static is yes.
9210 test "$enable_shared" = yes || enable_static
=yes
9211 echo "$as_me:$LINENO: result: $enable_static" >&5
9212 echo "${ECHO_T}$enable_static" >&6
9214 # The else clause should only fire when bootstrapping the
9215 # libtool distribution, otherwise you forgot to ship ltmain.sh
9216 # with your package, and you will get complaints that there are
9217 # no rules to generate ltmain.sh.
9218 if test -f "$ltmain"; then
9219 # See if we are running on zsh, and set the options which allow our commands through
9220 # without removal of \ escapes.
9221 if test -n "${ZSH_VERSION+set}" ; then
9222 setopt NO_GLOB_SUBST
9224 # Now quote all the things that may contain metacharacters while being
9225 # careful not to overquote the AC_SUBSTed values. We take copies of the
9226 # variables and quote the copies for generation of the libtool script.
9227 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9229 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9230 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9231 deplibs_check_method reload_flag reload_cmds need_locks \
9232 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9233 lt_cv_sys_global_symbol_to_c_name_address \
9234 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9235 old_postinstall_cmds old_postuninstall_cmds \
9239 lt_prog_compiler_wl \
9240 lt_prog_compiler_pic \
9241 lt_prog_compiler_static \
9242 lt_prog_compiler_no_builtin_flag \
9243 export_dynamic_flag_spec \
9244 thread_safe_flag_spec \
9245 whole_archive_flag_spec \
9246 enable_shared_with_static_runtimes \
9248 old_archive_from_new_cmds \
9253 compiler_lib_search_path \
9255 archive_expsym_cmds \
9257 postuninstall_cmds \
9258 old_archive_from_expsyms_cmds \
9259 allow_undefined_flag \
9261 export_symbols_cmds \
9262 hardcode_libdir_flag_spec \
9263 hardcode_libdir_flag_spec_ld \
9264 hardcode_libdir_separator \
9265 hardcode_automatic \
9267 module_expsym_cmds \
9268 lt_cv_prog_compiler_c_o \
9273 old_archive_cmds | \
9274 old_archive_from_new_cmds | \
9276 archive_expsym_cmds | \
9278 module_expsym_cmds | \
9279 old_archive_from_expsyms_cmds | \
9280 export_symbols_cmds | \
9281 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9282 postinstall_cmds | postuninstall_cmds | \
9283 old_postinstall_cmds | old_postuninstall_cmds | \
9284 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
9285 # Double-quote double-evaled strings.
9286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9289 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9295 *'\$0 --fallback-echo"')
9296 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9301 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9303 { echo "$as_me:$LINENO: creating $ofile" >&5
9304 echo "$as_me: creating $ofile" >&6;}
9306 cat <<__EOF__ >> "$cfgfile"
9309 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9310 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9311 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9313 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9314 # Free Software Foundation, Inc.
9316 # This file is part of GNU Libtool:
9317 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9319 # This program is free software; you can redistribute it and/or modify
9320 # it under the terms of the GNU General Public License as published by
9321 # the Free Software Foundation; either version 2 of the License, or
9322 # (at your option) any later version.
9324 # This program is distributed in the hope that it will be useful, but
9325 # WITHOUT ANY WARRANTY; without even the implied warranty of
9326 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9327 # General Public License for more details.
9329 # You should have received a copy of the GNU General Public License
9330 # along with this program; if not, write to the Free Software
9331 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
9334 # As a special exception to the GNU General Public License, if you
9335 # distribute this file as part of a program that contains a
9336 # configuration script generated by Autoconf, you may include it under
9337 # the same distribution terms that you use for the rest of that program.
9339 # A sed program that does not truncate output.
9342 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9343 Xsed="$SED -e s/^X//"
9345 # The HP-UX ksh and POSIX shell print the target directory to stdout
9347 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9349 # The names of the tagged configurations supported by this script.
9352 # ### BEGIN LIBTOOL CONFIG
9354 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9356 # Shell to use when invoking shell scripts.
9359 # Whether or not to build shared libraries.
9360 build_libtool_libs=$enable_shared
9362 # Whether or not to build static libraries.
9363 build_old_libs=$enable_static
9365 # Whether or not to add -lc for building shared libraries.
9366 build_libtool_need_lc=$archive_cmds_need_lc
9368 # Whether or not to disallow shared libs when runtime libs are static
9369 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9371 # Whether or not to optimize for fast installation.
9372 fast_install=$enable_fast_install
9375 host_alias=$host_alias
9380 build_alias=$build_alias
9384 # An echo program that does not interpret backslashes.
9389 AR_FLAGS=$lt_AR_FLAGS
9394 # A language-specific compiler.
9397 # Is the compiler the GNU C compiler?
9403 # The linker used to build libraries.
9406 # Whether we need hard or soft links.
9409 # A BSD-compatible nm program.
9412 # A symbol stripping program
9415 # Used to examine libraries when file_magic_cmd begins "file"
9416 MAGIC_CMD=$MAGIC_CMD
9418 # Used on cygwin: DLL creation program.
9421 # Used on cygwin: object dumper.
9424 # Used on cygwin: assembler.
9427 # The name of the directory that contains temporary libtool files.
9430 # How to create reloadable object files.
9431 reload_flag=$lt_reload_flag
9432 reload_cmds=$lt_reload_cmds
9434 # How to pass a linker flag through the compiler.
9435 wl=$lt_lt_prog_compiler_wl
9437 # Object file suffix (normally "o").
9440 # Old archive suffix (normally "a").
9443 # Shared library suffix (normally ".so").
9444 shrext_cmds='$shrext_cmds'
9446 # Executable file suffix (normally "").
9449 # Additional compiler flags for building library objects.
9450 pic_flag=$lt_lt_prog_compiler_pic
9453 # What is the maximum length of a command?
9454 max_cmd_len=$lt_cv_sys_max_cmd_len
9456 # Does compiler simultaneously support -c and -o options?
9457 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9459 # Must we lock files when doing compilation ?
9460 need_locks=$lt_need_locks
9462 # Do we need the lib prefix for modules?
9463 need_lib_prefix=$need_lib_prefix
9465 # Do we need a version for libraries?
9466 need_version=$need_version
9468 # Whether dlopen is supported.
9469 dlopen_support=$enable_dlopen
9471 # Whether dlopen of programs is supported.
9472 dlopen_self=$enable_dlopen_self
9474 # Whether dlopen of statically linked programs is supported.
9475 dlopen_self_static=$enable_dlopen_self_static
9477 # Compiler flag to prevent dynamic linking.
9478 link_static_flag=$lt_lt_prog_compiler_static
9480 # Compiler flag to turn off builtin functions.
9481 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9483 # Compiler flag to allow reflexive dlopens.
9484 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9486 # Compiler flag to generate shared objects directly from archives.
9487 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9489 # Compiler flag to generate thread-safe objects.
9490 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9492 # Library versioning type.
9493 version_type=$version_type
9495 # Format of library name prefix.
9496 libname_spec=$lt_libname_spec
9498 # List of archive names. First name is the real one, the rest are links.
9499 # The last name is the one that the linker finds with -lNAME.
9500 library_names_spec=$lt_library_names_spec
9502 # The coded name of the library, if different from the real name.
9503 soname_spec=$lt_soname_spec
9505 # Commands used to build and install an old-style archive.
9507 old_archive_cmds=$lt_old_archive_cmds
9508 old_postinstall_cmds=$lt_old_postinstall_cmds
9509 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9511 # Create an old-style archive from a shared archive.
9512 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9514 # Create a temporary old-style archive to link instead of a shared archive.
9515 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9517 # Commands used to build and install a shared archive.
9518 archive_cmds=$lt_archive_cmds
9519 archive_expsym_cmds=$lt_archive_expsym_cmds
9520 postinstall_cmds=$lt_postinstall_cmds
9521 postuninstall_cmds=$lt_postuninstall_cmds
9523 # Commands used to build a loadable module (assumed same as above if empty)
9524 module_cmds=$lt_module_cmds
9525 module_expsym_cmds=$lt_module_expsym_cmds
9527 # Commands to strip libraries.
9528 old_striplib=$lt_old_striplib
9529 striplib=$lt_striplib
9531 # Dependencies to place before the objects being linked to create a
9533 predep_objects=$lt_predep_objects
9535 # Dependencies to place after the objects being linked to create a
9537 postdep_objects=$lt_postdep_objects
9539 # Dependencies to place before the objects being linked to create a
9543 # Dependencies to place after the objects being linked to create a
9545 postdeps=$lt_postdeps
9547 # The library search path used internally by the compiler when linking
9549 compiler_lib_search_path=$lt_compiler_lib_search_path
9551 # Method to check whether dependent libraries are shared objects.
9552 deplibs_check_method=$lt_deplibs_check_method
9554 # Command to use when deplibs_check_method == file_magic.
9555 file_magic_cmd=$lt_file_magic_cmd
9557 # Flag that allows shared libraries with undefined symbols to be built.
9558 allow_undefined_flag=$lt_allow_undefined_flag
9560 # Flag that forces no undefined symbols.
9561 no_undefined_flag=$lt_no_undefined_flag
9563 # Commands used to finish a libtool library installation in a directory.
9564 finish_cmds=$lt_finish_cmds
9566 # Same as above, but a single script fragment to be evaled but not shown.
9567 finish_eval=$lt_finish_eval
9569 # Take the output of nm and produce a listing of raw symbols and C names.
9570 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9572 # Transform the output of nm in a proper C declaration
9573 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9575 # Transform the output of nm in a C name address pair
9576 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9578 # This is the shared library runtime path variable.
9579 runpath_var=$runpath_var
9581 # This is the shared library path variable.
9582 shlibpath_var=$shlibpath_var
9584 # Is shlibpath searched before the hard-coded library search path?
9585 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9587 # How to hardcode a shared library path into an executable.
9588 hardcode_action=$hardcode_action
9590 # Whether we should hardcode library paths into libraries.
9591 hardcode_into_libs=$hardcode_into_libs
9593 # Flag to hardcode \$libdir into a binary during linking.
9594 # This must work even if \$libdir does not exist.
9595 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9597 # If ld is used when linking, flag to hardcode \$libdir into
9598 # a binary during linking. This must work even if \$libdir does
9600 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9602 # Whether we need a single -rpath flag with a separated argument.
9603 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9605 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9607 hardcode_direct=$hardcode_direct
9609 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9611 hardcode_minus_L=$hardcode_minus_L
9613 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9614 # the resulting binary.
9615 hardcode_shlibpath_var=$hardcode_shlibpath_var
9617 # Set to yes if building a shared library automatically hardcodes DIR into the library
9618 # and all subsequent libraries and executables linked against it.
9619 hardcode_automatic=$hardcode_automatic
9621 # Variables whose values should be saved in libtool wrapper scripts and
9622 # restored at relink time.
9623 variables_saved_for_relink="$variables_saved_for_relink"
9625 # Whether libtool must link a program against all its dependency libraries.
9626 link_all_deplibs=$link_all_deplibs
9628 # Compile-time system search path for libraries
9629 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9631 # Run-time system search path for libraries
9632 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9634 # Fix the shell variable \$srcfile for the compiler.
9635 fix_srcfile_path="$fix_srcfile_path"
9637 # Set to yes if exported symbols are required.
9638 always_export_symbols=$always_export_symbols
9640 # The commands to list exported symbols.
9641 export_symbols_cmds=$lt_export_symbols_cmds
9643 # The commands to extract the exported symbol list from a shared archive.
9644 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9646 # Symbols that should not be listed in the preloaded symbols.
9647 exclude_expsyms=$lt_exclude_expsyms
9649 # Symbols that must always be exported.
9650 include_expsyms=$lt_include_expsyms
9652 # ### END LIBTOOL CONFIG
9659 cat <<\EOF
>> "$cfgfile"
9661 # AIX sometimes has problems with the GCC collect2 program. For some
9662 # reason, if we set the COLLECT_NAMES environment variable, the problems
9663 # vanish in a puff of smoke.
9664 if test "X${COLLECT_NAMES+set}" != Xset
; then
9666 export COLLECT_NAMES
9672 # We use sed instead of cat because bash on DJGPP gets confused if
9673 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9674 # text mode, it properly converts lines to CR/LF. This bash problem
9675 # is reportedly fixed, but why not run on old versions too?
9676 sed '$q' "$ltmain" >> "$cfgfile" ||
(rm -f "$cfgfile"; exit 1)
9678 mv -f "$cfgfile" "$ofile" || \
9679 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9683 # If there is no Makefile yet, we rely on a make rule to execute
9684 # `config.status --recheck' to rerun these tests and create the
9685 # libtool script then.
9686 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9687 if test -f "$ltmain_in"; then
9688 test -f Makefile
&& make "$ltmain"
9694 ac_cpp
='$CPP $CPPFLAGS'
9695 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9696 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9697 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9702 # Check whether --with-tags or --without-tags was given.
9703 if test "${with_tags+set}" = set; then
9704 withval
="$with_tags"
9708 if test -f "$ltmain" && test -n "$tagnames"; then
9709 if test ! -f "${ofile}"; then
9710 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9711 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9714 if test -z "$LTCC"; then
9715 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9716 if test -z "$LTCC"; then
9717 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9718 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9720 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9721 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9725 # Extract list of available tagged configurations in $ofile.
9726 # Note that this assumes the entire list is on one line.
9727 available_tags
=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9729 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9730 for tagname
in $tagnames; do
9732 # Check whether tagname contains only valid characters
9733 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9735 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9736 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9737 { (exit 1); exit 1; }; }
9741 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev
/null
9743 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9744 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9745 { (exit 1); exit 1; }; }
9748 # Update the list of available tags.
9749 if test -n "$tagname"; then
9750 echo appending configuration tag
\"$tagname\" to
$ofile
9754 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9755 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9756 (test "X$CXX" != "Xg++"))) ; then
9758 ac_cpp
='$CXXCPP $CPPFLAGS'
9759 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9760 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9761 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9766 archive_cmds_need_lc_CXX
=no
9767 allow_undefined_flag_CXX
=
9768 always_export_symbols_CXX
=no
9769 archive_expsym_cmds_CXX
=
9770 export_dynamic_flag_spec_CXX
=
9771 hardcode_direct_CXX
=no
9772 hardcode_libdir_flag_spec_CXX
=
9773 hardcode_libdir_flag_spec_ld_CXX
=
9774 hardcode_libdir_separator_CXX
=
9775 hardcode_minus_L_CXX
=no
9776 hardcode_automatic_CXX
=no
9778 module_expsym_cmds_CXX
=
9779 link_all_deplibs_CXX
=unknown
9780 old_archive_cmds_CXX
=$old_archive_cmds
9781 no_undefined_flag_CXX
=
9782 whole_archive_flag_spec_CXX
=
9783 enable_shared_with_static_runtimes_CXX
=no
9785 # Dependencies to place before and after the object being linked:
9787 postdep_objects_CXX
=
9790 compiler_lib_search_path_CXX
=
9792 # Source file extension for C++ test sources.
9795 # Object file extension for compiled C++ test sources.
9799 # Code to be used in simple compile tests
9800 lt_simple_compile_test_code
="int some_variable = 0;\n"
9802 # Code to be used in simple link tests
9803 lt_simple_link_test_code
='int main(int, char *) { return(0); }\n'
9805 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9807 # If no C compiler was specified, use CC.
9810 # Allow CC to be a program name with arguments.
9814 # Allow CC to be a program name with arguments.
9819 lt_save_with_gnu_ld
=$with_gnu_ld
9820 lt_save_path_LD
=$lt_cv_path_LD
9821 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9822 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
9824 unset lt_cv_prog_gnu_ld
9826 if test -n "${lt_cv_path_LDCXX+set}"; then
9827 lt_cv_path_LD
=$lt_cv_path_LDCXX
9831 test -z "${LDCXX+set}" || LD
=$LDCXX
9835 cc_basename
=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9837 # We don't want -fno-exception wen compiling C++ code, so set the
9838 # no_builtin_flag separately
9839 if test "$GXX" = yes; then
9840 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
9842 lt_prog_compiler_no_builtin_flag_CXX
=
9845 if test "$GXX" = yes; then
9846 # Set up default GNU C++ configuration
9849 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9850 if test "${with_gnu_ld+set}" = set; then
9851 withval
="$with_gnu_ld"
9852 test "$withval" = no || with_gnu_ld
=yes
9857 if test "$GCC" = yes; then
9858 # Check if gcc -print-prog-name=ld gives a path.
9859 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9860 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9863 # gcc leaves a trailing carriage return which upsets mingw
9864 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9866 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9869 # Accept absolute paths.
9871 re_direlt
='/[^/][^/]*/\.\./'
9872 # Canonicalize the pathname of ld
9873 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
9874 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9875 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9877 test -z "$LD" && LD
="$ac_prog"
9880 # If it fails, then pretend we aren't using GCC.
9884 # If it is relative, then search for the first ld in PATH.
9888 elif test "$with_gnu_ld" = yes; then
9889 echo "$as_me:$LINENO: checking for GNU ld" >&5
9890 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9892 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9893 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9895 if test "${lt_cv_path_LD+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 if test -z "$LD"; then
9899 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9900 for ac_dir
in $PATH; do
9902 test -z "$ac_dir" && ac_dir
=.
9903 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9904 lt_cv_path_LD
="$ac_dir/$ac_prog"
9905 # Check to see if the program is GNU ld. I'd rather use --version,
9906 # but apparently some GNU ld's only accept -v.
9907 # Break only if it was the GNU/non-GNU ld that we prefer.
9908 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9909 *GNU
* |
*'with BFD'*)
9910 test "$with_gnu_ld" != no
&& break
9913 test "$with_gnu_ld" != yes && break
9920 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
9925 if test -n "$LD"; then
9926 echo "$as_me:$LINENO: result: $LD" >&5
9927 echo "${ECHO_T}$LD" >&6
9929 echo "$as_me:$LINENO: result: no" >&5
9930 echo "${ECHO_T}no" >&6
9932 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9933 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9934 { (exit 1); exit 1; }; }
9935 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9936 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9937 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9941 case `$LD -v 2>&1 </dev/null` in
9942 *GNU
* |
*'with BFD'*)
9943 lt_cv_prog_gnu_ld
=yes
9946 lt_cv_prog_gnu_ld
=no
9950 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9951 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9952 with_gnu_ld
=$lt_cv_prog_gnu_ld
9956 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9957 # archiving commands below assume that GNU ld is being used.
9958 if test "$with_gnu_ld" = yes; then
9959 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9960 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'
9962 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
9963 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
9965 # If archive_cmds runs LD, not CC, wlarc should be empty
9966 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9967 # investigate it a little bit more. (MM)
9970 # ancient GNU ld didn't support --whole-archive et. al.
9971 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9972 grep 'no-whole-archive' > /dev
/null
; then
9973 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9975 whole_archive_flag_spec_CXX
=
9981 # A generic and very simple default shared library creation
9982 # command for GNU C++ for the case where it uses the native
9983 # linker, instead of GNU ld. If possible, this setting should
9984 # overridden to take advantage of the native linker features on
9985 # the platform it is being used on.
9986 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9989 # Commands to make compiler produce verbose output that lists
9990 # what "hidden" libraries, object files and flags are used when
9991 # linking a shared library.
9992 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10000 # PORTME: fill in a description of your system's C++ link characteristics
10001 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10002 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10006 # FIXME: insert proper C++ library support
10010 if test "$host_cpu" = ia64
; then
10011 # On IA64, the linker does run time linking by default, so we don't
10012 # have to do anything special.
10013 aix_use_runtimelinking
=no
10014 exp_sym_flag
='-Bexport'
10017 aix_use_runtimelinking
=no
10019 # Test if we are trying to use run time linking or normal
10020 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10021 # need to do runtime linking.
10022 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
10023 for ld_flag
in $LDFLAGS; do
10026 aix_use_runtimelinking
=yes
10033 exp_sym_flag
='-bexport'
10034 no_entry_flag
='-bnoentry'
10037 # When large executables or shared objects are built, AIX ld can
10038 # have problems creating the table of contents. If linking a library
10039 # or program results in "error TOC overflow" add -mminimal-toc to
10040 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10041 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10043 archive_cmds_CXX
=''
10044 hardcode_direct_CXX
=yes
10045 hardcode_libdir_separator_CXX
=':'
10046 link_all_deplibs_CXX
=yes
10048 if test "$GXX" = yes; then
10049 case $host_os in aix4.
[012]|aix4.
[012].
*)
10050 # We only want to do this on AIX 4.2 and lower, the check
10051 # below for broken collect2 doesn't work under 4.3+
10052 collect2name
=`${CC} -print-prog-name=collect2`
10053 if test -f "$collect2name" && \
10054 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
10056 # We have reworked collect2
10057 hardcode_direct_CXX
=yes
10059 # We have old collect2
10060 hardcode_direct_CXX
=unsupported
10061 # It fails to find uninstalled libraries when the uninstalled
10062 # path is not listed in the libpath. Setting hardcode_minus_L
10063 # to unsupported forces relinking
10064 hardcode_minus_L_CXX
=yes
10065 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10066 hardcode_libdir_separator_CXX
=
10069 shared_flag
='-shared'
10070 if test "$aix_use_runtimelinking" = yes; then
10071 shared_flag
="$shared_flag "'${wl}-G'
10075 if test "$host_cpu" = ia64
; then
10076 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10077 # chokes on -Wl,-G. The following line is correct:
10080 if test "$aix_use_runtimelinking" = yes; then
10081 shared_flag
='${wl}-G'
10083 shared_flag
='${wl}-bM:SRE'
10088 # It seems that -bexpall does not export symbols beginning with
10089 # underscore (_), so it is better to generate a list of symbols to export.
10090 always_export_symbols_CXX
=yes
10091 if test "$aix_use_runtimelinking" = yes; then
10092 # Warning - without using the other runtime loading flags (-brtl),
10093 # -berok will link without error, but may produce a broken library.
10094 allow_undefined_flag_CXX
='-berok'
10095 # Determine the default libpath from the value encoded in an empty executable.
10096 cat >conftest.
$ac_ext <<_ACEOF
10099 cat confdefs.h
>>conftest.
$ac_ext
10100 cat >>conftest.
$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10111 rm -f conftest.
$ac_objext conftest
$ac_exeext
10112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10113 (eval $ac_link) 2>conftest.er1
10115 grep -v '^ *+' conftest.er1
>conftest.err
10117 cat conftest.err
>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try
='test -z "$ac_cxx_werror_flag"
10121 || test ! -s conftest.err'
10122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; } &&
10127 { ac_try
='test -s conftest$ac_exeext'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10134 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10136 # Check for a 64-bit object if we didn't find anything.
10137 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10140 echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.
$ac_ext >&5
10144 rm -f conftest.err conftest.
$ac_objext \
10145 conftest
$ac_exeext conftest.
$ac_ext
10146 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10148 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
10150 archive_expsym_cmds_CXX
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10152 if test "$host_cpu" = ia64; then
10153 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr
/lib
:/lib
'
10154 allow_undefined_flag_CXX="-z nodefs"
10155 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
10157 # Determine the default libpath from the value encoded in an empty executable.
10158 cat >conftest.$ac_ext <<_ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175 (eval $ac_link) 2>conftest.er1
10177 grep -v '^ *+' conftest.er1 >conftest.err
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10181 (exit $ac_status); } &&
10182 { ac_try='test -z "$ac_cxx_werror_flag"
10183 || test ! -s conftest.err'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10188 (exit $ac_status); }; } &&
10189 { ac_try='test -s conftest$ac_exeext'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10194 (exit $ac_status); }; }; then
10196 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10198 # Check for a 64-bit object if we didn't find anything.
10199 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10202 echo "$as_me: failed program was
:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10206 rm -f conftest.err conftest.$ac_objext \
10207 conftest$ac_exeext conftest.$ac_ext
10208 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
10210 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10211 # Warning - without using the other run time loading flags,
10212 # -berok will link without error, but may produce a broken library.
10213 no_undefined_flag_CXX=' ${wl}-bernotok'
10214 allow_undefined_flag_CXX=' ${wl}-berok'
10215 # -bexpall does not export symbols beginning with underscore (_)
10216 always_export_symbols_CXX=yes
10217 # Exported symbols can be pulled into shared objects from archives
10218 whole_archive_flag_spec_CXX=' '
10219 archive_cmds_need_lc_CXX=yes
10220 # This is similar to how AIX traditionally builds it's shared libraries.
10221 archive_expsym_cmds_CXX="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10226 case $cc_basename in
10228 # FIXME: insert proper C++ library support
10235 cygwin* | mingw* | pw32*)
10236 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10237 # as there is no search path for DLLs.
10238 hardcode_libdir_flag_spec_CXX='-L$libdir'
10239 allow_undefined_flag_CXX=unsupported
10240 always_export_symbols_CXX=no
10241 enable_shared_with_static_runtimes_CXX=yes
10243 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10244 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10245 # If the export-symbols file already is a .def file (1st line
10246 # is EXPORTS), use it as is; otherwise, prepend...
10247 archive_expsym_cmds_CXX='if test "x
`$SED 1q $export_symbols`" = xEXPORTS; then
10248 cp $export_symbols $output_objdir/$soname.def;
10250 echo EXPORTS > $output_objdir/$soname.def;
10251 cat $export_symbols >> $output_objdir/$soname.def;
10253 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10258 darwin* | rhapsody*)
10260 rhapsody* | darwin1.[012])
10261 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10264 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10265 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10267 case ${MACOSX_DEPLOYMENT_TARGET} in
10269 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10272 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10278 archive_cmds_need_lc_CXX=no
10279 hardcode_direct_CXX=no
10280 hardcode_automatic_CXX=yes
10281 hardcode_shlibpath_var_CXX=unsupported
10282 whole_archive_flag_spec_CXX=''
10283 link_all_deplibs_CXX=yes
10285 if test "$GXX" = yes ; then
10286 lt_int_apple_cc_single_mod=no
10287 output_verbose_link_cmd='echo'
10288 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10289 lt_int_apple_cc_single_mod=yes
10291 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10292 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10294 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'
10296 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10297 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10298 if test "X
$lt_int_apple_cc_single_mod" = Xyes ; then
10299 archive_expsym_cmds_CXX='sed -e "s
,#.*,," -e "s,^[ ]*,," -e "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}'
10301 archive_expsym_cmds_CXX
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
10303 module_expsym_cmds_CXX
='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
10305 case "$cc_basename" in
10307 output_verbose_link_cmd
='echo'
10308 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'
10309 module_cmds_CXX
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10310 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10311 archive_expsym_cmds_CXX
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
10312 module_expsym_cmds_CXX
='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
10322 case $cc_basename in
10324 # FIXME: insert proper C++ library support
10328 # Green Hills C++ Compiler
10329 # FIXME: insert proper C++ library support
10333 # FIXME: insert proper C++ library support
10339 # C++ shared libraries reported to be fairly broken before switch to ELF
10343 archive_cmds_need_lc_CXX
=no
10345 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
10346 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10353 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10354 hardcode_libdir_separator_CXX
=:
10355 export_dynamic_flag_spec_CXX
='${wl}-E'
10356 hardcode_direct_CXX
=yes
10357 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10358 # but as the default
10359 # location of the library.
10361 case $cc_basename in
10363 # FIXME: insert proper C++ library support
10367 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'
10368 # Commands to make compiler produce verbose output that lists
10369 # what "hidden" libraries, object files and flags are used when
10370 # linking a shared library.
10372 # There doesn't appear to be a way to prevent this compiler from
10373 # explicitly linking system object files so we need to strip them
10374 # from the output so that they don't get included in the library
10376 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 $list'
10379 if test "$GXX" = yes; then
10380 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'
10382 # FIXME: insert proper C++ library support
10389 if test $with_gnu_ld = no
; then
10390 case "$host_cpu" in
10392 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10393 hardcode_libdir_flag_spec_ld_CXX
='+b $libdir'
10394 hardcode_libdir_separator_CXX
=:
10397 hardcode_libdir_flag_spec_CXX
='-L$libdir'
10400 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
10401 hardcode_libdir_separator_CXX
=:
10402 export_dynamic_flag_spec_CXX
='${wl}-E'
10406 case "$host_cpu" in
10408 hardcode_direct_CXX
=no
10409 hardcode_shlibpath_var_CXX
=no
10412 hardcode_direct_CXX
=no
10413 hardcode_shlibpath_var_CXX
=no
10414 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10415 # but as the default
10416 # location of the library.
10419 hardcode_direct_CXX
=yes
10420 hardcode_minus_L_CXX
=yes # Not in the search PATH,
10421 # but as the default
10422 # location of the library.
10426 case $cc_basename in
10428 # FIXME: insert proper C++ library support
10432 case "$host_cpu" in
10434 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10437 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10440 # Commands to make compiler produce verbose output that lists
10441 # what "hidden" libraries, object files and flags are used when
10442 # linking a shared library.
10444 # There doesn't appear to be a way to prevent this compiler from
10445 # explicitly linking system object files so we need to strip them
10446 # from the output so that they don't get included in the library
10448 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 $list'
10451 if test "$GXX" = yes; then
10452 if test $with_gnu_ld = no
; then
10453 case "$host_cpu" in
10455 archive_cmds_CXX
='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10458 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'
10463 # FIXME: insert proper C++ library support
10470 case $cc_basename in
10473 archive_cmds_CXX
='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10475 # Archives containing C++ object files must be created using
10476 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10477 # necessary to make sure instantiated templates are included
10479 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
10482 if test "$GXX" = yes; then
10483 if test "$with_gnu_ld" = no
; then
10484 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10486 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10489 link_all_deplibs_CXX
=yes
10492 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10493 hardcode_libdir_separator_CXX
=:
10496 case $cc_basename in
10498 # Kuck and Associates, Inc. (KAI) C++ Compiler
10500 # KCC will only create a shared library if the output file
10501 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10502 # to its proper name (with version) after linking.
10503 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'
10504 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'
10505 # Commands to make compiler produce verbose output that lists
10506 # what "hidden" libraries, object files and flags are used when
10507 # linking a shared library.
10509 # There doesn't appear to be a way to prevent this compiler from
10510 # explicitly linking system object files so we need to strip them
10511 # from the output so that they don't get included in the library
10513 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 $list'
10515 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
10516 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10518 # Archives containing C++ object files must be created using
10519 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10520 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10525 # version 8.0 and above of icpc choke on multiply defined symbols
10526 # if we add $predep_objects and $postdep_objects, however 7.1 and
10527 # earlier do not add the objects themselves.
10528 case `$CC -V 2>&1` in
10530 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10531 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'
10533 *) # Version 8.0 or newer
10536 ia64
*) tmp_idyn
=' -i_dynamic';;
10538 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10539 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'
10542 archive_cmds_need_lc_CXX
=no
10543 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10544 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10545 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10548 # Portland Group C++ compiler
10549 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10550 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'
10552 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
10553 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
10557 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10558 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'
10560 runpath_var
=LD_RUN_PATH
10561 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
10562 hardcode_libdir_separator_CXX
=:
10564 # Commands to make compiler produce verbose output that lists
10565 # what "hidden" libraries, object files and flags are used when
10566 # linking a shared library.
10568 # There doesn't appear to be a way to prevent this compiler from
10569 # explicitly linking system object files so we need to strip them
10570 # from the output so that they don't get included in the library
10572 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
10577 # FIXME: insert proper C++ library support
10581 # FIXME: insert proper C++ library support
10585 case $cc_basename in
10587 # FIXME: insert proper C++ library support
10591 # FIXME: insert proper C++ library support
10597 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10598 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10600 hardcode_libdir_flag_spec_CXX
='-R$libdir'
10601 hardcode_direct_CXX
=yes
10602 hardcode_shlibpath_var_CXX
=no
10604 # Workaround some broken pre-1.5 toolchains
10605 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10608 # C++ shared libraries are fairly broken
10612 hardcode_direct_CXX
=yes
10613 hardcode_shlibpath_var_CXX
=no
10614 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10615 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10617 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10618 export_dynamic_flag_spec_CXX
='${wl}-E'
10619 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10621 output_verbose_link_cmd
='echo'
10624 case $cc_basename in
10626 # Kuck and Associates, Inc. (KAI) C++ Compiler
10628 # KCC will only create a shared library if the output file
10629 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10630 # to its proper name (with version) after linking.
10631 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'
10633 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10634 hardcode_libdir_separator_CXX
=:
10636 # Archives containing C++ object files must be created using
10637 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10638 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
10642 # Rational C++ 2.4.1
10643 # FIXME: insert proper C++ library support
10647 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10648 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10650 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10651 hardcode_libdir_separator_CXX
=:
10653 # Commands to make compiler produce verbose output that lists
10654 # what "hidden" libraries, object files and flags are used when
10655 # linking a shared library.
10657 # There doesn't appear to be a way to prevent this compiler from
10658 # explicitly linking system object files so we need to strip them
10659 # from the output so that they don't get included in the library
10661 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
10664 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10665 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10666 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10668 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10669 hardcode_libdir_separator_CXX
=:
10671 # Commands to make compiler produce verbose output that lists
10672 # what "hidden" libraries, object files and flags are used when
10673 # linking a shared library.
10674 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10677 # FIXME: insert proper C++ library support
10684 case $cc_basename in
10686 # Kuck and Associates, Inc. (KAI) C++ Compiler
10688 # KCC will only create a shared library if the output file
10689 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10690 # to its proper name (with version) after linking.
10691 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'
10693 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
10694 hardcode_libdir_separator_CXX
=:
10696 # Archives containing C++ object files must be created using
10697 # the KAI C++ compiler.
10698 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
10701 # Rational C++ 2.4.1
10702 # FIXME: insert proper C++ library support
10706 allow_undefined_flag_CXX
=' -expect_unresolved \*'
10707 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10708 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10709 echo "-hidden">> $lib.exp~
10710 $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 -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10713 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
10714 hardcode_libdir_separator_CXX
=:
10716 # Commands to make compiler produce verbose output that lists
10717 # what "hidden" libraries, object files and flags are used when
10718 # linking a shared library.
10720 # There doesn't appear to be a way to prevent this compiler from
10721 # explicitly linking system object files so we need to strip them
10722 # from the output so that they don't get included in the library
10724 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
10727 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10728 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
10729 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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10731 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
10732 hardcode_libdir_separator_CXX
=:
10734 # Commands to make compiler produce verbose output that lists
10735 # what "hidden" libraries, object files and flags are used when
10736 # linking a shared library.
10737 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10740 # FIXME: insert proper C++ library support
10747 # FIXME: insert proper C++ library support
10751 archive_cmds_need_lc_CXX
=no
10752 case $cc_basename in
10754 # FIXME: insert proper C++ library support
10758 # FIXME: insert proper C++ library support
10764 case $cc_basename in
10767 # FIXME: insert proper C++ library support
10772 # FIXME: insert proper C++ library support
10776 # FIXME: insert proper C++ library support
10782 case $cc_basename in
10784 # Sun C++ 4.2, 5.x and Centerline C++
10785 no_undefined_flag_CXX
=' -zdefs'
10786 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10787 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10788 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10790 hardcode_libdir_flag_spec_CXX
='-R$libdir'
10791 hardcode_shlibpath_var_CXX
=no
10793 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10795 # The C++ compiler is used as linker so we must use $wl
10796 # flag to pass the commands to the underlying system
10798 # Supported since Solaris 2.6 (maybe 2.5.1?)
10799 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10802 link_all_deplibs_CXX
=yes
10804 # Commands to make compiler produce verbose output that lists
10805 # what "hidden" libraries, object files and flags are used when
10806 # linking a shared library.
10808 # There doesn't appear to be a way to prevent this compiler from
10809 # explicitly linking system object files so we need to strip them
10810 # from the output so that they don't get included in the library
10812 output_verbose_link_cmd
='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10814 # Archives containing C++ object files must be created using
10815 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10816 # necessary to make sure instantiated templates are included
10818 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
10821 # Green Hills C++ Compiler
10822 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10824 # The C++ compiler must be used to create the archive.
10825 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10828 # GNU C++ compiler with Solaris linker
10829 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
10830 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
10831 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
10832 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10833 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10834 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10836 # Commands to make compiler produce verbose output that lists
10837 # what "hidden" libraries, object files and flags are used when
10838 # linking a shared library.
10839 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10841 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10843 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10844 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10845 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10847 # Commands to make compiler produce verbose output that lists
10848 # what "hidden" libraries, object files and flags are used when
10849 # linking a shared library.
10850 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10853 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
10858 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
10859 archive_cmds_need_lc_CXX
=no
10862 case $cc_basename in
10864 # NonStop-UX NCC 3.20
10865 # FIXME: insert proper C++ library support
10869 # FIXME: insert proper C++ library support
10875 # FIXME: insert proper C++ library support
10879 # FIXME: insert proper C++ library support
10883 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10884 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10885 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
10891 ## There is no encapsulation within the following macros, do not change
10892 ## the running order or otherwise move them around unless you know exactly
10893 ## what you are doing...
10895 cat > conftest.
$ac_ext <<EOF
10899 Foo (void) { a = 0; }
10905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10906 (eval $ac_compile) 2>&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; then
10910 # Parse the compiler output and extract the necessary
10911 # objects, libraries and library flags.
10913 # Sentinel used to keep track of whether or not we are before
10914 # the conftest object file.
10915 pre_test_object_deps_done
=no
10917 # The `*' in the case matches for architectures that use `case' in
10918 # $output_verbose_cmd can trigger glob expansion during the loop
10919 # eval without this substitution.
10920 output_verbose_link_cmd
="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10922 for p
in `eval $output_verbose_link_cmd`; do
10926 # Some compilers place space between "-{L,R}" and the path.
10927 # Remove the space.
10928 if test $p = "-L" \
10929 ||
test $p = "-R"; then
10936 if test "$pre_test_object_deps_done" = no
; then
10939 # Internal compiler library paths should come after those
10940 # provided the user. The postdeps already come after the
10941 # user supplied libs so there is no need to process them.
10942 if test -z "$compiler_lib_search_path_CXX"; then
10943 compiler_lib_search_path_CXX
="${prev}${p}"
10945 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
10948 # The "-l" case would never come before the object being
10949 # linked, so don't bother handling this case.
10952 if test -z "$postdeps_CXX"; then
10953 postdeps_CXX
="${prev}${p}"
10955 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
10961 # This assumes that the test object file only shows up
10962 # once in the compiler output.
10963 if test "$p" = "conftest.$objext"; then
10964 pre_test_object_deps_done
=yes
10968 if test "$pre_test_object_deps_done" = no
; then
10969 if test -z "$predep_objects_CXX"; then
10970 predep_objects_CXX
="$p"
10972 predep_objects_CXX
="$predep_objects_CXX $p"
10975 if test -z "$postdep_objects_CXX"; then
10976 postdep_objects_CXX
="$p"
10978 postdep_objects_CXX
="$postdep_objects_CXX $p"
10983 *) ;; # Ignore the rest.
10991 echo "libtool.m4: error: problem compiling CXX test program"
10994 $rm -f confest.
$objext
10996 case " $postdeps_CXX " in
10997 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
11000 lt_prog_compiler_wl_CXX
=
11001 lt_prog_compiler_pic_CXX
=
11002 lt_prog_compiler_static_CXX
=
11004 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11005 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11007 # C++ specific cases for pic, static, wl, etc.
11008 if test "$GXX" = yes; then
11009 lt_prog_compiler_wl_CXX
='-Wl,'
11010 lt_prog_compiler_static_CXX
='-static'
11014 # All AIX code is PIC.
11015 if test "$host_cpu" = ia64
; then
11016 # AIX 5 now supports IA64 processor
11017 lt_prog_compiler_static_CXX
='-Bstatic'
11021 # FIXME: we need at least 68020 code to build shared libraries, but
11022 # adding the `-m68020' flag to GCC prevents building anything better,
11024 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
11026 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11027 # PIC is the default for these OSes.
11029 mingw
* | os2
* | pw32
*)
11030 # This hack is so that the source file can tell whether it is being
11031 # built for inclusion in a dll (and should export symbols for example).
11032 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
11034 darwin
* | rhapsody
*)
11035 # PIC is the default on this platform
11036 # Common symbols not allowed in MH_DYLIB files
11037 lt_prog_compiler_pic_CXX
='-fno-common'
11040 # DJGPP does not support shared libraries at all
11041 lt_prog_compiler_pic_CXX
=
11044 if test -d /usr
/nec
; then
11045 lt_prog_compiler_pic_CXX
=-Kconform_pic
11049 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11050 # not for PA HP-UX.
11051 case "$host_cpu" in
11055 lt_prog_compiler_pic_CXX
='-fPIC'
11060 lt_prog_compiler_pic_CXX
='-fPIC'
11066 # All AIX code is PIC.
11067 if test "$host_cpu" = ia64
; then
11068 # AIX 5 now supports IA64 processor
11069 lt_prog_compiler_static_CXX
='-Bstatic'
11071 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
11075 case $cc_basename in
11077 # Green Hills C++ Compiler
11078 # _LT_AC_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"
11083 # PIC is the default on this platform
11084 # Common symbols not allowed in MH_DYLIB files
11085 case "$cc_basename" in
11087 lt_prog_compiler_pic_CXX
='-qnocommon'
11088 lt_prog_compiler_wl_CXX
='-Wl,'
11093 case $cc_basename in
11095 lt_prog_compiler_pic_CXX
='-KPIC'
11098 # Green Hills C++ Compiler
11099 lt_prog_compiler_pic_CXX
='-pic'
11105 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
11106 # FreeBSD uses GNU C++
11108 hpux9
* | hpux10
* | hpux11
*)
11109 case $cc_basename in
11111 lt_prog_compiler_wl_CXX
='-Wl,'
11112 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11113 if test "$host_cpu" != ia64
; then
11114 lt_prog_compiler_pic_CXX
='+Z'
11118 lt_prog_compiler_wl_CXX
='-Wl,'
11119 lt_prog_compiler_static_CXX
="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11120 case "$host_cpu" in
11125 lt_prog_compiler_pic_CXX
='+Z'
11133 irix5
* | irix6
* | nonstopux
*)
11134 case $cc_basename in
11136 lt_prog_compiler_wl_CXX
='-Wl,'
11137 lt_prog_compiler_static_CXX
='-non_shared'
11138 # CC pic flag -KPIC is the default.
11145 case $cc_basename in
11148 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11149 lt_prog_compiler_pic_CXX
='-fPIC'
11153 lt_prog_compiler_wl_CXX
='-Wl,'
11154 lt_prog_compiler_pic_CXX
='-KPIC'
11155 lt_prog_compiler_static_CXX
='-static'
11158 # Portland Group C++ compiler.
11159 lt_prog_compiler_wl_CXX
='-Wl,'
11160 lt_prog_compiler_pic_CXX
='-fpic'
11161 lt_prog_compiler_static_CXX
='-static'
11165 # Make sure the PIC flag is empty. It appears that all Alpha
11166 # Linux and Compaq Tru64 Unix objects are PIC.
11167 lt_prog_compiler_pic_CXX
=
11168 lt_prog_compiler_static_CXX
='-non_shared'
11179 case $cc_basename in
11181 lt_prog_compiler_pic_CXX
='-W c,exportall'
11189 osf3
* | osf4
* | osf5
*)
11190 case $cc_basename in
11192 lt_prog_compiler_wl_CXX
='--backend -Wl,'
11195 # Rational C++ 2.4.1
11196 lt_prog_compiler_pic_CXX
='-pic'
11199 # Digital/Compaq C++
11200 lt_prog_compiler_wl_CXX
='-Wl,'
11201 # Make sure the PIC flag is empty. It appears that all Alpha
11202 # Linux and Compaq Tru64 Unix objects are PIC.
11203 lt_prog_compiler_pic_CXX
=
11204 lt_prog_compiler_static_CXX
='-non_shared'
11213 case $cc_basename in
11215 lt_prog_compiler_pic_CXX
='-fPIC'
11222 case $cc_basename in
11224 # Sun C++ 4.2, 5.x and Centerline C++
11225 lt_prog_compiler_pic_CXX
='-KPIC'
11226 lt_prog_compiler_static_CXX
='-Bstatic'
11227 lt_prog_compiler_wl_CXX
='-Qoption ld '
11230 # Green Hills C++ Compiler
11231 lt_prog_compiler_pic_CXX
='-PIC'
11238 case $cc_basename in
11241 lt_prog_compiler_pic_CXX
='-pic'
11242 lt_prog_compiler_static_CXX
='-Bstatic'
11246 lt_prog_compiler_pic_CXX
='-pic'
11253 case $cc_basename in
11255 # NonStop-UX NCC 3.20
11256 lt_prog_compiler_pic_CXX
='-KPIC'
11267 lt_prog_compiler_can_build_shared_CXX
=no
11272 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11273 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11276 # Check to make sure the PIC flag actually works.
11278 if test -n "$lt_prog_compiler_pic_CXX"; then
11280 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11281 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11282 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 lt_prog_compiler_pic_works_CXX
=no
11286 ac_outfile
=conftest.
$ac_objext
11287 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11288 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
11289 # Insert the option either (1) after the last *FLAGS variable, or
11290 # (2) before a word containing "conftest.", or (3) at the end.
11291 # Note that $ac_compile itself does not contain backslashes and begins
11292 # with a dollar sign (not a hyphen), so the echo should work correctly.
11293 # The option is referenced via a variable to avoid confusing sed.
11294 lt_compile
=`echo "$ac_compile" | $SED \
11295 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11297 -e 's:$: $lt_compiler_flag:'`
11298 (eval echo "\"\$as_me:11298: $lt_compile\"" >&5)
11299 (eval "$lt_compile" 2>conftest.err
)
11301 cat conftest.err
>&5
11302 echo "$as_me:11302: \$? = $ac_status" >&5
11303 if (exit $ac_status) && test -s "$ac_outfile"; then
11304 # The compiler can only warn and ignore the option if not recognized
11305 # So say no if there are warnings
11306 if test ! -s conftest.err
; then
11307 lt_prog_compiler_pic_works_CXX
=yes
11313 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11314 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11316 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
11317 case $lt_prog_compiler_pic_CXX in
11319 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
11322 lt_prog_compiler_pic_CXX
=
11323 lt_prog_compiler_can_build_shared_CXX
=no
11328 # For platforms which do not support PIC, -DPIC is meaningless:
11330 lt_prog_compiler_pic_CXX
=
11333 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
11337 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11338 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11339 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 lt_cv_prog_compiler_c_o_CXX
=no
11343 $rm -r conftest
2>/dev
/null
11347 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11349 lt_compiler_flag
="-o out/conftest2.$ac_objext"
11350 # Insert the option either (1) after the last *FLAGS variable, or
11351 # (2) before a word containing "conftest.", or (3) at the end.
11352 # Note that $ac_compile itself does not contain backslashes and begins
11353 # with a dollar sign (not a hyphen), so the echo should work correctly.
11354 lt_compile
=`echo "$ac_compile" | $SED \
11355 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11357 -e 's:$: $lt_compiler_flag:'`
11358 (eval echo "\"\$as_me:11358: $lt_compile\"" >&5)
11359 (eval "$lt_compile" 2>out
/conftest.err
)
11361 cat out
/conftest.err
>&5
11362 echo "$as_me:11362: \$? = $ac_status" >&5
11363 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
11365 # The compiler can only warn and ignore the option if not recognized
11366 # So say no if there are warnings
11367 if test ! -s out
/conftest.err
; then
11368 lt_cv_prog_compiler_c_o_CXX
=yes
11373 # SGI C++ compiler will create directory out/ii_files/ for
11374 # template instantiation
11375 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
11376 $rm out
/* && rmdir out
11382 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11383 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11386 hard_links
="nottested"
11387 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
11388 # do not overwrite the value of need_locks provided by the user
11389 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11390 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11393 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11395 ln conftest.a conftest.b
2>&5 || hard_links
=no
11396 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
11397 echo "$as_me:$LINENO: result: $hard_links" >&5
11398 echo "${ECHO_T}$hard_links" >&6
11399 if test "$hard_links" = no
; then
11400 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11401 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11408 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11409 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11411 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11414 # If we're using GNU nm, then we don't want the "-C" option.
11415 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11416 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
11417 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'
11419 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'
11423 export_symbols_cmds_CXX
="$ltdll_cmds"
11426 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'
11429 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11433 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11434 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11435 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
11437 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11438 if test "$GCC" = yes; then
11439 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11443 # Do we need to explicitly link libc?
11445 case "x$archive_cmds_need_lc_CXX" in
11447 # Assume -lc should be added
11448 archive_cmds_need_lc_CXX
=yes
11450 if test "$enable_shared" = yes && test "$GCC" = yes; then
11451 case $archive_cmds_CXX in
11453 # FIXME: we may have to deal with multi-command sequences.
11456 # Test whether the compiler implicitly links with -lc since on some
11457 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11458 # to ld, don't add -lc before -lgcc.
11459 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11460 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11462 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
11464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11465 (eval $ac_compile) 2>&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } 2>conftest.err
; then
11471 libobjs
=conftest.
$ac_objext
11473 wl
=$lt_prog_compiler_wl_CXX
11479 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
11480 allow_undefined_flag_CXX
=
11481 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11482 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }
11487 archive_cmds_need_lc_CXX
=no
11489 archive_cmds_need_lc_CXX
=yes
11491 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
11493 cat conftest.err
1>&5
11496 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11497 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11504 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11505 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11506 library_names_spec
=
11507 libname_spec
='lib$name'
11511 postuninstall_cmds
=
11515 shlibpath_overrides_runpath
=unknown
11517 dynamic_linker
="$host_os ld.so"
11518 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11519 if test "$GCC" = yes; then
11520 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11521 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
11522 # if the path contains ";" then we assume it to be the separator
11523 # otherwise default to the standard path separator (i.e. ":") - it is
11524 # assumed that no part of a normal pathname contains ";" but that should
11525 # okay in the real world where ";" in dirpaths is itself problematic.
11526 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11528 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11531 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11533 need_lib_prefix
=unknown
11534 hardcode_into_libs
=no
11536 # when you set need_version to no, make sure it does not cause -set_version
11537 # flags to be left without arguments
11538 need_version
=unknown
11543 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11544 shlibpath_var
=LIBPATH
11546 # AIX 3 has no versioning support, so we append a major version to the name.
11547 soname_spec
='${libname}${release}${shared_ext}$major'
11554 hardcode_into_libs
=yes
11555 if test "$host_cpu" = ia64
; then
11556 # AIX 5 supports IA64
11557 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11558 shlibpath_var
=LD_LIBRARY_PATH
11560 # With GCC up to 2.95.x, collect2 would create an import file
11561 # for dependence libraries. The import file would start with
11562 # the line `#! .'. This would cause the generated library to
11563 # depend on `.', always an invalid library. This was fixed in
11564 # development snapshots of GCC prior to 3.0.
11566 aix4 | aix4.
[01] | aix4.
[01].
*)
11567 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11569 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
11572 can_build_shared
=no
11576 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11577 # soname into executable. Probably we can add versioning support to
11578 # collect2, so additional links can be useful in future.
11579 if test "$aix_use_runtimelinking" = yes; then
11580 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11581 # instead of lib<name>.a to let people know that these are not
11582 # typical AIX shared libraries.
11583 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585 # We preserve .a as extension for shared libraries through AIX4.2
11586 # and later when we are not doing run time linking.
11587 library_names_spec
='${libname}${release}.a $libname.a'
11588 soname_spec
='${libname}${release}${shared_ext}$major'
11590 shlibpath_var
=LIBPATH
11595 library_names_spec
='$libname.ixlibrary $libname.a'
11596 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11597 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'
11601 library_names_spec
='${libname}${shared_ext}'
11602 dynamic_linker
="$host_os ld.so"
11603 shlibpath_var
=LIBRARY_PATH
11609 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11610 soname_spec
='${libname}${release}${shared_ext}$major'
11611 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11612 shlibpath_var
=LD_LIBRARY_PATH
11613 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11614 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11615 # the default ld.so.conf also contains /usr/contrib/lib and
11616 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11617 # libtool to hard-code these into programs
11620 cygwin
* | mingw
* | pw32
*)
11621 version_type
=windows
11626 case $GCC,$host_os in
11627 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
11628 library_names_spec
='$libname.dll.a'
11629 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11630 postinstall_cmds
='base_file=`basename \${file}`~
11631 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11632 dldir=$destdir/`dirname \$dlpath`~
11633 test -d \$dldir || mkdir -p \$dldir~
11634 $install_prog $dir/$dlname \$dldir/$dlname'
11635 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11636 dlpath=$dir/\$dldll~
11638 shlibpath_overrides_runpath
=yes
11642 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11643 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11644 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
11647 # MinGW DLLs use traditional 'lib' prefix
11648 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11649 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11650 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
11651 # It is most probably a Windows format PATH printed by
11652 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11653 # path with ; separators, and with drive letters. We can handle the
11654 # drive letters (cygwin fileutils understands them), so leave them,
11655 # especially as we might pass files found there to a mingw objdump,
11656 # which wouldn't understand a cygwinified path. Ahh.
11657 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11659 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11663 # pw32 DLLs use 'pw' prefix rather than 'lib'
11664 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11670 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11673 dynamic_linker
='Win32 ld.exe'
11674 # FIXME: first we should search . and the directory the executable is in
11678 darwin
* | rhapsody
*)
11679 dynamic_linker
="$host_os dyld"
11680 version_type
=darwin
11683 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11684 soname_spec
='${libname}${release}${major}$shared_ext'
11685 shlibpath_overrides_runpath
=yes
11686 shlibpath_var
=DYLD_LIBRARY_PATH
11687 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
11688 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11689 if test "$GCC" = yes; then
11690 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11692 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
11694 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11701 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11702 soname_spec
='${libname}${release}${shared_ext}$major'
11703 shlibpath_var
=LD_LIBRARY_PATH
11714 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11715 soname_spec
='${libname}${release}${shared_ext}$major'
11716 shlibpath_var
=LD_LIBRARY_PATH
11717 shlibpath_overrides_runpath
=no
11718 hardcode_into_libs
=yes
11719 dynamic_linker
='GNU ld.so'
11722 freebsd
* | dragonfly
*)
11723 # DragonFly does not have aout. When/if they implement a new
11724 # versioning mechanism, adjust this.
11725 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11726 version_type
=freebsd-
$objformat
11727 case $version_type in
11729 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11734 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11738 shlibpath_var
=LD_LIBRARY_PATH
11741 shlibpath_overrides_runpath
=yes
11743 freebsd3.
[01]* | freebsdelf3.
[01]*)
11744 shlibpath_overrides_runpath
=yes
11745 hardcode_into_libs
=yes
11748 shlibpath_overrides_runpath
=no
11749 hardcode_into_libs
=yes
11758 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11759 soname_spec
='${libname}${release}${shared_ext}$major'
11760 shlibpath_var
=LD_LIBRARY_PATH
11761 hardcode_into_libs
=yes
11764 hpux9
* | hpux10
* | hpux11
*)
11765 # Give a soname corresponding to the major version so that dld.sl refuses to
11766 # link against other versions.
11770 case "$host_cpu" in
11773 hardcode_into_libs
=yes
11774 dynamic_linker
="$host_os dld.so"
11775 shlibpath_var
=LD_LIBRARY_PATH
11776 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11777 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11778 soname_spec
='${libname}${release}${shared_ext}$major'
11779 if test "X$HPUX_IA64_MODE" = X32
; then
11780 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11782 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11784 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11788 hardcode_into_libs
=yes
11789 dynamic_linker
="$host_os dld.sl"
11790 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11791 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11792 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11793 soname_spec
='${libname}${release}${shared_ext}$major'
11794 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11795 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11799 dynamic_linker
="$host_os dld.sl"
11800 shlibpath_var
=SHLIB_PATH
11801 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11802 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11803 soname_spec
='${libname}${release}${shared_ext}$major'
11806 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11807 postinstall_cmds
='chmod 555 $lib'
11810 irix5
* | irix6
* | nonstopux
*)
11812 nonstopux
*) version_type
=nonstopux
;;
11814 if test "$lt_cv_prog_gnu_ld" = yes; then
11822 soname_spec
='${libname}${release}${shared_ext}$major'
11823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11825 irix5
* | nonstopux
*)
11826 libsuff
= shlibsuff
=
11829 case $LD in # libtool.m4 will add one of these switches to LD
11830 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11831 libsuff
= shlibsuff
= libmagic
=32-bit;;
11832 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11833 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11834 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11835 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11836 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11840 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11841 shlibpath_overrides_runpath
=no
11842 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11843 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11844 hardcode_into_libs
=yes
11847 # No shared lib support for Linux oldld, aout, or coff.
11848 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11852 # This must be Linux ELF.
11857 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11858 soname_spec
='${libname}${release}${shared_ext}$major'
11859 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11860 shlibpath_var
=LD_LIBRARY_PATH
11861 shlibpath_overrides_runpath
=no
11862 # This implies no fast_install, which is unacceptable.
11863 # Some rework will be needed to allow for fast_install
11864 # before this can be enabled.
11865 hardcode_into_libs
=yes
11867 # Append ld.so.conf contents to the search path
11868 if test -f /etc
/ld.so.conf
; then
11869 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11870 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11873 # We used to test for /lib/ld.so.1 and disable shared libraries on
11874 # powerpc, because MkLinux only supported shared libraries with the
11875 # GNU dynamic linker. Since this was broken with cross compilers,
11876 # most powerpc-linux boxes support dynamic linking these days and
11877 # people can always --disable-shared, the test was removed, and we
11878 # assume the GNU/Linux dynamic linker is in use.
11879 dynamic_linker
='GNU/Linux ld.so'
11886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11887 soname_spec
='${libname}${release}${shared_ext}$major'
11888 shlibpath_var
=LD_LIBRARY_PATH
11889 shlibpath_overrides_runpath
=no
11890 hardcode_into_libs
=yes
11891 dynamic_linker
='GNU ld.so'
11898 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11899 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11900 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11901 dynamic_linker
='NetBSD (a.out) ld.so'
11903 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11904 soname_spec
='${libname}${release}${shared_ext}$major'
11905 dynamic_linker
='NetBSD ld.elf_so'
11907 shlibpath_var
=LD_LIBRARY_PATH
11908 shlibpath_overrides_runpath
=yes
11909 hardcode_into_libs
=yes
11914 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11915 shlibpath_var
=LD_LIBRARY_PATH
11916 shlibpath_overrides_runpath
=yes
11923 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11924 soname_spec
='${libname}${release}${shared_ext}$major'
11925 shlibpath_var
=LD_LIBRARY_PATH
11926 shlibpath_overrides_runpath
=yes
11933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11934 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11935 shlibpath_var
=LD_LIBRARY_PATH
11936 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11938 openbsd2.
[89] | openbsd2.
[89].
*)
11939 shlibpath_overrides_runpath
=no
11942 shlibpath_overrides_runpath
=yes
11946 shlibpath_overrides_runpath
=yes
11951 libname_spec
='$name'
11954 library_names_spec
='$libname${shared_ext} $libname.a'
11955 dynamic_linker
='OS/2 ld.exe'
11956 shlibpath_var
=LIBPATH
11959 osf3
* | osf4
* | osf5
*)
11963 soname_spec
='${libname}${release}${shared_ext}$major'
11964 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11965 shlibpath_var
=LD_LIBRARY_PATH
11966 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11967 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11972 soname_spec
='${libname}${release}${shared_ext}$major'
11973 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11974 shlibpath_var
=LD_LIBRARY_PATH
11981 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11982 soname_spec
='${libname}${release}${shared_ext}$major'
11983 shlibpath_var
=LD_LIBRARY_PATH
11984 shlibpath_overrides_runpath
=yes
11985 hardcode_into_libs
=yes
11986 # ldd complains unless libraries are executable
11987 postinstall_cmds
='chmod +x $lib'
11992 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11993 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11994 shlibpath_var
=LD_LIBRARY_PATH
11995 shlibpath_overrides_runpath
=yes
11996 if test "$with_gnu_ld" = yes; then
12002 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
12004 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12005 soname_spec
='${libname}${release}${shared_ext}$major'
12006 shlibpath_var
=LD_LIBRARY_PATH
12007 case $host_vendor in
12009 shlibpath_overrides_runpath
=no
12011 export_dynamic_flag_spec
='${wl}-Blargedynsym'
12012 runpath_var
=LD_RUN_PATH
12020 shlibpath_overrides_runpath
=no
12021 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12027 if test -d /usr
/nec
;then
12029 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12030 soname_spec
='$libname${shared_ext}.$major'
12031 shlibpath_var
=LD_LIBRARY_PATH
12037 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12038 soname_spec
='${libname}${release}${shared_ext}$major'
12039 shlibpath_var
=LD_LIBRARY_PATH
12046 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12047 echo "${ECHO_T}$dynamic_linker" >&6
12048 test "$dynamic_linker" = no
&& can_build_shared
=no
12050 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12051 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12052 hardcode_action_CXX
=
12053 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12054 test -n "$runpath_var_CXX" || \
12055 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12057 # We can hardcode non-existant directories.
12058 if test "$hardcode_direct_CXX" != no
&&
12059 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12060 # have to relink, otherwise we might link with an installed library
12061 # when we should be linking with a yet-to-be-installed one
12062 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12063 test "$hardcode_minus_L_CXX" != no
; then
12064 # Linking always hardcodes the temporary library directory.
12065 hardcode_action_CXX
=relink
12067 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12068 hardcode_action_CXX
=immediate
12071 # We cannot hardcode anything, or else we can only hardcode existing
12073 hardcode_action_CXX
=unsupported
12075 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12076 echo "${ECHO_T}$hardcode_action_CXX" >&6
12078 if test "$hardcode_action_CXX" = relink
; then
12079 # Fast installation is not supported
12080 enable_fast_install
=no
12081 elif test "$shlibpath_overrides_runpath" = yes ||
12082 test "$enable_shared" = no
; then
12083 # Fast installation is not necessary
12084 enable_fast_install
=needless
12089 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12090 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12091 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
12092 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12093 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12094 echo "$as_me:$LINENO: result: yes" >&5
12095 echo "${ECHO_T}yes" >&6
12097 # FIXME - insert some real tests, host_os isn't really good enough
12100 if test -n "$STRIP" ; then
12101 striplib
="$STRIP -x"
12102 echo "$as_me:$LINENO: result: yes" >&5
12103 echo "${ECHO_T}yes" >&6
12105 echo "$as_me:$LINENO: result: no" >&5
12106 echo "${ECHO_T}no" >&6
12110 echo "$as_me:$LINENO: result: no" >&5
12111 echo "${ECHO_T}no" >&6
12116 if test "x$enable_dlopen" != xyes
; then
12117 enable_dlopen
=unknown
12118 enable_dlopen_self
=unknown
12119 enable_dlopen_self_static
=unknown
12126 lt_cv_dlopen
="load_add_on"
12128 lt_cv_dlopen_self
=yes
12132 lt_cv_dlopen
="LoadLibrary"
12137 lt_cv_dlopen
="dlopen"
12142 # if libdl is installed we need to link against it
12143 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12144 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12145 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 ac_check_lib_save_LIBS
=$LIBS
12150 cat >conftest.
$ac_ext <<_ACEOF
12153 cat confdefs.h
>>conftest.
$ac_ext
12154 cat >>conftest.
$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12157 /* Override any gcc2 internal prototype to avoid an error. */
12161 /* We use char because int might match the return type of a gcc2
12162 builtin and then its argument prototype would still apply. */
12172 rm -f conftest.
$ac_objext conftest
$ac_exeext
12173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12174 (eval $ac_link) 2>conftest.er1
12176 grep -v '^ *+' conftest.er1
>conftest.err
12178 cat conftest.err
>&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } &&
12181 { ac_try
='test -z "$ac_cxx_werror_flag"
12182 || test ! -s conftest.err'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; } &&
12188 { ac_try
='test -s conftest$ac_exeext'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194 ac_cv_lib_dl_dlopen
=yes
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.
$ac_ext >&5
12199 ac_cv_lib_dl_dlopen
=no
12201 rm -f conftest.err conftest.
$ac_objext \
12202 conftest
$ac_exeext conftest.
$ac_ext
12203 LIBS
=$ac_check_lib_save_LIBS
12205 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12206 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12207 if test $ac_cv_lib_dl_dlopen = yes; then
12208 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12211 lt_cv_dlopen
="dyld"
12213 lt_cv_dlopen_self
=yes
12220 echo "$as_me:$LINENO: checking for shl_load" >&5
12221 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12222 if test "${ac_cv_func_shl_load+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 cat >conftest.
$ac_ext <<_ACEOF
12228 cat confdefs.h
>>conftest.
$ac_ext
12229 cat >>conftest.
$ac_ext <<_ACEOF
12230 /* end confdefs.h. */
12231 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12233 #define shl_load innocuous_shl_load
12235 /* System header to define __stub macros and hopefully few prototypes,
12236 which can conflict with char shl_load (); below.
12237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12238 <limits.h> exists even on freestanding compilers. */
12241 # include <limits.h>
12243 # include <assert.h>
12248 /* Override any gcc2 internal prototype to avoid an error. */
12253 /* We use char because int might match the return type of a gcc2
12254 builtin and then its argument prototype would still apply. */
12256 /* The GNU C library defines this for functions which it implements
12257 to always fail with ENOSYS. Some functions are actually named
12258 something starting with __ and the normal name is an alias. */
12259 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12262 char (*f) () = shl_load;
12271 return f != shl_load;
12276 rm -f conftest.
$ac_objext conftest
$ac_exeext
12277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12278 (eval $ac_link) 2>conftest.er1
12280 grep -v '^ *+' conftest.er1
>conftest.err
12282 cat conftest.err
>&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } &&
12285 { ac_try
='test -z "$ac_cxx_werror_flag"
12286 || test ! -s conftest.err'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; } &&
12292 { ac_try
='test -s conftest$ac_exeext'
12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294 (eval $ac_try) 2>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; }; then
12298 ac_cv_func_shl_load
=yes
12300 echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.
$ac_ext >&5
12303 ac_cv_func_shl_load
=no
12305 rm -f conftest.err conftest.
$ac_objext \
12306 conftest
$ac_exeext conftest.
$ac_ext
12308 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12309 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12310 if test $ac_cv_func_shl_load = yes; then
12311 lt_cv_dlopen
="shl_load"
12313 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12314 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12315 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 ac_check_lib_save_LIBS
=$LIBS
12320 cat >conftest.
$ac_ext <<_ACEOF
12323 cat confdefs.h
>>conftest.
$ac_ext
12324 cat >>conftest.
$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12327 /* Override any gcc2 internal prototype to avoid an error. */
12331 /* We use char because int might match the return type of a gcc2
12332 builtin and then its argument prototype would still apply. */
12342 rm -f conftest.
$ac_objext conftest
$ac_exeext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344 (eval $ac_link) 2>conftest.er1
12346 grep -v '^ *+' conftest.er1
>conftest.err
12348 cat conftest.err
>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try
='test -z "$ac_cxx_werror_flag"
12352 || test ! -s conftest.err'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; } &&
12358 { ac_try
='test -s conftest$ac_exeext'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 ac_cv_lib_dld_shl_load
=yes
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.
$ac_ext >&5
12369 ac_cv_lib_dld_shl_load
=no
12371 rm -f conftest.err conftest.
$ac_objext \
12372 conftest
$ac_exeext conftest.
$ac_ext
12373 LIBS
=$ac_check_lib_save_LIBS
12375 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12376 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12377 if test $ac_cv_lib_dld_shl_load = yes; then
12378 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
12380 echo "$as_me:$LINENO: checking for dlopen" >&5
12381 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12382 if test "${ac_cv_func_dlopen+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 cat >conftest.
$ac_ext <<_ACEOF
12388 cat confdefs.h
>>conftest.
$ac_ext
12389 cat >>conftest.
$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12391 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12393 #define dlopen innocuous_dlopen
12395 /* System header to define __stub macros and hopefully few prototypes,
12396 which can conflict with char dlopen (); below.
12397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12398 <limits.h> exists even on freestanding compilers. */
12401 # include <limits.h>
12403 # include <assert.h>
12408 /* Override any gcc2 internal prototype to avoid an error. */
12413 /* We use char because int might match the return type of a gcc2
12414 builtin and then its argument prototype would still apply. */
12416 /* The GNU C library defines this for functions which it implements
12417 to always fail with ENOSYS. Some functions are actually named
12418 something starting with __ and the normal name is an alias. */
12419 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12422 char (*f) () = dlopen;
12431 return f != dlopen;
12436 rm -f conftest.
$ac_objext conftest
$ac_exeext
12437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12438 (eval $ac_link) 2>conftest.er1
12440 grep -v '^ *+' conftest.er1
>conftest.err
12442 cat conftest.err
>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } &&
12445 { ac_try
='test -z "$ac_cxx_werror_flag"
12446 || test ! -s conftest.err'
12447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; } &&
12452 { ac_try
='test -s conftest$ac_exeext'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; }; then
12458 ac_cv_func_dlopen
=yes
12460 echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.
$ac_ext >&5
12463 ac_cv_func_dlopen
=no
12465 rm -f conftest.err conftest.
$ac_objext \
12466 conftest
$ac_exeext conftest.
$ac_ext
12468 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12469 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12470 if test $ac_cv_func_dlopen = yes; then
12471 lt_cv_dlopen
="dlopen"
12473 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12474 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12475 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 ac_check_lib_save_LIBS
=$LIBS
12480 cat >conftest.
$ac_ext <<_ACEOF
12483 cat confdefs.h
>>conftest.
$ac_ext
12484 cat >>conftest.
$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12487 /* Override any gcc2 internal prototype to avoid an error. */
12491 /* We use char because int might match the return type of a gcc2
12492 builtin and then its argument prototype would still apply. */
12502 rm -f conftest.
$ac_objext conftest
$ac_exeext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12504 (eval $ac_link) 2>conftest.er1
12506 grep -v '^ *+' conftest.er1
>conftest.err
12508 cat conftest.err
>&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
12511 { ac_try
='test -z "$ac_cxx_werror_flag"
12512 || test ! -s conftest.err'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try
='test -s conftest$ac_exeext'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12524 ac_cv_lib_dl_dlopen
=yes
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.
$ac_ext >&5
12529 ac_cv_lib_dl_dlopen
=no
12531 rm -f conftest.err conftest.
$ac_objext \
12532 conftest
$ac_exeext conftest.
$ac_ext
12533 LIBS
=$ac_check_lib_save_LIBS
12535 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12536 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12537 if test $ac_cv_lib_dl_dlopen = yes; then
12538 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12540 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12541 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12542 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12543 echo $ECHO_N "(cached) $ECHO_C" >&6
12545 ac_check_lib_save_LIBS
=$LIBS
12546 LIBS
="-lsvld $LIBS"
12547 cat >conftest.
$ac_ext <<_ACEOF
12550 cat confdefs.h
>>conftest.
$ac_ext
12551 cat >>conftest.
$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12554 /* Override any gcc2 internal prototype to avoid an error. */
12558 /* We use char because int might match the return type of a gcc2
12559 builtin and then its argument prototype would still apply. */
12569 rm -f conftest.
$ac_objext conftest
$ac_exeext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12571 (eval $ac_link) 2>conftest.er1
12573 grep -v '^ *+' conftest.er1
>conftest.err
12575 cat conftest.err
>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try
='test -z "$ac_cxx_werror_flag"
12579 || test ! -s conftest.err'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; } &&
12585 { ac_try
='test -s conftest$ac_exeext'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 ac_cv_lib_svld_dlopen
=yes
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.
$ac_ext >&5
12596 ac_cv_lib_svld_dlopen
=no
12598 rm -f conftest.err conftest.
$ac_objext \
12599 conftest
$ac_exeext conftest.
$ac_ext
12600 LIBS
=$ac_check_lib_save_LIBS
12602 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12603 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12604 if test $ac_cv_lib_svld_dlopen = yes; then
12605 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12607 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12608 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12609 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12610 echo $ECHO_N "(cached) $ECHO_C" >&6
12612 ac_check_lib_save_LIBS
=$LIBS
12614 cat >conftest.
$ac_ext <<_ACEOF
12617 cat confdefs.h
>>conftest.
$ac_ext
12618 cat >>conftest.
$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12621 /* Override any gcc2 internal prototype to avoid an error. */
12625 /* We use char because int might match the return type of a gcc2
12626 builtin and then its argument prototype would still apply. */
12636 rm -f conftest.
$ac_objext conftest
$ac_exeext
12637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12638 (eval $ac_link) 2>conftest.er1
12640 grep -v '^ *+' conftest.er1
>conftest.err
12642 cat conftest.err
>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } &&
12645 { ac_try
='test -z "$ac_cxx_werror_flag"
12646 || test ! -s conftest.err'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try
='test -s conftest$ac_exeext'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 ac_cv_lib_dld_dld_link
=yes
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.
$ac_ext >&5
12663 ac_cv_lib_dld_dld_link
=no
12665 rm -f conftest.err conftest.
$ac_objext \
12666 conftest
$ac_exeext conftest.
$ac_ext
12667 LIBS
=$ac_check_lib_save_LIBS
12669 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12670 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12671 if test $ac_cv_lib_dld_dld_link = yes; then
12672 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
12693 if test "x$lt_cv_dlopen" != xno
; then
12699 case $lt_cv_dlopen in
12701 save_CPPFLAGS
="$CPPFLAGS"
12702 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12704 save_LDFLAGS
="$LDFLAGS"
12705 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12708 LIBS
="$lt_cv_dlopen_libs $LIBS"
12710 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12711 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12712 if test "${lt_cv_dlopen_self+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 if test "$cross_compiling" = yes; then :
12716 lt_cv_dlopen_self
=cross
12718 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12719 lt_status
=$lt_dlunknown
12720 cat > conftest.
$ac_ext <<EOF
12721 #line 12721 "configure"
12722 #include "confdefs.h"
12731 # define LT_DLGLOBAL RTLD_GLOBAL
12734 # define LT_DLGLOBAL DL_GLOBAL
12736 # define LT_DLGLOBAL 0
12740 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12741 find out it does not work in some platform. */
12742 #ifndef LT_DLLAZY_OR_NOW
12744 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12747 # define LT_DLLAZY_OR_NOW DL_LAZY
12750 # define LT_DLLAZY_OR_NOW RTLD_NOW
12753 # define LT_DLLAZY_OR_NOW DL_NOW
12755 # define LT_DLLAZY_OR_NOW 0
12763 extern "C" void exit (int);
12766 void fnord() { int i=42;}
12769 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12770 int status = $lt_dlunknown;
12774 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12775 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12776 /* dlclose (self); */
12782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12783 (eval $ac_link) 2>&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12787 (.
/conftest
; exit; ) 2>/dev
/null
12789 case x
$lt_status in
12790 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12791 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12792 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
12795 # compilation failed
12796 lt_cv_dlopen_self
=no
12803 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12804 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12806 if test "x$lt_cv_dlopen_self" = xyes
; then
12807 LDFLAGS
="$LDFLAGS $link_static_flag"
12808 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12809 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12810 if test "${lt_cv_dlopen_self_static+set}" = set; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 if test "$cross_compiling" = yes; then :
12814 lt_cv_dlopen_self_static
=cross
12816 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12817 lt_status
=$lt_dlunknown
12818 cat > conftest.
$ac_ext <<EOF
12819 #line 12819 "configure"
12820 #include "confdefs.h"
12829 # define LT_DLGLOBAL RTLD_GLOBAL
12832 # define LT_DLGLOBAL DL_GLOBAL
12834 # define LT_DLGLOBAL 0
12838 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12839 find out it does not work in some platform. */
12840 #ifndef LT_DLLAZY_OR_NOW
12842 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12845 # define LT_DLLAZY_OR_NOW DL_LAZY
12848 # define LT_DLLAZY_OR_NOW RTLD_NOW
12851 # define LT_DLLAZY_OR_NOW DL_NOW
12853 # define LT_DLLAZY_OR_NOW 0
12861 extern "C" void exit (int);
12864 void fnord() { int i=42;}
12867 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12868 int status = $lt_dlunknown;
12872 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12873 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12874 /* dlclose (self); */
12880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12881 (eval $ac_link) 2>&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12885 (.
/conftest
; exit; ) 2>/dev
/null
12887 case x
$lt_status in
12888 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12889 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12890 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
12893 # compilation failed
12894 lt_cv_dlopen_self_static
=no
12901 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12902 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12905 CPPFLAGS
="$save_CPPFLAGS"
12906 LDFLAGS
="$save_LDFLAGS"
12911 case $lt_cv_dlopen_self in
12912 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12913 *) enable_dlopen_self
=unknown
;;
12916 case $lt_cv_dlopen_self_static in
12917 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12918 *) enable_dlopen_self_static
=unknown
;;
12923 # The else clause should only fire when bootstrapping the
12924 # libtool distribution, otherwise you forgot to ship ltmain.sh
12925 # with your package, and you will get complaints that there are
12926 # no rules to generate ltmain.sh.
12927 if test -f "$ltmain"; then
12928 # See if we are running on zsh, and set the options which allow our commands through
12929 # without removal of \ escapes.
12930 if test -n "${ZSH_VERSION+set}" ; then
12931 setopt NO_GLOB_SUBST
12933 # Now quote all the things that may contain metacharacters while being
12934 # careful not to overquote the AC_SUBSTed values. We take copies of the
12935 # variables and quote the copies for generation of the libtool script.
12936 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12938 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12939 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12940 deplibs_check_method reload_flag reload_cmds need_locks \
12941 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12942 lt_cv_sys_global_symbol_to_c_name_address \
12943 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12944 old_postinstall_cmds old_postuninstall_cmds \
12948 lt_prog_compiler_wl_CXX \
12949 lt_prog_compiler_pic_CXX \
12950 lt_prog_compiler_static_CXX \
12951 lt_prog_compiler_no_builtin_flag_CXX \
12952 export_dynamic_flag_spec_CXX \
12953 thread_safe_flag_spec_CXX \
12954 whole_archive_flag_spec_CXX \
12955 enable_shared_with_static_runtimes_CXX \
12956 old_archive_cmds_CXX \
12957 old_archive_from_new_cmds_CXX \
12958 predep_objects_CXX \
12959 postdep_objects_CXX \
12962 compiler_lib_search_path_CXX \
12964 archive_expsym_cmds_CXX \
12965 postinstall_cmds_CXX \
12966 postuninstall_cmds_CXX \
12967 old_archive_from_expsyms_cmds_CXX \
12968 allow_undefined_flag_CXX \
12969 no_undefined_flag_CXX \
12970 export_symbols_cmds_CXX \
12971 hardcode_libdir_flag_spec_CXX \
12972 hardcode_libdir_flag_spec_ld_CXX \
12973 hardcode_libdir_separator_CXX \
12974 hardcode_automatic_CXX \
12976 module_expsym_cmds_CXX \
12977 lt_cv_prog_compiler_c_o_CXX \
12978 exclude_expsyms_CXX \
12979 include_expsyms_CXX
; do
12982 old_archive_cmds_CXX | \
12983 old_archive_from_new_cmds_CXX | \
12984 archive_cmds_CXX | \
12985 archive_expsym_cmds_CXX | \
12986 module_cmds_CXX | \
12987 module_expsym_cmds_CXX | \
12988 old_archive_from_expsyms_cmds_CXX | \
12989 export_symbols_cmds_CXX | \
12990 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12991 postinstall_cmds | postuninstall_cmds | \
12992 old_postinstall_cmds | old_postuninstall_cmds | \
12993 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
12994 # Double-quote double-evaled strings.
12995 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12998 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13004 *'\$0 --fallback-echo"')
13005 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13011 cat <<__EOF__ >> "$cfgfile"
13012 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13014 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13016 # Shell to use when invoking shell scripts.
13019 # Whether or not to build shared libraries.
13020 build_libtool_libs=$enable_shared
13022 # Whether or not to build static libraries.
13023 build_old_libs=$enable_static
13025 # Whether or not to add -lc for building shared libraries.
13026 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13028 # Whether or not to disallow shared libs when runtime libs are static
13029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13031 # Whether or not to optimize for fast installation.
13032 fast_install=$enable_fast_install
13035 host_alias=$host_alias
13039 # The build system.
13040 build_alias=$build_alias
13044 # An echo program that does not interpret backslashes.
13049 AR_FLAGS=$lt_AR_FLAGS
13054 # A language-specific compiler.
13055 CC=$lt_compiler_CXX
13057 # Is the compiler the GNU C compiler?
13063 # The linker used to build libraries.
13066 # Whether we need hard or soft links.
13069 # A BSD-compatible nm program.
13072 # A symbol stripping program
13075 # Used to examine libraries when file_magic_cmd begins "file"
13076 MAGIC_CMD=$MAGIC_CMD
13078 # Used on cygwin: DLL creation program.
13081 # Used on cygwin: object dumper.
13084 # Used on cygwin: assembler.
13087 # The name of the directory that contains temporary libtool files.
13090 # How to create reloadable object files.
13091 reload_flag=$lt_reload_flag
13092 reload_cmds=$lt_reload_cmds
13094 # How to pass a linker flag through the compiler.
13095 wl=$lt_lt_prog_compiler_wl_CXX
13097 # Object file suffix (normally "o").
13098 objext="$ac_objext"
13100 # Old archive suffix (normally "a").
13103 # Shared library suffix (normally ".so").
13104 shrext_cmds='$shrext_cmds'
13106 # Executable file suffix (normally "").
13109 # Additional compiler flags for building library objects.
13110 pic_flag=$lt_lt_prog_compiler_pic_CXX
13113 # What is the maximum length of a command?
13114 max_cmd_len=$lt_cv_sys_max_cmd_len
13116 # Does compiler simultaneously support -c and -o options?
13117 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13119 # Must we lock files when doing compilation ?
13120 need_locks=$lt_need_locks
13122 # Do we need the lib prefix for modules?
13123 need_lib_prefix=$need_lib_prefix
13125 # Do we need a version for libraries?
13126 need_version=$need_version
13128 # Whether dlopen is supported.
13129 dlopen_support=$enable_dlopen
13131 # Whether dlopen of programs is supported.
13132 dlopen_self=$enable_dlopen_self
13134 # Whether dlopen of statically linked programs is supported.
13135 dlopen_self_static=$enable_dlopen_self_static
13137 # Compiler flag to prevent dynamic linking.
13138 link_static_flag=$lt_lt_prog_compiler_static_CXX
13140 # Compiler flag to turn off builtin functions.
13141 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13143 # Compiler flag to allow reflexive dlopens.
13144 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13146 # Compiler flag to generate shared objects directly from archives.
13147 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13149 # Compiler flag to generate thread-safe objects.
13150 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13152 # Library versioning type.
13153 version_type=$version_type
13155 # Format of library name prefix.
13156 libname_spec=$lt_libname_spec
13158 # List of archive names. First name is the real one, the rest are links.
13159 # The last name is the one that the linker finds with -lNAME.
13160 library_names_spec=$lt_library_names_spec
13162 # The coded name of the library, if different from the real name.
13163 soname_spec=$lt_soname_spec
13165 # Commands used to build and install an old-style archive.
13167 old_archive_cmds=$lt_old_archive_cmds_CXX
13168 old_postinstall_cmds=$lt_old_postinstall_cmds
13169 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13171 # Create an old-style archive from a shared archive.
13172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13174 # Create a temporary old-style archive to link instead of a shared archive.
13175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13177 # Commands used to build and install a shared archive.
13178 archive_cmds=$lt_archive_cmds_CXX
13179 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13180 postinstall_cmds=$lt_postinstall_cmds
13181 postuninstall_cmds=$lt_postuninstall_cmds
13183 # Commands used to build a loadable module (assumed same as above if empty)
13184 module_cmds=$lt_module_cmds_CXX
13185 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13187 # Commands to strip libraries.
13188 old_striplib=$lt_old_striplib
13189 striplib=$lt_striplib
13191 # Dependencies to place before the objects being linked to create a
13193 predep_objects=$lt_predep_objects_CXX
13195 # Dependencies to place after the objects being linked to create a
13197 postdep_objects=$lt_postdep_objects_CXX
13199 # Dependencies to place before the objects being linked to create a
13201 predeps=$lt_predeps_CXX
13203 # Dependencies to place after the objects being linked to create a
13205 postdeps=$lt_postdeps_CXX
13207 # The library search path used internally by the compiler when linking
13208 # a shared library.
13209 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13211 # Method to check whether dependent libraries are shared objects.
13212 deplibs_check_method=$lt_deplibs_check_method
13214 # Command to use when deplibs_check_method == file_magic.
13215 file_magic_cmd=$lt_file_magic_cmd
13217 # Flag that allows shared libraries with undefined symbols to be built.
13218 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13220 # Flag that forces no undefined symbols.
13221 no_undefined_flag=$lt_no_undefined_flag_CXX
13223 # Commands used to finish a libtool library installation in a directory.
13224 finish_cmds=$lt_finish_cmds
13226 # Same as above, but a single script fragment to be evaled but not shown.
13227 finish_eval=$lt_finish_eval
13229 # Take the output of nm and produce a listing of raw symbols and C names.
13230 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13232 # Transform the output of nm in a proper C declaration
13233 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13235 # Transform the output of nm in a C name address pair
13236 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13238 # This is the shared library runtime path variable.
13239 runpath_var=$runpath_var
13241 # This is the shared library path variable.
13242 shlibpath_var=$shlibpath_var
13244 # Is shlibpath searched before the hard-coded library search path?
13245 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13247 # How to hardcode a shared library path into an executable.
13248 hardcode_action=$hardcode_action_CXX
13250 # Whether we should hardcode library paths into libraries.
13251 hardcode_into_libs=$hardcode_into_libs
13253 # Flag to hardcode \$libdir into a binary during linking.
13254 # This must work even if \$libdir does not exist.
13255 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13257 # If ld is used when linking, flag to hardcode \$libdir into
13258 # a binary during linking. This must work even if \$libdir does
13260 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13262 # Whether we need a single -rpath flag with a separated argument.
13263 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13265 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13266 # resulting binary.
13267 hardcode_direct=$hardcode_direct_CXX
13269 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13270 # resulting binary.
13271 hardcode_minus_L=$hardcode_minus_L_CXX
13273 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13274 # the resulting binary.
13275 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13277 # Set to yes if building a shared library automatically hardcodes DIR into the library
13278 # and all subsequent libraries and executables linked against it.
13279 hardcode_automatic=$hardcode_automatic_CXX
13281 # Variables whose values should be saved in libtool wrapper scripts and
13282 # restored at relink time.
13283 variables_saved_for_relink="$variables_saved_for_relink"
13285 # Whether libtool must link a program against all its dependency libraries.
13286 link_all_deplibs=$link_all_deplibs_CXX
13288 # Compile-time system search path for libraries
13289 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13291 # Run-time system search path for libraries
13292 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13294 # Fix the shell variable \$srcfile for the compiler.
13295 fix_srcfile_path="$fix_srcfile_path_CXX"
13297 # Set to yes if exported symbols are required.
13298 always_export_symbols=$always_export_symbols_CXX
13300 # The commands to list exported symbols.
13301 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13303 # The commands to extract the exported symbol list from a shared archive.
13304 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13306 # Symbols that should not be listed in the preloaded symbols.
13307 exclude_expsyms=$lt_exclude_expsyms_CXX
13309 # Symbols that must always be exported.
13310 include_expsyms=$lt_include_expsyms_CXX
13312 # ### END LIBTOOL TAG CONFIG: $tagname
13318 # If there is no Makefile yet, we rely on a make rule to execute
13319 # `config.status --recheck' to rerun these tests and create the
13320 # libtool script then.
13321 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13322 if test -f "$ltmain_in"; then
13323 test -f Makefile
&& make "$ltmain"
13329 ac_cpp
='$CPP $CPPFLAGS'
13330 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13331 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13332 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13338 with_gnu_ldcxx
=$with_gnu_ld
13339 with_gnu_ld
=$lt_save_with_gnu_ld
13340 lt_cv_path_LDCXX
=$lt_cv_path_LD
13341 lt_cv_path_LD
=$lt_save_path_LD
13342 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13343 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13351 if test -n "$F77" && test "X$F77" != "Xno"; then
13354 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13355 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13356 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13359 archive_cmds_need_lc_F77
=no
13360 allow_undefined_flag_F77
=
13361 always_export_symbols_F77
=no
13362 archive_expsym_cmds_F77
=
13363 export_dynamic_flag_spec_F77
=
13364 hardcode_direct_F77
=no
13365 hardcode_libdir_flag_spec_F77
=
13366 hardcode_libdir_flag_spec_ld_F77
=
13367 hardcode_libdir_separator_F77
=
13368 hardcode_minus_L_F77
=no
13369 hardcode_automatic_F77
=no
13371 module_expsym_cmds_F77
=
13372 link_all_deplibs_F77
=unknown
13373 old_archive_cmds_F77
=$old_archive_cmds
13374 no_undefined_flag_F77
=
13375 whole_archive_flag_spec_F77
=
13376 enable_shared_with_static_runtimes_F77
=no
13378 # Source file extension for f77 test sources.
13381 # Object file extension for compiled f77 test sources.
13385 # Code to be used in simple compile tests
13386 lt_simple_compile_test_code
=" subroutine t\n return\n end\n"
13388 # Code to be used in simple link tests
13389 lt_simple_link_test_code
=" program t\n end\n"
13391 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13393 # If no C compiler was specified, use CC.
13396 # Allow CC to be a program name with arguments.
13400 # Allow CC to be a program name with arguments.
13405 cc_basename
=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13407 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13408 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13409 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13410 echo "${ECHO_T}$can_build_shared" >&6
13412 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13413 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13414 test "$can_build_shared" = "no" && enable_shared
=no
13416 # On AIX, shared libraries and static libraries use the same namespace, and
13417 # are all built from PIC.
13420 test "$enable_shared" = yes && enable_static
=no
13421 if test -n "$RANLIB"; then
13422 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13423 postinstall_cmds
='$RANLIB $lib'
13427 test "$enable_shared" = yes && enable_static
=no
13430 echo "$as_me:$LINENO: result: $enable_shared" >&5
13431 echo "${ECHO_T}$enable_shared" >&6
13433 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13434 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13435 # Make sure either enable_shared or enable_static is yes.
13436 test "$enable_shared" = yes || enable_static
=yes
13437 echo "$as_me:$LINENO: result: $enable_static" >&5
13438 echo "${ECHO_T}$enable_static" >&6
13440 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
13445 lt_prog_compiler_wl_F77
=
13446 lt_prog_compiler_pic_F77
=
13447 lt_prog_compiler_static_F77
=
13449 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13450 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13452 if test "$GCC" = yes; then
13453 lt_prog_compiler_wl_F77
='-Wl,'
13454 lt_prog_compiler_static_F77
='-static'
13458 # All AIX code is PIC.
13459 if test "$host_cpu" = ia64
; then
13460 # AIX 5 now supports IA64 processor
13461 lt_prog_compiler_static_F77
='-Bstatic'
13466 # FIXME: we need at least 68020 code to build shared libraries, but
13467 # adding the `-m68020' flag to GCC prevents building anything better,
13469 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
13472 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13473 # PIC is the default for these OSes.
13476 mingw
* | pw32
* | os2
*)
13477 # This hack is so that the source file can tell whether it is being
13478 # built for inclusion in a dll (and should export symbols for example).
13479 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13482 darwin
* | rhapsody
*)
13483 # PIC is the default on this platform
13484 # Common symbols not allowed in MH_DYLIB files
13485 lt_prog_compiler_pic_F77
='-fno-common'
13489 # Just because we use GCC doesn't mean we suddenly get shared libraries
13490 # on systems that don't support them.
13491 lt_prog_compiler_can_build_shared_F77
=no
13496 if test -d /usr
/nec
; then
13497 lt_prog_compiler_pic_F77
=-Kconform_pic
13502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13503 # not for PA HP-UX.
13504 case "$host_cpu" in
13509 lt_prog_compiler_pic_F77
='-fPIC'
13515 lt_prog_compiler_pic_F77
='-fPIC'
13519 # PORTME Check for flag to pass linker flags through the system compiler.
13522 lt_prog_compiler_wl_F77
='-Wl,'
13523 if test "$host_cpu" = ia64
; then
13524 # AIX 5 now supports IA64 processor
13525 lt_prog_compiler_static_F77
='-Bstatic'
13527 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
13531 # PIC is the default on this platform
13532 # Common symbols not allowed in MH_DYLIB files
13533 case "$cc_basename" in
13535 lt_prog_compiler_pic_F77
='-qnocommon'
13536 lt_prog_compiler_wl_F77
='-Wl,'
13541 mingw
* | pw32
* | os2
*)
13542 # This hack is so that the source file can tell whether it is being
13543 # built for inclusion in a dll (and should export symbols for example).
13544 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
13547 hpux9
* | hpux10
* | hpux11
*)
13548 lt_prog_compiler_wl_F77
='-Wl,'
13549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13550 # not for PA HP-UX.
13551 case "$host_cpu" in
13556 lt_prog_compiler_pic_F77
='+Z'
13559 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13560 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
13563 irix5
* | irix6
* | nonstopux
*)
13564 lt_prog_compiler_wl_F77
='-Wl,'
13565 # PIC (with -KPIC) is the default.
13566 lt_prog_compiler_static_F77
='-non_shared'
13570 lt_prog_compiler_pic_F77
='-KPIC'
13571 lt_prog_compiler_static_F77
='-Bstatic'
13575 case $cc_basename in
13577 lt_prog_compiler_wl_F77
='-Wl,'
13578 lt_prog_compiler_pic_F77
='-KPIC'
13579 lt_prog_compiler_static_F77
='-static'
13581 pgcc | pgf77 | pgf90
)
13582 # Portland Group compilers (*not* the Pentium gcc compiler,
13583 # which looks to be a dead project)
13584 lt_prog_compiler_wl_F77
='-Wl,'
13585 lt_prog_compiler_pic_F77
='-fpic'
13586 lt_prog_compiler_static_F77
='-static'
13589 lt_prog_compiler_wl_F77
='-Wl,'
13590 # All Alpha code is PIC.
13591 lt_prog_compiler_static_F77
='-non_shared'
13594 lt_prog_compiler_wl_F77
='-lopt='
13599 osf3
* | osf4
* | osf5
*)
13600 lt_prog_compiler_wl_F77
='-Wl,'
13601 # All OSF/1 code is PIC.
13602 lt_prog_compiler_static_F77
='-non_shared'
13606 lt_prog_compiler_pic_F77
='-Kpic'
13607 lt_prog_compiler_static_F77
='-dn'
13611 lt_prog_compiler_wl_F77
='-Wl,'
13612 lt_prog_compiler_pic_F77
='-KPIC'
13613 lt_prog_compiler_static_F77
='-Bstatic'
13617 lt_prog_compiler_wl_F77
='-Qoption ld '
13618 lt_prog_compiler_pic_F77
='-PIC'
13619 lt_prog_compiler_static_F77
='-Bstatic'
13622 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13623 lt_prog_compiler_wl_F77
='-Wl,'
13624 lt_prog_compiler_pic_F77
='-KPIC'
13625 lt_prog_compiler_static_F77
='-Bstatic'
13629 if test -d /usr
/nec
;then
13630 lt_prog_compiler_pic_F77
='-Kconform_pic'
13631 lt_prog_compiler_static_F77
='-Bstatic'
13636 lt_prog_compiler_wl_F77
='-Wl,'
13637 lt_prog_compiler_can_build_shared_F77
=no
13641 lt_prog_compiler_pic_F77
='-pic'
13642 lt_prog_compiler_static_F77
='-Bstatic'
13646 lt_prog_compiler_can_build_shared_F77
=no
13651 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13652 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13655 # Check to make sure the PIC flag actually works.
13657 if test -n "$lt_prog_compiler_pic_F77"; then
13659 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13660 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13661 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 lt_prog_compiler_pic_works_F77
=no
13665 ac_outfile
=conftest.
$ac_objext
13666 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13667 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
13668 # Insert the option either (1) after the last *FLAGS variable, or
13669 # (2) before a word containing "conftest.", or (3) at the end.
13670 # Note that $ac_compile itself does not contain backslashes and begins
13671 # with a dollar sign (not a hyphen), so the echo should work correctly.
13672 # The option is referenced via a variable to avoid confusing sed.
13673 lt_compile
=`echo "$ac_compile" | $SED \
13674 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13676 -e 's:$: $lt_compiler_flag:'`
13677 (eval echo "\"\$as_me:13677: $lt_compile\"" >&5)
13678 (eval "$lt_compile" 2>conftest.err
)
13680 cat conftest.err
>&5
13681 echo "$as_me:13681: \$? = $ac_status" >&5
13682 if (exit $ac_status) && test -s "$ac_outfile"; then
13683 # The compiler can only warn and ignore the option if not recognized
13684 # So say no if there are warnings
13685 if test ! -s conftest.err
; then
13686 lt_prog_compiler_pic_works_F77
=yes
13692 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13693 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13695 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
13696 case $lt_prog_compiler_pic_F77 in
13698 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
13701 lt_prog_compiler_pic_F77
=
13702 lt_prog_compiler_can_build_shared_F77
=no
13707 # For platforms which do not support PIC, -DPIC is meaningless:
13709 lt_prog_compiler_pic_F77
=
13712 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
13716 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13717 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13718 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13721 lt_cv_prog_compiler_c_o_F77
=no
13722 $rm -r conftest
2>/dev
/null
13726 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
13728 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13729 # Insert the option either (1) after the last *FLAGS variable, or
13730 # (2) before a word containing "conftest.", or (3) at the end.
13731 # Note that $ac_compile itself does not contain backslashes and begins
13732 # with a dollar sign (not a hyphen), so the echo should work correctly.
13733 lt_compile
=`echo "$ac_compile" | $SED \
13734 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13736 -e 's:$: $lt_compiler_flag:'`
13737 (eval echo "\"\$as_me:13737: $lt_compile\"" >&5)
13738 (eval "$lt_compile" 2>out
/conftest.err
)
13740 cat out
/conftest.err
>&5
13741 echo "$as_me:13741: \$? = $ac_status" >&5
13742 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13744 # The compiler can only warn and ignore the option if not recognized
13745 # So say no if there are warnings
13746 if test ! -s out
/conftest.err
; then
13747 lt_cv_prog_compiler_c_o_F77
=yes
13752 # SGI C++ compiler will create directory out/ii_files/ for
13753 # template instantiation
13754 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
13755 $rm out
/* && rmdir out
13761 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13762 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13765 hard_links
="nottested"
13766 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
13767 # do not overwrite the value of need_locks provided by the user
13768 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13769 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13772 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13774 ln conftest.a conftest.b
2>&5 || hard_links
=no
13775 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13776 echo "$as_me:$LINENO: result: $hard_links" >&5
13777 echo "${ECHO_T}$hard_links" >&6
13778 if test "$hard_links" = no
; then
13779 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13780 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13787 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13788 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13791 allow_undefined_flag_F77
=
13792 enable_shared_with_static_runtimes_F77
=no
13794 archive_expsym_cmds_F77
=
13795 old_archive_From_new_cmds_F77
=
13796 old_archive_from_expsyms_cmds_F77
=
13797 export_dynamic_flag_spec_F77
=
13798 whole_archive_flag_spec_F77
=
13799 thread_safe_flag_spec_F77
=
13800 hardcode_libdir_flag_spec_F77
=
13801 hardcode_libdir_flag_spec_ld_F77
=
13802 hardcode_libdir_separator_F77
=
13803 hardcode_direct_F77
=no
13804 hardcode_minus_L_F77
=no
13805 hardcode_shlibpath_var_F77
=unsupported
13806 link_all_deplibs_F77
=unknown
13807 hardcode_automatic_F77
=no
13809 module_expsym_cmds_F77
=
13810 always_export_symbols_F77
=no
13811 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13812 # include_expsyms should be a list of space-separated symbols to be *always*
13813 # included in the symbol list
13814 include_expsyms_F77
=
13815 # exclude_expsyms can be an extended regexp of symbols to exclude
13816 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13817 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13818 # as well as any symbol that contains `d'.
13819 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
13820 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13821 # platforms (ab)use it in PIC code, but their linkers get confused if
13822 # the symbol is explicitly referenced. Since portable code cannot
13823 # rely on this symbol name, it's probably fine to never include it in
13824 # preloaded symbol tables.
13825 extract_expsyms_cmds
=
13828 cygwin
* | mingw
* | pw32
*)
13829 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13830 # When not using gcc, we currently assume that we are using
13831 # Microsoft Visual C++.
13832 if test "$GCC" != yes; then
13842 if test "$with_gnu_ld" = yes; then
13843 # If archive_cmds runs LD, not CC, wlarc should be empty
13846 # See if GNU ld supports shared libraries.
13848 aix3
* | aix4
* | aix5
*)
13849 # On AIX/PPC, the GNU linker is very broken
13850 if test "$host_cpu" != ia64
; then
13854 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13855 *** to be unable to reliably create shared libraries on AIX.
13856 *** Therefore, libtool is disabling shared libraries support. If you
13857 *** really care for shared libraries, you may want to modify your PATH
13858 *** so that a non-GNU linker is found, and then restart.
13865 archive_cmds_F77
='$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)'
13866 hardcode_libdir_flag_spec_F77
='-L$libdir'
13867 hardcode_minus_L_F77
=yes
13869 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13870 # that the semantics of dynamic libraries on AmigaOS, at least up
13871 # to version 4, is to share data among multiple programs linked
13872 # with the same dynamic library. Since this doesn't match the
13873 # behavior of shared libraries on other platforms, we can't use
13879 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13880 allow_undefined_flag_F77
=unsupported
13881 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13882 # support --undefined. This deserves some investigation. FIXME
13883 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13889 cygwin
* | mingw
* | pw32
*)
13890 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13891 # as there is no search path for DLLs.
13892 hardcode_libdir_flag_spec_F77
='-L$libdir'
13893 allow_undefined_flag_F77
=unsupported
13894 always_export_symbols_F77
=no
13895 enable_shared_with_static_runtimes_F77
=yes
13896 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13898 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
13899 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13900 # If the export-symbols file already is a .def file (1st line
13901 # is EXPORTS), use it as is; otherwise, prepend...
13902 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13903 cp $export_symbols $output_objdir/$soname.def;
13905 echo EXPORTS > $output_objdir/$soname.def;
13906 cat $export_symbols >> $output_objdir/$soname.def;
13908 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13915 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13916 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13919 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13920 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13925 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
13929 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13930 *** create shared libraries on Solaris systems. Therefore, libtool
13931 *** is disabling shared libraries support. We urge you to upgrade GNU
13932 *** binutils to release 2.9.1 or newer. Another option is to modify
13933 *** your PATH or compiler configuration so that the native linker is
13934 *** used, and then restart.
13937 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13938 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13939 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13946 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13948 hardcode_direct_F77
=yes
13949 hardcode_shlibpath_var_F77
=no
13953 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13955 case $CC,$host_cpu in
13956 pgf77
* | pgf90
* ) # Portland Group f77 and f90 compilers
13957 tmp_addflag
=' -fpic' ;;
13958 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
13959 tmp_addflag
=' -i_dynamic' ;;
13960 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
13961 tmp_addflag
=' -i_dynamic -nofor_main' ;;
13962 ifc
* | ifort
*) # Intel Fortran compiler
13963 tmp_addflag
=' -nofor_main' ;;
13965 archive_cmds_F77
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13966 supports_anon_versioning
=no
13967 case `$LD -v 2>/dev/null` in
13968 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
13969 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
13970 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
13971 *\
2.11.
*) ;; # other 2.11 versions
13972 *) supports_anon_versioning
=yes ;;
13974 if test $supports_anon_versioning = yes; then
13975 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
13976 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13977 $echo "local: *; };" >> $output_objdir/$libname.ver~
13978 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13980 archive_expsym_cmds_F77
=$archive_cmds_F77
13988 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
13989 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13990 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13997 if test "$ld_shlibs_F77" = yes; then
13998 runpath_var
=LD_RUN_PATH
13999 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14000 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14001 # ancient GNU ld didn't support --whole-archive et. al.
14002 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14003 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14005 whole_archive_flag_spec_F77
=
14009 # PORTME fill in a description of your system's linker (not GNU ld)
14012 allow_undefined_flag_F77
=unsupported
14013 always_export_symbols_F77
=yes
14014 archive_expsym_cmds_F77
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14015 # Note: this linker hardcodes the directories in LIBPATH if there
14016 # are no directories specified by -L.
14017 hardcode_minus_L_F77
=yes
14018 if test "$GCC" = yes && test -z "$link_static_flag"; then
14019 # Neither direct hardcoding nor static linking is supported with a
14021 hardcode_direct_F77
=unsupported
14026 if test "$host_cpu" = ia64
; then
14027 # On IA64, the linker does run time linking by default, so we don't
14028 # have to do anything special.
14029 aix_use_runtimelinking
=no
14030 exp_sym_flag
='-Bexport'
14033 # If we're using GNU nm, then we don't want the "-C" option.
14034 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14035 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14036 export_symbols_cmds_F77
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14038 export_symbols_cmds_F77
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14040 aix_use_runtimelinking
=no
14042 # Test if we are trying to use run time linking or normal
14043 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14044 # need to do runtime linking.
14045 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14046 for ld_flag
in $LDFLAGS; do
14047 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14048 aix_use_runtimelinking
=yes
14054 exp_sym_flag
='-bexport'
14055 no_entry_flag
='-bnoentry'
14058 # When large executables or shared objects are built, AIX ld can
14059 # have problems creating the table of contents. If linking a library
14060 # or program results in "error TOC overflow" add -mminimal-toc to
14061 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14062 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14064 archive_cmds_F77
=''
14065 hardcode_direct_F77
=yes
14066 hardcode_libdir_separator_F77
=':'
14067 link_all_deplibs_F77
=yes
14069 if test "$GCC" = yes; then
14070 case $host_os in aix4.
[012]|aix4.
[012].
*)
14071 # We only want to do this on AIX 4.2 and lower, the check
14072 # below for broken collect2 doesn't work under 4.3+
14073 collect2name
=`${CC} -print-prog-name=collect2`
14074 if test -f "$collect2name" && \
14075 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14077 # We have reworked collect2
14078 hardcode_direct_F77
=yes
14080 # We have old collect2
14081 hardcode_direct_F77
=unsupported
14082 # It fails to find uninstalled libraries when the uninstalled
14083 # path is not listed in the libpath. Setting hardcode_minus_L
14084 # to unsupported forces relinking
14085 hardcode_minus_L_F77
=yes
14086 hardcode_libdir_flag_spec_F77
='-L$libdir'
14087 hardcode_libdir_separator_F77
=
14090 shared_flag
='-shared'
14091 if test "$aix_use_runtimelinking" = yes; then
14092 shared_flag
="$shared_flag "'${wl}-G'
14096 if test "$host_cpu" = ia64
; then
14097 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14098 # chokes on -Wl,-G. The following line is correct:
14101 if test "$aix_use_runtimelinking" = yes; then
14102 shared_flag
='${wl}-G'
14104 shared_flag
='${wl}-bM:SRE'
14109 # It seems that -bexpall does not export symbols beginning with
14110 # underscore (_), so it is better to generate a list of symbols to export.
14111 always_export_symbols_F77
=yes
14112 if test "$aix_use_runtimelinking" = yes; then
14113 # Warning - without using the other runtime loading flags (-brtl),
14114 # -berok will link without error, but may produce a broken library.
14115 allow_undefined_flag_F77
='-berok'
14116 # Determine the default libpath from the value encoded in an empty executable.
14117 cat >conftest.
$ac_ext <<_ACEOF
14122 rm -f conftest.
$ac_objext conftest
$ac_exeext
14123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14124 (eval $ac_link) 2>conftest.er1
14126 grep -v '^ *+' conftest.er1
>conftest.err
14128 cat conftest.err
>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); } &&
14131 { ac_try
='test -z "$ac_f77_werror_flag"
14132 || test ! -s conftest.err'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; } &&
14138 { ac_try
='test -s conftest$ac_exeext'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
14145 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14147 # Check for a 64-bit object if we didn't find anything.
14148 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.
$ac_ext >&5
14155 rm -f conftest.err conftest.
$ac_objext \
14156 conftest
$ac_exeext conftest.
$ac_ext
14157 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
14159 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
14160 archive_expsym_cmds_F77
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14162 if test "$host_cpu" = ia64; then
14163 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr
/lib
:/lib
'
14164 allow_undefined_flag_F77="-z nodefs"
14165 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
14167 # Determine the default libpath from the value encoded in an empty executable.
14168 cat >conftest.$ac_ext <<_ACEOF
14173 rm -f conftest.$ac_objext conftest$ac_exeext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14175 (eval $ac_link) 2>conftest.er1
14177 grep -v '^ *+' conftest.er1 >conftest.err
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14181 (exit $ac_status); } &&
14182 { ac_try='test -z "$ac_f77_werror_flag"
14183 || test ! -s conftest.err'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14188 (exit $ac_status); }; } &&
14189 { ac_try='test -s conftest$ac_exeext'
14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191 (eval $ac_try) 2>&5
14193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14194 (exit $ac_status); }; }; then
14196 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14198 # Check for a 64-bit object if we didn't find anything.
14199 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14202 echo "$as_me: failed program was
:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14206 rm -f conftest.err conftest.$ac_objext \
14207 conftest$ac_exeext conftest.$ac_ext
14208 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
14210 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14211 # Warning - without using the other run time loading flags,
14212 # -berok will link without error, but may produce a broken library.
14213 no_undefined_flag_F77=' ${wl}-bernotok'
14214 allow_undefined_flag_F77=' ${wl}-berok'
14215 # -bexpall does not export symbols beginning with underscore (_)
14216 always_export_symbols_F77=yes
14217 # Exported symbols can be pulled into shared objects from archives
14218 whole_archive_flag_spec_F77=' '
14219 archive_cmds_need_lc_F77=yes
14220 # This is similar to how AIX traditionally builds it's shared libraries.
14221 archive_expsym_cmds_F77="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14227 archive_cmds_F77='$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)'
14228 hardcode_libdir_flag_spec_F77
='-L$libdir'
14229 hardcode_minus_L_F77
=yes
14230 # see comment about different semantics on the GNU ld section
14235 export_dynamic_flag_spec_F77
=-rdynamic
14238 cygwin
* | mingw
* | pw32
*)
14239 # When not using gcc, we currently assume that we are using
14240 # Microsoft Visual C++.
14241 # hardcode_libdir_flag_spec is actually meaningless, as there is
14242 # no search path for DLLs.
14243 hardcode_libdir_flag_spec_F77
=' '
14244 allow_undefined_flag_F77
=unsupported
14245 # Tell ltmain to make .lib files, not .a files.
14247 # Tell ltmain to make .dll files, not .so files.
14249 # FIXME: Setting linknames here is a bad hack.
14250 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14251 # The linker will automatically build a .lib file if we build a DLL.
14252 old_archive_From_new_cmds_F77
='true'
14253 # FIXME: Should let the user specify the lib program.
14254 old_archive_cmds_F77
='lib /OUT:$oldlib$oldobjs$old_deplibs'
14255 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
14256 enable_shared_with_static_runtimes_F77
=yes
14259 darwin
* | rhapsody
*)
14261 rhapsody
* | darwin1.
[012])
14262 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
14265 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14266 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14268 case ${MACOSX_DEPLOYMENT_TARGET} in
14270 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14273 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
14279 archive_cmds_need_lc_F77
=no
14280 hardcode_direct_F77
=no
14281 hardcode_automatic_F77
=yes
14282 hardcode_shlibpath_var_F77
=unsupported
14283 whole_archive_flag_spec_F77
=''
14284 link_all_deplibs_F77
=yes
14285 if test "$GCC" = yes ; then
14286 output_verbose_link_cmd
='echo'
14287 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14288 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14289 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14290 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
14291 module_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
14293 case "$cc_basename" in
14295 output_verbose_link_cmd
='echo'
14296 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14297 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14298 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14299 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
14300 module_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
14310 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14311 hardcode_libdir_flag_spec_F77
='-L$libdir'
14312 hardcode_shlibpath_var_F77
=no
14319 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14320 # support. Future versions do this automatically, but an explicit c++rt0.o
14321 # does not break anything, and helps significantly (at the cost of a little
14324 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14325 hardcode_libdir_flag_spec_F77
='-R$libdir'
14326 hardcode_direct_F77
=yes
14327 hardcode_shlibpath_var_F77
=no
14330 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14332 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14333 hardcode_direct_F77
=yes
14334 hardcode_minus_L_F77
=yes
14335 hardcode_shlibpath_var_F77
=no
14338 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14339 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
14340 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14341 hardcode_libdir_flag_spec_F77
='-R$libdir'
14342 hardcode_direct_F77
=yes
14343 hardcode_shlibpath_var_F77
=no
14347 if test "$GCC" = yes; then
14348 archive_cmds_F77
='$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'
14350 archive_cmds_F77
='$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'
14352 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14353 hardcode_libdir_separator_F77
=:
14354 hardcode_direct_F77
=yes
14356 # hardcode_minus_L: Not really in the search PATH,
14357 # but as the default location of the library.
14358 hardcode_minus_L_F77
=yes
14359 export_dynamic_flag_spec_F77
='${wl}-E'
14363 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
14364 case "$host_cpu" in
14366 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14369 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14373 case "$host_cpu" in
14375 archive_cmds_F77
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14378 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14382 if test "$with_gnu_ld" = no
; then
14383 case "$host_cpu" in
14385 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14386 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
14387 hardcode_libdir_separator_F77
=:
14388 hardcode_direct_F77
=no
14389 hardcode_shlibpath_var_F77
=no
14392 hardcode_libdir_flag_spec_F77
='-L$libdir'
14393 hardcode_direct_F77
=no
14394 hardcode_shlibpath_var_F77
=no
14396 # hardcode_minus_L: Not really in the search PATH,
14397 # but as the default location of the library.
14398 hardcode_minus_L_F77
=yes
14401 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
14402 hardcode_libdir_separator_F77
=:
14403 hardcode_direct_F77
=yes
14404 export_dynamic_flag_spec_F77
='${wl}-E'
14406 # hardcode_minus_L: Not really in the search PATH,
14407 # but as the default location of the library.
14408 hardcode_minus_L_F77
=yes
14414 irix5
* | irix6
* | nonstopux
*)
14415 if test "$GCC" = yes; then
14416 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14418 archive_cmds_F77
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14419 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
14421 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14422 hardcode_libdir_separator_F77
=:
14423 link_all_deplibs_F77
=yes
14427 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14428 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14430 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14432 hardcode_libdir_flag_spec_F77
='-R$libdir'
14433 hardcode_direct_F77
=yes
14434 hardcode_shlibpath_var_F77
=no
14438 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14439 hardcode_direct_F77
=yes
14440 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14441 hardcode_libdir_separator_F77
=:
14442 hardcode_shlibpath_var_F77
=no
14446 hardcode_direct_F77
=yes
14447 hardcode_shlibpath_var_F77
=no
14448 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14449 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14450 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14451 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14452 export_dynamic_flag_spec_F77
='${wl}-E'
14455 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
14456 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14457 hardcode_libdir_flag_spec_F77
='-R$libdir'
14460 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14461 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14468 hardcode_libdir_flag_spec_F77
='-L$libdir'
14469 hardcode_minus_L_F77
=yes
14470 allow_undefined_flag_F77
=unsupported
14471 archive_cmds_F77
='$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'
14472 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14476 if test "$GCC" = yes; then
14477 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14478 archive_cmds_F77
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14480 allow_undefined_flag_F77
=' -expect_unresolved \*'
14481 archive_cmds_F77
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14483 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14484 hardcode_libdir_separator_F77
=:
14487 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
14488 if test "$GCC" = yes; then
14489 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
14490 archive_cmds_F77
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14491 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
14493 allow_undefined_flag_F77
=' -expect_unresolved \*'
14494 archive_cmds_F77
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14495 archive_expsym_cmds_F77
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14496 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14498 # Both c and cxx compiler support -rpath directly
14499 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
14501 hardcode_libdir_separator_F77
=:
14505 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14506 hardcode_shlibpath_var_F77
=no
14507 export_dynamic_flag_spec_F77
='${wl}-Bexport'
14508 runpath_var
=LD_RUN_PATH
14509 hardcode_runpath_var
=yes
14513 no_undefined_flag_F77
=' -z text'
14514 if test "$GCC" = yes; then
14515 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14516 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14517 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14519 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14520 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14521 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14523 hardcode_libdir_flag_spec_F77
='-R$libdir'
14524 hardcode_shlibpath_var_F77
=no
14526 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14527 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14528 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
14530 link_all_deplibs_F77
=yes
14534 if test "x$host_vendor" = xsequent
; then
14535 # Use $CC to link under sequent, because it throws in some extra .o
14536 # files that make .init and .fini sections work.
14537 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14539 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14541 hardcode_libdir_flag_spec_F77
='-L$libdir'
14542 hardcode_direct_F77
=yes
14543 hardcode_minus_L_F77
=yes
14544 hardcode_shlibpath_var_F77
=no
14548 case $host_vendor in
14550 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14551 hardcode_direct_F77
=yes # is this really true???
14554 ## LD is ld it makes a PLAMLIB
14555 ## CC just makes a GrossModule.
14556 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14557 reload_cmds_F77
='$CC -r -o $output$reload_objs'
14558 hardcode_direct_F77
=no
14561 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14562 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
14565 runpath_var
='LD_RUN_PATH'
14566 hardcode_shlibpath_var_F77
=no
14570 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14571 hardcode_shlibpath_var_F77
=no
14572 export_dynamic_flag_spec_F77
='-Bexport'
14576 if test -d /usr
/nec
; then
14577 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14578 hardcode_shlibpath_var_F77
=no
14579 runpath_var
=LD_RUN_PATH
14580 hardcode_runpath_var
=yes
14586 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14587 hardcode_direct_F77
=yes
14588 hardcode_minus_L_F77
=no
14589 hardcode_shlibpath_var_F77
=no
14590 hardcode_runpath_var
=yes
14591 runpath_var
=LD_RUN_PATH
14594 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
14595 no_undefined_flag_F77
='${wl}-z ${wl}text'
14596 if test "$GCC" = yes; then
14597 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14599 archive_cmds_F77
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14601 runpath_var
='LD_RUN_PATH'
14602 hardcode_shlibpath_var_F77
=no
14606 no_undefined_flag_F77
=' -z text'
14607 # $CC -shared without GNU ld will not create a library from C++
14608 # object files and a static libstdc++, better avoid it by now
14609 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14610 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14611 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14612 hardcode_libdir_flag_spec_F77
=
14613 hardcode_shlibpath_var_F77
=no
14614 runpath_var
='LD_RUN_PATH'
14618 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14619 hardcode_libdir_flag_spec_F77
='-L$libdir'
14620 hardcode_shlibpath_var_F77
=no
14629 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14630 echo "${ECHO_T}$ld_shlibs_F77" >&6
14631 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
14633 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14634 if test "$GCC" = yes; then
14635 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14639 # Do we need to explicitly link libc?
14641 case "x$archive_cmds_need_lc_F77" in
14643 # Assume -lc should be added
14644 archive_cmds_need_lc_F77
=yes
14646 if test "$enable_shared" = yes && test "$GCC" = yes; then
14647 case $archive_cmds_F77 in
14649 # FIXME: we may have to deal with multi-command sequences.
14652 # Test whether the compiler implicitly links with -lc since on some
14653 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14654 # to ld, don't add -lc before -lgcc.
14655 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14656 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14658 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
14660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14661 (eval $ac_compile) 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); } 2>conftest.err
; then
14667 libobjs
=conftest.
$ac_objext
14669 wl
=$lt_prog_compiler_wl_F77
14675 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
14676 allow_undefined_flag_F77
=
14677 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14678 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }
14683 archive_cmds_need_lc_F77
=no
14685 archive_cmds_need_lc_F77
=yes
14687 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
14689 cat conftest.err
1>&5
14692 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14693 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14700 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14701 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14702 library_names_spec
=
14703 libname_spec
='lib$name'
14707 postuninstall_cmds
=
14711 shlibpath_overrides_runpath
=unknown
14713 dynamic_linker
="$host_os ld.so"
14714 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14715 if test "$GCC" = yes; then
14716 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14717 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
14718 # if the path contains ";" then we assume it to be the separator
14719 # otherwise default to the standard path separator (i.e. ":") - it is
14720 # assumed that no part of a normal pathname contains ";" but that should
14721 # okay in the real world where ";" in dirpaths is itself problematic.
14722 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14724 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14727 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
14729 need_lib_prefix
=unknown
14730 hardcode_into_libs
=no
14732 # when you set need_version to no, make sure it does not cause -set_version
14733 # flags to be left without arguments
14734 need_version
=unknown
14739 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14740 shlibpath_var
=LIBPATH
14742 # AIX 3 has no versioning support, so we append a major version to the name.
14743 soname_spec
='${libname}${release}${shared_ext}$major'
14750 hardcode_into_libs
=yes
14751 if test "$host_cpu" = ia64
; then
14752 # AIX 5 supports IA64
14753 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14754 shlibpath_var
=LD_LIBRARY_PATH
14756 # With GCC up to 2.95.x, collect2 would create an import file
14757 # for dependence libraries. The import file would start with
14758 # the line `#! .'. This would cause the generated library to
14759 # depend on `.', always an invalid library. This was fixed in
14760 # development snapshots of GCC prior to 3.0.
14762 aix4 | aix4.
[01] | aix4.
[01].
*)
14763 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14765 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
14768 can_build_shared
=no
14772 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14773 # soname into executable. Probably we can add versioning support to
14774 # collect2, so additional links can be useful in future.
14775 if test "$aix_use_runtimelinking" = yes; then
14776 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14777 # instead of lib<name>.a to let people know that these are not
14778 # typical AIX shared libraries.
14779 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14781 # We preserve .a as extension for shared libraries through AIX4.2
14782 # and later when we are not doing run time linking.
14783 library_names_spec
='${libname}${release}.a $libname.a'
14784 soname_spec
='${libname}${release}${shared_ext}$major'
14786 shlibpath_var
=LIBPATH
14791 library_names_spec
='$libname.ixlibrary $libname.a'
14792 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14793 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'
14797 library_names_spec
='${libname}${shared_ext}'
14798 dynamic_linker
="$host_os ld.so"
14799 shlibpath_var
=LIBRARY_PATH
14805 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14806 soname_spec
='${libname}${release}${shared_ext}$major'
14807 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14808 shlibpath_var
=LD_LIBRARY_PATH
14809 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14810 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14811 # the default ld.so.conf also contains /usr/contrib/lib and
14812 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14813 # libtool to hard-code these into programs
14816 cygwin
* | mingw
* | pw32
*)
14817 version_type
=windows
14822 case $GCC,$host_os in
14823 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
14824 library_names_spec
='$libname.dll.a'
14825 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14826 postinstall_cmds
='base_file=`basename \${file}`~
14827 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14828 dldir=$destdir/`dirname \$dlpath`~
14829 test -d \$dldir || mkdir -p \$dldir~
14830 $install_prog $dir/$dlname \$dldir/$dlname'
14831 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14832 dlpath=$dir/\$dldll~
14834 shlibpath_overrides_runpath
=yes
14838 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14839 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14840 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
14843 # MinGW DLLs use traditional 'lib' prefix
14844 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14845 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14846 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
14847 # It is most probably a Windows format PATH printed by
14848 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14849 # path with ; separators, and with drive letters. We can handle the
14850 # drive letters (cygwin fileutils understands them), so leave them,
14851 # especially as we might pass files found there to a mingw objdump,
14852 # which wouldn't understand a cygwinified path. Ahh.
14853 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14855 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14859 # pw32 DLLs use 'pw' prefix rather than 'lib'
14860 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14866 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14869 dynamic_linker
='Win32 ld.exe'
14870 # FIXME: first we should search . and the directory the executable is in
14874 darwin
* | rhapsody
*)
14875 dynamic_linker
="$host_os dyld"
14876 version_type
=darwin
14879 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14880 soname_spec
='${libname}${release}${major}$shared_ext'
14881 shlibpath_overrides_runpath
=yes
14882 shlibpath_var
=DYLD_LIBRARY_PATH
14883 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
14884 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14885 if test "$GCC" = yes; then
14886 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14888 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
14890 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14897 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14898 soname_spec
='${libname}${release}${shared_ext}$major'
14899 shlibpath_var
=LD_LIBRARY_PATH
14910 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14911 soname_spec
='${libname}${release}${shared_ext}$major'
14912 shlibpath_var
=LD_LIBRARY_PATH
14913 shlibpath_overrides_runpath
=no
14914 hardcode_into_libs
=yes
14915 dynamic_linker
='GNU ld.so'
14918 freebsd
* | dragonfly
*)
14919 # DragonFly does not have aout. When/if they implement a new
14920 # versioning mechanism, adjust this.
14921 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14922 version_type
=freebsd-
$objformat
14923 case $version_type in
14925 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14930 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14934 shlibpath_var
=LD_LIBRARY_PATH
14937 shlibpath_overrides_runpath
=yes
14939 freebsd3.
[01]* | freebsdelf3.
[01]*)
14940 shlibpath_overrides_runpath
=yes
14941 hardcode_into_libs
=yes
14944 shlibpath_overrides_runpath
=no
14945 hardcode_into_libs
=yes
14954 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14955 soname_spec
='${libname}${release}${shared_ext}$major'
14956 shlibpath_var
=LD_LIBRARY_PATH
14957 hardcode_into_libs
=yes
14960 hpux9
* | hpux10
* | hpux11
*)
14961 # Give a soname corresponding to the major version so that dld.sl refuses to
14962 # link against other versions.
14966 case "$host_cpu" in
14969 hardcode_into_libs
=yes
14970 dynamic_linker
="$host_os dld.so"
14971 shlibpath_var
=LD_LIBRARY_PATH
14972 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14973 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14974 soname_spec
='${libname}${release}${shared_ext}$major'
14975 if test "X$HPUX_IA64_MODE" = X32
; then
14976 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14978 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14980 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14984 hardcode_into_libs
=yes
14985 dynamic_linker
="$host_os dld.sl"
14986 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14987 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14988 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14989 soname_spec
='${libname}${release}${shared_ext}$major'
14990 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14991 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14995 dynamic_linker
="$host_os dld.sl"
14996 shlibpath_var
=SHLIB_PATH
14997 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14998 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14999 soname_spec
='${libname}${release}${shared_ext}$major'
15002 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15003 postinstall_cmds
='chmod 555 $lib'
15006 irix5
* | irix6
* | nonstopux
*)
15008 nonstopux
*) version_type
=nonstopux
;;
15010 if test "$lt_cv_prog_gnu_ld" = yes; then
15018 soname_spec
='${libname}${release}${shared_ext}$major'
15019 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15021 irix5
* | nonstopux
*)
15022 libsuff
= shlibsuff
=
15025 case $LD in # libtool.m4 will add one of these switches to LD
15026 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15027 libsuff
= shlibsuff
= libmagic
=32-bit;;
15028 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15029 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15030 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15031 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15032 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15036 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15037 shlibpath_overrides_runpath
=no
15038 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15039 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15040 hardcode_into_libs
=yes
15043 # No shared lib support for Linux oldld, aout, or coff.
15044 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15048 # This must be Linux ELF.
15053 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15054 soname_spec
='${libname}${release}${shared_ext}$major'
15055 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15056 shlibpath_var
=LD_LIBRARY_PATH
15057 shlibpath_overrides_runpath
=no
15058 # This implies no fast_install, which is unacceptable.
15059 # Some rework will be needed to allow for fast_install
15060 # before this can be enabled.
15061 hardcode_into_libs
=yes
15063 # Append ld.so.conf contents to the search path
15064 if test -f /etc
/ld.so.conf
; then
15065 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15066 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
15069 # We used to test for /lib/ld.so.1 and disable shared libraries on
15070 # powerpc, because MkLinux only supported shared libraries with the
15071 # GNU dynamic linker. Since this was broken with cross compilers,
15072 # most powerpc-linux boxes support dynamic linking these days and
15073 # people can always --disable-shared, the test was removed, and we
15074 # assume the GNU/Linux dynamic linker is in use.
15075 dynamic_linker
='GNU/Linux ld.so'
15082 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15083 soname_spec
='${libname}${release}${shared_ext}$major'
15084 shlibpath_var
=LD_LIBRARY_PATH
15085 shlibpath_overrides_runpath
=no
15086 hardcode_into_libs
=yes
15087 dynamic_linker
='GNU ld.so'
15094 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15095 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15096 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15097 dynamic_linker
='NetBSD (a.out) ld.so'
15099 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15100 soname_spec
='${libname}${release}${shared_ext}$major'
15101 dynamic_linker
='NetBSD ld.elf_so'
15103 shlibpath_var
=LD_LIBRARY_PATH
15104 shlibpath_overrides_runpath
=yes
15105 hardcode_into_libs
=yes
15110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15111 shlibpath_var
=LD_LIBRARY_PATH
15112 shlibpath_overrides_runpath
=yes
15119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15120 soname_spec
='${libname}${release}${shared_ext}$major'
15121 shlibpath_var
=LD_LIBRARY_PATH
15122 shlibpath_overrides_runpath
=yes
15129 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15130 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15131 shlibpath_var
=LD_LIBRARY_PATH
15132 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15134 openbsd2.
[89] | openbsd2.
[89].
*)
15135 shlibpath_overrides_runpath
=no
15138 shlibpath_overrides_runpath
=yes
15142 shlibpath_overrides_runpath
=yes
15147 libname_spec
='$name'
15150 library_names_spec
='$libname${shared_ext} $libname.a'
15151 dynamic_linker
='OS/2 ld.exe'
15152 shlibpath_var
=LIBPATH
15155 osf3
* | osf4
* | osf5
*)
15159 soname_spec
='${libname}${release}${shared_ext}$major'
15160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15161 shlibpath_var
=LD_LIBRARY_PATH
15162 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15163 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15168 soname_spec
='${libname}${release}${shared_ext}$major'
15169 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15170 shlibpath_var
=LD_LIBRARY_PATH
15177 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178 soname_spec
='${libname}${release}${shared_ext}$major'
15179 shlibpath_var
=LD_LIBRARY_PATH
15180 shlibpath_overrides_runpath
=yes
15181 hardcode_into_libs
=yes
15182 # ldd complains unless libraries are executable
15183 postinstall_cmds
='chmod +x $lib'
15188 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15189 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15190 shlibpath_var
=LD_LIBRARY_PATH
15191 shlibpath_overrides_runpath
=yes
15192 if test "$with_gnu_ld" = yes; then
15198 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15200 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15201 soname_spec
='${libname}${release}${shared_ext}$major'
15202 shlibpath_var
=LD_LIBRARY_PATH
15203 case $host_vendor in
15205 shlibpath_overrides_runpath
=no
15207 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15208 runpath_var
=LD_RUN_PATH
15216 shlibpath_overrides_runpath
=no
15217 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15223 if test -d /usr
/nec
;then
15225 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15226 soname_spec
='$libname${shared_ext}.$major'
15227 shlibpath_var
=LD_LIBRARY_PATH
15233 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234 soname_spec
='${libname}${release}${shared_ext}$major'
15235 shlibpath_var
=LD_LIBRARY_PATH
15242 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15243 echo "${ECHO_T}$dynamic_linker" >&6
15244 test "$dynamic_linker" = no
&& can_build_shared
=no
15246 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15247 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15248 hardcode_action_F77
=
15249 if test -n "$hardcode_libdir_flag_spec_F77" || \
15250 test -n "$runpath_var_F77" || \
15251 test "X$hardcode_automatic_F77" = "Xyes" ; then
15253 # We can hardcode non-existant directories.
15254 if test "$hardcode_direct_F77" != no
&&
15255 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15256 # have to relink, otherwise we might link with an installed library
15257 # when we should be linking with a yet-to-be-installed one
15258 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15259 test "$hardcode_minus_L_F77" != no
; then
15260 # Linking always hardcodes the temporary library directory.
15261 hardcode_action_F77
=relink
15263 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15264 hardcode_action_F77
=immediate
15267 # We cannot hardcode anything, or else we can only hardcode existing
15269 hardcode_action_F77
=unsupported
15271 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15272 echo "${ECHO_T}$hardcode_action_F77" >&6
15274 if test "$hardcode_action_F77" = relink
; then
15275 # Fast installation is not supported
15276 enable_fast_install
=no
15277 elif test "$shlibpath_overrides_runpath" = yes ||
15278 test "$enable_shared" = no
; then
15279 # Fast installation is not necessary
15280 enable_fast_install
=needless
15285 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15286 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15287 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
15288 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
15289 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
15290 echo "$as_me:$LINENO: result: yes" >&5
15291 echo "${ECHO_T}yes" >&6
15293 # FIXME - insert some real tests, host_os isn't really good enough
15296 if test -n "$STRIP" ; then
15297 striplib
="$STRIP -x"
15298 echo "$as_me:$LINENO: result: yes" >&5
15299 echo "${ECHO_T}yes" >&6
15301 echo "$as_me:$LINENO: result: no" >&5
15302 echo "${ECHO_T}no" >&6
15306 echo "$as_me:$LINENO: result: no" >&5
15307 echo "${ECHO_T}no" >&6
15314 # The else clause should only fire when bootstrapping the
15315 # libtool distribution, otherwise you forgot to ship ltmain.sh
15316 # with your package, and you will get complaints that there are
15317 # no rules to generate ltmain.sh.
15318 if test -f "$ltmain"; then
15319 # See if we are running on zsh, and set the options which allow our commands through
15320 # without removal of \ escapes.
15321 if test -n "${ZSH_VERSION+set}" ; then
15322 setopt NO_GLOB_SUBST
15324 # Now quote all the things that may contain metacharacters while being
15325 # careful not to overquote the AC_SUBSTed values. We take copies of the
15326 # variables and quote the copies for generation of the libtool script.
15327 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15329 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15330 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15331 deplibs_check_method reload_flag reload_cmds need_locks \
15332 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15333 lt_cv_sys_global_symbol_to_c_name_address \
15334 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15335 old_postinstall_cmds old_postuninstall_cmds \
15339 lt_prog_compiler_wl_F77 \
15340 lt_prog_compiler_pic_F77 \
15341 lt_prog_compiler_static_F77 \
15342 lt_prog_compiler_no_builtin_flag_F77 \
15343 export_dynamic_flag_spec_F77 \
15344 thread_safe_flag_spec_F77 \
15345 whole_archive_flag_spec_F77 \
15346 enable_shared_with_static_runtimes_F77 \
15347 old_archive_cmds_F77 \
15348 old_archive_from_new_cmds_F77 \
15349 predep_objects_F77 \
15350 postdep_objects_F77 \
15353 compiler_lib_search_path_F77 \
15355 archive_expsym_cmds_F77 \
15356 postinstall_cmds_F77 \
15357 postuninstall_cmds_F77 \
15358 old_archive_from_expsyms_cmds_F77 \
15359 allow_undefined_flag_F77 \
15360 no_undefined_flag_F77 \
15361 export_symbols_cmds_F77 \
15362 hardcode_libdir_flag_spec_F77 \
15363 hardcode_libdir_flag_spec_ld_F77 \
15364 hardcode_libdir_separator_F77 \
15365 hardcode_automatic_F77 \
15367 module_expsym_cmds_F77 \
15368 lt_cv_prog_compiler_c_o_F77 \
15369 exclude_expsyms_F77 \
15370 include_expsyms_F77
; do
15373 old_archive_cmds_F77 | \
15374 old_archive_from_new_cmds_F77 | \
15375 archive_cmds_F77 | \
15376 archive_expsym_cmds_F77 | \
15377 module_cmds_F77 | \
15378 module_expsym_cmds_F77 | \
15379 old_archive_from_expsyms_cmds_F77 | \
15380 export_symbols_cmds_F77 | \
15381 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15382 postinstall_cmds | postuninstall_cmds | \
15383 old_postinstall_cmds | old_postuninstall_cmds | \
15384 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15385 # Double-quote double-evaled strings.
15386 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15389 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15395 *'\$0 --fallback-echo"')
15396 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15402 cat <<__EOF__ >> "$cfgfile"
15403 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15405 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15407 # Shell to use when invoking shell scripts.
15410 # Whether or not to build shared libraries.
15411 build_libtool_libs=$enable_shared
15413 # Whether or not to build static libraries.
15414 build_old_libs=$enable_static
15416 # Whether or not to add -lc for building shared libraries.
15417 build_libtool_need_lc=$archive_cmds_need_lc_F77
15419 # Whether or not to disallow shared libs when runtime libs are static
15420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15422 # Whether or not to optimize for fast installation.
15423 fast_install=$enable_fast_install
15426 host_alias=$host_alias
15430 # The build system.
15431 build_alias=$build_alias
15435 # An echo program that does not interpret backslashes.
15440 AR_FLAGS=$lt_AR_FLAGS
15445 # A language-specific compiler.
15446 CC=$lt_compiler_F77
15448 # Is the compiler the GNU C compiler?
15454 # The linker used to build libraries.
15457 # Whether we need hard or soft links.
15460 # A BSD-compatible nm program.
15463 # A symbol stripping program
15466 # Used to examine libraries when file_magic_cmd begins "file"
15467 MAGIC_CMD=$MAGIC_CMD
15469 # Used on cygwin: DLL creation program.
15472 # Used on cygwin: object dumper.
15475 # Used on cygwin: assembler.
15478 # The name of the directory that contains temporary libtool files.
15481 # How to create reloadable object files.
15482 reload_flag=$lt_reload_flag
15483 reload_cmds=$lt_reload_cmds
15485 # How to pass a linker flag through the compiler.
15486 wl=$lt_lt_prog_compiler_wl_F77
15488 # Object file suffix (normally "o").
15489 objext="$ac_objext"
15491 # Old archive suffix (normally "a").
15494 # Shared library suffix (normally ".so").
15495 shrext_cmds='$shrext_cmds'
15497 # Executable file suffix (normally "").
15500 # Additional compiler flags for building library objects.
15501 pic_flag=$lt_lt_prog_compiler_pic_F77
15504 # What is the maximum length of a command?
15505 max_cmd_len=$lt_cv_sys_max_cmd_len
15507 # Does compiler simultaneously support -c and -o options?
15508 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15510 # Must we lock files when doing compilation ?
15511 need_locks=$lt_need_locks
15513 # Do we need the lib prefix for modules?
15514 need_lib_prefix=$need_lib_prefix
15516 # Do we need a version for libraries?
15517 need_version=$need_version
15519 # Whether dlopen is supported.
15520 dlopen_support=$enable_dlopen
15522 # Whether dlopen of programs is supported.
15523 dlopen_self=$enable_dlopen_self
15525 # Whether dlopen of statically linked programs is supported.
15526 dlopen_self_static=$enable_dlopen_self_static
15528 # Compiler flag to prevent dynamic linking.
15529 link_static_flag=$lt_lt_prog_compiler_static_F77
15531 # Compiler flag to turn off builtin functions.
15532 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15534 # Compiler flag to allow reflexive dlopens.
15535 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15537 # Compiler flag to generate shared objects directly from archives.
15538 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15540 # Compiler flag to generate thread-safe objects.
15541 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15543 # Library versioning type.
15544 version_type=$version_type
15546 # Format of library name prefix.
15547 libname_spec=$lt_libname_spec
15549 # List of archive names. First name is the real one, the rest are links.
15550 # The last name is the one that the linker finds with -lNAME.
15551 library_names_spec=$lt_library_names_spec
15553 # The coded name of the library, if different from the real name.
15554 soname_spec=$lt_soname_spec
15556 # Commands used to build and install an old-style archive.
15558 old_archive_cmds=$lt_old_archive_cmds_F77
15559 old_postinstall_cmds=$lt_old_postinstall_cmds
15560 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15562 # Create an old-style archive from a shared archive.
15563 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15565 # Create a temporary old-style archive to link instead of a shared archive.
15566 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15568 # Commands used to build and install a shared archive.
15569 archive_cmds=$lt_archive_cmds_F77
15570 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15571 postinstall_cmds=$lt_postinstall_cmds
15572 postuninstall_cmds=$lt_postuninstall_cmds
15574 # Commands used to build a loadable module (assumed same as above if empty)
15575 module_cmds=$lt_module_cmds_F77
15576 module_expsym_cmds=$lt_module_expsym_cmds_F77
15578 # Commands to strip libraries.
15579 old_striplib=$lt_old_striplib
15580 striplib=$lt_striplib
15582 # Dependencies to place before the objects being linked to create a
15584 predep_objects=$lt_predep_objects_F77
15586 # Dependencies to place after the objects being linked to create a
15588 postdep_objects=$lt_postdep_objects_F77
15590 # Dependencies to place before the objects being linked to create a
15592 predeps=$lt_predeps_F77
15594 # Dependencies to place after the objects being linked to create a
15596 postdeps=$lt_postdeps_F77
15598 # The library search path used internally by the compiler when linking
15599 # a shared library.
15600 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15602 # Method to check whether dependent libraries are shared objects.
15603 deplibs_check_method=$lt_deplibs_check_method
15605 # Command to use when deplibs_check_method == file_magic.
15606 file_magic_cmd=$lt_file_magic_cmd
15608 # Flag that allows shared libraries with undefined symbols to be built.
15609 allow_undefined_flag=$lt_allow_undefined_flag_F77
15611 # Flag that forces no undefined symbols.
15612 no_undefined_flag=$lt_no_undefined_flag_F77
15614 # Commands used to finish a libtool library installation in a directory.
15615 finish_cmds=$lt_finish_cmds
15617 # Same as above, but a single script fragment to be evaled but not shown.
15618 finish_eval=$lt_finish_eval
15620 # Take the output of nm and produce a listing of raw symbols and C names.
15621 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15623 # Transform the output of nm in a proper C declaration
15624 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15626 # Transform the output of nm in a C name address pair
15627 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15629 # This is the shared library runtime path variable.
15630 runpath_var=$runpath_var
15632 # This is the shared library path variable.
15633 shlibpath_var=$shlibpath_var
15635 # Is shlibpath searched before the hard-coded library search path?
15636 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15638 # How to hardcode a shared library path into an executable.
15639 hardcode_action=$hardcode_action_F77
15641 # Whether we should hardcode library paths into libraries.
15642 hardcode_into_libs=$hardcode_into_libs
15644 # Flag to hardcode \$libdir into a binary during linking.
15645 # This must work even if \$libdir does not exist.
15646 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15648 # If ld is used when linking, flag to hardcode \$libdir into
15649 # a binary during linking. This must work even if \$libdir does
15651 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15653 # Whether we need a single -rpath flag with a separated argument.
15654 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15656 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15657 # resulting binary.
15658 hardcode_direct=$hardcode_direct_F77
15660 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15661 # resulting binary.
15662 hardcode_minus_L=$hardcode_minus_L_F77
15664 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15665 # the resulting binary.
15666 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15668 # Set to yes if building a shared library automatically hardcodes DIR into the library
15669 # and all subsequent libraries and executables linked against it.
15670 hardcode_automatic=$hardcode_automatic_F77
15672 # Variables whose values should be saved in libtool wrapper scripts and
15673 # restored at relink time.
15674 variables_saved_for_relink="$variables_saved_for_relink"
15676 # Whether libtool must link a program against all its dependency libraries.
15677 link_all_deplibs=$link_all_deplibs_F77
15679 # Compile-time system search path for libraries
15680 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15682 # Run-time system search path for libraries
15683 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15685 # Fix the shell variable \$srcfile for the compiler.
15686 fix_srcfile_path="$fix_srcfile_path_F77"
15688 # Set to yes if exported symbols are required.
15689 always_export_symbols=$always_export_symbols_F77
15691 # The commands to list exported symbols.
15692 export_symbols_cmds=$lt_export_symbols_cmds_F77
15694 # The commands to extract the exported symbol list from a shared archive.
15695 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15697 # Symbols that should not be listed in the preloaded symbols.
15698 exclude_expsyms=$lt_exclude_expsyms_F77
15700 # Symbols that must always be exported.
15701 include_expsyms=$lt_include_expsyms_F77
15703 # ### END LIBTOOL TAG CONFIG: $tagname
15709 # If there is no Makefile yet, we rely on a make rule to execute
15710 # `config.status --recheck' to rerun these tests and create the
15711 # libtool script then.
15712 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15713 if test -f "$ltmain_in"; then
15714 test -f Makefile
&& make "$ltmain"
15720 ac_cpp
='$CPP $CPPFLAGS'
15721 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15722 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15723 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15733 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15737 # Source file extension for Java test sources.
15740 # Object file extension for compiled Java test sources.
15744 # Code to be used in simple compile tests
15745 lt_simple_compile_test_code
="class foo {}\n"
15747 # Code to be used in simple link tests
15748 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }\n'
15750 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15752 # If no C compiler was specified, use CC.
15755 # Allow CC to be a program name with arguments.
15759 # Allow CC to be a program name with arguments.
15765 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15766 archive_cmds_need_lc_GCJ
=no
15769 ## There is no encapsulation within the following macros, do not change
15770 ## the running order or otherwise move them around unless you know exactly
15771 ## what you are doing...
15773 lt_prog_compiler_no_builtin_flag_GCJ
=
15775 if test "$GCC" = yes; then
15776 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
15779 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15780 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15781 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15784 lt_cv_prog_compiler_rtti_exceptions
=no
15785 ac_outfile
=conftest.
$ac_objext
15786 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
15787 lt_compiler_flag
="-fno-rtti -fno-exceptions"
15788 # Insert the option either (1) after the last *FLAGS variable, or
15789 # (2) before a word containing "conftest.", or (3) at the end.
15790 # Note that $ac_compile itself does not contain backslashes and begins
15791 # with a dollar sign (not a hyphen), so the echo should work correctly.
15792 # The option is referenced via a variable to avoid confusing sed.
15793 lt_compile
=`echo "$ac_compile" | $SED \
15794 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15796 -e 's:$: $lt_compiler_flag:'`
15797 (eval echo "\"\$as_me:15797: $lt_compile\"" >&5)
15798 (eval "$lt_compile" 2>conftest.err
)
15800 cat conftest.err
>&5
15801 echo "$as_me:15801: \$? = $ac_status" >&5
15802 if (exit $ac_status) && test -s "$ac_outfile"; then
15803 # The compiler can only warn and ignore the option if not recognized
15804 # So say no if there are warnings
15805 if test ! -s conftest.err
; then
15806 lt_cv_prog_compiler_rtti_exceptions
=yes
15812 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15813 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15815 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
15816 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15823 lt_prog_compiler_wl_GCJ
=
15824 lt_prog_compiler_pic_GCJ
=
15825 lt_prog_compiler_static_GCJ
=
15827 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15828 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15830 if test "$GCC" = yes; then
15831 lt_prog_compiler_wl_GCJ
='-Wl,'
15832 lt_prog_compiler_static_GCJ
='-static'
15836 # All AIX code is PIC.
15837 if test "$host_cpu" = ia64
; then
15838 # AIX 5 now supports IA64 processor
15839 lt_prog_compiler_static_GCJ
='-Bstatic'
15844 # FIXME: we need at least 68020 code to build shared libraries, but
15845 # adding the `-m68020' flag to GCC prevents building anything better,
15847 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
15850 beos
* | cygwin
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
15851 # PIC is the default for these OSes.
15854 mingw
* | pw32
* | os2
*)
15855 # This hack is so that the source file can tell whether it is being
15856 # built for inclusion in a dll (and should export symbols for example).
15857 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15860 darwin
* | rhapsody
*)
15861 # PIC is the default on this platform
15862 # Common symbols not allowed in MH_DYLIB files
15863 lt_prog_compiler_pic_GCJ
='-fno-common'
15867 # Just because we use GCC doesn't mean we suddenly get shared libraries
15868 # on systems that don't support them.
15869 lt_prog_compiler_can_build_shared_GCJ
=no
15874 if test -d /usr
/nec
; then
15875 lt_prog_compiler_pic_GCJ
=-Kconform_pic
15880 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15881 # not for PA HP-UX.
15882 case "$host_cpu" in
15887 lt_prog_compiler_pic_GCJ
='-fPIC'
15893 lt_prog_compiler_pic_GCJ
='-fPIC'
15897 # PORTME Check for flag to pass linker flags through the system compiler.
15900 lt_prog_compiler_wl_GCJ
='-Wl,'
15901 if test "$host_cpu" = ia64
; then
15902 # AIX 5 now supports IA64 processor
15903 lt_prog_compiler_static_GCJ
='-Bstatic'
15905 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
15909 # PIC is the default on this platform
15910 # Common symbols not allowed in MH_DYLIB files
15911 case "$cc_basename" in
15913 lt_prog_compiler_pic_GCJ
='-qnocommon'
15914 lt_prog_compiler_wl_GCJ
='-Wl,'
15919 mingw
* | pw32
* | os2
*)
15920 # This hack is so that the source file can tell whether it is being
15921 # built for inclusion in a dll (and should export symbols for example).
15922 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
15925 hpux9
* | hpux10
* | hpux11
*)
15926 lt_prog_compiler_wl_GCJ
='-Wl,'
15927 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15928 # not for PA HP-UX.
15929 case "$host_cpu" in
15934 lt_prog_compiler_pic_GCJ
='+Z'
15937 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15938 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
15941 irix5
* | irix6
* | nonstopux
*)
15942 lt_prog_compiler_wl_GCJ
='-Wl,'
15943 # PIC (with -KPIC) is the default.
15944 lt_prog_compiler_static_GCJ
='-non_shared'
15948 lt_prog_compiler_pic_GCJ
='-KPIC'
15949 lt_prog_compiler_static_GCJ
='-Bstatic'
15953 case $cc_basename in
15955 lt_prog_compiler_wl_GCJ
='-Wl,'
15956 lt_prog_compiler_pic_GCJ
='-KPIC'
15957 lt_prog_compiler_static_GCJ
='-static'
15959 pgcc | pgf77 | pgf90
)
15960 # Portland Group compilers (*not* the Pentium gcc compiler,
15961 # which looks to be a dead project)
15962 lt_prog_compiler_wl_GCJ
='-Wl,'
15963 lt_prog_compiler_pic_GCJ
='-fpic'
15964 lt_prog_compiler_static_GCJ
='-static'
15967 lt_prog_compiler_wl_GCJ
='-Wl,'
15968 # All Alpha code is PIC.
15969 lt_prog_compiler_static_GCJ
='-non_shared'
15972 lt_prog_compiler_wl_GCJ
='-lopt='
15977 osf3
* | osf4
* | osf5
*)
15978 lt_prog_compiler_wl_GCJ
='-Wl,'
15979 # All OSF/1 code is PIC.
15980 lt_prog_compiler_static_GCJ
='-non_shared'
15984 lt_prog_compiler_pic_GCJ
='-Kpic'
15985 lt_prog_compiler_static_GCJ
='-dn'
15989 lt_prog_compiler_wl_GCJ
='-Wl,'
15990 lt_prog_compiler_pic_GCJ
='-KPIC'
15991 lt_prog_compiler_static_GCJ
='-Bstatic'
15995 lt_prog_compiler_wl_GCJ
='-Qoption ld '
15996 lt_prog_compiler_pic_GCJ
='-PIC'
15997 lt_prog_compiler_static_GCJ
='-Bstatic'
16000 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16001 lt_prog_compiler_wl_GCJ
='-Wl,'
16002 lt_prog_compiler_pic_GCJ
='-KPIC'
16003 lt_prog_compiler_static_GCJ
='-Bstatic'
16007 if test -d /usr
/nec
;then
16008 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16009 lt_prog_compiler_static_GCJ
='-Bstatic'
16014 lt_prog_compiler_wl_GCJ
='-Wl,'
16015 lt_prog_compiler_can_build_shared_GCJ
=no
16019 lt_prog_compiler_pic_GCJ
='-pic'
16020 lt_prog_compiler_static_GCJ
='-Bstatic'
16024 lt_prog_compiler_can_build_shared_GCJ
=no
16029 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16030 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16033 # Check to make sure the PIC flag actually works.
16035 if test -n "$lt_prog_compiler_pic_GCJ"; then
16037 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16038 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16039 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16042 lt_prog_compiler_pic_works_GCJ
=no
16043 ac_outfile
=conftest.
$ac_objext
16044 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16045 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16046 # Insert the option either (1) after the last *FLAGS variable, or
16047 # (2) before a word containing "conftest.", or (3) at the end.
16048 # Note that $ac_compile itself does not contain backslashes and begins
16049 # with a dollar sign (not a hyphen), so the echo should work correctly.
16050 # The option is referenced via a variable to avoid confusing sed.
16051 lt_compile
=`echo "$ac_compile" | $SED \
16052 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16054 -e 's:$: $lt_compiler_flag:'`
16055 (eval echo "\"\$as_me:16055: $lt_compile\"" >&5)
16056 (eval "$lt_compile" 2>conftest.err
)
16058 cat conftest.err
>&5
16059 echo "$as_me:16059: \$? = $ac_status" >&5
16060 if (exit $ac_status) && test -s "$ac_outfile"; then
16061 # The compiler can only warn and ignore the option if not recognized
16062 # So say no if there are warnings
16063 if test ! -s conftest.err
; then
16064 lt_prog_compiler_pic_works_GCJ
=yes
16070 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16071 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16073 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
16074 case $lt_prog_compiler_pic_GCJ in
16076 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16079 lt_prog_compiler_pic_GCJ
=
16080 lt_prog_compiler_can_build_shared_GCJ
=no
16085 # For platforms which do not support PIC, -DPIC is meaningless:
16087 lt_prog_compiler_pic_GCJ
=
16090 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
16094 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16095 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16096 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16097 echo $ECHO_N "(cached) $ECHO_C" >&6
16099 lt_cv_prog_compiler_c_o_GCJ
=no
16100 $rm -r conftest
2>/dev
/null
16104 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
16106 lt_compiler_flag
="-o out/conftest2.$ac_objext"
16107 # Insert the option either (1) after the last *FLAGS variable, or
16108 # (2) before a word containing "conftest.", or (3) at the end.
16109 # Note that $ac_compile itself does not contain backslashes and begins
16110 # with a dollar sign (not a hyphen), so the echo should work correctly.
16111 lt_compile
=`echo "$ac_compile" | $SED \
16112 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16114 -e 's:$: $lt_compiler_flag:'`
16115 (eval echo "\"\$as_me:16115: $lt_compile\"" >&5)
16116 (eval "$lt_compile" 2>out
/conftest.err
)
16118 cat out
/conftest.err
>&5
16119 echo "$as_me:16119: \$? = $ac_status" >&5
16120 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
16122 # The compiler can only warn and ignore the option if not recognized
16123 # So say no if there are warnings
16124 if test ! -s out
/conftest.err
; then
16125 lt_cv_prog_compiler_c_o_GCJ
=yes
16130 # SGI C++ compiler will create directory out/ii_files/ for
16131 # template instantiation
16132 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
16133 $rm out
/* && rmdir out
16139 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16140 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16143 hard_links
="nottested"
16144 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
16145 # do not overwrite the value of need_locks provided by the user
16146 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16147 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16150 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16152 ln conftest.a conftest.b
2>&5 || hard_links
=no
16153 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
16154 echo "$as_me:$LINENO: result: $hard_links" >&5
16155 echo "${ECHO_T}$hard_links" >&6
16156 if test "$hard_links" = no
; then
16157 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16158 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16165 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16166 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16169 allow_undefined_flag_GCJ
=
16170 enable_shared_with_static_runtimes_GCJ
=no
16172 archive_expsym_cmds_GCJ
=
16173 old_archive_From_new_cmds_GCJ
=
16174 old_archive_from_expsyms_cmds_GCJ
=
16175 export_dynamic_flag_spec_GCJ
=
16176 whole_archive_flag_spec_GCJ
=
16177 thread_safe_flag_spec_GCJ
=
16178 hardcode_libdir_flag_spec_GCJ
=
16179 hardcode_libdir_flag_spec_ld_GCJ
=
16180 hardcode_libdir_separator_GCJ
=
16181 hardcode_direct_GCJ
=no
16182 hardcode_minus_L_GCJ
=no
16183 hardcode_shlibpath_var_GCJ
=unsupported
16184 link_all_deplibs_GCJ
=unknown
16185 hardcode_automatic_GCJ
=no
16187 module_expsym_cmds_GCJ
=
16188 always_export_symbols_GCJ
=no
16189 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16190 # include_expsyms should be a list of space-separated symbols to be *always*
16191 # included in the symbol list
16192 include_expsyms_GCJ
=
16193 # exclude_expsyms can be an extended regexp of symbols to exclude
16194 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16195 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16196 # as well as any symbol that contains `d'.
16197 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
16198 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16199 # platforms (ab)use it in PIC code, but their linkers get confused if
16200 # the symbol is explicitly referenced. Since portable code cannot
16201 # rely on this symbol name, it's probably fine to never include it in
16202 # preloaded symbol tables.
16203 extract_expsyms_cmds
=
16206 cygwin
* | mingw
* | pw32
*)
16207 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16208 # When not using gcc, we currently assume that we are using
16209 # Microsoft Visual C++.
16210 if test "$GCC" != yes; then
16220 if test "$with_gnu_ld" = yes; then
16221 # If archive_cmds runs LD, not CC, wlarc should be empty
16224 # See if GNU ld supports shared libraries.
16226 aix3
* | aix4
* | aix5
*)
16227 # On AIX/PPC, the GNU linker is very broken
16228 if test "$host_cpu" != ia64
; then
16232 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16233 *** to be unable to reliably create shared libraries on AIX.
16234 *** Therefore, libtool is disabling shared libraries support. If you
16235 *** really care for shared libraries, you may want to modify your PATH
16236 *** so that a non-GNU linker is found, and then restart.
16243 archive_cmds_GCJ
='$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)'
16244 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16245 hardcode_minus_L_GCJ
=yes
16247 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16248 # that the semantics of dynamic libraries on AmigaOS, at least up
16249 # to version 4, is to share data among multiple programs linked
16250 # with the same dynamic library. Since this doesn't match the
16251 # behavior of shared libraries on other platforms, we can't use
16257 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16258 allow_undefined_flag_GCJ
=unsupported
16259 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16260 # support --undefined. This deserves some investigation. FIXME
16261 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16267 cygwin
* | mingw
* | pw32
*)
16268 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16269 # as there is no search path for DLLs.
16270 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16271 allow_undefined_flag_GCJ
=unsupported
16272 always_export_symbols_GCJ
=no
16273 enable_shared_with_static_runtimes_GCJ
=yes
16274 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16276 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16277 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16278 # If the export-symbols file already is a .def file (1st line
16279 # is EXPORTS), use it as is; otherwise, prepend...
16280 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16281 cp $export_symbols $output_objdir/$soname.def;
16283 echo EXPORTS > $output_objdir/$soname.def;
16284 cat $export_symbols >> $output_objdir/$soname.def;
16286 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16293 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16294 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16297 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16298 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16303 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
16307 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16308 *** create shared libraries on Solaris systems. Therefore, libtool
16309 *** is disabling shared libraries support. We urge you to upgrade GNU
16310 *** binutils to release 2.9.1 or newer. Another option is to modify
16311 *** your PATH or compiler configuration so that the native linker is
16312 *** used, and then restart.
16315 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16316 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16317 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16324 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16326 hardcode_direct_GCJ
=yes
16327 hardcode_shlibpath_var_GCJ
=no
16331 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16333 case $CC,$host_cpu in
16334 pgf77
* | pgf90
* ) # Portland Group f77 and f90 compilers
16335 tmp_addflag
=' -fpic' ;;
16336 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16337 tmp_addflag
=' -i_dynamic' ;;
16338 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16339 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16340 ifc
* | ifort
*) # Intel Fortran compiler
16341 tmp_addflag
=' -nofor_main' ;;
16343 archive_cmds_GCJ
='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16344 supports_anon_versioning
=no
16345 case `$LD -v 2>/dev/null` in
16346 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
16347 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
16348 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
16349 *\
2.11.
*) ;; # other 2.11 versions
16350 *) supports_anon_versioning
=yes ;;
16352 if test $supports_anon_versioning = yes; then
16353 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
16354 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16355 $echo "local: *; };" >> $output_objdir/$libname.ver~
16356 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16358 archive_expsym_cmds_GCJ
=$archive_cmds_GCJ
16366 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16367 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16368 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16375 if test "$ld_shlibs_GCJ" = yes; then
16376 runpath_var
=LD_RUN_PATH
16377 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
16378 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
16379 # ancient GNU ld didn't support --whole-archive et. al.
16380 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
16381 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16383 whole_archive_flag_spec_GCJ
=
16387 # PORTME fill in a description of your system's linker (not GNU ld)
16390 allow_undefined_flag_GCJ
=unsupported
16391 always_export_symbols_GCJ
=yes
16392 archive_expsym_cmds_GCJ
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16393 # Note: this linker hardcodes the directories in LIBPATH if there
16394 # are no directories specified by -L.
16395 hardcode_minus_L_GCJ
=yes
16396 if test "$GCC" = yes && test -z "$link_static_flag"; then
16397 # Neither direct hardcoding nor static linking is supported with a
16399 hardcode_direct_GCJ
=unsupported
16404 if test "$host_cpu" = ia64
; then
16405 # On IA64, the linker does run time linking by default, so we don't
16406 # have to do anything special.
16407 aix_use_runtimelinking
=no
16408 exp_sym_flag
='-Bexport'
16411 # If we're using GNU nm, then we don't want the "-C" option.
16412 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16413 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
16414 export_symbols_cmds_GCJ
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16416 export_symbols_cmds_GCJ
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16418 aix_use_runtimelinking
=no
16420 # Test if we are trying to use run time linking or normal
16421 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16422 # need to do runtime linking.
16423 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
16424 for ld_flag
in $LDFLAGS; do
16425 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16426 aix_use_runtimelinking
=yes
16432 exp_sym_flag
='-bexport'
16433 no_entry_flag
='-bnoentry'
16436 # When large executables or shared objects are built, AIX ld can
16437 # have problems creating the table of contents. If linking a library
16438 # or program results in "error TOC overflow" add -mminimal-toc to
16439 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16440 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16442 archive_cmds_GCJ
=''
16443 hardcode_direct_GCJ
=yes
16444 hardcode_libdir_separator_GCJ
=':'
16445 link_all_deplibs_GCJ
=yes
16447 if test "$GCC" = yes; then
16448 case $host_os in aix4.
[012]|aix4.
[012].
*)
16449 # We only want to do this on AIX 4.2 and lower, the check
16450 # below for broken collect2 doesn't work under 4.3+
16451 collect2name
=`${CC} -print-prog-name=collect2`
16452 if test -f "$collect2name" && \
16453 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
16455 # We have reworked collect2
16456 hardcode_direct_GCJ
=yes
16458 # We have old collect2
16459 hardcode_direct_GCJ
=unsupported
16460 # It fails to find uninstalled libraries when the uninstalled
16461 # path is not listed in the libpath. Setting hardcode_minus_L
16462 # to unsupported forces relinking
16463 hardcode_minus_L_GCJ
=yes
16464 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16465 hardcode_libdir_separator_GCJ
=
16468 shared_flag
='-shared'
16469 if test "$aix_use_runtimelinking" = yes; then
16470 shared_flag
="$shared_flag "'${wl}-G'
16474 if test "$host_cpu" = ia64
; then
16475 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16476 # chokes on -Wl,-G. The following line is correct:
16479 if test "$aix_use_runtimelinking" = yes; then
16480 shared_flag
='${wl}-G'
16482 shared_flag
='${wl}-bM:SRE'
16487 # It seems that -bexpall does not export symbols beginning with
16488 # underscore (_), so it is better to generate a list of symbols to export.
16489 always_export_symbols_GCJ
=yes
16490 if test "$aix_use_runtimelinking" = yes; then
16491 # Warning - without using the other runtime loading flags (-brtl),
16492 # -berok will link without error, but may produce a broken library.
16493 allow_undefined_flag_GCJ
='-berok'
16494 # Determine the default libpath from the value encoded in an empty executable.
16495 cat >conftest.
$ac_ext <<_ACEOF
16498 cat confdefs.h
>>conftest.
$ac_ext
16499 cat >>conftest.
$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16510 rm -f conftest.
$ac_objext conftest
$ac_exeext
16511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16512 (eval $ac_link) 2>conftest.er1
16514 grep -v '^ *+' conftest.er1
>conftest.err
16516 cat conftest.err
>&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
16519 { ac_try
='test -z "$ac_c_werror_flag"
16520 || test ! -s conftest.err'
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; } &&
16526 { ac_try
='test -s conftest$ac_exeext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16533 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16535 # Check for a 64-bit object if we didn't find anything.
16536 if test -z "$aix_libpath"; then aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16539 echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.
$ac_ext >&5
16543 rm -f conftest.err conftest.
$ac_objext \
16544 conftest
$ac_exeext conftest.
$ac_ext
16545 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16547 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
16548 archive_expsym_cmds_GCJ
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16550 if test "$host_cpu" = ia64; then
16551 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr
/lib
:/lib
'
16552 allow_undefined_flag_GCJ="-z nodefs"
16553 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
16555 # Determine the default libpath from the value encoded in an empty executable.
16556 cat >conftest.$ac_ext <<_ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h. */
16571 rm -f conftest.$ac_objext conftest$ac_exeext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16573 (eval $ac_link) 2>conftest.er1
16575 grep -v '^ *+' conftest.er1 >conftest.err
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -z "$ac_c_werror_flag"
16581 || test ! -s conftest.err'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16586 (exit $ac_status); }; } &&
16587 { ac_try='test -s conftest$ac_exeext'
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16592 (exit $ac_status); }; }; then
16594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16596 # Check for a 64-bit object if we didn't find anything.
16597 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16600 echo "$as_me: failed program was
:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16604 rm -f conftest.err conftest.$ac_objext \
16605 conftest$ac_exeext conftest.$ac_ext
16606 if test -z "$aix_libpath"; then aix_libpath="/usr
/lib
:/lib
"; fi
16608 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16609 # Warning - without using the other run time loading flags,
16610 # -berok will link without error, but may produce a broken library.
16611 no_undefined_flag_GCJ=' ${wl}-bernotok'
16612 allow_undefined_flag_GCJ=' ${wl}-berok'
16613 # -bexpall does not export symbols beginning with underscore (_)
16614 always_export_symbols_GCJ=yes
16615 # Exported symbols can be pulled into shared objects from archives
16616 whole_archive_flag_spec_GCJ=' '
16617 archive_cmds_need_lc_GCJ=yes
16618 # This is similar to how AIX traditionally builds it's shared libraries.
16619 archive_expsym_cmds_GCJ="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16625 archive_cmds_GCJ='$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)'
16626 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16627 hardcode_minus_L_GCJ
=yes
16628 # see comment about different semantics on the GNU ld section
16633 export_dynamic_flag_spec_GCJ
=-rdynamic
16636 cygwin
* | mingw
* | pw32
*)
16637 # When not using gcc, we currently assume that we are using
16638 # Microsoft Visual C++.
16639 # hardcode_libdir_flag_spec is actually meaningless, as there is
16640 # no search path for DLLs.
16641 hardcode_libdir_flag_spec_GCJ
=' '
16642 allow_undefined_flag_GCJ
=unsupported
16643 # Tell ltmain to make .lib files, not .a files.
16645 # Tell ltmain to make .dll files, not .so files.
16647 # FIXME: Setting linknames here is a bad hack.
16648 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16649 # The linker will automatically build a .lib file if we build a DLL.
16650 old_archive_From_new_cmds_GCJ
='true'
16651 # FIXME: Should let the user specify the lib program.
16652 old_archive_cmds_GCJ
='lib /OUT:$oldlib$oldobjs$old_deplibs'
16653 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
16654 enable_shared_with_static_runtimes_GCJ
=yes
16657 darwin
* | rhapsody
*)
16659 rhapsody
* | darwin1.
[012])
16660 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
16663 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16664 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16666 case ${MACOSX_DEPLOYMENT_TARGET} in
16668 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16671 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
16677 archive_cmds_need_lc_GCJ
=no
16678 hardcode_direct_GCJ
=no
16679 hardcode_automatic_GCJ
=yes
16680 hardcode_shlibpath_var_GCJ
=unsupported
16681 whole_archive_flag_spec_GCJ
=''
16682 link_all_deplibs_GCJ
=yes
16683 if test "$GCC" = yes ; then
16684 output_verbose_link_cmd
='echo'
16685 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16686 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16687 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16688 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
16689 module_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
16691 case "$cc_basename" in
16693 output_verbose_link_cmd
='echo'
16694 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16695 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16696 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16697 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
16698 module_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
16708 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16709 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16710 hardcode_shlibpath_var_GCJ
=no
16717 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16718 # support. Future versions do this automatically, but an explicit c++rt0.o
16719 # does not break anything, and helps significantly (at the cost of a little
16722 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16723 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16724 hardcode_direct_GCJ
=yes
16725 hardcode_shlibpath_var_GCJ
=no
16728 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16730 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16731 hardcode_direct_GCJ
=yes
16732 hardcode_minus_L_GCJ
=yes
16733 hardcode_shlibpath_var_GCJ
=no
16736 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16737 freebsd
* | kfreebsd
*-gnu | dragonfly
*)
16738 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16739 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16740 hardcode_direct_GCJ
=yes
16741 hardcode_shlibpath_var_GCJ
=no
16745 if test "$GCC" = yes; then
16746 archive_cmds_GCJ
='$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'
16748 archive_cmds_GCJ
='$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'
16750 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16751 hardcode_libdir_separator_GCJ
=:
16752 hardcode_direct_GCJ
=yes
16754 # hardcode_minus_L: Not really in the search PATH,
16755 # but as the default location of the library.
16756 hardcode_minus_L_GCJ
=yes
16757 export_dynamic_flag_spec_GCJ
='${wl}-E'
16761 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
16762 case "$host_cpu" in
16764 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16767 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16771 case "$host_cpu" in
16773 archive_cmds_GCJ
='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16776 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16780 if test "$with_gnu_ld" = no
; then
16781 case "$host_cpu" in
16783 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16784 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
16785 hardcode_libdir_separator_GCJ
=:
16786 hardcode_direct_GCJ
=no
16787 hardcode_shlibpath_var_GCJ
=no
16790 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16791 hardcode_direct_GCJ
=no
16792 hardcode_shlibpath_var_GCJ
=no
16794 # hardcode_minus_L: Not really in the search PATH,
16795 # but as the default location of the library.
16796 hardcode_minus_L_GCJ
=yes
16799 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
16800 hardcode_libdir_separator_GCJ
=:
16801 hardcode_direct_GCJ
=yes
16802 export_dynamic_flag_spec_GCJ
='${wl}-E'
16804 # hardcode_minus_L: Not really in the search PATH,
16805 # but as the default location of the library.
16806 hardcode_minus_L_GCJ
=yes
16812 irix5
* | irix6
* | nonstopux
*)
16813 if test "$GCC" = yes; then
16814 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16816 archive_cmds_GCJ
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16817 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
16819 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16820 hardcode_libdir_separator_GCJ
=:
16821 link_all_deplibs_GCJ
=yes
16825 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16826 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16828 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16830 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16831 hardcode_direct_GCJ
=yes
16832 hardcode_shlibpath_var_GCJ
=no
16836 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16837 hardcode_direct_GCJ
=yes
16838 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16839 hardcode_libdir_separator_GCJ
=:
16840 hardcode_shlibpath_var_GCJ
=no
16844 hardcode_direct_GCJ
=yes
16845 hardcode_shlibpath_var_GCJ
=no
16846 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16847 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16848 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16849 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16850 export_dynamic_flag_spec_GCJ
='${wl}-E'
16853 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16854 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16855 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16858 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16859 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
16866 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16867 hardcode_minus_L_GCJ
=yes
16868 allow_undefined_flag_GCJ
=unsupported
16869 archive_cmds_GCJ
='$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'
16870 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16874 if test "$GCC" = yes; then
16875 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
16876 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16878 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
16879 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16881 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16882 hardcode_libdir_separator_GCJ
=:
16885 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16886 if test "$GCC" = yes; then
16887 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
16888 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16889 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
16891 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
16892 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16893 archive_expsym_cmds_GCJ
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16894 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16896 # Both c and cxx compiler support -rpath directly
16897 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
16899 hardcode_libdir_separator_GCJ
=:
16903 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16904 hardcode_shlibpath_var_GCJ
=no
16905 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
16906 runpath_var
=LD_RUN_PATH
16907 hardcode_runpath_var
=yes
16911 no_undefined_flag_GCJ
=' -z text'
16912 if test "$GCC" = yes; then
16913 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16914 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16915 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16917 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16918 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16919 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16921 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
16922 hardcode_shlibpath_var_GCJ
=no
16924 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16925 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16926 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
16928 link_all_deplibs_GCJ
=yes
16932 if test "x$host_vendor" = xsequent
; then
16933 # Use $CC to link under sequent, because it throws in some extra .o
16934 # files that make .init and .fini sections work.
16935 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16937 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16939 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
16940 hardcode_direct_GCJ
=yes
16941 hardcode_minus_L_GCJ
=yes
16942 hardcode_shlibpath_var_GCJ
=no
16946 case $host_vendor in
16948 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16949 hardcode_direct_GCJ
=yes # is this really true???
16952 ## LD is ld it makes a PLAMLIB
16953 ## CC just makes a GrossModule.
16954 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16955 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
16956 hardcode_direct_GCJ
=no
16959 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16960 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
16963 runpath_var
='LD_RUN_PATH'
16964 hardcode_shlibpath_var_GCJ
=no
16968 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16969 hardcode_shlibpath_var_GCJ
=no
16970 export_dynamic_flag_spec_GCJ
='-Bexport'
16974 if test -d /usr
/nec
; then
16975 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16976 hardcode_shlibpath_var_GCJ
=no
16977 runpath_var
=LD_RUN_PATH
16978 hardcode_runpath_var
=yes
16984 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16985 hardcode_direct_GCJ
=yes
16986 hardcode_minus_L_GCJ
=no
16987 hardcode_shlibpath_var_GCJ
=no
16988 hardcode_runpath_var
=yes
16989 runpath_var
=LD_RUN_PATH
16992 sysv5OpenUNIX8
* | sysv5UnixWare7
* | sysv5uw
[78]* | unixware7
*)
16993 no_undefined_flag_GCJ
='${wl}-z ${wl}text'
16994 if test "$GCC" = yes; then
16995 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16997 archive_cmds_GCJ
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16999 runpath_var
='LD_RUN_PATH'
17000 hardcode_shlibpath_var_GCJ
=no
17004 no_undefined_flag_GCJ
=' -z text'
17005 # $CC -shared without GNU ld will not create a library from C++
17006 # object files and a static libstdc++, better avoid it by now
17007 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17008 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17009 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17010 hardcode_libdir_flag_spec_GCJ
=
17011 hardcode_shlibpath_var_GCJ
=no
17012 runpath_var
='LD_RUN_PATH'
17016 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17017 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17018 hardcode_shlibpath_var_GCJ
=no
17027 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17028 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17029 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
17031 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17032 if test "$GCC" = yes; then
17033 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17037 # Do we need to explicitly link libc?
17039 case "x$archive_cmds_need_lc_GCJ" in
17041 # Assume -lc should be added
17042 archive_cmds_need_lc_GCJ
=yes
17044 if test "$enable_shared" = yes && test "$GCC" = yes; then
17045 case $archive_cmds_GCJ in
17047 # FIXME: we may have to deal with multi-command sequences.
17050 # Test whether the compiler implicitly links with -lc since on some
17051 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17052 # to ld, don't add -lc before -lgcc.
17053 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17054 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17056 printf "$lt_simple_compile_test_code" > conftest.
$ac_ext
17058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17059 (eval $ac_compile) 2>&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } 2>conftest.err
; then
17065 libobjs
=conftest.
$ac_objext
17067 wl
=$lt_prog_compiler_wl_GCJ
17073 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
17074 allow_undefined_flag_GCJ
=
17075 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17076 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }
17081 archive_cmds_need_lc_GCJ
=no
17083 archive_cmds_need_lc_GCJ
=yes
17085 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
17087 cat conftest.err
1>&5
17090 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17091 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17098 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17099 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17100 library_names_spec
=
17101 libname_spec
='lib$name'
17105 postuninstall_cmds
=
17109 shlibpath_overrides_runpath
=unknown
17111 dynamic_linker
="$host_os ld.so"
17112 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17113 if test "$GCC" = yes; then
17114 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17115 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
17116 # if the path contains ";" then we assume it to be the separator
17117 # otherwise default to the standard path separator (i.e. ":") - it is
17118 # assumed that no part of a normal pathname contains ";" but that should
17119 # okay in the real world where ";" in dirpaths is itself problematic.
17120 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17122 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17125 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17127 need_lib_prefix
=unknown
17128 hardcode_into_libs
=no
17130 # when you set need_version to no, make sure it does not cause -set_version
17131 # flags to be left without arguments
17132 need_version
=unknown
17137 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17138 shlibpath_var
=LIBPATH
17140 # AIX 3 has no versioning support, so we append a major version to the name.
17141 soname_spec
='${libname}${release}${shared_ext}$major'
17148 hardcode_into_libs
=yes
17149 if test "$host_cpu" = ia64
; then
17150 # AIX 5 supports IA64
17151 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17152 shlibpath_var
=LD_LIBRARY_PATH
17154 # With GCC up to 2.95.x, collect2 would create an import file
17155 # for dependence libraries. The import file would start with
17156 # the line `#! .'. This would cause the generated library to
17157 # depend on `.', always an invalid library. This was fixed in
17158 # development snapshots of GCC prior to 3.0.
17160 aix4 | aix4.
[01] | aix4.
[01].
*)
17161 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17163 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
17166 can_build_shared
=no
17170 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17171 # soname into executable. Probably we can add versioning support to
17172 # collect2, so additional links can be useful in future.
17173 if test "$aix_use_runtimelinking" = yes; then
17174 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17175 # instead of lib<name>.a to let people know that these are not
17176 # typical AIX shared libraries.
17177 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17179 # We preserve .a as extension for shared libraries through AIX4.2
17180 # and later when we are not doing run time linking.
17181 library_names_spec
='${libname}${release}.a $libname.a'
17182 soname_spec
='${libname}${release}${shared_ext}$major'
17184 shlibpath_var
=LIBPATH
17189 library_names_spec
='$libname.ixlibrary $libname.a'
17190 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17191 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'
17195 library_names_spec
='${libname}${shared_ext}'
17196 dynamic_linker
="$host_os ld.so"
17197 shlibpath_var
=LIBRARY_PATH
17203 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17204 soname_spec
='${libname}${release}${shared_ext}$major'
17205 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17206 shlibpath_var
=LD_LIBRARY_PATH
17207 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17208 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17209 # the default ld.so.conf also contains /usr/contrib/lib and
17210 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17211 # libtool to hard-code these into programs
17214 cygwin
* | mingw
* | pw32
*)
17215 version_type
=windows
17220 case $GCC,$host_os in
17221 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17222 library_names_spec
='$libname.dll.a'
17223 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17224 postinstall_cmds
='base_file=`basename \${file}`~
17225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17226 dldir=$destdir/`dirname \$dlpath`~
17227 test -d \$dldir || mkdir -p \$dldir~
17228 $install_prog $dir/$dlname \$dldir/$dlname'
17229 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17230 dlpath=$dir/\$dldll~
17232 shlibpath_overrides_runpath
=yes
17236 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17237 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17238 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17241 # MinGW DLLs use traditional 'lib' prefix
17242 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17243 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17244 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17245 # It is most probably a Windows format PATH printed by
17246 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17247 # path with ; separators, and with drive letters. We can handle the
17248 # drive letters (cygwin fileutils understands them), so leave them,
17249 # especially as we might pass files found there to a mingw objdump,
17250 # which wouldn't understand a cygwinified path. Ahh.
17251 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17253 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17257 # pw32 DLLs use 'pw' prefix rather than 'lib'
17258 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17264 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17267 dynamic_linker
='Win32 ld.exe'
17268 # FIXME: first we should search . and the directory the executable is in
17272 darwin
* | rhapsody
*)
17273 dynamic_linker
="$host_os dyld"
17274 version_type
=darwin
17277 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17278 soname_spec
='${libname}${release}${major}$shared_ext'
17279 shlibpath_overrides_runpath
=yes
17280 shlibpath_var
=DYLD_LIBRARY_PATH
17281 shrext_cmds
='$(test .$module = .yes && echo .so || echo .dylib)'
17282 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17283 if test "$GCC" = yes; then
17284 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17286 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
17288 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17295 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17296 soname_spec
='${libname}${release}${shared_ext}$major'
17297 shlibpath_var
=LD_LIBRARY_PATH
17308 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17309 soname_spec
='${libname}${release}${shared_ext}$major'
17310 shlibpath_var
=LD_LIBRARY_PATH
17311 shlibpath_overrides_runpath
=no
17312 hardcode_into_libs
=yes
17313 dynamic_linker
='GNU ld.so'
17316 freebsd
* | dragonfly
*)
17317 # DragonFly does not have aout. When/if they implement a new
17318 # versioning mechanism, adjust this.
17319 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17320 version_type
=freebsd-
$objformat
17321 case $version_type in
17323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17328 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17332 shlibpath_var
=LD_LIBRARY_PATH
17335 shlibpath_overrides_runpath
=yes
17337 freebsd3.
[01]* | freebsdelf3.
[01]*)
17338 shlibpath_overrides_runpath
=yes
17339 hardcode_into_libs
=yes
17342 shlibpath_overrides_runpath
=no
17343 hardcode_into_libs
=yes
17352 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17353 soname_spec
='${libname}${release}${shared_ext}$major'
17354 shlibpath_var
=LD_LIBRARY_PATH
17355 hardcode_into_libs
=yes
17358 hpux9
* | hpux10
* | hpux11
*)
17359 # Give a soname corresponding to the major version so that dld.sl refuses to
17360 # link against other versions.
17364 case "$host_cpu" in
17367 hardcode_into_libs
=yes
17368 dynamic_linker
="$host_os dld.so"
17369 shlibpath_var
=LD_LIBRARY_PATH
17370 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 soname_spec
='${libname}${release}${shared_ext}$major'
17373 if test "X$HPUX_IA64_MODE" = X32
; then
17374 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17376 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17378 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17382 hardcode_into_libs
=yes
17383 dynamic_linker
="$host_os dld.sl"
17384 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17385 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17386 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387 soname_spec
='${libname}${release}${shared_ext}$major'
17388 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17389 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17393 dynamic_linker
="$host_os dld.sl"
17394 shlibpath_var
=SHLIB_PATH
17395 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17396 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397 soname_spec
='${libname}${release}${shared_ext}$major'
17400 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17401 postinstall_cmds
='chmod 555 $lib'
17404 irix5
* | irix6
* | nonstopux
*)
17406 nonstopux
*) version_type
=nonstopux
;;
17408 if test "$lt_cv_prog_gnu_ld" = yes; then
17416 soname_spec
='${libname}${release}${shared_ext}$major'
17417 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17419 irix5
* | nonstopux
*)
17420 libsuff
= shlibsuff
=
17423 case $LD in # libtool.m4 will add one of these switches to LD
17424 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17425 libsuff
= shlibsuff
= libmagic
=32-bit;;
17426 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17427 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17428 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17429 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17430 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17434 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17435 shlibpath_overrides_runpath
=no
17436 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17437 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17438 hardcode_into_libs
=yes
17441 # No shared lib support for Linux oldld, aout, or coff.
17442 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17446 # This must be Linux ELF.
17451 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17452 soname_spec
='${libname}${release}${shared_ext}$major'
17453 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17454 shlibpath_var
=LD_LIBRARY_PATH
17455 shlibpath_overrides_runpath
=no
17456 # This implies no fast_install, which is unacceptable.
17457 # Some rework will be needed to allow for fast_install
17458 # before this can be enabled.
17459 hardcode_into_libs
=yes
17461 # Append ld.so.conf contents to the search path
17462 if test -f /etc
/ld.so.conf
; then
17463 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17464 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17467 # We used to test for /lib/ld.so.1 and disable shared libraries on
17468 # powerpc, because MkLinux only supported shared libraries with the
17469 # GNU dynamic linker. Since this was broken with cross compilers,
17470 # most powerpc-linux boxes support dynamic linking these days and
17471 # people can always --disable-shared, the test was removed, and we
17472 # assume the GNU/Linux dynamic linker is in use.
17473 dynamic_linker
='GNU/Linux ld.so'
17480 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17481 soname_spec
='${libname}${release}${shared_ext}$major'
17482 shlibpath_var
=LD_LIBRARY_PATH
17483 shlibpath_overrides_runpath
=no
17484 hardcode_into_libs
=yes
17485 dynamic_linker
='GNU ld.so'
17492 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17493 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17494 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17495 dynamic_linker
='NetBSD (a.out) ld.so'
17497 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17498 soname_spec
='${libname}${release}${shared_ext}$major'
17499 dynamic_linker
='NetBSD ld.elf_so'
17501 shlibpath_var
=LD_LIBRARY_PATH
17502 shlibpath_overrides_runpath
=yes
17503 hardcode_into_libs
=yes
17508 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17509 shlibpath_var
=LD_LIBRARY_PATH
17510 shlibpath_overrides_runpath
=yes
17517 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17518 soname_spec
='${libname}${release}${shared_ext}$major'
17519 shlibpath_var
=LD_LIBRARY_PATH
17520 shlibpath_overrides_runpath
=yes
17527 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17528 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17529 shlibpath_var
=LD_LIBRARY_PATH
17530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17532 openbsd2.
[89] | openbsd2.
[89].
*)
17533 shlibpath_overrides_runpath
=no
17536 shlibpath_overrides_runpath
=yes
17540 shlibpath_overrides_runpath
=yes
17545 libname_spec
='$name'
17548 library_names_spec
='$libname${shared_ext} $libname.a'
17549 dynamic_linker
='OS/2 ld.exe'
17550 shlibpath_var
=LIBPATH
17553 osf3
* | osf4
* | osf5
*)
17557 soname_spec
='${libname}${release}${shared_ext}$major'
17558 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17559 shlibpath_var
=LD_LIBRARY_PATH
17560 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17561 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17566 soname_spec
='${libname}${release}${shared_ext}$major'
17567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17568 shlibpath_var
=LD_LIBRARY_PATH
17575 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17576 soname_spec
='${libname}${release}${shared_ext}$major'
17577 shlibpath_var
=LD_LIBRARY_PATH
17578 shlibpath_overrides_runpath
=yes
17579 hardcode_into_libs
=yes
17580 # ldd complains unless libraries are executable
17581 postinstall_cmds
='chmod +x $lib'
17586 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17587 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17588 shlibpath_var
=LD_LIBRARY_PATH
17589 shlibpath_overrides_runpath
=yes
17590 if test "$with_gnu_ld" = yes; then
17596 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17598 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17599 soname_spec
='${libname}${release}${shared_ext}$major'
17600 shlibpath_var
=LD_LIBRARY_PATH
17601 case $host_vendor in
17603 shlibpath_overrides_runpath
=no
17605 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17606 runpath_var
=LD_RUN_PATH
17614 shlibpath_overrides_runpath
=no
17615 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17621 if test -d /usr
/nec
;then
17623 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17624 soname_spec
='$libname${shared_ext}.$major'
17625 shlibpath_var
=LD_LIBRARY_PATH
17631 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17632 soname_spec
='${libname}${release}${shared_ext}$major'
17633 shlibpath_var
=LD_LIBRARY_PATH
17640 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17641 echo "${ECHO_T}$dynamic_linker" >&6
17642 test "$dynamic_linker" = no
&& can_build_shared
=no
17644 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17645 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17646 hardcode_action_GCJ
=
17647 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17648 test -n "$runpath_var_GCJ" || \
17649 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17651 # We can hardcode non-existant directories.
17652 if test "$hardcode_direct_GCJ" != no
&&
17653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17654 # have to relink, otherwise we might link with an installed library
17655 # when we should be linking with a yet-to-be-installed one
17656 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17657 test "$hardcode_minus_L_GCJ" != no
; then
17658 # Linking always hardcodes the temporary library directory.
17659 hardcode_action_GCJ
=relink
17661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17662 hardcode_action_GCJ
=immediate
17665 # We cannot hardcode anything, or else we can only hardcode existing
17667 hardcode_action_GCJ
=unsupported
17669 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17670 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17672 if test "$hardcode_action_GCJ" = relink
; then
17673 # Fast installation is not supported
17674 enable_fast_install
=no
17675 elif test "$shlibpath_overrides_runpath" = yes ||
17676 test "$enable_shared" = no
; then
17677 # Fast installation is not necessary
17678 enable_fast_install
=needless
17683 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17684 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17685 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
17686 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17687 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17688 echo "$as_me:$LINENO: result: yes" >&5
17689 echo "${ECHO_T}yes" >&6
17691 # FIXME - insert some real tests, host_os isn't really good enough
17694 if test -n "$STRIP" ; then
17695 striplib
="$STRIP -x"
17696 echo "$as_me:$LINENO: result: yes" >&5
17697 echo "${ECHO_T}yes" >&6
17699 echo "$as_me:$LINENO: result: no" >&5
17700 echo "${ECHO_T}no" >&6
17704 echo "$as_me:$LINENO: result: no" >&5
17705 echo "${ECHO_T}no" >&6
17710 if test "x$enable_dlopen" != xyes
; then
17711 enable_dlopen
=unknown
17712 enable_dlopen_self
=unknown
17713 enable_dlopen_self_static
=unknown
17720 lt_cv_dlopen
="load_add_on"
17722 lt_cv_dlopen_self
=yes
17726 lt_cv_dlopen
="LoadLibrary"
17731 lt_cv_dlopen
="dlopen"
17736 # if libdl is installed we need to link against it
17737 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17738 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17739 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17740 echo $ECHO_N "(cached) $ECHO_C" >&6
17742 ac_check_lib_save_LIBS
=$LIBS
17744 cat >conftest.
$ac_ext <<_ACEOF
17747 cat confdefs.h
>>conftest.
$ac_ext
17748 cat >>conftest.
$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17751 /* Override any gcc2 internal prototype to avoid an error. */
17755 /* We use char because int might match the return type of a gcc2
17756 builtin and then its argument prototype would still apply. */
17766 rm -f conftest.
$ac_objext conftest
$ac_exeext
17767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17768 (eval $ac_link) 2>conftest.er1
17770 grep -v '^ *+' conftest.er1
>conftest.err
17772 cat conftest.err
>&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } &&
17775 { ac_try
='test -z "$ac_c_werror_flag"
17776 || test ! -s conftest.err'
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; } &&
17782 { ac_try
='test -s conftest$ac_exeext'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; }; then
17788 ac_cv_lib_dl_dlopen
=yes
17790 echo "$as_me: failed program was:" >&5
17791 sed 's/^/| /' conftest.
$ac_ext >&5
17793 ac_cv_lib_dl_dlopen
=no
17795 rm -f conftest.err conftest.
$ac_objext \
17796 conftest
$ac_exeext conftest.
$ac_ext
17797 LIBS
=$ac_check_lib_save_LIBS
17799 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17800 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17801 if test $ac_cv_lib_dl_dlopen = yes; then
17802 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17805 lt_cv_dlopen
="dyld"
17807 lt_cv_dlopen_self
=yes
17814 echo "$as_me:$LINENO: checking for shl_load" >&5
17815 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17816 if test "${ac_cv_func_shl_load+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17819 cat >conftest.
$ac_ext <<_ACEOF
17822 cat confdefs.h
>>conftest.
$ac_ext
17823 cat >>conftest.
$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17825 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17827 #define shl_load innocuous_shl_load
17829 /* System header to define __stub macros and hopefully few prototypes,
17830 which can conflict with char shl_load (); below.
17831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17832 <limits.h> exists even on freestanding compilers. */
17835 # include <limits.h>
17837 # include <assert.h>
17842 /* Override any gcc2 internal prototype to avoid an error. */
17847 /* We use char because int might match the return type of a gcc2
17848 builtin and then its argument prototype would still apply. */
17850 /* The GNU C library defines this for functions which it implements
17851 to always fail with ENOSYS. Some functions are actually named
17852 something starting with __ and the normal name is an alias. */
17853 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17856 char (*f) () = shl_load;
17865 return f != shl_load;
17870 rm -f conftest.
$ac_objext conftest
$ac_exeext
17871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17872 (eval $ac_link) 2>conftest.er1
17874 grep -v '^ *+' conftest.er1
>conftest.err
17876 cat conftest.err
>&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } &&
17879 { ac_try
='test -z "$ac_c_werror_flag"
17880 || test ! -s conftest.err'
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; } &&
17886 { ac_try
='test -s conftest$ac_exeext'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 ac_cv_func_shl_load
=yes
17894 echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.
$ac_ext >&5
17897 ac_cv_func_shl_load
=no
17899 rm -f conftest.err conftest.
$ac_objext \
17900 conftest
$ac_exeext conftest.
$ac_ext
17902 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17903 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17904 if test $ac_cv_func_shl_load = yes; then
17905 lt_cv_dlopen
="shl_load"
17907 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17908 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17909 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17912 ac_check_lib_save_LIBS
=$LIBS
17914 cat >conftest.
$ac_ext <<_ACEOF
17917 cat confdefs.h
>>conftest.
$ac_ext
17918 cat >>conftest.
$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17921 /* Override any gcc2 internal prototype to avoid an error. */
17925 /* We use char because int might match the return type of a gcc2
17926 builtin and then its argument prototype would still apply. */
17936 rm -f conftest.
$ac_objext conftest
$ac_exeext
17937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17938 (eval $ac_link) 2>conftest.er1
17940 grep -v '^ *+' conftest.er1
>conftest.err
17942 cat conftest.err
>&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
17945 { ac_try
='test -z "$ac_c_werror_flag"
17946 || test ! -s conftest.err'
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; } &&
17952 { ac_try
='test -s conftest$ac_exeext'
17953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954 (eval $ac_try) 2>&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 ac_cv_lib_dld_shl_load
=yes
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.
$ac_ext >&5
17963 ac_cv_lib_dld_shl_load
=no
17965 rm -f conftest.err conftest.
$ac_objext \
17966 conftest
$ac_exeext conftest.
$ac_ext
17967 LIBS
=$ac_check_lib_save_LIBS
17969 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17970 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17971 if test $ac_cv_lib_dld_shl_load = yes; then
17972 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
17974 echo "$as_me:$LINENO: checking for dlopen" >&5
17975 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17976 if test "${ac_cv_func_dlopen+set}" = set; then
17977 echo $ECHO_N "(cached) $ECHO_C" >&6
17979 cat >conftest.
$ac_ext <<_ACEOF
17982 cat confdefs.h
>>conftest.
$ac_ext
17983 cat >>conftest.
$ac_ext <<_ACEOF
17984 /* end confdefs.h. */
17985 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17987 #define dlopen innocuous_dlopen
17989 /* System header to define __stub macros and hopefully few prototypes,
17990 which can conflict with char dlopen (); below.
17991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17992 <limits.h> exists even on freestanding compilers. */
17995 # include <limits.h>
17997 # include <assert.h>
18002 /* Override any gcc2 internal prototype to avoid an error. */
18007 /* We use char because int might match the return type of a gcc2
18008 builtin and then its argument prototype would still apply. */
18010 /* The GNU C library defines this for functions which it implements
18011 to always fail with ENOSYS. Some functions are actually named
18012 something starting with __ and the normal name is an alias. */
18013 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18016 char (*f) () = dlopen;
18025 return f != dlopen;
18030 rm -f conftest.
$ac_objext conftest
$ac_exeext
18031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18032 (eval $ac_link) 2>conftest.er1
18034 grep -v '^ *+' conftest.er1
>conftest.err
18036 cat conftest.err
>&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } &&
18039 { ac_try
='test -z "$ac_c_werror_flag"
18040 || test ! -s conftest.err'
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; } &&
18046 { ac_try
='test -s conftest$ac_exeext'
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 ac_cv_func_dlopen
=yes
18054 echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.
$ac_ext >&5
18057 ac_cv_func_dlopen
=no
18059 rm -f conftest.err conftest.
$ac_objext \
18060 conftest
$ac_exeext conftest.
$ac_ext
18062 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18063 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18064 if test $ac_cv_func_dlopen = yes; then
18065 lt_cv_dlopen
="dlopen"
18067 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18068 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18069 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
18072 ac_check_lib_save_LIBS
=$LIBS
18074 cat >conftest.
$ac_ext <<_ACEOF
18077 cat confdefs.h
>>conftest.
$ac_ext
18078 cat >>conftest.
$ac_ext <<_ACEOF
18079 /* end confdefs.h. */
18081 /* Override any gcc2 internal prototype to avoid an error. */
18085 /* We use char because int might match the return type of a gcc2
18086 builtin and then its argument prototype would still apply. */
18096 rm -f conftest.
$ac_objext conftest
$ac_exeext
18097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18098 (eval $ac_link) 2>conftest.er1
18100 grep -v '^ *+' conftest.er1
>conftest.err
18102 cat conftest.err
>&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } &&
18105 { ac_try
='test -z "$ac_c_werror_flag"
18106 || test ! -s conftest.err'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; } &&
18112 { ac_try
='test -s conftest$ac_exeext'
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; }; then
18118 ac_cv_lib_dl_dlopen
=yes
18120 echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.
$ac_ext >&5
18123 ac_cv_lib_dl_dlopen
=no
18125 rm -f conftest.err conftest.
$ac_objext \
18126 conftest
$ac_exeext conftest.
$ac_ext
18127 LIBS
=$ac_check_lib_save_LIBS
18129 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18130 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18131 if test $ac_cv_lib_dl_dlopen = yes; then
18132 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18134 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18135 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18136 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18137 echo $ECHO_N "(cached) $ECHO_C" >&6
18139 ac_check_lib_save_LIBS
=$LIBS
18140 LIBS
="-lsvld $LIBS"
18141 cat >conftest.
$ac_ext <<_ACEOF
18144 cat confdefs.h
>>conftest.
$ac_ext
18145 cat >>conftest.
$ac_ext <<_ACEOF
18146 /* end confdefs.h. */
18148 /* Override any gcc2 internal prototype to avoid an error. */
18152 /* We use char because int might match the return type of a gcc2
18153 builtin and then its argument prototype would still apply. */
18163 rm -f conftest.
$ac_objext conftest
$ac_exeext
18164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18165 (eval $ac_link) 2>conftest.er1
18167 grep -v '^ *+' conftest.er1
>conftest.err
18169 cat conftest.err
>&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
18172 { ac_try
='test -z "$ac_c_werror_flag"
18173 || test ! -s conftest.err'
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; } &&
18179 { ac_try
='test -s conftest$ac_exeext'
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 ac_cv_lib_svld_dlopen
=yes
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.
$ac_ext >&5
18190 ac_cv_lib_svld_dlopen
=no
18192 rm -f conftest.err conftest.
$ac_objext \
18193 conftest
$ac_exeext conftest.
$ac_ext
18194 LIBS
=$ac_check_lib_save_LIBS
18196 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18197 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18198 if test $ac_cv_lib_svld_dlopen = yes; then
18199 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18201 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18202 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18203 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18204 echo $ECHO_N "(cached) $ECHO_C" >&6
18206 ac_check_lib_save_LIBS
=$LIBS
18208 cat >conftest.
$ac_ext <<_ACEOF
18211 cat confdefs.h
>>conftest.
$ac_ext
18212 cat >>conftest.
$ac_ext <<_ACEOF
18213 /* end confdefs.h. */
18215 /* Override any gcc2 internal prototype to avoid an error. */
18219 /* We use char because int might match the return type of a gcc2
18220 builtin and then its argument prototype would still apply. */
18230 rm -f conftest.
$ac_objext conftest
$ac_exeext
18231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18232 (eval $ac_link) 2>conftest.er1
18234 grep -v '^ *+' conftest.er1
>conftest.err
18236 cat conftest.err
>&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); } &&
18239 { ac_try
='test -z "$ac_c_werror_flag"
18240 || test ! -s conftest.err'
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; } &&
18246 { ac_try
='test -s conftest$ac_exeext'
18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248 (eval $ac_try) 2>&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; }; then
18252 ac_cv_lib_dld_dld_link
=yes
18254 echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.
$ac_ext >&5
18257 ac_cv_lib_dld_dld_link
=no
18259 rm -f conftest.err conftest.
$ac_objext \
18260 conftest
$ac_exeext conftest.
$ac_ext
18261 LIBS
=$ac_check_lib_save_LIBS
18263 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18264 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18265 if test $ac_cv_lib_dld_dld_link = yes; then
18266 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
18287 if test "x$lt_cv_dlopen" != xno
; then
18293 case $lt_cv_dlopen in
18295 save_CPPFLAGS
="$CPPFLAGS"
18296 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18298 save_LDFLAGS
="$LDFLAGS"
18299 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18302 LIBS
="$lt_cv_dlopen_libs $LIBS"
18304 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18305 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18306 if test "${lt_cv_dlopen_self+set}" = set; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18309 if test "$cross_compiling" = yes; then :
18310 lt_cv_dlopen_self
=cross
18312 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18313 lt_status
=$lt_dlunknown
18314 cat > conftest.
$ac_ext <<EOF
18315 #line 18315 "configure"
18316 #include "confdefs.h"
18325 # define LT_DLGLOBAL RTLD_GLOBAL
18328 # define LT_DLGLOBAL DL_GLOBAL
18330 # define LT_DLGLOBAL 0
18334 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18335 find out it does not work in some platform. */
18336 #ifndef LT_DLLAZY_OR_NOW
18338 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18341 # define LT_DLLAZY_OR_NOW DL_LAZY
18344 # define LT_DLLAZY_OR_NOW RTLD_NOW
18347 # define LT_DLLAZY_OR_NOW DL_NOW
18349 # define LT_DLLAZY_OR_NOW 0
18357 extern "C" void exit (int);
18360 void fnord() { int i=42;}
18363 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18364 int status = $lt_dlunknown;
18368 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18369 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18370 /* dlclose (self); */
18376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18377 (eval $ac_link) 2>&5
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18381 (.
/conftest
; exit; ) 2>/dev
/null
18383 case x
$lt_status in
18384 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18385 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18386 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
18389 # compilation failed
18390 lt_cv_dlopen_self
=no
18397 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18398 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18400 if test "x$lt_cv_dlopen_self" = xyes
; then
18401 LDFLAGS
="$LDFLAGS $link_static_flag"
18402 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18403 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18404 if test "${lt_cv_dlopen_self_static+set}" = set; then
18405 echo $ECHO_N "(cached) $ECHO_C" >&6
18407 if test "$cross_compiling" = yes; then :
18408 lt_cv_dlopen_self_static
=cross
18410 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18411 lt_status
=$lt_dlunknown
18412 cat > conftest.
$ac_ext <<EOF
18413 #line 18413 "configure"
18414 #include "confdefs.h"
18423 # define LT_DLGLOBAL RTLD_GLOBAL
18426 # define LT_DLGLOBAL DL_GLOBAL
18428 # define LT_DLGLOBAL 0
18432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18433 find out it does not work in some platform. */
18434 #ifndef LT_DLLAZY_OR_NOW
18436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18439 # define LT_DLLAZY_OR_NOW DL_LAZY
18442 # define LT_DLLAZY_OR_NOW RTLD_NOW
18445 # define LT_DLLAZY_OR_NOW DL_NOW
18447 # define LT_DLLAZY_OR_NOW 0
18455 extern "C" void exit (int);
18458 void fnord() { int i=42;}
18461 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18462 int status = $lt_dlunknown;
18466 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18467 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18468 /* dlclose (self); */
18474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18475 (eval $ac_link) 2>&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18479 (.
/conftest
; exit; ) 2>/dev
/null
18481 case x
$lt_status in
18482 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18483 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18484 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
18487 # compilation failed
18488 lt_cv_dlopen_self_static
=no
18495 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18496 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18499 CPPFLAGS
="$save_CPPFLAGS"
18500 LDFLAGS
="$save_LDFLAGS"
18505 case $lt_cv_dlopen_self in
18506 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18507 *) enable_dlopen_self
=unknown
;;
18510 case $lt_cv_dlopen_self_static in
18511 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18512 *) enable_dlopen_self_static
=unknown
;;
18517 # The else clause should only fire when bootstrapping the
18518 # libtool distribution, otherwise you forgot to ship ltmain.sh
18519 # with your package, and you will get complaints that there are
18520 # no rules to generate ltmain.sh.
18521 if test -f "$ltmain"; then
18522 # See if we are running on zsh, and set the options which allow our commands through
18523 # without removal of \ escapes.
18524 if test -n "${ZSH_VERSION+set}" ; then
18525 setopt NO_GLOB_SUBST
18527 # Now quote all the things that may contain metacharacters while being
18528 # careful not to overquote the AC_SUBSTed values. We take copies of the
18529 # variables and quote the copies for generation of the libtool script.
18530 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18532 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18533 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18534 deplibs_check_method reload_flag reload_cmds need_locks \
18535 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18536 lt_cv_sys_global_symbol_to_c_name_address \
18537 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18538 old_postinstall_cmds old_postuninstall_cmds \
18542 lt_prog_compiler_wl_GCJ \
18543 lt_prog_compiler_pic_GCJ \
18544 lt_prog_compiler_static_GCJ \
18545 lt_prog_compiler_no_builtin_flag_GCJ \
18546 export_dynamic_flag_spec_GCJ \
18547 thread_safe_flag_spec_GCJ \
18548 whole_archive_flag_spec_GCJ \
18549 enable_shared_with_static_runtimes_GCJ \
18550 old_archive_cmds_GCJ \
18551 old_archive_from_new_cmds_GCJ \
18552 predep_objects_GCJ \
18553 postdep_objects_GCJ \
18556 compiler_lib_search_path_GCJ \
18558 archive_expsym_cmds_GCJ \
18559 postinstall_cmds_GCJ \
18560 postuninstall_cmds_GCJ \
18561 old_archive_from_expsyms_cmds_GCJ \
18562 allow_undefined_flag_GCJ \
18563 no_undefined_flag_GCJ \
18564 export_symbols_cmds_GCJ \
18565 hardcode_libdir_flag_spec_GCJ \
18566 hardcode_libdir_flag_spec_ld_GCJ \
18567 hardcode_libdir_separator_GCJ \
18568 hardcode_automatic_GCJ \
18570 module_expsym_cmds_GCJ \
18571 lt_cv_prog_compiler_c_o_GCJ \
18572 exclude_expsyms_GCJ \
18573 include_expsyms_GCJ
; do
18576 old_archive_cmds_GCJ | \
18577 old_archive_from_new_cmds_GCJ | \
18578 archive_cmds_GCJ | \
18579 archive_expsym_cmds_GCJ | \
18580 module_cmds_GCJ | \
18581 module_expsym_cmds_GCJ | \
18582 old_archive_from_expsyms_cmds_GCJ | \
18583 export_symbols_cmds_GCJ | \
18584 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18585 postinstall_cmds | postuninstall_cmds | \
18586 old_postinstall_cmds | old_postuninstall_cmds | \
18587 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18588 # Double-quote double-evaled strings.
18589 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18592 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18598 *'\$0 --fallback-echo"')
18599 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18605 cat <<__EOF__ >> "$cfgfile"
18606 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18608 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18610 # Shell to use when invoking shell scripts.
18613 # Whether or not to build shared libraries.
18614 build_libtool_libs=$enable_shared
18616 # Whether or not to build static libraries.
18617 build_old_libs=$enable_static
18619 # Whether or not to add -lc for building shared libraries.
18620 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18622 # Whether or not to disallow shared libs when runtime libs are static
18623 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18625 # Whether or not to optimize for fast installation.
18626 fast_install=$enable_fast_install
18629 host_alias=$host_alias
18633 # The build system.
18634 build_alias=$build_alias
18638 # An echo program that does not interpret backslashes.
18643 AR_FLAGS=$lt_AR_FLAGS
18648 # A language-specific compiler.
18649 CC=$lt_compiler_GCJ
18651 # Is the compiler the GNU C compiler?
18657 # The linker used to build libraries.
18660 # Whether we need hard or soft links.
18663 # A BSD-compatible nm program.
18666 # A symbol stripping program
18669 # Used to examine libraries when file_magic_cmd begins "file"
18670 MAGIC_CMD=$MAGIC_CMD
18672 # Used on cygwin: DLL creation program.
18675 # Used on cygwin: object dumper.
18678 # Used on cygwin: assembler.
18681 # The name of the directory that contains temporary libtool files.
18684 # How to create reloadable object files.
18685 reload_flag=$lt_reload_flag
18686 reload_cmds=$lt_reload_cmds
18688 # How to pass a linker flag through the compiler.
18689 wl=$lt_lt_prog_compiler_wl_GCJ
18691 # Object file suffix (normally "o").
18692 objext="$ac_objext"
18694 # Old archive suffix (normally "a").
18697 # Shared library suffix (normally ".so").
18698 shrext_cmds='$shrext_cmds'
18700 # Executable file suffix (normally "").
18703 # Additional compiler flags for building library objects.
18704 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18707 # What is the maximum length of a command?
18708 max_cmd_len=$lt_cv_sys_max_cmd_len
18710 # Does compiler simultaneously support -c and -o options?
18711 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18713 # Must we lock files when doing compilation ?
18714 need_locks=$lt_need_locks
18716 # Do we need the lib prefix for modules?
18717 need_lib_prefix=$need_lib_prefix
18719 # Do we need a version for libraries?
18720 need_version=$need_version
18722 # Whether dlopen is supported.
18723 dlopen_support=$enable_dlopen
18725 # Whether dlopen of programs is supported.
18726 dlopen_self=$enable_dlopen_self
18728 # Whether dlopen of statically linked programs is supported.
18729 dlopen_self_static=$enable_dlopen_self_static
18731 # Compiler flag to prevent dynamic linking.
18732 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18734 # Compiler flag to turn off builtin functions.
18735 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18737 # Compiler flag to allow reflexive dlopens.
18738 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18740 # Compiler flag to generate shared objects directly from archives.
18741 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18743 # Compiler flag to generate thread-safe objects.
18744 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18746 # Library versioning type.
18747 version_type=$version_type
18749 # Format of library name prefix.
18750 libname_spec=$lt_libname_spec
18752 # List of archive names. First name is the real one, the rest are links.
18753 # The last name is the one that the linker finds with -lNAME.
18754 library_names_spec=$lt_library_names_spec
18756 # The coded name of the library, if different from the real name.
18757 soname_spec=$lt_soname_spec
18759 # Commands used to build and install an old-style archive.
18761 old_archive_cmds=$lt_old_archive_cmds_GCJ
18762 old_postinstall_cmds=$lt_old_postinstall_cmds
18763 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18765 # Create an old-style archive from a shared archive.
18766 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18768 # Create a temporary old-style archive to link instead of a shared archive.
18769 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18771 # Commands used to build and install a shared archive.
18772 archive_cmds=$lt_archive_cmds_GCJ
18773 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18774 postinstall_cmds=$lt_postinstall_cmds
18775 postuninstall_cmds=$lt_postuninstall_cmds
18777 # Commands used to build a loadable module (assumed same as above if empty)
18778 module_cmds=$lt_module_cmds_GCJ
18779 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18781 # Commands to strip libraries.
18782 old_striplib=$lt_old_striplib
18783 striplib=$lt_striplib
18785 # Dependencies to place before the objects being linked to create a
18787 predep_objects=$lt_predep_objects_GCJ
18789 # Dependencies to place after the objects being linked to create a
18791 postdep_objects=$lt_postdep_objects_GCJ
18793 # Dependencies to place before the objects being linked to create a
18795 predeps=$lt_predeps_GCJ
18797 # Dependencies to place after the objects being linked to create a
18799 postdeps=$lt_postdeps_GCJ
18801 # The library search path used internally by the compiler when linking
18802 # a shared library.
18803 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18805 # Method to check whether dependent libraries are shared objects.
18806 deplibs_check_method=$lt_deplibs_check_method
18808 # Command to use when deplibs_check_method == file_magic.
18809 file_magic_cmd=$lt_file_magic_cmd
18811 # Flag that allows shared libraries with undefined symbols to be built.
18812 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18814 # Flag that forces no undefined symbols.
18815 no_undefined_flag=$lt_no_undefined_flag_GCJ
18817 # Commands used to finish a libtool library installation in a directory.
18818 finish_cmds=$lt_finish_cmds
18820 # Same as above, but a single script fragment to be evaled but not shown.
18821 finish_eval=$lt_finish_eval
18823 # Take the output of nm and produce a listing of raw symbols and C names.
18824 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18826 # Transform the output of nm in a proper C declaration
18827 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18829 # Transform the output of nm in a C name address pair
18830 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18832 # This is the shared library runtime path variable.
18833 runpath_var=$runpath_var
18835 # This is the shared library path variable.
18836 shlibpath_var=$shlibpath_var
18838 # Is shlibpath searched before the hard-coded library search path?
18839 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18841 # How to hardcode a shared library path into an executable.
18842 hardcode_action=$hardcode_action_GCJ
18844 # Whether we should hardcode library paths into libraries.
18845 hardcode_into_libs=$hardcode_into_libs
18847 # Flag to hardcode \$libdir into a binary during linking.
18848 # This must work even if \$libdir does not exist.
18849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18851 # If ld is used when linking, flag to hardcode \$libdir into
18852 # a binary during linking. This must work even if \$libdir does
18854 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18856 # Whether we need a single -rpath flag with a separated argument.
18857 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18859 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18860 # resulting binary.
18861 hardcode_direct=$hardcode_direct_GCJ
18863 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18864 # resulting binary.
18865 hardcode_minus_L=$hardcode_minus_L_GCJ
18867 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18868 # the resulting binary.
18869 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18871 # Set to yes if building a shared library automatically hardcodes DIR into the library
18872 # and all subsequent libraries and executables linked against it.
18873 hardcode_automatic=$hardcode_automatic_GCJ
18875 # Variables whose values should be saved in libtool wrapper scripts and
18876 # restored at relink time.
18877 variables_saved_for_relink="$variables_saved_for_relink"
18879 # Whether libtool must link a program against all its dependency libraries.
18880 link_all_deplibs=$link_all_deplibs_GCJ
18882 # Compile-time system search path for libraries
18883 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18885 # Run-time system search path for libraries
18886 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18888 # Fix the shell variable \$srcfile for the compiler.
18889 fix_srcfile_path="$fix_srcfile_path_GCJ"
18891 # Set to yes if exported symbols are required.
18892 always_export_symbols=$always_export_symbols_GCJ
18894 # The commands to list exported symbols.
18895 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18897 # The commands to extract the exported symbol list from a shared archive.
18898 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18900 # Symbols that should not be listed in the preloaded symbols.
18901 exclude_expsyms=$lt_exclude_expsyms_GCJ
18903 # Symbols that must always be exported.
18904 include_expsyms=$lt_include_expsyms_GCJ
18906 # ### END LIBTOOL TAG CONFIG: $tagname
18912 # If there is no Makefile yet, we rely on a make rule to execute
18913 # `config.status --recheck' to rerun these tests and create the
18914 # libtool script then.
18915 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18916 if test -f "$ltmain_in"; then
18917 test -f Makefile
&& make "$ltmain"
18923 ac_cpp
='$CPP $CPPFLAGS'
18924 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18925 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18926 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18939 # Source file extension for RC test sources.
18942 # Object file extension for compiled RC test sources.
18946 # Code to be used in simple compile tests
18947 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18949 # Code to be used in simple link tests
18950 lt_simple_link_test_code
="$lt_simple_compile_test_code"
18952 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18954 # If no C compiler was specified, use CC.
18957 # Allow CC to be a program name with arguments.
18961 # Allow CC to be a program name with arguments.
18966 lt_cv_prog_compiler_c_o_RC
=yes
18968 # The else clause should only fire when bootstrapping the
18969 # libtool distribution, otherwise you forgot to ship ltmain.sh
18970 # with your package, and you will get complaints that there are
18971 # no rules to generate ltmain.sh.
18972 if test -f "$ltmain"; then
18973 # See if we are running on zsh, and set the options which allow our commands through
18974 # without removal of \ escapes.
18975 if test -n "${ZSH_VERSION+set}" ; then
18976 setopt NO_GLOB_SUBST
18978 # Now quote all the things that may contain metacharacters while being
18979 # careful not to overquote the AC_SUBSTed values. We take copies of the
18980 # variables and quote the copies for generation of the libtool script.
18981 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18983 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18984 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18985 deplibs_check_method reload_flag reload_cmds need_locks \
18986 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18987 lt_cv_sys_global_symbol_to_c_name_address \
18988 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18989 old_postinstall_cmds old_postuninstall_cmds \
18993 lt_prog_compiler_wl_RC \
18994 lt_prog_compiler_pic_RC \
18995 lt_prog_compiler_static_RC \
18996 lt_prog_compiler_no_builtin_flag_RC \
18997 export_dynamic_flag_spec_RC \
18998 thread_safe_flag_spec_RC \
18999 whole_archive_flag_spec_RC \
19000 enable_shared_with_static_runtimes_RC \
19001 old_archive_cmds_RC \
19002 old_archive_from_new_cmds_RC \
19003 predep_objects_RC \
19004 postdep_objects_RC \
19007 compiler_lib_search_path_RC \
19009 archive_expsym_cmds_RC \
19010 postinstall_cmds_RC \
19011 postuninstall_cmds_RC \
19012 old_archive_from_expsyms_cmds_RC \
19013 allow_undefined_flag_RC \
19014 no_undefined_flag_RC \
19015 export_symbols_cmds_RC \
19016 hardcode_libdir_flag_spec_RC \
19017 hardcode_libdir_flag_spec_ld_RC \
19018 hardcode_libdir_separator_RC \
19019 hardcode_automatic_RC \
19021 module_expsym_cmds_RC \
19022 lt_cv_prog_compiler_c_o_RC \
19023 exclude_expsyms_RC \
19024 include_expsyms_RC
; do
19027 old_archive_cmds_RC | \
19028 old_archive_from_new_cmds_RC | \
19029 archive_cmds_RC | \
19030 archive_expsym_cmds_RC | \
19032 module_expsym_cmds_RC | \
19033 old_archive_from_expsyms_cmds_RC | \
19034 export_symbols_cmds_RC | \
19035 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19036 postinstall_cmds | postuninstall_cmds | \
19037 old_postinstall_cmds | old_postuninstall_cmds | \
19038 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
19039 # Double-quote double-evaled strings.
19040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19043 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19049 *'\$0 --fallback-echo"')
19050 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19056 cat <<__EOF__ >> "$cfgfile"
19057 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19059 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19061 # Shell to use when invoking shell scripts.
19064 # Whether or not to build shared libraries.
19065 build_libtool_libs=$enable_shared
19067 # Whether or not to build static libraries.
19068 build_old_libs=$enable_static
19070 # Whether or not to add -lc for building shared libraries.
19071 build_libtool_need_lc=$archive_cmds_need_lc_RC
19073 # Whether or not to disallow shared libs when runtime libs are static
19074 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19076 # Whether or not to optimize for fast installation.
19077 fast_install=$enable_fast_install
19080 host_alias=$host_alias
19084 # The build system.
19085 build_alias=$build_alias
19089 # An echo program that does not interpret backslashes.
19094 AR_FLAGS=$lt_AR_FLAGS
19099 # A language-specific compiler.
19102 # Is the compiler the GNU C compiler?
19108 # The linker used to build libraries.
19111 # Whether we need hard or soft links.
19114 # A BSD-compatible nm program.
19117 # A symbol stripping program
19120 # Used to examine libraries when file_magic_cmd begins "file"
19121 MAGIC_CMD=$MAGIC_CMD
19123 # Used on cygwin: DLL creation program.
19126 # Used on cygwin: object dumper.
19129 # Used on cygwin: assembler.
19132 # The name of the directory that contains temporary libtool files.
19135 # How to create reloadable object files.
19136 reload_flag=$lt_reload_flag
19137 reload_cmds=$lt_reload_cmds
19139 # How to pass a linker flag through the compiler.
19140 wl=$lt_lt_prog_compiler_wl_RC
19142 # Object file suffix (normally "o").
19143 objext="$ac_objext"
19145 # Old archive suffix (normally "a").
19148 # Shared library suffix (normally ".so").
19149 shrext_cmds='$shrext_cmds'
19151 # Executable file suffix (normally "").
19154 # Additional compiler flags for building library objects.
19155 pic_flag=$lt_lt_prog_compiler_pic_RC
19158 # What is the maximum length of a command?
19159 max_cmd_len=$lt_cv_sys_max_cmd_len
19161 # Does compiler simultaneously support -c and -o options?
19162 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19164 # Must we lock files when doing compilation ?
19165 need_locks=$lt_need_locks
19167 # Do we need the lib prefix for modules?
19168 need_lib_prefix=$need_lib_prefix
19170 # Do we need a version for libraries?
19171 need_version=$need_version
19173 # Whether dlopen is supported.
19174 dlopen_support=$enable_dlopen
19176 # Whether dlopen of programs is supported.
19177 dlopen_self=$enable_dlopen_self
19179 # Whether dlopen of statically linked programs is supported.
19180 dlopen_self_static=$enable_dlopen_self_static
19182 # Compiler flag to prevent dynamic linking.
19183 link_static_flag=$lt_lt_prog_compiler_static_RC
19185 # Compiler flag to turn off builtin functions.
19186 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19188 # Compiler flag to allow reflexive dlopens.
19189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19191 # Compiler flag to generate shared objects directly from archives.
19192 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19194 # Compiler flag to generate thread-safe objects.
19195 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19197 # Library versioning type.
19198 version_type=$version_type
19200 # Format of library name prefix.
19201 libname_spec=$lt_libname_spec
19203 # List of archive names. First name is the real one, the rest are links.
19204 # The last name is the one that the linker finds with -lNAME.
19205 library_names_spec=$lt_library_names_spec
19207 # The coded name of the library, if different from the real name.
19208 soname_spec=$lt_soname_spec
19210 # Commands used to build and install an old-style archive.
19212 old_archive_cmds=$lt_old_archive_cmds_RC
19213 old_postinstall_cmds=$lt_old_postinstall_cmds
19214 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19216 # Create an old-style archive from a shared archive.
19217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19219 # Create a temporary old-style archive to link instead of a shared archive.
19220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19222 # Commands used to build and install a shared archive.
19223 archive_cmds=$lt_archive_cmds_RC
19224 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19225 postinstall_cmds=$lt_postinstall_cmds
19226 postuninstall_cmds=$lt_postuninstall_cmds
19228 # Commands used to build a loadable module (assumed same as above if empty)
19229 module_cmds=$lt_module_cmds_RC
19230 module_expsym_cmds=$lt_module_expsym_cmds_RC
19232 # Commands to strip libraries.
19233 old_striplib=$lt_old_striplib
19234 striplib=$lt_striplib
19236 # Dependencies to place before the objects being linked to create a
19238 predep_objects=$lt_predep_objects_RC
19240 # Dependencies to place after the objects being linked to create a
19242 postdep_objects=$lt_postdep_objects_RC
19244 # Dependencies to place before the objects being linked to create a
19246 predeps=$lt_predeps_RC
19248 # Dependencies to place after the objects being linked to create a
19250 postdeps=$lt_postdeps_RC
19252 # The library search path used internally by the compiler when linking
19253 # a shared library.
19254 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19256 # Method to check whether dependent libraries are shared objects.
19257 deplibs_check_method=$lt_deplibs_check_method
19259 # Command to use when deplibs_check_method == file_magic.
19260 file_magic_cmd=$lt_file_magic_cmd
19262 # Flag that allows shared libraries with undefined symbols to be built.
19263 allow_undefined_flag=$lt_allow_undefined_flag_RC
19265 # Flag that forces no undefined symbols.
19266 no_undefined_flag=$lt_no_undefined_flag_RC
19268 # Commands used to finish a libtool library installation in a directory.
19269 finish_cmds=$lt_finish_cmds
19271 # Same as above, but a single script fragment to be evaled but not shown.
19272 finish_eval=$lt_finish_eval
19274 # Take the output of nm and produce a listing of raw symbols and C names.
19275 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19277 # Transform the output of nm in a proper C declaration
19278 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19280 # Transform the output of nm in a C name address pair
19281 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19283 # This is the shared library runtime path variable.
19284 runpath_var=$runpath_var
19286 # This is the shared library path variable.
19287 shlibpath_var=$shlibpath_var
19289 # Is shlibpath searched before the hard-coded library search path?
19290 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19292 # How to hardcode a shared library path into an executable.
19293 hardcode_action=$hardcode_action_RC
19295 # Whether we should hardcode library paths into libraries.
19296 hardcode_into_libs=$hardcode_into_libs
19298 # Flag to hardcode \$libdir into a binary during linking.
19299 # This must work even if \$libdir does not exist.
19300 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19302 # If ld is used when linking, flag to hardcode \$libdir into
19303 # a binary during linking. This must work even if \$libdir does
19305 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19307 # Whether we need a single -rpath flag with a separated argument.
19308 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19310 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19311 # resulting binary.
19312 hardcode_direct=$hardcode_direct_RC
19314 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19315 # resulting binary.
19316 hardcode_minus_L=$hardcode_minus_L_RC
19318 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19319 # the resulting binary.
19320 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19322 # Set to yes if building a shared library automatically hardcodes DIR into the library
19323 # and all subsequent libraries and executables linked against it.
19324 hardcode_automatic=$hardcode_automatic_RC
19326 # Variables whose values should be saved in libtool wrapper scripts and
19327 # restored at relink time.
19328 variables_saved_for_relink="$variables_saved_for_relink"
19330 # Whether libtool must link a program against all its dependency libraries.
19331 link_all_deplibs=$link_all_deplibs_RC
19333 # Compile-time system search path for libraries
19334 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19336 # Run-time system search path for libraries
19337 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19339 # Fix the shell variable \$srcfile for the compiler.
19340 fix_srcfile_path="$fix_srcfile_path_RC"
19342 # Set to yes if exported symbols are required.
19343 always_export_symbols=$always_export_symbols_RC
19345 # The commands to list exported symbols.
19346 export_symbols_cmds=$lt_export_symbols_cmds_RC
19348 # The commands to extract the exported symbol list from a shared archive.
19349 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19351 # Symbols that should not be listed in the preloaded symbols.
19352 exclude_expsyms=$lt_exclude_expsyms_RC
19354 # Symbols that must always be exported.
19355 include_expsyms=$lt_include_expsyms_RC
19357 # ### END LIBTOOL TAG CONFIG: $tagname
19363 # If there is no Makefile yet, we rely on a make rule to execute
19364 # `config.status --recheck' to rerun these tests and create the
19365 # libtool script then.
19366 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19367 if test -f "$ltmain_in"; then
19368 test -f Makefile
&& make "$ltmain"
19374 ac_cpp
='$CPP $CPPFLAGS'
19375 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19376 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19377 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19384 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19385 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19386 { (exit 1); exit 1; }; }
19390 # Append the new tag name to the list of available tags.
19391 if test -n "$tagname" ; then
19392 available_tags
="$available_tags $tagname"
19398 # Now substitute the updated list of available tags.
19399 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19400 mv "${ofile}T" "$ofile"
19404 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19405 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19406 { (exit 1); exit 1; }; }
19412 # This can be used to rebuild libtool when needed
19413 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19415 # Always use our own libtool.
19416 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19418 # Prevent multiple expansion
19440 # For testing cross-compilation behaviour.
19441 #cross_compiling=yes
19443 { echo; echo "${term_bold}Optional Platform Environment:${term_norm}"; } >& 6
19446 for ac_header in sys/signal.h
19448 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19449 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
19450 echo "$as_me:$LINENO: checking
for $ac_header" >&5
19451 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
19452 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
19453 echo $ECHO_N "(cached
) $ECHO_C" >&6
19455 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
19456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19458 # Is the header compilable?
19459 echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19460 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6
19461 cat >conftest.$ac_ext <<_ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19467 $ac_includes_default
19468 #include <$ac_header>
19470 rm -f conftest.$ac_objext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19472 (eval $ac_compile) 2>conftest.er1
19474 grep -v '^ *+' conftest.er1 >conftest.err
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19478 (exit $ac_status); } &&
19479 { ac_try='test -z "$ac_c_werror_flag"
19480 || test ! -s conftest.err'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19484 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19485 (exit $ac_status); }; } &&
19486 { ac_try='test -s conftest.$ac_objext'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19490 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 ac_header_compiler=yes
19494 echo "$as_me: failed program was
:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19497 ac_header_compiler=no
19499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19500 echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19501 echo "${ECHO_T}$ac_header_compiler" >&6
19503 # Is the header present?
19504 echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19505 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6
19506 cat >conftest.$ac_ext <<_ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h. */
19512 #include <$ac_header>
19514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
19515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19517 grep -v '^ *+' conftest.er1 >conftest.err
19519 cat conftest.err >&5
19520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19521 (exit $ac_status); } >/dev/null; then
19522 if test -s conftest.err; then
19523 ac_cpp_err=$ac_c_preproc_warn_flag
19524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19531 if test -z "$ac_cpp_err"; then
19532 ac_header_preproc=yes
19534 echo "$as_me: failed program was
:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19537 ac_header_preproc=no
19539 rm -f conftest.err conftest.$ac_ext
19540 echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19541 echo "${ECHO_T}$ac_header_preproc" >&6
19543 # So? What about this header?
19544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19546 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19547 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19548 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19550 ac_header_preproc=yes
19553 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19554 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19555 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19556 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19557 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19558 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19559 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19560 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19561 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19563 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19564 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19567 ## ------------------------------------------ ##
19568 ## Report this to the AC_PACKAGE_NAME lists. ##
19569 ## ------------------------------------------ ##
19572 sed "s
/^
/$as_me: WARNING
: /" >&2
19575 echo "$as_me:$LINENO: checking
for $ac_header" >&5
19576 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
19577 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
19578 echo $ECHO_N "(cached
) $ECHO_C" >&6
19580 eval "$as_ac_Header=\
$ac_header_preproc"
19582 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
19583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19587 cat >>confdefs.h <<_ACEOF
19588 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19597 sunos4* | freebsd* | openbsd* | netbsd*)
19598 CFG_SIGNALS=signals-bsd.h ;;
19600 CFG_SIGNALS=signals-hpux.h ;;
19602 CFG_SIGNALS=signals-macos.h ;;
19604 CFG_SIGNALS=signals-hurd.h ;;
19606 CFG_SIGNALS=signals.h ;;
19609 cat >>confdefs.h <<_ACEOF
19610 #define CFG_SIGNALS "$CFG_SIGNALS"
19614 # How to determine the memory page size.
19619 for ac_header in unistd.h
19621 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19622 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
19623 echo "$as_me:$LINENO: checking
for $ac_header" >&5
19624 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
19625 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
19626 echo $ECHO_N "(cached
) $ECHO_C" >&6
19628 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
19629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19631 # Is the header compilable?
19632 echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19633 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6
19634 cat >conftest.$ac_ext <<_ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19640 $ac_includes_default
19641 #include <$ac_header>
19643 rm -f conftest.$ac_objext
19644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19645 (eval $ac_compile) 2>conftest.er1
19647 grep -v '^ *+' conftest.er1 >conftest.err
19649 cat conftest.err >&5
19650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19651 (exit $ac_status); } &&
19652 { ac_try='test -z "$ac_c_werror_flag"
19653 || test ! -s conftest.err'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19657 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19658 (exit $ac_status); }; } &&
19659 { ac_try='test -s conftest.$ac_objext'
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19664 (exit $ac_status); }; }; then
19665 ac_header_compiler=yes
19667 echo "$as_me: failed program was
:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19670 ac_header_compiler=no
19672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19673 echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19674 echo "${ECHO_T}$ac_header_compiler" >&6
19676 # Is the header present?
19677 echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19678 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6
19679 cat >conftest.$ac_ext <<_ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 #include <$ac_header>
19687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
19688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19690 grep -v '^ *+' conftest.er1 >conftest.err
19692 cat conftest.err >&5
19693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19694 (exit $ac_status); } >/dev/null; then
19695 if test -s conftest.err; then
19696 ac_cpp_err=$ac_c_preproc_warn_flag
19697 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19704 if test -z "$ac_cpp_err"; then
19705 ac_header_preproc=yes
19707 echo "$as_me: failed program was
:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19710 ac_header_preproc=no
19712 rm -f conftest.err conftest.$ac_ext
19713 echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19714 echo "${ECHO_T}$ac_header_preproc" >&6
19716 # So? What about this header?
19717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19719 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19720 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19721 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19723 ac_header_preproc=yes
19726 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19727 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19728 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19729 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19730 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19731 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19732 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19733 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19734 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19736 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19737 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19740 ## ------------------------------------------ ##
19741 ## Report this to the AC_PACKAGE_NAME lists. ##
19742 ## ------------------------------------------ ##
19745 sed "s
/^
/$as_me: WARNING
: /" >&2
19748 echo "$as_me:$LINENO: checking
for $ac_header" >&5
19749 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6
19750 if eval "test \"\
${$as_ac_Header+set}\" = set"; then
19751 echo $ECHO_N "(cached
) $ECHO_C" >&6
19753 eval "$as_ac_Header=\
$ac_header_preproc"
19755 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_Header'}'`" >&5
19756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19760 cat >>confdefs.h <<_ACEOF
19761 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19770 echo "$as_me:$LINENO: checking
for getpagesize
" >&5
19771 echo $ECHO_N "checking
for getpagesize...
$ECHO_C" >&6
19772 if test "${sv_cv_func_getpagesize+set}" = set; then
19773 echo $ECHO_N "(cached
) $ECHO_C" >&6
19776 cat >conftest.$ac_ext <<_ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h. */
19785 #include <sys/types.h>
19786 #include <unistd.h>
19792 int pgsz = getpagesize();
19797 rm -f conftest.$ac_objext conftest$ac_exeext
19798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19799 (eval $ac_link) 2>conftest.er1
19801 grep -v '^ *+' conftest.er1 >conftest.err
19803 cat conftest.err >&5
19804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19805 (exit $ac_status); } &&
19806 { ac_try='test -z "$ac_c_werror_flag"
19807 || test ! -s conftest.err'
19808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809 (eval $ac_try) 2>&5
19811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19812 (exit $ac_status); }; } &&
19813 { ac_try='test -s conftest$ac_exeext'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19817 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19818 (exit $ac_status); }; }; then
19819 sv_cv_func_getpagesize=yes
19821 echo "$as_me: failed program was
:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19824 sv_cv_func_getpagesize=no
19826 rm -f conftest.err conftest.$ac_objext \
19827 conftest$ac_exeext conftest.$ac_ext
19829 echo "$as_me:$LINENO: result
: $sv_cv_func_getpagesize" >&5
19830 echo "${ECHO_T}$sv_cv_func_getpagesize" >&6
19831 if test $sv_cv_func_getpagesize = yes; then
19833 cat >>confdefs.h <<\_ACEOF
19834 #define HAVE_GETPAGESIZE 1
19840 echo "$as_me:$LINENO: checking
for sysconf
(_SC_PAGESIZE
)" >&5
19841 echo $ECHO_N "checking
for sysconf
(_SC_PAGESIZE
)...
$ECHO_C" >&6
19842 if test "${sv_cv_func_sysconf_pagesize+set}" = set; then
19843 echo $ECHO_N "(cached
) $ECHO_C" >&6
19846 cat >conftest.$ac_ext <<_ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19855 #include <sys/types.h>
19856 #include <unistd.h>
19862 int pgsz = sysconf (_SC_PAGESIZE);
19867 rm -f conftest.$ac_objext conftest$ac_exeext
19868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19869 (eval $ac_link) 2>conftest.er1
19871 grep -v '^ *+' conftest.er1 >conftest.err
19873 cat conftest.err >&5
19874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19875 (exit $ac_status); } &&
19876 { ac_try='test -z "$ac_c_werror_flag"
19877 || test ! -s conftest.err'
19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19882 (exit $ac_status); }; } &&
19883 { ac_try='test -s conftest$ac_exeext'
19884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19888 (exit $ac_status); }; }; then
19889 sv_cv_func_sysconf_pagesize=yes
19891 echo "$as_me: failed program was
:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19894 sv_cv_func_sysconf_pagesize=no
19896 rm -f conftest.err conftest.$ac_objext \
19897 conftest$ac_exeext conftest.$ac_ext
19899 echo "$as_me:$LINENO: result
: $sv_cv_func_sysconf_pagesize" >&5
19900 echo "${ECHO_T}$sv_cv_func_sysconf_pagesize" >&6
19901 if test $sv_cv_func_sysconf_pagesize = yes; then
19903 cat >>confdefs.h <<\_ACEOF
19904 #define HAVE_SYSCONF_PAGESIZE 1
19910 echo "$as_me:$LINENO: checking
for PAGESIZE
in limits.h
" >&5
19911 echo $ECHO_N "checking
for PAGESIZE
in limits.h...
$ECHO_C" >&6
19912 if test "${sv_cv_macro_pagesize+set}" = set; then
19913 echo $ECHO_N "(cached
) $ECHO_C" >&6
19916 cat >conftest.$ac_ext <<_ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19923 #include <limits.h>
19927 int pgsz = PAGESIZE;
19932 rm -f conftest.$ac_objext conftest$ac_exeext
19933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19934 (eval $ac_link) 2>conftest.er1
19936 grep -v '^ *+' conftest.er1 >conftest.err
19938 cat conftest.err >&5
19939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19940 (exit $ac_status); } &&
19941 { ac_try='test -z "$ac_c_werror_flag"
19942 || test ! -s conftest.err'
19943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944 (eval $ac_try) 2>&5
19946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19947 (exit $ac_status); }; } &&
19948 { ac_try='test -s conftest$ac_exeext'
19949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950 (eval $ac_try) 2>&5
19952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19953 (exit $ac_status); }; }; then
19954 sv_cv_macro_pagesize=yes
19956 echo "$as_me: failed program was
:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19959 sv_cv_macro_pagesize=no
19961 rm -f conftest.err conftest.$ac_objext \
19962 conftest$ac_exeext conftest.$ac_ext
19964 echo "$as_me:$LINENO: result
: $sv_cv_macro_pagesize" >&5
19965 echo "${ECHO_T}$sv_cv_macro_pagesize" >&6
19966 if test $sv_cv_macro_pagesize = yes; then
19968 cat >>confdefs.h <<\_ACEOF
19969 #define HAVE_PAGESIZE 1
19976 # How to allocate fresh memory using mmap.
19977 # (We need mmap, because mprotect() doesn't work on malloc()ed memory on
19984 echo "$as_me:$LINENO: checking
for mmap with MAP_ANON
" >&5
19985 echo $ECHO_N "checking
for mmap with MAP_ANON...
$ECHO_C" >&6
19986 if test "${sv_cv_func_mmap_anon+set}" = set; then
19987 echo $ECHO_N "(cached
) $ECHO_C" >&6
19990 if test "$cross_compiling" = yes; then
19993 freebsd* | linux* | osf*)
19994 sv_cv_func_mmap_anon=yes ;;
19996 cat >conftest.$ac_ext <<_ACEOF
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h. */
20004 #include <sys/types.h>
20005 #include <sys/mman.h>
20010 mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
20015 rm -f conftest.$ac_objext conftest$ac_exeext
20016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20017 (eval $ac_link) 2>conftest.er1
20019 grep -v '^ *+' conftest.er1 >conftest.err
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20023 (exit $ac_status); } &&
20024 { ac_try='test -z "$ac_c_werror_flag"
20025 || test ! -s conftest.err'
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20029 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20030 (exit $ac_status); }; } &&
20031 { ac_try='test -s conftest$ac_exeext'
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20036 (exit $ac_status); }; }; then
20037 sv_cv_func_mmap_anon="guessing
yes"
20039 echo "$as_me: failed program was
:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20042 sv_cv_func_mmap_anon=no
20044 rm -f conftest.err conftest.$ac_objext \
20045 conftest$ac_exeext conftest.$ac_ext
20050 cat >conftest.$ac_ext <<_ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h. */
20058 #include <sys/types.h>
20059 #include <sys/mman.h>
20062 void *p = mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
20063 return (p == (void *)(-1));
20066 rm -f conftest$ac_exeext
20067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20068 (eval $ac_link) 2>&5
20070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073 (eval $ac_try) 2>&5
20075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20076 (exit $ac_status); }; }; then
20077 sv_cv_func_mmap_anon=yes
20079 echo "$as_me: program exited with status
$ac_status" >&5
20080 echo "$as_me: failed program was
:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20083 ( exit $ac_status )
20084 sv_cv_func_mmap_anon=no
20086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20090 echo "$as_me:$LINENO: result
: $sv_cv_func_mmap_anon" >&5
20091 echo "${ECHO_T}$sv_cv_func_mmap_anon" >&6
20092 if test "$sv_cv_func_mmap_anon" != no; then
20094 cat >>confdefs.h <<\_ACEOF
20095 #define HAVE_MMAP_ANON 1
20101 echo "$as_me:$LINENO: checking
for mmap with MAP_ANONYMOUS
" >&5
20102 echo $ECHO_N "checking
for mmap with MAP_ANONYMOUS...
$ECHO_C" >&6
20103 if test "${sv_cv_func_mmap_anonymous+set}" = set; then
20104 echo $ECHO_N "(cached
) $ECHO_C" >&6
20107 if test "$cross_compiling" = yes; then
20110 hpux* | linux* | osf*)
20111 sv_cv_func_mmap_anonymous=yes ;;
20113 cat >conftest.$ac_ext <<_ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h. */
20121 #include <sys/types.h>
20122 #include <sys/mman.h>
20127 mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
20132 rm -f conftest.$ac_objext conftest$ac_exeext
20133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20134 (eval $ac_link) 2>conftest.er1
20136 grep -v '^ *+' conftest.er1 >conftest.err
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20140 (exit $ac_status); } &&
20141 { ac_try='test -z "$ac_c_werror_flag"
20142 || test ! -s conftest.err'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20147 (exit $ac_status); }; } &&
20148 { ac_try='test -s conftest$ac_exeext'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154 sv_cv_func_mmap_anonymous="guessing
yes"
20156 echo "$as_me: failed program was
:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20159 sv_cv_func_mmap_anonymous=no
20161 rm -f conftest.err conftest.$ac_objext \
20162 conftest$ac_exeext conftest.$ac_ext
20167 cat >conftest.$ac_ext <<_ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h. */
20175 #include <sys/types.h>
20176 #include <sys/mman.h>
20179 void *p = mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
20180 return (p == (void *)(-1));
20183 rm -f conftest$ac_exeext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20185 (eval $ac_link) 2>&5
20187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20192 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20193 (exit $ac_status); }; }; then
20194 sv_cv_func_mmap_anonymous=yes
20196 echo "$as_me: program exited with status
$ac_status" >&5
20197 echo "$as_me: failed program was
:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20200 ( exit $ac_status )
20201 sv_cv_func_mmap_anonymous=no
20203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20207 echo "$as_me:$LINENO: result
: $sv_cv_func_mmap_anonymous" >&5
20208 echo "${ECHO_T}$sv_cv_func_mmap_anonymous" >&6
20209 if test "$sv_cv_func_mmap_anonymous" != no; then
20211 cat >>confdefs.h <<\_ACEOF
20212 #define HAVE_MMAP_ANONYMOUS 1
20218 echo "$as_me:$LINENO: checking
for mmap of
/dev
/zero
" >&5
20219 echo $ECHO_N "checking
for mmap of
/dev
/zero...
$ECHO_C" >&6
20220 if test "${sv_cv_func_mmap_devzero+set}" = set; then
20221 echo $ECHO_N "(cached
) $ECHO_C" >&6
20224 if test "$cross_compiling" = yes; then
20227 freebsd* | irix* | linux* | osf* | solaris* | sunos4*)
20228 sv_cv_func_mmap_devzero=yes ;;
20230 cat >conftest.$ac_ext <<_ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20238 #include <sys/types.h>
20239 #include <sys/mman.h>
20247 mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_FILE | MAP_PRIVATE, 7, 0);
20252 rm -f conftest.$ac_objext conftest$ac_exeext
20253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20254 (eval $ac_link) 2>conftest.er1
20256 grep -v '^ *+' conftest.er1 >conftest.err
20258 cat conftest.err >&5
20259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20260 (exit $ac_status); } &&
20261 { ac_try='test -z "$ac_c_werror_flag"
20262 || test ! -s conftest.err'
20263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264 (eval $ac_try) 2>&5
20266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20267 (exit $ac_status); }; } &&
20268 { ac_try='test -s conftest$ac_exeext'
20269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20270 (eval $ac_try) 2>&5
20272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20273 (exit $ac_status); }; }; then
20274 sv_cv_func_mmap_devzero="guessing
yes"
20276 echo "$as_me: failed program was
:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20279 sv_cv_func_mmap_devzero=no
20281 rm -f conftest.err conftest.$ac_objext \
20282 conftest$ac_exeext conftest.$ac_ext
20287 cat >conftest.$ac_ext <<_ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20295 #include <sys/types.h>
20296 #include <sys/mman.h>
20305 fd = open ("/dev
/zero
", O_RDONLY, 0666);
20306 if (fd < 0) return 1;
20307 p = mmap (0, 0x10000, PROT_READ | PROT_WRITE, MAP_FILE | MAP_PRIVATE, fd, 0);
20308 return (p == (void *)(-1));
20311 rm -f conftest$ac_exeext
20312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20313 (eval $ac_link) 2>&5
20315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318 (eval $ac_try) 2>&5
20320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20321 (exit $ac_status); }; }; then
20322 sv_cv_func_mmap_devzero=yes
20324 echo "$as_me: program exited with status
$ac_status" >&5
20325 echo "$as_me: failed program was
:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20328 ( exit $ac_status )
20329 sv_cv_func_mmap_devzero=no
20331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20335 echo "$as_me:$LINENO: result
: $sv_cv_func_mmap_devzero" >&5
20336 echo "${ECHO_T}$sv_cv_func_mmap_devzero" >&6
20337 if test "$sv_cv_func_mmap_devzero" != no; then
20339 cat >>confdefs.h <<\_ACEOF
20340 #define HAVE_MMAP_DEVZERO 1
20346 # How to write a SIGSEGV handler with access to the fault address.
20348 # On MacOS X 10.2 or newer, we don't need these tests, because we'll end up
20349 # using handler-macos.c anyway. If we were to perform the tests, 5 Crash Report
20350 # dialog windows would pop up.
20352 macos* | darwin[6-9]* | darwin[1-9][0-9]*) ;;
20359 echo "$as_me:$LINENO: checking whether a fault handler according to POSIX works
" >&5
20360 echo $ECHO_N "checking whether a fault handler according to POSIX works...
$ECHO_C" >&6
20361 if test "${sv_cv_fault_posix+set}" = set; then
20362 echo $ECHO_N "(cached
) $ECHO_C" >&6
20365 if test "$cross_compiling" = yes; then
20367 *-*-solaris2.[7-9] | i?86-*-linux2.[4-9]* | i?86-*-freebsd[4-9]* | alpha*-dec-osf[4-9]* | *-*-hpux11* | mips-sgi-irix6*) sv_cv_fault_posix=yes ;;
20369 cat >conftest.$ac_ext <<_ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h. */
20377 #include <signal.h>
20379 void sigsegv_handler (int sig, siginfo_t *sip, void *ucp)
20381 void *fault_address = (void *) (sip->si_addr);
20387 struct sigaction action;
20388 action.sa_sigaction = &sigsegv_handler;
20389 action.sa_flags = SA_SIGINFO;
20394 rm -f conftest.$ac_objext conftest$ac_exeext
20395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20396 (eval $ac_link) 2>conftest.er1
20398 grep -v '^ *+' conftest.er1 >conftest.err
20400 cat conftest.err >&5
20401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20402 (exit $ac_status); } &&
20403 { ac_try='test -z "$ac_c_werror_flag"
20404 || test ! -s conftest.err'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20409 (exit $ac_status); }; } &&
20410 { ac_try='test -s conftest$ac_exeext'
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20414 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20415 (exit $ac_status); }; }; then
20416 sv_cv_fault_posix="guessing no
"
20418 echo "$as_me: failed program was
:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20421 sv_cv_fault_posix=no
20423 rm -f conftest.err conftest.$ac_objext \
20424 conftest$ac_exeext conftest.$ac_ext
20429 cat >conftest.$ac_ext <<_ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20437 #include <stdlib.h>
20438 #include <signal.h>
20439 #if HAVE_SYS_SIGNAL_H
20440 # include <sys/signal.h>
20443 #include <sys/types.h>
20444 #include <sys/mman.h>
20445 #if HAVE_MMAP_DEVZERO
20446 # include <fcntl.h>
20448 # define MAP_FILE 0
20452 # define PROT_NONE 0
20455 # define zero_fd -1
20456 # define map_flags MAP_ANON | MAP_PRIVATE
20457 #elif HAVE_MMAP_ANONYMOUS
20458 # define zero_fd -1
20459 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
20460 #elif HAVE_MMAP_DEVZERO
20461 static int zero_fd;
20462 # define map_flags MAP_FILE | MAP_PRIVATE
20464 unsigned long page;
20465 int handler_called = 0;
20466 void sigsegv_handler (int sig, siginfo_t *sip, void *ucp)
20468 void *fault_address = (void *) (sip->si_addr);
20470 if (handler_called == 10)
20472 if (fault_address != (void*)(page + 0x678))
20474 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
20477 void crasher (unsigned long p)
20479 *(int *) (p + 0x678) = 42;
20484 struct sigaction action;
20485 /* Preparations. */
20486 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
20487 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
20489 /* Setup some mmaped memory. */
20491 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
20492 freedom about the address range. */
20493 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
20495 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
20497 if (p == (void *)(-1))
20499 page = (unsigned long) p;
20500 /* Make it read-only. */
20501 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
20503 /* Install the SIGSEGV handler. */
20504 sigemptyset(&action.sa_mask);
20505 action.sa_sigaction = &sigsegv_handler;
20506 action.sa_flags = SA_SIGINFO;
20507 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
20508 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
20509 /* The first write access should invoke the handler and then complete. */
20511 /* The second write access should not invoke the handler. */
20513 /* Check that the handler was called only once. */
20514 if (handler_called != 1)
20520 rm -f conftest$ac_exeext
20521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20522 (eval $ac_link) 2>&5
20524 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527 (eval $ac_try) 2>&5
20529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20530 (exit $ac_status); }; }; then
20531 sv_cv_fault_posix=yes
20533 echo "$as_me: program exited with status
$ac_status" >&5
20534 echo "$as_me: failed program was
:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 ( exit $ac_status )
20538 sv_cv_fault_posix=no
20540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20544 echo "$as_me:$LINENO: result
: $sv_cv_fault_posix" >&5
20545 echo "${ECHO_T}$sv_cv_fault_posix" >&6
20552 echo "$as_me:$LINENO: checking whether a fault handler according to Linux
/i386 works
" >&5
20553 echo $ECHO_N "checking whether a fault handler according to Linux
/i386 works...
$ECHO_C" >&6
20554 if test "${sv_cv_fault_linux_i386+set}" = set; then
20555 echo $ECHO_N "(cached
) $ECHO_C" >&6
20558 if test "$cross_compiling" = yes; then
20560 i?86-*-linux2.[2-9]*) sv_cv_fault_linux_i386=yes ;;
20562 cat >conftest.$ac_ext <<_ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20570 #include <signal.h>
20571 #include <asm/sigcontext.h>
20572 void sigsegv_handler (int sig, struct sigcontext sc)
20574 void *fault_address = (void *) (sc.cr2);
20580 struct sigaction action;
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20588 (eval $ac_link) 2>conftest.er1
20590 grep -v '^ *+' conftest.er1 >conftest.err
20592 cat conftest.err >&5
20593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20594 (exit $ac_status); } &&
20595 { ac_try='test -z "$ac_c_werror_flag"
20596 || test ! -s conftest.err'
20597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598 (eval $ac_try) 2>&5
20600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20601 (exit $ac_status); }; } &&
20602 { ac_try='test -s conftest$ac_exeext'
20603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20604 (eval $ac_try) 2>&5
20606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20607 (exit $ac_status); }; }; then
20608 sv_cv_fault_linux_i386="guessing no
"
20610 echo "$as_me: failed program was
:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20613 sv_cv_fault_linux_i386=no
20615 rm -f conftest.err conftest.$ac_objext \
20616 conftest$ac_exeext conftest.$ac_ext
20621 cat >conftest.$ac_ext <<_ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20629 #include <stdlib.h>
20630 #include <signal.h>
20631 #if HAVE_SYS_SIGNAL_H
20632 # include <sys/signal.h>
20634 #include <asm/sigcontext.h>
20635 #include <sys/types.h>
20636 #include <sys/mman.h>
20637 #if HAVE_MMAP_DEVZERO
20638 # include <fcntl.h>
20640 # define MAP_FILE 0
20644 # define PROT_NONE 0
20647 # define zero_fd -1
20648 # define map_flags MAP_ANON | MAP_PRIVATE
20649 #elif HAVE_MMAP_ANONYMOUS
20650 # define zero_fd -1
20651 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
20652 #elif HAVE_MMAP_DEVZERO
20653 static int zero_fd;
20654 # define map_flags MAP_FILE | MAP_PRIVATE
20656 unsigned long page;
20657 int handler_called = 0;
20658 void sigsegv_handler (int sig, struct sigcontext sc)
20660 void *fault_address = (void *) (sc.cr2);
20662 if (handler_called == 10)
20664 if (fault_address != (void*)(page + 0x678))
20666 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
20669 void crasher (unsigned long p)
20671 *(int *) (p + 0x678) = 42;
20676 struct sigaction action;
20677 /* Preparations. */
20678 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
20679 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
20681 /* Setup some mmaped memory. */
20683 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
20684 freedom about the address range. */
20685 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
20687 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
20689 if (p == (void *)(-1))
20691 page = (unsigned long) p;
20692 /* Make it read-only. */
20693 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
20695 /* Install the SIGSEGV handler. */
20696 sigemptyset(&action.sa_mask);
20698 action.sa_handler = (void (*) (int)) &sigsegv_handler;
20699 action.sa_flags = 0;
20701 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
20702 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
20703 /* The first write access should invoke the handler and then complete. */
20705 /* The second write access should not invoke the handler. */
20707 /* Check that the handler was called only once. */
20708 if (handler_called != 1)
20714 rm -f conftest$ac_exeext
20715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20716 (eval $ac_link) 2>&5
20718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20724 (exit $ac_status); }; }; then
20725 sv_cv_fault_linux_i386=yes
20727 echo "$as_me: program exited with status
$ac_status" >&5
20728 echo "$as_me: failed program was
:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20731 ( exit $ac_status )
20732 sv_cv_fault_linux_i386=no
20734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20738 echo "$as_me:$LINENO: result
: $sv_cv_fault_linux_i386" >&5
20739 echo "${ECHO_T}$sv_cv_fault_linux_i386" >&6
20746 echo "$as_me:$LINENO: checking whether a fault handler according to old Linux
/i386 works
" >&5
20747 echo $ECHO_N "checking whether a fault handler according to old Linux
/i386 works...
$ECHO_C" >&6
20748 if test "${sv_cv_fault_linux_i386_old+set}" = set; then
20749 echo $ECHO_N "(cached
) $ECHO_C" >&6
20752 if test "$cross_compiling" = yes; then
20754 i?86-*-linux2.[2-9]*) sv_cv_fault_linux_i386_old=yes ;;
20756 cat >conftest.$ac_ext <<_ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20764 #include <signal.h>
20766 void sigsegv_handler (int sig, unsigned int more)
20768 void *fault_address = (void *) (((unsigned long *) &more) [21]);
20774 struct sigaction action;
20780 rm -f conftest.$ac_objext conftest$ac_exeext
20781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20782 (eval $ac_link) 2>conftest.er1
20784 grep -v '^ *+' conftest.er1 >conftest.err
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20788 (exit $ac_status); } &&
20789 { ac_try='test -z "$ac_c_werror_flag"
20790 || test ! -s conftest.err'
20791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20792 (eval $ac_try) 2>&5
20794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20795 (exit $ac_status); }; } &&
20796 { ac_try='test -s conftest$ac_exeext'
20797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20798 (eval $ac_try) 2>&5
20800 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20801 (exit $ac_status); }; }; then
20802 sv_cv_fault_linux_i386_old="guessing no
"
20804 echo "$as_me: failed program was
:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20807 sv_cv_fault_linux_i386_old=no
20809 rm -f conftest.err conftest.$ac_objext \
20810 conftest$ac_exeext conftest.$ac_ext
20815 cat >conftest.$ac_ext <<_ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20823 #include <stdlib.h>
20824 #include <signal.h>
20825 #if HAVE_SYS_SIGNAL_H
20826 # include <sys/signal.h>
20829 #include <sys/types.h>
20830 #include <sys/mman.h>
20831 #if HAVE_MMAP_DEVZERO
20832 # include <fcntl.h>
20834 # define MAP_FILE 0
20838 # define PROT_NONE 0
20841 # define zero_fd -1
20842 # define map_flags MAP_ANON | MAP_PRIVATE
20843 #elif HAVE_MMAP_ANONYMOUS
20844 # define zero_fd -1
20845 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
20846 #elif HAVE_MMAP_DEVZERO
20847 static int zero_fd;
20848 # define map_flags MAP_FILE | MAP_PRIVATE
20850 unsigned long page;
20851 int handler_called = 0;
20852 void sigsegv_handler (int sig, unsigned int more)
20854 void *fault_address = (void *) (((unsigned long *) &more) [21]);
20856 if (handler_called == 10)
20858 if (fault_address != (void*)(page + 0x678))
20860 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
20863 void crasher (unsigned long p)
20865 *(int *) (p + 0x678) = 42;
20870 struct sigaction action;
20871 /* Preparations. */
20872 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
20873 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
20875 /* Setup some mmaped memory. */
20877 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
20878 freedom about the address range. */
20879 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
20881 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
20883 if (p == (void *)(-1))
20885 page = (unsigned long) p;
20886 /* Make it read-only. */
20887 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
20889 /* Install the SIGSEGV handler. */
20890 sigemptyset(&action.sa_mask);
20892 action.sa_handler = (void (*) (int)) &sigsegv_handler;
20893 action.sa_flags = 0;
20895 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
20896 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
20897 /* The first write access should invoke the handler and then complete. */
20899 /* The second write access should not invoke the handler. */
20901 /* Check that the handler was called only once. */
20902 if (handler_called != 1)
20908 rm -f conftest$ac_exeext
20909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20910 (eval $ac_link) 2>&5
20912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915 (eval $ac_try) 2>&5
20917 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20918 (exit $ac_status); }; }; then
20919 sv_cv_fault_linux_i386_old=yes
20921 echo "$as_me: program exited with status
$ac_status" >&5
20922 echo "$as_me: failed program was
:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20925 ( exit $ac_status )
20926 sv_cv_fault_linux_i386_old=no
20928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20932 echo "$as_me:$LINENO: result
: $sv_cv_fault_linux_i386_old" >&5
20933 echo "${ECHO_T}$sv_cv_fault_linux_i386_old" >&6
20940 echo "$as_me:$LINENO: checking whether a fault handler according to Linux
/m68k works
" >&5
20941 echo $ECHO_N "checking whether a fault handler according to Linux
/m68k works...
$ECHO_C" >&6
20942 if test "${sv_cv_fault_linux_m68k+set}" = set; then
20943 echo $ECHO_N "(cached
) $ECHO_C" >&6
20946 if test "$cross_compiling" = yes; then
20950 cat >conftest.$ac_ext <<_ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20958 #include <signal.h>
20959 #include <asm/sigcontext.h>
20960 #include "$srcdir/src
/fault-linux-m68k.c
"
20961 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
20963 void *fault_address = (void *) (get_fault_addr (scp));
20969 struct sigaction action;
20975 rm -f conftest.$ac_objext conftest$ac_exeext
20976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20977 (eval $ac_link) 2>conftest.er1
20979 grep -v '^ *+' conftest.er1 >conftest.err
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20983 (exit $ac_status); } &&
20984 { ac_try='test -z "$ac_c_werror_flag"
20985 || test ! -s conftest.err'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20990 (exit $ac_status); }; } &&
20991 { ac_try='test -s conftest$ac_exeext'
20992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993 (eval $ac_try) 2>&5
20995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 sv_cv_fault_linux_m68k="guessing no
"
20999 echo "$as_me: failed program was
:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21002 sv_cv_fault_linux_m68k=no
21004 rm -f conftest.err conftest.$ac_objext \
21005 conftest$ac_exeext conftest.$ac_ext
21010 cat >conftest.$ac_ext <<_ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21018 #include <stdlib.h>
21019 #include <signal.h>
21020 #if HAVE_SYS_SIGNAL_H
21021 # include <sys/signal.h>
21023 #include <asm/sigcontext.h>
21024 #include "$srcdir/src
/fault-linux-m68k.c
"
21025 #include <sys/types.h>
21026 #include <sys/mman.h>
21027 #if HAVE_MMAP_DEVZERO
21028 # include <fcntl.h>
21030 # define MAP_FILE 0
21034 # define PROT_NONE 0
21037 # define zero_fd -1
21038 # define map_flags MAP_ANON | MAP_PRIVATE
21039 #elif HAVE_MMAP_ANONYMOUS
21040 # define zero_fd -1
21041 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
21042 #elif HAVE_MMAP_DEVZERO
21043 static int zero_fd;
21044 # define map_flags MAP_FILE | MAP_PRIVATE
21046 unsigned long page;
21047 int handler_called = 0;
21048 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
21050 void *fault_address = (void *) (get_fault_addr (scp));
21052 if (handler_called == 10)
21054 if (fault_address != (void*)(page + 0x678))
21056 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
21059 void crasher (unsigned long p)
21061 *(int *) (p + 0x678) = 42;
21066 struct sigaction action;
21067 /* Preparations. */
21068 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
21069 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
21071 /* Setup some mmaped memory. */
21073 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
21074 freedom about the address range. */
21075 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21077 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21079 if (p == (void *)(-1))
21081 page = (unsigned long) p;
21082 /* Make it read-only. */
21083 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
21085 /* Install the SIGSEGV handler. */
21086 sigemptyset(&action.sa_mask);
21088 action.sa_handler = (void (*) (int)) &sigsegv_handler;
21089 action.sa_flags = 0;
21091 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
21092 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
21093 /* The first write access should invoke the handler and then complete. */
21095 /* The second write access should not invoke the handler. */
21097 /* Check that the handler was called only once. */
21098 if (handler_called != 1)
21104 rm -f conftest$ac_exeext
21105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21106 (eval $ac_link) 2>&5
21108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21114 (exit $ac_status); }; }; then
21115 sv_cv_fault_linux_m68k=yes
21117 echo "$as_me: program exited with status
$ac_status" >&5
21118 echo "$as_me: failed program was
:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21121 ( exit $ac_status )
21122 sv_cv_fault_linux_m68k=no
21124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21128 echo "$as_me:$LINENO: result
: $sv_cv_fault_linux_m68k" >&5
21129 echo "${ECHO_T}$sv_cv_fault_linux_m68k" >&6
21136 echo "$as_me:$LINENO: checking whether a fault handler according to Linux
/PowerPC works
" >&5
21137 echo $ECHO_N "checking whether a fault handler according to Linux
/PowerPC works...
$ECHO_C" >&6
21138 if test "${sv_cv_fault_linux_powerpc+set}" = set; then
21139 echo $ECHO_N "(cached
) $ECHO_C" >&6
21142 if test "$cross_compiling" = yes; then
21146 cat >conftest.$ac_ext <<_ACEOF
21150 cat confdefs.h >>conftest.$ac_ext
21151 cat >>conftest.$ac_ext <<_ACEOF
21152 /* end confdefs.h. */
21154 #include <signal.h>
21155 #include <asm/sigcontext.h>
21156 void sigsegv_handler (int sig, struct sigcontext *scp)
21158 void *fault_address = (void *) (scp->regs->dar);
21164 struct sigaction action;
21170 rm -f conftest.$ac_objext conftest$ac_exeext
21171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21172 (eval $ac_link) 2>conftest.er1
21174 grep -v '^ *+' conftest.er1 >conftest.err
21176 cat conftest.err >&5
21177 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21178 (exit $ac_status); } &&
21179 { ac_try='test -z "$ac_c_werror_flag"
21180 || test ! -s conftest.err'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21184 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21185 (exit $ac_status); }; } &&
21186 { ac_try='test -s conftest$ac_exeext'
21187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188 (eval $ac_try) 2>&5
21190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21191 (exit $ac_status); }; }; then
21192 sv_cv_fault_linux_powerpc="guessing no
"
21194 echo "$as_me: failed program was
:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21197 sv_cv_fault_linux_powerpc=no
21199 rm -f conftest.err conftest.$ac_objext \
21200 conftest$ac_exeext conftest.$ac_ext
21205 cat >conftest.$ac_ext <<_ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h. */
21213 #include <stdlib.h>
21214 #include <signal.h>
21215 #if HAVE_SYS_SIGNAL_H
21216 # include <sys/signal.h>
21218 #include <asm/sigcontext.h>
21219 #include <sys/types.h>
21220 #include <sys/mman.h>
21221 #if HAVE_MMAP_DEVZERO
21222 # include <fcntl.h>
21224 # define MAP_FILE 0
21228 # define PROT_NONE 0
21231 # define zero_fd -1
21232 # define map_flags MAP_ANON | MAP_PRIVATE
21233 #elif HAVE_MMAP_ANONYMOUS
21234 # define zero_fd -1
21235 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
21236 #elif HAVE_MMAP_DEVZERO
21237 static int zero_fd;
21238 # define map_flags MAP_FILE | MAP_PRIVATE
21240 unsigned long page;
21241 int handler_called = 0;
21242 void sigsegv_handler (int sig, struct sigcontext *scp)
21244 void *fault_address = (void *) (scp->regs->dar);
21246 if (handler_called == 10)
21248 if (fault_address != (void*)(page + 0x678))
21250 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
21253 void crasher (unsigned long p)
21255 *(int *) (p + 0x678) = 42;
21260 struct sigaction action;
21261 /* Preparations. */
21262 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
21263 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
21265 /* Setup some mmaped memory. */
21267 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
21268 freedom about the address range. */
21269 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21271 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21273 if (p == (void *)(-1))
21275 page = (unsigned long) p;
21276 /* Make it read-only. */
21277 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
21279 /* Install the SIGSEGV handler. */
21280 sigemptyset(&action.sa_mask);
21282 action.sa_handler = (void (*) (int)) &sigsegv_handler;
21283 action.sa_flags = 0;
21285 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
21286 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
21287 /* The first write access should invoke the handler and then complete. */
21289 /* The second write access should not invoke the handler. */
21291 /* Check that the handler was called only once. */
21292 if (handler_called != 1)
21298 rm -f conftest$ac_exeext
21299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21300 (eval $ac_link) 2>&5
21302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305 (eval $ac_try) 2>&5
21307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21308 (exit $ac_status); }; }; then
21309 sv_cv_fault_linux_powerpc=yes
21311 echo "$as_me: program exited with status
$ac_status" >&5
21312 echo "$as_me: failed program was
:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21315 ( exit $ac_status )
21316 sv_cv_fault_linux_powerpc=no
21318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21322 echo "$as_me:$LINENO: result
: $sv_cv_fault_linux_powerpc" >&5
21323 echo "${ECHO_T}$sv_cv_fault_linux_powerpc" >&6
21330 echo "$as_me:$LINENO: checking whether a fault handler according to Linux
/HPPA works
" >&5
21331 echo $ECHO_N "checking whether a fault handler according to Linux
/HPPA works...
$ECHO_C" >&6
21332 if test "${sv_cv_fault_linux_hppa+set}" = set; then
21333 echo $ECHO_N "(cached
) $ECHO_C" >&6
21336 if test "$cross_compiling" = yes; then
21340 cat >conftest.$ac_ext <<_ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21348 #include <signal.h>
21350 void sigsegv_handler (int sig, siginfo_t *sip, void *ucp)
21352 void *fault_address = (void *) (sip->si_ptr);
21358 struct sigaction action;
21359 action.sa_sigaction = &sigsegv_handler;
21360 action.sa_flags = SA_SIGINFO;
21365 rm -f conftest.$ac_objext conftest$ac_exeext
21366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21367 (eval $ac_link) 2>conftest.er1
21369 grep -v '^ *+' conftest.er1 >conftest.err
21371 cat conftest.err >&5
21372 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21373 (exit $ac_status); } &&
21374 { ac_try='test -z "$ac_c_werror_flag"
21375 || test ! -s conftest.err'
21376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377 (eval $ac_try) 2>&5
21379 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21380 (exit $ac_status); }; } &&
21381 { ac_try='test -s conftest$ac_exeext'
21382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21383 (eval $ac_try) 2>&5
21385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21386 (exit $ac_status); }; }; then
21387 sv_cv_fault_linux_hppa="guessing no
"
21389 echo "$as_me: failed program was
:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21392 sv_cv_fault_linux_hppa=no
21394 rm -f conftest.err conftest.$ac_objext \
21395 conftest$ac_exeext conftest.$ac_ext
21400 cat >conftest.$ac_ext <<_ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21408 #include <stdlib.h>
21409 #include <signal.h>
21410 #if HAVE_SYS_SIGNAL_H
21411 # include <sys/signal.h>
21414 #include <sys/types.h>
21415 #include <sys/mman.h>
21416 #if HAVE_MMAP_DEVZERO
21417 # include <fcntl.h>
21419 # define MAP_FILE 0
21423 # define PROT_NONE 0
21426 # define zero_fd -1
21427 # define map_flags MAP_ANON | MAP_PRIVATE
21428 #elif HAVE_MMAP_ANONYMOUS
21429 # define zero_fd -1
21430 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
21431 #elif HAVE_MMAP_DEVZERO
21432 static int zero_fd;
21433 # define map_flags MAP_FILE | MAP_PRIVATE
21435 unsigned long page;
21436 int handler_called = 0;
21437 void sigsegv_handler (int sig, siginfo_t *sip, void *ucp)
21439 void *fault_address = (void *) (sip->si_ptr);
21441 if (handler_called == 10)
21443 if (fault_address != (void*)(page + 0x678))
21445 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
21448 void crasher (unsigned long p)
21450 *(int *) (p + 0x678) = 42;
21455 struct sigaction action;
21456 /* Preparations. */
21457 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
21458 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
21460 /* Setup some mmaped memory. */
21462 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
21463 freedom about the address range. */
21464 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21466 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21468 if (p == (void *)(-1))
21470 page = (unsigned long) p;
21471 /* Make it read-only. */
21472 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
21474 /* Install the SIGSEGV handler. */
21475 sigemptyset(&action.sa_mask);
21476 action.sa_sigaction = &sigsegv_handler;
21477 action.sa_flags = SA_SIGINFO;
21478 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
21479 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
21480 /* The first write access should invoke the handler and then complete. */
21482 /* The second write access should not invoke the handler. */
21484 /* Check that the handler was called only once. */
21485 if (handler_called != 1)
21491 rm -f conftest$ac_exeext
21492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21493 (eval $ac_link) 2>&5
21495 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21501 (exit $ac_status); }; }; then
21502 sv_cv_fault_linux_hppa=yes
21504 echo "$as_me: program exited with status
$ac_status" >&5
21505 echo "$as_me: failed program was
:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21508 ( exit $ac_status )
21509 sv_cv_fault_linux_hppa=no
21511 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21515 echo "$as_me:$LINENO: result
: $sv_cv_fault_linux_hppa" >&5
21516 echo "${ECHO_T}$sv_cv_fault_linux_hppa" >&6
21523 echo "$as_me:$LINENO: checking whether a fault handler according to BSD works
" >&5
21524 echo $ECHO_N "checking whether a fault handler according to BSD works...
$ECHO_C" >&6
21525 if test "${sv_cv_fault_bsd+set}" = set; then
21526 echo $ECHO_N "(cached
) $ECHO_C" >&6
21529 if test "$cross_compiling" = yes; then
21531 i?86-*-freebsd[4-9]*) sv_cv_fault_bsd=yes ;;
21533 cat >conftest.$ac_ext <<_ACEOF
21537 cat confdefs.h >>conftest.$ac_ext
21538 cat >>conftest.$ac_ext <<_ACEOF
21539 /* end confdefs.h. */
21541 #include <signal.h>
21543 void sigsegv_handler (int sig, int code, struct sigcontext *scp, void *addr)
21545 void *fault_address = (void *) (addr);
21551 struct sigaction action;
21557 rm -f conftest.$ac_objext conftest$ac_exeext
21558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21559 (eval $ac_link) 2>conftest.er1
21561 grep -v '^ *+' conftest.er1 >conftest.err
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21565 (exit $ac_status); } &&
21566 { ac_try='test -z "$ac_c_werror_flag"
21567 || test ! -s conftest.err'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21571 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try='test -s conftest$ac_exeext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21577 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 sv_cv_fault_bsd="guessing no
"
21581 echo "$as_me: failed program was
:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21586 rm -f conftest.err conftest.$ac_objext \
21587 conftest$ac_exeext conftest.$ac_ext
21592 cat >conftest.$ac_ext <<_ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21600 #include <stdlib.h>
21601 #include <signal.h>
21602 #if HAVE_SYS_SIGNAL_H
21603 # include <sys/signal.h>
21606 #include <sys/types.h>
21607 #include <sys/mman.h>
21608 #if HAVE_MMAP_DEVZERO
21609 # include <fcntl.h>
21611 # define MAP_FILE 0
21615 # define PROT_NONE 0
21618 # define zero_fd -1
21619 # define map_flags MAP_ANON | MAP_PRIVATE
21620 #elif HAVE_MMAP_ANONYMOUS
21621 # define zero_fd -1
21622 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
21623 #elif HAVE_MMAP_DEVZERO
21624 static int zero_fd;
21625 # define map_flags MAP_FILE | MAP_PRIVATE
21627 unsigned long page;
21628 int handler_called = 0;
21629 void sigsegv_handler (int sig, int code, struct sigcontext *scp, void *addr)
21631 void *fault_address = (void *) (addr);
21633 if (handler_called == 10)
21635 if (fault_address != (void*)(page + 0x678))
21637 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
21640 void crasher (unsigned long p)
21642 *(int *) (p + 0x678) = 42;
21647 struct sigaction action;
21648 /* Preparations. */
21649 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
21650 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
21652 /* Setup some mmaped memory. */
21654 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
21655 freedom about the address range. */
21656 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21658 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21660 if (p == (void *)(-1))
21662 page = (unsigned long) p;
21663 /* Make it read-only. */
21664 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
21666 /* Install the SIGSEGV handler. */
21667 sigemptyset(&action.sa_mask);
21669 action.sa_handler = (void (*) (int)) &sigsegv_handler;
21670 action.sa_flags = 0;
21672 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
21673 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
21674 /* The first write access should invoke the handler and then complete. */
21676 /* The second write access should not invoke the handler. */
21678 /* Check that the handler was called only once. */
21679 if (handler_called != 1)
21685 rm -f conftest$ac_exeext
21686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21687 (eval $ac_link) 2>&5
21689 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21692 (eval $ac_try) 2>&5
21694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21695 (exit $ac_status); }; }; then
21696 sv_cv_fault_bsd=yes
21698 echo "$as_me: program exited with status
$ac_status" >&5
21699 echo "$as_me: failed program was
:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21702 ( exit $ac_status )
21705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21709 echo "$as_me:$LINENO: result
: $sv_cv_fault_bsd" >&5
21710 echo "${ECHO_T}$sv_cv_fault_bsd" >&6
21717 echo "$as_me:$LINENO: checking whether a fault handler according to IRIX works
" >&5
21718 echo $ECHO_N "checking whether a fault handler according to IRIX works...
$ECHO_C" >&6
21719 if test "${sv_cv_fault_irix+set}" = set; then
21720 echo $ECHO_N "(cached
) $ECHO_C" >&6
21723 if test "$cross_compiling" = yes; then
21725 mips-sgi-irix6*) sv_cv_fault_irix=yes ;;
21727 cat >conftest.$ac_ext <<_ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h. */
21735 #include <signal.h>
21737 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
21739 void *fault_address = (void *) ((unsigned long) scp->sc_badvaddr);
21745 struct sigaction action;
21751 rm -f conftest.$ac_objext conftest$ac_exeext
21752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21753 (eval $ac_link) 2>conftest.er1
21755 grep -v '^ *+' conftest.er1 >conftest.err
21757 cat conftest.err >&5
21758 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21759 (exit $ac_status); } &&
21760 { ac_try='test -z "$ac_c_werror_flag"
21761 || test ! -s conftest.err'
21762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763 (eval $ac_try) 2>&5
21765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21766 (exit $ac_status); }; } &&
21767 { ac_try='test -s conftest$ac_exeext'
21768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769 (eval $ac_try) 2>&5
21771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21772 (exit $ac_status); }; }; then
21773 sv_cv_fault_irix="guessing no
"
21775 echo "$as_me: failed program was
:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21778 sv_cv_fault_irix=no
21780 rm -f conftest.err conftest.$ac_objext \
21781 conftest$ac_exeext conftest.$ac_ext
21786 cat >conftest.$ac_ext <<_ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h. */
21794 #include <stdlib.h>
21795 #include <signal.h>
21796 #if HAVE_SYS_SIGNAL_H
21797 # include <sys/signal.h>
21800 #include <sys/types.h>
21801 #include <sys/mman.h>
21802 #if HAVE_MMAP_DEVZERO
21803 # include <fcntl.h>
21805 # define MAP_FILE 0
21809 # define PROT_NONE 0
21812 # define zero_fd -1
21813 # define map_flags MAP_ANON | MAP_PRIVATE
21814 #elif HAVE_MMAP_ANONYMOUS
21815 # define zero_fd -1
21816 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
21817 #elif HAVE_MMAP_DEVZERO
21818 static int zero_fd;
21819 # define map_flags MAP_FILE | MAP_PRIVATE
21821 unsigned long page;
21822 int handler_called = 0;
21823 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
21825 void *fault_address = (void *) ((unsigned long) scp->sc_badvaddr);
21827 if (handler_called == 10)
21829 if (fault_address != (void*)(page + 0x678))
21831 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
21834 void crasher (unsigned long p)
21836 *(int *) (p + 0x678) = 42;
21841 struct sigaction action;
21842 /* Preparations. */
21843 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
21844 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
21846 /* Setup some mmaped memory. */
21848 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
21849 freedom about the address range. */
21850 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21852 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
21854 if (p == (void *)(-1))
21856 page = (unsigned long) p;
21857 /* Make it read-only. */
21858 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
21860 /* Install the SIGSEGV handler. */
21861 sigemptyset(&action.sa_mask);
21863 action.sa_handler = (void (*) (int)) &sigsegv_handler;
21864 action.sa_flags = 0;
21866 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
21867 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
21868 /* The first write access should invoke the handler and then complete. */
21870 /* The second write access should not invoke the handler. */
21872 /* Check that the handler was called only once. */
21873 if (handler_called != 1)
21879 rm -f conftest$ac_exeext
21880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21881 (eval $ac_link) 2>&5
21883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21889 (exit $ac_status); }; }; then
21890 sv_cv_fault_irix=yes
21892 echo "$as_me: program exited with status
$ac_status" >&5
21893 echo "$as_me: failed program was
:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21896 ( exit $ac_status )
21897 sv_cv_fault_irix=no
21899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21903 echo "$as_me:$LINENO: result
: $sv_cv_fault_irix" >&5
21904 echo "${ECHO_T}$sv_cv_fault_irix" >&6
21911 echo "$as_me:$LINENO: checking whether a fault handler according to HP-UX HPPA works
" >&5
21912 echo $ECHO_N "checking whether a fault handler according to HP-UX HPPA works...
$ECHO_C" >&6
21913 if test "${sv_cv_fault_hpux_hppa+set}" = set; then
21914 echo $ECHO_N "(cached
) $ECHO_C" >&6
21917 if test "$cross_compiling" = yes; then
21919 hppa*-*-hpux11*) sv_cv_fault_hpux_hppa=yes ;;
21921 cat >conftest.$ac_ext <<_ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21929 #include <signal.h>
21931 #define USE_64BIT_REGS(mc) \
21932 (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID))
21933 #define GET_CR21(mc) \
21934 (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21)
21936 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
21938 void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));
21944 struct sigaction action;
21950 rm -f conftest.$ac_objext conftest$ac_exeext
21951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21952 (eval $ac_link) 2>conftest.er1
21954 grep -v '^ *+' conftest.er1 >conftest.err
21956 cat conftest.err >&5
21957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21958 (exit $ac_status); } &&
21959 { ac_try='test -z "$ac_c_werror_flag"
21960 || test ! -s conftest.err'
21961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962 (eval $ac_try) 2>&5
21964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21965 (exit $ac_status); }; } &&
21966 { ac_try='test -s conftest$ac_exeext'
21967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968 (eval $ac_try) 2>&5
21970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21971 (exit $ac_status); }; }; then
21972 sv_cv_fault_hpux_hppa="guessing no
"
21974 echo "$as_me: failed program was
:" >&5
21975 sed 's/^/| /' conftest.$ac_ext >&5
21977 sv_cv_fault_hpux_hppa=no
21979 rm -f conftest.err conftest.$ac_objext \
21980 conftest$ac_exeext conftest.$ac_ext
21985 cat >conftest.$ac_ext <<_ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h. */
21993 #include <stdlib.h>
21994 #include <signal.h>
21995 #if HAVE_SYS_SIGNAL_H
21996 # include <sys/signal.h>
21999 #define USE_64BIT_REGS(mc) \
22000 (((mc).ss_flags & SS_WIDEREGS) && ((mc).ss_flags & SS_NARROWISINVALID))
22001 #define GET_CR21(mc) \
22002 (USE_64BIT_REGS(mc) ? (mc).ss_wide.ss_64.ss_cr21 : (mc).ss_narrow.ss_cr21)
22004 #include <sys/types.h>
22005 #include <sys/mman.h>
22006 #if HAVE_MMAP_DEVZERO
22007 # include <fcntl.h>
22009 # define MAP_FILE 0
22013 # define PROT_NONE 0
22016 # define zero_fd -1
22017 # define map_flags MAP_ANON | MAP_PRIVATE
22018 #elif HAVE_MMAP_ANONYMOUS
22019 # define zero_fd -1
22020 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
22021 #elif HAVE_MMAP_DEVZERO
22022 static int zero_fd;
22023 # define map_flags MAP_FILE | MAP_PRIVATE
22025 unsigned long page;
22026 int handler_called = 0;
22027 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22029 void *fault_address = (void *) (GET_CR21 (scp->sc_sl.sl_ss));
22031 if (handler_called == 10)
22033 if (fault_address != (void*)(page + 0x678))
22035 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
22038 void crasher (unsigned long p)
22040 *(int *) (p + 0x678) = 42;
22045 struct sigaction action;
22046 /* Preparations. */
22047 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
22048 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
22050 /* Setup some mmaped memory. */
22052 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
22053 freedom about the address range. */
22054 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22056 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22058 if (p == (void *)(-1))
22060 page = (unsigned long) p;
22061 /* Make it read-only. */
22062 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
22064 /* Install the SIGSEGV handler. */
22065 sigemptyset(&action.sa_mask);
22067 action.sa_handler = (void (*) (int)) &sigsegv_handler;
22068 action.sa_flags = 0;
22070 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
22071 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
22072 /* The first write access should invoke the handler and then complete. */
22074 /* The second write access should not invoke the handler. */
22076 /* Check that the handler was called only once. */
22077 if (handler_called != 1)
22083 rm -f conftest$ac_exeext
22084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22085 (eval $ac_link) 2>&5
22087 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22090 (eval $ac_try) 2>&5
22092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22093 (exit $ac_status); }; }; then
22094 sv_cv_fault_hpux_hppa=yes
22096 echo "$as_me: program exited with status
$ac_status" >&5
22097 echo "$as_me: failed program was
:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22100 ( exit $ac_status )
22101 sv_cv_fault_hpux_hppa=no
22103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22107 echo "$as_me:$LINENO: result
: $sv_cv_fault_hpux_hppa" >&5
22108 echo "${ECHO_T}$sv_cv_fault_hpux_hppa" >&6
22115 echo "$as_me:$LINENO: checking whether a fault handler according to OSF
/1 Alpha works
" >&5
22116 echo $ECHO_N "checking whether a fault handler according to OSF
/1 Alpha works...
$ECHO_C" >&6
22117 if test "${sv_cv_fault_osf_alpha+set}" = set; then
22118 echo $ECHO_N "(cached
) $ECHO_C" >&6
22121 if test "$cross_compiling" = yes; then
22123 alpha*-*-osf[4-9]* | alpha*-*-linux2.[4-9]*) sv_cv_fault_osf_alpha=yes ;;
22125 cat >conftest.$ac_ext <<_ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22133 #include <signal.h>
22135 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22137 void *fault_address = (void *) (scp->sc_traparg_a0);
22143 struct sigaction action;
22149 rm -f conftest.$ac_objext conftest$ac_exeext
22150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22151 (eval $ac_link) 2>conftest.er1
22153 grep -v '^ *+' conftest.er1 >conftest.err
22155 cat conftest.err >&5
22156 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22157 (exit $ac_status); } &&
22158 { ac_try='test -z "$ac_c_werror_flag"
22159 || test ! -s conftest.err'
22160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22161 (eval $ac_try) 2>&5
22163 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22164 (exit $ac_status); }; } &&
22165 { ac_try='test -s conftest$ac_exeext'
22166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22167 (eval $ac_try) 2>&5
22169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22170 (exit $ac_status); }; }; then
22171 sv_cv_fault_osf_alpha="guessing no
"
22173 echo "$as_me: failed program was
:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22176 sv_cv_fault_osf_alpha=no
22178 rm -f conftest.err conftest.$ac_objext \
22179 conftest$ac_exeext conftest.$ac_ext
22184 cat >conftest.$ac_ext <<_ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h. */
22192 #include <stdlib.h>
22193 #include <signal.h>
22194 #if HAVE_SYS_SIGNAL_H
22195 # include <sys/signal.h>
22198 #include <sys/types.h>
22199 #include <sys/mman.h>
22200 #if HAVE_MMAP_DEVZERO
22201 # include <fcntl.h>
22203 # define MAP_FILE 0
22207 # define PROT_NONE 0
22210 # define zero_fd -1
22211 # define map_flags MAP_ANON | MAP_PRIVATE
22212 #elif HAVE_MMAP_ANONYMOUS
22213 # define zero_fd -1
22214 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
22215 #elif HAVE_MMAP_DEVZERO
22216 static int zero_fd;
22217 # define map_flags MAP_FILE | MAP_PRIVATE
22219 unsigned long page;
22220 int handler_called = 0;
22221 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22223 void *fault_address = (void *) (scp->sc_traparg_a0);
22225 if (handler_called == 10)
22227 if (fault_address != (void*)(page + 0x678))
22229 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
22232 void crasher (unsigned long p)
22234 *(int *) (p + 0x678) = 42;
22239 struct sigaction action;
22240 /* Preparations. */
22241 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
22242 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
22244 /* Setup some mmaped memory. */
22246 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
22247 freedom about the address range. */
22248 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22250 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22252 if (p == (void *)(-1))
22254 page = (unsigned long) p;
22255 /* Make it read-only. */
22256 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
22258 /* Install the SIGSEGV handler. */
22259 sigemptyset(&action.sa_mask);
22261 action.sa_handler = (void (*) (int)) &sigsegv_handler;
22262 action.sa_flags = 0;
22264 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
22265 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
22266 /* The first write access should invoke the handler and then complete. */
22268 /* The second write access should not invoke the handler. */
22270 /* Check that the handler was called only once. */
22271 if (handler_called != 1)
22277 rm -f conftest$ac_exeext
22278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22279 (eval $ac_link) 2>&5
22281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284 (eval $ac_try) 2>&5
22286 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22287 (exit $ac_status); }; }; then
22288 sv_cv_fault_osf_alpha=yes
22290 echo "$as_me: program exited with status
$ac_status" >&5
22291 echo "$as_me: failed program was
:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22294 ( exit $ac_status )
22295 sv_cv_fault_osf_alpha=no
22297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22301 echo "$as_me:$LINENO: result
: $sv_cv_fault_osf_alpha" >&5
22302 echo "${ECHO_T}$sv_cv_fault_osf_alpha" >&6
22309 echo "$as_me:$LINENO: checking whether a fault handler according to NetBSD Alpha works
" >&5
22310 echo $ECHO_N "checking whether a fault handler according to NetBSD Alpha works...
$ECHO_C" >&6
22311 if test "${sv_cv_fault_netbsd_alpha+set}" = set; then
22312 echo $ECHO_N "(cached
) $ECHO_C" >&6
22315 if test "$cross_compiling" = yes; then
22317 alpha*-*-osf[4-9]* | alpha-*-*bsd*) sv_cv_fault_netbsd_alpha=yes ;;
22319 cat >conftest.$ac_ext <<_ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h. */
22327 #include <signal.h>
22328 #include "$srcdir/src
/fault-netbsd-alpha.c
"
22329 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22331 void *fault_address = (void *) (get_fault_addr (scp));
22337 struct sigaction action;
22343 rm -f conftest.$ac_objext conftest$ac_exeext
22344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22345 (eval $ac_link) 2>conftest.er1
22347 grep -v '^ *+' conftest.er1 >conftest.err
22349 cat conftest.err >&5
22350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22351 (exit $ac_status); } &&
22352 { ac_try='test -z "$ac_c_werror_flag"
22353 || test ! -s conftest.err'
22354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22355 (eval $ac_try) 2>&5
22357 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22358 (exit $ac_status); }; } &&
22359 { ac_try='test -s conftest$ac_exeext'
22360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22361 (eval $ac_try) 2>&5
22363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22364 (exit $ac_status); }; }; then
22365 sv_cv_fault_netbsd_alpha="guessing no
"
22367 echo "$as_me: failed program was
:" >&5
22368 sed 's/^/| /' conftest.$ac_ext >&5
22370 sv_cv_fault_netbsd_alpha=no
22372 rm -f conftest.err conftest.$ac_objext \
22373 conftest$ac_exeext conftest.$ac_ext
22378 cat >conftest.$ac_ext <<_ACEOF
22382 cat confdefs.h >>conftest.$ac_ext
22383 cat >>conftest.$ac_ext <<_ACEOF
22384 /* end confdefs.h. */
22386 #include <stdlib.h>
22387 #include <signal.h>
22388 #if HAVE_SYS_SIGNAL_H
22389 # include <sys/signal.h>
22391 #include "$srcdir/src
/fault-netbsd-alpha.c
"
22392 #include <sys/types.h>
22393 #include <sys/mman.h>
22394 #if HAVE_MMAP_DEVZERO
22395 # include <fcntl.h>
22397 # define MAP_FILE 0
22401 # define PROT_NONE 0
22404 # define zero_fd -1
22405 # define map_flags MAP_ANON | MAP_PRIVATE
22406 #elif HAVE_MMAP_ANONYMOUS
22407 # define zero_fd -1
22408 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
22409 #elif HAVE_MMAP_DEVZERO
22410 static int zero_fd;
22411 # define map_flags MAP_FILE | MAP_PRIVATE
22413 unsigned long page;
22414 int handler_called = 0;
22415 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22417 void *fault_address = (void *) (get_fault_addr (scp));
22419 if (handler_called == 10)
22421 if (fault_address != (void*)(page + 0x678))
22423 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
22426 void crasher (unsigned long p)
22428 *(int *) (p + 0x678) = 42;
22433 struct sigaction action;
22434 /* Preparations. */
22435 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
22436 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
22438 /* Setup some mmaped memory. */
22440 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
22441 freedom about the address range. */
22442 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22444 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22446 if (p == (void *)(-1))
22448 page = (unsigned long) p;
22449 /* Make it read-only. */
22450 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
22452 /* Install the SIGSEGV handler. */
22453 sigemptyset(&action.sa_mask);
22455 action.sa_handler = (void (*) (int)) &sigsegv_handler;
22456 action.sa_flags = 0;
22458 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
22459 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
22460 /* The first write access should invoke the handler and then complete. */
22462 /* The second write access should not invoke the handler. */
22464 /* Check that the handler was called only once. */
22465 if (handler_called != 1)
22471 rm -f conftest$ac_exeext
22472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22473 (eval $ac_link) 2>&5
22475 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478 (eval $ac_try) 2>&5
22480 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22481 (exit $ac_status); }; }; then
22482 sv_cv_fault_netbsd_alpha=yes
22484 echo "$as_me: program exited with status
$ac_status" >&5
22485 echo "$as_me: failed program was
:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22488 ( exit $ac_status )
22489 sv_cv_fault_netbsd_alpha=no
22491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22495 echo "$as_me:$LINENO: result
: $sv_cv_fault_netbsd_alpha" >&5
22496 echo "${ECHO_T}$sv_cv_fault_netbsd_alpha" >&6
22503 echo "$as_me:$LINENO: checking whether a fault handler according to AIX works
" >&5
22504 echo $ECHO_N "checking whether a fault handler according to AIX works...
$ECHO_C" >&6
22505 if test "${sv_cv_fault_aix+set}" = set; then
22506 echo $ECHO_N "(cached
) $ECHO_C" >&6
22509 if test "$cross_compiling" = yes; then
22511 *-*-aix[34]*) sv_cv_fault_aix=yes ;;
22513 cat >conftest.$ac_ext <<_ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h. */
22521 #include <signal.h>
22523 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22525 void *fault_address = (void *) (scp->sc_jmpbuf.jmp_context.o_vaddr);
22531 struct sigaction action;
22537 rm -f conftest.$ac_objext conftest$ac_exeext
22538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22539 (eval $ac_link) 2>conftest.er1
22541 grep -v '^ *+' conftest.er1 >conftest.err
22543 cat conftest.err >&5
22544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22545 (exit $ac_status); } &&
22546 { ac_try='test -z "$ac_c_werror_flag"
22547 || test ! -s conftest.err'
22548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22549 (eval $ac_try) 2>&5
22551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22552 (exit $ac_status); }; } &&
22553 { ac_try='test -s conftest$ac_exeext'
22554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22555 (eval $ac_try) 2>&5
22557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22558 (exit $ac_status); }; }; then
22559 sv_cv_fault_aix="guessing no
"
22561 echo "$as_me: failed program was
:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22566 rm -f conftest.err conftest.$ac_objext \
22567 conftest$ac_exeext conftest.$ac_ext
22572 cat >conftest.$ac_ext <<_ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h. */
22580 #include <stdlib.h>
22581 #include <signal.h>
22582 #if HAVE_SYS_SIGNAL_H
22583 # include <sys/signal.h>
22586 #include <sys/types.h>
22587 #include <sys/mman.h>
22588 #if HAVE_MMAP_DEVZERO
22589 # include <fcntl.h>
22591 # define MAP_FILE 0
22595 # define PROT_NONE 0
22598 # define zero_fd -1
22599 # define map_flags MAP_ANON | MAP_PRIVATE
22600 #elif HAVE_MMAP_ANONYMOUS
22601 # define zero_fd -1
22602 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
22603 #elif HAVE_MMAP_DEVZERO
22604 static int zero_fd;
22605 # define map_flags MAP_FILE | MAP_PRIVATE
22607 unsigned long page;
22608 int handler_called = 0;
22609 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22611 void *fault_address = (void *) (scp->sc_jmpbuf.jmp_context.o_vaddr);
22613 if (handler_called == 10)
22615 if (fault_address != (void*)(page + 0x678))
22617 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
22620 void crasher (unsigned long p)
22622 *(int *) (p + 0x678) = 42;
22627 struct sigaction action;
22628 /* Preparations. */
22629 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
22630 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
22632 /* Setup some mmaped memory. */
22634 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
22635 freedom about the address range. */
22636 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22638 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22640 if (p == (void *)(-1))
22642 page = (unsigned long) p;
22643 /* Make it read-only. */
22644 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
22646 /* Install the SIGSEGV handler. */
22647 sigemptyset(&action.sa_mask);
22649 action.sa_handler = (void (*) (int)) &sigsegv_handler;
22650 action.sa_flags = 0;
22652 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
22653 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
22654 /* The first write access should invoke the handler and then complete. */
22656 /* The second write access should not invoke the handler. */
22658 /* Check that the handler was called only once. */
22659 if (handler_called != 1)
22665 rm -f conftest$ac_exeext
22666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22667 (eval $ac_link) 2>&5
22669 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22672 (eval $ac_try) 2>&5
22674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22675 (exit $ac_status); }; }; then
22676 sv_cv_fault_aix=yes
22678 echo "$as_me: program exited with status
$ac_status" >&5
22679 echo "$as_me: failed program was
:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22682 ( exit $ac_status )
22685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22689 echo "$as_me:$LINENO: result
: $sv_cv_fault_aix" >&5
22690 echo "${ECHO_T}$sv_cv_fault_aix" >&6
22697 echo "$as_me:$LINENO: checking whether a fault handler according to MacOSX
/Darwin7 PowerPC works
" >&5
22698 echo $ECHO_N "checking whether a fault handler according to MacOSX
/Darwin7 PowerPC works...
$ECHO_C" >&6
22699 if test "${sv_cv_fault_macosdarwin7_ppc+set}" = set; then
22700 echo $ECHO_N "(cached
) $ECHO_C" >&6
22703 if test "$cross_compiling" = yes; then
22705 powerpc-*-darwin7*) sv_cv_fault_macosdarwin7_ppc=yes ;;
22707 cat >conftest.$ac_ext <<_ACEOF
22711 cat confdefs.h >>conftest.$ac_ext
22712 cat >>conftest.$ac_ext <<_ACEOF
22713 /* end confdefs.h. */
22715 #include <signal.h>
22716 #include "$srcdir/src
/fault-macosdarwin7-powerpc.c
"
22717 void sigsegv_handler (int sig, siginfo_t *sip, ucontext_t *ucp)
22719 void *fault_address = (void *) (get_fault_addr (sip, ucp));
22725 struct sigaction action;
22726 action.sa_sigaction = &sigsegv_handler;
22727 action.sa_flags = SA_SIGINFO;
22732 rm -f conftest.$ac_objext conftest$ac_exeext
22733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22734 (eval $ac_link) 2>conftest.er1
22736 grep -v '^ *+' conftest.er1 >conftest.err
22738 cat conftest.err >&5
22739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22740 (exit $ac_status); } &&
22741 { ac_try='test -z "$ac_c_werror_flag"
22742 || test ! -s conftest.err'
22743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22744 (eval $ac_try) 2>&5
22746 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22747 (exit $ac_status); }; } &&
22748 { ac_try='test -s conftest$ac_exeext'
22749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750 (eval $ac_try) 2>&5
22752 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22753 (exit $ac_status); }; }; then
22754 sv_cv_fault_macosdarwin7_ppc="guessing no
"
22756 echo "$as_me: failed program was
:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22759 sv_cv_fault_macosdarwin7_ppc=no
22761 rm -f conftest.err conftest.$ac_objext \
22762 conftest$ac_exeext conftest.$ac_ext
22767 cat >conftest.$ac_ext <<_ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h. */
22775 #include <stdlib.h>
22776 #include <signal.h>
22777 #if HAVE_SYS_SIGNAL_H
22778 # include <sys/signal.h>
22780 #include "$srcdir/src
/fault-macosdarwin7-powerpc.c
"
22781 #include <sys/types.h>
22782 #include <sys/mman.h>
22783 #if HAVE_MMAP_DEVZERO
22784 # include <fcntl.h>
22786 # define MAP_FILE 0
22790 # define PROT_NONE 0
22793 # define zero_fd -1
22794 # define map_flags MAP_ANON | MAP_PRIVATE
22795 #elif HAVE_MMAP_ANONYMOUS
22796 # define zero_fd -1
22797 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
22798 #elif HAVE_MMAP_DEVZERO
22799 static int zero_fd;
22800 # define map_flags MAP_FILE | MAP_PRIVATE
22802 unsigned long page;
22803 int handler_called = 0;
22804 void sigsegv_handler (int sig, siginfo_t *sip, ucontext_t *ucp)
22806 void *fault_address = (void *) (get_fault_addr (sip, ucp));
22808 if (handler_called == 10)
22810 if (fault_address != (void*)(page + 0x678))
22812 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
22815 void crasher (unsigned long p)
22817 *(int *) (p + 0x678) = 42;
22822 struct sigaction action;
22823 /* Preparations. */
22824 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
22825 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
22827 /* Setup some mmaped memory. */
22829 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
22830 freedom about the address range. */
22831 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22833 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
22835 if (p == (void *)(-1))
22837 page = (unsigned long) p;
22838 /* Make it read-only. */
22839 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
22841 /* Install the SIGSEGV handler. */
22842 sigemptyset(&action.sa_mask);
22843 action.sa_sigaction = &sigsegv_handler;
22844 action.sa_flags = SA_SIGINFO;
22845 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
22846 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
22847 /* The first write access should invoke the handler and then complete. */
22849 /* The second write access should not invoke the handler. */
22851 /* Check that the handler was called only once. */
22852 if (handler_called != 1)
22858 rm -f conftest$ac_exeext
22859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22860 (eval $ac_link) 2>&5
22862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865 (eval $ac_try) 2>&5
22867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22868 (exit $ac_status); }; }; then
22869 sv_cv_fault_macosdarwin7_ppc=yes
22871 echo "$as_me: program exited with status
$ac_status" >&5
22872 echo "$as_me: failed program was
:" >&5
22873 sed 's/^/| /' conftest.$ac_ext >&5
22875 ( exit $ac_status )
22876 sv_cv_fault_macosdarwin7_ppc=no
22878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22882 echo "$as_me:$LINENO: result
: $sv_cv_fault_macosdarwin7_ppc" >&5
22883 echo "${ECHO_T}$sv_cv_fault_macosdarwin7_ppc" >&6
22886 if test "$sv_cv_fault_macosdarwin7_ppc" != yes; then
22891 echo "$as_me:$LINENO: checking whether a fault handler according to MacOSX
/Darwin5 PowerPC works
" >&5
22892 echo $ECHO_N "checking whether a fault handler according to MacOSX
/Darwin5 PowerPC works...
$ECHO_C" >&6
22893 if test "${sv_cv_fault_macosdarwin5_ppc+set}" = set; then
22894 echo $ECHO_N "(cached
) $ECHO_C" >&6
22897 if test "$cross_compiling" = yes; then
22899 powerpc-*-darwin5*) sv_cv_fault_macosdarwin5_ppc=yes ;;
22901 cat >conftest.$ac_ext <<_ACEOF
22905 cat confdefs.h >>conftest.$ac_ext
22906 cat >>conftest.$ac_ext <<_ACEOF
22907 /* end confdefs.h. */
22909 #include <signal.h>
22910 #include "$srcdir/src
/fault-macosdarwin5-powerpc.c
"
22911 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22913 void *fault_address = (void *) (get_fault_addr (scp));
22919 struct sigaction action;
22925 rm -f conftest.$ac_objext conftest$ac_exeext
22926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22927 (eval $ac_link) 2>conftest.er1
22929 grep -v '^ *+' conftest.er1 >conftest.err
22931 cat conftest.err >&5
22932 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22933 (exit $ac_status); } &&
22934 { ac_try='test -z "$ac_c_werror_flag"
22935 || test ! -s conftest.err'
22936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22937 (eval $ac_try) 2>&5
22939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22940 (exit $ac_status); }; } &&
22941 { ac_try='test -s conftest$ac_exeext'
22942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22943 (eval $ac_try) 2>&5
22945 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22946 (exit $ac_status); }; }; then
22947 sv_cv_fault_macosdarwin5_ppc="guessing no
"
22949 echo "$as_me: failed program was
:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22952 sv_cv_fault_macosdarwin5_ppc=no
22954 rm -f conftest.err conftest.$ac_objext \
22955 conftest$ac_exeext conftest.$ac_ext
22960 cat >conftest.$ac_ext <<_ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h. */
22968 #include <stdlib.h>
22969 #include <signal.h>
22970 #if HAVE_SYS_SIGNAL_H
22971 # include <sys/signal.h>
22973 #include "$srcdir/src
/fault-macosdarwin5-powerpc.c
"
22974 #include <sys/types.h>
22975 #include <sys/mman.h>
22976 #if HAVE_MMAP_DEVZERO
22977 # include <fcntl.h>
22979 # define MAP_FILE 0
22983 # define PROT_NONE 0
22986 # define zero_fd -1
22987 # define map_flags MAP_ANON | MAP_PRIVATE
22988 #elif HAVE_MMAP_ANONYMOUS
22989 # define zero_fd -1
22990 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
22991 #elif HAVE_MMAP_DEVZERO
22992 static int zero_fd;
22993 # define map_flags MAP_FILE | MAP_PRIVATE
22995 unsigned long page;
22996 int handler_called = 0;
22997 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
22999 void *fault_address = (void *) (get_fault_addr (scp));
23001 if (handler_called == 10)
23003 if (fault_address != (void*)(page + 0x678))
23005 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
23008 void crasher (unsigned long p)
23010 *(int *) (p + 0x678) = 42;
23015 struct sigaction action;
23016 /* Preparations. */
23017 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
23018 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
23020 /* Setup some mmaped memory. */
23022 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
23023 freedom about the address range. */
23024 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
23026 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
23028 if (p == (void *)(-1))
23030 page = (unsigned long) p;
23031 /* Make it read-only. */
23032 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
23034 /* Install the SIGSEGV handler. */
23035 sigemptyset(&action.sa_mask);
23037 action.sa_handler = (void (*) (int)) &sigsegv_handler;
23038 action.sa_flags = 0;
23040 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
23041 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
23042 /* The first write access should invoke the handler and then complete. */
23044 /* The second write access should not invoke the handler. */
23046 /* Check that the handler was called only once. */
23047 if (handler_called != 1)
23053 rm -f conftest$ac_exeext
23054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23055 (eval $ac_link) 2>&5
23057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23063 (exit $ac_status); }; }; then
23064 sv_cv_fault_macosdarwin5_ppc=yes
23066 echo "$as_me: program exited with status
$ac_status" >&5
23067 echo "$as_me: failed program was
:" >&5
23068 sed 's/^/| /' conftest.$ac_ext >&5
23070 ( exit $ac_status )
23071 sv_cv_fault_macosdarwin5_ppc=no
23073 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23077 echo "$as_me:$LINENO: result
: $sv_cv_fault_macosdarwin5_ppc" >&5
23078 echo "${ECHO_T}$sv_cv_fault_macosdarwin5_ppc" >&6
23086 echo "$as_me:$LINENO: checking whether a fault handler according to Hurd works
" >&5
23087 echo $ECHO_N "checking whether a fault handler according to Hurd works...
$ECHO_C" >&6
23088 if test "${sv_cv_fault_hurd+set}" = set; then
23089 echo $ECHO_N "(cached
) $ECHO_C" >&6
23092 if test "$cross_compiling" = yes; then
23096 cat >conftest.$ac_ext <<_ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h. */
23104 #include <signal.h>
23106 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
23108 void *fault_address = (void *) (code);
23114 struct sigaction action;
23120 rm -f conftest.$ac_objext conftest$ac_exeext
23121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23122 (eval $ac_link) 2>conftest.er1
23124 grep -v '^ *+' conftest.er1 >conftest.err
23126 cat conftest.err >&5
23127 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23128 (exit $ac_status); } &&
23129 { ac_try='test -z "$ac_c_werror_flag"
23130 || test ! -s conftest.err'
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23134 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23135 (exit $ac_status); }; } &&
23136 { ac_try='test -s conftest$ac_exeext'
23137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138 (eval $ac_try) 2>&5
23140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23141 (exit $ac_status); }; }; then
23142 sv_cv_fault_hurd="guessing no
"
23144 echo "$as_me: failed program was
:" >&5
23145 sed 's/^/| /' conftest.$ac_ext >&5
23147 sv_cv_fault_hurd=no
23149 rm -f conftest.err conftest.$ac_objext \
23150 conftest$ac_exeext conftest.$ac_ext
23155 cat >conftest.$ac_ext <<_ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h. */
23163 #include <stdlib.h>
23164 #include <signal.h>
23165 #if HAVE_SYS_SIGNAL_H
23166 # include <sys/signal.h>
23169 #include <sys/types.h>
23170 #include <sys/mman.h>
23171 #if HAVE_MMAP_DEVZERO
23172 # include <fcntl.h>
23174 # define MAP_FILE 0
23178 # define PROT_NONE 0
23181 # define zero_fd -1
23182 # define map_flags MAP_ANON | MAP_PRIVATE
23183 #elif HAVE_MMAP_ANONYMOUS
23184 # define zero_fd -1
23185 # define map_flags MAP_ANONYMOUS | MAP_PRIVATE
23186 #elif HAVE_MMAP_DEVZERO
23187 static int zero_fd;
23188 # define map_flags MAP_FILE | MAP_PRIVATE
23190 unsigned long page;
23191 int handler_called = 0;
23192 void sigsegv_handler (int sig, int code, struct sigcontext *scp)
23194 void *fault_address = (void *) (code);
23196 if (handler_called == 10)
23198 if (fault_address != (void*)(page + 0x678))
23200 if (mprotect ((void *) page, 0x10000, PROT_READ | PROT_WRITE) < 0)
23203 void crasher (unsigned long p)
23205 *(int *) (p + 0x678) = 42;
23210 struct sigaction action;
23211 /* Preparations. */
23212 #if !HAVE_MMAP_ANON && !HAVE_MMAP_ANONYMOUS && HAVE_MMAP_DEVZERO
23213 zero_fd = open ("/dev
/zero
", O_RDONLY, 0644);
23215 /* Setup some mmaped memory. */
23217 /* HP-UX 10 mmap() often fails when given a hint. So give the OS complete
23218 freedom about the address range. */
23219 p = mmap ((void *) 0, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
23221 p = mmap ((void *) 0x12340000, 0x10000, PROT_READ | PROT_WRITE, map_flags, zero_fd, 0);
23223 if (p == (void *)(-1))
23225 page = (unsigned long) p;
23226 /* Make it read-only. */
23227 if (mprotect ((void *) page, 0x10000, PROT_READ) < 0)
23229 /* Install the SIGSEGV handler. */
23230 sigemptyset(&action.sa_mask);
23232 action.sa_handler = (void (*) (int)) &sigsegv_handler;
23233 action.sa_flags = 0;
23235 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
23236 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
23237 /* The first write access should invoke the handler and then complete. */
23239 /* The second write access should not invoke the handler. */
23241 /* Check that the handler was called only once. */
23242 if (handler_called != 1)
23248 rm -f conftest$ac_exeext
23249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23250 (eval $ac_link) 2>&5
23252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255 (eval $ac_try) 2>&5
23257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23258 (exit $ac_status); }; }; then
23259 sv_cv_fault_hurd=yes
23261 echo "$as_me: program exited with status
$ac_status" >&5
23262 echo "$as_me: failed program was
:" >&5
23263 sed 's/^/| /' conftest.$ac_ext >&5
23265 ( exit $ac_status )
23266 sv_cv_fault_hurd=no
23268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23272 echo "$as_me:$LINENO: result
: $sv_cv_fault_hurd" >&5
23273 echo "${ECHO_T}$sv_cv_fault_hurd" >&6
23276 # End of MacOS X special casing.
23284 FAULT_CONTEXT_INCLUDE=
23285 FAULT_CONTEXT_INCLUDE2=
23286 if test -z "$CFG_FAULT" && test "$sv_cv_fault_aix" = yes; then
23287 case "$host_cpu" in
23288 powerpc* | rs6000) CFG_FAULT=fault-aix3-powerpc.h ;;
23289 *) CFG_FAULT=fault-aix3.h ;;
23291 FAULT_CONTEXT='struct sigcontext'
23293 if test -z "$CFG_FAULT" && test "$sv_cv_fault_irix" = yes; then
23294 case "$host_cpu" in
23295 mips*) CFG_FAULT=fault-irix-mips.h ;;
23296 *) CFG_FAULT=fault-irix.h ;;
23298 FAULT_CONTEXT='struct sigcontext'
23300 if test -z "$CFG_FAULT" && test "$sv_cv_fault_hpux_hppa" = yes; then
23301 case "$host_cpu" in
23302 hppa* | parisc*) CFG_FAULT=fault-hpux-hppa.h ;;
23303 *) CFG_FAULT=fault-hpux.h ;;
23305 FAULT_CONTEXT='struct sigcontext'
23307 if test -z "$CFG_FAULT" && test "$sv_cv_fault_osf_alpha" = yes; then
23308 case "$host_cpu" in
23309 alpha*) CFG_FAULT=fault-osf-alpha.h ;;
23310 *) CFG_FAULT=fault-osf.h ;;
23312 FAULT_CONTEXT='struct sigcontext'
23314 if test -z "$CFG_FAULT" && test "$sv_cv_fault_netbsd_alpha" = yes; then
23315 case "$host_cpu" in
23316 alpha*) CFG_FAULT=fault-netbsd-alpha.h ;;
23318 FAULT_CONTEXT='struct sigcontext'
23320 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_i386" = yes; then
23321 case "$host_cpu" in
23322 i?86 | x86_64) CFG_FAULT=fault-linux-i386.h ;;
23324 FAULT_CONTEXT='struct sigcontext'
23326 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_i386_old" = yes; then
23327 case "$host_cpu" in
23328 i?86 | x86_64) CFG_FAULT=fault-linux-i386-old.h ;;
23330 FAULT_CONTEXT='struct sigcontext'
23332 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_powerpc" = yes; then
23333 case "$host_cpu" in
23334 powerpc* | rs6000) CFG_FAULT=fault-linux-powerpc.h ;;
23336 FAULT_CONTEXT='struct sigcontext'
23338 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_hppa" = yes; then
23339 case "$host_cpu" in
23340 hppa* | parisc*) CFG_FAULT=fault-linux-hppa.h ;;
23343 if test -z "$CFG_FAULT" && test "$sv_cv_fault_hurd" = yes; then
23345 netbsd*) # A false positive.
23348 CFG_FAULT=fault-hurd.h
23349 FAULT_CONTEXT='struct sigcontext'
23353 if test -z "$CFG_FAULT" && test "$sv_cv_fault_bsd" = yes; then
23356 case "$host_cpu" in
23358 CFG_FAULT=fault-freebsd-i386.h
23359 FAULT_CONTEXT='struct sigcontext'
23362 CFG_FAULT=fault-bsd.h
23363 FAULT_CONTEXT='void'
23368 CFG_FAULT=fault-bsd.h
23369 FAULT_CONTEXT='void'
23373 if test -z "$CFG_FAULT" && test "$sv_cv_fault_posix" = yes; then
23376 case "$host_cpu" in
23377 i?86 | x86_64) CFG_FAULT=fault-openbsd-i386.h ;;
23378 *) CFG_FAULT=fault-openbsd.h ;;
23380 FAULT_CONTEXT='struct sigcontext'
23383 case "$host_cpu" in
23385 CFG_FAULT=fault-linux-ia64.h
23386 FAULT_CONTEXT='struct sigcontext'
23391 if test -z "$CFG_FAULT"; then
23394 case "$host_cpu" in
23395 i?86 | x86_64) CFG_FAULT=fault-solaris-i386.h ;;
23396 sparc*) CFG_FAULT=fault-solaris-sparc.h ;;
23397 *) CFG_FAULT=fault-solaris.h ;;
23401 case "$host_cpu" in
23402 powerpc* | rs6000) CFG_FAULT=fault-aix5-powerpc.h ;;
23403 *) CFG_FAULT=fault-aix5.h ;;
23407 CFG_FAULT=fault-posix.h
23410 FAULT_CONTEXT='ucontext_t'
23411 FAULT_CONTEXT_INCLUDE='#include <ucontext.h>'
23414 if test -z "$CFG_FAULT"; then
23416 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
23417 case "$host_cpu" in
23419 CFG_MACHFAULT=machfault-macos-powerpc.h
23420 FAULT_CONTEXT='ppc_thread_state_t'
23423 CFG_MACHFAULT=machfault-macos-i386.h
23424 FAULT_CONTEXT='struct i386_saved_state'
23427 if test -n "$CFG_MACHFAULT"; then
23428 CFG_HANDLER=handler-macos.c
23429 FAULT_CONTEXT_INCLUDE='#include <signal.h>'
23430 FAULT_CONTEXT_INCLUDE2='#include <mach/thread_status.h>'
23431 CFG_FAULT=fault-macos.h # nonexistent, just a dummy
23436 if test -z "$CFG_FAULT" && test "$sv_cv_fault_linux_m68k" = yes; then
23437 case "$host_cpu" in
23439 CFG_FAULT=fault-linux-m68k.h
23440 FAULT_CONTEXT='struct sigcontext'
23444 if test -z "$CFG_FAULT" && test "$sv_cv_fault_macosdarwin7_ppc" = yes; then
23445 case "$host_cpu" in
23447 CFG_FAULT=fault-macosdarwin7-powerpc.h
23448 FAULT_CONTEXT='ucontext_t'
23449 FAULT_CONTEXT_INCLUDE='#include <signal.h>'
23450 FAULT_CONTEXT_INCLUDE2='#include <ucontext.h>'
23454 if test -z "$CFG_FAULT" && test "$sv_cv_fault_macosdarwin5_ppc" = yes; then
23455 case "$host_cpu" in
23457 CFG_FAULT=fault-macosdarwin5-powerpc.h
23458 FAULT_CONTEXT='struct sigcontext'
23462 if test -z "$CFG_FAULT"; then
23465 FAULT_CONTEXT='CONTEXT'
23466 FAULT_CONTEXT_INCLUDE='#include <windows.h>'
23467 CFG_FAULT=fault-win32.h # nonexistent, just a dummy
23471 if test -n "$CFG_FAULT"; then
23472 sv_cv_have_sigsegv_recovery=yes
23474 sv_cv_have_sigsegv_recovery=no
23477 case "$host_cpu" in
23479 CFG_FAULT=fault-linux-alpha.h
23480 FAULT_CONTEXT='struct sigcontext'
23482 arm* | strongarm* | xscale*)
23483 CFG_FAULT=fault-linux-arm.h
23484 FAULT_CONTEXT='struct sigcontext'
23487 CFG_FAULT=fault-linux-cris.h
23488 FAULT_CONTEXT='struct sigcontext'
23491 CFG_FAULT=fault-linux-mips.h
23492 FAULT_CONTEXT='struct sigcontext'
23495 CFG_FAULT=fault-linux-s390.h
23496 FAULT_CONTEXT='struct sigcontext'
23499 CFG_FAULT=fault-linux-sh.h
23500 FAULT_CONTEXT='struct sigcontext'
23503 CFG_FAULT=fault-linux-sparc.h
23504 FAULT_CONTEXT='struct sigcontext'
23507 CFG_FAULT=fault-linux-x86_64.h
23508 FAULT_CONTEXT='struct sigcontext'
23513 case "$host_cpu" in
23514 i?86 | x86_64) CFG_FAULT=fault-beos-i386.h ;;
23515 *) CFG_FAULT=fault-beos.h ;;
23517 FAULT_CONTEXT='struct vregs'
23520 case "$host_cpu" in
23521 i?86 | x86_64) CFG_FAULT=fault-macos-i386.h ;;
23523 FAULT_CONTEXT='struct sigcontext'
23527 echo "$as_me:$LINENO: checking
for the fault handler specifics
" >&5
23528 echo $ECHO_N "checking
for the fault handler specifics...
$ECHO_C" >&6
23529 if test -n "$CFG_FAULT"; then
23530 sv_cv_fault_include=$CFG_FAULT
23532 if test -n "$CFG_MACHFAULT"; then
23533 sv_cv_fault_include=$CFG_MACHFAULT
23535 sv_cv_fault_include=none
23538 echo "$as_me:$LINENO: result
: $sv_cv_fault_include" >&5
23539 echo "${ECHO_T}$sv_cv_fault_include" >&6
23540 if test -z "$CFG_FAULT"; then
23541 CFG_FAULT=fault-none.h
23544 cat >>confdefs.h <<_ACEOF
23545 #define CFG_FAULT "$CFG_FAULT"
23548 if test -z "$CFG_MACHFAULT"; then
23549 CFG_MACHFAULT=fault-none.h
23552 cat >>confdefs.h <<_ACEOF
23553 #define CFG_MACHFAULT "$CFG_MACHFAULT"
23560 echo "$as_me:$LINENO: checking
if the system supports catching SIGSEGV
" >&5
23561 echo $ECHO_N "checking
if the system supports catching SIGSEGV...
$ECHO_C" >&6
23562 echo "$as_me:$LINENO: result
: $sv_cv_have_sigsegv_recovery" >&5
23563 echo "${ECHO_T}$sv_cv_have_sigsegv_recovery" >&6
23564 if test $sv_cv_have_sigsegv_recovery != no; then
23565 HAVE_SIGSEGV_RECOVERY=1
23567 HAVE_SIGSEGV_RECOVERY=0
23572 echo "$as_me:$LINENO: checking
for stack direction
" >&5
23573 echo $ECHO_N "checking
for stack direction...
$ECHO_C" >&6
23574 if test "${sv_cv_stack_direction_msg+set}" = set; then
23575 echo $ECHO_N "(cached
) $ECHO_C" >&6
23578 case "$host_cpu" in
23582 arm* | strongarm* | xscale* | \
23584 c1 | c2 | c32 | c34 | c38 | \
23605 powerpc* | rs6000 | \
23613 sv_cv_stack_direction=-1 ;;
23617 hppa* | parisc* | \
23620 sv_cv_stack_direction=1 ;;
23622 if test $cross_compiling = no; then
23623 cat > conftest.c <<EOF
23626 get_stack_direction ()
23629 static char *dummyaddr = (char *)0;
23630 if (dummyaddr != (char *)0)
23631 return &dummy > dummyaddr ? 1 : &dummy < dummyaddr ? -1 : 0;
23634 dummyaddr = &dummy;
23636 int result = get_stack_direction ();
23637 /* The next assignment avoids tail recursion elimination
23639 dummyaddr = (char *)0;
23647 printf ("%d
\n", get_stack_direction ());
23651 { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23652 (eval $ac_link) 2>&5
23654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23655 (exit $ac_status); }
23656 sv_cv_stack_direction=`./conftest`
23658 sv_cv_stack_direction=0
23662 case $sv_cv_stack_direction in
23663 1) sv_cv_stack_direction_msg="grows up
";;
23664 -1) sv_cv_stack_direction_msg="grows down
";;
23665 *) sv_cv_stack_direction_msg="unknown
";;
23669 echo "$as_me:$LINENO: result
: $sv_cv_stack_direction_msg" >&5
23670 echo "${ECHO_T}$sv_cv_stack_direction_msg" >&6
23672 cat >>confdefs.h <<_ACEOF
23673 #define STACK_DIRECTION $sv_cv_stack_direction
23677 echo "$as_me:$LINENO: checking
for PIOCMAP
in sys
/procfs.h
" >&5
23678 echo $ECHO_N "checking
for PIOCMAP
in sys
/procfs.h...
$ECHO_C" >&6
23679 if test "${sv_cv_procfsvma+set}" = set; then
23680 echo $ECHO_N "(cached
) $ECHO_C" >&6
23683 cat >conftest.$ac_ext <<_ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h. */
23689 #include <sys/procfs.h>
23693 int x = PIOCNMAP + PIOCMAP; prmap_t y;
23698 rm -f conftest.$ac_objext conftest$ac_exeext
23699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23700 (eval $ac_link) 2>conftest.er1
23702 grep -v '^ *+' conftest.er1 >conftest.err
23704 cat conftest.err >&5
23705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23706 (exit $ac_status); } &&
23707 { ac_try='test -z "$ac_c_werror_flag"
23708 || test ! -s conftest.err'
23709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23710 (eval $ac_try) 2>&5
23712 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23713 (exit $ac_status); }; } &&
23714 { ac_try='test -s conftest$ac_exeext'
23715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23716 (eval $ac_try) 2>&5
23718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23719 (exit $ac_status); }; }; then
23720 sv_cv_procfsvma=yes
23722 echo "$as_me: failed program was
:" >&5
23723 sed 's/^/| /' conftest.$ac_ext >&5
23727 rm -f conftest.err conftest.$ac_objext \
23728 conftest$ac_exeext conftest.$ac_ext
23731 echo "$as_me:$LINENO: result
: $sv_cv_procfsvma" >&5
23732 echo "${ECHO_T}$sv_cv_procfsvma" >&6
23734 if test $sv_cv_procfsvma = yes; then
23735 CFG_STACKVMA=stackvma-procfs.c
23738 linux*) CFG_STACKVMA=stackvma-linux.c ;;
23739 freebsd*) CFG_STACKVMA=stackvma-freebsd.c ;;
23740 beos*) CFG_STACKVMA=stackvma-beos.c ;;
23741 macos* | darwin*) CFG_STACKVMA=stackvma-mach.c ;;
23744 if test -n "$CFG_STACKVMA"; then
23746 cat >>confdefs.h <<\_ACEOF
23747 #define HAVE_STACKVMA 1
23751 CFG_STACKVMA=stackvma-none.c
23754 cat >>confdefs.h <<_ACEOF
23755 #define CFG_STACKVMA "$CFG_STACKVMA"
23762 for ac_func in getrlimit setrlimit
23764 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23765 echo "$as_me:$LINENO: checking
for $ac_func" >&5
23766 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6
23767 if eval "test \"\
${$as_ac_var+set}\" = set"; then
23768 echo $ECHO_N "(cached
) $ECHO_C" >&6
23770 cat >conftest.$ac_ext <<_ACEOF
23773 cat confdefs.h >>conftest.$ac_ext
23774 cat >>conftest.$ac_ext <<_ACEOF
23775 /* end confdefs.h. */
23776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23778 #define $ac_func innocuous_$ac_func
23780 /* System header to define __stub macros and hopefully few prototypes,
23781 which can conflict with char $ac_func (); below.
23782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23783 <limits.h> exists even on freestanding compilers. */
23786 # include <limits.h>
23788 # include <assert.h>
23793 /* Override any gcc2 internal prototype to avoid an error. */
23798 /* We use char because int might match the return type of a gcc2
23799 builtin and then its argument prototype would still apply. */
23801 /* The GNU C library defines this for functions which it implements
23802 to always fail with ENOSYS. Some functions are actually named
23803 something starting with __ and the normal name is an alias. */
23804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23807 char (*f) () = $ac_func;
23816 return f != $ac_func;
23821 rm -f conftest.$ac_objext conftest$ac_exeext
23822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23823 (eval $ac_link) 2>conftest.er1
23825 grep -v '^ *+' conftest.er1 >conftest.err
23827 cat conftest.err >&5
23828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23829 (exit $ac_status); } &&
23830 { ac_try='test -z "$ac_c_werror_flag"
23831 || test ! -s conftest.err'
23832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23833 (eval $ac_try) 2>&5
23835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23836 (exit $ac_status); }; } &&
23837 { ac_try='test -s conftest$ac_exeext'
23838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839 (eval $ac_try) 2>&5
23841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23842 (exit $ac_status); }; }; then
23843 eval "$as_ac_var=yes"
23845 echo "$as_me: failed program was
:" >&5
23846 sed 's/^/| /' conftest.$ac_ext >&5
23848 eval "$as_ac_var=no
"
23850 rm -f conftest.err conftest.$ac_objext \
23851 conftest$ac_exeext conftest.$ac_ext
23853 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_var'}'`" >&5
23854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23855 if test `eval echo '${'$as_ac_var'}'` = yes; then
23856 cat >>confdefs.h <<_ACEOF
23857 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23869 for ac_func in sigaltstack
23871 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23872 echo "$as_me:$LINENO: checking
for $ac_func" >&5
23873 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6
23874 if eval "test \"\
${$as_ac_var+set}\" = set"; then
23875 echo $ECHO_N "(cached
) $ECHO_C" >&6
23877 cat >conftest.$ac_ext <<_ACEOF
23880 cat confdefs.h >>conftest.$ac_ext
23881 cat >>conftest.$ac_ext <<_ACEOF
23882 /* end confdefs.h. */
23883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23885 #define $ac_func innocuous_$ac_func
23887 /* System header to define __stub macros and hopefully few prototypes,
23888 which can conflict with char $ac_func (); below.
23889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23890 <limits.h> exists even on freestanding compilers. */
23893 # include <limits.h>
23895 # include <assert.h>
23900 /* Override any gcc2 internal prototype to avoid an error. */
23905 /* We use char because int might match the return type of a gcc2
23906 builtin and then its argument prototype would still apply. */
23908 /* The GNU C library defines this for functions which it implements
23909 to always fail with ENOSYS. Some functions are actually named
23910 something starting with __ and the normal name is an alias. */
23911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23914 char (*f) () = $ac_func;
23923 return f != $ac_func;
23928 rm -f conftest.$ac_objext conftest$ac_exeext
23929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23930 (eval $ac_link) 2>conftest.er1
23932 grep -v '^ *+' conftest.er1 >conftest.err
23934 cat conftest.err >&5
23935 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23936 (exit $ac_status); } &&
23937 { ac_try='test -z "$ac_c_werror_flag"
23938 || test ! -s conftest.err'
23939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23940 (eval $ac_try) 2>&5
23942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23943 (exit $ac_status); }; } &&
23944 { ac_try='test -s conftest$ac_exeext'
23945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23946 (eval $ac_try) 2>&5
23948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23949 (exit $ac_status); }; }; then
23950 eval "$as_ac_var=yes"
23952 echo "$as_me: failed program was
:" >&5
23953 sed 's/^/| /' conftest.$ac_ext >&5
23955 eval "$as_ac_var=no
"
23957 rm -f conftest.err conftest.$ac_objext \
23958 conftest$ac_exeext conftest.$ac_ext
23960 echo "$as_me:$LINENO: result
: `eval echo '${'$as_ac_var'}'`" >&5
23961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23962 if test `eval echo '${'$as_ac_var'}'` = yes; then
23963 cat >>confdefs.h <<_ACEOF
23964 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23971 if test "$ac_cv_func_sigaltstack" = yes; then
23972 echo "$as_me:$LINENO: checking
for stack_t
" >&5
23973 echo $ECHO_N "checking
for stack_t...
$ECHO_C" >&6
23974 if test "${ac_cv_type_stack_t+set}" = set; then
23975 echo $ECHO_N "(cached
) $ECHO_C" >&6
23977 cat >conftest.$ac_ext <<_ACEOF
23980 cat confdefs.h >>conftest.$ac_ext
23981 cat >>conftest.$ac_ext <<_ACEOF
23982 /* end confdefs.h. */
23984 #include <signal.h>
23985 #if HAVE_SYS_SIGNAL_H
23986 # include <sys/signal.h>
23995 if (sizeof (stack_t))
24001 rm -f conftest.$ac_objext
24002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24003 (eval $ac_compile) 2>conftest.er1
24005 grep -v '^ *+' conftest.er1 >conftest.err
24007 cat conftest.err >&5
24008 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24009 (exit $ac_status); } &&
24010 { ac_try='test -z "$ac_c_werror_flag"
24011 || test ! -s conftest.err'
24012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24013 (eval $ac_try) 2>&5
24015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24016 (exit $ac_status); }; } &&
24017 { ac_try='test -s conftest.$ac_objext'
24018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24019 (eval $ac_try) 2>&5
24021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24022 (exit $ac_status); }; }; then
24023 ac_cv_type_stack_t=yes
24025 echo "$as_me: failed program was
:" >&5
24026 sed 's/^/| /' conftest.$ac_ext >&5
24028 ac_cv_type_stack_t=no
24030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24032 echo "$as_me:$LINENO: result
: $ac_cv_type_stack_t" >&5
24033 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
24034 if test $ac_cv_type_stack_t = yes; then
24038 cat >>confdefs.h <<\_ACEOF
24039 #define stack_t struct sigaltstack
24047 echo "$as_me:$LINENO: checking
for working sigaltstack
" >&5
24048 echo $ECHO_N "checking
for working sigaltstack...
$ECHO_C" >&6
24049 if test "${sv_cv_sigaltstack+set}" = set; then
24050 echo $ECHO_N "(cached
) $ECHO_C" >&6
24053 if test "$ac_cv_func_sigaltstack" = yes; then
24055 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
24056 # On MacOS X 10.2 or newer, just assume that if it compiles, it will
24057 # work. If we were to perform the real test, 1 Crash Report dialog
24058 # window would pop up.
24059 cat >conftest.$ac_ext <<_ACEOF
24063 cat confdefs.h >>conftest.$ac_ext
24064 cat >>conftest.$ac_ext <<_ACEOF
24065 /* end confdefs.h. */
24066 #include <signal.h>
24070 int x = SA_ONSTACK; stack_t ss; sigaltstack ((stack_t*)0, &ss);
24075 rm -f conftest.$ac_objext conftest$ac_exeext
24076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24077 (eval $ac_link) 2>conftest.er1
24079 grep -v '^ *+' conftest.er1 >conftest.err
24081 cat conftest.err >&5
24082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24083 (exit $ac_status); } &&
24084 { ac_try='test -z "$ac_c_werror_flag"
24085 || test ! -s conftest.err'
24086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24087 (eval $ac_try) 2>&5
24089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24090 (exit $ac_status); }; } &&
24091 { ac_try='test -s conftest$ac_exeext'
24092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093 (eval $ac_try) 2>&5
24095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24096 (exit $ac_status); }; }; then
24097 sv_cv_sigaltstack="guessing
yes"
24099 echo "$as_me: failed program was
:" >&5
24100 sed 's/^/| /' conftest.$ac_ext >&5
24102 sv_cv_sigaltstack=no
24104 rm -f conftest.err conftest.$ac_objext \
24105 conftest$ac_exeext conftest.$ac_ext
24108 if test "$cross_compiling" = yes; then
24112 cat >conftest.$ac_ext <<_ACEOF
24116 cat confdefs.h >>conftest.$ac_ext
24117 cat >>conftest.$ac_ext <<_ACEOF
24118 /* end confdefs.h. */
24119 #include <signal.h>
24123 int x = SA_ONSTACK; stack_t ss; sigaltstack ((stack_t*)0, &ss);
24128 rm -f conftest.$ac_objext conftest$ac_exeext
24129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24130 (eval $ac_link) 2>conftest.er1
24132 grep -v '^ *+' conftest.er1 >conftest.err
24134 cat conftest.err >&5
24135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24136 (exit $ac_status); } &&
24137 { ac_try='test -z "$ac_c_werror_flag"
24138 || test ! -s conftest.err'
24139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140 (eval $ac_try) 2>&5
24142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24143 (exit $ac_status); }; } &&
24144 { ac_try='test -s conftest$ac_exeext'
24145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24146 (eval $ac_try) 2>&5
24148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24149 (exit $ac_status); }; }; then
24150 sv_cv_sigaltstack="guessing
yes"
24152 echo "$as_me: failed program was
:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24155 sv_cv_sigaltstack=no
24157 rm -f conftest.err conftest.$ac_objext \
24158 conftest$ac_exeext conftest.$ac_ext
24163 cat >conftest.$ac_ext <<_ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h. */
24171 #include <stdlib.h>
24172 #include <signal.h>
24173 #if HAVE_SYS_SIGNAL_H
24174 # include <sys/signal.h>
24177 # include <sys/types.h>
24178 # include <sys/time.h>
24179 # include <sys/resource.h>
24181 void stackoverflow_handler (int sig)
24183 /* If we get here, the stack overflow was caught. */
24186 int recurse (int n)
24189 return n + recurse (n + 1);
24195 char mystack[16384];
24197 struct sigaction action;
24198 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
24199 /* Before starting the endless recursion, try to be friendly to the user's
24200 machine. On some Linux 2.2.x systems, there is no stack limit for user
24201 processes at all. We don't want to kill such systems. */
24203 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
24204 setrlimit (RLIMIT_STACK, &rl);
24206 /* Install the alternate stack. */
24207 altstack.ss_sp = mystack;
24208 altstack.ss_size = sizeof (mystack);
24209 altstack.ss_flags = 0; /* no SS_DISABLE */
24210 if (sigaltstack (&altstack, NULL) < 0)
24212 /* Install the SIGSEGV handler. */
24213 sigemptyset (&action.sa_mask);
24214 action.sa_handler = &stackoverflow_handler;
24215 action.sa_flags = SA_ONSTACK;
24216 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
24217 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
24218 /* Provoke a stack overflow. */
24223 rm -f conftest$ac_exeext
24224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24225 (eval $ac_link) 2>&5
24227 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24230 (eval $ac_try) 2>&5
24232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24233 (exit $ac_status); }; }; then
24234 sv_cv_sigaltstack=yes
24236 echo "$as_me: program exited with status
$ac_status" >&5
24237 echo "$as_me: failed program was
:" >&5
24238 sed 's/^/| /' conftest.$ac_ext >&5
24240 ( exit $ac_status )
24241 sv_cv_sigaltstack=no
24243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24248 sv_cv_sigaltstack=no
24252 echo "$as_me:$LINENO: result
: $sv_cv_sigaltstack" >&5
24253 echo "${ECHO_T}$sv_cv_sigaltstack" >&6
24254 if test "$sv_cv_sigaltstack" != no; then
24256 cat >>confdefs.h <<\_ACEOF
24257 #define HAVE_WORKING_SIGALTSTACK 1
24263 echo "$as_me:$LINENO: checking
if the system supports catching stack overflow
" >&5
24264 echo $ECHO_N "checking
if the system supports catching stack overflow...
$ECHO_C" >&6
24265 if test "${sv_cv_have_stack_overflow_recovery+set}" = set; then
24266 echo $ECHO_N "(cached
) $ECHO_C" >&6
24269 if test "$CFG_MACHFAULT" != fault-none.h; then
24270 sv_cv_have_stack_overflow_recovery=yes
24272 if test "$sv_cv_sigaltstack" != no; then
24273 sv_cv_have_stack_overflow_recovery=maybe
24276 beos*) sv_cv_have_stack_overflow_recovery=maybe ;;
24277 mingw* | cygwin*) sv_cv_have_stack_overflow_recovery=yes ;;
24278 *) sv_cv_have_stack_overflow_recovery=no ;;
24282 if test $sv_cv_have_stack_overflow_recovery = maybe; then
24283 if test -n "$CFG_FAULT"; then
24284 cat >conftest.$ac_ext <<_ACEOF
24287 cat confdefs.h >>conftest.$ac_ext
24288 cat >>conftest.$ac_ext <<_ACEOF
24289 /* end confdefs.h. */
24291 #include "$srcdir/src
/$CFG_FAULT"
24292 #ifdef SIGSEGV_FAULT_HANDLER_ARGLIST
24293 #ifdef SIGSEGV_FAULT_ADDRESS
24299 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24300 $EGREP "xyzzy
" >/dev/null 2>&1; then
24310 if test -n "$CFG_FAULT"; then
24311 cat >conftest.$ac_ext <<_ACEOF
24314 cat confdefs.h >>conftest.$ac_ext
24315 cat >>conftest.$ac_ext <<_ACEOF
24316 /* end confdefs.h. */
24318 #include "$srcdir/src
/$CFG_FAULT"
24319 #ifdef SIGSEGV_FAULT_HANDLER_ARGLIST
24320 #ifdef SIGSEGV_FAULT_STACKPOINTER
24326 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24327 $EGREP "xyzzy
" >/dev/null 2>&1; then
24337 if test "$CFG_STACKVMA" != "stackvma-none.c
"; then
24342 if { $condA && $condB; } || { $condA && $condC; } || { $condB && $condC; }; then
24343 sv_cv_have_stack_overflow_recovery=yes
24345 sv_cv_have_stack_overflow_recovery=no
24350 echo "$as_me:$LINENO: result
: $sv_cv_have_stack_overflow_recovery" >&5
24351 echo "${ECHO_T}$sv_cv_have_stack_overflow_recovery" >&6
24352 if test $sv_cv_have_stack_overflow_recovery != no; then
24353 HAVE_STACK_OVERFLOW_RECOVERY=1
24355 HAVE_STACK_OVERFLOW_RECOVERY=0
24359 # How to longjmp out of a signal handler, in such a way that the
24360 # alternate signal stack remains functional.
24362 # On MacOS X 10.2 or newer, we don't need these tests, because we'll end up
24363 # using handler-macos.c anyway. If we were to perform the tests, 2 Crash Report
24364 # dialog windows would pop up.
24366 macos* | darwin[6-9]* | darwin[1-9][0-9]*) ;;
24373 echo "$as_me:$LINENO: checking whether a signal handler can be left through longjmp
" >&5
24374 echo $ECHO_N "checking whether a signal handler can be left through longjmp...
$ECHO_C" >&6
24375 if test "${sv_cv_leave_handler_longjmp+set}" = set; then
24376 echo $ECHO_N "(cached
) $ECHO_C" >&6
24379 if test "$cross_compiling" = yes; then
24381 *-*-osf[4-9]* | *-*-hpux11* | *-*-linux2.[2-9]*) sv_cv_leave_handler_longjmp=yes ;;
24382 *) sv_cv_leave_handler_longjmp="guessing no
" ;;
24386 cat >conftest.$ac_ext <<_ACEOF
24390 cat confdefs.h >>conftest.$ac_ext
24391 cat >>conftest.$ac_ext <<_ACEOF
24392 /* end confdefs.h. */
24394 #include <stdlib.h>
24395 #include <signal.h>
24396 #include <setjmp.h>
24399 # include <sys/types.h>
24400 # include <sys/time.h>
24401 # include <sys/resource.h>
24404 sigset_t mainsigset;
24406 void stackoverflow_handler (int sig)
24409 sigprocmask (SIG_SETMASK, &mainsigset, NULL);
24411 longjmp (mainloop, pass);
24413 int recurse (int n)
24416 return n + recurse (n + 1);
24422 char mystack[16384];
24424 struct sigaction action;
24426 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
24427 /* Before starting the endless recursion, try to be friendly to the user's
24428 machine. On some Linux 2.2.x systems, there is no stack limit for user
24429 processes at all. We don't want to kill such systems. */
24431 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
24432 setrlimit (RLIMIT_STACK, &rl);
24434 /* Install the alternate stack. */
24435 altstack.ss_sp = mystack;
24436 altstack.ss_size = sizeof (mystack);
24437 altstack.ss_flags = 0; /* no SS_DISABLE */
24438 if (sigaltstack (&altstack, NULL) < 0)
24440 /* Install the SIGSEGV handler. */
24441 sigemptyset (&action.sa_mask);
24442 action.sa_handler = &stackoverflow_handler;
24443 action.sa_flags = SA_ONSTACK;
24444 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
24445 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
24446 /* Save the current signal mask. */
24447 sigemptyset (&emptyset);
24448 sigprocmask (SIG_BLOCK, &emptyset, &mainsigset);
24449 /* Provoke two stack overflows in a row. */
24450 if (setjmp (mainloop) < 2)
24458 rm -f conftest$ac_exeext
24459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24460 (eval $ac_link) 2>&5
24462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24465 (eval $ac_try) 2>&5
24467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24468 (exit $ac_status); }; }; then
24469 sv_cv_leave_handler_longjmp=yes
24471 echo "$as_me: program exited with status
$ac_status" >&5
24472 echo "$as_me: failed program was
:" >&5
24473 sed 's/^/| /' conftest.$ac_ext >&5
24475 ( exit $ac_status )
24476 sv_cv_leave_handler_longjmp=no
24478 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24482 echo "$as_me:$LINENO: result
: $sv_cv_leave_handler_longjmp" >&5
24483 echo "${ECHO_T}$sv_cv_leave_handler_longjmp" >&6
24490 echo "$as_me:$LINENO: checking whether a signal handler can be left through longjmp and sigaltstack
" >&5
24491 echo $ECHO_N "checking whether a signal handler can be left through longjmp and sigaltstack...
$ECHO_C" >&6
24492 if test "${sv_cv_leave_handler_longjmp_sigaltstack+set}" = set; then
24493 echo $ECHO_N "(cached
) $ECHO_C" >&6
24496 if test "$cross_compiling" = yes; then
24498 *-*-freebsd*) sv_cv_leave_handler_longjmp_sigaltstack=yes ;;
24499 *) sv_cv_leave_handler_longjmp_sigaltstack="guessing no
" ;;
24503 cat >conftest.$ac_ext <<_ACEOF
24507 cat confdefs.h >>conftest.$ac_ext
24508 cat >>conftest.$ac_ext <<_ACEOF
24509 /* end confdefs.h. */
24511 #include <stdlib.h>
24512 #include <signal.h>
24513 #include <setjmp.h>
24516 #define SS_ONSTACK SA_ONSTACK
24520 # include <sys/types.h>
24521 # include <sys/time.h>
24522 # include <sys/resource.h>
24525 sigset_t mainsigset;
24527 void stackoverflow_handler (int sig)
24530 sigprocmask (SIG_SETMASK, &mainsigset, NULL);
24532 if (sigaltstack (NULL, &ss) >= 0)
24534 ss.ss_flags &= ~SS_ONSTACK;
24535 sigaltstack (&ss, NULL);
24538 longjmp (mainloop, pass);
24540 int recurse (int n)
24543 return n + recurse (n + 1);
24549 char mystack[16384];
24551 struct sigaction action;
24553 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
24554 /* Before starting the endless recursion, try to be friendly to the user's
24555 machine. On some Linux 2.2.x systems, there is no stack limit for user
24556 processes at all. We don't want to kill such systems. */
24558 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
24559 setrlimit (RLIMIT_STACK, &rl);
24561 /* Install the alternate stack. */
24562 altstack.ss_sp = mystack;
24563 altstack.ss_size = sizeof (mystack);
24564 altstack.ss_flags = 0; /* no SS_DISABLE */
24565 if (sigaltstack (&altstack, NULL) < 0)
24567 /* Install the SIGSEGV handler. */
24568 sigemptyset (&action.sa_mask);
24569 action.sa_handler = &stackoverflow_handler;
24570 action.sa_flags = SA_ONSTACK;
24571 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
24572 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
24573 /* Save the current signal mask. */
24574 sigemptyset (&emptyset);
24575 sigprocmask (SIG_BLOCK, &emptyset, &mainsigset);
24576 /* Provoke two stack overflows in a row. */
24577 if (setjmp (mainloop) < 2)
24585 rm -f conftest$ac_exeext
24586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24587 (eval $ac_link) 2>&5
24589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24592 (eval $ac_try) 2>&5
24594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24595 (exit $ac_status); }; }; then
24596 sv_cv_leave_handler_longjmp_sigaltstack=yes
24598 echo "$as_me: program exited with status
$ac_status" >&5
24599 echo "$as_me: failed program was
:" >&5
24600 sed 's/^/| /' conftest.$ac_ext >&5
24602 ( exit $ac_status )
24603 sv_cv_leave_handler_longjmp_sigaltstack=no
24605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24609 echo "$as_me:$LINENO: result
: $sv_cv_leave_handler_longjmp_sigaltstack" >&5
24610 echo "${ECHO_T}$sv_cv_leave_handler_longjmp_sigaltstack" >&6
24617 echo "$as_me:$LINENO: checking whether a signal handler can be left through longjmp and setcontext
" >&5
24618 echo $ECHO_N "checking whether a signal handler can be left through longjmp and setcontext...
$ECHO_C" >&6
24619 if test "${sv_cv_leave_handler_longjmp_setcontext+set}" = set; then
24620 echo $ECHO_N "(cached
) $ECHO_C" >&6
24623 if test "$cross_compiling" = yes; then
24625 *-*-irix* | *-*-solaris*) sv_cv_leave_handler_longjmp_setcontext=yes ;;
24626 *) sv_cv_leave_handler_longjmp_setcontext="guessing no
" ;;
24630 cat >conftest.$ac_ext <<_ACEOF
24634 cat confdefs.h >>conftest.$ac_ext
24635 cat >>conftest.$ac_ext <<_ACEOF
24636 /* end confdefs.h. */
24638 #include <stdlib.h>
24639 #include <signal.h>
24640 #include <setjmp.h>
24641 #include <ucontext.h>
24643 #define SS_ONSTACK SA_ONSTACK
24647 # include <sys/types.h>
24648 # include <sys/time.h>
24649 # include <sys/resource.h>
24652 sigset_t mainsigset;
24654 void stackoverflow_handler (int sig)
24657 sigprocmask (SIG_SETMASK, &mainsigset, NULL);
24659 static ucontext_t uc;
24661 if (getcontext (&uc) >= 0)
24663 if (uc.uc_stack.ss_flags & SS_ONSTACK)
24665 uc.uc_stack.ss_flags &= ~SS_ONSTACK;
24670 longjmp (mainloop, pass);
24672 int recurse (int n)
24675 return n + recurse (n + 1);
24681 char mystack[16384];
24683 struct sigaction action;
24685 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
24686 /* Before starting the endless recursion, try to be friendly to the user's
24687 machine. On some Linux 2.2.x systems, there is no stack limit for user
24688 processes at all. We don't want to kill such systems. */
24690 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
24691 setrlimit (RLIMIT_STACK, &rl);
24693 /* Install the alternate stack. */
24694 altstack.ss_sp = mystack;
24695 altstack.ss_size = sizeof (mystack);
24696 altstack.ss_flags = 0; /* no SS_DISABLE */
24697 if (sigaltstack (&altstack, NULL) < 0)
24699 /* Install the SIGSEGV handler. */
24700 sigemptyset (&action.sa_mask);
24701 action.sa_handler = &stackoverflow_handler;
24702 action.sa_flags = SA_ONSTACK;
24703 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
24704 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
24705 /* Save the current signal mask. */
24706 sigemptyset (&emptyset);
24707 sigprocmask (SIG_BLOCK, &emptyset, &mainsigset);
24708 /* Provoke two stack overflows in a row. */
24709 if (setjmp (mainloop) < 2)
24717 rm -f conftest$ac_exeext
24718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24719 (eval $ac_link) 2>&5
24721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724 (eval $ac_try) 2>&5
24726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24727 (exit $ac_status); }; }; then
24728 sv_cv_leave_handler_longjmp_setcontext=yes
24730 echo "$as_me: program exited with status
$ac_status" >&5
24731 echo "$as_me: failed program was
:" >&5
24732 sed 's/^/| /' conftest.$ac_ext >&5
24734 ( exit $ac_status )
24735 sv_cv_leave_handler_longjmp_setcontext=no
24737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24741 echo "$as_me:$LINENO: result
: $sv_cv_leave_handler_longjmp_setcontext" >&5
24742 echo "${ECHO_T}$sv_cv_leave_handler_longjmp_setcontext" >&6
24745 # End of MacOS X special casing.
24749 # How to siglongjmp out of a signal handler, in such a way that the
24750 # alternate signal stack remains functional.
24752 # On MacOS X 10.2 or newer, we don't need these tests, because we'll end up
24753 # using handler-macos.c anyway. If we were to perform the tests, 2 Crash Report
24754 # dialog windows would pop up.
24756 macos* | darwin[6-9]* | darwin[1-9][0-9]*) ;;
24763 echo "$as_me:$LINENO: checking whether a signal handler can be left through siglongjmp
" >&5
24764 echo $ECHO_N "checking whether a signal handler can be left through siglongjmp...
$ECHO_C" >&6
24765 if test "${sv_cv_leave_handler_siglongjmp+set}" = set; then
24766 echo $ECHO_N "(cached
) $ECHO_C" >&6
24769 if test "$cross_compiling" = yes; then
24771 *-*-osf[4-9]* | *-*-hpux11* | *-*-linux2.[2-9]* | *-*-irix* | *-*-solaris*) sv_cv_leave_handler_siglongjmp=yes ;;
24772 *) sv_cv_leave_handler_siglongjmp="guessing no
" ;;
24776 cat >conftest.$ac_ext <<_ACEOF
24780 cat confdefs.h >>conftest.$ac_ext
24781 cat >>conftest.$ac_ext <<_ACEOF
24782 /* end confdefs.h. */
24784 #include <stdlib.h>
24785 #include <signal.h>
24786 #include <setjmp.h>
24789 # include <sys/types.h>
24790 # include <sys/time.h>
24791 # include <sys/resource.h>
24793 sigjmp_buf mainloop;
24795 void stackoverflow_handler (int sig)
24799 siglongjmp (mainloop, pass);
24801 int recurse (int n)
24804 return n + recurse (n + 1);
24810 char mystack[16384];
24812 struct sigaction action;
24814 /* On BeOS, this would hang, burning CPU time. Better fail than hang. */
24817 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
24818 /* Before starting the endless recursion, try to be friendly to the user's
24819 machine. On some Linux 2.2.x systems, there is no stack limit for user
24820 processes at all. We don't want to kill such systems. */
24822 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
24823 setrlimit (RLIMIT_STACK, &rl);
24825 /* Install the alternate stack. */
24826 altstack.ss_sp = mystack;
24827 altstack.ss_size = sizeof (mystack);
24828 altstack.ss_flags = 0; /* no SS_DISABLE */
24829 if (sigaltstack (&altstack, NULL) < 0)
24831 /* Install the SIGSEGV handler. */
24832 sigemptyset (&action.sa_mask);
24833 action.sa_handler = &stackoverflow_handler;
24834 action.sa_flags = SA_ONSTACK;
24835 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
24836 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
24837 /* Provoke two stack overflows in a row. */
24838 if (sigsetjmp (mainloop, 1) < 2)
24846 rm -f conftest$ac_exeext
24847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24848 (eval $ac_link) 2>&5
24850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853 (eval $ac_try) 2>&5
24855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24856 (exit $ac_status); }; }; then
24857 sv_cv_leave_handler_siglongjmp=yes
24859 echo "$as_me: program exited with status
$ac_status" >&5
24860 echo "$as_me: failed program was
:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24863 ( exit $ac_status )
24864 sv_cv_leave_handler_siglongjmp=no
24866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24870 echo "$as_me:$LINENO: result
: $sv_cv_leave_handler_siglongjmp" >&5
24871 echo "${ECHO_T}$sv_cv_leave_handler_siglongjmp" >&6
24878 echo "$as_me:$LINENO: checking whether a signal handler can be left through siglongjmp and sigaltstack
" >&5
24879 echo $ECHO_N "checking whether a signal handler can be left through siglongjmp and sigaltstack...
$ECHO_C" >&6
24880 if test "${sv_cv_leave_handler_siglongjmp_sigaltstack+set}" = set; then
24881 echo $ECHO_N "(cached
) $ECHO_C" >&6
24884 if test "$cross_compiling" = yes; then
24886 *-*-freebsd*) sv_cv_leave_handler_siglongjmp_sigaltstack=yes ;;
24887 *) sv_cv_leave_handler_siglongjmp_sigaltstack="guessing no
" ;;
24891 cat >conftest.$ac_ext <<_ACEOF
24895 cat confdefs.h >>conftest.$ac_ext
24896 cat >>conftest.$ac_ext <<_ACEOF
24897 /* end confdefs.h. */
24899 #include <stdlib.h>
24900 #include <signal.h>
24901 #include <setjmp.h>
24904 #define SS_ONSTACK SA_ONSTACK
24908 # include <sys/types.h>
24909 # include <sys/time.h>
24910 # include <sys/resource.h>
24912 sigjmp_buf mainloop;
24914 void stackoverflow_handler (int sig)
24918 if (sigaltstack (NULL, &ss) >= 0)
24920 ss.ss_flags &= ~SS_ONSTACK;
24921 sigaltstack (&ss, NULL);
24924 siglongjmp (mainloop, pass);
24926 int recurse (int n)
24929 return n + recurse (n + 1);
24935 char mystack[16384];
24937 struct sigaction action;
24939 /* On BeOS, this would hang, burning CPU time. Better fail than hang. */
24942 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
24943 /* Before starting the endless recursion, try to be friendly to the user's
24944 machine. On some Linux 2.2.x systems, there is no stack limit for user
24945 processes at all. We don't want to kill such systems. */
24947 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
24948 setrlimit (RLIMIT_STACK, &rl);
24950 /* Install the alternate stack. */
24951 altstack.ss_sp = mystack;
24952 altstack.ss_size = sizeof (mystack);
24953 altstack.ss_flags = 0; /* no SS_DISABLE */
24954 if (sigaltstack (&altstack, NULL) < 0)
24956 /* Install the SIGSEGV handler. */
24957 sigemptyset (&action.sa_mask);
24958 action.sa_handler = &stackoverflow_handler;
24959 action.sa_flags = SA_ONSTACK;
24960 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
24961 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
24962 /* Provoke two stack overflows in a row. */
24963 if (sigsetjmp (mainloop, 1) < 2)
24971 rm -f conftest$ac_exeext
24972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24973 (eval $ac_link) 2>&5
24975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24978 (eval $ac_try) 2>&5
24980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24981 (exit $ac_status); }; }; then
24982 sv_cv_leave_handler_siglongjmp_sigaltstack=yes
24984 echo "$as_me: program exited with status
$ac_status" >&5
24985 echo "$as_me: failed program was
:" >&5
24986 sed 's/^/| /' conftest.$ac_ext >&5
24988 ( exit $ac_status )
24989 sv_cv_leave_handler_siglongjmp_sigaltstack=no
24991 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24995 echo "$as_me:$LINENO: result
: $sv_cv_leave_handler_siglongjmp_sigaltstack" >&5
24996 echo "${ECHO_T}$sv_cv_leave_handler_siglongjmp_sigaltstack" >&6
25003 echo "$as_me:$LINENO: checking whether a signal handler can be left through siglongjmp and setcontext
" >&5
25004 echo $ECHO_N "checking whether a signal handler can be left through siglongjmp and setcontext...
$ECHO_C" >&6
25005 if test "${sv_cv_leave_handler_siglongjmp_setcontext+set}" = set; then
25006 echo $ECHO_N "(cached
) $ECHO_C" >&6
25009 if test "$cross_compiling" = yes; then
25012 *) sv_cv_leave_handler_siglongjmp_setcontext="guessing no
" ;;
25016 cat >conftest.$ac_ext <<_ACEOF
25020 cat confdefs.h >>conftest.$ac_ext
25021 cat >>conftest.$ac_ext <<_ACEOF
25022 /* end confdefs.h. */
25024 #include <stdlib.h>
25025 #include <signal.h>
25026 #include <setjmp.h>
25027 #include <ucontext.h>
25029 #define SS_ONSTACK SA_ONSTACK
25033 # include <sys/types.h>
25034 # include <sys/time.h>
25035 # include <sys/resource.h>
25037 sigjmp_buf mainloop;
25039 void stackoverflow_handler (int sig)
25043 static ucontext_t uc;
25045 if (getcontext(&uc) >= 0)
25047 if (uc.uc_stack.ss_flags & SS_ONSTACK)
25049 uc.uc_stack.ss_flags &= ~SS_ONSTACK;
25054 siglongjmp (mainloop, pass);
25056 int recurse (int n)
25059 return n + recurse (n + 1);
25065 char mystack[16384];
25067 struct sigaction action;
25069 /* On BeOS, this would hang, burning CPU time. Better fail than hang. */
25072 #if defined HAVE_SETRLIMIT && defined RLIMIT_STACK
25073 /* Before starting the endless recursion, try to be friendly to the user's
25074 machine. On some Linux 2.2.x systems, there is no stack limit for user
25075 processes at all. We don't want to kill such systems. */
25077 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
25078 setrlimit (RLIMIT_STACK, &rl);
25080 /* Install the alternate stack. */
25081 altstack.ss_sp = mystack;
25082 altstack.ss_size = sizeof (mystack);
25083 altstack.ss_flags = 0; /* no SS_DISABLE */
25084 if (sigaltstack (&altstack, NULL) < 0)
25086 /* Install the SIGSEGV handler. */
25087 sigemptyset (&action.sa_mask);
25088 action.sa_handler = &stackoverflow_handler;
25089 action.sa_flags = SA_ONSTACK;
25090 sigaction (SIGSEGV, &action, (struct sigaction *) NULL);
25091 sigaction (SIGBUS, &action, (struct sigaction *) NULL);
25092 /* Provoke two stack overflows in a row. */
25093 if (sigsetjmp (mainloop, 1) < 2)
25101 rm -f conftest$ac_exeext
25102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25103 (eval $ac_link) 2>&5
25105 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25108 (eval $ac_try) 2>&5
25110 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25111 (exit $ac_status); }; }; then
25112 sv_cv_leave_handler_siglongjmp_setcontext=yes
25114 echo "$as_me: program exited with status
$ac_status" >&5
25115 echo "$as_me: failed program was
:" >&5
25116 sed 's/^/| /' conftest.$ac_ext >&5
25118 ( exit $ac_status )
25119 sv_cv_leave_handler_siglongjmp_setcontext=no
25121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25125 echo "$as_me:$LINENO: result
: $sv_cv_leave_handler_siglongjmp_setcontext" >&5
25126 echo "${ECHO_T}$sv_cv_leave_handler_siglongjmp_setcontext" >&6
25129 # End of MacOS X special casing.
25134 if test "$sv_cv_leave_handler_longjmp" != no; then
25135 CFG_LEAVE=leave-nop.c
25137 if test "$sv_cv_leave_handler_longjmp_sigaltstack" != no; then
25138 CFG_LEAVE=leave-sigaltstack.c
25140 if test "$sv_cv_leave_handler_longjmp_setcontext" != no; then
25141 CFG_LEAVE=leave-setcontext.c
25146 # On BeOS, the 6 tests fail because sigaltstack() doesn't exist.
25147 # If one uses set_signal_stack() instead of sigaltstack(), the first
25148 # test actually works. i.e. sv_cv_leave_handler_longjmp would be 'yes'.
25149 beos*) CFG_LEAVE=leave-nop.c ;;
25151 if test -z "$CFG_LEAVE"; then
25152 CFG_LEAVE=leave-none.c
25155 cat >>confdefs.h <<_ACEOF
25156 #define CFG_LEAVE "$CFG_LEAVE"
25162 mingw* | cygwin*) CFG_HANDLER=handler-win32.c ;;
25164 if test -z "$CFG_HANDLER"; then
25165 if test $sv_cv_have_sigsegv_recovery = no \
25166 && test $sv_cv_have_stack_overflow_recovery = no; then
25167 CFG_HANDLER=handler-none.c
25169 CFG_HANDLER=handler-unix.c
25175 cat >>confdefs.h <<_ACEOF
25176 #define CFG_HANDLER "$CFG_HANDLER"
25181 { echo; echo "${term_bold}Build Parameters:${term_norm}"; } >& 6
25184 echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
25185 echo $ECHO_N "checking whether to activate relocatable installation... $ECHO_C" >&6
25186 # Check whether --enable-relocatable or --disable-relocatable was given.
25187 if test "${enable_relocatable+set}" = set; then
25188 enableval
="$enable_relocatable"
25189 if test "$enableval" != no
; then
25199 echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
25200 echo "${ECHO_T}$RELOCATABLE" >&6
25203 { echo; echo "${term_bold}Output Substitution:${term_norm}"; } >& 6
25205 ac_config_files="$ac_config_files Makefile src
/Makefile src
/sigsegv.h
tests
/Makefile
"
25206 cat >confcache <<\_ACEOF
25207 # This file is a shell script that caches the results of configure
25208 # tests run on this system so they can be shared between configure
25209 # scripts and configure runs, see configure's option --config-cache.
25210 # It is not useful on other systems. If it contains results you don't
25211 # want to keep, you may remove or edit it.
25213 # config.status only pays attention to the cache file if you give it
25214 # the --recheck option to rerun configure.
25216 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25217 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25218 # following values.
25222 # The following way of writing the cache mishandles newlines in values,
25223 # but we know of no workaround that is simple, portable, and efficient.
25224 # So, don't put newlines in cache variables' values.
25225 # Ultrix sh set writes to stderr and can't be redirected directly,
25226 # and sets the high bit in the cache file unless we assign to the vars.
25229 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25231 # `set' does not quote correctly, so add quotes (double-quote
25232 # substitution turns \\\\ into \\, and sed turns \\ into \).
25235 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
25238 # `set' quotes correctly as required by POSIX, so do not add quotes.
25240 "s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1=\\2/p
"
25247 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25249 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25251 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25252 if test -w $cache_file; then
25253 test "x
$cache_file" != "x
/dev
/null
" && echo "updating cache
$cache_file"
25254 cat confcache >$cache_file
25256 echo "not updating unwritable cache
$cache_file"
25261 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
25262 # Let make expand exec_prefix.
25263 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
25265 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25266 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
25267 # trailing colons and then remove the whole line if VPATH becomes empty
25268 # (actually we leave an empty line to preserve line numbers).
25269 if test "x
$srcdir" = x.; then
25270 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25271 s/:*\$(srcdir):*/:/;
25272 s/:*\${srcdir}:*/:/;
25274 s/^\([^=]*=[ ]*\):*/\1/;
25280 DEFS=-DHAVE_CONFIG_H
25284 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
25285 # 1. Remove the extension, and $U if already installed.
25286 ac_i=`echo "$ac_i" |
25287 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25289 ac_libobjs="$ac_libobjs $ac_i\
$U.
$ac_objext"
25290 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25292 LIBOBJS=$ac_libobjs
25294 LTLIBOBJS=$ac_ltlibobjs
25297 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25298 { { echo "$as_me:$LINENO: error
: conditional
\"AMDEP
\" was never defined.
25299 Usually this means the macro was only invoked conditionally.
" >&5
25300 echo "$as_me: error
: conditional
\"AMDEP
\" was never defined.
25301 Usually this means the macro was only invoked conditionally.
" >&2;}
25302 { (exit 1); exit 1; }; }
25304 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25305 { { echo "$as_me:$LINENO: error
: conditional
\"am__fastdepCC
\" was never defined.
25306 Usually this means the macro was only invoked conditionally.
" >&5
25307 echo "$as_me: error
: conditional
\"am__fastdepCC
\" was never defined.
25308 Usually this means the macro was only invoked conditionally.
" >&2;}
25309 { (exit 1); exit 1; }; }
25311 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25312 { { echo "$as_me:$LINENO: error
: conditional
\"am__fastdepCXX
\" was never defined.
25313 Usually this means the macro was only invoked conditionally.
" >&5
25314 echo "$as_me: error
: conditional
\"am__fastdepCXX
\" was never defined.
25315 Usually this means the macro was only invoked conditionally.
" >&2;}
25316 { (exit 1); exit 1; }; }
25319 : ${CONFIG_STATUS=./config.status}
25320 ac_clean_files_save=$ac_clean_files
25321 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25322 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
25323 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
25324 cat >$CONFIG_STATUS <<_ACEOF
25326 # Generated by $as_me.
25327 # Run this file to recreate the current configuration.
25328 # Compiler output produced by configure, useful for debugging
25329 # configure, is in config.log if it exists.
25332 ac_cs_recheck=false
25334 SHELL=\${CONFIG_SHELL-$SHELL}
25337 cat >>$CONFIG_STATUS <<\_ACEOF
25338 ## --------------------- ##
25339 ## M4sh Initialization. ##
25340 ## --------------------- ##
25342 # Be Bourne compatible
25343 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25346 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25347 # is contrary to our usage. Disable this feature.
25348 alias -g '${1+"$@"}'='"$@
"'
25349 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25352 DUALCASE=1; export DUALCASE # for MKS sh
25354 # Support unset when possible.
25355 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25362 # Work around bugs in pre-3.0 UWIN ksh.
25363 $as_unset ENV MAIL MAILPATH
25370 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25371 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25372 LC_TELEPHONE LC_TIME
25374 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25375 eval $as_var=C; export $as_var
25381 # Required to use basename.
25382 if expr a : '\(a\)' >/dev/null 2>&1; then
25388 if (basename /) >/dev/null 2>&1 && test "X
`basename / 2>&1`" = "X
/"; then
25389 as_basename=basename
25395 # Name of the executable.
25396 as_me=`$as_basename "$0" ||
25397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25398 X"$0" : 'X\(//\)$' \| \
25399 X"$0" : 'X\(/\)$' \| \
25400 . : '\(.\)' 2>/dev/null ||
25402 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25403 /^X\/\(\/\/\)$/{ s//\1/; q; }
25404 /^X\/\(\/\).*/{ s//\1/; q; }
25408 # PATH needs CR, and LINENO needs CR and PATH.
25409 # Avoid depending upon Character Ranges.
25410 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25411 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25412 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25413 as_cr_digits='0123456789'
25414 as_cr_alnum=$as_cr_Letters$as_cr_digits
25416 # The user is always right.
25417 if test "${PATH_SEPARATOR+set}" != set; then
25418 echo "#! /bin/sh" >conf$$.sh
25419 echo "exit 0" >>conf$$.sh
25421 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
25430 as_lineno_1
=$LINENO
25431 as_lineno_2
=$LINENO
25432 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
25433 test "x$as_lineno_1" != "x$as_lineno_2" &&
25434 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
25435 # Find who we are. Look in the path if we contain no path at all
25438 *[\\/]* ) as_myself
=$0 ;;
25439 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25440 for as_dir
in $PATH
25443 test -z "$as_dir" && as_dir
=.
25444 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
25449 # We did not find ourselves, most probably we were run as `sh COMMAND'
25450 # in which case we are not to be found in the path.
25451 if test "x$as_myself" = x
; then
25454 if test ! -f "$as_myself"; then
25455 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25456 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25457 { (exit 1); exit 1; }; }
25459 case $CONFIG_SHELL in
25461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25462 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
25465 test -z "$as_dir" && as_dir
=.
25466 for as_base
in sh bash ksh sh5
; do
25469 if ("$as_dir/$as_base" -c '
25470 as_lineno_1=$LINENO
25471 as_lineno_2=$LINENO
25472 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25473 test "x$as_lineno_1" != "x$as_lineno_2" &&
25474 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
25475 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
25476 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
25477 CONFIG_SHELL
=$as_dir/$as_base
25478 export CONFIG_SHELL
25479 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25487 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25488 # uniformly replaced by the line number. The first 'sed' inserts a
25489 # line-number line before each line; the second 'sed' does the real
25490 # work. The second script uses 'N' to pair each line-number line
25491 # with the numbered line, and appends trailing '-' during
25492 # substitution so that $LINENO is not a special case at line end.
25493 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25494 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25495 sed '=' <$as_myself |
25500 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25503 s,^['$as_cr_digits']*\n,,
25504 ' >$as_me.lineno
&&
25505 chmod +x
$as_me.lineno ||
25506 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25507 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25508 { (exit 1); exit 1; }; }
25510 # Don't try to exec as it changes $[0], causing all sort of problems
25511 # (the dirname of $[0] is not the place where we might find the
25512 # original and so on. Autoconf is especially sensible to this).
25514 # Exit status is that of the last command.
25519 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25520 *c
*,-n*) ECHO_N
= ECHO_C
='
25522 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
25523 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
25526 if expr a
: '\(a\)' >/dev
/null
2>&1; then
25532 rm -f conf$$ conf$$.exe conf$$.
file
25534 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25535 # We could just check for DJGPP; but this test a) works b) is more generic
25536 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25537 if test -f conf$$.exe
; then
25538 # Don't use ln at all; we don't have any links
25543 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25548 rm -f conf$$ conf$$.exe conf$$.
file
25550 if mkdir
-p .
2>/dev
/null
; then
25553 test -d .
/-p && rmdir .
/-p
25557 as_executable_p
="test -f"
25559 # Sed expression to map a string onto a valid CPP name.
25560 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25562 # Sed expression to map a string onto a valid variable name.
25563 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25567 # We need space, tab and new line, in precisely that order.
25577 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25578 # report actual input values of CONFIG_FILES etc. instead of their
25579 # values after options handling. Logging --version etc. is OK.
25583 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25584 ## Running $as_me. ##
25589 This file was extended by $as_me, which was
25590 generated by GNU Autoconf 2.59. Invocation command line was
25592 CONFIG_FILES = $CONFIG_FILES
25593 CONFIG_HEADERS = $CONFIG_HEADERS
25594 CONFIG_LINKS = $CONFIG_LINKS
25595 CONFIG_COMMANDS = $CONFIG_COMMANDS
25599 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25603 # Files that config.status was made for.
25604 if test -n "$ac_config_files"; then
25605 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25608 if test -n "$ac_config_headers"; then
25609 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25612 if test -n "$ac_config_links"; then
25613 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25616 if test -n "$ac_config_commands"; then
25617 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25620 cat >>$CONFIG_STATUS <<\_ACEOF
25623 \`$as_me' instantiates files from templates according to the
25624 current configuration.
25626 Usage: $0 [OPTIONS] [FILE]...
25628 -h, --help print this help, then exit
25629 -V, --version print version number, then exit
25630 -q, --quiet do not print progress messages
25631 -d, --debug don't remove temporary files
25632 --recheck update $as_me by reconfiguring in the same conditions
25633 --file=FILE[:TEMPLATE]
25634 instantiate the configuration file FILE
25635 --header=FILE[:TEMPLATE]
25636 instantiate the configuration header FILE
25638 Configuration files:
25641 Configuration headers:
25644 Configuration commands:
25647 Report bugs to <bug-autoconf@gnu.org>."
25650 cat >>$CONFIG_STATUS <<_ACEOF
25653 configured by $0, generated by GNU Autoconf 2.59,
25654 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25656 Copyright (C) 2003 Free Software Foundation, Inc.
25657 This config.status script is free software; the Free Software Foundation
25658 gives unlimited permission to copy, distribute and modify it."
25663 cat >>$CONFIG_STATUS <<\_ACEOF
25664 # If no file are specified by the user, then we need to provide default
25665 # value. By we need to know if files were specified by the user.
25671 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
25672 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
25680 *) # This is not an option, so the user has probably given explicit
25683 ac_need_defaults
=false
;;
25687 # Handling of the options.
25689 cat >>$CONFIG_STATUS <<\_ACEOF
25690 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25692 --version |
--vers* |
-V )
25693 echo "$ac_cs_version"; exit 0 ;;
25695 # Conflict between --help and --header
25696 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25697 Try \`$0 --help' for more information." >&5
25698 echo "$as_me: error: ambiguous option: $1
25699 Try \`$0 --help' for more information." >&2;}
25700 { (exit 1); exit 1; }; };;
25701 --help |
--hel |
-h )
25702 echo "$ac_cs_usage"; exit 0 ;;
25703 --debug |
--d* |
-d )
25705 --file |
--fil |
--fi |
--f )
25707 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25708 ac_need_defaults
=false
;;
25709 --header |
--heade |
--head |
--hea )
25711 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25712 ac_need_defaults
=false
;;
25713 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25714 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25717 # This is an error.
25718 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25719 Try \`$0 --help' for more information." >&5
25720 echo "$as_me: error: unrecognized option: $1
25721 Try \`$0 --help' for more information." >&2;}
25722 { (exit 1); exit 1; }; } ;;
25724 *) ac_config_targets
="$ac_config_targets $1" ;;
25730 ac_configure_extra_args
=
25732 if $ac_cs_silent; then
25734 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25738 cat >>$CONFIG_STATUS <<_ACEOF
25739 if \$ac_cs_recheck; then
25740 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25741 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25746 cat >>$CONFIG_STATUS <<_ACEOF
25748 # INIT-COMMANDS section.
25751 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25757 cat >>$CONFIG_STATUS <<\_ACEOF
25758 for ac_config_target
in $ac_config_targets
25760 case "$ac_config_target" in
25761 # Handling of arguments.
25762 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
25763 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
25764 "src/sigsegv.h" ) CONFIG_FILES
="$CONFIG_FILES src/sigsegv.h" ;;
25765 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
25766 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
25767 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
25768 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25769 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25770 { (exit 1); exit 1; }; };;
25774 # If the user did not use the arguments to specify the items to instantiate,
25775 # then the envvar interface is used. Set only those that are not.
25776 # We use the long form for the default assignment because of an extremely
25777 # bizarre bug on SunOS 4.1.3.
25778 if $ac_need_defaults; then
25779 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25780 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25781 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25784 # Have a temporary directory for convenience. Make it in the build tree
25785 # simply because there is no reason to put it here, and in addition,
25786 # creating and moving files from /tmp can sometimes cause problems.
25787 # Create a temporary directory, and hook for its removal unless debugging.
25790 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25791 trap '{ (exit 1); exit 1; }' 1 2 13 15
25794 # Create a (secure) tmp directory for tmp files.
25797 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25798 test -n "$tmp" && test -d "$tmp"
25801 tmp
=.
/confstat$$
-$RANDOM
25802 (umask 077 && mkdir
$tmp)
25805 echo "$me: cannot create a temporary directory in ." >&2
25806 { (exit 1); exit 1; }
25811 cat >>$CONFIG_STATUS <<_ACEOF
25814 # CONFIG_FILES section.
25817 # No need to generate the scripts if there are no CONFIG_FILES.
25818 # This happens for instance when ./config.status config.h
25819 if test -n "\$CONFIG_FILES"; then
25820 # Protect against being on the right side of a sed subst in config.status.
25821 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25822 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25823 s,@SHELL@,$SHELL,;t t
25824 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25825 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25826 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25827 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25828 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25829 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25830 s,@exec_prefix@,$exec_prefix,;t t
25831 s,@prefix@,$prefix,;t t
25832 s,@program_transform_name@,$program_transform_name,;t t
25833 s,@bindir@,$bindir,;t t
25834 s,@sbindir@,$sbindir,;t t
25835 s,@libexecdir@,$libexecdir,;t t
25836 s,@datadir@,$datadir,;t t
25837 s,@sysconfdir@,$sysconfdir,;t t
25838 s,@sharedstatedir@,$sharedstatedir,;t t
25839 s,@localstatedir@,$localstatedir,;t t
25840 s,@libdir@,$libdir,;t t
25841 s,@includedir@,$includedir,;t t
25842 s,@oldincludedir@,$oldincludedir,;t t
25843 s,@infodir@,$infodir,;t t
25844 s,@mandir@,$mandir,;t t
25845 s,@build_alias@,$build_alias,;t t
25846 s,@host_alias@,$host_alias,;t t
25847 s,@target_alias@,$target_alias,;t t
25848 s,@DEFS@,$DEFS,;t t
25849 s,@ECHO_C@,$ECHO_C,;t t
25850 s,@ECHO_N@,$ECHO_N,;t t
25851 s,@ECHO_T@,$ECHO_T,;t t
25852 s,@LIBS@,$LIBS,;t t
25853 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25854 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25855 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25856 s,@CYGPATH_W@,$CYGPATH_W,;t t
25857 s,@PACKAGE@,$PACKAGE,;t t
25858 s,@VERSION@,$VERSION,;t t
25859 s,@ACLOCAL@,$ACLOCAL,;t t
25860 s,@AUTOCONF@,$AUTOCONF,;t t
25861 s,@AUTOMAKE@,$AUTOMAKE,;t t
25862 s,@AUTOHEADER@,$AUTOHEADER,;t t
25863 s,@MAKEINFO@,$MAKEINFO,;t t
25864 s,@install_sh@,$install_sh,;t t
25865 s,@STRIP@,$STRIP,;t t
25866 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25867 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25868 s,@mkdir_p@,$mkdir_p,;t t
25870 s,@SET_MAKE@,$SET_MAKE,;t t
25871 s,@am__leading_dot@,$am__leading_dot,;t t
25872 s,@AMTAR@,$AMTAR,;t t
25873 s,@am__tar@,$am__tar,;t t
25874 s,@am__untar@,$am__untar,;t t
25876 s,@CFLAGS@,$CFLAGS,;t t
25877 s,@LDFLAGS@,$LDFLAGS,;t t
25878 s,@CPPFLAGS@,$CPPFLAGS,;t t
25879 s,@ac_ct_CC@,$ac_ct_CC,;t t
25880 s,@EXEEXT@,$EXEEXT,;t t
25881 s,@OBJEXT@,$OBJEXT,;t t
25882 s,@DEPDIR@,$DEPDIR,;t t
25883 s,@am__include@,$am__include,;t t
25884 s,@am__quote@,$am__quote,;t t
25885 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25886 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25887 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25888 s,@CCDEPMODE@,$CCDEPMODE,;t t
25889 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
25890 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
25892 s,@build@,$build,;t t
25893 s,@build_cpu@,$build_cpu,;t t
25894 s,@build_vendor@,$build_vendor,;t t
25895 s,@build_os@,$build_os,;t t
25896 s,@host@,$host,;t t
25897 s,@host_cpu@,$host_cpu,;t t
25898 s,@host_vendor@,$host_vendor,;t t
25899 s,@host_os@,$host_os,;t t
25900 s,@PLATFORM@,$PLATFORM,;t t
25901 s,@EGREP@,$EGREP,;t t
25902 s,@LN_S@,$LN_S,;t t
25903 s,@ECHO@,$ECHO,;t t
25905 s,@ac_ct_AR@,$ac_ct_AR,;t t
25906 s,@RANLIB@,$RANLIB,;t t
25907 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25909 s,@CXXFLAGS@,$CXXFLAGS,;t t
25910 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25911 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
25912 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
25913 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
25914 s,@CXXCPP@,$CXXCPP,;t t
25916 s,@FFLAGS@,$FFLAGS,;t t
25917 s,@ac_ct_F77@,$ac_ct_F77,;t t
25918 s,@LIBTOOL@,$LIBTOOL,;t t
25919 s,@FAULT_CONTEXT@,$FAULT_CONTEXT,;t t
25920 s,@FAULT_CONTEXT_INCLUDE@,$FAULT_CONTEXT_INCLUDE,;t t
25921 s,@FAULT_CONTEXT_INCLUDE2@,$FAULT_CONTEXT_INCLUDE2,;t t
25922 s,@HAVE_SIGSEGV_RECOVERY@,$HAVE_SIGSEGV_RECOVERY,;t t
25923 s,@CFG_STACKVMA@,$CFG_STACKVMA,;t t
25924 s,@HAVE_STACK_OVERFLOW_RECOVERY@,$HAVE_STACK_OVERFLOW_RECOVERY,;t t
25925 s,@CFG_LEAVE@,$CFG_LEAVE,;t t
25926 s,@CFG_HANDLER@,$CFG_HANDLER,;t t
25927 s,@RELOCATABLE@,$RELOCATABLE,;t t
25928 s,@LIBOBJS@,$LIBOBJS,;t t
25929 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25934 cat >>$CONFIG_STATUS <<\_ACEOF
25935 # Split the substitutions into bite-sized pieces for seds with
25936 # small command number limits, like on Digital OSF/1 and HP-UX.
25937 ac_max_sed_lines
=48
25938 ac_sed_frag
=1 # Number of current file.
25939 ac_beg
=1 # First line for current file.
25940 ac_end
=$ac_max_sed_lines # Line after last line for current file.
25943 while $ac_more_lines; do
25944 if test $ac_beg -gt 1; then
25945 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
25947 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
25949 if test ! -s $tmp/subs.frag
; then
25950 ac_more_lines
=false
25952 # The purpose of the label and of the branching condition is to
25953 # speed up the sed processing (if there are no `@' at all, there
25954 # is no need to browse any of the substitutions).
25955 # These are the two extra sed commands mentioned above.
25957 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
25958 if test -z "$ac_sed_cmds"; then
25959 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
25961 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25963 ac_sed_frag
=`expr $ac_sed_frag + 1`
25965 ac_end
=`expr $ac_end + $ac_max_sed_lines`
25968 if test -z "$ac_sed_cmds"; then
25971 fi # test -n "$CONFIG_FILES"
25974 cat >>$CONFIG_STATUS <<\_ACEOF
25975 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
25976 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25978 - |
*:- |
*:-:* ) # input from stdin
25980 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25981 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
25982 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25983 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
25984 * ) ac_file_in
=$ac_file.
in ;;
25987 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25988 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
25989 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25990 X"$ac_file" : 'X\(//\)[^/]' \| \
25991 X"$ac_file" : 'X\(//\)$' \| \
25992 X"$ac_file" : 'X\(/\)' \| \
25993 . : '\(.\)' 2>/dev/null ||
25995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25996 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25997 /^X\(\/\/\)$/{ s//\1/; q; }
25998 /^X\(\/\).*/{ s//\1/; q; }
26000 { if $as_mkdir_p; then
26005 while test ! -d "$as_dir"; do
26006 as_dirs
="$as_dir $as_dirs"
26007 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
26008 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26009 X"$as_dir" : 'X\(//\)[^/]' \| \
26010 X"$as_dir" : 'X\(//\)$' \| \
26011 X"$as_dir" : 'X\(/\)' \| \
26012 . : '\(.\)' 2>/dev/null ||
26014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26015 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26016 /^X\(\/\/\)$/{ s//\1/; q; }
26017 /^X\(\/\).*/{ s//\1/; q; }
26020 test ! -n "$as_dirs" || mkdir
$as_dirs
26021 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26022 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26023 { (exit 1); exit 1; }; }; }
26027 if test "$ac_dir" != .
; then
26028 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26029 # A "../" for each directory in $ac_dir_suffix.
26030 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26032 ac_dir_suffix
= ac_top_builddir
=
26036 .
) # No --srcdir option. We are building in place.
26038 if test -z "$ac_top_builddir"; then
26041 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
26043 [\\/]* | ?
:[\\/]* ) # Absolute path.
26044 ac_srcdir
=$srcdir$ac_dir_suffix;
26045 ac_top_srcdir
=$srcdir ;;
26046 *) # Relative path.
26047 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
26048 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
26051 # Do not use `cd foo && pwd` to compute absolute paths, because
26052 # the directories may not exist.
26054 .
) ac_abs_builddir
="$ac_dir";;
26057 .
) ac_abs_builddir
=`pwd`;;
26058 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
26059 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
26062 case $ac_abs_builddir in
26063 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
26065 case ${ac_top_builddir}.
in
26066 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
26067 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
26068 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
26071 case $ac_abs_builddir in
26072 .
) ac_abs_srcdir
=$ac_srcdir;;
26075 .
) ac_abs_srcdir
=$ac_abs_builddir;;
26076 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
26077 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
26080 case $ac_abs_builddir in
26081 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
26083 case $ac_top_srcdir in
26084 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
26085 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
26086 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
26092 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26093 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
26096 if test x
"$ac_file" != x-
; then
26097 { echo "$as_me:$LINENO: creating $ac_file" >&5
26098 echo "$as_me: creating $ac_file" >&6;}
26101 # Let's still pretend it is `configure' which instantiates (i.e., don't
26102 # use $as_me), people would be surprised to read:
26103 # /* config.h. Generated by config.status. */
26104 if test x
"$ac_file" = x-
; then
26107 configure_input
="$ac_file. "
26109 configure_input
=$configure_input"Generated from `echo $ac_file_in |
26110 sed 's,.*/,,'` by configure."
26112 # First look for the input files in the build tree, otherwise in the
26114 ac_file_inputs
=`IFS=:
26115 for f in $ac_file_in; do
26117 -) echo $tmp/stdin ;;
26119 # Absolute (can't be DOS-style, as IFS=:)
26120 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26121 echo "$as_me: error: cannot find input file: $f" >&2;}
26122 { (exit 1); exit 1; }; }
26125 if test -f "$f"; then
26128 elif test -f "$srcdir/$f"; then
26133 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26134 echo "$as_me: error: cannot find input file: $f" >&2;}
26135 { (exit 1); exit 1; }; }
26138 done` ||
{ (exit 1); exit 1; }
26140 cat >>$CONFIG_STATUS <<_ACEOF
26144 cat >>$CONFIG_STATUS <<\_ACEOF
26146 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26147 s
,@configure_input@
,$configure_input,;t t
26148 s
,@srcdir@
,$ac_srcdir,;t t
26149 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
26150 s
,@top_srcdir@
,$ac_top_srcdir,;t t
26151 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
26152 s
,@builddir@
,$ac_builddir,;t t
26153 s
,@abs_builddir@
,$ac_abs_builddir,;t t
26154 s
,@top_builddir@
,$ac_top_builddir,;t t
26155 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
26156 s
,@INSTALL@
,$ac_INSTALL,;t t
26157 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26159 if test x"$ac_file" != x-; then
26160 mv $tmp/out $ac_file
26168 cat >>$CONFIG_STATUS <<\_ACEOF
26171 # CONFIG_HEADER section.
26174 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
26175 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26177 # ac_d sets the value in "#define NAME VALUE" lines.
26178 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26179 ac_dB
='[ ].*$,\1#\2'
26182 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26183 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26184 ac_uB
='$,\1#\2define\3'
26188 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
26189 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26191 - |
*:- |
*:-:* ) # input from stdin
26193 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
26194 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
26195 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
26196 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
26197 * ) ac_file_in
=$ac_file.
in ;;
26200 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
26201 echo "$as_me: creating $ac_file" >&6;}
26203 # First look for the input files in the build tree, otherwise in the
26205 ac_file_inputs
=`IFS=:
26206 for f in $ac_file_in; do
26208 -) echo $tmp/stdin ;;
26210 # Absolute (can't be DOS-style, as IFS=:)
26211 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26212 echo "$as_me: error: cannot find input file: $f" >&2;}
26213 { (exit 1); exit 1; }; }
26214 # Do quote $f, to prevent DOS paths from being IFS'd.
26217 if test -f "$f"; then
26220 elif test -f "$srcdir/$f"; then
26225 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26226 echo "$as_me: error: cannot find input file: $f" >&2;}
26227 { (exit 1); exit 1; }; }
26230 done` ||
{ (exit 1); exit 1; }
26231 # Remove the trailing spaces.
26232 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26236 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26237 # `conftest.undefs', that substitutes the proper values into
26238 # config.h.in to produce config.h. The first handles `#define'
26239 # templates, and the second `#undef' templates.
26240 # And first: Protect against being on the right side of a sed subst in
26241 # config.status. Protect against being in an unquoted here document
26242 # in config.status.
26243 rm -f conftest.defines conftest.undefs
26244 # Using a here document instead of a string reduces the quoting nightmare.
26245 # Putting comments in sed scripts is not portable.
26247 # `end' is used to avoid that the second main sed command (meant for
26248 # 0-ary CPP macros) applies to n-ary macro definitions.
26249 # See the Autoconf documentation for `clear'.
26250 cat >confdef2sed.
sed <<\_ACEOF
26255 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26257 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26260 # If some macros were called several times there might be several times
26261 # the same #defines, which is useless. Nevertheless, we may not want to
26262 # sort them, since we want the *last* AC-DEFINE to be honored.
26263 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26264 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26265 rm -f confdef2sed.sed
26267 # This sed command replaces #undef with comments. This is necessary, for
26268 # example, in the case of _POSIX_SOURCE, which is predefined and required
26269 # on some systems where configure will not decide to define it.
26270 cat >>conftest.undefs <<\_ACEOF
26271 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26274 # Break up conftest.defines because some shells have a limit on the size
26275 # of here documents, and old seds have small limits too (100 cmds).
26276 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26277 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26278 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26279 echo ' :' >>$CONFIG_STATUS
26280 rm -f conftest.tail
26281 while grep . conftest.defines >/dev/null
26283 # Write a limited-size here document to $tmp/defines.sed.
26284 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26285 # Speed up: don't consider the non `#define' lines.
26286 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26287 # Work around the forget-to-reset-the-flag bug.
26288 echo 't clr' >>$CONFIG_STATUS
26289 echo ': clr' >>$CONFIG_STATUS
26290 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
26292 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26294 mv $tmp/out $tmp/in
26296 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
26297 rm -f conftest.defines
26298 mv conftest.
tail conftest.defines
26300 rm -f conftest.defines
26301 echo ' fi # grep' >>$CONFIG_STATUS
26302 echo >>$CONFIG_STATUS
26304 # Break up conftest.undefs because some shells have a limit on the size
26305 # of here documents, and old seds have small limits too (100 cmds).
26306 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26307 rm -f conftest.
tail
26308 while grep . conftest.undefs
>/dev
/null
26310 # Write a limited-size here document to $tmp/undefs.sed.
26311 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26312 # Speed up: don't consider the non
`#undef'
26313 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26314 # Work around the forget-to-reset-the-flag bug.
26315 echo 't clr' >>$CONFIG_STATUS
26316 echo ': clr' >>$CONFIG_STATUS
26317 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26319 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26321 mv $tmp/out $tmp/in
26323 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26324 rm -f conftest.undefs
26325 mv conftest.tail conftest.undefs
26327 rm -f conftest.undefs
26329 cat >>$CONFIG_STATUS <<\_ACEOF
26330 # Let's still pretend it is `configure
' which instantiates (i.e., don't
26331 # use $as_me), people would be surprised to read:
26332 # /* config.h. Generated by config.status. */
26333 if test x
"$ac_file" = x-
; then
26334 echo "/* Generated by configure. */" >$tmp/config.h
26336 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26338 cat $tmp/in >>$tmp/config.h
26340 if test x
"$ac_file" != x-
; then
26341 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
26342 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26343 echo "$as_me: $ac_file is unchanged" >&6;}
26345 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
26346 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26347 X"$ac_file" : 'X\(//\)[^/]' \| \
26348 X"$ac_file" : 'X\(//\)$' \| \
26349 X"$ac_file" : 'X\(/\)' \| \
26350 . : '\(.\)' 2>/dev/null ||
26352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26354 /^X\(\/\/\)$/{ s//\1/; q; }
26355 /^X\(\/\).*/{ s//\1/; q; }
26357 { if $as_mkdir_p; then
26362 while test ! -d "$as_dir"; do
26363 as_dirs
="$as_dir $as_dirs"
26364 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
26365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26366 X"$as_dir" : 'X\(//\)[^/]' \| \
26367 X"$as_dir" : 'X\(//\)$' \| \
26368 X"$as_dir" : 'X\(/\)' \| \
26369 . : '\(.\)' 2>/dev/null ||
26371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26373 /^X\(\/\/\)$/{ s//\1/; q; }
26374 /^X\(\/\).*/{ s//\1/; q; }
26377 test ! -n "$as_dirs" || mkdir
$as_dirs
26378 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26379 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26380 { (exit 1); exit 1; }; }; }
26383 mv $tmp/config.h
$ac_file
26387 rm -f $tmp/config.h
26389 # Compute $ac_file's index in $config_headers.
26391 for _am_header
in $config_headers :; do
26392 case $_am_header in
26393 $ac_file |
$ac_file:* )
26396 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
26399 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
26400 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26401 X$ac_file : 'X\(//\)[^/]' \| \
26402 X$ac_file : 'X\(//\)$' \| \
26403 X$ac_file : 'X\(/\)' \| \
26404 . : '\(.\)' 2>/dev/null ||
26406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26407 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26408 /^X\(\/\/\)$/{ s//\1/; q; }
26409 /^X\(\/\).*/{ s//\1/; q; }
26410 s/.*/./; q'`/stamp-h
$_am_stamp_count
26413 cat >>$CONFIG_STATUS <<\_ACEOF
26416 # CONFIG_COMMANDS section.
26418 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
26419 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
26420 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
26421 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
26422 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26423 X"$ac_dest" : 'X\(//\)[^/]' \| \
26424 X"$ac_dest" : 'X\(//\)$' \| \
26425 X"$ac_dest" : 'X\(/\)' \| \
26426 . : '\(.\)' 2>/dev/null ||
26428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26429 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26430 /^X\(\/\/\)$/{ s//\1/; q; }
26431 /^X\(\/\).*/{ s//\1/; q; }
26433 { if $as_mkdir_p; then
26438 while test ! -d "$as_dir"; do
26439 as_dirs
="$as_dir $as_dirs"
26440 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
26441 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26442 X"$as_dir" : 'X\(//\)[^/]' \| \
26443 X"$as_dir" : 'X\(//\)$' \| \
26444 X"$as_dir" : 'X\(/\)' \| \
26445 . : '\(.\)' 2>/dev/null ||
26447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26449 /^X\(\/\/\)$/{ s//\1/; q; }
26450 /^X\(\/\).*/{ s//\1/; q; }
26453 test ! -n "$as_dirs" || mkdir
$as_dirs
26454 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26455 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26456 { (exit 1); exit 1; }; }; }
26460 if test "$ac_dir" != .
; then
26461 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26462 # A "../" for each directory in $ac_dir_suffix.
26463 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26465 ac_dir_suffix
= ac_top_builddir
=
26469 .
) # No --srcdir option. We are building in place.
26471 if test -z "$ac_top_builddir"; then
26474 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
26476 [\\/]* | ?
:[\\/]* ) # Absolute path.
26477 ac_srcdir
=$srcdir$ac_dir_suffix;
26478 ac_top_srcdir
=$srcdir ;;
26479 *) # Relative path.
26480 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
26481 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
26484 # Do not use `cd foo && pwd` to compute absolute paths, because
26485 # the directories may not exist.
26487 .
) ac_abs_builddir
="$ac_dir";;
26490 .
) ac_abs_builddir
=`pwd`;;
26491 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
26492 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
26495 case $ac_abs_builddir in
26496 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
26498 case ${ac_top_builddir}.
in
26499 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
26500 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
26501 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
26504 case $ac_abs_builddir in
26505 .
) ac_abs_srcdir
=$ac_srcdir;;
26508 .
) ac_abs_srcdir
=$ac_abs_builddir;;
26509 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
26510 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
26513 case $ac_abs_builddir in
26514 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
26516 case $ac_top_srcdir in
26517 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
26518 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
26519 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
26524 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26525 echo "$as_me: executing $ac_dest commands" >&6;}
26527 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
26528 # Strip MF so we end up with the name of the file.
26529 mf
=`echo "$mf" | sed -e 's/:.*$//'`
26530 # Check whether this is an Automake generated Makefile or not.
26531 # We used to match only the files named `Makefile.in', but
26532 # some people rename them; so instead we look at the file content.
26533 # Grep'ing the first line is not enough: some people post-process
26534 # each Makefile.in and add a new line on top of each file to say so.
26535 # So let's grep whole file.
26536 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
26537 dirpart
=`(dirname "$mf") 2>/dev/null ||
26538 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26539 X"$mf" : 'X\(//\)[^/]' \| \
26540 X"$mf" : 'X\(//\)$' \| \
26541 X"$mf" : 'X\(/\)' \| \
26542 . : '\(.\)' 2>/dev/null ||
26544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26546 /^X\(\/\/\)$/{ s//\1/; q; }
26547 /^X\(\/\).*/{ s//\1/; q; }
26552 # Extract the definition of DEPDIR, am__include, and am__quote
26553 # from the Makefile without running `make'.
26554 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
26555 test -z "$DEPDIR" && continue
26556 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
26557 test -z "am__include" && continue
26558 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
26559 # When using ansi2knr, U may be empty or an underscore; expand it
26560 U
=`sed -n 's/^U = //p' < "$mf"`
26561 # Find all dependency output files, they are included files with
26562 # $(DEPDIR) in their names. We invoke sed twice because it is the
26563 # simplest approach to changing $(DEPDIR) to its actual value in the
26565 for file in `sed -n "
26566 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26567 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26568 # Make sure the directory exists.
26569 test -f "$dirpart/$file" && continue
26570 fdir
=`(dirname "$file") 2>/dev/null ||
26571 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26572 X"$file" : 'X\(//\)[^/]' \| \
26573 X"$file" : 'X\(//\)$' \| \
26574 X"$file" : 'X\(/\)' \| \
26575 . : '\(.\)' 2>/dev/null ||
26577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26578 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26579 /^X\(\/\/\)$/{ s//\1/; q; }
26580 /^X\(\/\).*/{ s//\1/; q; }
26582 { if $as_mkdir_p; then
26583 mkdir
-p $dirpart/$fdir
26585 as_dir
=$dirpart/$fdir
26587 while test ! -d "$as_dir"; do
26588 as_dirs
="$as_dir $as_dirs"
26589 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
26590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26591 X"$as_dir" : 'X\(//\)[^/]' \| \
26592 X"$as_dir" : 'X\(//\)$' \| \
26593 X"$as_dir" : 'X\(/\)' \| \
26594 . : '\(.\)' 2>/dev/null ||
26596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26597 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26598 /^X\(\/\/\)$/{ s//\1/; q; }
26599 /^X\(\/\).*/{ s//\1/; q; }
26602 test ! -n "$as_dirs" || mkdir
$as_dirs
26603 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
26604 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
26605 { (exit 1); exit 1; }; }; }
26607 # echo "creating $dirpart/$file"
26608 echo '# dummy' > "$dirpart/$file"
26616 cat >>$CONFIG_STATUS <<\_ACEOF
26618 { (exit 0); exit 0; }
26620 chmod +x
$CONFIG_STATUS
26621 ac_clean_files
=$ac_clean_files_save
26624 # configure is writing to config.log, and then calls config.status.
26625 # config.status does its own redirection, appending to config.log.
26626 # Unfortunately, on DOS this fails, as config.log is still kept open
26627 # by configure, so config.status won't be able to write to it; its
26628 # output is simply discarded. So we exec the FD to /dev/null,
26629 # effectively closing config.log, so it can be properly (re)opened and
26630 # appended to by config.status. When coming back to configure, we
26631 # need to make the FD available again.
26632 if test "$no_create" != yes; then
26634 ac_config_status_args
=
26635 test "$silent" = yes &&
26636 ac_config_status_args
="$ac_config_status_args --quiet"
26638 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26640 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26641 # would make configure fail if this is the last instruction.
26642 $ac_cs_success ||
{ (exit 1); exit 1; }
26646 { echo; echo "Now please type '${term_bold}make${term_norm}' to compile. Good luck."; echo; } >& 6